qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
350,348 | <p>I have wrist pain when I type and I would like to start writing SQL statements, stored procedure, and views using speech recognition.</p>
| [
{
"answer_id": 350349,
"author": "Keith Walton",
"author_id": 22448,
"author_profile": "https://Stackoverflow.com/users/22448",
"pm_score": 7,
"selected": true,
"text": "SELECT PT_17, PT_28, PT_29 FROM HIK.dbo.PATINFO"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22448/"
] |
350,353 | <p>I've got a project coming up that will involve connecting to one to many backend systems through the same interface; let's call it IBacksideProvider. </p>
<p>I'd like to use Unity to inject these providers at runtime. The problem is that since we're talking about 1...n backend systems, I'd need to register 1...n ... | [
{
"answer_id": 350435,
"author": "Szymon Rozga",
"author_id": 7583,
"author_profile": "https://Stackoverflow.com/users/7583",
"pm_score": 3,
"selected": true,
"text": "IEnumerable<IMyObject> objects = myContainer.ResolveAll<IMyObject>();\n"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350353",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
350,354 | <p>Is there a .NET library I can use to programmatically generate my own GIF images?</p>
<p>At a minimum I'd like to build it pixel-by-pixel. Better would be support for text and shapes.</p>
<p>Here's an example of what I'm trying to do. I mocked this up in Photoshop…</p>
<p><a href="http://img143.imageshac... | [
{
"answer_id": 350394,
"author": "Chris",
"author_id": 44360,
"author_profile": "https://Stackoverflow.com/users/44360",
"pm_score": 5,
"selected": true,
"text": "Bitmap bmp = new Bitmap(xSize, ySize, PixelFormat.Format32bppArgb);\nusing (Graphics g = Graphics.FromImage(bmp)) {\n // Use... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350354",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
350,377 | <p>I have three custom build configurations { Dev, Qs, Prd }. So, I have three app configs { Dev.config, Qs.config, Prd.config }. I know how to edit the .csproj file to output the correct one based on the current build configuration.</p>
<pre><code><Target Name="AfterBuild">
<Delete Files="$(TargetDir)$(Ta... | [
{
"answer_id": 350388,
"author": "Anthony Mastrean",
"author_id": 3619,
"author_profile": "https://Stackoverflow.com/users/3619",
"pm_score": 0,
"selected": false,
"text": "Dev_Debug.config"
},
{
"answer_id": 350438,
"author": "Brian",
"author_id": 19299,
"author_prof... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3619/"
] |
350,381 | <p>So I have a script that I want to run as root, without hangup and nicely. What order should I put the commands in?</p>
<p>sudo nohup nice foo.bash &</p>
<p>or</p>
<p>nohup nice sudo foo.bash &</p>
<p>etc.</p>
<p>I suspect it doesn't matter but would like some insight from those who <strong>really</stro... | [
{
"answer_id": 350405,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "~ $ sudo nohup nice whoami\nnohup: ignoring input and appending output to `nohup.out'\n~ $ sudo cat nohup.out \nroot\n"
},
... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15948/"
] |
350,383 | <p>I was using <a href="http://en.wikipedia.org/wiki/CodeRush" rel="nofollow noreferrer">CodeRush</a> quite while ago and now I'm planning to use it again. I've installed the trial but I forgot all the cool features except <kbd>Alt</kbd> + <kbd>Home</kbd> (drop a marker). And when you don't know some cool tricks it's r... | [
{
"answer_id": 420911,
"author": "Echostorm",
"author_id": 12862,
"author_profile": "https://Stackoverflow.com/users/12862",
"pm_score": 3,
"selected": false,
"text": "/"
},
{
"answer_id": 630346,
"author": "Rory Becker",
"author_id": 11356,
"author_profile": "https:/... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40322/"
] |
350,393 | <p>Using the instructions from <a href="http://blogs.msdn.com/pajohn/archive/2008/06/18/web-widgets-with-net-part-one.aspx" rel="nofollow noreferrer">Paul Johnson's Web Widgets</a> page I created my own custom widget. However because I was deploying to IIS 6.0 I utilized the <a href="http://blogs.msdn.com/pajohn/archiv... | [
{
"answer_id": 1064437,
"author": "MattH",
"author_id": 81,
"author_profile": "https://Stackoverflow.com/users/81",
"pm_score": 0,
"selected": false,
"text": "<system.web>\n<httpHandlers>\n<add verb=\"GET,HEAD\" path=\"eventswidget.jss\" type=\"Demo1.Handlers.EventsWidget, Demo1\" valida... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12722/"
] |
350,400 | <p>I've got some blank values in my table, and I can't seem to catch them in an IF statement. </p>
<p>I've tried</p>
<p><code>IF @value = ''</code> and <code>if @value = NULL</code> and neither one catches the blank values. Is there any way to test whether or not a varchar is entirely whitespace?</p>
<p>AHA! Turns o... | [
{
"answer_id": 350413,
"author": "no_one",
"author_id": 35662,
"author_profile": "https://Stackoverflow.com/users/35662",
"pm_score": 2,
"selected": false,
"text": "(LTRIM(RTRIM(@Value))=''\n"
},
{
"answer_id": 350417,
"author": "JosephStyons",
"author_id": 672,
"auth... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17917/"
] |
350,404 | <p>I was looking at the Proxy Pattern, and to me it seems an awful lot like the Decorator, Adapter, and Bridge patterns. Am I misunderstanding something? What's the difference? Why would I use the Proxy pattern versus the others? How have you used them in the past in real world projects?</p>
| [
{
"answer_id": 350471,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 11,
"selected": true,
"text": "countStudents()"
},
{
"answer_id": 33281782,
"author": "nakashu",
"author_id": 1984346,
"author_pr... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7705/"
] |
350,419 | <p>Most C++ naming conventions dictate the use of <code>camelCaseIdentifiers</code>: names that start with an uppercase letter for classes (<code>Person</code>, <code>Booking</code>) and names that start with a lowercase letter for fields and variables (<code>getPrice()</code>, <code>isValid()</code>, <code>largestValu... | [
{
"answer_id": 350448,
"author": "Motti",
"author_id": 3848,
"author_profile": "https://Stackoverflow.com/users/3848",
"pm_score": 5,
"selected": true,
"text": "naming_convention"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520/"
] |
350,429 | <p>I'm working on an older classic ASP site, and there's a form that allows the user to enter some text (into a multiline textbox), and if they add an html character like ® (register trademark) it inserts it correctly. But when they go to edit the data, using the same form, the update will add a random 'Â' (circumf... | [
{
"answer_id": 350437,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 2,
"selected": false,
"text": "©"
},
{
"answer_id": 351166,
"author": "mercator",
"author_id": 23263,
"author_profile": "ht... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
350,433 | <p>I admit that I am not a guru of Visual Studio products at all. I am using Visual Web Developer 2005 Express Edition and I'm trying to load someone else's project.</p>
<p>This project happens to be a website with many pages.</p>
<p>After loading VWD, it asks for a project to open and I select the solution file. It ... | [
{
"answer_id": 350437,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 2,
"selected": false,
"text": "©"
},
{
"answer_id": 351166,
"author": "mercator",
"author_id": 23263,
"author_profile": "ht... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20471/"
] |
350,453 | <p>I want something similar to the following pseudocode:</p>
<pre><code>myGridView.SelectedIndex = myGridView.DataKeys.IndexOf("mySpecificKey");
</code></pre>
<p>I've done some Intellisense exploring, but I haven't found an obvious way to do this. I would want to set SelectedIndex to -1 if DataKey was not found.</p>... | [
{
"answer_id": 350477,
"author": "Larsenal",
"author_id": 337,
"author_profile": "https://Stackoverflow.com/users/337",
"pm_score": 5,
"selected": true,
"text": " For n As Integer = 0 To myGridView.DataKeys.Count - 1\n If myGridView.DataKeys(n).Value = myKeyObj Then\n ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/337/"
] |
350,454 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/158706/how-to-properly-clean-up-excel-interop-objects-in-c-sharp">How to properly clean up Excel interop objects in C#</a> </p>
</blockquote>
<p>I've read many of the other threads here about managing COM refer... | [
{
"answer_id": 350535,
"author": "Andrew Rollings",
"author_id": 40410,
"author_profile": "https://Stackoverflow.com/users/40410",
"pm_score": 3,
"selected": true,
"text": "GetWindowThreadProcessId"
},
{
"answer_id": 356567,
"author": "Jon",
"author_id": 6486,
"author... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25571/"
] |
350,470 | <p>I've been looking for profiling tools for Rails for a while. I'm currently playing and testing ruby-prof and railsbench, but I kinda frustrated with the amount of tweaking and mangling required to make then work.</p>
<p>Althought I don't mind (much) the tweaking, I'd like to know if is there any other, more straigh... | [
{
"answer_id": 356092,
"author": "mwilliams",
"author_id": 23909,
"author_profile": "https://Stackoverflow.com/users/23909",
"pm_score": 5,
"selected": false,
"text": "$ ruby script/performance/profiler 'User.new' 5\n % cumulative self self total\n time seconds ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20875/"
] |
350,482 | <p>Based on the answers to <a href="https://stackoverflow.com/questions/350081/how-do-i-supply-the-from-clause-of-a-select-statement-from-a-udf-parameter">this question about dynamically accessing tables</a>, I've decided to take a couple steps back and get some advice on the larger picture. </p>
<p>I am revisiting th... | [
{
"answer_id": 356092,
"author": "mwilliams",
"author_id": 23909,
"author_profile": "https://Stackoverflow.com/users/23909",
"pm_score": 5,
"selected": false,
"text": "$ ruby script/performance/profiler 'User.new' 5\n % cumulative self self total\n time seconds ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26140/"
] |
350,492 | <p>As an example these are some of the things I always do when starting a new machine:</p>
<ol>
<li>Install 'Visor' - gives you an always available HUD style terminal window via F1. </li>
<li>Install 'Clix' - run a million system customization command line instructions. </li>
<li>Install 'Default App' - self explanato... | [
{
"answer_id": 351634,
"author": "amrox",
"author_id": 4468,
"author_profile": "https://Stackoverflow.com/users/4468",
"pm_score": 3,
"selected": true,
"text": "defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10875/"
] |
350,500 | <p>I did not find the TryParse method for the Guid. I’m wondering how others handle converting a guid in string format into a guid type.</p>
<pre><code>Guid Id;
try
{
Id = new Guid(Request.QueryString["id"]);
}
catch
{
Id = Guid.Empty;
}
</code></pre>
| [
{
"answer_id": 350504,
"author": "leppie",
"author_id": 15541,
"author_profile": "https://Stackoverflow.com/users/15541",
"pm_score": 9,
"selected": false,
"text": "new Guid(string)\n"
},
{
"answer_id": 357074,
"author": "Brian Rudolph",
"author_id": 33114,
"author_pr... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19216/"
] |
350,502 | <p>If an object has a property that is a collection, should the object create the collection object or make a consumer check for null? I know the consumer should not assume, just wondering if most people create the collection object if it is never added to.</p>
| [
{
"answer_id": 350585,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 4,
"selected": true,
"text": " public class Division\n {\n private int divId;\n public int DivisionId { get; set; }\n\n ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11907/"
] |
350,505 | <p>I am building ASP.NET 2.0 websites and currently I some home grown assemblies for a DAL, some business objects and other assorted shared stuff. I've put together a basic set of objects to handle messages to the UI (i.e. errors and other status messaging). It consists of: </p>
<ul>
<li><p><strong>StatusMessage</st... | [
{
"answer_id": 350528,
"author": "Zote",
"author_id": 20683,
"author_profile": "https://Stackoverflow.com/users/20683",
"pm_score": 2,
"selected": true,
"text": "List<StatusMessage>"
},
{
"answer_id": 350575,
"author": "configurator",
"author_id": 9536,
"author_profil... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2035722/"
] |
350,507 | <p>I noticed that I can start a program with it's associated handler by writing <strong>start filename</strong>. However, for some files, all I get is a console, and I don't know why. I'm trying to populate a list control in MFC, and I want to have the program and it's associated handler to run when I double click the ... | [
{
"answer_id": 350545,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https://Stackoverflow.com/users/12711",
"pm_score": 4,
"selected": true,
"text": "start"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31610/"
] |
350,519 | <p>I need to get the lesser n numbers of a list in Python. I need this to be really fast because it's in a critical part for performance and it needs to be repeated a lot of times.</p>
<p>n is usually no greater than 10 and the list usually has around 20000 elements. The list is always different each time I call the f... | [
{
"answer_id": 350568,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 5,
"selected": true,
"text": "mins = items[:n]\nmins.sort()\nfor i in items[n:]:\n if i < mins[-1]: \n mins.append(i)\n mins.sort()\n ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350519",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23657/"
] |
350,526 | <p>Every now and then, I accidentally hit C-x C-c in Emacs when I'm intending to just hit C-x or C-c. This, of course, closes all open frames and buffers with no confirmation. I know that I can make Emacs prompt "Are you sure you want to exit?", but I don't want to do that all the time, which would get annoying. I just... | [
{
"answer_id": 350607,
"author": "JasonFruit",
"author_id": 21778,
"author_profile": "https://Stackoverflow.com/users/21778",
"pm_score": 3,
"selected": false,
"text": "(defun count-buffers (&optional display-anyway)\n \"Display or return the number of buffers.\"\n (interactive)\n (le... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91385/"
] |
350,539 | <p>I'm writing a C# application for a proprietary Windows CE 4.2 device (for which I don't have the specs or pretty much any other information. I've got access to the file system, and that is basically it.)
I also can't get support from the original manufacturer.</p>
<p>Now, I can install the .NET Compact framework jus... | [
{
"answer_id": 7900502,
"author": "Yahoo Serious",
"author_id": 422877,
"author_profile": "https://Stackoverflow.com/users/422877",
"pm_score": 0,
"selected": false,
"text": "Start | Settings | Control Panel | Files Admin | Save session"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33213/"
] |
350,546 | <p>There are a lot of rails plugins out there that handle user permissions. I'm impressed with the implementation in the hobo gem, but I'm not sure if I can use just this feature and not the other parts. GateKeeper is a really clever implementation, but has some bugs, though it's small enough I could probably fix it ... | [
{
"answer_id": 350936,
"author": "Milan Novota",
"author_id": 26123,
"author_profile": "https://Stackoverflow.com/users/26123",
"pm_score": 2,
"selected": false,
"text": "GET /posts\n"
},
{
"answer_id": 405313,
"author": "nakajima",
"author_id": 39589,
"author_profile... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2653/"
] |
350,587 | <p>In Access, I have a table like this one:</p>
<pre><code>Date | EmployeeNum | Award
11-JAN-08 | 34 | GoldStar
13-JAN-08 | 875 | BronzeTrophy
13-JAN-08 | 34 | BronzeTrophy
18-JAN-08 | 875 | BronzeTrophy
</code></pre>
<p>And I want to have a table count them like this:</p>
<pre... | [
{
"answer_id": 350625,
"author": "Birger",
"author_id": 11485,
"author_profile": "https://Stackoverflow.com/users/11485",
"pm_score": 2,
"selected": false,
"text": "TRANSFORM Count(MyTable.EmployeeNum) AS AantalVanEmployeeNum\nSELECT MyTable.EmployeeNum\nFROM MyTable\nGROUP BY MyTable.Em... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
350,599 | <p>When I write an app, I use the System.Data interfaces (IDbConnection, IDbCommand, IDataReader, IDbDataParameter, etc...). I do this to reduce vendor dependencies. Unless, I'm doing a simple test app, it just seems like the ethical thing to do when consulting.</p>
<p>However, it seems like all the code I see uses ... | [
{
"answer_id": 350616,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 3,
"selected": true,
"text": "SQL::"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350599",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29043/"
] |
350,600 | <p>How do you add a new variable to be inserted into a Java code template. How do I add a variable to the list in Window->Preferences->Java->Code Style->Code Templates->Code->New Java Files->Edit->Insert Variable... ?</p>
<p>Currently my new files get created with:</p>
<pre><code>${filecomment}
${package_declaration}... | [
{
"answer_id": 350609,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 4,
"selected": true,
"text": "${begin_filecomment}"
},
{
"answer_id": 494917,
"author": "Hosam Aly",
"author_id": 41283,
"author_profile... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350600",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18995/"
] |
350,603 | <p>In Clearcase I can generate a "label" for a given set of files and always go back to that label to regenerate all the files as they were when I generated the label.</p>
<p>How do I do this in Subversion? I'm using the Tortoise front end [Windows] to SVN and I'm not sure how to accomplish this functionality.</p>
| [
{
"answer_id": 350613,
"author": "Ken Gentle",
"author_id": 8709,
"author_profile": "https://Stackoverflow.com/users/8709",
"pm_score": 2,
"selected": false,
"text": "Tags"
},
{
"answer_id": 350618,
"author": "jmanning2k",
"author_id": 1480,
"author_profile": "https:/... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1265473/"
] |
350,608 | <p>I have a database with 2 tables.</p>
<p>One of the tables holds a row containing numbers, from 0 to 10.</p>
<p>In PHP, I do this: </p>
<pre><code>$query = "SELECT ".$param." FROM issues WHERE ".$param." >=0";
$result = @mysql_query($query) or showError("query failed");
if (!($record = mysql_fetch_array($resul... | [
{
"answer_id": 350630,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 4,
"selected": true,
"text": "// query...\n$records = array();\nwhile($r = mysql_fetch_array($result)) {\n $records[] = $r;\n}\nreturn $recor... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350608",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11795/"
] |
350,611 | <p>I'm using Eclipse as an IDE for Ruby/Rails development (using Aptana plugin). I have one very, very large file that encompasses an initial data load of several thousand rows of data. When this file is open, everything grinds to a halt (on both Windows and Linux), presumably because Eclipse is tied up trying to parse... | [
{
"answer_id": 350630,
"author": "Paolo Bergantino",
"author_id": 16417,
"author_profile": "https://Stackoverflow.com/users/16417",
"pm_score": 4,
"selected": true,
"text": "// query...\n$records = array();\nwhile($r = mysql_fetch_array($result)) {\n $records[] = $r;\n}\nreturn $recor... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9550/"
] |
350,617 | <p>In my database schema I have an entity that is identified. The identifier can be reused and thus there is a one-to-many relation with the entity. Example: A person can have a nickname. Nicknames are not unique and can be shared amongst many people. So the schema might look like:</p>
<pre><code>PERSON
id
name
nickna... | [
{
"answer_id": 350699,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 0,
"selected": false,
"text": "...ON DUPLICATE KEY UPDATE..."
},
{
"answer_id": 350785,
"author": "Jonathan Leffler",
"author_id": 15... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
350,620 | <p>I need to grep for lines with bunch of names, say <code>clientLogin=a@yahoo.com</code>, <code>clientLogin=b@gmail.com</code> from a file.txt.</p>
<p>file.txt has junk which is <code>email=a@yahoo.com email=b@gmail.com</code>. I need to filter these out</p>
<p>Once I get these lines I need to grep for gmail and yah... | [
{
"answer_id": 350687,
"author": "Rob Hruska",
"author_id": 29995,
"author_profile": "https://Stackoverflow.com/users/29995",
"pm_score": 2,
"selected": false,
"text": "def client = 'foo@bar.com'\ndef ex = ['grep', \"$client\", 'file.txt']\n\ndef proc = ex.execute()\nproc.waitFor()\n\npr... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37870/"
] |
350,628 | <p>I use a console application to write some test code:</p>
<pre><code> /// <summary>
/// Returns AD information for a specified userID.
/// </summary>
/// <param name="ntID"></param>
/// <returns></returns>
public ADUser GetUser(string ntID)
{ ... | [
{
"answer_id": 350687,
"author": "Rob Hruska",
"author_id": 29995,
"author_profile": "https://Stackoverflow.com/users/29995",
"pm_score": 2,
"selected": false,
"text": "def client = 'foo@bar.com'\ndef ex = ['grep', \"$client\", 'file.txt']\n\ndef proc = ex.execute()\nproc.waitFor()\n\npr... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
350,639 | <p>Let me describe the problem in details:</p>
<p>I want to show an absolute positioned div when hovering over an element. That's really simple with jQuery and works just fine. But when the mouse goes over one of the child elements, it triggers the mouseout event of the containing div. How do I keep javascript from tr... | [
{
"answer_id": 350740,
"author": "Ryan McGeary",
"author_id": 8985,
"author_profile": "https://Stackoverflow.com/users/8985",
"pm_score": 4,
"selected": false,
"text": "<div id=\"hoverable\">\n <a>Hover Me</a>\n <div style=\"display:none;\">\n <input>Test</input>\n <select>\n ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2172/"
] |
350,640 | <p>I have tried SQL Server 2008 Management Studio and other third party tools to script all database objects (views, SPs & tables) and I can't get anything to generate a one file script which has a drop statement preceded with an "If exists.." statement for every object.</p>
<p>I need the "if exists" statement so ... | [
{
"answer_id": 350728,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 0,
"selected": false,
"text": "select 'if object_id ('''+ s.name + '.' + t.name + \n ''') is not null drop table ' + s.name + '.'... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5232/"
] |
350,641 | <p>I need some help with XSLT syntax. Here is my scenario, I have an XML file that needs to be transformed in to a different look and feel of XML file, I have several sections where if particular node set don't contain any value the whole section shouldn't be processed.</p>
<p>Here is an example of XML:</p>
<pre><cod... | [
{
"answer_id": 350748,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 4,
"selected": false,
"text": "<xsl:for-each select=\"Dates\">\n <MyDates>\n <xsl:for-each select=\"Date\">\n <xsl:if test=\"not(*... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41508/"
] |
350,645 | <p>Couldn't think of an intuitive way to paraphrase the topic for this question, and I apologize for that. My question is the following:</p>
<p>I have several UIViewController's which need to call in a UIDatePicker. I didn't want to subclass the Date Picker several times as it's the same interface. The problem I'm hav... | [
{
"answer_id": 383713,
"author": "Ross Boucher",
"author_id": 41497,
"author_profile": "https://Stackoverflow.com/users/41497",
"pm_score": 2,
"selected": false,
"text": "id delegate;\n"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350645",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
350,647 | <p>The function below takes a python file handle, reads in packed binary data from the file, creates a Python dictionary and returns it. If I loop it endlessly, it'll continually consume RAM. What's wrong with my RefCounting?</p>
<pre><code>static PyObject* __binParse_getDBHeader(PyObject *self, PyObject *args){
Py... | [
{
"answer_id": 350695,
"author": "Torsten Marek",
"author_id": 9567,
"author_profile": "https://Stackoverflow.com/users/9567",
"pm_score": 5,
"selected": true,
"text": "PyDict_New()"
},
{
"answer_id": 350719,
"author": "Torsten Marek",
"author_id": 9567,
"author_profi... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16363/"
] |
350,651 | <p>Treating my repository as a SVN repo, I get:</p>
<pre><code>svn co http://myrepo/foo/trunk foo
...
foo/
bar/
baz/ -> http://myrepo/baz/trunk
</code></pre>
<p>Treating it as a Git repo, I get:</p>
<pre><code>git svn clone http://myrepo/foo --trunk=trunk --branches=branches --tags=tags
...
foo/
bar/
</code... | [
{
"answer_id": 474013,
"author": "James A. Rosen",
"author_id": 1190,
"author_profile": "https://Stackoverflow.com/users/1190",
"pm_score": 6,
"selected": true,
"text": "git-svn"
},
{
"answer_id": 8040405,
"author": "tuomasjjrasanen",
"author_id": 462518,
"author_prof... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
350,655 | <p>I have an asp.net ascx control file and I have put the control on an aspx page. The aspx page has a button in which when I press enter on the keyboard, I want it to fire the event handler for the button. Is there a way to set this?</p>
<p>I am using a master page with a button already on it, so now when I press t... | [
{
"answer_id": 350662,
"author": "HectorMac",
"author_id": 1400,
"author_profile": "https://Stackoverflow.com/users/1400",
"pm_score": 1,
"selected": false,
"text": "<form id=\"form1\" runat=\"server\" defaultbutton=\"myButton\">\n"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33690/"
] |
350,661 | <p>I haven't used vim in a Unix system in a while, but as I recall there was no \r, it was always \n.</p>
<p>I'm using gVim under windows and when I <i>search</i> for new line characters I use \n. Searching for \r returns nothing. But when I <i>replace</i> the characters I have to use \r's. \n's give me ^@</p>
<p>Can... | [
{
"answer_id": 350688,
"author": "mat",
"author_id": 42083,
"author_profile": "https://Stackoverflow.com/users/42083",
"pm_score": 2,
"selected": false,
"text": "^V"
},
{
"answer_id": 350754,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stac... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23829/"
] |
350,697 | <p>I have some old databases i was handed that use SQL Server 2000 and they are getting SQL Injected with javascript script tags at the end of certain database fields. I need a trigger to strip out the injected on update until I have time to fix the front end that is allowing this. </p>
<p>I am a SQL Server novice ... | [
{
"answer_id": 350724,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 0,
"selected": false,
"text": "<script"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34548/"
] |
350,701 | <p>I need to find a faster way to number lines in a file in a specific way using tools like awk and sed. I need the first character on each line to be numbered in this fashion: 1,2,3,1,2,3,1,2,3 etc.</p>
<p>For example, if the input was this:</p>
<pre><code>line 1
line 2
line 3
line 4
line 5
line 6
line 7
</code></p... | [
{
"answer_id": 350711,
"author": "derobert",
"author_id": 27727,
"author_profile": "https://Stackoverflow.com/users/27727",
"pm_score": 2,
"selected": false,
"text": "perl -pe '$_ = (($.-1)%3)+1 . $_'\n"
},
{
"answer_id": 350718,
"author": "Bill Karwin",
"author_id": 2086... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5678/"
] |
350,753 | <p>I'd like to see a series of diffs for a file. I'd settle for simply the log listing restricted to only those entries that modified the file.</p>
| [
{
"answer_id": 350769,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "git log [filename]"
},
{
"answer_id": 350783,
"author": "theschmitzer",
"author_id": 2167252,
"author_prof... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350753",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
350,787 | <p>I have a stored procedure that needs to convert hexadecimal numbers to their decimal equivalent. I've read the documentation for the UNHEX() function, but it is returning a binary value. What I'm wanting to do is something like this:</p>
<pre><code>CREATE PROCEDURE foo( hex_val VARCHAR(10) )
BEGIN
DECLARE dec... | [
{
"answer_id": 350804,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 3,
"selected": false,
"text": "conv(hex_val, 16, 10)\n"
},
{
"answer_id": 350810,
"author": "Greg",
"author_id": 24181,
"author... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31319/"
] |
350,794 | <p>I have a file upload form that is being posted back to a servlet (using multipart/form-data encoding). In the servlet, I am trying to use Apache Commons to handle the upload. However, I also have some other fields in the form that are just plain fields. How can I read those parameters from the request?</p>
<p>F... | [
{
"answer_id": 350857,
"author": "stian",
"author_id": 17542,
"author_profile": "https://Stackoverflow.com/users/17542",
"pm_score": 4,
"selected": true,
"text": "while (items.hasNext()) {\n FileItem thisItem = (FileItem) items.next();\n if (thisItem.isFormField()) {\n ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4257/"
] |
350,799 | <p>If I have a Django form such as:</p>
<pre><code>class ContactForm(forms.Form):
subject = forms.CharField(max_length=100)
message = forms.CharField()
sender = forms.EmailField()
</code></pre>
<p>And I call the as_table() method of an instance of this form, Django will render the fields as the same order... | [
{
"answer_id": 350851,
"author": "zgoda",
"author_id": 12138,
"author_profile": "https://Stackoverflow.com/users/12138",
"pm_score": 3,
"selected": false,
"text": "creation_counter"
},
{
"answer_id": 350913,
"author": "Greg",
"author_id": 13009,
"author_profile": "htt... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13009/"
] |
350,811 | <p>Is there an equivalent to the Java File method <strong>isDirectory()</strong> in MFC? I tried using this :</p>
<pre><code>
static bool isDirectory(CString &path) {
return GetFileAttributes(path) & FILE_ATTRIBUTE_DIRECTORY;
}
</code></pre>
<p>but it doesn't seem to work.</p>
| [
{
"answer_id": 350826,
"author": "Byron Whitlock",
"author_id": 42304,
"author_profile": "https://Stackoverflow.com/users/42304",
"pm_score": 2,
"selected": false,
"text": " #include <afxwin.h>\n #include <iostream>\n\n using namespace std;\n\n CFileFind finder;\n\n fileName += _T(\... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31610/"
] |
350,819 | <p>Is it possible to using "paging" functionality in Linq queries? Let's say I have some XML like this:</p>
<pre><code><Root>
<BetaSection>
<Choices>
<SetA>
<Choice id="choice1">Choice One</Choice>
<Choice id="choice2">... | [
{
"answer_id": 350834,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 2,
"selected": false,
"text": "var pagedData = aDataSource.Skip(20).Take(10);\n"
},
{
"answer_id": 350838,
"author": "TheSoftwareJedi",... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27870/"
] |
350,848 | <p>Is it possible to save an integer array using NSUserDefaults on the iPhone? I have an array declared in my .h file as: <code>int playfield[9][11]</code> that gets filled with integers from a file and determines the layout of a game playfield. I want to be able to have several save slots where users can save their ... | [
{
"answer_id": 350943,
"author": "epatel",
"author_id": 842,
"author_profile": "https://Stackoverflow.com/users/842",
"pm_score": 5,
"selected": true,
"text": "NSData *data = [NSData dataWithBytes:&playfield length:sizeof(playfield)];\n[prefs setObject:data forKey:@\"slot1Save\"];\n"
}... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21293/"
] |
350,858 | <p>using ASP.NET I need to update an excel template.</p>
<p>Our server is running Windows 2008 in 64 bit mode.</p>
<p>I am using the following code to access the excel file:</p>
<pre><code> ...
string connection =
@"Provider=MSDASQL;Driver={Microsoft Excel Driver (*.xls)};DBQ=" + path + ";";
...
</code><... | [
{
"answer_id": 2519953,
"author": "Alex Nolasco",
"author_id": 65694,
"author_profile": "https://Stackoverflow.com/users/65694",
"pm_score": 2,
"selected": false,
"text": "@\"Provider=Microsoft.ACE.OLEDB.12.0;Data Source= \" + filePath + \";Extended Properties=\\\"Excel 12.0;HDR=YES;\\\"... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15683/"
] |
350,860 | <p>I have a table where I'm recording if a user has viewed an object at least once, hence:</p>
<pre><code> HasViewed
ObjectID number (FK to Object table)
UserId number (FK to Users table)
</code></pre>
<p>Both fields are NOT NULL and together form the Primary Key.</p>
<p>My question is, since I don't c... | [
{
"answer_id": 350923,
"author": "EvilTeach",
"author_id": 7734,
"author_profile": "https://Stackoverflow.com/users/7734",
"pm_score": 1,
"selected": false,
"text": "SELECT 1\nFROM TABLE\nWHERE OBJECTID = 'PRON_172.JPG' AND\n USERID='JCURRAN'\n"
},
{
"answer_id": 352388,
... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12725/"
] |
350,863 | <p>I have the following XAML code:</p>
<pre><code><Window x:Class="RichText_Wrapping.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1">
<Grid>
<RichTextBox Height="100" Margin="2" Name="richTextBox1">
... | [
{
"answer_id": 2634190,
"author": "lambinator",
"author_id": 292008,
"author_profile": "https://Stackoverflow.com/users/292008",
"pm_score": 5,
"selected": false,
"text": "<RichTextBox Name=\"rtb\">\n <FlowDocument Name=\"rtbFlowDoc\" PageWidth=\"{Binding ElementName=rtb, Path=ActualW... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42366/"
] |
350,868 | <p>I have an issue where when a <code>textField</code> is clicked on in a <code>UITableViewCell</code>, the method <code>tableView:didSelectRowAtIndexPath:</code> does not get invoked. The problem is, I need to scroll my <code>tableView</code> into proper position, otherwise the keyboard goes right over the first respo... | [
{
"answer_id": 350925,
"author": "August",
"author_id": 30966,
"author_profile": "https://Stackoverflow.com/users/30966",
"pm_score": 3,
"selected": false,
"text": "textFieldDidBeginEditing:"
},
{
"answer_id": 967768,
"author": "Community",
"author_id": -1,
"author_pr... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40882/"
] |
350,880 | <p>I want to set the <code>include_path</code> variable in my <em>php.ini</em> file (<code>C:\Windows\php.ini</code>).</p>
<p>But, I want different <code>include_path</code> values for different sites hosted on the same Windows server. How can I do this?</p>
| [
{
"answer_id": 350892,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 1,
"selected": false,
"text": "set_include_path"
},
{
"answer_id": 350895,
"author": "Bill Karwin",
"author_id": 20860,
"author_pro... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/83/"
] |
350,885 | <p>What is the least amount of code you can write to create, sort (ascending), and print a list of 100 random positive integers? By least amount of code I mean characters contained in the entire source file, so get to minifying.</p>
<p>I'm interested in seeing the answers using any and all programming languages. Let'... | [
{
"answer_id": 350903,
"author": "Vilx-",
"author_id": 41360,
"author_profile": "https://Stackoverflow.com/users/41360",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.Collections.Generic;\n\nclass App\n{\n static void Main()\n {\n List<int> TheList = new Lis... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350885",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18941/"
] |
350,901 | <p>I am working on a web application that allows users to upload attachments. These attachments are stored on a different drive than that of the web application. How can I create an alias (equivalent to Apache HTTP server's aliases) to this drive so that users can download these attachments?</p>
<p>Currently I am cr... | [
{
"answer_id": 352716,
"author": "Dan Polites",
"author_id": 43365,
"author_profile": "https://Stackoverflow.com/users/43365",
"pm_score": 4,
"selected": true,
"text": "<Host name=\"localhost\" appBase=\"webapps\"\n unpackWARs=\"true\" autoDeploy=\"true\"\n xmlValidation=\"false\"... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350901",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43365/"
] |
350,907 | <p>I want to use git as a local repository against a remote SVN repository. I installed version 1.6.0.2 from <a href="http://code.google.com/p/msysgit/downloads/list" rel="noreferrer">http://code.google.com/p/msysgit/downloads/list</a>.</p>
<p>According to the documentation synchronization is done via the command </p>... | [
{
"answer_id": 353669,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "git svn"
},
{
"answer_id": 5313733,
"author": "jamandbees",
"author_id": 660837,
"author_profile": "h... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40347/"
] |
350,914 | <p>Here is a simplified version of my application showing what I'm doing. </p>
<pre><code>/*
in my app's main():
Runner run = new Runner();
run.dowork();
*/
class Runner
{
private int totalWorkers = 2;
private int workersDone = 0;
public synchronized void workerDone()
{
workersDone... | [
{
"answer_id": 350955,
"author": "Dmitry Khalatov",
"author_id": 18174,
"author_profile": "https://Stackoverflow.com/users/18174",
"pm_score": 0,
"selected": false,
"text": "public synchronized void dowork()\n {\n // workersDone = 0;\n\n //<code for o... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350914",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44410/"
] |
350,918 | <p>I'm trying to debug some IE-only issues for a site I'm developing. I'm running WDE because there's no Firebug for IE. I want to see whether some changes fix a bug, but no matter what I do, IE never picks up my changes. I've tried all of the following:</p>
<ul>
<li>stopping and restarting the debug evnironment</l... | [
{
"answer_id": 19510325,
"author": "Alexander Chernosvitov",
"author_id": 991252,
"author_profile": "https://Stackoverflow.com/users/991252",
"pm_score": 0,
"selected": false,
"text": "window.applicationCache.addEventListener('updateready', function (e)\n{\n if (window.applicationCache.... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
350,919 | <p>Here is the complete install command to CPAN and the output:</p>
<pre><code>sudo perl -MCPAN -e "install Bundle::CPAN"
CPAN: Storable loaded ok (v2.13)
Going to read /home/delgreco/.cpan/Metadata
Database was generated on Mon, 08 Dec 2008 03:27:10 GMT
CPAN: LWP::UserAgent loaded ok (v2.033)
CPAN: Time::HiRes load... | [
{
"answer_id": 350928,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 0,
"selected": false,
"text": "sudo perl -MCPAN -e \"install YAML\"\n"
},
{
"answer_id": 350992,
"author": "oeuftete",
"author_id": 767... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26848/"
] |
350,922 | <p>I have a simple C++ program that reads <code>stdin</code> using <code>scanf</code> and returns results to <code>stdout</code> using <code>printf</code>:</p>
<pre><code>
#include <iostream>
using namespace std;
int main()
{
int n, x;
int f=0, s=0, t=0;
scanf("%d",&n); scanf("%d",&x);
for(int... | [
{
"answer_id": 351021,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 0,
"selected": false,
"text": "od -hc out.txt\n"
},
{
"answer_id": 351033,
"author": "lillq",
"author_id": 2064,
"author_profile... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3515/"
] |
350,941 | <p>Thanks to a library upgrade (easymock 2.2 -> 2.4), we're having tests that have started locking up. I'd like to have a time out on individual tests, all of them. The idea is to identify the locked up tests - we're currently guessing - and fix them.</p>
<p>Is this possible, preferably on a suite-wide level? We have ... | [
{
"answer_id": 351045,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 2,
"selected": false,
"text": "setTimout(0)"
},
{
"answer_id": 3827396,
"author": "LarryW",
"author_id": 274745,
"author_profile": "https:... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
350,950 | <p>For example I have 2 tables, <code>Users</code> and <code>UserRelations</code>, and it is a one to many relationship.</p>
<p>For the <code>UserRelations</code> table, I can have an identity column and make it the primary key: </p>
<pre><code>[RelationID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NOT NULL,
[Targ... | [
{
"answer_id": 350968,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 4,
"selected": true,
"text": "UNIQUE"
},
{
"answer_id": 351171,
"author": "jmucchiello",
"author_id": 44065,
"author_profile": "h... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32240/"
] |
350,951 | <p>Using Visual Studio 2008 / C# / VS Unit Testing.</p>
<p>I have a very straightforward extension method, that will tell me if an object is of a specific type:</p>
<pre><code>public static bool IsTypeOf<T, O>(this T item, O other)
{
if (!(item.GetType() is O))
return false;
else
return ... | [
{
"answer_id": 350974,
"author": "shahkalpesh",
"author_id": 23574,
"author_profile": "https://Stackoverflow.com/users/23574",
"pm_score": 0,
"selected": false,
"text": "\nPseudocode"
},
{
"answer_id": 351042,
"author": "Marc Gravell",
"author_id": 23354,
"author_prof... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350951",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15906/"
] |
350,956 | <p>I'm working on a C#.Net application which has a somewhat annoying bug in it. The main window has a number of tabs, each of which has a grid on it. When switching from one tab to another, or selecting a different row in a grid, it does some background processing, and during this the menu flickers as it's redrawn (Fil... | [
{
"answer_id": 351112,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 2,
"selected": false,
"text": "Control"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
350,961 | <p>Ok, I'm not great in mysql, but I know an index would help me out here, however I've done some plugging and can't find one to help...</p>
<p>Anyone got any ideas?</p>
<pre><code> explain
select `users_usr`.`id_usr` AS `id_usr`,
`users_usr`.`firstname_usr` AS `firstname_usr`,
`users_usr`.`lastname_usr` AS `last... | [
{
"answer_id": 351112,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 2,
"selected": false,
"text": "Control"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/350961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13704/"
] |
350,977 | <p>I have a windows forms (.net 3.0) project that won't run on my customer's vista computer due to a DEP error. It runs on my vista machine, and in a clean version of vista sp1 in a virtual machine. I am having trouble tracking down ways to make my program DEP, Data Execution Prevention compatible. I really can't do an... | [
{
"answer_id": 351056,
"author": "mackenir",
"author_id": 25457,
"author_profile": "https://Stackoverflow.com/users/25457",
"pm_score": 3,
"selected": false,
"text": "SetProcessDEPPolicy"
},
{
"answer_id": 351087,
"author": "HTTP 410",
"author_id": 13118,
"author_prof... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28343/"
] |
350,978 | <p>My professor assigned a project where a simulation is ran through a GUI. To edit it, we need to create a "New" menu item. We haven't learned how to get data from a GUI, and our book does not cover it at all. </p>
<p>What I'm trying to do, is when the "New" command is hit, focus gets shifted back to the CMD prompt, ... | [
{
"answer_id": 351056,
"author": "mackenir",
"author_id": 25457,
"author_profile": "https://Stackoverflow.com/users/25457",
"pm_score": 3,
"selected": false,
"text": "SetProcessDEPPolicy"
},
{
"answer_id": 351087,
"author": "HTTP 410",
"author_id": 13118,
"author_prof... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
350,991 | <p>Do languages become more verbose as they mature? It feels like each new version of VB.net gains more syntax. Is it possible to trim down some fat like the keyword "Dim"? C# also feels like it is getting more syntax since version 1.</p>
| [
{
"answer_id": 351031,
"author": "Neil Hewitt",
"author_id": 22178,
"author_profile": "https://Stackoverflow.com/users/22178",
"pm_score": 4,
"selected": false,
"text": "WRITING IN COBOL"
},
{
"answer_id": 351146,
"author": "Jack",
"author_id": 28647,
"author_profile"... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28647/"
] |
350,993 | <p>Hey I am coding using Visual Studio 2003. My program worked fine until I introduced a dll I made using CreateObject.
Code:</p>
<pre><code>Set docs2 = server.CreateObject("DocGetter.Form1")
docs2.GetDocument oXMLDom,numID
</code></pre>
<p>It appears to be getting stuck at this code. I've already used regasm to regi... | [
{
"answer_id": 351219,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 1,
"selected": false,
"text": "Dim docs2 As New DocGetter.Form1()\n"
},
{
"answer_id": 351478,
"author": "Paul Morel",
"author_id": 1... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
350,995 | <p>Is it possible to change the scrollbar color in emacs? (Note: Not XEmacs)</p>
<p>If it matters, I'm running emacs 22 on Ubuntu 8.10.</p>
| [
{
"answer_id": 351061,
"author": "Dan Esparza",
"author_id": 19020,
"author_profile": "https://Stackoverflow.com/users/19020",
"pm_score": 1,
"selected": false,
"text": "! Motif scrollbars\n\nEmacs*XmScrollBar.Background: skyblue\nEmacs*XmScrollBar.troughColor: lightgray\n\n! Athena scro... | 2008/12/08 | [
"https://Stackoverflow.com/questions/350995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91385/"
] |
351,017 | <p>I want to create an array with a message.</p>
<pre><code>$myArray = array('my message');
</code></pre>
<p>But using this code, <code>myArray</code> will get overwritten if it already existed. </p>
<p>If I use <code>array_push</code>, it has to already exist.</p>
<pre><code>$myArray = array(); // <-- has to be... | [
{
"answer_id": 351029,
"author": "OIS",
"author_id": 36175,
"author_profile": "https://Stackoverflow.com/users/36175",
"pm_score": 5,
"selected": false,
"text": "$myArray[] = 'my message';\n"
},
{
"answer_id": 351041,
"author": "Andreas Grech",
"author_id": 44084,
"au... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38241/"
] |
351,022 | <p>I have an application into which users can upload an XSD to describe certain kinds of user data. The application needs to parse this XSD to correctly initialise various bits of database metadata (e.g. translating xs:enumerations into lists of permitted values that will populate drop-down lists). The same user-entere... | [
{
"answer_id": 351044,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 2,
"selected": false,
"text": "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/351022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
351,052 | <p>A co-worker has a C program that fails in a predictable manner because of some corrupted memory. He'd like to use <code>dbx</code> to monitor the memory location once it's allocated in order to pinpoint the code that causes the corruption.</p>
<p>Is this possible? If so what is the syntax to produce a breakpoint ... | [
{
"answer_id": 354722,
"author": "Jon Ericson",
"author_id": 1438,
"author_profile": "https://Stackoverflow.com/users/1438",
"pm_score": 3,
"selected": true,
"text": "dbx"
},
{
"answer_id": 36095016,
"author": "Mo Tahan",
"author_id": 6072625,
"author_profile": "https... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438/"
] |
351,058 | <p>Is this possible via CSS? </p>
<p>I'm trying </p>
<pre class="lang-css prettyprint-override"><code>tr.classname {
border-spacing: 5em;
}
</code></pre>
<p>to no avail. Maybe I'm doing something wrong?</p>
| [
{
"answer_id": 351063,
"author": "user37731",
"author_id": 37731,
"author_profile": "https://Stackoverflow.com/users/37731",
"pm_score": 9,
"selected": false,
"text": "border-collapse: separate; \nborder-spacing: 5em;\n"
},
{
"answer_id": 351066,
"author": "August",
"auth... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419730/"
] |
351,117 | <p>I know you can use the <code><jsp:useBean></code> tag to instantiate objects within JSPs without resorting to scriptlet code. However I'd like to instantiate an Integer who value is the result of an EL expression, something like:</p>
<pre><code><jsp:useBean id="total" class="java.lang.Integer">
<... | [
{
"answer_id": 351369,
"author": "carson",
"author_id": 25343,
"author_profile": "https://Stackoverflow.com/users/25343",
"pm_score": 1,
"selected": false,
"text": "<%\n Integer total = new Integer(param1 + param2);\n%>\n"
},
{
"answer_id": 351719,
"author": "Adeel Ansari",
... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
351,122 | <p>Does anybody know how I can get the number of the elements (rows*cols) returned after I do an SQL query? If that can't be done, then is there something that's going to be relatively representative of the size of data I get back?</p>
<p>I'm trying to make a status bar that indicates how much of the returned data I ... | [
{
"answer_id": 351233,
"author": "EvilTeach",
"author_id": 7734,
"author_profile": "https://Stackoverflow.com/users/7734",
"pm_score": 3,
"selected": true,
"text": "WITH\ndata AS\n(\n SELECT interesting-data\n FROM interesting-table\n WHERE some-condition\n)\nSELECT COUNT(*),... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351122",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28760/"
] |
351,126 | <p>I've download an image from the Internet and converted to a String (This is not changeable)</p>
<pre><code>Dim Request As System.Net.WebRequest = _
System.Net.WebRequest.Create( _
"http://www.google.com/images/nav_logo.png")
Dim WebResponse As System.Net.HttpWebResponse = _
DirectCast(Request.GetResponse(), ... | [
{
"answer_id": 351156,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 6,
"selected": true,
"text": "new MemoryStream(Encoding.UTF8.GetBytes(text))"
},
{
"answer_id": 351159,
"author": "Andrew Rollings",
... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41385/"
] |
351,134 | <p>How to get function's name from <a href="http://en.wikipedia.org/wiki/Function_pointer" rel="noreferrer">function's pointer</a> in C?</p>
<p>Edit: The real case is: I'm writing a linux kernel module and I'm calling kernel functions. Some of these functions are pointers and I want to inspect the code of that functio... | [
{
"answer_id": 351153,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 6,
"selected": true,
"text": "/proc/kallsyms"
},
{
"answer_id": 351217,
"author": "eaanon01",
"author_id": 36986,
"author_profile": "ht... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1100/"
] |
351,149 | <p>I'm writing a helper method for ASP.NET MVC and I need to call <code>Url.Content</code> to get an appropriate URL for the context. However, in order to create a new <code>UrlHelper()</code> I need to get the current <code>RequestContext</code> (<code>System.Web.Routing.RequestContext</code> to be precise) and I'm n... | [
{
"answer_id": 353388,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 1,
"selected": false,
"text": "public static string IdLink(this UrlHelper helper, Guid id)\n { //...\n"
},
{
"answer_id": 443861,
"auth... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4541/"
] |
351,161 | <p>I have a text file that contains a long list of entries (one on each line). Some of these are duplicates, and I would like to know if it is possible (and if so, how) to remove any duplicates. I am interested in doing this from within vi/vim, if possible.</p>
| [
{
"answer_id": 351175,
"author": "Sean",
"author_id": 44133,
"author_profile": "https://Stackoverflow.com/users/44133",
"pm_score": 5,
"selected": false,
"text": ":%s/^\\(.*\\)\\(\\n\\1\\)\\+$/\\1/\n"
},
{
"answer_id": 351182,
"author": "Brian Carper",
"author_id": 23070,... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43496/"
] |
351,165 | <p>I need to perform a complicated calculation. In my case it seemed most natural to create a Calculator class (abstracted using a strategy pattern).</p>
<p>To perform the calculation the class needs to accept about 20 inputs, some of which are optional, some of which could change in the future etc. Once the <strong>C... | [
{
"answer_id": 351198,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 1,
"selected": false,
"text": "var addUser = function (name,surname, age, add1, add2, telephone) {\n //do something\n};\n"
},
{
"answer_... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21966/"
] |
351,172 | <p>How do you escape the forward slash character (<code>/</code>) in VBScript? For example, in the following string:</p>
<pre><code>bob = "VU administration/front desk"
</code></pre>
| [
{
"answer_id": 351177,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 5,
"selected": true,
"text": "MyString = \"He said, \"\"Here's how you escape a double quote in vbscript. Slash characters -- both forward (/) and ba... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18853/"
] |
351,185 | <p>Is there a simple way to detect mouse or keyboard activity in Linux or Xorg or Qt4 or Kde4 environment? Obviously not only on a particular window but in the entire Xorg desktop.</p>
| [
{
"answer_id": 351212,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": -1,
"selected": false,
"text": "XGrabMouse"
},
{
"answer_id": 351218,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_p... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351185",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39796/"
] |
351,205 | <p>Is it a bad idea to use exception chaining when throwing RemoteExceptions? We have an RMI server that does something like this:</p>
<pre><code>public Object doSomething() throws RemoteException
{
try
{
return getData();
}
catch (CustomException ex)
{
throw new RemoteException(ex... | [
{
"answer_id": 351279,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 4,
"selected": true,
"text": "interface Foo extends Remote {\n\n Object doSomething() throws CustomException, RemoteException;\n\n}\n"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/351205",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1471/"
] |
351,214 | <p>I have a table in a DB (Postgres based), which acts like a superclass in object-oriented programming. It has a column 'type' which determines, which additional columns should be present in the table (sub-class properties). But I don't want the table to include all possible columns (all properties of all possible typ... | [
{
"answer_id": 351227,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 0,
"selected": false,
"text": "create table IntProps(...);\ncreate table StringProps(...);\ncreate table CurrencyProps(...);\n"
},
{
"answer_id... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37511/"
] |
351,228 | <p>When using FxCop 1.36 for a WPF application with a single window that has yet to be modified, I get the InterfaceMethodsShouldBeCallableByChildTypes error with the following details:</p>
<pre><code> Target : #System.Windows.Markup.IComponentConnector.Connect(System.Int32,System.Object) (IntrospectionTarge... | [
{
"answer_id": 351227,
"author": "Frank Krueger",
"author_id": 338,
"author_profile": "https://Stackoverflow.com/users/338",
"pm_score": 0,
"selected": false,
"text": "create table IntProps(...);\ncreate table StringProps(...);\ncreate table CurrencyProps(...);\n"
},
{
"answer_id... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21862/"
] |
351,242 | <p>Is multiple inheritance possible in VB .Net? If so, what is the syntax?</p>
| [
{
"answer_id": 14189970,
"author": "user1954025",
"author_id": 1954025,
"author_profile": "https://Stackoverflow.com/users/1954025",
"pm_score": 1,
"selected": false,
"text": "Public Class ClassName\n Implements BaseInterface1, BaseInterface2\n\nEnd Class\n"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/351242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4575/"
] |
351,243 | <p>I have exported a COM+ application proxy, which generates MSI and CAB files, and I have successfully installed them on a few different Win XP and Vista machines. However, I have a WinXP box that isn't playing nicely. When I try and run the MSI it gives me the following error message:</p>
<p>"Error registering COM+ ... | [
{
"answer_id": 484702,
"author": "hurcane",
"author_id": 21363,
"author_profile": "https://Stackoverflow.com/users/21363",
"pm_score": 4,
"selected": true,
"text": "msiexec /i MyProxy.msi /l*v ProxySetup.log\n"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/351243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2640/"
] |
351,258 | <p>I have a flex app that uploads files to a server. The server requires authentication to be able to upload. In IE the upload works fine. However in FF and Safari, it does not upload. I have seen people all over with this same problem but no answers. Don't fail me now stackoverflowers. </p>
| [
{
"answer_id": 351609,
"author": "cliff.meyers",
"author_id": 41754,
"author_profile": "https://Stackoverflow.com/users/41754",
"pm_score": 2,
"selected": false,
"text": "var request : URLRequset = new URLRequest( uploadUrl + \";jsessionid=\" + jsessionid);\n"
},
{
"answer_id": 6... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34365/"
] |
351,268 | <p><strong>back story:</strong> I am designing a portfolio website for myself. on its home page, the logo is front and center but on the sub pages the logo is top & right. </p>
<p>I thought it would be a nice visual cue (upon clicking a link to a sub page) to use jQuery to animate the movement of the logo from the... | [
{
"answer_id": 351304,
"author": "Pim Jager",
"author_id": 35197,
"author_profile": "https://Stackoverflow.com/users/35197",
"pm_score": 0,
"selected": false,
"text": " $(\"#thelink\").click( function(){\n $(this).animate( { animation stuff }, \"medium\", \"easeboth\", function(){\n ... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44443/"
] |
351,296 | <p>I am developping in C#.
I need to capture a password written inside a Text Box, but would like to not show the password that is being typed, showing instead **** or any other character to hide the password.</p>
<p>How can I do that? I'm sure it's by modifying an attribute, but can't find which one.</p>
| [
{
"answer_id": 351307,
"author": "Rob Kennedy",
"author_id": 33732,
"author_profile": "https://Stackoverflow.com/users/33732",
"pm_score": 1,
"selected": false,
"text": "PasswordChar"
},
{
"answer_id": 351312,
"author": "grepsedawk",
"author_id": 14388,
"author_profil... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351296",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19159/"
] |
351,306 | <p>I want to programmatically create a SHA1 checksum of audio files (MP3, Ogg Vorbis, Flac).
The requirement is that the checksum should be stable <strong>even if the header (eg. ID3) changes</strong>.<br/>
<em>Note: The audio files don't have CRCs</em></p>
<p>This is what I tried by now:</p>
<h3>1) Reading + Hashing... | [
{
"answer_id": 897594,
"author": "mivk",
"author_id": 111036,
"author_profile": "https://Stackoverflow.com/users/111036",
"pm_score": 0,
"selected": false,
"text": "ffmpeg"
},
{
"answer_id": 6305839,
"author": "Julian Kunkel",
"author_id": 792679,
"author_profile": "h... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351306",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4308/"
] |
351,314 | <p>I have to implement a homemade Trie and I'm stuck on the Iterator part. I can't seem to figure out the increment method for the trie.</p>
<p>I hope someone can help me clear things out.</p>
<p>Here's the code for the Iterator:</p>
<pre><code>template <typename T> class Trie<T>::IteratorPrefixe{
friend... | [
{
"answer_id": 366209,
"author": "Daniel Spiewak",
"author_id": 9815,
"author_profile": "https://Stackoverflow.com/users/9815",
"pm_score": 0,
"selected": false,
"text": "T*"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/351314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44447/"
] |
351,334 | <p>What is the difference between them? <br /></p>
<p>When would I opt for one over the other?</p>
| [
{
"answer_id": 13910431,
"author": "Joe",
"author_id": 989485,
"author_profile": "https://Stackoverflow.com/users/989485",
"pm_score": 5,
"selected": false,
"text": "XmlSerializer"
},
{
"answer_id": 49856627,
"author": "Ali Azam",
"author_id": 4464220,
"author_profile... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1443363/"
] |
351,336 | <p>We get these ~50GB data files consisting of 16 byte codes, and I want to find any code that occurs 1/2% of the time or more. Is there any way I can do that in a single pass over the data?</p>
<p>Edit: There are tons of codes - it's possible that every code is different.</p>
<p>EPILOGUE: I've selected Darius Bac... | [
{
"answer_id": 351399,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 2,
"selected": false,
"text": "sort * | uniq -c"
}
] | 2008/12/08 | [
"https://Stackoverflow.com/questions/351336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44444/"
] |
351,340 | <p>3 fields: FirstName, MiddleName, LastName</p>
<p>Any field can be null, but I don't want extra spaces. Format should be "First Middle Last", "First Last", "Last", etc.</p>
| [
{
"answer_id": 351356,
"author": "devio",
"author_id": 21336,
"author_profile": "https://Stackoverflow.com/users/21336",
"pm_score": 2,
"selected": false,
"text": "LTRIM(RTRIM(ISNULL(FirstName, '') + ' ' + LTRIM(ISNULL(MiddleName, '') + ' ' + \n ISNULL(LastName, ''))))\n"
},
{
... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22448/"
] |
351,345 | <p>I have the same problem as <a href="http://forums.oreilly.com/content/C-3-0-in-a-Nutshell/775/Linq-To-Sql-Classes-With-Multiple-Relationships-To-A-Table/" rel="nofollow noreferrer">this guy</a>: </p>
<p>I have a table that has references my tblstaff table twice for two different people. Now that I have added this ... | [
{
"answer_id": 359701,
"author": "Christopher Rathermel",
"author_id": 44449,
"author_profile": "https://Stackoverflow.com/users/44449",
"pm_score": 1,
"selected": false,
"text": " Dim id As String = 1\n Session(\"BusinessPlanID\") = id\n\n Dim oLinq As New Linq\n Dim bp As B... | 2008/12/08 | [
"https://Stackoverflow.com/questions/351345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44449/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.