qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
362,489 | <p>Using <a href="https://numpy.org/" rel="nofollow noreferrer">NumPy</a>, a matrix A has n rows and m columns, and I want add a guard ring to matrix A. That guard ring is all zero.</p>
<p>What should I do? Use Reshape? But the element is not enough to make a n+1 m+1 matrix.</p>
<p>Or etc.?</p>
<p>Thanks in advance</p>... | [
{
"answer_id": 363040,
"author": "Alex Coventry",
"author_id": 1941213,
"author_profile": "https://Stackoverflow.com/users/1941213",
"pm_score": 4,
"selected": true,
"text": ">>> import numpy\n>>> a = numpy.array(range(9)).reshape((3,3))\n>>> b = numpy.zeros(tuple(s+2 for s in a.shape), ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44354/"
] |
362,503 | <p>I have been trying to remove the text before and after a particular character in each line of a text. It would be very hard to do manually since it contain 5000 lines and I need to remove text before that keyword in each line. Any software that could do it, would be great or any Perl scripts that could run on Window... | [
{
"answer_id": 362517,
"author": "mat",
"author_id": 42083,
"author_profile": "https://Stackoverflow.com/users/42083",
"pm_score": 1,
"selected": false,
"text": "$text =~ s/^.*(keyword1|keyword2).*$/$1/m;\n"
},
{
"answer_id": 362554,
"author": "Xetius",
"author_id": 274,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45614/"
] |
362,514 | <p>I wanted to set a CSS class in my master page, which depends on the current controller and action. I can get to the current controller via <code>ViewContext.Controller.GetType().Name</code>, but how do I get the current action (e.g. <code>Index</code>, <code>Show</code> etc.)?</p>
| [
{
"answer_id": 362536,
"author": "terjetyl",
"author_id": 29519,
"author_profile": "https://Stackoverflow.com/users/29519",
"pm_score": 3,
"selected": false,
"text": "ViewData[\"CssClass\"] = \"bold\";\n"
},
{
"answer_id": 362539,
"author": "tvanfosson",
"author_id": 1295... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362514",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33647/"
] |
362,516 | <p>How can one ignore Unexpected element situation in JAXB ans still get all other kind of javax.xml.bind.UnmarshalException?</p>
<pre><code>obj = unmler.unmarshal(new StringReader(xml))
</code></pre>
<p>Notice i still want to get the obj result of the xml parsing.</p>
| [
{
"answer_id": 362533,
"author": "João",
"author_id": 35323,
"author_profile": "https://Stackoverflow.com/users/35323",
"pm_score": 5,
"selected": true,
"text": "class CustomValidationEventHandler implements ValidationEventHandler{\n\n public boolean handleEvent(ValidationEvent evt) {... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/35323/"
] |
362,522 | <p>I recently tried switching from using <code>python-mode.el</code> to <code>python.el</code> for editing python files in emacs, found the experience a little alien and unproductive, and scurried back. I've been using <code>python-mode.el</code> for something like ten years, so perhaps I'm a little set in my ways. I... | [
{
"answer_id": 368719,
"author": "Steven Huwig",
"author_id": 28604,
"author_profile": "https://Stackoverflow.com/users/28604",
"pm_score": 2,
"selected": false,
"text": "(define-key inferior-python-mode-map \"\\C-c\\t\" 'python-complete-symbol)\n"
},
{
"answer_id": 71343689,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1941213/"
] |
362,541 | <p>I'm new to TDD. So any help would be appreciated. I'm using NUnit and Rhino mocks.
How can I set the ID value to 1 in my mock object?</p>
<p>I had a look at this: <a href="http://www.iamnotmyself.com/2008/06/26/RhinoMocksAndReadOnlyPropertyInjectionPart2.aspx" rel="nofollow noreferrer">http://www.iamnotmyself.com/2... | [
{
"answer_id": 368719,
"author": "Steven Huwig",
"author_id": 28604,
"author_profile": "https://Stackoverflow.com/users/28604",
"pm_score": 2,
"selected": false,
"text": "(define-key inferior-python-mode-map \"\\C-c\\t\" 'python-complete-symbol)\n"
},
{
"answer_id": 71343689,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11538/"
] |
362,544 | <p>I was trying to find online some exercises to practice scaling techniques (memchached, SQL Optimization, sharding dbs), but I could only find descriptions of these techniques, not any project on which to try them.</p>
<p>This link with <a href="http://www.slideshare.net/Georgio_1999/how-to-scale-your-web-app" rel="... | [
{
"answer_id": 393769,
"author": "James Brady",
"author_id": 29903,
"author_profile": "https://Stackoverflow.com/users/29903",
"pm_score": 1,
"selected": false,
"text": "memcached"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4749/"
] |
362,548 | <p>I am trying to find the best practice for generating and outputting html which would require a database query first to obtain the info. Currently in the aspx page I have a div with runat server:</p>
<pre><code><div runat="server" id="leaflet"></div>
</code></pre>
<p>Now just as a start to do a bit of t... | [
{
"answer_id": 362558,
"author": "Vilx-",
"author_id": 41360,
"author_profile": "https://Stackoverflow.com/users/41360",
"pm_score": 3,
"selected": true,
"text": "<asp:Literal runat=\"server\" enableViewState=\"false\" id=\"leaflet\" />"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
362,555 | <p><code>FromIp</code> contains <code>"192.168.1.1"</code>. I want to get the last number, but I can't figure out what's wrong here:</p>
<pre><code>
Dim str As String
str = FromIP.Text.Substring(FromIP.Text.LastIndexOf("."), FromIP.Text.Length).ToString()
MessageBox.Show(FromIP.Text.Length)
</code></pre>
| [
{
"answer_id": 362562,
"author": "Eduardo Molteni",
"author_id": 2385,
"author_profile": "https://Stackoverflow.com/users/2385",
"pm_score": 3,
"selected": true,
"text": " Dim FromIp As String = \"192.168.1.1\"\n Dim str As String\n str = FromIp.Substring(FromIp.LastIndexOf(\".\... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,556 | <p>i'm having an issue with creating a query in oracle which doesnt seem to want to join on missing values </p>
<p>the table i have is this:</p>
<pre><code>table myTable(refnum, contid, type)
values are:
1, 10, 90000
2, 20, 90000
3, 30, 90000
4, 20, 10000
5, 30, 10000
6, 10, 20000
7, 20, 20000
8, 30, 20000
</code></... | [
{
"answer_id": 362569,
"author": "Tom Haigh",
"author_id": 22224,
"author_profile": "https://Stackoverflow.com/users/22224",
"pm_score": 6,
"selected": true,
"text": "and b.id_tp_cd = 10000\nand c.id_tp_cd = 20000\n"
},
{
"answer_id": 7775367,
"author": "Trevor North",
"a... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362556",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21180/"
] |
362,560 | <p>In a nutshell: I want to do the same thing "Dependency Walker" does.</p>
<p>Is there any Win32 API function which can enumerate the dependencies of a EXE and/or DLL file?</p>
<p>And is there any safe way to detect dependencies on ActiveX classes? (I doubt it is possible, but who knows ...)</p>
<p><strong>EDIT:</s... | [
{
"answer_id": 362655,
"author": "bltxd",
"author_id": 11892,
"author_profile": "https://Stackoverflow.com/users/11892",
"pm_score": 3,
"selected": false,
"text": "dumpbin /imports some.exe\n"
},
{
"answer_id": 46087150,
"author": "Ed Williams",
"author_id": 4651886,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23368/"
] |
362,570 | <p>I am using Carbide (just upgraded to 2.0) to develop an S60 3rd Edition application.</p>
<p>I would like to know the easiest way to change the icon (both the application icon on the device menu <strong>and</strong> the icon at the top left of the main view) because I have the need to skin my application in many dif... | [
{
"answer_id": 368093,
"author": "Kasprzol",
"author_id": 5957,
"author_profile": "https://Stackoverflow.com/users/5957",
"pm_score": 3,
"selected": true,
"text": "CEikStatusPane* sp=iEikonEnv->AppUiFactory()->StatusPane();\nCAknContextPane* cp=(CAknContextPane *)sp->ControlL(TUid::Uid(E... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33604/"
] |
362,586 | <p>I am trying to use the Data View Web Part in Sharepoint. There are many articles on the web related to populating it with data. My question is, what if the data source is empty? Is there a way to display a default message in this scenario?</p>
| [
{
"answer_id": 366807,
"author": "Bjørn Furuknap",
"author_id": 28382,
"author_profile": "https://Stackoverflow.com/users/28382",
"pm_score": 3,
"selected": true,
"text": " <xsl:variable name=\"dvt_IsEmpty\" select=\"$dvt_RowCount = 0\" />\n <xsl:choose>\n <xsl:when test=\"$... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362586",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,603 | <p>How do I set a disabled TextBox's current text color to be the same as its current background color in C#?</p>
<p>Simply doing txtLala.ForeColor = txtLala.BackColor does not seems to work.</p>
| [
{
"answer_id": 362608,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 0,
"selected": false,
"text": "txtLala.BackColor = System.Drawing.SystemColors.Info;\ntxtLala.ForeColor = txtLala.BackColor;\n"
},
{
"answer_id":... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362603",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,614 | <p>How do I call onclick on a radiobutton list using javascript?</p>
| [
{
"answer_id": 362634,
"author": "Michael Haren",
"author_id": 29,
"author_profile": "https://Stackoverflow.com/users/29",
"pm_score": 5,
"selected": false,
"text": "<input type=\"radio\" onclick=\"alert('hello');\"/>\n"
},
{
"answer_id": 362643,
"author": "Tom",
"author_... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,618 | <p>Among the data my application sends to a third-party SOA server are complex XMLs. The server owner does provide the XML schemas (<code>.xsd</code>) and, since the server rejects invalid XMLs with a meaningless message, I need to validate them locally before sending.</p>
<p>I could use a stand-alone XML schema valid... | [
{
"answer_id": 362625,
"author": "Piskvor left the building",
"author_id": 19746,
"author_profile": "https://Stackoverflow.com/users/19746",
"pm_score": 2,
"selected": false,
"text": "400 Bad request"
},
{
"answer_id": 362734,
"author": "Tom",
"author_id": 40620,
"aut... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362618",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23193/"
] |
362,628 | <p>I am calling 4-5 scripts from a file at once.
But I need to give only one input to the file in the first sql that I am calling.</p>
<p>That input will be the input for all the other sql files I have called after the first one.</p>
<p>Is there any way to do that?</p>
<p>please help.</p>
| [
{
"answer_id": 362652,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 0,
"selected": false,
"text": "create view view1 as select * from table1;\ncreate view view2 as select * from view2;\ncreate view view3 as select * ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362628",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,632 | <p>the other day a colleague of mine stated that using static classes can cause performance issues on multi-core systems, because the static instance cannot be shared between the processor caches. Is that right? Are there some benchmarks around proofing this statement? This statement was made in the context of .Net dev... | [
{
"answer_id": 362667,
"author": "bangroot",
"author_id": 45693,
"author_profile": "https://Stackoverflow.com/users/45693",
"pm_score": 2,
"selected": false,
"text": "Foo"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43633/"
] |
362,670 | <p>I am dropping something in a ListView in WPF. I need to know the item in the (X,Y) position I am dropping. How can I do this?</p>
<hr>
<p>The WPF ListView doesn't have GetItemAt. I return to my original problem.</p>
| [
{
"answer_id": 363572,
"author": "Mariano",
"author_id": 12514,
"author_profile": "https://Stackoverflow.com/users/12514",
"pm_score": 4,
"selected": true,
"text": "private int GetCurrentIndex(GetPositionDelegate getPosition)\n{\n int index = -1;\n for (int i = 0; i < clasesListVie... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12514/"
] |
362,674 | <p>I am trying to work out the overhead of the ASP.NET auto-naming of server controls. I have a page which contains 7,000 lines of HTML rendered from hundreds of nested ASP.NET controls, many of which have id / name attributes that are hundreds of characters in length. </p>
<p>What I would ideally like is something th... | [
{
"answer_id": 362709,
"author": "Tim Pietzcker",
"author_id": 20670,
"author_profile": "https://Stackoverflow.com/users/20670",
"pm_score": 1,
"selected": false,
"text": "\\w+\\s*=\\s*\"ctl00[^\"]*\"\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45698/"
] |
362,727 | <p>How do you go about building a complete keyboard-accessible web application? Assuming that this for a controlled deployment environment (for use within an org) where access is restricted (not open to public). </p>
<p>Update: Forgot to mention that this is aimed at improving data entry efficiency and is not disabili... | [
{
"answer_id": 365566,
"author": "Jeff.Crossett",
"author_id": 44746,
"author_profile": "https://Stackoverflow.com/users/44746",
"pm_score": 2,
"selected": false,
"text": "shortcut.add(\"Ctrl+Shift+X\",function() {\n alert(\"Hi there!\");\n});\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17404/"
] |
362,730 | <p>Somewhere along the line I picked up the notion that using iframes is 'bad practice'. </p>
<p>Is this true? What are the pros/cons of using them?</p>
| [
{
"answer_id": 362752,
"author": "Tom",
"author_id": 40620,
"author_profile": "https://Stackoverflow.com/users/40620",
"pm_score": 6,
"selected": false,
"text": "iframe"
},
{
"answer_id": 17141400,
"author": "mel3kings",
"author_id": 2023728,
"author_profile": "https:... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4196/"
] |
362,737 | <p>I am developing an interface that takes as input an encrypted byte stream -- probably a very <em>large</em> one -- that generates output of more or less the same format.</p>
<p>The input format is this:</p>
<pre><code>{N byte envelope}
- encryption key IDs &c.
{X byte encrypted body}
</code></pre>
<p>The ... | [
{
"answer_id": 362792,
"author": "Gunnar Steinn",
"author_id": 33468,
"author_profile": "https://Stackoverflow.com/users/33468",
"pm_score": 0,
"selected": false,
"text": "ConcurrentLinkedQueue<String> outputQueue = new ConcurrentLinkedQueue<String>();\n...\n\nprivate void readInput(Stre... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23309/"
] |
362,739 | <p>Is there anyway how to check which website is being used with that pool without browsing each website and checks its assigned pool?</p>
<p>I have approximately 35 websites and I can't afford browsing the websites one by one....</p>
<p>Thanks</p>
| [
{
"answer_id": 362792,
"author": "Gunnar Steinn",
"author_id": 33468,
"author_profile": "https://Stackoverflow.com/users/33468",
"pm_score": 0,
"selected": false,
"text": "ConcurrentLinkedQueue<String> outputQueue = new ConcurrentLinkedQueue<String>();\n...\n\nprivate void readInput(Stre... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362739",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
362,740 | <p>For years and years, I've tried to understand the <a href="http://java.sun.com/docs/books/jls/third_edition/html/memory.html#17.4" rel="noreferrer">part</a> of Java specification that deals with memory model and concurrency. I have to admit that I've failed miserably. Yes' I understand about locks and "synchronized"... | [
{
"answer_id": 362804,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "Thread 1: foo.x = 257;\nThread 2: int y = foo.x;\n"
},
{
"answer_id": 362844,
"author": "Michael Borgwardt",
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,748 | <p>I have a product registration form that allows the user to add additional product fields by clicking "add product". When the user clicks add product, Javascript creates new product field in an existing div.</p>
<p>I currently allow up to 10 products to be added on the form, so I setup a div structure like this:</p>... | [
{
"answer_id": 362782,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 3,
"selected": true,
"text": "$(\"someContainerDiv\").insert(new Element(\"div\", { id: \"product_\"+prodId, 'class':'prod' }))\n"
}... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362748",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26180/"
] |
362,760 | <p>I have two questions.</p>
<ol>
<li><p>Do <code>realloc()</code> and <code>memcpy()</code> copy the entries in an array to another in a way faster than just iterating on each element <code>O(N)</code> ? If the answer is yes then what do you think is its complexity ?</p></li>
<li><p>If the size allocated is smaller t... | [
{
"answer_id": 362841,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 3,
"selected": false,
"text": "memcpy"
},
{
"answer_id": 394654,
"author": "Charlie Martin",
"author_id": 35092,
"author_profil... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27400/"
] |
362,770 | <p>My question is, if an interface that is implemented implicitly by extending a class that already implements it, should be explicitly implemented by the class, if the class wants to advertise the fact, that it fulfills the contract of that interface. </p>
<p>For instance, if you want to write a class, that fulfills ... | [
{
"answer_id": 539501,
"author": "Sean McCauliff",
"author_id": 62720,
"author_profile": "https://Stackoverflow.com/users/62720",
"pm_score": 2,
"selected": false,
"text": "import java.io.Serializable;\n\nclass Test implements Serializable {\n class Inner extends Test {\n }\n\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362770",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21005/"
] |
362,790 | <p>I need to get all dlls in my application root directory. What is the best way to do that?</p>
<pre><code>string root = Application.StartupPath;
</code></pre>
<p>Or,</p>
<pre><code>string root = new FileInfo(Assembly.GetExecutingAssembly().Location).FullName;
</code></pre>
<p>And after that,</p>
<pre><code>Direc... | [
{
"answer_id": 362842,
"author": "Greg Dean",
"author_id": 1200558,
"author_profile": "https://Stackoverflow.com/users/1200558",
"pm_score": 7,
"selected": true,
"text": "AppDomain.CurrentDomain.BaseDirectory"
},
{
"answer_id": 362858,
"author": "Rob Prouse",
"author_id":... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41956/"
] |
362,793 | <p>Is there a regular expression that matches valid regular expressions? </p>
<p>(I know there are several flavors of regexps. One would do.)</p>
| [
{
"answer_id": 365200,
"author": "Jan Goyvaerts",
"author_id": 33358,
"author_profile": "https://Stackoverflow.com/users/33358",
"pm_score": 6,
"selected": true,
"text": "^"
},
{
"answer_id": 481695,
"author": "kajaco",
"author_id": 30924,
"author_profile": "https://S... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19734/"
] |
362,808 | <p>I have a fresh install of django 1.0 and a simple page served from it takes 5 secs to load. On my colleague's computer it takes almost no time.</p>
<p>I start the server using </p>
<pre>
python manage.py testserver
</pre>
<p>I can see each GET request (PNGs and style sheets) take about half a second.</p>
<p>Anot... | [
{
"answer_id": 363563,
"author": "tzot",
"author_id": 6899,
"author_profile": "https://Stackoverflow.com/users/6899",
"pm_score": 2,
"selected": false,
"text": "/etc/hosts"
},
{
"answer_id": 662541,
"author": "Ty.",
"author_id": 53390,
"author_profile": "https://Stack... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5978/"
] |
362,822 | <p>I have a dll that contains a templated class. Is there a way to export it without explicit specification?</p>
| [
{
"answer_id": 362924,
"author": "Laserallan",
"author_id": 11758,
"author_profile": "https://Stackoverflow.com/users/11758",
"pm_score": 3,
"selected": false,
"text": "typedef std::vector<int> IntVec;\n"
},
{
"answer_id": 46392757,
"author": "Peter Driscoll",
"author_id"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362822",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38106/"
] |
362,830 | <p>I have a circular dependency between two functions. I would like each of these functions to reside in its own dll. Is it possible to build this with visual studio?</p>
<pre><code>foo(int i)
{
if (i > 0)
bar(i -i);
}
</code></pre>
<p>-> should compile into foo.dll</p>
<pre><code>bar(int i)
{
if (i &... | [
{
"answer_id": 363077,
"author": "Keith",
"author_id": 42845,
"author_profile": "https://Stackoverflow.com/users/42845",
"pm_score": 1,
"selected": false,
"text": "Public Function foo(ByVal value As C.IB) As Integer Implements C.IA.foo\n Return value.bar(Me)\nEnd Function\n"
},
{
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45711/"
] |
362,861 | <p>I'm implementing a COM interface that should return int values either <code>S_OK</code> or <code>E_FAIL</code>. I'm ok returning <code>S_OK</code> as I get that back from another call (Marshal.QueryInterface), but if I want to return a failure value what actual value do I use for <code>E_FAIL</code>?</p>
<p>(It's su... | [
{
"answer_id": 362876,
"author": "Binary Worrier",
"author_id": 18797,
"author_profile": "https://Stackoverflow.com/users/18797",
"pm_score": 4,
"selected": true,
"text": " static void Main(string[] args)\n {\n UInt32 us = 0x80004005;\n Int32 s = (Int32)us;\n\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8479/"
] |
362,872 | <p>I'm getting the following exception when saving an object:</p>
<blockquote>
<p>Found shared references to a collection</p>
</blockquote>
<p>Does anyone know what this means?</p>
| [
{
"answer_id": 362921,
"author": "Scott Cowan",
"author_id": 253,
"author_profile": "https://Stackoverflow.com/users/253",
"pm_score": 2,
"selected": false,
"text": " rel Group n --- 1 User\n m ^\n | | inh\n | rel |\n ---... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,902 | <p>I have a two-page SSRS report. When I exported it to PDF it was taking 4 pages due to its width, where the 2nd and 4th pages were displaying one of my fields from the table. I tried to set the layout size in report properties as width=18in and height =8.5in.</p>
<p>It gave me the whole table in a single page of PDF... | [
{
"answer_id": 10096554,
"author": "Joshua Drake",
"author_id": 19308,
"author_profile": "https://Stackoverflow.com/users/19308",
"pm_score": 3,
"selected": false,
"text": "+"
},
{
"answer_id": 17710993,
"author": "Chrysalis",
"author_id": 788117,
"author_profile": "h... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,907 | <p>In a custom role provider (inheriting from RoleProvider) in .NET 2.0, the IsUserInRole method has been hard-coded to always return true:</p>
<pre><code>public override bool IsUserInRole(string username, string roleName) { return true; }
</code></pre>
<p>In an ASP.NET application configured to use this role provide... | [
{
"answer_id": 362990,
"author": "Andrew Rollings",
"author_id": 40410,
"author_profile": "https://Stackoverflow.com/users/40410",
"pm_score": 3,
"selected": true,
"text": "public static bool IsUserInRole(string roleName)\n{\n return IsUserInRole(GetCurrentUserName(), roleName);\n}\n"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25837/"
] |
362,911 | <p>I'm working with NHibernate and need to retrieve and process up to 2 million rows. Ideally, I could process each row - one at a time - without NHibernate loading all 2 million in memory at once (because, you know, that hurts). </p>
<p>I'd prefer to get an IEnumerable which would call the data reader iteratively f... | [
{
"answer_id": 362933,
"author": "Strelok",
"author_id": 2788,
"author_profile": "https://Stackoverflow.com/users/2788",
"pm_score": 0,
"selected": false,
"text": "public IEnumerable<YourObject> GetALotOfRows() {\n ..execute DataReader\n while(..read..) {\n yield return yourObject;\... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18941/"
] |
362,918 | <p>I'm looking for a good pattern to resolve the following circular reference in a Windows Form application:</p>
<ul>
<li>Assembly 1 contains a Windows Form with an Infragistics menu item ".Show"ing a Form in Assembly 2</li>
<li>Assembly 2 contains a Windows Form with an Infragistics menu item ".Show"ing a Form in Ass... | [
{
"answer_id": 362942,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 2,
"selected": false,
"text": "using System;\nusing System.Windows.Forms;\nclass Form1 : Form\n{\n public event EventHandler Foo;\n public For... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45720/"
] |
362,945 | <p>I want to select nodes for which a specific attribute does not exist. I've tried the Not() function, but it doesn't work. Is there a way for this?</p>
<p>Example:
The following Xpath query:</p>
<pre><code>group/msg[not(@owner)]
</code></pre>
<p>Should retrieve the first node but not the 2nd one. However, both Ske... | [
{
"answer_id": 363017,
"author": "Jonas Elfström",
"author_id": 44620,
"author_profile": "https://Stackoverflow.com/users/44620",
"pm_score": 4,
"selected": false,
"text": "string-length(@attr)=0"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29568/"
] |
362,948 | <p>I spent several hours yesterday trying to digitally sign a short file using an X509 certificate (one of the "freemail" certificates from thawte). I finally got openssl to sign it as an SMIME message, but I can't successfully verify it, AND it's in the SMIME format -- I don't have access to a "sendmail" program which... | [
{
"answer_id": 373099,
"author": "Rasmus Faber",
"author_id": 5542,
"author_profile": "https://Stackoverflow.com/users/5542",
"pm_score": 2,
"selected": false,
"text": "openssl pkcs12 -in file.p12 -out file.pem\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44330/"
] |
362,953 | <p>I just learned about the C++ construct called "placement new". It allows you to exactly control where a pointer points to in memory. It looks like this:</p>
<pre><code> #include <new> // Must #include this to use "placement new"
#include "Fred.h" // Declaration of class Fred
void someCode()
{... | [
{
"answer_id": 362975,
"author": "James Hopkin",
"author_id": 11828,
"author_profile": "https://Stackoverflow.com/users/11828",
"pm_score": 3,
"selected": false,
"text": "variant"
},
{
"answer_id": 363707,
"author": "Martin York",
"author_id": 14065,
"author_profile":... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6688/"
] |
362,955 | <p>Is it a good idea to have a factory class using generics to instantiate objects?</p>
<p>Let's say I have a class Animal and some subclasses (Cat, Dog, etc):</p>
<pre><code>abstract class Animal
{
public abstract void MakeSound();
}
class Cat : Animal
{
public override void MakeSound()
{
Consol... | [
{
"answer_id": 363020,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "class Foo\n{\n static Foo<TKey, TValue> Create<TKey, TValue>(TKey key, TValue value) \n {...}\n}\n\nclass Foo<TKey... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362955",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
362,956 | <p>Is it Oracle or MySQL or something they have built themselves?</p>
| [
{
"answer_id": 362970,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 10,
"selected": true,
"text": "anchor:cnnsi.com"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2041/"
] |
362,958 | <p>I have compiled code that erroneously tries to add a number and Double.NaN. I'm wondering if it's throwing an exception that's not getting caught? Does anyone know how that situation is handled?<br>
Thanks.</p>
| [
{
"answer_id": 362977,
"author": "Steve B.",
"author_id": 19479,
"author_profile": "https://Stackoverflow.com/users/19479",
"pm_score": 0,
"selected": false,
"text": "public static void main(String args[])\n{\n Double d = Double.NaN + 1.0;\n System.out.println(d);\n}\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/362958",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45728/"
] |
362,972 | <p>I am new to grails.I am doing web application that uploads the image from client side and it stores that in server.</p>
<p>My Gsp code is:</p>
<pre><code><g:uploadForm action="saveImage">
<input type="file" name="image">
<input type="submit" value="Submit">
</g:uploadForm>
</code></pre>
<... | [
{
"answer_id": 4426671,
"author": "Sree",
"author_id": 540208,
"author_profile": "https://Stackoverflow.com/users/540208",
"pm_score": 2,
"selected": false,
"text": "if(params?.photo?.getContentType()=='image/jpeg' || \n params?.photo?.getContentType()=='image/gif' ||\n params?.photo... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40945/"
] |
362,979 | <p>As the name suggests I am trying to group rows in a datatable. To go into further detail this table has identical rows except for one field(column). Basically what I am trying to do is put all the different fields of the identical rows and put them in single field whilst deleting the other rows.</p>
<p>Here is the ... | [
{
"answer_id": 363117,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 0,
"selected": false,
"text": "control"
},
{
"answer_id": 363342,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile":... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45471/"
] |
362,983 | <p>I am trying to get a list of all unit test assemblies under the root of my project. I can do this as follows:</p>
<pre><code><CreateItem Include="**\bin\**\*.UnitTest.*.dll">
<Output TaskParameter="Include" ItemName="Items"/>
</CreateItem>
</code></pre>
<p>However, this will find the same DLLs... | [
{
"answer_id": 366677,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 2,
"selected": false,
"text": "<NormalizeByMetadata Items=\"@(ItemsToNormalize)\" MetadataName=\"Filename\">\n <Output TaskParameter=\"NormalizedI... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362983",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5380/"
] |
362,986 | <p>I want to capture the screen in my code to get an image - like using the 'print screen' button on the keyboard .</p>
<p>Does anyone have an idea how to do this? I have no starting point.</p>
| [
{
"answer_id": 363008,
"author": "Gary Willoughby",
"author_id": 13227,
"author_profile": "https://Stackoverflow.com/users/13227",
"pm_score": 8,
"selected": true,
"text": "CopyFromScreen()"
},
{
"answer_id": 25408623,
"author": "Skhanpara",
"author_id": 2334498,
"aut... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12637/"
] |
362,993 | <p>I'm developing a basic dip-switch user control as a personal learning exercise. Originally I had it set up where you could declare some custom color properties on the user control, and they would be used on elements inside the control.</p>
<p>However, I recenly discovered ToggleButtons, and rebuilt my control to ta... | [
{
"answer_id": 363145,
"author": "Bryan Anderson",
"author_id": 21186,
"author_profile": "https://Stackoverflow.com/users/21186",
"pm_score": 2,
"selected": false,
"text": "Public Property SwitchBkgndColor() As Brush\n Get\n Return CType(GetValue(SwitchBkgndColorProperty), Brus... | 2008/12/12 | [
"https://Stackoverflow.com/questions/362993",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/641985/"
] |
363,006 | <p>When I do an update and zillions of files are updated, I often miss the one that aren't merged because of conflicts. The only way I have is to go through all my changelists and look at file icons.</p>
<p>Isn't there a nicer way ? even a console based command would do...</p>
| [
{
"answer_id": 364518,
"author": "Commodore Jaeger",
"author_id": 4659,
"author_profile": "https://Stackoverflow.com/users/4659",
"pm_score": 2,
"selected": true,
"text": "p4 resolve -n\n"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39263/"
] |
363,026 | <p>I have the following linq code...</p>
<pre><code>CMSDataContext dc = new CMSDataContext();
var q = from u in dc.CMSUsers
join d in dc.tblDistricts
on u.DistrictCode equals d.District into orders
select u;
</code></pre>
<p>District shows this error:
Ambiguity between 'tblDistrict.Di... | [
{
"answer_id": 16130996,
"author": "gkiko",
"author_id": 660408,
"author_profile": "https://Stackoverflow.com/users/660408",
"pm_score": 2,
"selected": false,
"text": ".dbml"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1316/"
] |
363,031 | <p>I want to open a ZIP-file, that have no entries with java.util.zip.ZipFile. But on the constructor I get the following exception: 'java.util.zip.ZipException: error in opening zip file'. How can I open the empty ZIP?</p>
<p>That ZIP-file is created by the commandline zip-program under linux. I simply deleted all en... | [
{
"answer_id": 366680,
"author": "Tom Hawtin - tackline",
"author_id": 4725,
"author_profile": "https://Stackoverflow.com/users/4725",
"pm_score": -1,
"selected": false,
"text": "ZipOutputStream"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21005/"
] |
363,038 | <p>I am messing around with different PHP logging frameworks. I am currently trying PEAR::Log. I figured that I would use its <code>singleton</code> function to make sure there was only one instance of the class around.</p>
<p>I have a small daemon-like script I wanted to add logging to because it was probably the s... | [
{
"answer_id": 363146,
"author": "Michał Niedźwiedzki",
"author_id": 2169,
"author_profile": "https://Stackoverflow.com/users/2169",
"pm_score": 2,
"selected": true,
"text": "class Logger {\n\n private static $log;\n\n private function __construct() { }\n\n public static functio... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28714/"
] |
363,049 | <p>I have a <code>crontab</code> that looks like</p>
<pre><code>0 0 * * * pg_dump DB_NAME > /path/to/dumps/`date +%Y%m%d`.dmp
</code></pre>
<p>which works fine when I run it manually, but not when <code>cron</code> runs it. After digging through the logs, I see</p>
<pre><code>Dec 12 00:00:01 localhost crond[17638... | [
{
"answer_id": 363073,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 5,
"selected": true,
"text": "0 0 * * * pg_dump DB_NAME > /path/to/dumps/`date +\\%Y\\%m\\%d`.dmp\n"
},
{
"answer_id": 363144,
"author"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4203/"
] |
363,084 | <p>How would I Export tables specifying only certain fields?</p>
<p>I am using mysql 5.0 - using either a sql command or mysqldump.</p>
<p>My table is X, and the fields I want to export are A,B,C</p>
| [
{
"answer_id": 363089,
"author": "Powerlord",
"author_id": 15880,
"author_profile": "https://Stackoverflow.com/users/15880",
"pm_score": 5,
"selected": true,
"text": "SELECT A,B,C\nFROM X\nINTO OUTFILE 'file name';\n"
},
{
"answer_id": 363095,
"author": "inxilpro",
"autho... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363084",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37109/"
] |
363,086 | <p>I want to create custom tooltips where I can put any kind of controls. I have derived from CDialog and used the <code>WS_POPUP | WS_BORDER</code> styles. I also add the <code>CS_DROPSHADOW</code> style in the OnInitDialog to get the tooltip shadow.</p>
<p>Then I manage myself the <code>WM_MOUSEHOVER</code> and <cod... | [
{
"answer_id": 363101,
"author": "JTeagle",
"author_id": 162171,
"author_profile": "https://Stackoverflow.com/users/162171",
"pm_score": 1,
"selected": false,
"text": "CDialog::Create()"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14053/"
] |
363,094 | <p>Windows Mobile devices have different behaviour for suspending when the device is on battery power, or on external power.</p>
<p>in my application, written using VB.net, I need to be able to determine whether the device has external power connected.</p>
<p>is there a method to get this status from the Compact fram... | [
{
"answer_id": 363152,
"author": "bezmax",
"author_id": 43677,
"author_profile": "https://Stackoverflow.com/users/43677",
"pm_score": 1,
"selected": false,
"text": "if (SystemState.PowerBatteryState & BatteryState.Charging) ...\n"
},
{
"answer_id": 33953706,
"author": "Febrai... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5146/"
] |
363,096 | <p>IE causes a very unattractive flash or flicker when the page posts back. Without using an UpdatePanel, how can I reduce or remove it?</p>
<p>Most solutions suggest using page transitions like so:</p>
<pre><code><meta content="BlendTrans(Duration=0.1)" http-equiv="Page-Exit" />
</code></pre>
<p>We have been ... | [
{
"answer_id": 363127,
"author": "Dave Haynes",
"author_id": 7072,
"author_profile": "https://Stackoverflow.com/users/7072",
"pm_score": 3,
"selected": true,
"text": "<meta http-equiv=\"Page-Exit\" content=\"Alpha(opacity=100)\" />\n"
},
{
"answer_id": 363167,
"author": "Egil... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7072/"
] |
363,099 | <p>I am using <a href="http://msdn.microsoft.com/en-us/library/system.drawing.graphics.fillpolygon.aspx" rel="nofollow noreferrer">FillPolygon</a> with a semi-transparent color to draw a triangle (an arrow pointer). I have noticed that FillPolygon gives awkward results with an isocel triangle. One of the sides is overl... | [
{
"answer_id": 363352,
"author": "RS Conley",
"author_id": 7890,
"author_profile": "https://Stackoverflow.com/users/7890",
"pm_score": 1,
"selected": false,
"text": " Dim image As New Bitmap(<my_Xsize>, <my_Ysize>)\n Dim gr As Graphics = Graphics.FromImage(image)\n <Draw your Fi... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4898/"
] |
363,111 | <p>I use Vim and Vim plugins for Visual Studio when writing C++. Often, I find myself wanting to search for a string within a function, for example every call to <code>object->public_member.memberfunc()</code>.</p>
<p>I know Vim offers a convenient way to search for a single word, by pressing <code>*</code> and <cod... | [
{
"answer_id": 10452438,
"author": "Cory Klein",
"author_id": 446554,
"author_profile": "https://Stackoverflow.com/users/446554",
"pm_score": 7,
"selected": false,
"text": "q/"
},
{
"answer_id": 14747639,
"author": "cutemachine",
"author_id": 409550,
"author_profile":... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22724/"
] |
363,156 | <p>I have a cocoa app with two types windows each of which requires a different main menu to be displayed.</p>
<p>In my MainMenu.xib I have the default MainMenu. In Window1.xib I have Window1 and in Window2.xib I have Window2 and it's MainMenu.</p>
<p>When I have the first Window open I have the default Menu, when I ... | [
{
"answer_id": 363204,
"author": "Marc Charbonneau",
"author_id": 35136,
"author_profile": "https://Stackoverflow.com/users/35136",
"pm_score": 4,
"selected": true,
"text": "- (void)setMainMenu:(NSMenu *)aMenu"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39138/"
] |
363,158 | <p>We work extensively in the .Net Compact Framework and Windows Mobile. I've seen plenty of questions come up regarding specifics to development of ASP.Net apps or other .Net based desktop apps but nothing CF specific.</p>
<p>Anyone else a mobile developer out there that can share some things to start doing, stop doi... | [
{
"answer_id": 363180,
"author": "Mat Nadrofsky",
"author_id": 26853,
"author_profile": "https://Stackoverflow.com/users/26853",
"pm_score": 4,
"selected": false,
"text": "dgDataGrid.DataSource = dsDataSet;\n"
},
{
"answer_id": 698224,
"author": "Mat Nadrofsky",
"author_i... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26853/"
] |
363,159 | <p>hey guys, i'm getting an exception on the following </p>
<p>inner exception: {"Value cannot be null.\r\nParameter name: String"}</p>
<p>Which reads like a simple error message, but none of the values (image, fileName) are null. How can i find out where this null String is?</p>
<pre><code>RipHelper.UploadImage(ima... | [
{
"answer_id": 363201,
"author": "frosty",
"author_id": 461880,
"author_profile": "https://Stackoverflow.com/users/461880",
"pm_score": 0,
"selected": false,
"text": "private static readonly int previewImageHeight = int.Parse(ConfigurationManager.AppSettings[\"PreviewImageHeight\"]);\n"
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/461880/"
] |
363,171 | <p>So I have this regex:</p>
<pre><code>(^(\s+)?(?P<NAME>(\w)(\d{7}))((01f\.foo)|(\.bar|\.goo\.moo\.roo))$|(^(\s+)?(?P<NAME2>R1_\d{6}_\d{6}_)((01f\.foo)|(\.bar|\.goo\.moo\.roo))$))
</code></pre>
<p>Now if I try and do a match against this:</p>
<pre>
B048661501f.foo
</pre>
<p>I get this error:</p>
<pre>... | [
{
"answer_id": 363264,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 4,
"selected": true,
"text": "^\\s*(?P<NAME>\\w\\d{7}|R1_(?:\\d{6}_){2})(01f\\.foo|\\.(?:bar|goo|moo|roo))$\n"
},
{
"answer_id": 56310906,
"a... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34395/"
] |
363,189 | <p>I have a sql statement that consists of multiple SELECT statements. I want to limit the total number of rows coming back to let's say 1000 rows. I thought that using the SET ROWCOUNT 1000 directive would do this...but it does not. For example:</p>
<pre><code>SET ROWCOUNT 1000
select orderId from TableA
select nam... | [
{
"answer_id": 363205,
"author": "AlexJReid",
"author_id": 32320,
"author_profile": "https://Stackoverflow.com/users/32320",
"pm_score": 1,
"selected": false,
"text": "SELECT TOP 1000 * \nFROM (select orderId \n from TableA \n UNION ALL \n select name from TableB) t\n"
}... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4398/"
] |
363,190 | <p>I have input field value from that is used for forming XPath query.
What symbols in input string should I check to minimise possibility of XML injection?</p>
| [
{
"answer_id": 363212,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 1,
"selected": false,
"text": ":"
},
{
"answer_id": 363236,
"author": "Greg Beech",
"author_id": 13552,
"author_profile": "https:/... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39292/"
] |
363,200 | <p>I have a QTreeWidget with a column filled with some numbers, how can I sort them?</p>
<p>If I use setSortingEnabled(true); I can sort correctly only strings, so my column is sorted:</p>
<p>1
10
100
2
20
200</p>
<p>but this is not the thing I want!
Suggestions?</p>
| [
{
"answer_id": 363242,
"author": "dsm",
"author_id": 7780,
"author_profile": "https://Stackoverflow.com/users/7780",
"pm_score": -1,
"selected": false,
"text": "\"19999\" < \"2\""
},
{
"answer_id": 366637,
"author": "Emilio",
"author_id": 39796,
"author_profile": "htt... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363200",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39339/"
] |
363,209 | <p>I would like to know if it is possible to copy/move files to a destination based on the origin name.</p>
<p>Basically, I have a /mail folder, which has several subfolders such as cur and new etc. I then have an extracted backup in /mail/home/username that is a duplicate. mv -f will not work, as I do not have permis... | [
{
"answer_id": 363253,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 0,
"selected": false,
"text": "for file in /mail/*; do\n mv -f $file /home/username/mail/$(basename $file)\ndone\n"
},
{
"answer_id": 36... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363209",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
363,211 | <p>ASP.NET MVC routes have names when mapped:</p>
<pre><code>routes.MapRoute(
"Debug", // Route name -- how can I use this later????
"debug/{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = string.Empty } );
</code></pre>
<p>Is there a way to get the route name, e.g. "Debug" i... | [
{
"answer_id": 363856,
"author": "Nicolas Cadilhac",
"author_id": 29244,
"author_profile": "https://Stackoverflow.com/users/29244",
"pm_score": 7,
"selected": true,
"text": "public static class RouteCollectionExtensions\n{\n public static Route MapRouteWithName(this RouteCollection ro... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/43649/"
] |
363,223 | <p>I have a script which will be run interactively by non-technical users. The script writes status updates to STDOUT so that the user can be sure that the script is running OK.</p>
<p>I want both STDOUT and STDERR redirected to the terminal (so that the user can see that the script is working as well as see if there ... | [
{
"answer_id": 363239,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 9,
"selected": true,
"text": "./a.out 2>&1 | tee output\n"
},
{
"answer_id": 363243,
"author": "tvanfosson",
"author_id": 12950,
"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1019/"
] |
363,231 | <p>i'm using ASP.net with .NET 3.5 on IIS7 (Vista) with the URL Rewrite Module from Microsoft.</p>
<p>This means, that i have a </p>
<pre><code><system.webServer>
<rewrite>...</rewrite>
...
</system.webServer>
</code></pre>
<p>section within the web.config, but i get a warning, that w... | [
{
"answer_id": 1813504,
"author": "mellamokb",
"author_id": 116614,
"author_profile": "https://Stackoverflow.com/users/116614",
"pm_score": 2,
"selected": false,
"text": "<system.webServer>\n <modules>\n <add name=\"UrlRewriteModule\" type=\"UrlRewritingNet.Web.UrlRewriteModule... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34464/"
] |
363,234 | <p>Is it possible to get a URL from an action without knowing ViewContext (e.g., in a controller)? Something like this:</p>
<pre><code>LinkBuilder.BuildUrlFromExpression(ViewContext context, Expression<Action<T>> action)
</code></pre>
<p>...but using Controller.RouteData instead of ViewContext. I seem t... | [
{
"answer_id": 363287,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 4,
"selected": true,
"text": " private string RouteValueDictionaryToUrl(RouteValueDictionary rvd)\n {\n var context = MvcMockHelpers.Fake... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29493/"
] |
363,244 | <p>I chose AjaxToolKit to build a WebForm login. Has anyone else had problems trying to do this? I'm planning to use DropShadow Extender and RoundedCorners with Panels, but this is my first time working with panels.</p>
<p>Please check <a href="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ConfirmButton/ConfirmBu... | [
{
"answer_id": 363287,
"author": "Craig Stuntz",
"author_id": 7714,
"author_profile": "https://Stackoverflow.com/users/7714",
"pm_score": 4,
"selected": true,
"text": " private string RouteValueDictionaryToUrl(RouteValueDictionary rvd)\n {\n var context = MvcMockHelpers.Fake... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1388553/"
] |
363,268 | <p>I'm using the jQuery validation plugin to validate a form, and I'd like to remove the validation and submit the form if a certain link is clicked.</p>
<p>I am submitting form with javascript like <code>jQuery('form#listing').submit()</code>, so I must remove the validation rules/function with javascript.</p>
<p>Th... | [
{
"answer_id": 363601,
"author": "Borgar",
"author_id": 27388,
"author_profile": "https://Stackoverflow.com/users/27388",
"pm_score": 5,
"selected": false,
"text": "jQuery('form#listing').unbind('submit'); // remove all submit handlers of the form\n"
},
{
"answer_id": 1055371,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363268",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6705/"
] |
363,276 | <p>How can I hide the div without using <code>display:none</code> or JavaScript?</p>
<p>In my country, a lot of Blackberrys come with the CSS support disabled (the mobile companies here are not so good to developers). I have text that says</p>
<pre><code><div class="BBwarn">
please activate your css support and... | [
{
"answer_id": 363290,
"author": "krusty.ar",
"author_id": 43981,
"author_profile": "https://Stackoverflow.com/users/43981",
"pm_score": 4,
"selected": false,
"text": "margin-left: -9999;"
},
{
"answer_id": 363321,
"author": "cLFlaVA",
"author_id": 45109,
"author_prof... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45759/"
] |
363,285 | <p>I go to <a href="https://mywebsite/MyApp/Myservice.svc" rel="noreferrer">https://mywebsite/MyApp/Myservice.svc</a> and get the following error:</p>
<p>(The link works if I use http:// )</p>
<p>"<em>The service '/MyApp/MyService.svc' cannot be activated due to an exception during compilation. The exception message... | [
{
"answer_id": 364296,
"author": "Sixto Saez",
"author_id": 9711,
"author_profile": "https://Stackoverflow.com/users/9711",
"pm_score": 2,
"selected": false,
"text": "<service type=\"HelloWorld, IndigoConfig, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null\">\n <endpoint\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363285",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28643/"
] |
363,286 | <p>I have used a jQuery multiple file upload control [ MultiFile from fyneworks <a href="http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Overview" rel="nofollow noreferrer">http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Overview</a> ] to collect some filenames but can't work out how to upload them ... | [
{
"answer_id": 363289,
"author": "Steve Davies",
"author_id": 24209,
"author_profile": "https://Stackoverflow.com/users/24209",
"pm_score": 3,
"selected": false,
"text": "HttpFileCollection hfc = Request.Files;\nfor (int i = 0; i < hfc.Count; i++)\n{\n HttpPostedFile hpf = hfc[i];\n ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24209/"
] |
363,295 | <p>I'm trying to follow code-to-interface on a project. Should I be creating an interface first then implementing that interface for entity classes? I'm thinking this might be taking the interface first approach too far and entities should be ignored. This is what I mean...</p>
<pre><code>public interface Address {... | [
{
"answer_id": 363354,
"author": "Zachary Yates",
"author_id": 8360,
"author_profile": "https://Stackoverflow.com/users/8360",
"pm_score": 1,
"selected": false,
"text": "interface IFlaggable {\n bool IsFlagged ...\n string Reason ...\n}\n\nclass ForumPost implements IFlaggable { }\n\nc... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363295",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1294/"
] |
363,302 | <p>I'm trying to display a picture in an openGL environment. The picture's origninal dimensions are 3648x2432, and I want to display it with a 256x384 image. The problem is, 384 is not a power of 2, and when I try to display it, it looks stretched. How can I fix that?</p>
| [
{
"answer_id": 363378,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 3,
"selected": true,
"text": "GL_ARB_texture_non_power_of_two"
},
{
"answer_id": 363419,
"author": "Jay Conrod",
"author_id": 1891,
"auth... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45762/"
] |
363,320 | <p>I've seen the designer code, and I have seen code which builds the ObjectDataSource in the code-behind, however both methods communicate directly with the database via either text commands or stored procs. This seems like unnecessary code duplication to me since my data access layer has a method already which return... | [
{
"answer_id": 364455,
"author": "chriscena",
"author_id": 32671,
"author_profile": "https://Stackoverflow.com/users/32671",
"pm_score": 0,
"selected": false,
"text": "<asp:ObjectDataSource ID=\"ObjectDataSource1\" runat=\"server\" \nSelectMethod=\"[InsertYourMethodHere]\" TypeName=\"[In... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/149/"
] |
363,324 | <p>I have the following code, which will not work. The javascript gives no errors and appears to load fine. but clicking on a link will do nothing. An example of a link is:</p>
<pre><code><a href="#" onclick="updateByQuery('Layer3', "Ed Hardy");">Link 1</a><li>Link 2</li>
</code></pre>
<p>and ... | [
{
"answer_id": 363345,
"author": "ayaz",
"author_id": 23191,
"author_profile": "https://Stackoverflow.com/users/23191",
"pm_score": 3,
"selected": true,
"text": "<a href=\"#\" onclick=\"updateByQuery('Layer3', 'Ed Hardy');\">Link 1</a><li>Link 2</li>\n"
},
{
"answer_id": 363390,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
363,325 | <p>I would like to parse a document using SAX, and create a subdocument from some of the elements, while processing others purely with SAX. So, given this document:</p>
<pre><code> <DOC>
<small>
<element />
</small>
<entries>
<!-- thousands here -->
<... | [
{
"answer_id": 363636,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 3,
"selected": true,
"text": "ContentHandler"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23309/"
] |
363,326 | <p>What is the best way to get a value from a ICollection?
We know the Collection is empty apart from that. </p>
| [
{
"answer_id": 363386,
"author": "Chris",
"author_id": 44360,
"author_profile": "https://Stackoverflow.com/users/44360",
"pm_score": 5,
"selected": false,
"text": "foreach(object o in collection) {\n return o;\n}\n"
},
{
"answer_id": 363434,
"author": "bruno conde",
"aut... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363326",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
363,336 | <p>This is driving me nuts. I am using some 3rd-party code in a Windows .lib that, in debug mode, is causing an error similar to the following:</p>
<pre><code>Run-Time Check Failure #2 - Stack around the variable 'foo' was corrupted.
</code></pre>
<p>The error is thrown when either the object goes out of scope or is... | [
{
"answer_id": 363365,
"author": "coppro",
"author_id": 16855,
"author_profile": "https://Stackoverflow.com/users/16855",
"pm_score": 0,
"selected": false,
"text": "operator delete"
},
{
"answer_id": 368431,
"author": "Rob",
"author_id": 9236,
"author_profile": "https... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9236/"
] |
363,341 | <p>As someone in the world of <a href="http://en.wikipedia.org/wiki/High-performance_computing" rel="noreferrer">HPC</a> who came from the world of enterprise web development, I'm always curious to see how developers back in the "real world" are taking advantage of parallel computing. This is much more relevant now th... | [
{
"answer_id": 363475,
"author": "Dmitri Nesteruk",
"author_id": 9476,
"author_profile": "https://Stackoverflow.com/users/9476",
"pm_score": 3,
"selected": false,
"text": "for"
},
{
"answer_id": 366657,
"author": "Nathan Fellman",
"author_id": 1084,
"author_profile": ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363341",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9122/"
] |
363,351 | <p>I'm curious as I begin to adopt more of the boost idioms and what appears to be best practices I wonder at what point does my c++ even remotely look like the c++ of yesteryear, often found in typical examples and in the minds of those who've not been introduced to "Modern C++"?</p>
| [
{
"answer_id": 363408,
"author": "coppro",
"author_id": 16855,
"author_profile": "https://Stackoverflow.com/users/16855",
"pm_score": 2,
"selected": false,
"text": "boost::shared_ptr<int> ptr(new int);\n"
},
{
"answer_id": 363472,
"author": "Nemanja Trifunovic",
"author_i... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44996/"
] |
363,356 | <p>I have a HTML table issue that I'd like to understand better.</p>
<p>Let's assume that I have a 3 row HTML</p>
<pre><code><table>
<tr>
<td style="text-align:right;">A1</td>
<td>A2</td>
</tr>
<tr>
<td style="text-align:right;">... | [
{
"answer_id": 363375,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 0,
"selected": false,
"text": "<table border=\"1\">\n <tr>\n <td style=\"text-align:right;\">A1</td>\n <td>A2</td>\n </tr>\n <tr>\n <td style=\"text-a... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363356",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11541/"
] |
363,370 | <p>I'm writing a database application that connects to SQL server. I'd like to implement a similar connection dialog box like the one in SQL Management Studio. I've already found a way to get the list of databases on a server, but I'd really like to get the list of available servers on the network so end users won't ha... | [
{
"answer_id": 363406,
"author": "Galwegian",
"author_id": 3201,
"author_profile": "https://Stackoverflow.com/users/3201",
"pm_score": 2,
"selected": true,
"text": "CREATE PROCEDURE dbo.ListLocalServers \nAS \nBEGIN \n SET NOCOUNT ON \n\n CREATE TABLE #servers(sname VARCHAR(255)) \... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5906/"
] |
363,377 | <p>I have a bit of code that I need to run in a different thread than the GUI as it currently causes the form to freeze whilst the code runs (10 seconds or so). </p>
<p>Assume I have never created a new thread before; what's a simple/basic example of how to do this in C# and using .NET Framework 2.0 or later? </p>
| [
{
"answer_id": 363407,
"author": "FallenAvatar",
"author_id": 36965,
"author_profile": "https://Stackoverflow.com/users/36965",
"pm_score": 6,
"selected": false,
"text": "using System.Threading;\n"
},
{
"answer_id": 363409,
"author": "Mark Brackett",
"author_id": 2199,
... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
363,425 | <p>If a user types in a long line without any spaces or white space, it will break formating by going wider than the current element. Something like:</p>
<blockquote>
<p>HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA............................................................................................................. | [
{
"answer_id": 363443,
"author": "Tim Knight",
"author_id": 43043,
"author_profile": "https://Stackoverflow.com/users/43043",
"pm_score": 3,
"selected": false,
"text": "#post{\n width: 500px;\n overflow: scroll;\n}\n"
},
{
"answer_id": 363454,
"author": "cLFlaVA",
"... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/497/"
] |
363,453 | <p>I have an application that has several objects (about 50 so far, but growing). There is only one instance of each of these objects in the app and these instances get shared among components.</p>
<p>What I've done is derive all of the objects from a base BrokeredObject class:</p>
<pre><code>class BrokeredObject
{
... | [
{
"answer_id": 363517,
"author": "Boyan",
"author_id": 38106,
"author_profile": "https://Stackoverflow.com/users/38106",
"pm_score": 2,
"selected": false,
"text": "virtual BrokeredObject& GetInstance()=0;\n"
},
{
"answer_id": 363543,
"author": "Johannes Schaub - litb",
"a... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13154/"
] |
363,465 | <p>So I totally buy into the basic tenents of ASP.NET, testability, SoC, HTML control...it's awesome. However being new to it I have a huge hang up with the markup. I know it comes from my hatred of classic ASP, and I can't help but feel like I've entered the twilight zone when <a href="http://www.flickr.com/photos/w... | [
{
"answer_id": 363485,
"author": "Chris James",
"author_id": 3193,
"author_profile": "https://Stackoverflow.com/users/3193",
"pm_score": 5,
"selected": true,
"text": "ViewData.Model.myProperty"
},
{
"answer_id": 363529,
"author": "Community",
"author_id": -1,
"author_... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1975/"
] |
363,491 | <p>I have this PHP code</p>
<pre><code>echo '<a href="#" onclick="updateByQuery(\'Layer3\', ' . json_encode($query) . ');">Link 1</a>';
</code></pre>
<p>which generates a link like this:</p>
<pre><code><a href="#" onclick="updateByQuery('Layer3', "Ed Hardy");">Link 1</a><li>Link 2</l... | [
{
"answer_id": 363502,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "echo \"<a href='#' onclick='updateByQuery(\\\"Layer3\\\", \" . json_encode($query) . \");'>Link 1</a>\";\n"
},
{
"answ... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1246613/"
] |
363,503 | <pre><code>$(document).ready(function(){
$(".txtDate").datepicker({ showOn: "both",
buttonImage: "library/ui/datepicker/img/calendar2.gif", dateFormat: "yy/mm/dd", buttonImageOnly: true });
//added this checkbox click for something I given earlier
$("#Table input").click(function() {
if ... | [
{
"answer_id": 363540,
"author": "cLFlaVA",
"author_id": 45109,
"author_profile": "https://Stackoverflow.com/users/45109",
"pm_score": 1,
"selected": false,
"text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39809/"
] |
363,504 | <p>I want to have a abstract view for any type of UI (web or window). In order to do that I must use Interface (IView ) in which I can only apply just rules about view. In fact, I want to set a some basic comple function to provide to its inheritances.</p>
<p>So in this way, I must use abstract class. The problem is</... | [
{
"answer_id": 363611,
"author": "Corbin March",
"author_id": 7625,
"author_profile": "https://Stackoverflow.com/users/7625",
"pm_score": 2,
"selected": false,
"text": "public interface IView\n{\n void Foo();\n}\n\npublic abstract class BasePage : Page, IView\n{\n //honor the inter... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/45771/"
] |
363,528 | <p><strong>Question:</strong> How can I process a form using jQuery and the $.ajax request so that the data is passed to a script which writes it to a database?</p>
<p><strong>Problem:</strong>
I have a simple email signup form that when processed, adds the email along with the current date to a table in a MySQL datab... | [
{
"answer_id": 363602,
"author": "kgiannakakis",
"author_id": 24054,
"author_profile": "https://Stackoverflow.com/users/24054",
"pm_score": 2,
"selected": false,
"text": "data : {param: value, param2: value2}\n"
},
{
"answer_id": 7568003,
"author": "sumi",
"author_id": 91... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363528",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
363,565 | <p>I'm looking for any examples anyone might have seen of how to effectively present a list of items (about 1500 in total) so that multiple items can be selected.</p>
<p>I've seen a couple of similar questions where the answer suggests an auto-complete, which works to select a single item, but that doesn't allow users... | [
{
"answer_id": 363604,
"author": "Eran Galperin",
"author_id": 10585,
"author_profile": "https://Stackoverflow.com/users/10585",
"pm_score": 1,
"selected": false,
"text": "div"
}
] | 2008/12/12 | [
"https://Stackoverflow.com/questions/363565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4782/"
] |
363,569 | <p>If you use an <code>EnumSet</code> to store conventional binary values (1,2,4 etc), then when there are less than 64 items, I am led to believe that this is stored as a bit vector and is represented efficiently as a long. Is there a simple way to get the value of this long. I want a quick and simple way to store the... | [
{
"answer_id": 363612,
"author": "Michael Myers",
"author_id": 13531,
"author_profile": "https://Stackoverflow.com/users/13531",
"pm_score": 1,
"selected": false,
"text": "EnumSet"
},
{
"answer_id": 363741,
"author": "Dave Ray",
"author_id": 40310,
"author_profile": "... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363569",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3898/"
] |
363,570 | <p>I have a update method in my data layer such this:</p>
<pre><code>public clacc datalayerSec_User
private objUIData as new UIData
Public Function Update(ByVal objUser As SEC_USER) As Boolean
Try
objUIData.SEC_USERs.Attach(objUser)
objUIData.Refresh(RefreshMode.KeepCurrentValues, objUser)
objUIData.Subm... | [
{
"answer_id": 365141,
"author": "Egil Hansen",
"author_id": 32809,
"author_profile": "https://Stackoverflow.com/users/32809",
"pm_score": 3,
"selected": true,
"text": "class cls_SEC_USER\n{\n private _UIData = new UIData();\n\n public User SingleOrDefault(int x)\n {\n re... | 2008/12/12 | [
"https://Stackoverflow.com/questions/363570",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/439507/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.