qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
248,350 | <p>The windows installed on my machine has the locale <code>en_AU</code> and that's what JasperReports uses. I already tried changing the locale of all users, including the Administrator but it still uses <code>en_AU</code>.</p>
<p>How can I change that locale? Is it possible to change the <code>REPORT_LOCALE</code> p... | [
{
"answer_id": 772406,
"author": "waxwing",
"author_id": 90566,
"author_profile": "https://Stackoverflow.com/users/90566",
"pm_score": 6,
"selected": false,
"text": "REPORT_LOCALE InputStream reportTemplate = getReportTemplate();\nJRDataSource dataSource = getDataSource();\n\njava.util.M... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16020/"
] |
248,351 | <p>I want to create a javascript badge that displays a list of links. We host the javascript on our domain. Other sites can put an empty div tag on their page and at the bottom a reference to our javascript that would render the content in the div tag. How do you implement something like this?</p>
| [
{
"answer_id": 248379,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 1,
"selected": false,
"text": "<div id=\"mywidget\"></div>\n <script type=\"text/javascript\" src=\"http://yourdomain.com/mywidget.js\"></script>\n <script ty... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3784/"
] |
248,353 | <p>I'm busy with an asignment where i have to make a graphical interface for a simple program. But i'm strugling with the layout.</p>
<p>This is the idea:<br>
<img src="https://i.stack.imgur.com/a3Xk7.png" alt="Layout Example" title="Layout Example"></p>
<p>What is the easiest way to accomplish such a layout?</p>
<p... | [
{
"answer_id": 248435,
"author": "bmeck",
"author_id": 12781,
"author_profile": "https://Stackoverflow.com/users/12781",
"pm_score": 3,
"selected": true,
"text": "Container(BorderLayout)\n{\n @NORTH\n Container(BorderLayout)\n {\n @NORTH\n Label(Instruction);\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20261/"
] |
248,362 | <p>I am trying to build a dropdown list for a winform interop, and I am creating the dropdown in code. However, I have a problem getting the data to bind based on the DataTemplate I specify.</p>
<p>What am I missing?</p>
<pre><code>drpCreditCardNumberWpf = new ComboBox();
DataTemplate cardLayout = new DataTemplate ... | [
{
"answer_id": 248638,
"author": "Donnelle",
"author_id": 28074,
"author_profile": "https://Stackoverflow.com/users/28074",
"pm_score": 8,
"selected": true,
"text": "ItemsSource drpCreditCardNumberWpf //create the data template\nDataTemplate cardLayout = new DataTemplate();\ncardLayout.D... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,396 | <p>I am writing a batch file script using Windows command and want to change each occurrence of some blank space with "," What is the simplest way to do that? </p>
| [
{
"answer_id": 248487,
"author": "Jeremy",
"author_id": 3657,
"author_profile": "https://Stackoverflow.com/users/3657",
"pm_score": 1,
"selected": false,
"text": "sed -e \"s/ /,/\" infile.txt >outfile.txt\n"
},
{
"answer_id": 248805,
"author": "Richard A",
"author_id": 24... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248396",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32565/"
] |
248,400 | <p>I have a range of random numbers. The range is actually determined by the user but it will be up to 1000 integers. They are placed in this:</p>
<pre><code>vector<int> n
</code></pre>
<p>and the values are inserted like this:</p>
<pre><code>srand(1);
for (i = 0; i < n; i++)
v[i] = rand() % n;
</code>... | [
{
"answer_id": 248436,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackoverflow.com/users/3848",
"pm_score": 1,
"selected": false,
"text": "O(n) O(max_element) O(1000) == O(1)"
},
{
"answer_id": 248479,
"author": "Jeremy",
"author_id": 3657,
"aut... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28392/"
] |
248,405 | <p>I have some thread-related questions, assuming the following code. Please ignore the possible inefficiency of the code, I'm only interested in the thread part.</p>
<pre><code>//code without thread use
public static int getNextPrime(int from) {
int nextPrime = from+1;
boolean superPrime = false;
while(!... | [
{
"answer_id": 248482,
"author": "James Van Huis",
"author_id": 31828,
"author_profile": "https://Stackoverflow.com/users/31828",
"pm_score": 2,
"selected": false,
"text": " private static int currentPrime;\npublic static void main(String[] args) throws InterruptedException {\n for... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31610/"
] |
248,421 | <p>I have discovered through trial and error that the MATLAB engine function is not completely thread safe.</p>
<p>Does anyone know the rules?</p>
<p>Discovered through trial and error:</p>
<p>On Windows, the connection to MATLAB is via COM, so the COM Apartment threading rules apply. All calls must occur in the sa... | [
{
"answer_id": 1716487,
"author": "8888q8888",
"author_id": 180866,
"author_profile": "https://Stackoverflow.com/users/180866",
"pm_score": 0,
"selected": false,
"text": "engOpenSingleUse engOpen"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3657/"
] |
248,425 | <p>I want to checkout, and then update as necessary, the <a href="http://code.djangoproject.com/" rel="nofollow noreferrer">Django Subversion trunk</a> on a Mac OS X Leopard 10.5.5 machine. </p>
<p>I am only interested in having updated Django code on my Mac. I am not interested in contributing patches to the Django p... | [
{
"answer_id": 248443,
"author": "cjm",
"author_id": 8355,
"author_profile": "https://Stackoverflow.com/users/8355",
"pm_score": 5,
"selected": true,
"text": "git-svn"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32558/"
] |
248,437 | <p>Is it possible in ASP.NET to take a string containing some HTML and make ASP.NET to parse it and create a Control for me? For example:</p>
<pre><code>string rawHTML = "<table><td><td>Cell</td></tr></table>";
HTMLTable table = MagicClass.ParseTable(rawHTML);
</code></pre>
<p>I kn... | [
{
"answer_id": 248542,
"author": "Mark Brackett",
"author_id": 2199,
"author_profile": "https://Stackoverflow.com/users/2199",
"pm_score": 4,
"selected": true,
"text": "this.ParseControl(\"<table><tr><td>Cell</td></tr></table>\")\n Control\n LiteralControl\n this.ParseControl(\"<table ru... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8954/"
] |
248,459 | <p>We are deploying our ASP.NET 3.5 app to a production server for beta testing.</p>
<p>Each page is secured using SSL.</p>
<p>On our homepage (default.aspx) we have web services which populate flash objects.</p>
<p>I am getting an error:</p>
<p>The HTTP request is unauthorized with client authentication scheme 'An... | [
{
"answer_id": 248936,
"author": "JTew",
"author_id": 25372,
"author_profile": "https://Stackoverflow.com/users/25372",
"pm_score": 1,
"selected": false,
"text": "request.Username = \"xyz\"\nrequest.Password = \"***\"\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23576/"
] |
248,470 | <p>I'm writing a script to remove some build artifacts older than 1 week. </p>
<p>The files have names in the form <em>artifact-1.1-200810391018.exe</em>.</p>
<p>How do I go about removing only the files that are greater than 1 week old, excluding the time in hours and minutes at the end of the date-time-stamp?</p>
... | [
{
"answer_id": 248485,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": true,
"text": "find /path/to/files -name \"artifact*\" -type f -mtime +7 -exec rm {} \\;\n"
},
{
"answer_id": 248490,
"author": "Je... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18340/"
] |
248,478 | <p>I am writing a custom session handler in PHP and trying to make the methods defined in session_set_save_handler private.</p>
<pre><code>session_set_save_handler(
array('Session','open'),
array('Session','close'),
array('Session','read'),
array('Session','write'),
array('Session','destroy'),
... | [
{
"answer_id": 1561578,
"author": "fentie",
"author_id": 189275,
"author_profile": "https://Stackoverflow.com/users/189275",
"pm_score": 0,
"selected": false,
"text": "$session = new Session();\nsession_set_save_handler(\n array($session,'open'),\n array($session,'close'),\n arr... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28714/"
] |
248,501 | <p>I am using MS SQL Server 2005, I have dates stored in epoch time (starting 1970) I need to create a statement that will affect any record that has not been updated in the last 24 hours.</p>
| [
{
"answer_id": 248524,
"author": "George Mastros",
"author_id": 1408129,
"author_profile": "https://Stackoverflow.com/users/1408129",
"pm_score": 1,
"selected": false,
"text": "Select DateDiff(Second, '19700101', GetDate()) Select Columns\nFrom Table\nWhere EpochColumn Between DateDif... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32579/"
] |
248,502 | <p>I want to run a background task that reads input from a TextReader and processes it a line at a time. I want the background task to block until the user types some text into a field and clicks the submit button. Is there some flavour of TextReader that will block until text is available and lets you somehow add more... | [
{
"answer_id": 248700,
"author": "Rasmus Faber",
"author_id": 5542,
"author_profile": "https://Stackoverflow.com/users/5542",
"pm_score": 4,
"selected": true,
"text": " public class BlockingStream: Stream\n {\n private readonly Stream _stream;\n\n public BlockingStream(Stream str... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4794/"
] |
248,527 | <p>I am working on a windows service that polls for a connection to a network enabled devices every 15 seconds. If the service is not able to connect to a device, it throws an exception and tries again in 15 seconds. All of this works great.</p>
<p>But, lets say one of the devices is down for a day or more. I am fi... | [
{
"answer_id": 362715,
"author": "Matt Jacobsen",
"author_id": 15608,
"author_profile": "https://Stackoverflow.com/users/15608",
"pm_score": 0,
"selected": false,
"text": " int count = 0;\n while (true)\n {\n try\n {\n AttemptStuff()\n }\n catch (Exception e... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1865/"
] |
248,534 | <p><strong>Question</strong></p>
<p>I have an application written in Java. It is designed to run on a Linux box standalone. I am trying to spawn a new <em>firefox</em> window. However, <em>firefox</em> never opens. It always has a shell exit code of 1. I can run this same code with <em>gnome-terminal</em> and it ... | [
{
"answer_id": 248552,
"author": "James Van Huis",
"author_id": 31828,
"author_profile": "https://Stackoverflow.com/users/31828",
"pm_score": 3,
"selected": false,
"text": " if (Desktop.isDesktopSupported()) {\n Desktop desktop = Desktop.getDesktop();\n if (desktop.isSup... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29773/"
] |
248,535 | <p>How can you find out the number of active users when you're using a StateServer? Also is it possible to query the StateServer and retrieve the contents in the Session State? </p>
<p>I know that this is all possible if you use SqlServer for a backing store, but I want them to be in memory.</p>
| [
{
"answer_id": 248674,
"author": "Doug Wilson",
"author_id": 32588,
"author_profile": "https://Stackoverflow.com/users/32588",
"pm_score": 1,
"selected": true,
"text": "StringBuilder builder = new StringBuilder();\nforeach ( String key in Session.Contents ) {\n builder.AppendFormat(\"... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16628/"
] |
248,545 | <p>I have a listbox, and I have the following ItemTemplate for it:</p>
<pre><code><DataTemplate x:Key="ScenarioItemTemplate">
<Border Margin="5,0,5,0"
Background="#FF3C3B3B"
BorderBrush="#FF797878"
BorderThickness="2"
CornerRadius="5">
<DockPan... | [
{
"answer_id": 248581,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 8,
"selected": true,
"text": "<ContentControl \n x:Name=\"designerContent\"\n MinHeight=\"100\"\n Margin=\"2,0,2,2\"\n Content=\"{Binding P... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28149/"
] |
248,557 | <pre><code>// goal: update Address record identified by "id", with new data in "colVal"
string cstr = ConnectionApi.GetSqlConnectionString("SwDb"); // get connection str
using (DataContext db = new DataContext(cstr)) {
Address addr = (from a in db.GetTable<Address>()
where a.Id == id
... | [
{
"answer_id": 248591,
"author": "Sam",
"author_id": 7021,
"author_profile": "https://Stackoverflow.com/users/7021",
"pm_score": 1,
"selected": false,
"text": "string cstr = ConnectionApi.GetSqlConnectionString(\"SwDb\"); // get connection str\nusing (DataContext db = new DataContext(cst... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32584/"
] |
248,562 | <p>I have a Spring MVC web app which uses Spring Security. I want to know the username of the currently logged in user. I'm using the code snippet given below . Is this the accepted way? </p>
<p>I don't like having a call to a static method inside this controller - that defeats the whole purpose of Spring, IMHO. ... | [
{
"answer_id": 253395,
"author": "Pavel Rodionov",
"author_id": 29487,
"author_profile": "https://Stackoverflow.com/users/29487",
"pm_score": 2,
"selected": false,
"text": "public class SomeService {\n private String principal;\n @Principal\n public setPrincipal(String principal... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2495576/"
] |
248,569 | <p>Is this possible? I want to have the To:, Body, and an Attachment all pre-populated so all the user has to do is click send. Thanks!</p>
| [
{
"answer_id": 248598,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 7,
"selected": true,
"text": "ipm.note outlook.exe /c ipm.note\n outlook.exe /c ipm.note /m someone@microsoft.com\n outlook.exe /c ipm.note /a filename\n ou... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14101/"
] |
248,580 | <p>I'm having a problem, creating a fixed-size overall panel for a touchscreen GUI application that has to take up the entire screen. In a nutshell, the touchscreen is 800 x 600 pixels, and therefore I want the main GUI panel to be that size.</p>
<p>When I start a new GUI project in NetBeans, I set the properties of ... | [
{
"answer_id": 249459,
"author": "Peter",
"author_id": 26483,
"author_profile": "https://Stackoverflow.com/users/26483",
"pm_score": 0,
"selected": false,
"text": "protected void growBig()\n {\n int screenWidth = java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;\n int sc... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,589 | <p>Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars?</p>
| [
{
"answer_id": 5323467,
"author": "Raphael Jolivet",
"author_id": 254061,
"author_profile": "https://Stackoverflow.com/users/254061",
"pm_score": 5,
"selected": false,
"text": "mvn dependency:analyze\n"
},
{
"answer_id": 31583033,
"author": "bobbel",
"author_id": 3082272,... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/943/"
] |
248,603 | <p>Anyone have a good resource or provide a sample of a natural order sort in C# for an <code>FileInfo</code> array? I am implementing the <code>IComparer</code> interface in my sorts.</p>
| [
{
"answer_id": 248613,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 8,
"selected": true,
"text": "IComparer [DllImport(\"shlwapi.dll\", CharSet = CharSet.Unicode)]\nprivate static extern int StrCmpLogicalW(string psz1,... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26327/"
] |
248,615 | <p>I have a private const int defined in a C# class. I want compilation to fail with an error if the value of this int mod 3 != 0. How can I accomplish this?</p>
| [
{
"answer_id": 248637,
"author": "Timothy Khouri",
"author_id": 11917,
"author_profile": "https://Stackoverflow.com/users/11917",
"pm_score": -1,
"selected": false,
"text": "if (MY_CONST % 3 != 0) { int compilerError = 1 / 0; }\n"
},
{
"answer_id": 248645,
"author": "Timothy ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,617 | <p>I'm wondering if it is possible to add methods in main program to an existing class defined in header file.
For example:
There is <code>class CFun</code> defined in file <code>CFun.hpp</code>, but in our <code>party.cpp</code> we want to add a method <code>void hello() {cout << "hello" << endl;};</code>w... | [
{
"answer_id": 248643,
"author": "Eclipse",
"author_id": 8701,
"author_profile": "https://Stackoverflow.com/users/8701",
"pm_score": 4,
"selected": true,
"text": "void Hello(CFun &fun)\n{\n cout << \"hello\" << endl;\n}\n"
},
{
"answer_id": 248644,
"author": "Dima",
"a... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32312/"
] |
248,667 | <p>Objective: take a UIImage, crop out a square in the middle, change size of square to 320x320 pixels, slice up the image into 16 80x80 images, save the 16 images in an array.</p>
<p>Here's my code:</p>
<pre><code>CGImageRef originalImage, resizedImage, finalImage, tmp;
float imgWidth, imgHeight, diff;
UIImage *squa... | [
{
"answer_id": 249174,
"author": "executor21",
"author_id": 30952,
"author_profile": "https://Stackoverflow.com/users/30952",
"pm_score": 4,
"selected": true,
"text": "if(newDim != 320.0){\n CGSize finalSize = CGSizeMake(320.0, 320.0);\n UIGraphicsBeginImageContext(... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30952/"
] |
248,668 | <p>I've been trying to code a Perl script to substitute some text on all source files of my project. I'm in need of something like:</p>
<pre><code>perl -p -i.bak -e "s/thisgoesout/thisgoesin/gi" *.{cs,aspx,ascx}
</code></pre>
<p>But that parses <strong>all</strong> the files of a directory <strong>recursively</strong... | [
{
"answer_id": 248680,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 2,
"selected": false,
"text": "find find . -name '*.{cs,aspx,ascx}' | xargs perl -p -i.bak -e \"s/thisgoesout/thisgoesin/gi\"\n xargs xargs find find . ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27959/"
] |
248,683 | <p>I want to do a select in MySql that combines several columns... something like this pseudocode:</p>
<pre><code>SELECT payment1_paid AND payment2_paid AS paid_in_full
FROM denormalized_payments
WHERE payment1_type = 'check';
</code></pre>
<p><strong>Edit</strong>: payment1_paid and payment2_paid are booleans.</p>... | [
{
"answer_id": 248685,
"author": "Eric Hogue",
"author_id": 4137,
"author_profile": "https://Stackoverflow.com/users/4137",
"pm_score": 2,
"selected": false,
"text": "Select CONCAT(payment1_paid, payment2_paid) as paid_in_full \nfrom denormalized_payments \nwhere payment1_type = 'check';... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8047/"
] |
248,688 | <p>Just wondering if there are any good server-side libraries for AJAX (prefer JSON rather then XML but anything is good) for classic ASP (VBScript)...</p>
<p>Rather not reinvent the wheel if it's already working and debugged.</p>
<p>Cheers,
Gaspard</p>
<p>EDIT: Server-side ASP VBScript... I have already seen many j... | [
{
"answer_id": 250987,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 2,
"selected": false,
"text": "function fetch(elelment,cmd,id) {\n //general purpose AJAX function\n $(elelment).innerHTML='Load... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32601/"
] |
248,693 | <p>I just came onto a project with a pretty huge code base. </p>
<p>I'm mostly dealing with C++ and a lot of the code they write uses double negation for their boolean logic. </p>
<pre><code> if (!!variable && (!!api.lookup("some-string"))) {
do_some_stuff();
}
</cod... | [
{
"answer_id": 248703,
"author": "jwfearn",
"author_id": 10559,
"author_profile": "https://Stackoverflow.com/users/10559",
"pm_score": 4,
"selected": false,
"text": "!!"
},
{
"answer_id": 248732,
"author": "Darius Bacon",
"author_id": 27024,
"author_profile": "https:/... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3415/"
] |
248,719 | <p>We are a group of students doing our Master degree in field of computer science.</p>
<p>This semester we should do a Software engineering project according to the following bottom explanation.</p>
<p>we should exactly act and report as a real Software engineering Team.</p>
<p>I have been chosen as a project manager ... | [
{
"answer_id": 251140,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": " (A) Administrative Staff Exchange\n (B) Scientific Employee Exchange\n (C) Student Exchange\n (D) Public Exchange\n\n Un... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,721 | <p>I need to have a single instance application (as per this <a href="https://stackoverflow.com/questions/19147/what-is-the-correct-way-to-create-a-single-instance-application#19326">answer</a>), but it needs to be deployed via click once.</p>
<p>The problem is that I require that click once doesn't automatically dete... | [
{
"answer_id": 322984,
"author": "ping",
"author_id": 41206,
"author_profile": "https://Stackoverflow.com/users/41206",
"pm_score": 6,
"selected": true,
"text": "namespace ClickOnceDemo\n{\n static class Program\n {\n /// summary>\n /// The main entry point for the ap... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2918/"
] |
248,738 | <p>I have some user controls that I'm loading in SharePoint and I would prefer to have all those styles contained in an external style sheet. What's the best way to link to an external stylesheet in CSS?</p>
<p>Thanks.</p>
| [
{
"answer_id": 249711,
"author": "Ryan",
"author_id": 20198,
"author_profile": "https://Stackoverflow.com/users/20198",
"pm_score": 1,
"selected": false,
"text": "protected override void OnPreRender(EventArgs e)\n {\n const string stylesheet = \"YourStylesheet.css\";\n if (!P... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
248,753 | <p>This is the sequel to <a href="https://stackoverflow.com/questions/248683/how-can-i-do-boolean-logic-on-two-columns-in-mysql">this question</a>.</p>
<p>I would like to combine three columns into one on a MySql select. The first two columns are boolean and the third is a string, which is sometimes null. This causes ... | [
{
"answer_id": 248763,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 1,
"selected": false,
"text": "(payment_paid IS NULL || payment2_type = \"none\")"
},
{
"answer_id": 248764,
"author": "Bob Probst",
"author... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8047/"
] |
248,754 | <p>Back in the earlier days of the internet I remember that in certain browsers, every time you downloaded an image or a file, the URL of where that file was downloaded from would be written into that file's properties (I guess the summary tab?). I think Netscape v2 did this if I remember correctly.</p>
<p>I really mi... | [
{
"answer_id": 248846,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 1,
"selected": false,
"text": "download.com_utils_compression_ABCD32.exe\n"
},
{
"answer_id": 248871,
"author": "ephemient",
"author_id":... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248754",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1582/"
] |
248,760 | <p>I'm not much of a Visual Basic person, but I am tasked with maintaining an old VB6 app. Whenever I check out a file, the editor will replace a bunch of the uppercase variable names with lowercase automatically. How can I make this stop!? I don't want to have to change them all back, and it's a pain to have these ... | [
{
"answer_id": 32582712,
"author": "Marko",
"author_id": 5337356,
"author_profile": "https://Stackoverflow.com/users/5337356",
"pm_score": 0,
"selected": false,
"text": "Public Enum myEnum\n VALUE 'Will be corrected to: Value\n VALUE1 'Will not be corrected\n VALUE_ 'Will... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32613/"
] |
248,761 | <p>Hopefully I can do the problem justice, because it was too difficult to summarise it in the title! (suggestions are welcome in the comments)</p>
<p>Right, so here's my table:</p>
<pre><code>Tasks
task_id (number)
job_id (number)
to_do_by_date (date)
task_name (varchar / text)
status... | [
{
"answer_id": 248831,
"author": "Justin Cave",
"author_id": 10397,
"author_profile": "https://Stackoverflow.com/users/10397",
"pm_score": 0,
"selected": false,
"text": "SQL> ed\nWrote file afiedt.buf\n\n 1 select task_id, job_id, to_do_by_date, task_name, status, completed_date\n 2 ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5662/"
] |
248,768 | <p>I am trying to to walk though the tree of PdfItem objects in an existing PDF document using PDFSharp in c#. </p>
<p>I want to create a hierarchy of all the objects as I go along -- similar to what the "PDF Explorer" example does -- but I want it to be a tree instead of a flat list of all the objects.</p>
<p>The ro... | [
{
"answer_id": 1732265,
"author": "Brian Low",
"author_id": 46039,
"author_profile": "https://Stackoverflow.com/users/46039",
"pm_score": 4,
"selected": true,
"text": "public class PDFParser\n{\n /// BT = Beginning of a text object operator\n /// ET = End of a text object operator\... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248768",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/814/"
] |
248,769 | <p>I currently use Notepad++ for most of my development. I have been checking out other, more full-featured options and would like to switch (I'm in particular a fan of Aptana so far) but there is one thing about Notepad++ that I really like and I haven't been able to get so far. </p>
<p>My current workflow is somet... | [
{
"answer_id": 248944,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 4,
"selected": true,
"text": "export checkout .svn"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30098/"
] |
248,789 | <p>So I'm reading The Art & Science of Javascript, which is a good book, and it has a good section on JSONP. I've been reading all I can about it today, and even looking through every question here on StackOverflow. JSONP is a great idea, but it only seems to resolve the "Same Origin Problem" for <i>getting</i> dat... | [
{
"answer_id": 248813,
"author": "Duncan",
"author_id": 25035,
"author_profile": "https://Stackoverflow.com/users/25035",
"pm_score": 3,
"selected": true,
"text": "<script src=\"http://myserver.com/getjson?customer=232&callback=jsonp543354\" type=\"text/javascript\">\n</script>\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31307/"
] |
248,799 | <p>As far as I know there's no way to hint the c# compiler to inline a particular function and I guess it's like that by design.</p>
<p>I also think that not letting the programmer to specify what to inline and what not is generally a good idea, as it would imply that you think you're smarter than the JIT compiler (my... | [
{
"answer_id": 248939,
"author": "Larry OBrien",
"author_id": 10116,
"author_profile": "https://Stackoverflow.com/users/10116",
"pm_score": 2,
"selected": false,
"text": "if(performance < ACCEPTABLE){\n if(profiler.showsAffectOfMethodCallOverhead() && seriouslyWeDoubleChecked()){\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7839/"
] |
248,821 | <p>I committed a bunch of files (dozens of files in different folders) by accident. What is the easiest, cleanest (and safest!) way to 'undo' that commit without having to delete the files from my working directory?</p>
| [
{
"answer_id": 248850,
"author": "jcoby",
"author_id": 2884,
"author_profile": "https://Stackoverflow.com/users/2884",
"pm_score": 4,
"selected": false,
"text": "svn merge -r1123:1122 <url of your working copy>\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133/"
] |
248,824 | <p>I have a program that needs to run as a normal user most of the time, but once in a while I need to stop and start a service. How do I go about making a program that runs as a normal user most of the time but elevates into administrator mode for some function?</p>
| [
{
"answer_id": 304300,
"author": "Ryan",
"author_id": 20198,
"author_profile": "https://Stackoverflow.com/users/20198",
"pm_score": 2,
"selected": false,
"text": "private void elevateCurrentProcess()\n{\n ProcessStartInfo startInfo = new ProcessStartInfo();\n startInfo.UseShellExec... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22835/"
] |
248,830 | <p>Recently I wrote a function to generate certain sequences with nontrivial constraints. The problem came with a natural recursive solution. Now it happens that, even for relatively small input, the sequences are several thousands, thus I would prefer to use my algorithm as a generator instead of using it to fill a li... | [
{
"answer_id": 248854,
"author": "Markus Jarderot",
"author_id": 22364,
"author_profile": "https://Stackoverflow.com/users/22364",
"pm_score": 8,
"selected": true,
"text": "def getPermutations(string, prefix=\"\"):\n if len(string) == 1:\n yield prefix + string\n else:\n ... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18770/"
] |
248,838 | <p>I need to write an extension method on a byte[]. Is that possible?</p>
| [
{
"answer_id": 248843,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 1,
"selected": false,
"text": "byte[]"
},
{
"answer_id": 248866,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_prof... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3279/"
] |
248,859 | <p>I have a VBS script that currently writes to a logfile. This script can be kicked off my multiple simultaneous processes so now I'm worried about concurrency.</p>
<p>I'm currently using <code>FileSystemObject</code> to open and write to this file. Does FSO support exclusive file access?</p>
| [
{
"answer_id": 387855,
"author": "mrTomahawk",
"author_id": 47621,
"author_profile": "https://Stackoverflow.com/users/47621",
"pm_score": 0,
"selected": false,
"text": "set objFile = objFSO.OpenTextFile(\"somefile.txt\",8,True)\nobjFSO.WriteLine \"jfdskfdkls\"\nobjFSO.Close\n'something s... | 2008/10/29 | [
"https://Stackoverflow.com/questions/248859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,864 | <p>I have a MySQL database table with a couple thousand rows. The table is setup like so:</p>
<p><code>id | text</code></p>
<p>The <code>id</code> column is an auto-incrementing integer, and the <code>text</code> column is a 200-character varchar.</p>
<p>Say I have the following rows:</p>
<p><code>3 | I think I'll ... | [
{
"answer_id": 249366,
"author": "rwired",
"author_id": 17492,
"author_profile": "https://Stackoverflow.com/users/17492",
"pm_score": 3,
"selected": true,
"text": "myisam_ftdump -c yourtablename 1 >wordfreq.dump\n"
}
] | 2008/10/29 | [
"https://Stackoverflow.com/questions/248864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/326176/"
] |
248,900 | <p>When I press the standard Ctrl + E, C (an other variants) in VS2008 whilst editing a CSS file, it says that command is not available. How do I setup a shortcut to apply a plain old /* */ comment to selected text in VS? Thanks</p>
| [
{
"answer_id": 249339,
"author": "Jeff Hillman",
"author_id": 3950,
"author_profile": "https://Stackoverflow.com/users/3950",
"pm_score": 4,
"selected": true,
"text": "Imports System\nImports EnvDTE\nImports EnvDTE80\nImports EnvDTE90\nImports System.Diagnostics\n\nPublic Module CommentC... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248900",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1692/"
] |
248,903 | <p>Is there any way to determine if an object is a generic list? I'm not going to know the type of the list, I just know it's a list. How can I determine that?</p>
| [
{
"answer_id": 248915,
"author": "Andrew Theken",
"author_id": 32238,
"author_profile": "https://Stackoverflow.com/users/32238",
"pm_score": 2,
"selected": false,
"text": "if(yourList.GetType().IsGenericType)\n{\n var genericTypeParams = yourList.GetType().GetGenericArguments;\n //do s... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248903",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11137/"
] |
248,911 | <p>I have a single HW interface I want to use from two applications (processes) on the same workstation. The HW requires a single initialization call then either app uses the same function (in the same library) to do many transactions with the HW. </p>
<p>So each app should act like this:</p>
<pre><code>main()
/... | [
{
"answer_id": 249400,
"author": "bog",
"author_id": 20909,
"author_profile": "https://Stackoverflow.com/users/20909",
"pm_score": 2,
"selected": false,
"text": "mutex_enter(m);\nwhile (! condition) {\n cond_wait(m, c); // drop mutex lock; wait on cv; reacquire mutex\n}\n//processing... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23961/"
] |
248,923 | <p>Solution<br/>
-- WorkflowProject<br/>
-- Workflow1<br/>
-- Workflow2<br/>
-- WebProject (WAP)<br/>
-- App_Data<br/>
-- MyDatabase.vdb3<br/>
-- MyWebService.asmx<br/>
-- Web.Config<br/></p>
<p>Ok, so.. that's the basic "outline" of t... | [
{
"answer_id": 249400,
"author": "bog",
"author_id": 20909,
"author_profile": "https://Stackoverflow.com/users/20909",
"pm_score": 2,
"selected": false,
"text": "mutex_enter(m);\nwhile (! condition) {\n cond_wait(m, c); // drop mutex lock; wait on cv; reacquire mutex\n}\n//processing... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248923",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27472/"
] |
248,938 | <p>I am looking to parse a URL to obtain a collection of the querystring parameters in Java. To be clear, I need to parse a given URL(or string value of a URL object), not the URL from a servlet request. </p>
<p>It looks as if the <code>javax.servlet.http.HttpUtils.parseQueryString</code> method would be the obvious c... | [
{
"answer_id": 249774,
"author": "Jack Leow",
"author_id": 31506,
"author_profile": "https://Stackoverflow.com/users/31506",
"pm_score": 0,
"selected": false,
"text": "java.net.URLDecoder#decodeURL(String,String)"
},
{
"answer_id": 249781,
"author": "gizmo",
"author_id": ... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14419/"
] |
248,949 | <p>We have a character LCD (www.cloverlcd.com/pdf/S6A0069.pdf) that we got to work in 8 bit mode. However, now we are trying to get it to work in 4 bit mode but it doesn't seem to be displaying anything. I think the function set instruction isn't been written. Can somebody please check if I am approaching this the r... | [
{
"answer_id": 249541,
"author": "kenny",
"author_id": 3225,
"author_profile": "https://Stackoverflow.com/users/3225",
"pm_score": 1,
"selected": false,
"text": "COMPortCWithoutBusy(0x02); //function set first nibble \nDelay1KTCYx(10);\nCOMPortCWi... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248949",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,952 | <p>Imagine that you are handed a new book everyday from an author.
The book is a work in progress.
He does not tell you what he has changed or added.</p>
<p>Your job is to identify the changes and additions, and pass ONLY these along to the publisher (who does not have time to read the entire book everyday)</p>
<p>Fo... | [
{
"answer_id": 248995,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 0,
"selected": false,
"text": "diff"
}
] | 2008/10/30 | [
"https://Stackoverflow.com/questions/248952",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,961 | <p>I am just looking at the using statement, I have always known what it does but until now not tried using it, I have come up with the below code:</p>
<pre><code> using (SqlCommand cmd =
new SqlCommand(reportDataSource,
new SqlConnection(Settings.Default.qlsdat_extensionsConnectionString)))
{
cm... | [
{
"answer_id": 248984,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 5,
"selected": true,
"text": "using (SqlConnection con = new SqlConnection(Settings.Default.qlsdat_extensionsConnectionString))\nusing (SqlComman... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
248,973 | <p>I'd like to stick a class down in my folder hierarchy. The scenario is too trivial to warrant it's own project or separate website. However, I hate to clutter my top-level App_Code with something that's used by a tiny corner of the site.</p>
<p>Is there a way in web.config to include another file or folder in the... | [
{
"answer_id": 249005,
"author": "tsilb",
"author_id": 11112,
"author_profile": "https://Stackoverflow.com/users/11112",
"pm_score": 1,
"selected": true,
"text": "<configuration>\n <system.web>\n <compilation>\n <assemblies>\n <add assembly=\"<AssemblyName>, Ver... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248973",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
248,982 | <p>I have an app which could benefit from the user being able to choose to set an image as the wallpaper (the background image on the "slide to unlock" screen). </p>
<p>Is there a way for non-jailbreak third-party apps to do this? A search for "wallpaper" in the iPhone documentation returns nothing. </p>
| [
{
"answer_id": 249005,
"author": "tsilb",
"author_id": 11112,
"author_profile": "https://Stackoverflow.com/users/11112",
"pm_score": 1,
"selected": true,
"text": "<configuration>\n <system.web>\n <compilation>\n <assemblies>\n <add assembly=\"<AssemblyName>, Ver... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27951/"
] |
248,983 | <p>I have databound a listbox to a simple custom object collection. Next, I added a button to remove the selected item from the object collection. The problem is that when certain items are removed and the listbox is showing the vertical scroll bar, the scrollbar appears to reset to a new position, although what I re... | [
{
"answer_id": 249076,
"author": "bioskope",
"author_id": 29414,
"author_profile": "https://Stackoverflow.com/users/29414",
"pm_score": 0,
"selected": false,
"text": " private void btnRemove_Click(object sender, EventArgs e)\n {\n int s = listBox1.SelectedIndex;\n m_bLis... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
248,985 | <p>I'm writing an application that does async loading of images onto the screen. I have it set up to be NOT concurrent (that is, it spawns a thread and executes them one at a time), so I've only overridden the <code>[NSOperation main]</code> function in my NSOperation subclass. </p>
<p>Anyway, so when I add all of the... | [
{
"answer_id": 608484,
"author": "Dave Lee",
"author_id": 73429,
"author_profile": "https://Stackoverflow.com/users/73429",
"pm_score": 3,
"selected": false,
"text": "-operations [self->data->lock lock];\nNSString* copy = [[self->data->operations copy] autorelease];\n[self->data->lock un... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248985",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28019/"
] |
248,989 | <p>I have some code that raises <code>PropertyChanged</code> events and I would like to be able to unit test that the events are being raised correctly.</p>
<p>The code that is raising the events is like</p>
<pre><code>public class MyClass : INotifyPropertyChanged
{
public event PropertyChangedEventHandler Propert... | [
{
"answer_id": 249042,
"author": "Andrew Stapleton",
"author_id": 28506,
"author_profile": "https://Stackoverflow.com/users/28506",
"pm_score": 9,
"selected": true,
"text": "[TestMethod]\npublic void Test_ThatMyEventIsRaised()\n{\n List<string> receivedEvents = new List<string>();\n ... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2660/"
] |
248,990 | <p>I have a table like as follows:</p>
<pre>
SoftwareName Count Country
Project 15 Canada
Visio 12 Canada
Project 10 USA
Visio 5 USA
</pre>
<p>How do I query it to give me a summary like...</p>
<pre>
SoftwareName Canada USA Total
Project ... | [
{
"answer_id": 249020,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": true,
"text": "SELECT SoftwareName, \n SUM( CASE Country WHEN 'Canada' THEN [Count] ELSE 0 END ) AS Canada,\n SUM( CASE Country WHEN... | 2008/10/30 | [
"https://Stackoverflow.com/questions/248990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31026/"
] |
248,998 | <p>This is really weird... When I open the following simple HTML document in Internet Explorer 7.0.5730.11 (on Windows Server 2003 Web Edition SP2)</p>
<pre><code><html>
<body>
<p>+</p>
</body>
</html>
</code></pre>
<p>it shows me a totally blank page. FWIW, this is just a ... | [
{
"answer_id": 249040,
"author": "mhawke",
"author_id": 21945,
"author_profile": "https://Stackoverflow.com/users/21945",
"pm_score": 1,
"selected": false,
"text": "<html>\n <body>\n <p>+</p>\n </body>\n</html>\n"
}
] | 2008/10/30 | [
"https://Stackoverflow.com/questions/248998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31415/"
] |
249,009 | <p>I mean other than using it when required for functions, classes, if, while, switch, try-catch.</p>
<p>I didn't know that it could be done like <a href="https://stackoverflow.com/questions/241088/what-do-curly-braces-by-themselves-mean-in-java">this until I saw this SO question</a>.</p>
<p>In the above link, Eli me... | [
{
"answer_id": 249014,
"author": "Adam Pierce",
"author_id": 5324,
"author_profile": "https://Stackoverflow.com/users/5324",
"pm_score": 7,
"selected": true,
"text": "void myfunction()\n{\n {\n // Open serial port\n SerialPort port(\"COM1\", 9600);\n port.doTransfer(data);\n }... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20646/"
] |
249,010 | <p>cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;</p>
<p>in this method</p>
<pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
</code></pre>
<p>but I can only see it when I select that cell otherwise it's not visible.and it work perfe... | [
{
"answer_id": 2598410,
"author": "John Dell'Aera",
"author_id": 311711,
"author_profile": "https://Stackoverflow.com/users/311711",
"pm_score": 1,
"selected": false,
"text": "@property (nonatomic,retain) UILabel *backgroundLabel;\n\nUILabel *label = [[UILabel alloc] initWithFrame:CGRect... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/451867/"
] |
249,022 | <p>I have an method which save files to the internet, it works but just slow. Then I'd like to make the user interface more smooth, so I create an NSThread to handle the slow task. </p>
<p>I am seeing a list of errors like:</p>
<pre><code>_NSAutoreleaseNoPool(): Object 0x18a140 of class NSCFString autoreleased with n... | [
{
"answer_id": 249083,
"author": "Louis Gerbarg",
"author_id": 30506,
"author_profile": "https://Stackoverflow.com/users/30506",
"pm_score": 3,
"selected": false,
"text": "- (void) save:(id)arg {\n NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];\n\n //Existing code\n\n ... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32096/"
] |
249,027 | <p>I would like to implement a command line interface for a Java application. This wouldn't be too difficult to do, except I would like the command line program to affect the state of another Java GUI program. So for example, I could type:</p>
<pre><code>java CliMain arg1 arg2
</code></pre>
<p>And another running GUI... | [
{
"answer_id": 249036,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": true,
"text": "localhost"
}
] | 2008/10/30 | [
"https://Stackoverflow.com/questions/249027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23845/"
] |
249,047 | <p>Does anyone know a good SMTP/IMAP server library for C#?</p>
<p>I only found some long abandoned projects.</p>
<hr>
<p>Only <strong>SERVER SIDE</strong> libraries, please no more posts about client libs.</p>
<p>Thanks,
Fionn</p>
| [
{
"answer_id": 249052,
"author": "Corey Trager",
"author_id": 9328,
"author_profile": "https://Stackoverflow.com/users/9328",
"pm_score": -1,
"selected": false,
"text": "System.Net.Mail SharpMimeTools"
}
] | 2008/10/30 | [
"https://Stackoverflow.com/questions/249047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21566/"
] |
249,066 | <p>I just want to know how to validate (or clean) user input in ASP.NET MVC so that an HttpRequestValidationException will not be thrown regardless of the values submitted. For example, with a text input, if the user inputs <code><BR/></code>, it will cause an exception and the Yellow Screen of Death will be sh... | [
{
"answer_id": 552107,
"author": "user66787",
"author_id": 66787,
"author_profile": "https://Stackoverflow.com/users/66787",
"pm_score": 6,
"selected": true,
"text": "[ValidateInput(false)]\npublic ActionResult create()\n{\n // ...method body\n}\n <system.web><httpRuntime requestValid... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249066",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32173/"
] |
249,074 | <p>I'm sure there are a million posts about this out there, but surprisingly I'm having trouble finding something. </p>
<p>I have a simple script where I want to set the onClick handler for an <code><A></code> link on initialization of the page.</p>
<p>When I run this I <strong>immediately</strong> get a 'foo' ... | [
{
"answer_id": 249084,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 6,
"selected": false,
"text": "document.getElementById(\"foo\").onclick = function (){alert('foo');};\n"
},
{
"answer_id": 249091,
... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249074",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
249,085 | <p>My situation: I have several components, which sometimes have changes to them, and are shared across a lot of different projects. Each project puts these in a subfolder called /depends. The depends holds a bunch of svn externals for all of our common components.</p>
<p>svn:externals is causing me a lot of time a... | [
{
"answer_id": 249146,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 5,
"selected": true,
"text": "svn:externals HEAD trunk"
},
{
"answer_id": 249529,
"author": "JesperE",
"author_id": 13051,
"author_p... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
249,087 | <p>I'm trying to convert some strings that are in French Canadian and basically, I'd like to be able to take out the French accent marks in the letters while keeping the letter. (E.g. convert <code>é</code> to <code>e</code>, so <code>crème brûlée</code> would become <code>creme brulee</code>)</p>
<p>What is the best ... | [
{
"answer_id": 249126,
"author": "Blair Conrad",
"author_id": 1199,
"author_profile": "https://Stackoverflow.com/users/1199",
"pm_score": 10,
"selected": true,
"text": "static string RemoveDiacritics(string text) \n{\n var normalizedString = text.Normalize(NormalizationForm.FormD);\n ... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249087",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/514/"
] |
249,103 | <p>So I just love it when my application is working great in Firefox, but then I open it in IE and... Nope, please try again.</p>
<p>The issue I'm having is that I'm setting a CSS display property to either <code>none</code> or <code>table-cell</code> with JavaScript.</p>
<p>I was initially using <code>display: block... | [
{
"answer_id": 249121,
"author": "joelhardi",
"author_id": 11438,
"author_profile": "https://Stackoverflow.com/users/11438",
"pm_score": 2,
"selected": false,
"text": "display: table(-cell/-row) display: inline-block display: block"
},
{
"answer_id": 645977,
"author": "Jacco"... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10420/"
] |
249,110 | <p>I have a Django model with a large number of fields and 20000+ table rows. To facilitate human readable URLs and the ability to break down the large list into arbitrary sublists, I would like to have a URL that looks like this:</p>
<pre><code>/browse/<name1>/<value1>/<name2>/<value2>/ .... ... | [
{
"answer_id": 249524,
"author": "Adam",
"author_id": 30084,
"author_profile": "https://Stackoverflow.com/users/30084",
"pm_score": 5,
"selected": true,
"text": "urlpatterns = patterns('',\n url(r'^browse/(?P<match>.+)/$', 'app.views.view', name='model_browse'),\n)\n\ndef view(request... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32638/"
] |
249,158 | <p>First, a couple operating parameters:</p>
<ul>
<li>.NET development using Visual Studio 2005/2008</li>
<li>TortoiseSVN client</li>
</ul>
<p>I've only primarily worked with Visual Source Safe and SourceGear Vault source control systems. In each, I map the root of the repository to a local working directory. For e... | [
{
"answer_id": 249651,
"author": "Peter Parker",
"author_id": 23264,
"author_profile": "https://Stackoverflow.com/users/23264",
"pm_score": 2,
"selected": false,
"text": "--sparse-checkout"
},
{
"answer_id": 250669,
"author": "Peter",
"author_id": 5496,
"author_profil... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5496/"
] |
249,159 | <p>I have a custom application with a simple app.config specifying SQL Server name and Database, I want to prompt the user on application install for application configuration items and then update the app.config file.</p>
<p>I admit I'm totally new to setup projects and am looking for some guidance.
Thank You
Mark Ko... | [
{
"answer_id": 319831,
"author": "AndrewD",
"author_id": 20151,
"author_profile": "https://Stackoverflow.com/users/20151",
"pm_score": 1,
"selected": false,
"text": "Public Shared Property AppConfigSetting(ByVal SettingName As String) As Object\n Get\n Return My.Settings.Proper... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
249,171 | <p>I am working on a business problem in C#.NET. I have two classes, named C and W that will be instantiated independently at different times.</p>
<p>An object of class C needs to contain references to 0 ... n objects of class W, i.e. a C object can contain up to n W objects.</p>
<p>Each W object needs to contain a ... | [
{
"answer_id": 249180,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 2,
"selected": false,
"text": "class C\n{\n private List<W> _contentsW;\n\n public List<W> Contents \n {\n get { return _contentsw; }\n ... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18542/"
] |
249,185 | <p>I have a two-level hierarchy displayed in a WPF TreeView, but I only want the child nodes to be selectable - basically the top level nodes are for categorisation but shouldn't be selectable by themselves. </p>
<p>Can I achieve this?</p>
<p>Thanks...</p>
| [
{
"answer_id": 1187203,
"author": "Rob Fonseca-Ensor",
"author_id": 21433,
"author_profile": "https://Stackoverflow.com/users/21433",
"pm_score": 0,
"selected": false,
"text": "public class TreeViewItemHelper\n{\n public static bool GetIsSelectable(TreeViewItem obj)\n {\n re... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14537/"
] |
249,188 | <p>What's the most elegant way of implementing a DropDownList in <code>ASP.NET</code> that is editable without using 3rd party components.</p>
<p>As a last resort I will probably try using a <code>TextBox</code> with an <code>AutoCompleteExtender</code> with an image to 'drop down' the list; or a <code>TextBox</code> ... | [
{
"answer_id": 1592106,
"author": "Ray",
"author_id": 4872,
"author_profile": "https://Stackoverflow.com/users/4872",
"pm_score": 3,
"selected": false,
"text": "<script language=\"javascript\" type=\"text/javascript\">\n\nfunction DisplayText()\n{\n var textboxId = '<% = txtDisplay.Cl... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8280/"
] |
249,192 | <p>How can you programmatically tell an HTML <code>select</code> to drop down (for example, due to mouseover)?</p>
| [
{
"answer_id": 249219,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 5,
"selected": false,
"text": "<select onMouseOut=\"this.size=1;\" onMouseOver=\"this.size=this.length;\">\n <option>1</option>\n <option>2<... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9328/"
] |
249,200 | <p>I need a webserver to serve up very simple POST/GET requests as JSON. I don't need MVC, Rails, Django. I need something that takes up very little memory, preferrably around 5K per reqeust. The webserver will talk to backend services like Scribe using Facebook Thrift. Each http request will also access a SQLLite ... | [
{
"answer_id": 12701985,
"author": "valenok",
"author_id": 49889,
"author_profile": "https://Stackoverflow.com/users/49889",
"pm_score": 2,
"selected": false,
"text": "#define MAX_REQUEST_SIZE 16384"
}
] | 2008/10/30 | [
"https://Stackoverflow.com/questions/249200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
249,222 | <p>I'm a fan of extension methods in C#, but haven't had any success adding an extension method to a static class, such as <code>Console</code>.</p>
<p>For example, if I want to add an extension to <code>Console</code>, called '<code>WriteBlueLine</code>', so that I can go:</p>
<pre><code>Console.WriteBlueLine("Th... | [
{
"answer_id": 249234,
"author": "Brannon",
"author_id": 5745,
"author_profile": "https://Stackoverflow.com/users/5745",
"pm_score": 3,
"selected": false,
"text": "this ."
},
{
"answer_id": 309414,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https:/... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49/"
] |
249,251 | <p>I found a list of iPhone supported font here<br>
<a href="http://daringfireball.net/misc/2007/07/iphone-osx-fonts" rel="nofollow noreferrer">http://daringfireball.net/misc/2007/07/iphone-osx-fonts</a></p>
<p>But I just wanted to confirm that, can we use all this fonts in application, or we are restricted to some cl... | [
{
"answer_id": 4191797,
"author": "rajesh",
"author_id": 466768,
"author_profile": "https://Stackoverflow.com/users/466768",
"pm_score": 5,
"selected": false,
"text": "NSArray *familyNames = [UIFont familyNames];\n\nfor( NSString *familyName in familyNames ){\n printf( \"Family: %s \\... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/451867/"
] |
249,253 | <p>I have a script to extract certain data from a much bigger table, with one field in particular changing regularly, e.g.</p>
<pre><code>SELECT CASE @Flag WHEN 1 THEN t.field1 WHEN 2 THEN t.field2 WHEN 3
THEN t.field3 END as field,
...[A bunch of other fields]
FROM table t
</code></pre>
<p>However, th... | [
{
"answer_id": 249313,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": false,
"text": "@Flag"
},
{
"answer_id": 249344,
"author": "WW.",
"author_id": 14663,
"author_profile": "https://S... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27290/"
] |
249,256 | <p>I was browsing the <a href="https://stackoverflow.com/questions/9033/hidden-features-of-c">Hidden Features of C#</a> question and thought I would try out one of the features I was unfamiliar with. Unfortunately I use Visual Studio 2005 and the feature in question was introduced later. Is there a good list for new... | [
{
"answer_id": 249300,
"author": "Matt Ephraim",
"author_id": 22291,
"author_profile": "https://Stackoverflow.com/users/22291",
"pm_score": 4,
"selected": true,
"text": "Person person = new Person();\nperson.Name = \"John Smith\";\n Person person = new Person() { Name = \"John Smith\" };... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6180/"
] |
249,262 | <pre><code>'''use Jython'''
import shutil
print dir(shutil)
</code></pre>
<p>There is no, shutil.move, how does one move a file with Jython?
and while we at it, how does one delete a file with Jython?</p>
| [
{
"answer_id": 249279,
"author": "Charles Duffy",
"author_id": 14122,
"author_profile": "https://Stackoverflow.com/users/14122",
"pm_score": 3,
"selected": true,
"text": "os.rename() os.unlink() shutil"
},
{
"answer_id": 250933,
"author": "Charles Duffy",
"author_id": 141... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249262",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21537/"
] |
249,266 | <p>I have a large xml document that needs to be processed 100 records at a time</p>
<p>It is being done within a Windows Service written in c#. </p>
<p>The structure is as follows :</p>
<pre><code><docket xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="docket.xsd">
<... | [
{
"answer_id": 249310,
"author": "Jim Burger",
"author_id": 20164,
"author_profile": "https://Stackoverflow.com/users/20164",
"pm_score": 1,
"selected": false,
"text": " public List<XDocument> ChunkDocket(XDocument docket, int chunkSize)\n {\n var newDockets = new List<XDocu... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17194/"
] |
249,281 | <p>We seem to have a few developers here who think creating stored procedures that spit out HTML or Javascript code is a legitimate thing to do. In my mind this is the ultimate abuse of the separation of concerns model. Is doing something like this people have often seen people doing?</p>
| [
{
"answer_id": 249288,
"author": "Matias Nino",
"author_id": 17235,
"author_profile": "https://Stackoverflow.com/users/17235",
"pm_score": 0,
"selected": false,
"text": "\"<javascriptpopup>[outputuotputoutput]</javascriptpopup>\"\n \"<prettyfont>[outputuotputoutput]</prettyfont>\"\n"
}... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249281",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27294/"
] |
249,283 | <p>I've been using virtualenv lately while developing in python. I like the idea of a segregated development environment using the <strong>--no-site-packages</strong> option, but doing this while developing a PyGTK app can be a bit tricky.
The PyGTK modules are installed on Ubuntu by default, and I would like to make a... | [
{
"answer_id": 249342,
"author": "monkut",
"author_id": 24718,
"author_profile": "https://Stackoverflow.com/users/24718",
"pm_score": 3,
"selected": false,
"text": "import sys\n\nsys.path.append(somepath)\n import site\n\nsite.addsitedir(sitedir, known_paths=None)\n"
},
{
"answer... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18866/"
] |
249,296 | <p>Why don't we see C-like languages that allow for callables with polymorphism in the return type? I could see how the additional type inference would be a hurdle, but we have <a href="http://en.wikipedia.org/wiki/Type_inference" rel="nofollow noreferrer">plenty of languages</a> with full-fledged type inference system... | [
{
"answer_id": 249341,
"author": "Ryan Fox",
"author_id": 55,
"author_profile": "https://Stackoverflow.com/users/55",
"pm_score": 2,
"selected": false,
"text": "double x = (double)foo();\n"
},
{
"answer_id": 249439,
"author": "Steven A. Lowe",
"author_id": 9345,
"auth... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
249,297 | <p>Excuse me if I'm off on my terminology, I only have around 2.4 years of programming experience, mostly in .NET.</p>
<p>Currently I'm one of two .NET developers in a mainframe shop, the other developer set the standards and is a great coder with a lot more experience plus a CS degree(I am 100% self taught). </p>
<p... | [
{
"answer_id": 249487,
"author": "Rune Grimstad",
"author_id": 30366,
"author_profile": "https://Stackoverflow.com/users/30366",
"pm_score": 2,
"selected": false,
"text": "class CustomerList : List<Customer>"
},
{
"answer_id": 250186,
"author": "Darren C",
"author_id": 32... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249297",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14045/"
] |
249,301 | <p>How do I take an efficient simple random sample in SQL? The database in question is running MySQL; my table is at least 200,000 rows, and I want a simple random sample of about 10,000.</p>
<p>The "obvious" answer is to:</p>
<pre><code>SELECT * FROM table ORDER BY RAND() LIMIT 10000
</code></pre>
<p>For lar... | [
{
"answer_id": 249351,
"author": "staticsan",
"author_id": 28832,
"author_profile": "https://Stackoverflow.com/users/28832",
"pm_score": -1,
"selected": false,
"text": "SELECT * FROM table LIMIT 10000 OFFSET FLOOR(RAND() * 190000)\n"
},
{
"answer_id": 252563,
"author": "user1... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20760/"
] |
249,312 | <p>What does the following code do? A link to something in the PHP manual would also be nice.</p>
<pre><code>if ($_SERVER['SERVER_PORT'] <> 443) {
doSomething();
}
</code></pre>
| [
{
"answer_id": 249315,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 6,
"selected": true,
"text": "false <> true // operator will evaluate expression as true\nfalse != true // operator will evaluate expression a... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18285/"
] |
249,314 | <p>I was just watching a video on MSDN Channel 9 which can be found <a href="http://channel9.msdn.com/posts/Dan/Lucian-Wischik-and-Lisa-Feigenbaum-Whats-new-in-Visual-Basic-10/" rel="noreferrer">here</a>, about some of the new features in Visual Basic 10. Now I like most of the new features, some of which have been lo... | [
{
"answer_id": 249405,
"author": "Jonathan Allen",
"author_id": 5274,
"author_profile": "https://Stackoverflow.com/users/5274",
"pm_score": 0,
"selected": false,
"text": "For i = 0 to 100\n '12 lines of code'\nNext\n Parallel.For( 0, 100, sub(i)\n '12 lines of code'\n End Sub )\n"
}... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6335/"
] |
249,330 | <p>I'm writing a utility in Python that will attach changed files in Subversion to an email and send it when a subset of folders that are under source control in SVN have been changed. I am using the pysvn library to access the repository.</p>
<p>I have a copy of the files on my local file system and I do an update t... | [
{
"answer_id": 249444,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 0,
"selected": false,
"text": "baselen = len(self.basePath)\nfor path in paths:\n path = path[baselen:].replace(\"/\", \"\\\\\")\n newPaths.append(... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1804/"
] |
249,346 | <p>I am building a utility page for a web app that I am working on. I have an element that I want to use as a "console" of sorts.</p>
<p>I get entries for the console via Ajax calls (using prototype's <code>Ajax.PeriodicalUpdater</code>).</p>
<p>The problem I'm having is that when I insert new lines to the bottom o... | [
{
"answer_id": 249349,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 3,
"selected": true,
"text": "new Ajax.PeriodicalUpdater(container, url, {\n onComplete: function() {\n (function() {\n conta... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12983/"
] |
249,348 | <p>I wrote this scheme code to compute one solution of the quadratic equation a<em>x2 + b</em>x + c = 0</p>
<pre><code>(define (solve-quadratic-equation a b c) (define disc (sqrt (- (* b b) (* 4.0 a c)))) (/ (+ (- b) disc) (* 2.0 a)))
</code></pre>
<p>However, someone told me that this procedure is hard to understand... | [
{
"answer_id": 249352,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 3,
"selected": false,
"text": "(define (solve-quadratic-equation a b c)\n (define disc (sqrt (- (* b b)\n (* 4.0 a c))))\n (/ (+... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30622/"
] |
249,350 | <p>I have seen some declaration of a union inside a struct as follows. Example code given below.</p>
<p>My questions is does it help in any memory savings(typical use for which a union is used for)? I do not see the benefit. </p>
<pre><code>typedef struct
{
int x1;
unsigned int x2;
ourstruct1 ov1;
our... | [
{
"answer_id": 250453,
"author": "philant",
"author_id": 18804,
"author_profile": "https://Stackoverflow.com/users/18804",
"pm_score": 0,
"selected": false,
"text": " structvar1 var1;\n var1.mystr.ctxSC = NULL; // compile error : structvar1 has no mystr member\n"
},
{
"answer_id... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249350",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2759376/"
] |
249,357 | <p>I am currently working on my first website. I have no idea where to start on the CSS page, or if there are any standards that I should be following.</p>
<p>I would appreciate any links or first-hand advise.</p>
| [
{
"answer_id": 249387,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 6,
"selected": true,
"text": "div.red\n{\n color: red;\n}\n div.error\n{\n color: red;\n}\n"
},
{
"answer_id": 249518,
"author": "Gene"... | 2008/10/30 | [
"https://Stackoverflow.com/questions/249357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2598/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.