qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
411,572 | <p>Given a method <code>DoSomething</code> that takes a (parameterless) function and handles it in some way. Is there a better way to create the "overloads" for functions with parameters than the snippet below?</p>
<pre><code>public static TResult DoSomething<TResult>(Func<TResult> func)
{
//call func(... | [
{
"answer_id": 411586,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "public static Func<TResult> Apply<TResult, TArg> (Func<TArg, TResult> func, TArg arg)\n{\n return () => func(arg);\n}\... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48722/"
] |
411,575 | <p>Given a table such as:</p>
<pre><code>CREATE TABLE dbo.MyTestData (testdata varchar(50) NOT NULL)
ALTER TABLE dbo.MyTestData WITH NOCHECK ADD CONSTRAINT [PK_MyTestData] PRIMARY KEY CLUSTERED (testdata)
</code></pre>
<p>And given that we want a unique list of 'testdata' when we are done gathering items to be ad... | [
{
"answer_id": 411643,
"author": "D'Arcy Rittich",
"author_id": 39430,
"author_profile": "https://Stackoverflow.com/users/39430",
"pm_score": 3,
"selected": true,
"text": "INSERT INTO dbo.MyTestData (testdata ) VALUES (@ptestdata)\nWHERE NOT EXISTS(SELECT 1 FROM dbo.MyTestData WHERE test... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411575",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35696/"
] |
411,579 | <p>Take the method System.Windows.Forms.Control.Invoke(Delegate method)</p>
<p>Why does this give a compile time error:</p>
<pre><code>string str = "woop";
Invoke(() => this.Text = str);
// Error: Cannot convert lambda expression to type 'System.Delegate'
// because it is not a delegate type
</code></pre>
<p>Yet ... | [
{
"answer_id": 411597,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 8,
"selected": true,
"text": "public delegate void Action1();\npublic delegate void Action2();\n\n...\n\nDelegate x = () => Console.WriteLine(\"hi\");\... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/82/"
] |
411,592 | <p>I have a <code>StreamReader</code> object that I initialized with a stream, now I want to save this stream to disk (the stream may be a <code>.gif</code> or <code>.jpg</code> or <code>.pdf</code>).</p>
<p>Existing Code:</p>
<pre><code>StreamReader sr = new StreamReader(myOtherObject.InputStream);
</code></pre>
<o... | [
{
"answer_id": 411605,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": false,
"text": "StreamReader"
},
{
"answer_id": 2702403,
"author": "Adrian",
"author_id": 324660,
"author_profile": ... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50700/"
] |
411,628 | <p>I am trying to learn ASP.NET MVC and I hit this problem: I have a "view product details" form that I want to reuse as an add/edit form. (When you look at the product details, if you have the rights to do it an Edit link should appear; it should redisplay the same form, but with the textbox fields enabled this time.)... | [
{
"answer_id": 411665,
"author": "Todd Smith",
"author_id": 31624,
"author_profile": "https://Stackoverflow.com/users/31624",
"pm_score": 4,
"selected": true,
"text": "ViewData.Model.CanEdit\n"
},
{
"answer_id": 411827,
"author": "Tim Scott",
"author_id": 29493,
"auth... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31793/"
] |
411,631 | <p>I've got a bunch of <a href="http://www.unicode.org/charts/PDF/U1F000.pdf" rel="nofollow noreferrer">unicode characters</a> from U1F000 and upwards, and I'm wondering how to represent them in Java. A Java unicode escape is on the form "\uXXXX" and the Java language specification says that "Representing supplementary... | [
{
"answer_id": 411638,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 1,
"selected": false,
"text": "String foo = new String(new int[]{0x1f000}, 0, 1);\n"
},
{
"answer_id": 412606,
"author": "Alan Moore",
... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13051/"
] |
411,632 | <p>OS X 10.5.6.</p>
<p>My Eclipse 3.4 is going crazy lately. </p>
<p>After innocent operations like typing text or moving some files in Navigator view or saving, it sometimes starts "waiting on background operation", and eats one CPU core, shuffling back and forth tens of megabytes of memory.</p>
<p>I suspect some o... | [
{
"answer_id": 411638,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 1,
"selected": false,
"text": "String foo = new String(new int[]{0x1f000}, 0, 1);\n"
},
{
"answer_id": 412606,
"author": "Alan Moore",
... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6236/"
] |
411,646 | <p>I've been reading a lot lately about how joins in DB queries slow things down. Evidently Google App Engine doesn't even allow them.</p>
<p>I'm wondering how people design an app with no joins though. For example I'm working on an app that has <code>contacts</code> and <code>organizations</code>. A contact can be in... | [
{
"answer_id": 411655,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 2,
"selected": false,
"text": "db.ReferenceProperty"
},
{
"answer_id": 1174751,
"author": "Community",
"author_id": -1,
"author... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42595/"
] |
411,660 | <p>What's pros and cons of using Enterprise Library Unity vs other IoC containers (Windsor, Spring.Net, Autofac ..)?</p>
| [
{
"answer_id": 423168,
"author": "Chris Brandsma",
"author_id": 9443,
"author_profile": "https://Stackoverflow.com/users/9443",
"pm_score": 9,
"selected": true,
"text": " IKernel kernel = new StandardKernel(\n new InlineModule(\n x => x.Bind<ICustomerRep... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50974/"
] |
411,669 | <p>I did some HTTP monitoring with WireShark. Are there more tools like this that allow you to create your own HTTP messsages? Telnet comes to mind</p>
<p>Could be handy to get see how hacker-proof your site is...</p>
| [
{
"answer_id": 411719,
"author": "Parand",
"author_id": 13055,
"author_profile": "https://Stackoverflow.com/users/13055",
"pm_score": 1,
"selected": false,
"text": "nc www.mywebsite.com 80\nGET / HTTP/1.0\n(hit return twice)\n"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411669",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,688 | <p>I am looking to extend jQuery so I can easily retrieve the tagName of the first element in a jQuery object. This is what I have come up with, but it doesn't seem to work:</p>
<pre><code>$.fn.tagName = function() {
return this.each(function() {
return this.tagName;
});
}
alert($('#testElement').tagNa... | [
{
"answer_id": 411692,
"author": "Dan Herbert",
"author_id": 392,
"author_profile": "https://Stackoverflow.com/users/392",
"pm_score": 6,
"selected": true,
"text": "$.fn.tagName = function() {\n return this.get(0).tagName;\n}\nalert($('#testElement').tagName());\n"
},
{
"answe... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5441/"
] |
411,709 | <p>How do you replicate this in F#?</p>
<pre><code>interface IMarker
{
// No members here
}
class MyClass : IMarker
{
// can contain code
}
</code></pre>
<p>Update:
The following code does define marker interface, but none of the answers so far manages to producde class that implements this marker interface (see... | [
{
"answer_id": 411731,
"author": "Pete OHanlon",
"author_id": 43635,
"author_profile": "https://Stackoverflow.com/users/43635",
"pm_score": -1,
"selected": false,
"text": "type IMarker ;\n\ntype MyClass =\n interface IMarker\n"
},
{
"answer_id": 411802,
"author": "Codingday"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28912/"
] |
411,724 | <p>I have a parts database that I am going to be constantly querying for a quoting system. The parts database has 1,400,000+ records in it. The users are just going to start typing part numbers, which they expect the system to be able to find after only a few characters, so I need to be able to do a wildcard search, ... | [
{
"answer_id": 411739,
"author": "Henning",
"author_id": 7034,
"author_profile": "https://Stackoverflow.com/users/7034",
"pm_score": 1,
"selected": false,
"text": "LIKE 'term%'"
},
{
"answer_id": 411824,
"author": "Sam Saffron",
"author_id": 17174,
"author_profile": "... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50356/"
] |
411,726 | <p>On a program of me, the <a href="http://www.splint.org/" rel="nofollow noreferrer">splint</a> checker warns:</p>
<pre><code>expat-test.c:23:1: Function exported but not used outside expat-test: start
A declaration is exported, but not used outside this module. Declaration can
use static qualifier. (Use -exportl... | [
{
"answer_id": 411742,
"author": "Christoph",
"author_id": 48015,
"author_profile": "https://Stackoverflow.com/users/48015",
"pm_score": 3,
"selected": true,
"text": "XML_SetElementHandler()"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411726",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15625/"
] |
411,738 | <p>I am trying to write a static function to Or two expressions, but recieve the following error:</p>
<blockquote>
<p>The parameter 'item' is not in scope.</p>
<p>Description: An unhandled exception
occurred during the execution of the
current web request. Please review the
stack trace for more informatio... | [
{
"answer_id": 411804,
"author": "Cameron MacFarland",
"author_id": 3820,
"author_profile": "https://Stackoverflow.com/users/3820",
"pm_score": 2,
"selected": false,
"text": "var param1 = Expression.Parameter(typeof(T), \"item\");\nvar param2 = Expression.Parameter(typeof(T), \"item\");\... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411738",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51275/"
] |
411,740 | <p>I've used the <a href="http://perldoc.perl.org/functions/localtime.html" rel="noreferrer">localtime</a> function in Perl to get the current date and time but need to parse in existing dates. I have a GMT date in the following format: "20090103 12:00" I'd like to parse it into a date object I can work with and then c... | [
{
"answer_id": 411795,
"author": "Schwern",
"author_id": 14660,
"author_profile": "https://Stackoverflow.com/users/14660",
"pm_score": 7,
"selected": true,
"text": "#!/usr/bin/perl\n\nuse 5.10.0;\n\nuse strict;\nuse warnings;\n\nuse Time::Piece;\n\n# Read the date from the command line.\... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14744/"
] |
411,746 | <p>In a Rails 2.2 project, I'm having users put together a list of projects into a portfolio object (i.e.: <code>PortfolioHasManyProjects</code>). On the page is a Rails form for regular text, titles etc., as well as 2 sortable lists; the lists are used for dragging projects from the global-project-list into your portf... | [
{
"answer_id": 463920,
"author": "Martin Stannard",
"author_id": 38463,
"author_profile": "https://Stackoverflow.com/users/38463",
"pm_score": 0,
"selected": false,
"text": "#sorter\n- @lesson.parts.each do |part|\n %div[part] <- HAML rocks - this constructs a div <div id=\"the_part_id\... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411746",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51446/"
] |
411,752 | <p>What is the best way to generate a string of <code>\t</code>'s in C#</p>
<p>I am learning C# and experimenting with different ways of saying the same thing.</p>
<p><code>Tabs(uint t)</code> is a function that returns a <code>string</code> with <code>t</code> amount of <code>\t</code>'s</p>
<p>For example <code>Tabs(... | [
{
"answer_id": 411762,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 12,
"selected": true,
"text": "string tabs = new string('\\t', n);\n"
},
{
"answer_id": 411766,
"author": "Konrad Rudolph",
"a... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47630/"
] |
411,756 | <p>i'm trying to debug a program, that i don't have the source code for: explorer.exe</p>
<p>It's a native Win32 application from Microsoft, and symbols are avilable.</p>
<p>All i need now is a (graphical) debugger that supports symbols.</p>
<ul>
<li>OllyDbg is a graphical debugger, but doesn't support symbols.</li>... | [
{
"answer_id": 1567446,
"author": "ericj",
"author_id": 189997,
"author_profile": "https://Stackoverflow.com/users/189997",
"pm_score": 2,
"selected": false,
"text": "l+t"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
411,758 | <p>I'm not sure if this is the right place to post these kind of questions, if it's not so, please (politely) let me know... :-)</p>
<p>I need to save files greater than 16MB on a mysql database from a php site...</p>
<p>I've already changed the c:\xampp\mysql\bin\my.cnf</p>
<p>and set max_allowed_packet to 16 MB, a... | [
{
"answer_id": 412446,
"author": "esmajic",
"author_id": 31906,
"author_profile": "https://Stackoverflow.com/users/31906",
"pm_score": -1,
"selected": false,
"text": "; Maximum allowed size for uploaded files.\nupload_max_filesize = 16M\n\n; Maximum size of POST data that PHP will accept... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,761 | <p>Is it possible to have a variable number of fields using django forms?</p>
<p>The specific application is this:</p>
<p>A user can upload as many pictures as they want on the image upload form. Once the pictures are uploaded they are taken to a page where they can give the pictures a name and description. The numbe... | [
{
"answer_id": 411852,
"author": "Alcides",
"author_id": 28516,
"author_profile": "https://Stackoverflow.com/users/28516",
"pm_score": 3,
"selected": false,
"text": "python manage.py shell\n"
},
{
"answer_id": 411862,
"author": "user51463",
"author_id": 51463,
"author... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411761",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2908/"
] |
411,771 | <p>When using TortoiseCVS, as I checkout a module, dialog (see <a href="http://img.skitch.com/20090104-b2pne85gp2xn9bhcgwjfsfbkcr.png" rel="nofollow noreferrer">screenshot</a>) telling me "Trouble launching CVS process", "The handle is invalid". Any idea on how this would be happening?</p>
| [
{
"answer_id": 61380755,
"author": "hkbharath",
"author_id": 1761743,
"author_profile": "https://Stackoverflow.com/users/1761743",
"pm_score": 0,
"selected": false,
"text": "cvs.exe"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5295/"
] |
411,777 | <p>I'd like to know how one would create an application that starts in the background. I'm currently creating a webserver in C as a little project, both to learn some old C and Linux Socket Programming. But my current concern is:</p>
<ul>
<li>How do I get the current process number?</li>
</ul>
<p>I want to get this b... | [
{
"answer_id": 411787,
"author": "opyate",
"author_id": 51280,
"author_profile": "https://Stackoverflow.com/users/51280",
"pm_score": 1,
"selected": false,
"text": "ps aux | grep processname\n"
},
{
"answer_id": 411792,
"author": "JesperE",
"author_id": 13051,
"author... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39106/"
] |
411,798 | <p>I am presently working on converting a 32-bit application into a 64-bit application in C. This application is currently working on x86 architecture (Windows, osx, Unix, Linux). So, before starting coding, I wanted to know what do I need to consider while converting the application.</p>
| [
{
"answer_id": 411807,
"author": "Christoph",
"author_id": 48015,
"author_profile": "https://Stackoverflow.com/users/48015",
"pm_score": 3,
"selected": false,
"text": "size_t"
},
{
"answer_id": 411816,
"author": "geocar",
"author_id": 37507,
"author_profile": "https:/... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51451/"
] |
411,810 | <p>Without having the full module path of a Django model, is it possible to do something like:</p>
<pre><code>model = 'User' [in Django namespace]
model.objects.all()
</code></pre>
<p>...as opposed to:</p>
<pre><code>User.objects.all().
</code></pre>
<p>EDIT: I am trying to make this call based on command-line inpu... | [
{
"answer_id": 411814,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "from django.authx.models import User\nmodel = User\nmodel.objects.all()\n"
},
{
"answer_id": 411822,
"author": "Ha... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44440/"
] |
411,823 | <p>I'm just learning Qt with C++. I have successfully implemented signals and slots to trap standard events like <code>ButtonPushed()</code>, etc. However, I want to have a function called when I mouse over and mouse out of a <code>QLabel</code>. It looks like <a href="http://doc.qt.io/qt-4.8/qhoverevent.html" rel="nof... | [
{
"answer_id": 411849,
"author": "shoosh",
"author_id": 9611,
"author_profile": "https://Stackoverflow.com/users/9611",
"pm_score": 4,
"selected": false,
"text": "Qt::WA_Hover"
},
{
"answer_id": 414870,
"author": "Michael Bishop",
"author_id": 45114,
"author_profile":... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411823",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48923/"
] |
411,825 | <p>I've have just been stumped with this problem for an hour and I annoyingly found the problem eventually.</p>
<p><strong>THE CIRCUMSTANCES</strong></p>
<p>I have a table which users a string as a primary key, this table has various many to one and many to many relationships all off this primary key.</p>
<p>When se... | [
{
"answer_id": 447145,
"author": "Mark Struzinski",
"author_id": 1284,
"author_profile": "https://Stackoverflow.com/users/1284",
"pm_score": 2,
"selected": false,
"text": "return session.Get<T>(id);\n"
},
{
"answer_id": 528317,
"author": "Sachin Chavan",
"author_id": 6288... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26081/"
] |
411,829 | <p>can anybody please, explain that what does SET IDENTITY INSERT ON AND OFF do. </p>
<p>Thanks,
Chris</p>
| [
{
"answer_id": 411885,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 3,
"selected": false,
"text": "SET IDENTITY_INSERT YourTable ON"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47957/"
] |
411,837 | <p>This is in continuation with the question posted here:
<a href="https://stackoverflow.com/questions/408358/finding-the-center-of-mass-on-a-2d-bitmap">Finding the center of mass on a 2D bitmap</a> which talked about finding the center of mass in a boolean matrix, as the example was given.</p>
<p>Suppose now we expan... | [
{
"answer_id": 411855,
"author": "PEZ",
"author_id": 44639,
"author_profile": "https://Stackoverflow.com/users/44639",
"pm_score": 3,
"selected": true,
"text": "matrix = [[1.0 if x == \"X\" else 0.0 for x in y] for y in \"\"\".XX......\n.XXX..X..\n.....XXX.\n......X..\n.XX......\n.X........ | 2009/01/04 | [
"https://Stackoverflow.com/questions/411837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24545/"
] |
411,841 | <p>Adding source files more than one directory away (e.g. ../../source.cpp or ../../../somewhere_else/source.cpp, vs. just source.cpp or ../source.cpp) to the SOURCES= declaration in a WDK/DDK build yields the following error:</p>
<pre><code>Ignoring invalid directory prefix in SOURCES= entry
</code></pre>
<p>Is it p... | [
{
"answer_id": 411854,
"author": "jrk",
"author_id": 3815,
"author_profile": "https://Stackoverflow.com/users/3815",
"pm_score": 4,
"selected": true,
"text": "build"
},
{
"answer_id": 17957706,
"author": "Robert Kelly",
"author_id": 619255,
"author_profile": "https://... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3815/"
] |
411,843 | <p>I am currently writing a simple password generator (C#). For that I need some random numbers.</p>
<p>Is it OK to simply use the <a href="http://msdn.microsoft.com/en-us/library/system.random.aspx" rel="nofollow noreferrer">Random</a> class that ships with .NET or are there any known problems with that? </p>
| [
{
"answer_id": 411850,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 4,
"selected": false,
"text": "Random RandomClass = new Random();\nint RandomNumber = RandomClass.Next(); // Random number between 1 and 2147483647\ndoub... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,857 | <p>This is an erlang problem, it seems. I have this code to test the client sending data, written in Actionscript 3:</p>
<pre><code>var socket:Socket=new Socket("localhost", 2345);
socket.addEventListener(Event.CONNECT, connected);
private function connected(event:Event):void {
socket.writeInt(12); //packet lengt... | [
{
"answer_id": 413197,
"author": "Alexey Romanov",
"author_id": 9204,
"author_profile": "https://Stackoverflow.com/users/9204",
"pm_score": 2,
"selected": false,
"text": "Listen"
},
{
"answer_id": 413565,
"author": "Community",
"author_id": -1,
"author_profile": "http... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411857",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49018/"
] |
411,864 | <p>What does <code>SET ANSI_NULLS OFF</code> do?</p>
| [
{
"answer_id": 411868,
"author": "dkretz",
"author_id": 31641,
"author_profile": "https://Stackoverflow.com/users/31641",
"pm_score": 4,
"selected": false,
"text": "SET ANSI_NULLS"
},
{
"answer_id": 411869,
"author": "Otávio Décio",
"author_id": 48684,
"author_profile... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47957/"
] |
411,876 | <p>I'm converting an algorithm I wrote in Java to Objective-C. In java the BigDecimal class handles base-10 numbers and can take the primitive double as a constructor arg. In Cocoa's NSDecimalNumber class, however, there is no direct way to construct an instance using a primitive double.</p>
<p>Currently I'm using t... | [
{
"answer_id": 411893,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "https://Stackoverflow.com/users/49485",
"pm_score": 2,
"selected": false,
"text": "[NSDecimalNumber numberWithDouble:myDouble]\n"
},
{
"answer_id": 1988093,
"author": "Futurist",
"aut... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4897/"
] |
411,877 | <p>I'm trying to implement a "Popular Products" feature. Basically, every time a Product is viewed, I want to log to the database the number of views of that product. Where do I put the hooks for something like this? I have seen things that are based on building some sort of traffic analytics, but I am looking for idea... | [
{
"answer_id": 411920,
"author": "eelco",
"author_id": 8293,
"author_profile": "https://Stackoverflow.com/users/8293",
"pm_score": 2,
"selected": false,
"text": "@product = Product.find(params[:id])\n"
},
{
"answer_id": 412574,
"author": "Stein G. Strindhaug",
"author_id"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,896 | <p>I'm trying to solve the problem of passing a 2-dimensional table into JavaScript AJAX application through SOAP web services. I'm trying to pass data into JavaScript web page through ASP.NET web service declared with following attributes:</p>
<pre><code>[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[... | [
{
"answer_id": 411920,
"author": "eelco",
"author_id": 8293,
"author_profile": "https://Stackoverflow.com/users/8293",
"pm_score": 2,
"selected": false,
"text": "@product = Product.find(params[:id])\n"
},
{
"answer_id": 412574,
"author": "Stein G. Strindhaug",
"author_id"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411896",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14395/"
] |
411,902 | <p>I am trying to port my first Django 1.0.2 application to run on OSX/Leopard with Apache + mod_python 3.3.1 + python 2.6.1 (all running in 64-bit mode) and I am experiencing an occasional error when uploading a file that was not present when testing with the Django development server. </p>
<p>The code for the upload... | [
{
"answer_id": 413089,
"author": "Bartosz Radaczyński",
"author_id": 985,
"author_profile": "https://Stackoverflow.com/users/985",
"pm_score": 1,
"selected": false,
"text": "Client read error (Timeout?)\n"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,905 | <p>My iphone app has several text fields. The "Did End on Exit" event on each text field calls a single action. How can I tell which text field called the action? Can I detect this from the sender object which is passed to the action?</p>
| [
{
"answer_id": 411930,
"author": "Lily Ballard",
"author_id": 582,
"author_profile": "https://Stackoverflow.com/users/582",
"pm_score": 3,
"selected": false,
"text": "sender"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51472/"
] |
411,906 | <p>What are some of the biggest design flaws in C# or the .NET Framework in general?</p>
<p>Example: there is no non-nullable string type and you have to check for DBNull when fetching values from an IDataReader.</p>
| [
{
"answer_id": 411919,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 6,
"selected": false,
"text": "Reset()"
},
{
"answer_id": 411947,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile"... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411906",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48722/"
] |
411,921 | <p>This is probably one of the most common tasks / problems when programming; You need to store the configuration of your application somewhere.</p>
<p>While I'm trying to create a webserver or other applications, I'd like to keep the code as clean as possible since my main interest in programming is architecture. Thi... | [
{
"answer_id": 411958,
"author": "Charlie Martin",
"author_id": 35092,
"author_profile": "https://Stackoverflow.com/users/35092",
"pm_score": 3,
"selected": false,
"text": "#include <stdio.h>\n\nFILE * fp ;\nchar bufr[MAXLINE];\n\nif((fp = fopen(filename, \"r\") != NULL){\n while(! fe... | 2009/01/04 | [
"https://Stackoverflow.com/questions/411921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39106/"
] |
411,945 | <p>I'm new to java but I would have thought this was pretty straight foward. I display a JDialog for user input when importing data from a text file but the dialog isn't being painted properly on other computers.</p>
<p>On my computer if I run the program from within NetBeans or from the command prompt then the dialog... | [
{
"answer_id": 412685,
"author": "Nick Fortescue",
"author_id": 5346,
"author_profile": "https://Stackoverflow.com/users/5346",
"pm_score": 0,
"selected": false,
"text": "UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());\n"
}
] | 2009/01/04 | [
"https://Stackoverflow.com/questions/411945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
411,954 | <p>Over the years most web developers will have built an arsenal of tools or "tools of the trade". Recently I discovered rsync and I am surprised how I managed to live without it all these years. What tools do you consider to be the most compelling? Please stick to the ones you use on a regular basis and swear by. They... | [
{
"answer_id": 485811,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "echo 'foo=1&bar=2' | lynx -post\\_data -mime\\_header http://localhost/my/app"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/411954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50475/"
] |
411,974 | <p>My objective is to retry an asynchronous HttpWebRequest when it fails.</p>
<p>When I <a href="http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.abort.aspx" rel="nofollow noreferrer">Abort()</a> an HttpWebRequest, I cannot BeginGetResponse() again. So the only way to request again probably is recreat... | [
{
"answer_id": 34860910,
"author": "Elad Nava",
"author_id": 1123355,
"author_profile": "https://Stackoverflow.com/users/1123355",
"pm_score": 3,
"selected": true,
"text": "HttpWebRequest"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/411974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48465/"
] |
411,976 | <p>I am in the early stages of planning and designing a custom accounting application for my firm. My goal is to utilize an open source relational database for the data storage portion and I'm aware of two solid databases that are widely supported: MySQL and PostgreSQL.</p>
<p>For a system that will require transactio... | [
{
"answer_id": 412015,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 3,
"selected": false,
"text": "FLOAT"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/411976",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51482/"
] |
411,982 | <p>For my Swing project, I need to support both <strong>Java 5</strong> and <strong>Java 6</strong>.
I have defined a custom <code>JComponent</code> (call it <code>Picture</code>) and, after embedding it in a <code>JScrollPane</code>, I put it in a <code>JPanel</code> that uses DesignGridLayout manager. </p>
<p>Design... | [
{
"answer_id": 412002,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 0,
"selected": false,
"text": "try {\n Field fld=Class.forName(\"java.awt.Dialog$ModalExclusionType\").getField(\"TOOLKIT_EXCLUDE\");\n Method ... | 2009/01/05 | [
"https://Stackoverflow.com/questions/411982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1440720/"
] |
412,011 | <p>I have been working on a WCF service library where hopefully all the business logic will end up living. The problem that I am running into is that sometimes I have to make quick fixes to a service and in order to apply those fixes I have to stop the Windows Service, replace the service dll and then restart the Windo... | [
{
"answer_id": 412072,
"author": "Sailing Judo",
"author_id": 42620,
"author_profile": "https://Stackoverflow.com/users/42620",
"pm_score": 2,
"selected": false,
"text": "Assembly a = GetAssembly();\nType t = ExportModule.GetExportType(a);\nif (t == null) throw new Exception(\"No proper ... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48832/"
] |
412,014 | <p>I'm trying to make a form invisible for x amount of time in c#.
Any ideas?</p>
<p>Thanks,
Jon</p>
| [
{
"answer_id": 412029,
"author": "BFree",
"author_id": 15861,
"author_profile": "https://Stackoverflow.com/users/15861",
"pm_score": 2,
"selected": false,
"text": "Timer timer = new Timer();\nprivate int counter = 0;\n"
},
{
"answer_id": 412031,
"author": "Matt Hamilton",
... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412014",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40399/"
] |
412,019 | <p>I've been profiling an application all day long and, having optimized a couple bits of code, I'm left with this on my todo list. It's the activation function for a neural network, which gets called over a 100 million times. According to dotTrace, it amounts to about 60% of the overall function time.</p>
<p>How woul... | [
{
"answer_id": 412027,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "https://Stackoverflow.com/users/49485",
"pm_score": 7,
"selected": true,
"text": "public static float Sigmoid(double value) {\n return 1.0f / (1.0f + (float) Math.Exp(-value));\n}\n"
},
{
... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40164/"
] |
412,022 | <p>I have a stored procedure in my database that calculates the distance between two lat/long pairs. This stored procedure is called "DistanceBetween". I have a SQL statement allows a user to search for all items in the Items table ordered by the distance to a supplied lat/long coordinate. The SQL statement is as follo... | [
{
"answer_id": 423176,
"author": "Sam",
"author_id": 47636,
"author_profile": "https://Stackoverflow.com/users/47636",
"pm_score": 1,
"selected": false,
"text": "session.CreateSqlQuery(@\"SELECT {item.*}, dbo.DistanceBetween(:lat1, :lat2, {item}.Latitude, {item}.Longitude) AS Distance\n ... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
412,070 | <p>Is there a good way, in a javascript onfocus() handler, to trampoline the focus to the next item in the tab order, without having to manually enter the ID of the item that should be next?</p>
<p>I built an HTML date picker in Django/jQuery. It's a line edit followed by a calendar icon that pops up a calendar. I w... | [
{
"answer_id": 412074,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "https://Stackoverflow.com/users/49485",
"pm_score": 2,
"selected": false,
"text": "$(\"#your-calendar-icon\").focus(function() {\n $(this).trigger(\"blur\");\n);\n"
},
{
"answer_id": 412144,... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
412,101 | <p>Let's say I have a table <em>tbl</em> with columns <em>id</em> and <em>title</em>.
I need to change all values of title column:</p>
<ol>
<li>from 'a-1' to 'a1',</li>
<li>from 'a.1' to 'a1',</li>
<li>from 'b-1' to 'b1',</li>
<li>from 'b.1' to 'b1'.</li>
</ol>
<p>Right now, I'm performing two UPDATE statements:</p>
... | [
{
"answer_id": 412115,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 2,
"selected": false,
"text": "UPDATE tbl \nSET title = left(title, 1) + right(title, 1) \nWHERE title IN ('a-1', 'a.1', 'b-1', 'b.1')\n"
},
{
... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412101",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1353085/"
] |
412,103 | <p>For the purposes of unit testing I'd like to create an iPhone project target in Xcode that includes all of the release application files, plus some additional files containing code useful for UI unit testing.</p>
<p>I can do this by duplicating the original application target; however, the problem with this is that... | [
{
"answer_id": 4401819,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 0,
"selected": false,
"text": ".m"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51503/"
] |
412,124 | <p>I just did a clean build and reinstall of lighttpd 1.4.20 on Mac OS X 10.5 and I can't find the configuration file.</p>
<p>My goal was to install lighty to a single directory instead of being spread around, so I used the following commands successfully:</p>
<pre><code>./configure --prefix="/usr/local/lighttpd"
sud... | [
{
"answer_id": 4401819,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 0,
"selected": false,
"text": ".m"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/68788/"
] |
412,151 | <pre><code>public void test()
{
List<int> list = new List<int>();
list.Add(1);
list.Add(2);
list.Add(3);
for (int i = 1; i <= list.Count; i++)
{
textBx.Text = list[i].ToString();
// I want it to be textBx1.Text = list[1].ToStrin... | [
{
"answer_id": 412160,
"author": "Matt Hamilton",
"author_id": 615,
"author_profile": "https://Stackoverflow.com/users/615",
"pm_score": 4,
"selected": true,
"text": " var textBox = this.Controls.Find(\"textBx\" + i, true) as TextBox;\n textBox.Text = list[i].ToString();\n"
},
{
... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42564/"
] |
412,165 | <p>I've been learning C++, coming from C#, where I've gotten used to using service providers: basically a Dictionary<Type, object>. Unfortunately, I can't figure out how to do this in C++. So the questions are basically:</p>
<ol>
<li><p>How would I make a dictionary in C++.</p></li>
<li><p>How would I use 'Type'... | [
{
"answer_id": 412168,
"author": "duffymo",
"author_id": 37213,
"author_profile": "https://Stackoverflow.com/users/37213",
"pm_score": 0,
"selected": false,
"text": "std::map<K, T>"
},
{
"answer_id": 412188,
"author": "wilhelmtell",
"author_id": 456,
"author_profile":... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51071/"
] |
412,169 | <p>How do I find an item in array which has the most occurrences?</p>
<pre><code>[1, 1, 1, 2, 3].mode
=> 1
['cat', 'dog', 'snake', 'dog'].mode
=> dog
</code></pre>
| [
{
"answer_id": 412177,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "https://Stackoverflow.com/users/49485",
"pm_score": 7,
"selected": true,
"text": "arr = [1, 1, 1, 2, 3]\n\nfreq = arr.inject(Hash.new(0)) { |h,v| h[v] += 1; h }\n#=> {1=>3, 2=>1, 3=>1}\n"
},
{
... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
412,174 | <p>In debugging a game that is full screen (on one of my two monitors) when it crashes and the debugger (on the other monitor, not captured) displays the crash location, the cursor is still hidden. Is there any way to force the cursor to reappear? I can click around blindly and it works, but it's not terrible accurate.... | [
{
"answer_id": 412177,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "https://Stackoverflow.com/users/49485",
"pm_score": 7,
"selected": true,
"text": "arr = [1, 1, 1, 2, 3]\n\nfreq = arr.inject(Hash.new(0)) { |h,v| h[v] += 1; h }\n#=> {1=>3, 2=>1, 3=>1}\n"
},
{
... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
412,178 | <pre><code>int[] mylist = { 2, 4, 5 };
IEnumerable<int> list1 = mylist;
list1.ToList().Add(1);
// why 1 does not get addedto list1??
</code></pre>
| [
{
"answer_id": 413275,
"author": "Andrei Rînea",
"author_id": 1796,
"author_profile": "https://Stackoverflow.com/users/1796",
"pm_score": 1,
"selected": false,
"text": "int[] mylist = { 2, 4, 5 };\nIEnumerable<int> list1 = mylist;\nList<int> lst = list1.ToList();\nlst.Add(1);\nmylist = l... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42564/"
] |
412,183 | <p>I want to convert function object to function.</p>
<p>I wrote this code, but it doesn't work.</p>
<pre><code>#include <iostream>
typedef int (*int_to_int)(int);
struct adder {
int n_;
adder (int n) : n_(n) {}
int operator() (int x) { return x + n_; }
operator int_to_int () {
return ... | [
{
"answer_id": 412199,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 3,
"selected": true,
"text": "LRESULT CALLBACK my_callback(HWND hwnd, UINT ui, WPARAM wp, LPARAM lp) {\n Window * self = reinterpret_ca... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412183",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28720/"
] |
412,184 | <p>Back in the ITAR era, there was a <a href="http://www.cypherspace.org/adam/rsa/perl-dh.html" rel="nofollow noreferrer">popular sig that performed Diffie-Hellman key exchange</a>:</p>
<pre><code>#!/usr/bin/perl -- -export-a-crypto-system-sig Diffie-Hellman-2-lines
($g,$e,$m)=@ARGV,$m||die"$0 gen exp mod\n";print`ech... | [
{
"answer_id": 412254,
"author": "ShreevatsaR",
"author_id": 4958,
"author_profile": "https://Stackoverflow.com/users/4958",
"pm_score": 4,
"selected": true,
"text": "dc"
},
{
"answer_id": 412956,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https:/... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412184",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14105/"
] |
412,187 | <p>I'm trying to implement the Media Player custom field control described in this MSDN article: <a href="http://msdn.microsoft.com/en-us/library/aa981226.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa981226.aspx</a></p>
<p>I created a custom site column (of type Link) in a custom content t... | [
{
"answer_id": 414512,
"author": "George Durzi",
"author_id": 36057,
"author_profile": "https://Stackoverflow.com/users/36057",
"pm_score": 2,
"selected": true,
"text": "<Assembly DeploymentTarget=\"GlobalAssemblyCache\" Location=\"MyControlAssembly.dll\">\n <SafeControls>\n <SafeCon... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36057/"
] |
412,214 | <p>I would like to force my python app to the front if a condition occurs. I'm using Kubuntu & QT3.1</p>
<p>I've tried setActiveWindow(), but it only flashes the task bar in KDE.</p>
<p>I think Windows has a function bringwindowtofront() for VB.</p>
<p>Is there something similar for KDE?</p>
| [
{
"answer_id": 412294,
"author": "lpfavreau",
"author_id": 35935,
"author_profile": "https://Stackoverflow.com/users/35935",
"pm_score": 1,
"selected": false,
"text": "setActiveWindow"
},
{
"answer_id": 415183,
"author": "user51517",
"author_id": 51517,
"author_profil... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51517/"
] |
412,218 | <p>I'm currently a .NET developer, but I'm starting to work with Flex a little bit and I've found the community to be great. There are a lot of great resources out there, but one of the issues I'm running into conceptually is how to organize a flex project. Coming from the standpoint of a "traditional" ASP.NET web ap... | [
{
"answer_id": 412298,
"author": "Brandon",
"author_id": 23133,
"author_profile": "https://Stackoverflow.com/users/23133",
"pm_score": 2,
"selected": false,
"text": "ProjectName\n-assets\n--images\n-lib\n-locale\n-src\n--com\n---company\n----project\n-----model\n-----events\n-----view\n-... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412218",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4541/"
] |
412,227 | <p>You always hear that functional code is inherently easier to parallelize than non-functional code, so I decided to write a function which does the following:</p>
<p>Given a input of strings, total up the number of unique characters for each string. So, given the input <code>[ "aaaaa"; "bbb"; "ccccccc"; "abbbc" ]</c... | [
{
"answer_id": 414242,
"author": "Brian",
"author_id": 19299,
"author_profile": "https://Stackoverflow.com/users/19299",
"pm_score": 3,
"selected": true,
"text": "#light\n\nlet input = [| \"aaaaa\"; \"bbb\"; \"ccccccc\"; \"abbbc\" |]\n\n// first discover all unique letters used\nlet Lett... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40516/"
] |
412,230 | <p>I'm working on a new project and I'm using the repository pattern, I have my repository that pulls the data from the database and a "service" class which uses the repository and does all the business logic.</p>
<p>something similar to the following;</p>
<pre><code>public class UserRepository : IUserRepository
{
... | [
{
"answer_id": 412239,
"author": "Norman Ramsey",
"author_id": 41661,
"author_profile": "https://Stackoverflow.com/users/41661",
"pm_score": 2,
"selected": false,
"text": "UserService"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412230",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17176/"
] |
412,256 | <p>Can the iPhone determine if you're facing north, south, east or west?</p>
| [
{
"answer_id": 477290,
"author": "Niels Hansen",
"author_id": 56329,
"author_profile": "https://Stackoverflow.com/users/56329",
"pm_score": 0,
"selected": false,
"text": "[[self delegate] currentDirectionLat:newLocation.coordinate.latitude Long:newLocation.coordinate.longitude];\n"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46182/"
] |
412,300 | <p>Smashed my head against this a bit too long. How do I prevent a user from browsing a site's pages after they have been logged out using FormsAuthentication.SignOut? I would expect this to do it:</p>
<pre><code>FormsAuthentication.SignOut();
Session.Abandon();
FormsAuthentication.RedirectToLoginPage();
</code></pre>... | [
{
"answer_id": 412312,
"author": "jwalkerjr",
"author_id": 689,
"author_profile": "https://Stackoverflow.com/users/689",
"pm_score": 4,
"selected": false,
"text": "<authentication mode=\"Forms\">\n <forms name=\"MyCookie\" loginUrl=\"Login.aspx\" protection=\"All\" timeout=\"90\" slidin... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38398/"
] |
412,305 | <p>If I create a TcpChannel using port zero i.e. allowing .Net Remoting to allocate an available port, is there anyway to then determine which port number has been allocated? </p>
<p>I know that I can specify the port number when creating the channel, however I don't want to do this as I want to run multiple instance... | [
{
"answer_id": 412320,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 3,
"selected": false,
"text": "TcpServerChannel"
},
{
"answer_id": 426029,
"author": "daveywc",
"author_id": 10135,
"author_prof... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412305",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10135/"
] |
412,314 | <p>I'm trying to find out the best practices for real-world application development. I'm having trouble understanding how to properly configure third-party libraries for deployment as a standalone package. It seems that ASDF-INSTALL and ASDF are intended to install libraries to either home or site, changing the state... | [
{
"answer_id": 413175,
"author": "Ramarren",
"author_id": 7770,
"author_profile": "https://Stackoverflow.com/users/7770",
"pm_score": 1,
"selected": false,
"text": "asdf:*central-registry*"
},
{
"answer_id": 427059,
"author": "jrockway",
"author_id": 8457,
"author_pro... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412314",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45051/"
] |
412,319 | <p>I'm using the built-in system class for sending emails in .NET. It's in System.Mail namespace or something like that.</p>
<p>I need to add an interface to this class so I can swap it out for testing or another implementation.</p>
<p>To do this, I just define a class that wraps this built-in class?</p>
<p>Is this ... | [
{
"answer_id": 412327,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "IEmail"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412319",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
412,331 | <p>I am trying to pass an XML list to a view but I am having trouble once I get to the view.</p>
<p>My controller:</p>
<pre><code> public ActionResult Search(int isbdn)
{
ViewData["ISBN"] = isbdn;
string pathToXml= "http://isbndb.com/api/books.xml?access_key=DWD3TC34&index1=isbn&value1=";
... | [
{
"answer_id": 412335,
"author": "Nick Berardi",
"author_id": 17,
"author_profile": "https://Stackoverflow.com/users/17",
"pm_score": 2,
"selected": false,
"text": "ViewData[\"XmlItems\"] = items;\n"
},
{
"answer_id": 412337,
"author": "Moran Helman",
"author_id": 1409636... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412331",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/67445/"
] |
412,341 | <p>Do I use varchar(36) or are there any better ways to do it?</p>
| [
{
"answer_id": 7168916,
"author": "KCD",
"author_id": 516748,
"author_profile": "https://Stackoverflow.com/users/516748",
"pm_score": 5,
"selected": false,
"text": "DELIMITER $$\n\nCREATE FUNCTION `GuidToBinary`(\n $Data VARCHAR(36)\n) RETURNS binary(16)\nDETERMINISTIC\nNO SQL\nBEGIN\... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50542/"
] |
412,344 | <p>I know downcasting like this won't work. I need a method that WILL work. Here's my problem: I've got several different derived classes all from a base class. My first try was to make an array of base class. The program has to select (more or less at random) different derived classes. I had tried casting from a base ... | [
{
"answer_id": 412351,
"author": "yfeldblum",
"author_id": 12349,
"author_profile": "https://Stackoverflow.com/users/12349",
"pm_score": 1,
"selected": false,
"text": "BaseClass*"
},
{
"answer_id": 412356,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"autho... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48957/"
] |
412,345 | <p>Are there any lint tools available for actionscript? One source would be ideal, but anything is welcome.</p>
<p>My team is starting to adopt more a more rigorous style guide (where "more rigorous" means "existant"), and I think a linter would help us all adhere more easily to the style rules we've agreed on. I'm ... | [
{
"answer_id": 705797,
"author": "Ron DeVera",
"author_id": 63428,
"author_profile": "https://Stackoverflow.com/users/63428",
"pm_score": 2,
"selected": false,
"text": "mxmlc"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41177/"
] |
412,362 | <p>To find files containing a particular string, I use this often</p>
<p>find . -name * | xargs grep -iH "string"</p>
| [
{
"answer_id": 412375,
"author": "Drakonite",
"author_id": 49436,
"author_profile": "https://Stackoverflow.com/users/49436",
"pm_score": 0,
"selected": false,
"text": "grep -ri 'string'\n"
},
{
"answer_id": 412377,
"author": "bugmagnet",
"author_id": 426,
"author_prof... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43756/"
] |
412,368 | <p>I've been playing with Python for a while and wrote a little program to make a database to keep track of some info (its really basic, and hand written). I want to add the ability to create a website from the data that I will then pass to my special little place on the internet. What should I use to build up the webs... | [
{
"answer_id": 412371,
"author": "Autoplectic",
"author_id": 49994,
"author_profile": "https://Stackoverflow.com/users/49994",
"pm_score": 5,
"selected": true,
"text": "public_html"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51532/"
] |
412,378 | <p>I come from a C++ background where I can use template mixins to write code that refers to FinalClass which is a template parameter that is passed in. This allows reusable functions to be "mixed-in" to any derived class, by simply inheriting from ReusableMixin with a template paramter of MyFinalClass. This all gets... | [
{
"answer_id": 412549,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "public class MyClass\n{\n private readonly Mixin1 mixin1 = new Mixin1();\n private readonly Mixin2 mixin2 = new Mixin2();... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43058/"
] |
412,380 | <p>Is there a Java equivalent for <a href="http://msdn.microsoft.com/en-us/library/system.io.path.combine.aspx" rel="noreferrer"><code>System.IO.Path.Combine()</code></a> in C#/.NET? Or any code to accomplish this?</p>
<p>This static method combines one or more strings into a path.</p>
| [
{
"answer_id": 412495,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 9,
"selected": false,
"text": "java.nio.file.Path"
},
{
"answer_id": 4177678,
"author": "alpian",
"author_id": 449325,
"author_prof... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
412,385 | <p>I am including Javascript code that is used to pop up a calendar. The problem with the code is that I want a '0' to be inserted in front of the month or day if the month lies between 1--9 and days between 1--9 in the calendar.
The following is the script. Can anybody guide me to the modifications?</p>
<pre><code... | [
{
"answer_id": 13147904,
"author": "breakdj",
"author_id": 1786930,
"author_profile": "https://Stackoverflow.com/users/1786930",
"pm_score": 0,
"selected": false,
"text": "var iv=\"3\";\nalert((\"0\"+iv).substring(-2,2));\niv=1;\nalert((\"0\"+iv).substring(-2,2));\niv=2;\nalert((\"0\"+iv... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48094/"
] |
412,386 | <p>Is there a way to determine if a specific type has been configured in StructureMap? </p>
<p>I want to return a generic type if it has not be specifically configured in StructureMap.</p>
| [
{
"answer_id": 415812,
"author": "Jon Cahill",
"author_id": 10830,
"author_profile": "https://Stackoverflow.com/users/10830",
"pm_score": 2,
"selected": false,
"text": "TryGetInstance<T>()"
},
{
"answer_id": 2251850,
"author": "Andrew Bullock",
"author_id": 28543,
"au... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10830/"
] |
412,387 | <p>The problem with the below code is that Select All options works very well in Mozilla and not in Internet Explorer. </p>
<pre><code><!--
Document : DG
Created on : Sep 11, 2008, 12:48:37 PM
Author : padmaja
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head&... | [
{
"answer_id": 412400,
"author": "Christian C. Salvadó",
"author_id": 5445,
"author_profile": "https://Stackoverflow.com/users/5445",
"pm_score": 3,
"selected": false,
"text": "document.all.calendar.style.display=\"none\";\n"
},
{
"answer_id": 412535,
"author": "Kenan Banks",... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412387",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48094/"
] |
412,399 | <p>Hope that all are fine.</p>
<p>I have 22 UISwitch in a table view and I have created all these switch objects in one function and set them in the table view.</p>
<p>How can I know which switch is on or off? I want to do this through only one action method but I don't know how to do that.</p>
<p>If anyone has fac... | [
{
"answer_id": 413245,
"author": "Brad Larson",
"author_id": 19679,
"author_profile": "https://Stackoverflow.com/users/19679",
"pm_score": 0,
"selected": false,
"text": "[slider addTarget:self action:@selector(sliderValueDidChange:forEvent:) forControlEvents:UIControlEventAllTouchEvents]... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
412,406 | <p>i am looking for a client application that can connect to an EAR file within websphere and give me information like memory usage, heap size, etc.</p>
| [
{
"answer_id": 413245,
"author": "Brad Larson",
"author_id": 19679,
"author_profile": "https://Stackoverflow.com/users/19679",
"pm_score": 0,
"selected": false,
"text": "[slider addTarget:self action:@selector(sliderValueDidChange:forEvent:) forControlEvents:UIControlEventAllTouchEvents]... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19875/"
] |
412,409 | <p>I wonder if it is a good practice to use JUnit's @Ignore. And how people are using it? </p>
<p>I came up with the following use case: Let's say I am developing a class and writing a JUnit test for it, which doesn't pass, because I'm not quite done with the class. Is it a good practice to mark it with @Ignore? </p>
... | [
{
"answer_id": 412418,
"author": "Adeel Ansari",
"author_id": 42769,
"author_profile": "https://Stackoverflow.com/users/42769",
"pm_score": 6,
"selected": true,
"text": "@Ignore(\"not ready yet\")\n"
},
{
"answer_id": 9587312,
"author": "korda",
"author_id": 919801,
"... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/198/"
] |
412,410 | <p>I'm trying to compile GNUstep on a linux box but gnustep-gui-0.16.0 package is failing. I downloaded GNUstep Startup stable 0.20.1 (<a href="http://wwwmain.gnustep.org/resources/downloads.php" rel="nofollow noreferrer">http://wwwmain.gnustep.org/resources/downloads.php</a>)and follow instructions about how to compil... | [
{
"answer_id": 2643476,
"author": "MKroehnert",
"author_id": 293175,
"author_profile": "https://Stackoverflow.com/users/293175",
"pm_score": 1,
"selected": false,
"text": "make messages=yes"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412410",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45654/"
] |
412,412 | <p>I'm using the MVC beta to write a simple application to understand ASP.Net MVC. The application is a simple photo/video sharing site with tagging. I'm working off the MVC skeleton project. I added some Html.ActionLink()'s to the navigation bar, but I'm having a problem with one of the Html.ActionLink()'s that I adde... | [
{
"answer_id": 412822,
"author": "Dan Atkinson",
"author_id": 31532,
"author_profile": "https://Stackoverflow.com/users/31532",
"pm_score": 3,
"selected": true,
"text": "routes.MapRoute(\n \"TagsIndex\", //Called something different to prevent a conflict with your other route\n \"Tags/... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1880/"
] |
412,427 | <p>We always write code like this formal:</p>
<pre><code>void main(){
if(){
if()
}
</code></pre>
<p><img src="https://i.stack.imgur.com/dPV7i.jpg" alt="Alt text"></p>
<p>But when I use <a href="http://en.wikipedia.org/wiki/Notepad%2B%2B" rel="noreferrer">Notepad++</a>, the display is:</p>
<pre><code>void ... | [
{
"answer_id": 412449,
"author": "Jonathan Lonowski",
"author_id": 15031,
"author_profile": "https://Stackoverflow.com/users/15031",
"pm_score": 5,
"selected": false,
"text": "if"
},
{
"answer_id": 412492,
"author": "scronide",
"author_id": 22844,
"author_profile": "h... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51539/"
] |
412,435 | <p>I want to read a date in the format YYYY-MM-DD. </p>
<p>But if I enter date say for example 2008-1-1, I want to read it as 2008-01-01.</p>
<p>Can anybody help me? Thanks in advance</p>
| [
{
"answer_id": 412466,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "DateTimeFormatter parser = DateTimeFormat.forPattern(\"YYYY-M-D\");\nDateTimeFormatter formatter = DateTimeFormat.forPat... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48094/"
] |
412,438 | <p>Is there a way to undefine the += on strings and wstrings for chars and wchar_t?</p>
<p>Basically I want to avoid bugs like the following:</p>
<pre><code>int age = 27;
std::wstring str = std::wstring(L"User's age is: ");
str += age;
std::string str2 = std::string("User's age is: ");
str2 += age;
</code></pre>
<... | [
{
"answer_id": 412458,
"author": "Frederick The Fool",
"author_id": 32688,
"author_profile": "https://Stackoverflow.com/users/32688",
"pm_score": 2,
"selected": false,
"text": "std::string"
},
{
"answer_id": 412524,
"author": "Klaim",
"author_id": 2368,
"author_profil... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
412,440 | <p>What are the best practices for implementing temporary transaction password feature for website?</p>
<p>For e.g in banking/finance scenarios like
- While transfering funds from one account to another, a transaction password is required
- While commiting a trade, a transaction password is required
- etc.</p>
<p>The... | [
{
"answer_id": 412458,
"author": "Frederick The Fool",
"author_id": 32688,
"author_profile": "https://Stackoverflow.com/users/32688",
"pm_score": 2,
"selected": false,
"text": "std::string"
},
{
"answer_id": 412524,
"author": "Klaim",
"author_id": 2368,
"author_profil... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34644/"
] |
412,447 | <p>I have this code:</p>
<pre><code><script>
function toggle(source) {
checkboxes = document.getElementsByName('DG1');
for each(var checkbox in checkboxes)
checkbox.checked = source.checked;
checkboxes = document.getElementsByName('DG2');
for each(var checkbox in checkboxes)
checkbox.checked = ... | [
{
"answer_id": 412469,
"author": "Matthew Crumley",
"author_id": 2214,
"author_profile": "https://Stackoverflow.com/users/2214",
"pm_score": 6,
"selected": false,
"text": "function toggle(source) {\n var checkboxes = document.getElementsByName('DG1');\n for (var i = 0; i < checkbox... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412447",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48094/"
] |
412,450 | <p>I want to display whatever the response of flickr.test.echo was on the page using rest (jquery ajax - because thats what im using)</p>
<p>I need to supply an api_key</p>
<hr>
<p>The REST Endpoint URL is <a href="http://api.flickr.com/services/rest/" rel="nofollow noreferrer">http://api.flickr.com/services/rest/</... | [
{
"answer_id": 413830,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 2,
"selected": false,
"text": "jQuery.getJSON"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
412,459 | <p>I've got some data manipulation code which spits out csv at the end.</p>
<p>I started upgrading it to add units of measure everywhere, but I now have a problem with my csv function:</p>
<pre><code>val WriteCSV : string -> 'a list array -> 'b list -> string -> unit
</code></pre>
<p>(the parameters are ... | [
{
"answer_id": 412523,
"author": "leen",
"author_id": 26462,
"author_profile": "https://Stackoverflow.com/users/26462",
"pm_score": 4,
"selected": true,
"text": "[<Measure>] type m\n[<Measure>] type km\n\nlet removeUnit (x:float<_>) =\n float x\n\nlet foo = removeUnit 2.6<m>\nlet foo2... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11410/"
] |
412,467 | <p>Can anyone give me an idea how can we <em>show</em> or embed a YouTube video if we just have the URL or the Embed code?</p>
| [
{
"answer_id": 412499,
"author": "Alec Smart",
"author_id": 426996,
"author_profile": "https://Stackoverflow.com/users/426996",
"pm_score": 8,
"selected": true,
"text": "<object width=\"425\" height=\"350\" data=\"http://www.youtube.com/v/Ahg6qcgoay4\" type=\"application/x-shockwave-flas... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/455847/"
] |
412,472 | <p>I have code that looks like this:</p>
<pre><code>import xmlrpclib
class Base(object):
def __init__(self, server):
self.conn = xmlrpclib.ServerProxy(server)
def foo(self):
return self.conn.do_something()
class Derived(Base):
def foo(self):
if Base.foo():
return self... | [
{
"answer_id": 412580,
"author": "Ryan Ginstrom",
"author_id": 10658,
"author_profile": "https://Stackoverflow.com/users/10658",
"pm_score": 2,
"selected": false,
"text": "class FakeServerProxy(object):\n def __init__(self, server):\n self.server = server\n def do_something(... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50773/"
] |
412,498 | <p>In my Apache webserver I put this:</p>
<pre><code><Directory /var/www/MYDOMAIN.com/htdocs>
SetHandler mod_python
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
</code></pre>
<p>Then I have a handler.py file with an index function.</p>
<p>When I go to MYDOMAIN.com/handler.py... | [
{
"answer_id": 412567,
"author": "Vinko Vrsalovic",
"author_id": 5190,
"author_profile": "https://Stackoverflow.com/users/5190",
"pm_score": 0,
"selected": false,
"text": "DirectoryIndex index\n"
},
{
"answer_id": 412780,
"author": "Seb",
"author_id": 189,
"author_pro... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51540/"
] |
412,517 | <p>I am developing a PHP/MySQL application using vertrigoserver. I need to enter the German text in tables. The problem is when I read the tables from PHP, some of character didn't show the exact typed one. Do I need additional steps to display all characters effectively?</p>
| [
{
"answer_id": 412588,
"author": "Karsten",
"author_id": 28144,
"author_profile": "https://Stackoverflow.com/users/28144",
"pm_score": 3,
"selected": true,
"text": "utf8_general"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412517",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44984/"
] |
412,536 | <p>I have a textbox for 'Area '.I need a regularexpression to validate textbox such that it should allow decimals to enter but no characters.Anyone can help me</p>
| [
{
"answer_id": 412550,
"author": "kender",
"author_id": 4172,
"author_profile": "https://Stackoverflow.com/users/4172",
"pm_score": -1,
"selected": false,
"text": "'^[0-9]*$'"
},
{
"answer_id": 412558,
"author": "Sophie Alpert",
"author_id": 49485,
"author_profile": "... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412536",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42348/"
] |
412,562 | <p>How can I execute a terminal command (like <code>grep</code>) from my Objective-C Cocoa application?</p>
| [
{
"answer_id": 412573,
"author": "Gordon Wilson",
"author_id": 23071,
"author_profile": "https://Stackoverflow.com/users/23071",
"pm_score": 9,
"selected": true,
"text": "NSTask"
},
{
"answer_id": 412579,
"author": "Paulo Lopes",
"author_id": 51560,
"author_profile": ... | 2009/01/05 | [
"https://Stackoverflow.com/questions/412562",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46297/"
] |
412,590 | <p>I have a table containing hundreds of entries and I am trying to delete a small range. It is taking a long time, in fact it is not being executed.</p>
<p>I monitored the query from the activity monitor and its status is "Suspended"</p>
<p>Is there anyone knows what may cause this problem?</p>
| [
{
"answer_id": 412595,
"author": "Steven Robbins",
"author_id": 26507,
"author_profile": "https://Stackoverflow.com/users/26507",
"pm_score": 2,
"selected": true,
"text": "dbcc checkdb\ndbcc checkcatalog \n"
}
] | 2009/01/05 | [
"https://Stackoverflow.com/questions/412590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.