qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
286,629 | <p>What is meant by using an explicit memory fence?</p>
| [
{
"answer_id": 65263541,
"author": "yoAlex5",
"author_id": 4770877,
"author_profile": "https://Stackoverflow.com/users/4770877",
"pm_score": 0,
"selected": false,
"text": "memory fence memory barrier memory barrier"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/286629",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
286,632 | <p>When I add an assembly reference to a project in Visual Studio 8 the Aliases property, of that reference, is set to "global". What is this property good for and why is it set to global?</p>
<p>MSDN tells me that this is a list of aliases for the assembly but not why I might want to use this property or why most ar... | [
{
"answer_id": 286643,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": false,
"text": "Foo.System System global::System"
},
{
"answer_id": 286645,
"author": "Jon Skeet",
"author_id": 22656... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26808/"
] |
286,638 | <p>I'm having some trouble with a generic method I'm writing. It has the following signature;</p>
<pre><code>public static ThingCollection<T> GetThings<T>(...) where T : Thing
</code></pre>
<p>There are several classes; ThingA, ThingB and ThingC that inherit from Thing; and I want to be able to have code... | [
{
"answer_id": 286660,
"author": "TcKs",
"author_id": 20382,
"author_profile": "https://Stackoverflow.com/users/20382",
"pm_score": 2,
"selected": false,
"text": "public static ThingCollection<T> GetThings<T>(...) where T : Thing, new()\n...\n...\nT item = new T();\nitem.Something = What... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1535/"
] |
286,639 | <p>StackOverflow user jolson had a very nice piece of code that exemplifies how one can register menthods without using strings, but expression trees <a href="https://stackoverflow.com/questions/9033/hidden-features-of-c#52998">here</a>.</p>
<p>Is it possible to have something similar for properties instead of methods... | [
{
"answer_id": 286652,
"author": "Jb Evain",
"author_id": 36702,
"author_profile": "https://Stackoverflow.com/users/36702",
"pm_score": 4,
"selected": true,
"text": "static void RegisterMethod<TSelf, TProp> (Expression<Func<TSelf, TProp>> expression)\n{\n var member_expression = expre... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2130892/"
] |
286,640 | <p>I want to do the inverse of <a href="http://www.manpagez.com/man/1/sort/" rel="nofollow noreferrer">sort(1)</a> : randomize every line of <strong>stdin</strong> to <strong>stdout</strong> in Perl. </p>
| [
{
"answer_id": 286642,
"author": "Steve Schnepp",
"author_id": 24760,
"author_profile": "https://Stackoverflow.com/users/24760",
"pm_score": 3,
"selected": false,
"text": "#! /usr/bin/perl\n# randomize cat\n\n# fisher_yates_shuffle code copied from Perl Cookbook \n# (By Tom Christiansen ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24760/"
] |
286,641 | <p>I want to create a serve resampled (downsized) version of images using jsp. The original images are stored in the database as blobs. I want to to create a jsp that serves a downsampled image with decent quality (not pixelated) as per the passed image width/height (e.g. getimage.jsp?imageid=xxxx&maxside=200) . Ca... | [
{
"answer_id": 286642,
"author": "Steve Schnepp",
"author_id": 24760,
"author_profile": "https://Stackoverflow.com/users/24760",
"pm_score": 3,
"selected": false,
"text": "#! /usr/bin/perl\n# randomize cat\n\n# fisher_yates_shuffle code copied from Perl Cookbook \n# (By Tom Christiansen ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
286,651 | <p>I created 26 <kbd>JButton</kbd> in an anonymous <code>actionListener</code> labeled as each letter of the alphabet.</p>
<pre><code>for (int i = 65; i < 91; i++){
final char c = (char)i;
final JButton button = new JButton("" + c);
alphabetPanel.add(button);
button.addActionListener(
new Ac... | [
{
"answer_id": 286804,
"author": "reallyinsane",
"author_id": 35407,
"author_profile": "https://Stackoverflow.com/users/35407",
"pm_score": 1,
"selected": false,
"text": "InputMap iMap = alphabetPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);\nActionMap aMap = alphabetPanel.getActi... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29326/"
] |
286,657 | <p>What is the best way to download all of the WSDL files exposed by a WCF service?</p>
<p>For example, the root WSDL file references the following other WSDL files:</p>
<pre><code><xsd:import schemaLocation="http://localhost:80/?xsd=xsd0" namespace="http://tempuri.com"/>
<xsd:import schemaLocation="http://l... | [
{
"answer_id": 1951609,
"author": "Bernard Vander Beken",
"author_id": 65545,
"author_profile": "https://Stackoverflow.com/users/65545",
"pm_score": 5,
"selected": false,
"text": "svcutil.exe /t:metadata svcutil /t:metadata http://host/pathtomy.svc?wsdl svcutil /t:metadata c:\\wcfweb\\pa... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15985/"
] |
286,671 | <p>Is there a way to find all web pages that implement a specific master page in Visual Studio?</p>
<p>I'm looking for a shortcut like shift F12 that will find all usages of a master page. When I do it on the master page class name it only takes me to the design view instead of showing all pages that use it.</p>
<p>I... | [
{
"answer_id": 286679,
"author": "Mikael Söderström",
"author_id": 36944,
"author_profile": "https://Stackoverflow.com/users/36944",
"pm_score": -1,
"selected": true,
"text": "protected void Page_PreInit(object o)\n{\n this.Master = GetMasterFromDataBase(HttpContext.Current.User.Usernam... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1127460/"
] |
286,677 | <p>We are considering moving the win32 build of our cross-platform C++ application from MS Visual Studio 2003 to MS Visual Studio 2005. (Yes, very forward-looking of us ;)</p>
<p>Should we expect to many code changes to get it compiling and working?</p>
| [
{
"answer_id": 392480,
"author": "Tulenian",
"author_id": 48955,
"author_profile": "https://Stackoverflow.com/users/48955",
"pm_score": 0,
"selected": false,
"text": "for(i = 0; i < length; ++i)\n{\n}\n i"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/286677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22610/"
] |
286,686 | <p>What options do I have to read the roles of the current user from my JSP pages? I'm aware of the <code>visibleOnUserRole="myRole"</code> attribute on Tomahawk components, but I need roles for a bit more complicated things than simple visibility.</p>
| [
{
"answer_id": 286865,
"author": "McDowell",
"author_id": 304,
"author_profile": "https://Stackoverflow.com/users/304",
"pm_score": 4,
"selected": true,
"text": "public class RolesAccess implements Serializable {\n\n public String getUserPrincipalName() {\n FacesContext context... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11411/"
] |
286,690 | <p>I have a few text boxes and buttons on my form.</p>
<p>Lets say txtBox1 is next to btnSubmit1,
txtBox2 is next to btnSubmit2,
txtBox3 is next to btnSubmit3.</p>
<p>How can I set the focus on btnSubmit3 when the user starts to type something in txtBox3.
Meaning..... if a user type in a text box the program will kno... | [
{
"answer_id": 286696,
"author": "Mikael Söderström",
"author_id": 36944,
"author_profile": "https://Stackoverflow.com/users/36944",
"pm_score": 4,
"selected": true,
"text": "<asp:Panel id=\"panel1\" runat=\"server\" DefaultButton=\"Button1\">\n <asp:TextBox id=\"textbox1\" runat=\"ser... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33584/"
] |
286,697 | <p>I'm doing some tests with nhibernate and I'm modifying batch_size to get bulk inserts.</p>
<p>I'm using mssql2005 and using the northwind db.
I created 1000 object and insert them to the database. I've changed the values of batch_size from 5 to 100 but found no change in the performance. I'm getting value of around... | [
{
"answer_id": 320793,
"author": "ChrisAnnODell",
"author_id": 1758,
"author_profile": "https://Stackoverflow.com/users/1758",
"pm_score": 3,
"selected": true,
"text": "session.flush() session.clear()"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/286697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
286,713 | <p>I need to get a file from sourcesafe database programmatically. Any idea of how to do it? </p>
<p>ps: I'll do that by using C#.</p>
| [
{
"answer_id": 286740,
"author": "solrevdev",
"author_id": 2041,
"author_profile": "https://Stackoverflow.com/users/2041",
"pm_score": 4,
"selected": true,
"text": "using System;\nusing System.Collections.Generic;\nusing SourceSafeTypeLib;\n\nnamespace YourNamespace\n{\n\npublic class So... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4215/"
] |
286,721 | <p>Is anybody using JSON.NET with nHibernate? I notice that I am getting errors when I try to load a class with child collections.</p>
| [
{
"answer_id": 294655,
"author": "David P",
"author_id": 13145,
"author_profile": "https://Stackoverflow.com/users/13145",
"pm_score": 2,
"selected": false,
"text": " ICriteria ic = _session.CreateCriteria(typeof(Person));\n\n ic.Add(Restrictions.Eq(\"Id\", id));\n\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32326/"
] |
286,727 | <p>I'm trying to implement a <code>KeyListener</code> for my <code>JFrame</code>. On the constructor, I'm using this code:</p>
<pre><code>System.out.println("test");
addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent e) { System.out.println( "tester"); }
public void keyReleased(KeyEvent e) { S... | [
{
"answer_id": 286771,
"author": "Touko",
"author_id": 28482,
"author_profile": "https://Stackoverflow.com/users/28482",
"pm_score": 2,
"selected": false,
"text": "public class MyFrame extends JFrame {\n public MyFrame() {\n System.out.println(\"test\");\n addKeyListener... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29326/"
] |
286,729 | <p>I have a MySQL (v 5, MyISAM) query that returns different rows depending on date string format.</p>
<pre><code>(1) IFNULL(date1, ADDDATE('2008/10/31 23:59:59',INTERVAL 1 DAY)) > '2008-10-31 23:59:59'
(2) IFNULL(date1, ADDDATE('2008/10/31 23:59:59',INTERVAL 1 DAY)) > '2008/10/31 23:59:59'
(3) date1 > '2008... | [
{
"answer_id": 286778,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": true,
"text": "CAST(... AS DATE) +-----------------------------------------------+\n| ADDDATE('2008/10/31 23:59:59',INTERVAL 1 DAY) |\n+-----... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24765/"
] |
286,748 | <p>I'm currently using abcPDF 7 to convert HTML to PDF. This is done via an ASPX page where I override the Render method.</p>
<pre><code>Doc theDoc = new Doc();
theDoc.SetInfo(0, "License", m_License );
theDoc.HtmlOptions.Paged = true;
theDoc.HtmlOptions.Timeout = 1000000;
string callUrl = "http:// my app page";
theD... | [
{
"answer_id": 1726501,
"author": "Chris Smith",
"author_id": 210097,
"author_profile": "https://Stackoverflow.com/users/210097",
"pm_score": 4,
"selected": false,
"text": "Doc theDoc = new Doc();\nint theID;\ntheDoc.Page = theDoc.AddPage();\n\ntheID = theDoc.AddImageHtml(htmlOutput);\n\... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18619/"
] |
286,756 | <p>Total newbie question but this is driving me mad!
I'm trying this:</p>
<pre><code>myInt = [myFloat integerValue];
</code></pre>
<p>but I get an error saying essentially integerValue doesn't work on floats. </p>
<p>How do I do it?</p>
| [
{
"answer_id": 286760,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 4,
"selected": false,
"text": "int myInt = myFloat;\n"
},
{
"answer_id": 286770,
"author": "unwind",
"author_id": 28169,
"author_profil... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37313/"
] |
286,762 | <p>Here's the deal - I want a way to figure out specifically which methods were touched or changed within the last milestone/iteration so that the methods' Javadoc is checked for correct content, especially for the public API methods.</p>
<p>Any ideas on how to do this, perhaps with an SVN hook?</p>
| [
{
"answer_id": 286760,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 4,
"selected": false,
"text": "int myInt = myFloat;\n"
},
{
"answer_id": 286770,
"author": "unwind",
"author_id": 28169,
"author_profil... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286762",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6583/"
] |
286,766 | <p>I have an invokeworkflow activity inside a replicator activity. The workflow that I'm trying to invoke requires 2 parameters to be passed to it, an integer and a string parameters, and these should be passed to the workflow by the replicator activity. Any ideas on how this could be done?</p>
<p>Thanks.</p>
| [
{
"answer_id": 287092,
"author": "Panos",
"author_id": 8049,
"author_profile": "https://Stackoverflow.com/users/8049",
"pm_score": 0,
"selected": false,
"text": " public static readonly DependencyProperty MyIntProperty =\n DependencyProperty.Register(\"MyInt\", typeof(int), typ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286766",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37315/"
] |
286,775 | <p>I have A $param that I am passing into a template. I wish to use the value of this parameter as class name for a div. The class is not taking the value of the parameter but taking the parameter name (in the html page it is $param). Is there any way I can use the value of a parameter as a class name?</p>
| [
{
"answer_id": 286782,
"author": "Tim Ebenezer",
"author_id": 30273,
"author_profile": "https://Stackoverflow.com/users/30273",
"pm_score": 3,
"selected": true,
"text": "<div>\n<xsl:attribute name=\"class\">\n<xsl:value-of select=\"$param\"/>\n</xsl:attribute>\n</div>\n"
},
{
"an... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
286,791 | <p>How to get to know DNS name of the server where ASP.NET application is run?</p>
<p>I want to get string "www.somehost.com" if my application URL is <a href="http://www.somehost.com/somepath/application.aspx" rel="nofollow noreferrer">http://www.somehost.com/somepath/application.aspx</a></p>
<p>Is there some proper... | [
{
"answer_id": 286808,
"author": "X-Cubed",
"author_id": 10808,
"author_profile": "https://Stackoverflow.com/users/10808",
"pm_score": 0,
"selected": false,
"text": "Request.ServerVariables(\"HTTP_HOST\")\n"
},
{
"answer_id": 286907,
"author": "hearn",
"author_id": 30096,... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286791",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
286,813 | <p>I have snippets of Html stored in a table. <em>Not entire pages, no tags or the like, just basic formatting.</em></p>
<p>I would like to be able to display that Html as text only, <em>no formatting</em>, on a given page (actually just the first 30 - 50 characters but that's the easy bit).</p>
<p>How do I place th... | [
{
"answer_id": 286825,
"author": "vfilby",
"author_id": 24279,
"author_profile": "https://Stackoverflow.com/users/24279",
"pm_score": 6,
"selected": true,
"text": "<script> <[^>]*>\n <script>"
},
{
"answer_id": 286928,
"author": "George Stocker",
"author_id": 16587,
"... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286813",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5019/"
] |
286,824 | <p>I need a Javascript application that, when run, prompts a password to be entered, and if the password is correct, the script causes the webpage to close. If the password is incorrect, the script prompts for the password to be entered again.</p>
<p>I'm planning on loading this script onto my cell phone, which doesn'... | [
{
"answer_id": 286857,
"author": "José Leal",
"author_id": 37190,
"author_profile": "https://Stackoverflow.com/users/37190",
"pm_score": 2,
"selected": false,
"text": "\nfunction passWrdAPI() {\n this.getHX = function() {\n var hx;\n try {\n hx = new XMLHttpRe... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
286,826 | <p>I have a need to reference two different versions of the Sharepoint API dll. I have a webservice that needs to run under both Sharepoint 2 and Sharepoint 3, but also needs to work with new features provided by the Sharepoint 3 API (Checkout and Content Approval)</p>
<p>What is the best way to acheive this - I'm cu... | [
{
"answer_id": 286838,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "dynamic NotSupportedException"
},
{
"answer_id": 287222,
"author": "Ryan",
"author_id": 20198,
"a... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/983/"
] |
286,835 | <p>I have the VS2005 standard edition and MS says this:</p>
<blockquote>
<p>Note: The Windows Service Application
project templates and associated
functionality are not available in the
Standard Edition of Visual Basic and
Visual C# .NET...</p>
</blockquote>
<p>Is it possible to write a Windows Service ap... | [
{
"answer_id": 286863,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 2,
"selected": true,
"text": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Diagnostics;\nusing System.Service... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36504/"
] |
286,841 | <p>Does anyone know of any method in Rails by which an associated object may be frozen. The problem I am having is that I have an order model with many line items which in turn belong to a product or service. When the order is paid for, I need to freeze the details of the ordered items so that when the price is changed... | [
{
"answer_id": 289629,
"author": "Patrick McKenzie",
"author_id": 15046,
"author_profile": "https://Stackoverflow.com/users/15046",
"pm_score": 2,
"selected": false,
"text": ":version_number find_latest_course(course_id) item_id item_version_number LineItem LineItem has_a LineItem Invent... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12037/"
] |
286,846 | <p><strong>Let's share Java based web application architectures!</strong></p>
<p>There are lots of different architectures for web applications which are to be implemented using Java. The answers to this question may serve as a library of various web application designs with their pros and cons. While I realize that t... | [
{
"answer_id": 25835516,
"author": "iCrazybest",
"author_id": 1465252,
"author_profile": "https://Stackoverflow.com/users/1465252",
"pm_score": 0,
"selected": false,
"text": " HTML\n JavaScript\n Stylesheet\n CSS\n Image\n Pages(Java render )\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286846",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
286,848 | <p>I started with <a href="http://code.google.com/p/jetlang/" rel="nofollow noreferrer">jetlang</a> and the basic samples are pretty clear.
What I didn't found is a good sample for using the PoolFiber. Anybody played around
with that already? I read also the retlang samples but it seems little bit different there.</p>
... | [
{
"answer_id": 312156,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "// create java thread pool.\nExecutorService pool = Executors.newCachedThreadPool();\n//initialize factory with backing pool\nP... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11450/"
] |
286,849 | <p>Is there a way to create a function/sub signature that accepts an arbitrary typed generic in vb.net.</p>
| [
{
"answer_id": 286861,
"author": "Hath",
"author_id": 5186,
"author_profile": "https://Stackoverflow.com/users/5186",
"pm_score": 3,
"selected": true,
"text": "Public Function DoThing(Of T)(ByVal value As T)\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/286849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
286,850 | <p>I need to bind labels or items in a toolstrip to variables in Design Mode.
I don't use the buit-in resources not the settings, so the section Data is not useful. I am taking the values out from an XML that I map to a class.</p>
<p>I know there are many programs like:
<a href="http://www.jollans.com/tiki/tiki-inde... | [
{
"answer_id": 286885,
"author": "Aleksandar",
"author_id": 29511,
"author_profile": "https://Stackoverflow.com/users/29511",
"pm_score": 0,
"selected": false,
"text": "public class LocalizedButton : Button\n{\n protected override void OnPaint(PaintEventArgs pevent)\n {\n ba... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31791/"
] |
286,864 | <p>I have a string to tokenize. It's form is <code>HHmmssff</code> where <code>H</code>, <code>m</code>, <code>s</code>, <code>f</code> are digits. </p>
<p>It's supposed to be tokenized into four 2-digit numbers, but I need it to also accept short-hand forms, like <code>sff</code> so it interprets it as <code>00000sff... | [
{
"answer_id": 286973,
"author": "xtofl",
"author_id": 6610,
"author_profile": "https://Stackoverflow.com/users/6610",
"pm_score": 1,
"selected": false,
"text": "TimeString := LongNotation | ShortNotation\n\nLongNotation := Hours Minutes Seconds Fractions\n\nHours := digit digit\nMinutes... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5049/"
] |
286,870 | <p>Is there any reasonable method to allow users of a webapp to download large files? I'm looking for something other than the browser's built-in download dialog - the requirements are that the user initiates the download from the browser and then some other application takes over, downloads the file in background and ... | [
{
"answer_id": 287269,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 0,
"selected": false,
"text": ".torrent"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/286870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6615/"
] |
286,871 | <p>I need to get authentication credentials from the users within a Windows script but the classic "first Google result" approach:</p>
<pre><code>SET /P USR=Username:
SET /P PWD=Password:
</code></pre>
<p>is less than satisfying, so I was wondering if there's let's say an "equivalent" to <strong>HTML's input type="... | [
{
"answer_id": 668455,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "@echo off & setlocal enableextensions\n :: Build a Visual Basic Script\n set vbs_=%temp%\\tmp$$$.vbs\n set skip=\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6992/"
] |
286,873 | <p>I'm having a difficult time figuring out how to add a .jar/library to a Netbeans project in such a way that I can get it committed to the repository.</p>
<p>The typical way to add a library (per the Netbeans documents I've already gone through) ends up with it just being local to me. Anyone who checks out my proje... | [
{
"answer_id": 287767,
"author": "James Schek",
"author_id": 17871,
"author_profile": "https://Stackoverflow.com/users/17871",
"pm_score": 2,
"selected": false,
"text": "libs.LIBRARY_NAME.classpath=... libs.Log4J.classpath=lib/log4j.jar"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/286873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15689/"
] |
286,876 | <p>what's the best practice for creating test persistence layers when doing an ASP.NET site (eg. ASP.NET MVC site)?</p>
<p>Many examples I've seen use Moq (or another mocking framework) in the unit test project, but I want to, like .. moq out my persistence layer so that my website shows data and stuff, but it's not c... | [
{
"answer_id": 286942,
"author": "Rob Stevenson-Leggett",
"author_id": 4950,
"author_profile": "https://Stackoverflow.com/users/4950",
"pm_score": 2,
"selected": false,
"text": "public static ICatalogRepository GetCatalogRepository(bool useMock)\n{\n if(useMock)\n return new... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286876",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30674/"
] |
286,894 | <p>Like the title says, how can I remove GAC assembly file using vbscript?</p>
| [
{
"answer_id": 286898,
"author": "Mikael Söderström",
"author_id": 36944,
"author_profile": "https://Stackoverflow.com/users/36944",
"pm_score": 1,
"selected": false,
"text": "gacutil /u YourAssembly\n"
},
{
"answer_id": 286903,
"author": "kenny",
"author_id": 3225,
"... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286894",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
286,904 | <p>I am trying to adapt a simple WPF application to use the Model-View-ViewModel pattern. On my page I have a couple of animations:</p>
<pre><code><Page.Resources>
<Storyboard x:Name="storyboardRight"
x:Key="storyboardRight">
<DoubleAnimation x:Name="da3"
... | [
{
"answer_id": 286949,
"author": "David Schmitt",
"author_id": 4918,
"author_profile": "https://Stackoverflow.com/users/4918",
"pm_score": 1,
"selected": false,
"text": "EventTrigger"
},
{
"answer_id": 402758,
"author": "Mark Heath",
"author_id": 7532,
"author_profile... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7532/"
] |
286,921 | <p>For a poor man's implementation of <em>near</em>-collation-correct sorting on the client side I need a JavaScript function that does <em>efficient</em> single character replacement in a string.</p>
<p>Here is what I mean (note that this applies to German text, other languages sort differently):</p>
<pre>
native sort... | [
{
"answer_id": 287173,
"author": "Jason Bunting",
"author_id": 1790,
"author_profile": "https://Stackoverflow.com/users/1790",
"pm_score": 6,
"selected": true,
"text": "function makeSortString(s) {\n if(!makeSortString.translate_re) makeSortString.translate_re = /[öäüÖÄÜ]/g;\n var tran... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18771/"
] |
286,932 | <p>The following code is implemented in Page_Load event to show SaveFileDialog to the user</p>
<pre><code>string targetFileName = Request.PhysicalApplicationPath + "Reports\\TempReports\\FolderMasters" + Utility.GetRandomNumber() + ".pdf";
FileInfo file = new FileInfo(targetFileName);
// Clear the content of the resp... | [
{
"answer_id": 287006,
"author": "Ahmed Atia",
"author_id": 14118,
"author_profile": "https://Stackoverflow.com/users/14118",
"pm_score": 1,
"selected": true,
"text": "Response.End HttpContext.Current.ApplicationInstance.CompleteRequest"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/286932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14118/"
] |
286,938 | <p>What is the best way to password protect folder using php without a database or user name but using. Basically I have a page that will list contacts for organization and need to password protect that folder without having account for every user . Just one password that gets changes every so often and distributed to... | [
{
"answer_id": 287008,
"author": "David Heggie",
"author_id": 4309,
"author_profile": "https://Stackoverflow.com/users/4309",
"pm_score": 1,
"selected": false,
"text": "login.php\n...\nif(isset($_POST['password']) && $_POST['password'] == 'my_top_secret_word') {\n setcookie('loggedin'... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286938",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35513/"
] |
286,940 | <p>I want to create a similar behavior to the data reader class but for a bespoke emailer program so that I can do the follow</p>
<pre><code>Dim sender As New EmailSender(emailTemplate)
While sender.Send()
Response.Write(sender("HTMLContent"))
End While
</code></pre>
<p>Is there an advised interface or mustInherit ... | [
{
"answer_id": 287145,
"author": "digiguru",
"author_id": 5055,
"author_profile": "https://Stackoverflow.com/users/5055",
"pm_score": 0,
"selected": false,
"text": " Namespace Emailer\n\n Public Interface IBatchableEmailSender\n Function SendNextEmail() As Boolean\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286940",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5055/"
] |
286,945 | <p>What is the JSON (JavaScript Object Notation) format?</p>
| [
{
"answer_id": 286978,
"author": "Patrick Desjardins",
"author_id": 13913,
"author_profile": "https://Stackoverflow.com/users/13913",
"pm_score": 7,
"selected": true,
"text": "{\n \"menu\": {\n \"id\": \"file\",\n \"value\": \"File\",\n \"popup\": {\n \... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
286,946 | <p>I've got a quick question about default values in PL/SQL functions in Oracle. Take this program as an example;</p>
<pre><code>create or replace
FUNCTION testFunction
(
varNumber IN NUMBER DEFAULT 0
)
RETURN NUMBER
AS
BEGIN
dbms_output.put_line(varNumber);
RETURN varNumber;
END;
</code></pre>
<p>The idea here... | [
{
"answer_id": 286963,
"author": "Turnkey",
"author_id": 13144,
"author_profile": "https://Stackoverflow.com/users/13144",
"pm_score": 2,
"selected": false,
"text": "NVL( value_in, replace_with )\n"
},
{
"answer_id": 286966,
"author": "Rob Stevenson-Leggett",
"author_id":... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286946",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5827/"
] |
286,958 | <p>I am trying to use some AOP in my Python programming, but I do not have any experience of the various libraries that exist. </p>
<p>So my question are:</p>
<blockquote>
<p>What AOP support exists for Python? And what are the advantages of the differents libraries between them?</p>
</blockquote>
<hr>
<h3>Edit</... | [
{
"answer_id": 287640,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 5,
"selected": false,
"text": "import pickle, functools\ndef cache(f):\n _cache = {}\n def wrapper(*args, **kwargs):\n key = pickle.dumps((args, kwargs... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14262/"
] |
286,964 | <p>I need to cut out and save/use part of a string in C#. I figure the best way to do this is by using Regex. My string looks like this:</p>
<p><code>"changed from 1 to 10"</code>. </p>
<p>I need a way to cut out the two numbers and use them elsewhere. What's a good way to do this?</p>
| [
{
"answer_id": 286981,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 2,
"selected": false,
"text": "Match.Captures"
},
{
"answer_id": 286987,
"author": "Rob Stevenson-Leggett",
"author_id": 4950,
"author_... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1523/"
] |
286,971 | <p>How can I get the value between quotes with an RegEx</p>
<p>for example I want to find all the parameters from the function test</p>
<pre><code><html>
test("bla");
print("foo");
test("moo");
</html>
</code></pre>
<p>The result must be { "bla", "moo" }</p>
| [
{
"answer_id": 287001,
"author": "Jesper Palm",
"author_id": 36455,
"author_profile": "https://Stackoverflow.com/users/36455",
"pm_score": 1,
"selected": false,
"text": " var array = (from Match m in Regex.Matches(inText, \"\\\"\\\\w+?\\\"\")\n select m.Groups[0].Value... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37311/"
] |
286,972 | <p>In Java, is there a way to control the TTL of the IP header for packets sent on a socket? </p>
| [
{
"answer_id": 287017,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 3,
"selected": true,
"text": "MulticastSocket.setTimeToLive(int ttl);\n"
},
{
"answer_id": 1201687,
"author": "pfranza",
"author_id": 22221... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4761/"
] |
286,982 | <p>I want to get the headers only from a curl request</p>
<p><code>curl -I www.google.com</code></p>
<p>All grand. Now I want to do that but to pass in post data too:</p>
<p><code>curl -I -d'test=test' www.google.com</code></p>
<p>But all I get is:</p>
<p><code>Warning: You can only select one HTTP request!</code>... | [
{
"answer_id": 287018,
"author": "phihag",
"author_id": 35070,
"author_profile": "https://Stackoverflow.com/users/35070",
"pm_score": 5,
"selected": false,
"text": "-d POST -I HEAD /dev/null -D headerfile headerfile -i"
},
{
"answer_id": 287299,
"author": "J.D. Fitz.Gerald",
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/286982",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11542/"
] |
286,988 | <p>I cloned a Git master and made a lot of changes on the clone. I have since committed these changes on the clone and now want the master to be a carbon copy of what is on the clone.</p>
<p>I've tried Git push on the clone to push the changes to the master - but nothing I do updates the master.</p>
<p>How can I make... | [
{
"answer_id": 287817,
"author": "Greg Hewgill",
"author_id": 893,
"author_profile": "https://Stackoverflow.com/users/893",
"pm_score": 3,
"selected": false,
"text": "git pull /path/to/clone\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/286988",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36142/"
] |
287,000 | <p>I am trying to get intellisense in VS2008 in a js file, foo.js, from another js library/file I've written but cannot figure out the reference path ?syntax?/?string?</p>
<p>The library is in a file called common.js which is in the same folder as foo.js I'm working on.</p>
<p>Here's the paths I've tried...</p>
<pre... | [
{
"answer_id": 402967,
"author": "w4ik",
"author_id": 4232,
"author_profile": "https://Stackoverflow.com/users/4232",
"pm_score": 4,
"selected": false,
"text": "/// <reference path=\"common.js\" />\n/// <reference path=\"jquery-1.2.6.js\" />\n/// <reference path=\"jquery.formatCurrency.j... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4232/"
] |
287,022 | <p>I have an ASP.net page. When I am closing the webpage I need to clear the session variables.</p>
<p>How to to handle this I need to maintain the timeout to 20 minutes.
If he closes and login for any number of times in the 20 minutes timed out time</p>
<p>Is there any possiblity for clearing the ASP.net session id<... | [
{
"answer_id": 287027,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 4,
"selected": true,
"text": "window.onbeforeunload function CloseSession( )\n{\n location.href = 'SignOut.aspx'; \n}\nwindow.onbeforeunload = Clos... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22162/"
] |
287,041 | <p><strong>Note:</strong> Question <a href="https://stackoverflow.com/questions/220465/using-256-x-256-vista-icon-in-application">Using 256 x 256 Vista icon in application</a> deals with using a "Vista" icon as the application's icon. This question deals with manually painting a Vista icon.</p>
<p><strong>Note:</stron... | [
{
"answer_id": 1061822,
"author": "Pierre Arnaud",
"author_id": 4597,
"author_profile": "https://Stackoverflow.com/users/4597",
"pm_score": 2,
"selected": false,
"text": "ResourceManager System.Drawing.Icon LoadImage System.Resources.ResourceReader IconConverter.LoadIcon using System.Run... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287041",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
287,053 | <p>How do I programmatically find out the width and height of the video in an mpeg-2 <strike>transport</strike> program stream file? </p>
<p>Edit: I am using C++, but am happy for examples in any language.
Edit: Corrected question - it was probably program streams I was asking about</p>
| [
{
"answer_id": 287435,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 3,
"selected": true,
"text": "mpeg2_header_sequence() header.c"
},
{
"answer_id": 287477,
"author": "Community",
"author_id": -1,
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287053",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3590/"
] |
287,060 | <p>Is it possible to set up somehow Microsoft SQL Server to run a stored procedure on regular basis?</p>
| [
{
"answer_id": 287087,
"author": "Ciaran Archer",
"author_id": 446733,
"author_profile": "https://Stackoverflow.com/users/446733",
"pm_score": 4,
"selected": false,
"text": "exec MyStoredProcedure"
},
{
"answer_id": 1769443,
"author": "Thomas Bratt",
"author_id": 15985,
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11256/"
] |
287,065 | <p>I have an application that has to deal with getting "special" characters in its URL (like &, +, %, etc). When I'm sending a request to the application using these characters (of course I'm sending them escaped) I'm getting "Bad Request" response code with the message "ASP.NET detected invalid characters in the U... | [
{
"answer_id": 287289,
"author": "Eduardo Campañó",
"author_id": 12091,
"author_profile": "https://Stackoverflow.com/users/12091",
"pm_score": 0,
"selected": false,
"text": "<httpModules>\n <clear />\n</httpModule>\n <httpModules>\n <add name=\"OutputCache\" type=\"System.Web.Cachin... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37343/"
] |
287,077 | <p>I need help in</p>
<ul>
<li>figuring out how to iterate through currently open Excel add-in files <em>(.xla)</em> that have not been registered in Excel using the <code>Tools > Add-ins</code> menu path.</li>
<li>more specifically, I am interested in any workbook that doesn't appear in the Add-In dialog, but has ... | [
{
"answer_id": 287383,
"author": "jevakallio",
"author_id": 4333,
"author_profile": "https://Stackoverflow.com/users/4333",
"pm_score": 0,
"selected": false,
"text": "Private Declare Function FindWindowEx Lib \"user32\" Alias \"FindWindowExA\" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, B... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287077",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4333/"
] |
287,085 | <p>What exactly do <code>*args</code> and <code>**kwargs</code> mean?</p>
<p>According to the Python documentation, from what it seems, it passes in a tuple of arguments.</p>
<pre><code>def foo(hello, *args):
print(hello)
for each in args:
print(each)
if __name__ == '__main__':
foo("LOVE"... | [
{
"answer_id": 287101,
"author": "Paul D. Waite",
"author_id": 20578,
"author_profile": "https://Stackoverflow.com/users/20578",
"pm_score": 9,
"selected": true,
"text": "*args **kwargs def my_sum(*args):\n return sum(args)\n args kwargs * **"
},
{
"answer_id": 287293,
"au... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287085",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34395/"
] |
287,089 | <p>What number would you give someone who wants a concrete target number for API code coverage?</p>
<p>UPDATE: To clarify, statement/line code coverage. I realize concrete numbers don't make much sense, but this is for the situation where you tell people that concrete numbers don't make much sense and they still insis... | [
{
"answer_id": 287101,
"author": "Paul D. Waite",
"author_id": 20578,
"author_profile": "https://Stackoverflow.com/users/20578",
"pm_score": 9,
"selected": true,
"text": "*args **kwargs def my_sum(*args):\n return sum(args)\n args kwargs * **"
},
{
"answer_id": 287293,
"au... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36727/"
] |
287,093 | <p>I am building an application that is very similar to a shopping cart. The user selects a product from a list, and then based on that product, a few properties need to be set and saved.</p>
<p>Example.</p>
<p>If the user selects a type of paint that allows custom color matches, then I must allow them to enter in a... | [
{
"answer_id": 287120,
"author": "Bruno Shine",
"author_id": 28294,
"author_profile": "https://Stackoverflow.com/users/28294",
"pm_score": 4,
"selected": true,
"text": " public class Product\n {\n private Dictionary<string, string> properties;\n\n /// <summary>\n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37347/"
] |
287,097 | <p>This is a question not really about "programming" (is not specific to any language or database), but more of design and architecture. It's also a question of the type "What the best way to do X". I hope does no cause to much "religious" controversy.</p>
<p>In the past I have developed systems that in one way or ano... | [
{
"answer_id": 287276,
"author": "nmarmol",
"author_id": 20448,
"author_profile": "https://Stackoverflow.com/users/20448",
"pm_score": 0,
"selected": false,
"text": "Select sum(quantity) as inventory_received from Inventory_entry\nSelect sum(quantity) as inventory_sold from Sales_items\n... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20448/"
] |
287,105 | <p>I'm looking to find records in a table that match a specific number that the user enters. So, the user may enter 12345, but this could be 123zz4-5 in the database.</p>
<p>I imagine something like this would work, if PHP functions worked in MySQL.</p>
<pre><code>SELECT * FROM foo WHERE preg_replace("/[^0-9]/&qu... | [
{
"answer_id": 287153,
"author": "Gareth",
"author_id": 31582,
"author_profile": "https://Stackoverflow.com/users/31582",
"pm_score": 2,
"selected": false,
"text": "WHERE foo LIKE '1\\D*2\\D*3\\D*4\\D*5'\n preg_replace"
},
{
"answer_id": 287225,
"author": "Chris Bartow",
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/497/"
] |
287,106 | <p>I am using LINQ-to-SQL for an application that queries a legacy database. I need to call a stored procedure, that selects a single integer value. Changing the stored procedure is not an option.</p>
<p>The designer creates a method with this signature:</p>
<pre><code>private ISingleResult<sp_xal_seqnoResult> ... | [
{
"answer_id": 287129,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "<Function Name=\"dbo.foo\" Method=\"foo\">\n <Parameter Name=\"inc\" Type=\"System.Int32\" DbType=\"Int\" />\n <... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13627/"
] |
287,126 | <p>I have the SOAP request in an XML file. I want to post the request to the web service in .net
How to implement?</p>
| [
{
"answer_id": 287189,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": false,
"text": "var uri = new Uri(\"http://localhost/SOAP/SOAPSMS.asmx/add\");\n\nvar req = (HttpWebRequest) WebRequest.CreateDefault(uri); \n... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
287,133 | <p>Using Lucene, one can retrieve the terms contained within in an index, i.e. the unique, stemmed words, excluding stop-words, that documents in the index contain. This is useful for generating autocomplete suggestions amongst other things. Is something similar possible with MS SQL Server full text indices?</p>
| [
{
"answer_id": 337013,
"author": "Coolcoder",
"author_id": 42434,
"author_profile": "https://Stackoverflow.com/users/42434",
"pm_score": 5,
"selected": true,
"text": "sys.dm_fts_index_keywords_by_document\n( \n DB_ID('database_name'), \n OBJECT_ID('table_name') \n)\n db_id obje... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2942/"
] |
287,142 | <p>From time to time my applications GUI stops redrawing.
There a lot of threads that are firing all kinds of events (like timers or network data ready etc.). Also there are a lot of controls that are subscribing these events. Because of that, all the event handlers play the InvokeRequired/Invoke game.
Now I figured ou... | [
{
"answer_id": 287149,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "Invoke((EventHandler) MyEventHandler, sender, e);\n"
},
{
"answer_id": 287258,
"author": "Marc Gravell",
... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8976/"
] |
287,144 | <p>I have a load of user-submitted content. It is HTML, and may contain URLs. Some of them will be <code><a></code>'s already (if the user is good) but sometimes users are lazy and just type www.something.com or at best <a href="http://www.something.com" rel="noreferrer">http://www.something.com</a>.</p>
<p>I ca... | [
{
"answer_id": 287186,
"author": "Tim Pietzcker",
"author_id": 20670,
"author_profile": "https://Stackoverflow.com/users/20670",
"pm_score": 4,
"selected": false,
"text": "\\b(?:(?:https?|ftp|file)://|www\\.|ftp\\.)[-A-Z0-9+&@#/%=~_|$?!:,.]*[A-Z0-9+&@#/%=~_|$]\n (?<![\">]) (?<![\">])\\b(... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37313/"
] |
287,178 | <p>Say a class </p>
<pre><code>Person
+Name: string
+Contacts: List<Person>
</code></pre>
<p>I want to be able to check if a person has a contact with a certain name without having to create a dummy Person instance.</p>
<pre><code>person.Contacts.Contains<string>("aPersonName");
</code></pre>
<p>Thi... | [
{
"answer_id": 287190,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": " return person.Contacts.Any(person => person.Name==\"aPersonName\");\n return person.Select(person => person.Name).Conta... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
287,187 | <p>I want to extend a CFC in a different directory and I have a couple of options, but can't figure out how to do this:</p>
<p>A) Use a dynamic mapping (this will have to be dynamic based on the site, e.g. for the live site it would be cfc.myPackage.MyCFC but on a dev site it would be myCfcRoot.myPackage.MyCFC) - I've... | [
{
"answer_id": 287357,
"author": "Nathan Strutz",
"author_id": 5918,
"author_profile": "https://Stackoverflow.com/users/5918",
"pm_score": 5,
"selected": true,
"text": "<cfcomponent name=\"MyComponent\" extends=\"Example\">\n <cfcomponent name=\"MyComponent\" extends=\"subdirectory.Examp... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6432/"
] |
287,188 | <p>I have a table style page with rows. Each row has a checkbox. I can select all/many checkboxes and click "submit" and what is does is a Jquery ajax call for each row. </p>
<p>Basically I have a form for each row and I iterate over all the checked rows and submit that form which does the jquery ajax call.</p>
<p>So... | [
{
"answer_id": 287212,
"author": "Tomasz Tybulewicz",
"author_id": 17405,
"author_profile": "https://Stackoverflow.com/users/17405",
"pm_score": 8,
"selected": true,
"text": ".ajaxStop() $(document).ajaxStop(function() {\n // place code to be executed on completion of last outstanding a... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3208/"
] |
287,193 | <p>Are there any wizard type controls in WPF? I need functionality where I can go forward and back and use tabs to select a particular item which will show the details of the nested items. I can use the TabControl control but the tab items are dynamic so I cannot nest the region inside the tab item.</p>
| [
{
"answer_id": 5041459,
"author": "MattP",
"author_id": 623117,
"author_profile": "https://Stackoverflow.com/users/623117",
"pm_score": 4,
"selected": false,
"text": " <Grid Name=\"Page1\">\n <TextBlock>Page 1</TextBlock>\n </Grid>\n\n <Grid Name=\"Page2\" Visibility=\"Hi... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287193",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3797/"
] |
287,195 | <p>The example below throws an InvalidOperationException, "Collection was modified; enumeration operation may not execute." when executing the code. </p>
<pre><code>var urls = new List<string>();
urls.Add("http://www.google.com");
foreach (string url in urls)
{
// Get all links from the url
List<stri... | [
{
"answer_id": 287205,
"author": "Martin Brown",
"author_id": 20553,
"author_profile": "https://Stackoverflow.com/users/20553",
"pm_score": 1,
"selected": false,
"text": "var urls = new List<string>();\nvar destUrls = new List<string>(urls);\nurls.Add(\"http://www.google.com\");\nforeach... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17436/"
] |
287,201 | <p>What is the smartest way to get an entity with a field of type List persisted?</p>
<h2>Command.java</h2>
<pre><code>package persistlistofstring;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence... | [
{
"answer_id": 287238,
"author": "toolkit",
"author_id": 3295,
"author_profile": "https://Stackoverflow.com/users/3295",
"pm_score": 4,
"selected": false,
"text": "@CollectionOfElements(targetElement = String.class)\n@JoinTable(name = \"foo\", joinColumns = @JoinColumn(name = \"foo_id\")... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287201",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36131/"
] |
287,204 | <p>Should I start a Python program with:</p>
<pre><code>if__name__ == '__main__':
some code...
</code></pre>
<p>And if so, why? I saw it many times but don't have a clue about it.</p>
| [
{
"answer_id": 287215,
"author": "Jouni K. Seppänen",
"author_id": 26575,
"author_profile": "https://Stackoverflow.com/users/26575",
"pm_score": 6,
"selected": true,
"text": "__name__ 'foo' __name__ '__main__' if __name__ == '__main__':\n main program here\n"
},
{
"answer_id":... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25705/"
] |
287,242 | <p>Modern browsers have multi-tab interface, but JavaScript function <code>window.showModalDialog()</code> creates a modal dialog that blocks <em>all</em> of the tabs. </p>
<p>I'd like to know if there is a way to create a modal dialog that blocks only the tab it's been created in?</p>
| [
{
"answer_id": 287252,
"author": "Michiel Overeem",
"author_id": 5043,
"author_profile": "https://Stackoverflow.com/users/5043",
"pm_score": 4,
"selected": true,
"text": "showModalDialog()"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287242",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28098/"
] |
287,259 | <p>I've looking to find a simple recommended "minimal" c++ makefile for linux which will use g++ to compile and link a single file and h file. Ideally the make file will not even have the physical file names in it and only have a .cpp to .o transform. What is the best way to generate such a makefile without diving into... | [
{
"answer_id": 287265,
"author": "hazzen",
"author_id": 5066,
"author_profile": "https://Stackoverflow.com/users/5066",
"pm_score": 6,
"selected": true,
"text": "make t\n g++ t.cpp -o t\n SOURCES := t.cpp\n# Objs are all the sources, with .cpp replaced by .o\nOBJS := $(SOURCES:.cpp=.o)\n... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37370/"
] |
287,271 | <p>What are the steps to get Team Foundation Server running unit tests when a given build runs? </p>
<p>What are the caveats / pitfalls / workarounds a dev or sysadmin should be aware of when setting up a TFS server to do this for the first time? </p>
<p>What are common troubleshooting steps for unit test problems ... | [
{
"answer_id": 289501,
"author": "Mr. Kraus",
"author_id": 5132,
"author_profile": "https://Stackoverflow.com/users/5132",
"pm_score": 5,
"selected": true,
"text": "<RunConfigFile>$(SolutionRoot)\\TestRunConfig.testrunconfig</RunConfigFile>\n"
},
{
"answer_id": 292648,
"autho... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19020/"
] |
287,298 | <p>Vista has introduced a new API to display a text in the list view control when it doesn't have any items. As the MSDN library states, I should process the <code>LVN_GETEMPTYMARKUP</code> notification.</p>
<p>In the inherited <code>ListView</code> control the <code>WndProc</code> method is overriden:</p>
<pre><code... | [
{
"answer_id": 287319,
"author": "Sunlight",
"author_id": 33650,
"author_profile": "https://Stackoverflow.com/users/33650",
"pm_score": 0,
"selected": false,
"text": "SetWindowTheme"
},
{
"answer_id": 287330,
"author": "Pondidum",
"author_id": 1500,
"author_profile": ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287298",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23372/"
] |
287,320 | <p>Problem, there's no method:</p>
<pre><code>bool ChangePassword(string newPassword);
</code></pre>
<p>You have to know the current password (which is probably hashed and forgotten).</p>
| [
{
"answer_id": 287322,
"author": "mcqwerty",
"author_id": 2115,
"author_profile": "https://Stackoverflow.com/users/2115",
"pm_score": 8,
"selected": true,
"text": "MembershipUser u = Membership.GetUser();\nu.ChangePassword(u.ResetPassword(), \"myAwesomePassword\");\n"
},
{
"answe... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2115/"
] |
287,333 | <p>I'm looking for a way to select until a sum is reached.</p>
<p>My "documents" table has "<code>tag_id</code>" and "<code>size</code>" fields.</p>
<p>I want to select all of the documents with <code>tag_id = 26</code> but I know I can only handle 600 units of size. So, there's no point ... | [
{
"answer_id": 287374,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 4,
"selected": true,
"text": "SELECT d.id, d.size, d.date_created\nFROM documents d\nINNER JOIN documents d2 ON d2.tag_id=d.tag_id AND d2.date_create... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37378/"
] |
287,335 | <p>I am trying to setup Weblogic Server 10.3 (and Portal etc.) to use <a href="http://maven.apache.org/" rel="noreferrer">maven</a> as a build tool. I am trying to find a decent tutorial or documentation how to do this. There are some tutorials for older versions like 9.0, but there is little info for version 10.</p>
... | [
{
"answer_id": 629807,
"author": "Jan Kronquist",
"author_id": 43935,
"author_profile": "https://Stackoverflow.com/users/43935",
"pm_score": 5,
"selected": true,
"text": "pom.xml\nsrc/\n main/\n app/\n META-INF/\n weblogic-application.xml\n <build>... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287335",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1431/"
] |
287,358 | <p>I'm using a repeater control and I'm trying to pass a parameter as such:</p>
<pre><code><%# SomeFunction( DataBinder.Eval(Container.DataItem, "Id") ) %>
</code></pre>
<p>It's basically calling:</p>
<pre><code>public string SomeFunction(long id) {
return "Hello";
}
</code></pre>
<p>I'm not abl... | [
{
"answer_id": 287368,
"author": "Kieron",
"author_id": 5791,
"author_profile": "https://Stackoverflow.com/users/5791",
"pm_score": 5,
"selected": true,
"text": "<%# SomeFunction( (long)DataBinder.Eval(Container.DataItem, \"Id\") ) %>\n <%# SomeFunction(Container.DataItem) %>\n public st... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5853/"
] |
287,369 | <p>I was wondering if there was a simple way to use WMI to get you the current windows user name with domain. The Windows API call just gets you the short username, so you end up doing another call for the domain name. I have some code, but I get an automation error.
Any ideas? I think I'm on the right path, but I am a... | [
{
"answer_id": 287658,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": true,
"text": "\"SELECT * FROM Win32_Process WHERE Name = 'EXCEL.EXE'\"\n"
},
{
"answer_id": 288751,
"author": "dbb",
"author_... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
287,370 | <p>I'm supporting/enhancing a web application written in Classic ASP/VBScript. It has been about 10 years since I have used either in a day to day capacity. I just ran across an issue that I would consider a "gotcha" and was wondering if others had similar things that I should learn to be aware of.</p>
<p>My issue:<... | [
{
"answer_id": 287429,
"author": "Mark Cidade",
"author_id": 1659,
"author_profile": "https://Stackoverflow.com/users/1659",
"pm_score": 2,
"selected": false,
"text": "Set Dim rs : Set rs = CreateObject(\"ADODB.Recordset\");\n Dim field : Set field = rs(0)\n Dim fieldValue : fiel... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32528/"
] |
287,373 | <p>How can you find the number of occurrences of a particular character in a string using sql?</p>
<p>Example: I want to find the number of times the letter ‘d’ appears in this string.</p>
<pre><code>declare @string varchar(100)
select @string = 'sfdasadhfasjfdlsajflsadsadsdadsa'
</code></pre>
| [
{
"answer_id": 287388,
"author": "Mladen Prajdic",
"author_id": 31345,
"author_profile": "https://Stackoverflow.com/users/31345",
"pm_score": 7,
"selected": true,
"text": "declare @string varchar(100)\nselect @string = 'sfdasadhfasjfdlsajflsadsadsdadsa'\nSELECT LEN(@string) - LEN(REPLACE... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
287,378 | <p>I'm trying to switch on and off the Rotate 180 degree setting for an HP Laserjet printer (4200/ 4350) using a duplexer unit.</p>
<p>The Business has a requirement to "print on both sides", for maximum control I'd like to be able to manipulate at print time (through print macros) whether or not duplex printing is en... | [
{
"answer_id": 287388,
"author": "Mladen Prajdic",
"author_id": 31345,
"author_profile": "https://Stackoverflow.com/users/31345",
"pm_score": 7,
"selected": true,
"text": "declare @string varchar(100)\nselect @string = 'sfdasadhfasjfdlsajflsadsadsdadsa'\nSELECT LEN(@string) - LEN(REPLACE... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287378",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32337/"
] |
287,379 | <p>I have a C/C++ source file with conditional compilation. Before I ship it to customers I want to remove most of the #if statements, so that my customers do not need to worry about passing the right -D options to the compiler.</p>
<p>I have this implemented and working in Python, but it only handles #ifdef and #ifn... | [
{
"answer_id": 287393,
"author": "unwind",
"author_id": 28169,
"author_profile": "https://Stackoverflow.com/users/28169",
"pm_score": 0,
"selected": false,
"text": "cpp"
},
{
"answer_id": 287521,
"author": "Michael Burr",
"author_id": 12711,
"author_profile": "https:/... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37386/"
] |
287,385 | <p>I'm trying to write an algorithm that will find the set of all vertices in a graph with degree smaller than their neighbors. My initial approach is to find the degree of each vertex, then work through the list, comparing the degree of each vertex with the degree(s) of its neighbors. Unfortunately, this looks like it... | [
{
"answer_id": 287546,
"author": "Scott Wegner",
"author_id": 33791,
"author_profile": "https://Stackoverflow.com/users/33791",
"pm_score": 1,
"selected": false,
"text": "let Q = all nodes which haven't been checked (initialize all V)\nlet Q* = all nodes which satisfy the required condit... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27884/"
] |
287,398 | <p>When writing a custom itemRenderer, how do you reference the height and width of the grid cell that it will be rendered in? In such a way that it will resize correctly when the grid is resized.</p>
<p>I am writing a dataGrid itemRenderer that draws a bar graph in the final column of a table.</p>
<p>I have tried r... | [
{
"answer_id": 289217,
"author": "seanalltogether",
"author_id": 26986,
"author_profile": "https://Stackoverflow.com/users/26986",
"pm_score": 3,
"selected": false,
"text": "ResizeEvent.RESIZE protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287398",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32392/"
] |
287,399 | <p>I have an msbuild project which builds a SLN file from visual studio which holds all the projects in (about 70+ project), and a lot of the projects are dependent on each other meaning they need to be build in order - sometimes a developer forgets to set the build order manually in visual studio in the solution file ... | [
{
"answer_id": 5656948,
"author": "Ruben Bartelink",
"author_id": 11635,
"author_profile": "https://Stackoverflow.com/users/11635",
"pm_score": 2,
"selected": false,
"text": "ResolveReferences Microsoft.Common.targets Task DependsOnTargets Microsoft.Common.targets ResolveReferences Proje... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28197/"
] |
287,401 | <p>The following code does not compile:</p>
<pre><code>public class GenericsTest {
public static void main(String[] args) {
MyList<?> list = new MyList<Object>();
Class<?> clazz = list.get(0);
// Does not compile with reason
// "Type mismatch: cannot convert ... | [
{
"answer_id": 287426,
"author": "Bogdan",
"author_id": 24022,
"author_profile": "https://Stackoverflow.com/users/24022",
"pm_score": -1,
"selected": false,
"text": "Class clazz2 = list2.get(0).getClass();\n"
},
{
"answer_id": 287430,
"author": "matt b",
"author_id": 4249... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287401",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/969/"
] |
287,404 | <p>So I've got a big text file which looks like the following:</p>
<pre><code><option value value='1' >A
<option value value='2' >B
<option value value='3' >C
<option value value='4' >D
</code></pre>
<p>It's several hundred lines long and I really don't want to do it manually. The expression t... | [
{
"answer_id": 287415,
"author": "xsl",
"author_id": 11387,
"author_profile": "https://Stackoverflow.com/users/11387",
"pm_score": 3,
"selected": false,
"text": "option :%s/<option.*>//g\n"
},
{
"answer_id": 287416,
"author": "Lucas Oman",
"author_id": 6726,
"author_p... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25371/"
] |
287,407 | <p>I've got a popup div showing on rightclick (I know this breaks expected functionality but Google Docs does it so why not?) However the element I'm showing my popup on has a "title" attribute set which appears over the top of my div. I still want the tooltip to work but not when the popup is there.</p>
<p>What's the... | [
{
"answer_id": 287469,
"author": "Josh",
"author_id": 2204759,
"author_profile": "https://Stackoverflow.com/users/2204759",
"pm_score": 3,
"selected": true,
"text": "$(\"element#id\").hover(\n function() {\n $(this).attr(\"title\",\"\");\n $(\"div#popout\").show();\n },\n function() {\... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4950/"
] |
287,408 | <p>So I've setup an Ubuntu server running the 8.04 release. I set it up to authenticate with our Active Directory using the likewise-open package using <a href="http://devarthur.blogspot.com/2008/05/integrating-ubuntu-hardy-heron-804-with.html" rel="nofollow noreferrer">these instructions</a>. Part of that setup was gi... | [
{
"answer_id": 287777,
"author": "JimB",
"author_id": 32880,
"author_profile": "https://Stackoverflow.com/users/32880",
"pm_score": 0,
"selected": false,
"text": "+@AdminGroup::::::/bin/bash\n+@Everyone::::::/sbin/nologin\n"
},
{
"answer_id": 288503,
"author": "Lance McNearne... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25549/"
] |
287,409 | <p>Lucky me, I have to work with Oracle. And packages. </p>
<p>I have a package that a lot of different developers are touching and it's scaring me. Is it possible to put a package inside of Version Control? Is there some kind of software out there that already does this? If not, is there some kind of export procedure... | [
{
"answer_id": 287455,
"author": "bart",
"author_id": 19966,
"author_profile": "https://Stackoverflow.com/users/19966",
"pm_score": 3,
"selected": true,
"text": "CREATE OR REPLACE PACKAGE MYPACKAGE AS END; SELECT TEXT FROM ALL_SOURCE\nWHERE TYPE='PACKAGE BODY'\n AND NAME='MYPACKAGE' \n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/543/"
] |
287,414 | <p>I have some static images in a folder on my IIS 6-based website that I want to be downloaded as little as possible (to preserve bandwidth). I've set the Content Expiration to expire after 30 days. Is there anything else I can do in IIS to try to maximize the caching by browsers, proxy, and gateway caches?</p>
<p>Su... | [
{
"answer_id": 287455,
"author": "bart",
"author_id": 19966,
"author_profile": "https://Stackoverflow.com/users/19966",
"pm_score": 3,
"selected": true,
"text": "CREATE OR REPLACE PACKAGE MYPACKAGE AS END; SELECT TEXT FROM ALL_SOURCE\nWHERE TYPE='PACKAGE BODY'\n AND NAME='MYPACKAGE' \n ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36400/"
] |
287,441 | <p>Let's assume I have a model called "product." Let's assume that product has three fields. These fields are 'name' (type string), 'cost' (type integer), and 'is_visible' (type bool).</p>
<p>1) How can I do a search query using the Rails "find" method (if there is another method, that's fine) so that I can search f... | [
{
"answer_id": 287547,
"author": "scottd",
"author_id": 5935,
"author_profile": "https://Stackoverflow.com/users/5935",
"pm_score": 5,
"selected": true,
"text": "Product.find(:all, :conditions => ['cost > ? and is_visible is true', 100])\n Product.find(:all, :conditions => [\"name != '' ... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10333/"
] |
287,443 | <p>Consider an SQL Server table containing:</p>
<pre><code>ID ParentID Text
=== ========= =============
1 (null) Product
2 (null) Applications
3 1 Background
4 1 Details
5 2 Mobile
</code></pre>
<p>i fill a SqlDataSet with the table, and now i want to add the P... | [
{
"answer_id": 5697912,
"author": "goamn",
"author_id": 712700,
"author_profile": "https://Stackoverflow.com/users/712700",
"pm_score": 3,
"selected": true,
"text": "relation.Nested = true;\nds.Relations.Add(relation);\n"
}
] | 2008/11/13 | [
"https://Stackoverflow.com/questions/287443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
287,445 | <p>I can understand wanting to avoid having to use a cursor due to the overhead and inconvenience, but it looks like there's some serious cursor-phobia-mania going on where people are going to great lengths to avoid having to use one.</p>
<p>For example, one question asked how to do something obviously trivial with a ... | [
{
"answer_id": 287492,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 7,
"selected": true,
"text": "CREATE TABLE INSERT SELECT"
},
{
"answer_id": 287508,
"author": "Mladen Prajdic",
"author_id": 31345,
"a... | 2008/11/13 | [
"https://Stackoverflow.com/questions/287445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9345/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.