qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
276,575 | <p>I am trying to migrate my .net remoting code to wcf but I'm finding it difficult. Can someone help me migrate this simple Remoting based program below to use WCF? The program implements a simple publisher/subscriber pattern where we have a single TemperatureProviderProgram that publishers to many TemperatureSubcrib... | [
{
"answer_id": 277405,
"author": "Alexandre Brisebois",
"author_id": 18619,
"author_profile": "https://Stackoverflow.com/users/18619",
"pm_score": 1,
"selected": false,
"text": "WCF WCF"
},
{
"answer_id": 277406,
"author": "Marc Gravell",
"author_id": 23354,
"author_p... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,585 | <p>In vs2008, is it possible to write an extension methods which would apply to any enumeration.</p>
<p>I know you can write extension methods against a specific enumeration, but I want to be able to every enumeration using a single extension method. Is this possible?</p>
| [
{
"answer_id": 276589,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https://Stackoverflow.com/users/13552",
"pm_score": 7,
"selected": true,
"text": "Enum public static void Something(this Enum e)\n{\n // code here\n}\n Enum.GetUnderlyingType IsOneOf IsCombinationOf ... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276585",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/100/"
] |
276,601 | <p>Can Emacs support the concept of projects? That would be where several configuration options varies depending on what project you are working on.</p>
| [
{
"answer_id": 276618,
"author": "dmckee --- ex-moderator kitten",
"author_id": 2509,
"author_profile": "https://Stackoverflow.com/users/2509",
"pm_score": 3,
"selected": true,
"text": "yourproject.el M-x load-file"
}
] | 2008/11/09 | [
"https://Stackoverflow.com/questions/276601",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6068/"
] |
276,602 | <p>In php I need to get the contents of a url (source) search for a string "maybe baby love you" and if it does not contain this then do x.</p>
| [
{
"answer_id": 276611,
"author": "okoman",
"author_id": 35903,
"author_profile": "https://Stackoverflow.com/users/35903",
"pm_score": 4,
"selected": true,
"text": "$url = 'http://my.url.com/';\n$data = file_get_contents( $url );\n\nif ( strpos( 'maybe baby love you', $data ) === false )\... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26823/"
] |
276,610 | <p>I am in the process of designing a daily build routine for my project. We are using Flex 3 and SQL Server 2005. I am unsure to what degree I should be rebuilding the database on a daily build. Should I be dropping all tables and stored procedures and adding them back in? Then I would have to have a script that p... | [
{
"answer_id": 276633,
"author": "Todd",
"author_id": 31940,
"author_profile": "https://Stackoverflow.com/users/31940",
"pm_score": 2,
"selected": true,
"text": "sp_ generate_inserts"
}
] | 2008/11/09 | [
"https://Stackoverflow.com/questions/276610",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36014/"
] |
276,612 | <p>Given a pointer to some variable.. is there a way to check whether it was statically or dynamically allocated?? </p>
| [
{
"answer_id": 276676,
"author": "CesarB",
"author_id": 28258,
"author_profile": "https://Stackoverflow.com/users/28258",
"pm_score": 5,
"selected": true,
"text": "malloc() alloca() malloc() new new[] malloc() new mmap LocalAlloc GlobalAlloc HeapAlloc"
}
] | 2008/11/09 | [
"https://Stackoverflow.com/questions/276612",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25990/"
] |
276,656 | <p>So let's say I'm using Python 2.5's built-in default sqlite3 and I have a Django model class with the following code:</p>
<pre><code>class SomeEntity(models.Model):
some_field = models.CharField(max_length=50, db_index=True, unique=True)
</code></pre>
<p>I've got the admin interface setup and everything appear... | [
{
"answer_id": 471066,
"author": "Noah",
"author_id": 12113,
"author_profile": "https://Stackoverflow.com/users/12113",
"pm_score": 5,
"selected": true,
"text": "import sqlite3\n\ndef collate_reverse(string1, string2):\n return -cmp(string1, string2)\n\ncon = sqlite3.connect(\":memory... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29123/"
] |
276,660 | <p>I need to warn users about unsaved changes before they leave a page (a pretty common problem).</p>
<pre><code>window.onbeforeunload = handler
</code></pre>
<p>This works but it raises a default dialog with an irritating standard message that wraps my own text. I need to either completely replace the standard message... | [
{
"answer_id": 276739,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 9,
"selected": true,
"text": "onbeforeunload window.onbeforeunload = function() {\n return 'You have unsaved changes!';\n}\n onbeforeunload window.event.re... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27805/"
] |
276,666 | <p>I have got 3 text files (A, B and C), each with several hundred email addresses. I want to merge list A and list B into a single file, ignoring differences in case and white space. Then I want to remove all emails in the new list that are in list C, again ignoring differences in case and white space.</p>
<p>My prog... | [
{
"answer_id": 276687,
"author": "paxdiablo",
"author_id": 14860,
"author_profile": "https://Stackoverflow.com/users/14860",
"pm_score": 2,
"selected": false,
"text": "set list to empty\nforeach line in file one:\n key = unwhitespace(tolowercase(line))\n list{key} = line\nforeach l... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,677 | <p>I'm a self-taught developer and my experience is all in small applications that I've developed.</p>
<p>I'm currently working on an application that I've made public, and I've realized that I need to start doing good unit testing to catch regressions and generally make sure everything works.</p>
<p>I've read up on ... | [
{
"answer_id": 277253,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 4,
"selected": true,
"text": "[TestFixture]\npublic class Foo {\n [Test]\n public void Bar() {\n Assert.AreEqual(2, 1+1);\n }\n}\n"
... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5982/"
] |
276,678 | <p>C#: What is the proper way to change the font style (underline) from a Label at runtime?</p>
<p>So far I understand that if you want to change font related properties at runtime from a label, mainly all font properties, you would have to use,</p>
<pre><code> lblName.Font = new Font(... etc. etc.
</code></pre>
<p>... | [
{
"answer_id": 276686,
"author": "wonderchook",
"author_id": 32113,
"author_profile": "https://Stackoverflow.com/users/32113",
"pm_score": 0,
"selected": false,
"text": " //\n // Summary:\n // Gets or sets a value that indicates whether the font is underlined.\n //\n /... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276678",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,679 | <p>Is it possible to import a python file more than once in a python script because i run a loop back to my driver file in a function by using the import command but it only works once? thanks</p>
<p><strong>edit:</strong> Resolved myself thanks</p>
| [
{
"answer_id": 276692,
"author": "Tom Leys",
"author_id": 11440,
"author_profile": "https://Stackoverflow.com/users/11440",
"pm_score": 2,
"selected": false,
"text": "def main():\n # All the code that currently does work goes in here \n # rather than just in the module\n import you... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276679",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,693 | <p>What is the best way to change the height and width of an ASP.NET control from a client-side Javascript function?</p>
<p>Thanks,
Jeff</p>
| [
{
"answer_id": 276789,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": true,
"text": "example usage:\n\n<input type='button' value='Expand' onclick='setSize(\"myDiv\", 500, 500);' />\n\n...\n\nfunction setS... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276693",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12172/"
] |
276,706 | <p>I'm someone who writes code just for fun and haven't really delved into it in either an academic or professional setting, so stuff like these bitwise operators really escapes me.</p>
<p>I was reading an article about JavaScript, which apparently supports bitwise operations. I keep seeing this operation mentioned in... | [
{
"answer_id": 276711,
"author": "Jeff Hillman",
"author_id": 3950,
"author_profile": "https://Stackoverflow.com/users/3950",
"pm_score": 4,
"selected": false,
"text": "op1 & op2 AND op1 | op2 OR op1 ^ op2 EXCLUSIVE-OR ~op1 COMPLEMENT op1 << op2 SHIFT LEFT op1 >> op2 SHIFT RIGHT op1 >>> ... | 2008/11/09 | [
"https://Stackoverflow.com/questions/276706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36032/"
] |
276,732 | <p>I have a CSS like this</p>
<pre><code>ul {
list-style-image:url(images/bulletArrow.gif);
}
ul li {
background: url(images/hr.gif) no-repeat left bottom;
padding: 5px 0 7px 0;
}
</code></pre>
<p>But the bullet image doesn't align properly in IE (it's fine in Firefox).
I already have a background image ... | [
{
"answer_id": 276820,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 5,
"selected": false,
"text": "list-style-image"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/276732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36036/"
] |
276,737 | <p>I have one large access database that I need to normalize into five tables and a lookup table. I understand the theory behind normalization and have already sketched out the look of the tables but I am lost on how to transform my table to get the database normalized. The table analyzers doesn't offer the the breakdo... | [
{
"answer_id": 276953,
"author": "David-W-Fenton",
"author_id": 9787,
"author_profile": "https://Stackoverflow.com/users/9787",
"pm_score": 3,
"selected": false,
"text": " tblPerson\n LastName, FirstName, WorkPhone, HomePhone\n tblPhone\n PhoneID, PersonID, PhoneNumber, Type\n INS... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,740 | <p>I want to retrieve a list of the files that has been added or deleted from our Subversion repository over, for example, the last month.</p>
<p>I'd prefer to have the file names, and not just a count.</p>
<p>Is this possible from the Subversion command line, or would I need to use a script to trawl the log?</p>
| [
{
"answer_id": 276755,
"author": "Lasse V. Karlsen",
"author_id": 267,
"author_profile": "https://Stackoverflow.com/users/267",
"pm_score": 4,
"selected": true,
"text": "svn log -v --xml | grep 'action=\"[A|D]\"'\n"
},
{
"answer_id": 19625050,
"author": "M0les",
"author_i... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6340/"
] |
276,757 | <p>I need to create an API that will allow my customer's developers to use a proprietary C module that will be released as a library (think <code>.lib</code> or <code>.so</code> -- not source).</p>
<p>I'd like to make the header as developer-friendly as possible (so I won't need to be), following best practices and pr... | [
{
"answer_id": 276777,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 3,
"selected": true,
"text": "#include \"your-header.h\""
},
{
"answer_id": 278386,
"author": "Evan Teran",
"author_id": 13430,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276757",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29157/"
] |
276,758 | <p>I have a fairly large database with with a column that has strings that are for the most part really just ints, e.g. "1234" or "345". However some of them have strings prepended to them (of varying length), so e.g. "a123" or "abc123".</p>
<p>Is there a smart way to create a new column with just the integer values?... | [
{
"answer_id": 276777,
"author": "Jonathan Leffler",
"author_id": 15168,
"author_profile": "https://Stackoverflow.com/users/15168",
"pm_score": 3,
"selected": true,
"text": "#include \"your-header.h\""
},
{
"answer_id": 278386,
"author": "Evan Teran",
"author_id": 13430,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,769 | <p>I'm trying to expose this function to Python using SWIG:</p>
<pre><code>std::vector<int> get_match_stats();
</code></pre>
<p>And I want SWIG to generate wrapping code for Python so I can see it as a list of integers.</p>
<p>Adding this to the .i file:</p>
<pre>
%include "typemaps.i"
%include "std_vector.i"... | [
{
"answer_id": 277687,
"author": "Mr Fooz",
"author_id": 25050,
"author_profile": "https://Stackoverflow.com/users/25050",
"pm_score": 5,
"selected": true,
"text": "%template(IntVector) vector<int>;\n"
},
{
"answer_id": 368961,
"author": "Fergal",
"author_id": 46407,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30626/"
] |
276,780 | <p>My mission is to create a little app where you can upload a picture, and the app will turn it into ASCII art. I'm sure these exist already but I want to prove that I can do it myself.</p>
<p>This would involve taking an image, making it greyscale and then matching each pixel with a character depending on how dark t... | [
{
"answer_id": 277354,
"author": "Stefan Gehrig",
"author_id": 11354,
"author_profile": "https://Stackoverflow.com/users/11354",
"pm_score": 5,
"selected": false,
"text": "(pixel.r + pixel.g + pixel.b) / 3 imagefilter() $im = imagecreatefrompng('dave.png');\nimagefilter($im, IMG_FILTER_G... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276780",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2128/"
] |
276,790 | <pre><code>(define (repeated f n)
if (= n 0)
f
((compose repeated f) (lambda (x) (- n 1))))
</code></pre>
<p>I wrote this function, but how would I express this more clearly, using simple recursion with repeated?</p>
<p>I'm sorry, I forgot to define my compose function.</p>
<pre><code>(define (compose f g) ... | [
{
"answer_id": 276885,
"author": "C. K. Young",
"author_id": 13,
"author_profile": "https://Stackoverflow.com/users/13",
"pm_score": 0,
"selected": false,
"text": "f n (define (repeated f n)\n (for-each (lambda (i) (f)) (iota n)))\n"
},
{
"answer_id": 276967,
"author": "Kyle... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,807 | <p>The last week on the ACM ICPC Mexico competition, I missed a "return 0" on a C++ program. For this reason we got punished with 20 minutes.</p>
<p>I had read that the standard does not oblige us to write it at the end of a main function. It is implicit, isn't it? How can I prove it? </p>
<p>We were using a Fedora s... | [
{
"answer_id": 276814,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 6,
"selected": true,
"text": "return 0;"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/276807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27211/"
] |
276,808 | <p>I have a 2-dimensional array of objects and I basically want to databind each one to a cell in a WPF grid. Currently I have this working but I am doing most of it procedurally. I create the correct number of row and column definitions, then I loop through the cells and create the controls and set up the correct bi... | [
{
"answer_id": 276868,
"author": "Jobi Joy",
"author_id": 8091,
"author_profile": "https://Stackoverflow.com/users/8091",
"pm_score": 7,
"selected": true,
"text": "<Window.Resources>\n <DataTemplate x:Key=\"DataTemplate_Level2\">\n <Button Content=\"{Binding}\" Height=\"40\... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1509/"
] |
276,816 | <p>It's not obvious to me..</p>
| [
{
"answer_id": 8210219,
"author": "Nicola Musatti",
"author_id": 838975,
"author_profile": "https://Stackoverflow.com/users/838975",
"pm_score": 4,
"selected": false,
"text": "TSVNCache.exe bin C:\\Program Files\\TortoiseSVN\\bin"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/276816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/209/"
] |
276,827 | <p>I wrote this function that's supposed to do StringPadRight("Hello", 10, "0") -> "Hello00000".</p>
<pre><code>char *StringPadRight(char *string, int padded_len, char *pad) {
int len = (int) strlen(string);
if (len >= padded_len) {
return string;
}
int i;
for (i = 0; i < padded_len -... | [
{
"answer_id": 276835,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 1,
"selected": false,
"text": "char buffer[1024];\nmemset(buffer, 0, sizeof(buffer));\nstrncpy(buffer, \"Hello\", sizeof(buffer));\nStringPadRight(bu... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,843 | <p>Is there a way short of writing a seperate batch file or adding a system call to pause or getch or a breakpoint right before the end of the main function to keep a command window open after a command line application has finished running?</p>
<p>Put differently, is there a way in the project properties to run anoth... | [
{
"answer_id": 276849,
"author": "Tom Leys",
"author_id": 11440,
"author_profile": "https://Stackoverflow.com/users/11440",
"pm_score": 0,
"selected": false,
"text": "#include <conio.h>\n\n// .. Your code\n\nint main()\n{\n // More of your code\n\n // Tell the user to press a key \n g... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34799/"
] |
276,853 | <p>Or should they always be a function when business logic is invloved ?</p>
<p>Example: Order.RequiresPayment </p>
<p>property or function ?
There are business rules as for when it is true or not</p>
<p>IS there a pattern that may determine this?</p>
| [
{
"answer_id": 276870,
"author": "Adam Liss",
"author_id": 29157,
"author_profile": "https://Stackoverflow.com/users/29157",
"pm_score": 2,
"selected": false,
"text": "OrderRequiresPayment true false"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/276853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25997/"
] |
276,856 | <p>I have a lot of assignments where I have to continually update a Makefile as I add more subsequently numbered C programs. Is there a way to do this with a loop which iterates over the values 1.1, 1.2, 1.3, etc.?</p>
<pre><code>all: 1.1 1.2 1.3 1.4 1.5 1.6 1.7. 1.8 1.9
1.1: 1.1.o
gcc -o 1.1 $(FLAGS) 1.1.o
1.1.... | [
{
"answer_id": 276860,
"author": "Adam Liss",
"author_id": 29157,
"author_profile": "https://Stackoverflow.com/users/29157",
"pm_score": 0,
"selected": false,
"text": "gcc"
},
{
"answer_id": 276873,
"author": "David Martin",
"author_id": 34879,
"author_profile": "http... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18091/"
] |
276,861 | <p>I would like to dynamically hide a button in one of my views depending on a certain condition.</p>
<p>I tried adding some code to the view controller's <code>-viewWillAppear</code> method, to make the button hidden before displaying the actual view, but I still don't know how to do that.</p>
<p>I have a reference ... | [
{
"answer_id": 276890,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": -1,
"selected": false,
"text": "myButton.hidden = YES;\n"
},
{
"answer_id": 277052,
"author": "Ben Gottlieb",
"author_id": 6694,
"... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35478/"
] |
276,867 | <p>In this <a href="https://stackoverflow.com/questions/275545/does-aspnet-mvc-framework-support-asynchronous-page-execution">question & answer</a>, I found one way to make ASP.NET MVC support asynchronous processing. However, I cannot make it work.</p>
<p>Basically, the idea is to create a new implementation of I... | [
{
"answer_id": 490003,
"author": "LaserJesus",
"author_id": 45207,
"author_profile": "https://Stackoverflow.com/users/45207",
"pm_score": 2,
"selected": false,
"text": "routes.MapRoute(\n \"Default\", \n \"{controller}/{action}\", ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26349/"
] |
276,891 | <p>I'm trying to figure out how to drop/discard a request, I'm basically trying to implement a blocked list of IPs in my app to block spammers and I don't want to return any response (just ignore the request), is this possible in ASP.NET?</p>
<p>Edit: Some of the answers suggest that I could add them in the firewall, ... | [
{
"answer_id": 276894,
"author": "John Boker",
"author_id": 2847,
"author_profile": "https://Stackoverflow.com/users/2847",
"pm_score": 2,
"selected": false,
"text": "Response.Clear();\nResponse.End();\n"
},
{
"answer_id": 276939,
"author": "Kyle Trauberman",
"author_id":... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/676066/"
] |
276,905 | <p>When a user clicks in certain places in my control, I want to change the color of some rows and columns in my grid, then fade it back to the normal color, within say 500ms or so. I haven't decided whether to use Winforms or WPF yet, so advice in either of those technologies would work. Thank you.</p>
<p>Edit: I u... | [
{
"answer_id": 277200,
"author": "Jeff Hillman",
"author_id": 3950,
"author_profile": "https://Stackoverflow.com/users/3950",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.ComponentModel;\nusing System.Drawing;\nusing System.Windows.Forms;\n\nnamespace WindowsApp... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,906 | <p>I'm looking at using CompositeWPF (<a href="http://www.codeplex.com/CompositeWPF" rel="nofollow noreferrer">http://www.codeplex.com/CompositeWPF</a>) - aka Prism, to build an application I am working on.</p>
<p>The application isn't a traditional LOB application, however it does present data and state information t... | [
{
"answer_id": 277200,
"author": "Jeff Hillman",
"author_id": 3950,
"author_profile": "https://Stackoverflow.com/users/3950",
"pm_score": 1,
"selected": false,
"text": "using System;\nusing System.ComponentModel;\nusing System.Drawing;\nusing System.Windows.Forms;\n\nnamespace WindowsApp... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18434/"
] |
276,909 | <p>How can I write a function that takes an array of integers and returns true if their exists a pair of numbers whose product is odd?</p>
<p>What are the properties of odd integers? And of course, how do you write this function in Java? Also, maybe a short explanation of how you went about formulating an algorithm fo... | [
{
"answer_id": 277047,
"author": "Alan",
"author_id": 17205,
"author_profile": "https://Stackoverflow.com/users/17205",
"pm_score": 0,
"selected": false,
"text": "public static boolean hasAtLeastTwoOdds(int[] args) {\n int[] target = args; // make defensive copy\n int oddsFound;\n ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
276,927 | <p>Using <code>MySQL</code>, I can do something like:</p>
<pre><code>SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;
</code></pre>
<p><strong>My Output:</strong></p>
<pre><code>shopping
fishing
coding
</code></pre>
<p>but instead I just want 1 row, 1 col:</p>
<p><strong>Expected Output:</strong></p>
<pre... | [
{
"answer_id": 276949,
"author": "che",
"author_id": 7806,
"author_profile": "https://Stackoverflow.com/users/7806",
"pm_score": 12,
"selected": true,
"text": "GROUP_CONCAT SELECT person_id,\n GROUP_CONCAT(hobbies SEPARATOR ', ')\nFROM peoples_hobbies\nGROUP BY person_id;\n DISTINCT SE... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14966/"
] |
276,931 | <p>recently I downloaded this open source project and I am trying to compile it.</p>
<p>However, one of the line is giving me an error.</p>
<p>"import com.sun.org.apache.xpath.internal.functions.WrongNumberArgsException;"</p>
<p>Seems that i am missing a library.... is there a way to know WHICH library do I need?</p... | [
{
"answer_id": 276964,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 3,
"selected": true,
"text": "org.apache.xpath.functions"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/276931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17085/"
] |
276,955 | <p>Scanner can only get input from system console? not be able to get from any dialog window?</p>
<p>Thanks.</p>
| [
{
"answer_id": 276970,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 3,
"selected": false,
"text": "BufferedReader CharArrayReader CharBuffer FileReader FilterReader InputStreamReader LineNumberReader PipedReader Pus... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36064/"
] |
276,965 | <p>I have noticed that our VMWare VMs often have the incorrect time on them. No matter how many times I reset the time they keep on desyncing.</p>
<p>Has anyone else noticed this? What do other people do to keep their VM time in sync?</p>
<p><strong>Edit:</strong> These are CLI linux VMs btw..</p>
| [
{
"answer_id": 278125,
"author": "bernie",
"author_id": 21141,
"author_profile": "https://Stackoverflow.com/users/21141",
"pm_score": 7,
"selected": true,
"text": "tools.syncTime = true\n tools.syncTime.period = 60\n"
},
{
"answer_id": 7157566,
"author": "Nirav Shah",
"au... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1666/"
] |
276,986 | <p>When the program runs, there is a series of ListView forms. We populated one of them with items (as strings) and we check whether the state of selection has changed. Once it's changed, we grab the text of the selected item using FocusedItem.Text. The first time works just fine but when another selection is made, the... | [
{
"answer_id": 277179,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 0,
"selected": false,
"text": "ItemSelectionChanged\n Item : ListViewItem: {a}\n IsSelected : True\n SelectedItem : ListViewItem: {a}\n ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/276986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,007 | <p>I need to load a bunch of words (about 70,000) from a text file, add it to a hashtable (using soundex as a key) and sort the values. While doing all these I want to show a progress bar using JProgressBar. Articles such as <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html" rel="norefer... | [
{
"answer_id": 277048,
"author": "Zach Scrivena",
"author_id": 20029,
"author_profile": "https://Stackoverflow.com/users/20029",
"pm_score": 3,
"selected": false,
"text": "// INITIALIZATION ON EDT \n\n// JProgressBar progress = new JProgressBar();\n// progress.setStringPainted(true);\n\n... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35307/"
] |
277,010 | <p>What are the benefits of having a member variable declared as read only? Is it just protecting against someone changing its value during the lifecycle of the class or does using this keyword result in any speed or efficiency improvements?</p>
| [
{
"answer_id": 277023,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 9,
"selected": true,
"text": "readonly const readonly"
},
{
"answer_id": 277075,
"author": "Xiaofu",
"author_id": 31967,
"autho... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4653/"
] |
277,016 | <p>I'm having major rendering issues in Safari with the web application I'm working on. Most of the design is done with divs using absolute positioning. This renders fine on Internet Explorer, Firefox, Chrome, Opera, Netscape, and konqueror. In Safari, it's just a jumbled mess. </p>
<p>Does Safari lack support for... | [
{
"answer_id": 277023,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 9,
"selected": true,
"text": "readonly const readonly"
},
{
"answer_id": 277075,
"author": "Xiaofu",
"author_id": 31967,
"autho... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277016",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18893/"
] |
277,018 | <p>I have a class storing the name of a WS method to call and the type and value of the only parameter that service receives (it will be a collection of parameters but lets keep it simple for the example):</p>
<pre><code>public class MethodCall
{
public string Method { get; set; }
public Type ParType { get; set; }... | [
{
"answer_id": 277023,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 9,
"selected": true,
"text": "readonly const readonly"
},
{
"answer_id": 277075,
"author": "Xiaofu",
"author_id": 31967,
"autho... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,029 | <p>Let's say I've got a setup that look something like</p>
<pre><code>phd/code/
phd/figures/
phd/thesis/
</code></pre>
<p>For historical reasons, these all have their own git repositories. But I'd like to combine them into a single one to simplify things a little. For example, right now I might make two sets of chang... | [
{
"answer_id": 277068,
"author": "Patrick_O",
"author_id": 11084,
"author_profile": "https://Stackoverflow.com/users/11084",
"pm_score": 2,
"selected": false,
"text": "git init\ngit add *\ngit commit -a -m \"import everything\"\n"
},
{
"answer_id": 277089,
"author": "Aristotl... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4161/"
] |
277,031 | <p>I have created a VB.Net lending application for a cooperative that caters to widows. The application tracks the members' loans and payments, and is also used as an accounting system. In my first release, the users felt that showing a messagebox every time an error occurs is very annoying. My solution is to output er... | [
{
"answer_id": 277160,
"author": "Adam Liss",
"author_id": 29157,
"author_profile": "https://Stackoverflow.com/users/29157",
"pm_score": 0,
"selected": false,
"text": "\"Show Errors\""
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26087/"
] |
277,053 | <p>My code processes all the files in a folder on a Windows box. I want to offer the user (who happens to also be me) the option to select the folder to be processed, using the standard File Chooser dialog.</p>
<p>I am trying to use the <a href="http://msdn.microsoft.com/en-us/library/ms646927(VS.85).aspx" rel="nofoll... | [
{
"answer_id": 277078,
"author": "Martin Kenny",
"author_id": 6111,
"author_profile": "https://Stackoverflow.com/users/6111",
"pm_score": 2,
"selected": false,
"text": "SHBrowseForFolder browse_for_folder.py"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8014/"
] |
277,055 | <p>There are a couple of different ways to remove <code>HTML tags</code> from an <code>NSString</code> in <code>Cocoa</code>.</p>
<p><a href="http://cocoa.karelia.com/Foundation_Categories/NSString/_Flatten__a_string_.m" rel="noreferrer">One way</a> is to render the string into an <code>NSAttributedString</code> and t... | [
{
"answer_id": 1519230,
"author": "Biranchi",
"author_id": 97651,
"author_profile": "https://Stackoverflow.com/users/97651",
"pm_score": 2,
"selected": false,
"text": "UIWebViewDidfinishLoading NSString *myText = [webView stringByEvaluatingJavaScriptFromString:@\"document.documentEleme... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28106/"
] |
277,077 | <p>I'm a Git newbie. I recently moved a Rails project from Subversion to Git. I followed the tutorial here: <a href="http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/" rel="noreferrer">http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subv... | [
{
"answer_id": 277098,
"author": "Aristotle Pagaltzis",
"author_id": 9410,
"author_profile": "https://Stackoverflow.com/users/9410",
"pm_score": 3,
"selected": false,
"text": "origin git remote -v origin origin/master master origin master origin/master"
},
{
"answer_id": 277186,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8252/"
] |
277,085 | <p>I'm trying to get the name of the executable of a window that is outside my C# 2.0 application. My app currently gets a window handle (hWnd) using the GetForegroundWindow() call from "user32.dll".</p>
<p>From the digging that I've been able to do, I think I want to use the GetModuleFileNameEx() function (from PSAPI... | [
{
"answer_id": 321343,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": false,
"text": "[DllImport(\"user32.dll\")]\npublic static extern IntPtr GetWindowThreadProcessId(IntPtr hWnd, IntPtr ProcessId);\n\nvoid GetP... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21244/"
] |
277,092 | <p>How can I refer a custom function in xml? Suppose that I have a function written in Java and want it to refer by the xml tag, how is this possible?</p>
<p>Current senario: I am using XACML2.0 which contains xml tags and I want to refer some function in Java that will talk to the backend data, I'm unable to refer a... | [
{
"answer_id": 352783,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "Integer[] params = {new Integer(123),new Integer(567)}; \nClass cl=Class.forName(\"stringParsedFromYourXML\"); \nClass[] par=n... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277092",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,102 | <p>I'm working on a System Preferences Pane. It opens fine on some computers, but on other Macs (all running 10.5.5), the preference pane refuses to load and simply hangs, spitting the following into the console:</p>
<pre><code>11/9/08 8:38:50 PM [0x0-0x31031].com.apple.systempreferences[369] Sun Nov 9 20:38:50 Macint... | [
{
"answer_id": 352783,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "Integer[] params = {new Integer(123),new Integer(567)}; \nClass cl=Class.forName(\"stringParsedFromYourXML\"); \nClass[] par=n... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4103/"
] |
277,127 | <p>I have a DataGridView bound to a DataTable. I have one column that's a pseudo-int -- you know the kind, where most of the time it has integers but sometimes instead there's an N/A. This column is a varchar, but I want to have it sort like an int column, treating the N/A as a -1.</p>
<p>The DataGridView provides for... | [
{
"answer_id": 277153,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 1,
"selected": false,
"text": "private void SortByTwoColumns()\n{\n DataView myDataView = DataTable1.DefaultView;\n myDataView.Sort = \"State, ZipCode DE... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5133/"
] |
277,143 | <p>What is the best way to find the total number of words in a text file in Java? I'm thinking Perl is the best on finding things such as this. If this is true then calling a Perl function from within Java would be the best? What would you have done in condition such as this? Any better ideas?</p>
| [
{
"answer_id": 277158,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": -1,
"selected": false,
"text": "word_count word_count"
},
{
"answer_id": 277161,
"author": "Steven A. Lowe",
"author_id": 9345,
"auth... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33203/"
] |
277,149 | <p>I have an ASP.NET MVC project and I have a single action that accepts GET, POST, and DELETE requests. Each type of request is filtered via attributes on my controllers <code>Action</code> methods.</p>
<pre><code>[ActionName(Constants.AdministrationGraphDashboardAction),
AcceptVerbs(HttpVerbs.Post)]
public ActionRe... | [
{
"answer_id": 277218,
"author": "Owen",
"author_id": 4853,
"author_profile": "https://Stackoverflow.com/users/4853",
"pm_score": 5,
"selected": true,
"text": "DELETE /resource.html HTTP/1.1\nHost: domain.com\n"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3957/"
] |
277,150 | <p>How do I define an Extension Method for <code>IEnumerable<T></code> which returns <code>IEnumerable<T></code>?
The goal is to make the Extension Method available for all <code>IEnumerable</code> and <code>IEnumerable<T></code> where <code>T</code> can be an anonymous type.</p>
| [
{
"answer_id": 277198,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 7,
"selected": true,
"text": "static IEnumerable<T> Where<T>(this IEnumerable<T> data, Func<T, bool> predicate)\n{\n foreach(T value in data)\n ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21586/"
] |
277,159 | <p>I have a website with a mix of ASP (classic) and ASP.NET pages.</p>
<p>For some reason Visual Studio (specifically 2008 Pro) keeps trying to compile the ASP classic pages.</p>
<p><strong><em>How do I prevent it from trying to compile the .asp pages?</em></strong></p>
<p>Reason: I'm getting a ton of errors on a sp... | [
{
"answer_id": 277331,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 0,
"selected": false,
"text": "<% @Page language=\"vbscript\" %>"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3747/"
] |
277,178 | <p>I would like to intercept any URL which the user enters in their browser and perform some tasks before allowing the navigation to continue (any way could be good - i.e. via plug in, via proxy or any other creative suggestion).
To clarify - I am not referring to a specific application that needs to catch this, but ra... | [
{
"answer_id": 277182,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 0,
"selected": false,
"text": "onunload window.onunload = function() {\n alert(\"You're leaving this page.\");\n};\n"
},
{
"answer_id": 277216,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,181 | <p>What do I need to do to avoid the "Manual Install" in Firefox for a Plugin and where do I have to go or what do I have to do to avoid the (Author not verified) message when downloading a Plugin. Ideally I would like to initiate the installation of the Plugin automatically and if I need to sign the Plugin somehow to ... | [
{
"answer_id": 11640734,
"author": "XPIinstall",
"author_id": 1550085,
"author_profile": "https://Stackoverflow.com/users/1550085",
"pm_score": 1,
"selected": false,
"text": "<script type=\"application/javascript\">\n<!--\nfunction install (aEvent)\n{\n var params = {\n \"Foo\": { UR... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1890/"
] |
277,187 | <p>I am using BeautifulSoup in Python to parse some HTML. One of the problems I am dealing with is that I have situations where the colspans are different across header rows. (Header rows are the rows that need to be combined to get the column headings in my jargon) That is one column may span a number of columns abo... | [
{
"answer_id": 277280,
"author": "unmounted",
"author_id": 11596,
"author_profile": "https://Stackoverflow.com/users/11596",
"pm_score": 1,
"selected": false,
"text": ">>> execfile('so_ques.py')\n[[' '], [' '], ['bananas bunches'], [' '], [' cars'], [' cars'], [' cars'], [' '], [' trucks... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30105/"
] |
277,195 | <p>Given a bitmap image with some blots of solid color on it, what algorithm would you employ to construct polygons in the same shape as the blots?</p>
<p>This can be done in multiple steps: a high-resolution polygon could be later cut down by a best fit algorithm. Bonus points if you can tell me how to cut the resul... | [
{
"answer_id": 67205568,
"author": "nmz787",
"author_id": 253127,
"author_profile": "https://Stackoverflow.com/users/253127",
"pm_score": 0,
"selected": false,
"text": "findContours"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2653/"
] |
277,197 | <p>The site I'm working on is using a Databound asp:Menu control. When sending 1 menu item it renders HTML that is absolutely correct in Firefox (and IE), but really messed up code in Safari and Chrome. Below is the code that was sent to each browser. I've tested it a few browsers, and they are all pretty similarly ... | [
{
"answer_id": 277231,
"author": "stephenbayer",
"author_id": 18893,
"author_profile": "https://Stackoverflow.com/users/18893",
"pm_score": 5,
"selected": true,
"text": " if (Request.UserAgent.IndexOf(\"AppleWebKit\") > 0)\n {\n\n Request.Browser.Adapters.Clear();\n\n }\n"
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277197",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18893/"
] |
277,207 | <p>I am a bit confused why this code compiles. I leave out the "necessary" <code>#include <OpenGL/gl.h></code> and still the program can compile. How is this possible when my program is calling functions from the GL library, without including them.</p>
<pre><code>int main(int argc, char** argv)
{
glClearC... | [
{
"answer_id": 277233,
"author": "Jason Coco",
"author_id": 34218,
"author_profile": "https://Stackoverflow.com/users/34218",
"pm_score": 3,
"selected": false,
"text": "gcc -o test -Wall -W test.c -framework GLUT -framework OpenGL\n"
},
{
"answer_id": 277239,
"author": "Johan... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28486/"
] |
277,208 | <p>I've decided that I want to use Mercurial for a small, personal project. </p>
<p>Most of the help I've read about it talks about merging changes between multiple users. Since I'm solo, that's not going to happen.</p>
<p>Should I have multiple repositories? My development computer is already backed up nightly to... | [
{
"answer_id": 580828,
"author": "Tim Post",
"author_id": 50049,
"author_profile": "https://Stackoverflow.com/users/50049",
"pm_score": 3,
"selected": false,
"text": "(See where I left off)\n# hg status \n\n(See what I was doing with foo)\n# hg diff -r tip src/foo/foo.c\n\n(Finish one mo... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5314/"
] |
277,224 | <p>I can use <code>set_error_handler()</code> to catch most PHP errors, but it doesn't work for fatal (<code>E_ERROR</code>) errors, such as calling a function that doesn't exist. Is there another way to catch these errors?</p>
<p>I am trying to call <code>mail()</code> for all errors and am running PHP 5.2.3.</p>
| [
{
"answer_id": 2146171,
"author": "user259973",
"author_id": 259973,
"author_profile": "https://Stackoverflow.com/users/259973",
"pm_score": 9,
"selected": false,
"text": "register_shutdown_function register_shutdown_function( \"fatal_handler\" );\n\nfunction fatal_handler() {\n $errf... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28835/"
] |
277,226 | <p>I want to check whether the user is viewing my site from a mobile device or PC. If it's a mobile device, I want to redirect my site URL like Google does...</p>
<p>If possible I would like to implement this in JavaScript. How can I do this?</p>
| [
{
"answer_id": 277541,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "mobile.html winWidth=document.all?document.body.clientwidth:window.innderwidth;\nif (winwidth<800)\n{\n window.location.replac... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,247 | <p>How do I add a certain number of days to the current date in PHP?</p>
<p>I already got the current date with:</p>
<pre><code>$today = date('y:m:d');
</code></pre>
<p>Just need to add x number of days to it</p>
| [
{
"answer_id": 277251,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 5,
"selected": false,
"text": "$tomorrow = date('y:m:d', time() + 86400);\n"
},
{
"answer_id": 277252,
"author": "eplawless",
"author_id": 13... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,256 | <p>Is it possible to have a CSS rule which basically "undoes" a prior rule?</p>
<p>An example:</p>
<pre><code><blockquote>
some text <em>more text</em> other text
</blockquote>
</code></pre>
<p>and let's say there's this CSS:</p>
<pre><code>blockquote {
color: red;
}
</code></pre>
<... | [
{
"answer_id": 277270,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 0,
"selected": false,
"text": "ul {\n color: blue;\n}\nli ul {\n color: sameenvironment; /* Sorry but you have to add the specific colour here */... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9021/"
] |
277,258 | <p>Let's say I have a source file with many preprocessor directives. Is it possible to see how it looks after the preprocessor is done with it?</p>
| [
{
"answer_id": 277262,
"author": "Todd Gamblin",
"author_id": 9122,
"author_profile": "https://Stackoverflow.com/users/9122",
"pm_score": 7,
"selected": false,
"text": " -E Stop after the preprocessing stage; do not run the compiler proper. \n The output is in the form of prepr... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31610/"
] |
277,284 | <p>I've been playing around with ASP.NET MVC and had a question. Or maybe its a concern that I am doing this wrong. Just working on a lame site to stretch my wings a bit. I am sorry this question is not at all concise.</p>
<p>Ok, here's the scenario. When the user visits home/index, the page should show a list of ... | [
{
"answer_id": 282110,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 2,
"selected": false,
"text": "Views\n Shared\n ProductSingle\n ProductList\n ArticleSingle\n ArticleList\n <% Html.Ren... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32203/"
] |
277,288 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/334879/how-do-i-get-the-application-exit-code-from-a-windows-command-line">How do I get the application exit code from a Windows command line?</a> </p>
</blockquote>
<p>In Unix/bash, I can simply say:</p>
<blo... | [
{
"answer_id": 277302,
"author": "JesperE",
"author_id": 13051,
"author_profile": "https://Stackoverflow.com/users/13051",
"pm_score": 4,
"selected": false,
"text": "IF ERRORLEVEL 1 GOTO ERROR\n IF %ERRORLEVEL% NEQ 0 GOTO ERROR\n"
},
{
"answer_id": 1236989,
"author": "ebryn",... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10955/"
] |
277,291 | <p>In Eclipse RCP way of doing things, where should I keep my model objects? And when they are loaded or changed, how should they talk to the views?</p>
<p>I am attempting to port my existing application to Eclipse RCP. It could be viewed as an IDE-like application: I open a file, which contains links to source files.... | [
{
"answer_id": 277411,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 4,
"selected": true,
"text": "MyPlugin.getDefault().getModel()\n"
},
{
"answer_id": 277753,
"author": "jamesh",
"author_id": 4737,
"author... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3827/"
] |
277,316 | <p>I place the following statements in the second row of my grid in the xaml:</p>
<pre><code><ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1">
<ListView Name="listView" Margin="5" Grid.Row="1">
<ListView.View>
<GridView AllowsColumnReorder="Tr... | [
{
"answer_id": 277567,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 3,
"selected": false,
"text": "<Window x:Class=\"WpfApplication1.Window1\"\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,327 | <p>Is there a built in way to determine if a component is fully visible in a Flex application (i.e. not offscreen one way or the other). If not how would I go about figurin it out?</p>
<p>I want to show or hide additional 'next' and 'previous' buttons if my primary 'next' and 'previous' buttons are off screen.</p>
<p... | [
{
"answer_id": 280876,
"author": "Matt MacLean",
"author_id": 22,
"author_profile": "https://Stackoverflow.com/users/22",
"pm_score": 1,
"selected": false,
"text": "public function isComponentWithinStage(c:UIComponent):Boolean {\n var tl:Point = c.localToGlobal(new Point(0, 0));\n ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16940/"
] |
277,340 | <p>I'm executing a query like this</p>
<pre><code>select field from table;
</code></pre>
<p>In that query, there is a loop running on many tables. So, if the field is not present in a table I get a </p>
<blockquote>
<p>Runtime Error 3061</p>
</blockquote>
<p>How can I by pass this error such as that on this error... | [
{
"answer_id": 277366,
"author": "JTeagle",
"author_id": 162171,
"author_profile": "https://Stackoverflow.com/users/162171",
"pm_score": 0,
"selected": false,
"text": "...act on error, or simply ignore if necessary...\n"
},
{
"answer_id": 277369,
"author": "Tomalak",
"aut... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277340",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31132/"
] |
277,345 | <p>I want to be able to compare Dates and Times in Rails without always having to call the to_time or to_date method. So I wrote the following code:</p>
<pre><code>class Date
def ==(other)
if other.kind_of?(Time)
self.to_time == other
else
super(other)
end
end
end
</code></pre>
<p>I know t... | [
{
"answer_id": 277520,
"author": "Christoph Schiessl",
"author_id": 20467,
"author_profile": "https://Stackoverflow.com/users/20467",
"pm_score": 0,
"selected": false,
"text": "kind_of? other to_time <=>"
},
{
"answer_id": 278073,
"author": "segy",
"author_id": 19006,
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11082/"
] |
277,351 | <p>What is a mathematical way of of saying 1 - 1 = 12 for a month calculation? Adding is easy, 12 + 1 % 12 = 1, but subtraction introduces 0, stuffing things up.</p>
<p>My actual requirement is x = x + d, where x must always be between 1 and 12 before and after the summing, and d any unsigned integer.</p>
| [
{
"answer_id": 277355,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "((x - y + 11) % 12) + 1\n // Range = [0, 22]\nx - y + 11\n\n// Range = [0, 11]\n(x - y + 11) % 12\n\n// Range = [1, 12]\... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
277,364 | <p>I've been reading through the details of the <code>System</code> libraries <code>set</code> and <code>get</code> methods yet the parameters are usually Strings.</p>
<p>Would you consider the use of <code>String</code> as parameters bad practise since the inclusion of <code>enum</code>?</p>
<p>A better alternative ... | [
{
"answer_id": 277376,
"author": "Martin",
"author_id": 24364,
"author_profile": "https://Stackoverflow.com/users/24364",
"pm_score": 3,
"selected": false,
"text": "public final String enum"
},
{
"answer_id": 277457,
"author": "akuhn",
"author_id": 24468,
"author_prof... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4857/"
] |
277,368 | <p>I hate to have to ask, but I'm pretty stuck here.</p>
<p>I need to test a sequence of numbers to find the first which has over 500 factors:
<a href="http://projecteuler.net/index.php?section=problems&id=12" rel="nofollow noreferrer">http://projecteuler.net/index.php?section=problems&id=12</a></p>
<p>-At fi... | [
{
"answer_id": 605796,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "public static void main(String[] args) {\n int[] primeFactors = new int[] {2, 2, 3, 5, 5};\n List<Integer> allFactors = ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15075/"
] |
277,383 | <p>I have list store in mysql table file1=(1,2,3,4,6,7) and other list file2 = (3,2,4,8,9,10,12) is not stored in table, i want compare both and result should be like
result=(6,7,8,9,10,12) then calculate the percentage. like 100*(result/file1+file2) in mysql data structure. i do not know how i will do it.
please know... | [
{
"answer_id": 277446,
"author": "Anthony Williams",
"author_id": 5597,
"author_profile": "https://Stackoverflow.com/users/5597",
"pm_score": 1,
"selected": false,
"text": "GROUP BY COUNT HAVING"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,384 | <p>I have a little Perl script (On Windows) that checks some files for me as an aid to my day-to-day business. At the moment it prints out something like...</p>
<pre><code>0%
25%
50%
75%
Complete
</code></pre>
<p>But I can remember scripts I've used in the past that didn't print progress on a line-by-line basis, but ... | [
{
"answer_id": 277407,
"author": "daniels",
"author_id": 9789,
"author_profile": "https://Stackoverflow.com/users/9789",
"pm_score": 3,
"selected": false,
"text": "print \"##### [ 10%]\\r\";\n# Do something\nprint \"########## [ ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277384",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/974/"
] |
277,409 | <p>I want to store a list of the following tuples in a compressed format and I was wondering which algorithm gives me</p>
<ul>
<li>smallest compressed size</li>
<li>fastest de/compression</li>
<li>tradeoff optimum ("knee" of the tradeoff curve)</li>
</ul>
<p>My data looks like this:</p>
<pre><code>(<int>, <... | [
{
"answer_id": 277441,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "[ProtoContract]\npublic class Foo {\n [ProtoMember(1)]\n public int Value1 {get;set;}\n [ProtoMember(2)]\n ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2077/"
] |
277,423 | <p>Does anybody know how I can see the actual machine code that <a href="http://code.google.com/p/v8/" rel="noreferrer">v8</a> generates from Javascript? I've gotten as far as <code>Script::Compile()</code> in <code>src/api.cc</code> but I can't figure out where to go from there.</p>
| [
{
"answer_id": 1197559,
"author": "sstock",
"author_id": 58926,
"author_profile": "https://Stackoverflow.com/users/58926",
"pm_score": 4,
"selected": false,
"text": "scons [your v8 build options here] disassembler=on sample=shell\n ./shell --print_code hello.js\n --- Raw source ---\nprin... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36128/"
] |
277,431 | <p>I have huge number of Word files I need to merge (join) into one file, and will be time consuming to use the Word merger (one by one). Have you experienced any tool that can handle this job?</p>
| [
{
"answer_id": 277449,
"author": "Mitch Wheat",
"author_id": 16076,
"author_profile": "https://Stackoverflow.com/users/16076",
"pm_score": 2,
"selected": false,
"text": "Sub InsertFiles()\n Dim strFileName As String\n Dim rng As Range\n Dim Doc As Document\n Const strPath = \... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277431",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1233512/"
] |
277,437 | <p>This has got to be something simple: I set up a frames page with two possible sources for the target frame based on a form with two options. I used the OnClick event to trap the user's click to show the appropriate page. It works fine in Internet Explorer 7, swapping the two source pages. FireFox 3 and Chrome sh... | [
{
"answer_id": 277456,
"author": "James Hughes",
"author_id": 34671,
"author_profile": "https://Stackoverflow.com/users/34671",
"pm_score": 2,
"selected": false,
"text": "var rsRadio, rsiFrame;\nrsRadio=document.getElementById('County');\nrsiFrame=document.getElementById('RatesFrame')\ni... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277437",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3125/"
] |
277,469 | <p>Right, in short we basically already have a system in place where the HTML content for emails is generated. It's not perfect, but it works.</p>
<p>From this, we need to be able to derive a plaintext alternative for the email. I was thinking of instantly jumping on and creating a RegEx to strip the <code><*></... | [
{
"answer_id": 277839,
"author": "Rob Cooper",
"author_id": 832,
"author_profile": "https://Stackoverflow.com/users/832",
"pm_score": 2,
"selected": true,
"text": "SendMail(\"PageX.aspx\") Page_Load SendMail type=html type=text"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/832/"
] |
277,482 | <p>This has just come up as a question where I worked so I did a little digging and the answer is a ExpertsExchange one. So I hand you over to the original question asker, Manchung:</p>
<blockquote>
<p>I have a project written in pure C which is to be used in embedded system. So, I use pure C to minimize the code size.... | [
{
"answer_id": 277497,
"author": "philant",
"author_id": 18804,
"author_profile": "https://Stackoverflow.com/users/18804",
"pm_score": 4,
"selected": false,
"text": "gcc -Wp,-lang-c-c++-comments -c source.c\n"
},
{
"answer_id": 277549,
"author": "CesarB",
"author_id": 282... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277482",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/342/"
] |
277,485 | <p>In Python, if I do this:</p>
<pre><code>print "4" * 4
</code></pre>
<p>I get</p>
<pre><code>> "4444"
</code></pre>
<p>In Perl, I'd get</p>
<pre><code>> 16
</code></pre>
<p>Is there an easy way to do the former in Perl?</p>
| [
{
"answer_id": 277489,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 8,
"selected": true,
"text": "$ perl -e 'print \"4\" x 4; print \"\\n\"'\n4444\n qw/STRING/ print '-' x 80; # Print row of dashe... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277485",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/974/"
] |
277,492 | <p>In a database, I have a string that contains "default" written in it. I just want to replace that default with 0. I have something like: </p>
<pre><code>select * from tblname where test = 'default'
</code></pre>
<p>I do not want quotes in the replacement for "default".</p>
<p>I want </p>
<pre><code>select * from... | [
{
"answer_id": 277503,
"author": "Dave Anderson",
"author_id": 371,
"author_profile": "https://Stackoverflow.com/users/371",
"pm_score": 0,
"selected": false,
"text": "string myVar = \"0\";\nstring sql = String.Format(@\"select * from tblname where test = \\\"{0}\\\"\", myVar);\n"
},
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,494 | <p>I am trying to let a piece of runtime state decide WHICH implementation of an interface to use, preferably solely by autowiring. </p>
<p>I have tried making an object factory for the interface thet uses dynamic proxies, and I used qualifiers to coerce the @Autowired injections to use the factory. The qualifiers are... | [
{
"answer_id": 277503,
"author": "Dave Anderson",
"author_id": 371,
"author_profile": "https://Stackoverflow.com/users/371",
"pm_score": 0,
"selected": false,
"text": "string myVar = \"0\";\nstring sql = String.Format(@\"select * from tblname where test = \\\"{0}\\\"\", myVar);\n"
},
... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277494",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23691/"
] |
277,502 | <p>My schema specifies a namespace, but the documents don't. What's the simplest way to ignore namespace during JAXB unmarshalling (XML -> object)?</p>
<p>In other words, I have</p>
<pre><code><foo><bar></bar></foo>
</code></pre>
<p>instead of,</p>
<pre><code><foo xmlns="http://tempuri.or... | [
{
"answer_id": 277512,
"author": "VonC",
"author_id": 6309,
"author_profile": "https://Stackoverflow.com/users/6309",
"pm_score": 5,
"selected": true,
"text": "public static Object unmarshallWithFilter(Unmarshaller unmarshaller,\njava.io.File source) throws FileNotFoundException, JAXBExc... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3827/"
] |
277,514 | <p>I've been thinking of rolling my own code for enabling my Delphi application to update seamlessly as I'll be going for "release often, release early" mentality furthermore. There are various Delphi solutions (both freeware and paid) out there and I'd like to ask if you've been using any of them or simply went on wit... | [
{
"answer_id": 3482492,
"author": "BlackOut",
"author_id": 404809,
"author_profile": "https://Stackoverflow.com/users/404809",
"pm_score": 2,
"selected": false,
"text": "[Dirs]\nName: \"{app}\"; Permissions: users-modify\n [Files]\nSource: \"C:\\Your Project\\YourApp.exe\"; DestDir: \"{c... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14716/"
] |
277,521 | <p>How do you identify the file content as being in ASCII or binary using C++?</p>
| [
{
"answer_id": 277538,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": false,
"text": "<= 127 int c;\nstd::ifstream a(\"file.txt\");\nwhile((c = a.get()) != EOF && c <= 127) \n ;\nif(c == EOF... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
277,529 | <p>I’m currently using the OpenNETCF.Desktop.Communication.dll to copy files from my desktop to a CE device, but I keep getting an error:</p>
<p>‘Could not create remote file’ </p>
<p>My development environment is VS2005 (VB.NET)</p>
<p>My code:</p>
<pre><code>ObjRapi.Connect()
ObjRapi.CopyFileToDevice("C:\results.... | [
{
"answer_id": 277548,
"author": "Nathan W",
"author_id": 6335,
"author_profile": "https://Stackoverflow.com/users/6335",
"pm_score": 2,
"selected": true,
"text": "ObjRapi.CopyFileToDevice(\"C:\\results.txt\", \"\\ \\results.txt\") \n ObjRapi.CopyFileToDevice(\"C:\\results.txt\", \"\\My ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1731/"
] |
277,540 | <p>On our build server, we've installed the .NET Framework 2.0 SDK in order to kick off MSBuild and run our builds. Now we are upgrading to the .NET Framework 3.5. We do not want to install the complete Visual Studio, but we cannot find a .NET Framework 3.5 SDK on the internet either?</p>
<p>The question: What do we n... | [
{
"answer_id": 277563,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": true,
"text": ".targets"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2822/"
] |
277,544 | <p>Is there a simple way to <strong>set the focus</strong> (input cursor) of a web page <strong>on the first input element</strong> (textbox, dropdownlist, ...) on loading the page without having to know the id of the element?</p>
<p>I would like to implement it as a common script for all my pages/forms of my web appl... | [
{
"answer_id": 277561,
"author": "bobince",
"author_id": 18936,
"author_profile": "https://Stackoverflow.com/users/18936",
"pm_score": 5,
"selected": false,
"text": "document.forms[0].elements[0].focus();\n"
},
{
"answer_id": 277615,
"author": "Marko Dumic",
"author_id": ... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6461/"
] |
277,546 | <p>Just say I have a file: "HelloWorld.pm" in multiple subdirectories within a Git repository.</p>
<p>I would like to issue a command to find the full paths of all the files matching "HelloWorld.pm":</p>
<p>For example:</p>
<pre><code>/path/to/repository/HelloWorld.pm
/path/to/repository/but/much/deeper/down/HelloWo... | [
{
"answer_id": 277557,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 5,
"selected": false,
"text": "git ls-tree -r HEAD | grep HelloWorld.pm\n"
},
{
"answer_id": 5681657,
"author": "Brian Campbell",
"autho... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36142/"
] |
277,547 | <p>Is it possible to skip a couple of characters in a capture group in regular expressions? I am using .NET regexes but that shouldn't matter.</p>
<p>Basically, what I am looking for is:</p>
<blockquote>
<p>[random text]AB-123[random text]</p>
</blockquote>
<p>and I need to capture 'AB123', without the hyphen.</p>... | [
{
"answer_id": 277585,
"author": "Jeff Hillman",
"author_id": 3950,
"author_profile": "https://Stackoverflow.com/users/3950",
"pm_score": 4,
"selected": false,
"text": "match = Regex.Match( text, \"([A-B]{2,3})-([0-9]{2,3})\" );\nmatchedText = string.Format( \"{0}{1}\", \n match.Group... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8954/"
] |
277,551 | <p>It looks like all the methods for loading SQLite involve loading from a named file using a string. I would like to load SQlite database from memory.</p>
<p>The database is already loaded into memory.</p>
| [
{
"answer_id": 277558,
"author": "Alex B",
"author_id": 23643,
"author_profile": "https://Stackoverflow.com/users/23643",
"pm_score": 5,
"selected": true,
"text": ":memory: sqlite3_open(\":memory:\", &db);\n libsqlite SQLITE_OMIT_MEMORYDB SQLITE_OMIT_MEMORYDB \":memory:\" \":memory:\" sq... | 2008/11/10 | [
"https://Stackoverflow.com/questions/277551",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35223/"
] |
277,552 | <p>Outlook 2007 shows pictures of contacts on the right hand side of the mail form. This only works for your personal contacts and if you have photos.</p>
<p>Is there a way to hook that picture up to the GAL or AD for the company so that all employees photos show automatically? Hopefully without having to write and d... | [
{
"answer_id": 277622,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 1,
"selected": false,
"text": "jpegPhoto jpegPhoto"
}
] | 2008/11/10 | [
"https://Stackoverflow.com/questions/277552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.