qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
233,141 | <p>I have a comma separated list of strings like the one below.</p>
<pre><code>a,b ,c ,d, , , , ,e, f,g,h .
</code></pre>
<p>I want to write a regular expression that will replace the empty values i.e., strings that contain only white spaces to 'NA'. So the result should be</p>
<pre><code>a,b ,c ,d,NA,NA,N... | [
{
"answer_id": 233160,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 4,
"selected": true,
"text": "(?<=,)\\s+(?=,)"
},
{
"answer_id": 233227,
"author": "MrM",
"author_id": 319803,
"author_profile": "https:... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233141",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24424/"
] |
233,148 | <p>I keep reading that, in C, using pointer arithmetic is generally faster than subscripting for array access. Is this true even with modern (supposedly-optimizing) compilers?</p>
<p>If so, is this still the case as I begin to move away from learning C into Objective-C and <a href="http://en.wikipedia.org/wiki/Cocoa_%... | [
{
"answer_id": 233166,
"author": "Mecki",
"author_id": 15809,
"author_profile": "https://Stackoverflow.com/users/15809",
"pm_score": 7,
"selected": true,
"text": "int i;\nint a[20];\n\n// Init all values to zero\nmemset(a, 0, sizeof(a));\nfor (i = 0; i < 20; i++) {\n printf(\"Value of... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233148",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14048/"
] |
233,171 | <p>What is the best way to do GUIs in <a href="http://en.wikipedia.org/wiki/Clojure" rel="noreferrer">Clojure</a>?</p>
<p>Is there an example of some functional <a href="http://en.wikipedia.org/wiki/Swing_%28Java%29" rel="noreferrer">Swing</a> or <a href="http://en.wikipedia.org/wiki/Standard_Widget_Toolkit" rel="nore... | [
{
"answer_id": 233271,
"author": "dsm",
"author_id": 7780,
"author_profile": "https://Stackoverflow.com/users/7780",
"pm_score": 4,
"selected": false,
"text": "(import '(javax.swing JFrame JButton JOptionPane)) ;'\n(import '(java.awt.event ActionListener)) ;'\n\n(let [frame (JFr... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31141/"
] |
233,188 | <p>I have a web page that uses a scrolling div to display table information. When the window is resized (and also on page load), the display is centered and the div's scrollbar positioned to the right of the page by setting its width. For some reason, the behaviour is different under firefox than IE. IE positions/sizes... | [
{
"answer_id": 233204,
"author": "Bob Somers",
"author_id": 1384,
"author_profile": "https://Stackoverflow.com/users/1384",
"pm_score": 0,
"selected": false,
"text": "windowWidth = document.documentElement.clientWidth;\n windowWidth = Math.max(document.documentElement.scrollWidth, docume... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11820/"
] |
233,192 | <p><em>What options are there to detect web-crawlers that do not want to be detected?</em></p>
<p>(I know that listing detection techniques will allow the smart stealth-crawler programmer to make a better spider, but I do not think that we will ever be able to block smart stealth-crawlers anyway, only the ones that mak... | [
{
"answer_id": 233541,
"author": "Georg Schölly",
"author_id": 24587,
"author_profile": "https://Stackoverflow.com/users/24587",
"pm_score": 3,
"selected": false,
"text": "<a href=\"iamabot.script\" style=\"display:none;\">Don't click me!</a>\n"
},
{
"answer_id": 310343,
"aut... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22674/"
] |
233,199 | <p>I am trying to get data from my server, used RemoteObject to accomplish it.
When I run the application on my localhost it works great but when iam using it on my server i get a Channel.Security.Error(Security Error accessing URL).</p>
<p>On the server side logs there is a mention about cross domain .
77.127.194.4 -... | [
{
"answer_id": 233541,
"author": "Georg Schölly",
"author_id": 24587,
"author_profile": "https://Stackoverflow.com/users/24587",
"pm_score": 3,
"selected": false,
"text": "<a href=\"iamabot.script\" style=\"display:none;\">Don't click me!</a>\n"
},
{
"answer_id": 310343,
"aut... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20955/"
] |
233,207 | <p>Should I always wrap external resource calls in a try-catch? (ie. calls to a database or file system) Is there a best practice for error handling when calling external resources?</p>
| [
{
"answer_id": 233248,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": false,
"text": "try/finally try/finally Dispose using finally catch"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24908/"
] |
233,216 | <p>I have an abstract generic class <code>BLL<T> where T : BusinessObject</code>. I need to open an assembly that contains a set of concrete BLL classes, and return the tuples (businessObjectType, concreteBLLType) inside a Dictionary. There is the part of the method I could do until now, but I'm having problems t... | [
{
"answer_id": 233236,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "using System;\nusing System.Reflection;\n\npublic abstract class Base<T>\n{\n}\n\npublic class Concrete : Base<string>\n{... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233216",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21668/"
] |
233,217 | <p>I'm writing a C Shell program that will be doing <code>su</code> or <code>sudo</code> or <code>ssh</code>. They all want their passwords in console input (the TTY) rather than stdin or the command line.</p>
<p>Does anybody know a solution?</p>
<p>Setting up password-less <code>sudo</code> is not an option.</p>
<p... | [
{
"answer_id": 233224,
"author": "Marko",
"author_id": 31141,
"author_profile": "https://Stackoverflow.com/users/31141",
"pm_score": 3,
"selected": false,
"text": "expect"
},
{
"answer_id": 351916,
"author": "mlambie",
"author_id": 17453,
"author_profile": "https://St... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23420/"
] |
233,222 | <p>I have 3 divs where only one is visible by default, they each contain information about a product. Below this divs is a list of 3 images which are images of the products. By default of course the 1st list item is selected and has <code>class="selected"</code>. When a different product image is clicks then <code>clas... | [
{
"answer_id": 233252,
"author": "Jeff Fritz",
"author_id": 29156,
"author_profile": "https://Stackoverflow.com/users/29156",
"pm_score": 2,
"selected": false,
"text": "<img id=\"img1\" src=\"1.jpg\" desc=\"d1\" class=\"selected prodImg\" />\n<img id=\"img2\" src=\"2.jpg\" desc=\"d2\" cl... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26823/"
] |
233,243 | <p>That was an interview question that I was unable to answer:</p>
<p>How to check that a string is a palindrome using regular expressions?</p>
<p>p.s. There is already a question "<a href="https://stackoverflow.com/questions/52002/how-to-check-if-the-given-string-is-palindrome">How to check if the given string is pa... | [
{
"answer_id": 233275,
"author": "FOR",
"author_id": 27826,
"author_profile": "https://Stackoverflow.com/users/27826",
"pm_score": 4,
"selected": false,
"text": "\\(.\\)\\(.\\)\\2\\1\n \\([a-z]\\)\\([a-z]\\)[a-z]\\2\\1\n"
},
{
"answer_id": 233294,
"author": "Dan",
"author... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233243",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26276/"
] |
233,251 | <p>Since many years a GUI-standard are the menu-bars of applications with menus popping up, if you click or hover an entry in the menu-bar. Some websites implement this feature too, but they are using Javascript, as far as I can see. For different reasons Javascript can be a problem, so the question: Is this possible ... | [
{
"answer_id": 233266,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 1,
"selected": false,
"text": "a:link {\n color: blue;\n}\n\na:hover {\n color: red;\n}\n"
},
{
"answer_id": 233269,
"author": "Jeff Fr... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233251",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21005/"
] |
233,255 | <p>I am working on a project to enhance our production debugging capabilities. Our goal is to reliably produce a minidump on any unhandled exception, whether the exception is managed or unmanaged, and whether it occurs on a managed or unmanaged thread.</p>
<p>We use the excellent <a href="http://www.debuginfo.com/too... | [
{
"answer_id": 238357,
"author": "HTTP 410",
"author_id": 13118,
"author_profile": "https://Stackoverflow.com/users/13118",
"pm_score": 4,
"selected": true,
"text": "Application.ThreadException += new Threading.ThreadExceptionHandler(CatchFormsExceptions);\n"
},
{
"answer_id": 14... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6996/"
] |
233,259 | <p>I'm looking for ActiveX components that can easily: </p>
<ul>
<li>get and send emails via SMTP and POP3</li>
<li>strip out and save attachments.</li>
<li>Convert RTF (Outlook emails) to HTML</li>
<li>Sanitize HTML.</li>
</ul>
<p>What components would you recommend? What components do you use?</p>
| [
{
"answer_id": 422437,
"author": "LarryF",
"author_id": 18518,
"author_profile": "https://Stackoverflow.com/users/18518",
"pm_score": 1,
"selected": false,
"text": "\n Content-Type: application/octet-stream\n Content-Transfer-Encoding: base64 \n\n http://virus.virussite.com\n JVBERi0xLjM... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233259",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1726/"
] |
233,261 | <p>The strongly typed <code>SearchViewData</code> has a field called Colors that in it's turn is a <code>ColorViewData</code>.
In my <code>/Colors.mvc/search</code> I populate this <code>viewData.Model.Colors</code> based on the given search criteria.
Then, based on several factors, I render one of a set of user contro... | [
{
"answer_id": 233335,
"author": "Karl Seguin",
"author_id": 34,
"author_profile": "https://Stackoverflow.com/users/34",
"pm_score": 0,
"selected": false,
"text": "<% Html.RenderPartial(\"xxx\", new ViewDataDictionary(ViewData.Model.Colors)); %>\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
233,264 | <p>I have an ASP.NET application.
Basically the delivery process is this one :</p>
<ul>
<li>Nant builds the application and creates a zip file on the developer's computer with the application files without SVN folders and useless files. This file is delivered with a Nant script.</li>
<li>The zip and nant files are cop... | [
{
"answer_id": 233299,
"author": "Jeff Fritz",
"author_id": 29156,
"author_profile": "https://Stackoverflow.com/users/29156",
"pm_score": 3,
"selected": true,
"text": "<exec program=\"cacls\">\n <arg value=\"*\" />\n <arg value=\"/G IIS_WPG:F\" />\n</exec>\n"
},
{
"answer_i... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233264",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28544/"
] |
233,283 | <p>I'm starting a Wordpress Blog that will have adult content on it, so I'll need a first-time-only splash page in Wordpress. The first-time-only issue, I can fix with a cookie (although I am aware that not everyone has cookies enabled) </p>
<p>What I could do is, create a script that loads another page if a cookie is... | [
{
"answer_id": 9507418,
"author": "Trey Copeland",
"author_id": 1830549,
"author_profile": "https://Stackoverflow.com/users/1830549",
"pm_score": 1,
"selected": false,
"text": "#inline_content display: none; <script>\n\n $(document).ready(function() { \n\n ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31145/"
] |
233,284 | <p>I have created a .NET DLL which makes some methods COM visible.</p>
<p>One method is problematic. It looks like this:</p>
<pre><code>bool Foo(byte[] a, ref byte[] b, string c, ref string d)
</code></pre>
<p>VB6 gives a compile error when I attempt to call the method:</p>
<blockquote>
<p>Function or interface m... | [
{
"answer_id": 233451,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 1,
"selected": false,
"text": "[ComVisible(true)]\nbool Foo([In] ref byte[] a, [In] ref byte[] b, string c, ref string d)\n"
},
{
"answer_id": 23... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/329888/"
] |
233,288 | <p><strong>I have class A:</strong></p>
<pre><code>public class ClassA<T>
</code></pre>
<p><strong>Class B derives from A:</strong></p>
<pre><code>public class ClassB : ClassA<ClassB>
</code></pre>
<p><strong>Class C derives from class B:</strong></p>
<pre><code>public class ClassC : ClassB
</code></pr... | [
{
"answer_id": 233303,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "public static T Method<T,U>() where T : ClassA<U> where U : T\n"
},
{
"answer_id": 233425,
"author": "Tamas C... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24681/"
] |
233,320 | <p>I'm running Python 2.6 on Unix and when I run the interactive prompt (<a href="http://en.wikipedia.org/wiki/SQLite" rel="noreferrer">SQLite</a> is supposed to be preinstalled) I get:</p>
<pre><code>[root@idev htdocs]# python
Python 2.6 (r26:66714, Oct 23 2008, 16:25:34)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] ... | [
{
"answer_id": 233336,
"author": "gimel",
"author_id": 6491,
"author_profile": "https://Stackoverflow.com/users/6491",
"pm_score": 3,
"selected": false,
"text": "import sqlite3\n .so _sqlite3 ${somewhere}/lib/python2.6/lib-dynload/_sqlite3.so\n"
},
{
"answer_id": 233865,
"aut... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3404/"
] |
233,328 | <p>I want to print the full length of a C-string in GDB. By default it's being abbreviated, how do I force GDB to print the whole string?</p>
| [
{
"answer_id": 233339,
"author": "John Carter",
"author_id": 8331,
"author_profile": "https://Stackoverflow.com/users/8331",
"pm_score": 10,
"selected": true,
"text": "set print elements 0\n set print elements number-of-elements set print elements"
},
{
"answer_id": 253120,
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8331/"
] |
233,358 | <p>A quick question about elf file headers, I can't seem to find anything useful on how to add/change fields in the elf header. I'd like to be able to change the magic numbers and to add a build date to the header, and probably a few other things. </p>
<p>As I understand it the linker creates the header information, ... | [
{
"answer_id": 47084888,
"author": "maxschlepzig",
"author_id": 427158,
"author_profile": "https://Stackoverflow.com/users/427158",
"pm_score": 2,
"selected": false,
"text": "info.c #ident #ident \"Build: 1.2.3 (Halloween)\"\n#ident \"Environment: example.org\"\n $ gcc -c info.c\n $ read... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/76121/"
] |
233,360 | <p>How useful, if at all, is for the testers on a product team to know about the internal code details of a product. This does not mean they need to know every line of code but a good idea of how the code is structured, what is the object model, how the various modules are inter-linked, what are the inter-dependencies ... | [
{
"answer_id": 233498,
"author": "Steve Jessop",
"author_id": 13005,
"author_profile": "https://Stackoverflow.com/users/13005",
"pm_score": 1,
"selected": false,
"text": "long long int increment(long long int l) {\n if (l == 475636294934LL) return 3;\n return l + 1;\n}\n int MyConn... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233360",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1065163/"
] |
233,379 | <p>We have a WinForms application which runs on a touch-screen on a bit of industrial equipment. For historical reasons which are not up for changing today, the displayed form has a normal Windows title bar. </p>
<p>We would like to stop people using the mouse (i.e. touchscreen) from moving the window by dragging the... | [
{
"answer_id": 233514,
"author": "Will Dean",
"author_id": 987,
"author_profile": "https://Stackoverflow.com/users/987",
"pm_score": 2,
"selected": false,
"text": " protected override void WndProc(ref Message msg)\n {\n const int WM_NCLBUTTONDOWN = 0xa1;\n\n switch (msg.Msg)... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/987/"
] |
233,382 | <p>I have to override Add method of "Controls" property of myControl that is extended from a Panel control of windows. For that i extended ControlCollection class into MyControlCollection where i overriden its Add method. Now i declared a Controls property of MyControlCollection type to hide panel's Controls property. ... | [
{
"answer_id": 233398,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 1,
"selected": false,
"text": "ControlCollection Control ControlAdded"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233382",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31159/"
] |
233,411 | <p>Is it possible to enable a second monitor programatically and extend the Windows Desktop onto it in C#? It needs to do the equivalent of turning on the checkbox in the image below.</p>
<p><img src="https://i.stack.imgur.com/ss2sE.png" alt="alt text"></p>
| [
{
"answer_id": 233826,
"author": "Pop Catalin",
"author_id": 4685,
"author_profile": "https://Stackoverflow.com/users/4685",
"pm_score": 5,
"selected": true,
"text": "DISPLAY_DEVICE_ATTACHED_TO_DESKTOP"
},
{
"answer_id": 507370,
"author": "Community",
"author_id": -1,
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4500/"
] |
233,421 | <p>Is there currently a way to host a shared Git repository in Windows? I understand that you can configure the Git service in Linux with:</p>
<pre><code>git daemon
</code></pre>
<p>Is there a native Windows option, short of sharing folders, to host a Git service?</p>
<p>EDIT:
I am currently using the cygwin instal... | [
{
"answer_id": 2275844,
"author": "Derek Greer",
"author_id": 1219618,
"author_profile": "https://Stackoverflow.com/users/1219618",
"pm_score": 7,
"selected": true,
"text": "#!/bin/bash\n\n/usr/bin/git daemon --reuseaddr --base-path=/git --export-all --verbose --enable=receive-pack\n cyg... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29156/"
] |
233,434 | <p>I am trying to make our SQL Server Integration Services packages as portable as possible and the one thing that is preventing that is that the path to the config is always an absolute path, which makes testing and deployment a headache. Are there any suggestions for making this more manageble?</p>
<p>Another issue ... | [
{
"answer_id": 233528,
"author": "Malik Daud Ahmad Khokhar",
"author_id": 1688440,
"author_profile": "https://Stackoverflow.com/users/1688440",
"pm_score": 5,
"selected": true,
"text": "dtexec /File Package.dtsx /Conf configuration.dtsConfig\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12915/"
] |
233,441 | <p>On the SVN server, there is a file called <code>config.conf</code>. I have a local version called the same thing (in the same place). <strong>How can I make sure that my local config does not get overwritten, nor checked in?</strong> </p>
<p>While I'm here, is the answer different for a directory?</p>
<p>I'm using... | [
{
"answer_id": 233460,
"author": "Ryan",
"author_id": 17917,
"author_profile": "https://Stackoverflow.com/users/17917",
"pm_score": 3,
"selected": true,
"text": "mv config.conf config.conf.theirs && mv config.conf.mine config.conf"
},
{
"answer_id": 233573,
"author": "Matthew... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8047/"
] |
233,443 | <p>I need to display a small (15x15 pixel) animation in a Flex app. I have it FLV format, but it could be converted to somthing else. I'd prefer to have the file embedded in the app (it's only 8k in size). I've seen posts about displaying animated GIFs using third-party code which would be OK, but is there a way to ... | [
{
"answer_id": 235296,
"author": "Chetan S",
"author_id": 31284,
"author_profile": "https://Stackoverflow.com/users/31284",
"pm_score": 1,
"selected": false,
"text": "Image"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15899/"
] |
233,446 | <p>I'm trying to write a small app that monitors how much power is left in a notebook battery and I'd like to know which Win32 function I could use to accomplish that.</p>
| [
{
"answer_id": 29435614,
"author": "Bruno STEUX",
"author_id": 3778294,
"author_profile": "https://Stackoverflow.com/users/3778294",
"pm_score": 2,
"selected": false,
"text": "int getBatteryLevel()\n{\n SYSTEM_POWER_STATUS status;\n GetSystemPowerStatus(&status);\n return status... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9458/"
] |
233,455 | <p>I am making a program in C# to connect to a webcam and do some image manipulation with it.</p>
<p>I have a working application that uses win32 api (avicap32.dll) to connect to the webcam and send messages to it that sends it to the clipboard. The problem is that, while accessible from paint, reading it from the prog... | [
{
"answer_id": 234423,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 5,
"selected": true,
"text": "using (var cv = new OpenCVDotNet.CVCapture(0))\n{\n var image = cv.CreateCompatibleImage();\n // ...\n cv.Release();... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31151/"
] |
233,467 | <p>I know that most links should be left up to the end-user to decide how to open, but we can't deny that there are times you almost 'have to' force into a new window (for example to maintain data in a form on the current page).</p>
<p>What I'd like to know is what the consensus is on the 'best' way to open a link in ... | [
{
"answer_id": 233477,
"author": "Luk",
"author_id": 5789,
"author_profile": "https://Stackoverflow.com/users/5789",
"pm_score": 4,
"selected": false,
"text": "target=\"_blank\""
},
{
"answer_id": 233495,
"author": "Mark S. Rasmussen",
"author_id": 12469,
"author_prof... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233467",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22303/"
] |
233,468 | <p>I have a number of custom controls that I am trying to enable designer support for. The signature looks something like the following:</p>
<pre><code>[ToolboxData("<{0}:MyDropDownList runat=\"server\" CustomProp="123"></{0}:MyDropDownList>")]
public class MyDropDownList: DropDownList
{
... code here
}... | [
{
"answer_id": 233484,
"author": "DOK",
"author_id": 27637,
"author_profile": "https://Stackoverflow.com/users/27637",
"pm_score": 4,
"selected": true,
"text": "[assembly:TagPrefix(\"MyControls\",\"RequiredTextBox\")]\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29662/"
] |
233,475 | <p>I'm writing tests for a business method that invokes some DAO classes to perform operations over a database.</p>
<p>This method, firstly retrieves a JDBC connection from a DataSource object, The same connection is passed to all DAO instances, so I can use it to control the transaction. So, if everything works prope... | [
{
"answer_id": 233492,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "DataSource Connection DataSource Connection"
},
{
"answer_id": 233499,
"author": "matt b",
"author_id": 4... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9025/"
] |
233,490 | <p>I need to access a network resource on which only a given Domain Account has access.
I am using the LogonUser call, but get a "User does not have required priviliege" exception, as the web application is running with the asp.net account and it does not have adequate permissions to make this call.</p>
<p>Is there a ... | [
{
"answer_id": 233538,
"author": "Eoin Campbell",
"author_id": 30155,
"author_profile": "https://Stackoverflow.com/users/30155",
"pm_score": 1,
"selected": false,
"text": "<identity impersonate=\"true\" userName=\"\"/>\n NET USE Z: \\\\SERVER\\Share password /USER:DOMAIN\\Username /PERSI... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21586/"
] |
233,491 | <p>Specifically, I currently have a JPanel with a TitledBorder. I want to customize the look of the border. In my app's current state, the title is drawn, but not the line border itself.</p>
<p>If I bind an imagePainter to the panelBorder method for Panel objects, I can put a custom image around panels -- however it o... | [
{
"answer_id": 279305,
"author": "SpooneyDinosaur",
"author_id": 22386,
"author_profile": "https://Stackoverflow.com/users/22386",
"pm_score": 1,
"selected": false,
"text": "<bind style=\"PanelStyle\" type=\"name\" key=\"mySpecialPanel\" />\n panel.setName(\"mySpecialPanel\");\n public c... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7161/"
] |
233,501 | <p>For the purposes of this question, the code base is an ASP.NET website that has multiple pages written in both C# and Visual Basic .NET. The primary language is C# and the Visual Basic .NET webpages where forked into the project as the same functionality is needed. </p>
<p>Should the time be taken to actually rewri... | [
{
"answer_id": 239817,
"author": "Scriptmonkey",
"author_id": 31767,
"author_profile": "https://Stackoverflow.com/users/31767",
"pm_score": 1,
"selected": false,
"text": "<configuration>\n<system.web>\n <compilation>\n <codeSubDirectories>\n <add directoryName=\"VB_C... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1185/"
] |
233,504 | <p>I am trying to programatically set the dpi metadata of an jpeg image in Java. The source of the image is a scanner, so I get the horizontal/vertical resolution from TWAIN, along with the image raw data. I'd like to save this info for better print results.</p>
<p>Here's the code I have so far. It saves the raw image... | [
{
"answer_id": 1276894,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 5,
"selected": true,
"text": "data.setFromTree(\"javax_imageio_jpeg_image_1.0\", tree);\n JPEGImageWriter#write(IIOMetaData, IIOImage, ImageWriteParam) IOMe... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31155/"
] |
233,507 | <p>Is it possible to log out user from a web site if he is using basic authentication?</p>
<p>Killing session is not enough, since, once user is authenticated, each request contains login info, so user is automatically logged in next time he/she access the site using the same credentials.</p>
<p>The only solution so ... | [
{
"answer_id": 14329930,
"author": "ddotsenko",
"author_id": 366864,
"author_profile": "https://Stackoverflow.com/users/366864",
"pm_score": 6,
"selected": false,
"text": "document.execCommand(\"ClearAuthenticationCache\")\n logout var p = window.location.protocol + '//'\n// current loca... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233507",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31141/"
] |
233,553 | <p>I have a very simple jQuery Datepicker calendar:</p>
<pre><code>$(document).ready(function(){
$("#date_pretty").datepicker({
});
});
</code></pre>
<p>and of course in the HTML...</p>
<pre><code><input type="text" size="10" value="" id="date_pretty"/>
</code></pre>
<p>Today's date is nicely highlig... | [
{
"answer_id": 233654,
"author": "lucas",
"author_id": 31172,
"author_profile": "https://Stackoverflow.com/users/31172",
"pm_score": 6,
"selected": false,
"text": "var myDate = new Date();\nvar prettyDate =(myDate.getMonth()+1) + '/' + myDate.getDate() + '/' +\n myDate.getFullYear... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26848/"
] |
233,560 | <p>I have developed about 300 Applications which I would like to provide with multi-language capabilities independent from the Operating System. I have written a just-in-time translator, but that is too slow in applications with many components. What would you suggest I do?</p>
| [
{
"answer_id": 233626,
"author": "Davy Landman",
"author_id": 11098,
"author_profile": "https://Stackoverflow.com/users/11098",
"pm_score": 3,
"selected": true,
"text": "ShowMessage('Hello'); // before\nShowMessage(_('Hello')); // after\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535708/"
] |
233,564 | <p>I have created a multi column datastore on a table that allows me to do full text indexing on the table. What I need to be able to do is weight each column different and add the scores together.</p>
<p>The following query works, but is slow:</p>
<pre><code>SELECT document.*, Score(1) + 2*Score(2) as Score
FROM doc... | [
{
"answer_id": 233761,
"author": "BIBD",
"author_id": 685,
"author_profile": "https://Stackoverflow.com/users/685",
"pm_score": 0,
"selected": false,
"text": "select *, Score(1) + 2 * Score(2) as Score\nfrom (\n SELECT document.*, Score(1) as Score\n FROM document\n WHERE CONTAI... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31169/"
] |
233,579 | <p>I have heard that closures could be introduced in the next Java standard that is scheduled to be released somewhere around next summer. </p>
<p>What would this syntax look like?</p>
<p>I read somewhere that introducing closures in java is a bigger change than generic was in java 5. Is this true? pros and cons?</p>... | [
{
"answer_id": 233595,
"author": "Steven Huwig",
"author_id": 28604,
"author_profile": "https://Stackoverflow.com/users/28604",
"pm_score": 5,
"selected": true,
"text": "boolean even = { int x => x % 2 == 0 }.invoke(15);\n { int x => x % 2 == 0 }"
},
{
"answer_id": 234004,
"a... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/148909/"
] |
233,593 | <p>Does Eclipse have a feature that lets you search a project to find all calls to deprecated methods?</p>
| [
{
"answer_id": 237109,
"author": "Alan",
"author_id": 17205,
"author_profile": "https://Stackoverflow.com/users/17205",
"pm_score": 2,
"selected": false,
"text": "@deprecated"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1450/"
] |
233,596 | <p>In my experience it seems that most people will tell you that it is unwise to force a garbage collection but in some cases where you are working with large objects that don't always get collected in the 0 generation but where memory is an issue, is it ok to force the collect? Is there a best practice out there for ... | [
{
"answer_id": 233613,
"author": "Kon",
"author_id": 22303,
"author_profile": "https://Stackoverflow.com/users/22303",
"pm_score": 4,
"selected": false,
"text": "using"
},
{
"answer_id": 12527208,
"author": "Morten",
"author_id": 1688284,
"author_profile": "https://St... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233596",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12862/"
] |
233,621 | <p>All the PHP files in my workspace are encoded in <strong>Unicode (UTF-8, no BOM)</strong>. I often duplicate an existing source file to use as a base for a new script. Invariably (with Path Finder or the original Finder), OS X will convert the encoding of the duplicate file to <strong>Western (Mac OS Roman)</strong>... | [
{
"answer_id": 237053,
"author": "millenomi",
"author_id": 6061,
"author_profile": "https://Stackoverflow.com/users/6061",
"pm_score": 2,
"selected": false,
"text": "-[NSString writeToFile:...]"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233621",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10024/"
] |
233,622 | <p>It sounds a lot more complicated than it really is.</p>
<p>So in Perl, you can do something like this:</p>
<pre><code>foreach my $var (@vars) {
$hash_table{$var->{'id'}} = $var->{'data'};
}
</code></pre>
<p>I have a JSON object and I want to do the same thing, but with a javascript associative array in j... | [
{
"answer_id": 233689,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 0,
"selected": false,
"text": " d = {\n 'results':{\n 'datasets_a':{\n 'dataset_one':{\n 'data':{\n ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233622",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22390/"
] |
233,632 | <p>Ok</p>
<p>I'm working on a little project at the moment, the Report expects an int but the ReportParameter class only lets me have a value that's a string or a string[]</p>
<p>How can I pass an int?</p>
<p>thanks</p>
<p>dan</p>
| [
{
"answer_id": 233675,
"author": "John Lemp",
"author_id": 12915,
"author_profile": "https://Stackoverflow.com/users/12915",
"pm_score": 2,
"selected": false,
"text": "GetReportParameters() ReportParameter[] int enum ParameterTypeEnum ParameterTypeEnum.Integer int"
},
{
"answer_i... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233632",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30861/"
] |
233,643 | <p>I'd like to link to some PDFs in one of my controller views. What's the best practice for accomplishing this? The CakePHP webroot folder contains a ./files/ subfolder, I am confounded by trying to link to it without using "magic" pathnames in my href (e.g. "/path/to/my/webroot/files/myfile.pdf").</p>
<p>What are my... | [
{
"answer_id": 239322,
"author": "Alexander Morland",
"author_id": 4013,
"author_profile": "https://Stackoverflow.com/users/4013",
"pm_score": 5,
"selected": true,
"text": "$html->link('Pdf', '/files/myfile.pdf');\n"
},
{
"answer_id": 280429,
"author": "Chris Hawes",
"aut... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233643",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5030/"
] |
233,673 | <p>While I was investigating a problem I had with lexical closures in Javascript code, I came along this problem in Python:</p>
<pre><code>flist = []
for i in xrange(3):
def func(x): return x * i
flist.append(func)
for f in flist:
print f(2)
</code></pre>
<p>Note that this example mindfully avoids <code... | [
{
"answer_id": 233713,
"author": "Alex Coventry",
"author_id": 1941213,
"author_profile": "https://Stackoverflow.com/users/1941213",
"pm_score": 2,
"selected": false,
"text": "i f >>> class f:\n... def __init__(self, multiplier): self.multiplier = multiplier\n... def __call__(self, mul... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8206/"
] |
233,681 | <p>I have a web service using .net c# and I want to write to a text file on the server, but I cannot get this to work. I believe it's a permission problem.</p>
<p>Specifically, I think the problem is I am using <code>System.IO.Directory.GetCurrentDirectory()</code>. </p>
<p>Is there a better alternative?</p>
| [
{
"answer_id": 233743,
"author": "Kev",
"author_id": 419,
"author_profile": "https://Stackoverflow.com/users/419",
"pm_score": 2,
"selected": false,
"text": "'<MACHINENAME>\\ASPNET' <identity impersonate=\"true\"/>\n"
},
{
"answer_id": 7582879,
"author": "simaglei",
"auth... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23149/"
] |
233,691 | <p><strong>Scenario:</strong></p>
<p>The task I have at hand is to enable a single-signon solution between different organizations/websites. I start as an authenticated user on one organization's website, convert specific information into an Xml document, encrypt the document with triple des, and send that over as a p... | [
{
"answer_id": 234851,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "...headers left out...\n\n<script type='text/javascript'>\n\n$(document).ready( function() {\n $('form:first').submit(... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5289/"
] |
233,702 | <p>I had a VBA project in outlook with a few email macros - but after a PC crash they are all gone and all I see is a fresh 'Project1' when I hit Alt+F11</p>
<p>I'm not a VBA programmer, but had a collection of handy macros for email sorting etc. I would not like to have to code them again. Anyone know where the code ... | [
{
"answer_id": 35205762,
"author": "Heider Sati",
"author_id": 1915577,
"author_profile": "https://Stackoverflow.com/users/1915577",
"pm_score": 2,
"selected": false,
"text": "C:\\Users\\(***Your User Name***)\\AppData\\Roaming\\Microsoft\\Outlook\\VbaProject.OTM\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3024/"
] |
233,706 | <p>i have a data access layer which returns data from stored procedures. If i bind this to a gridview control in asp.net 2.0, the users then have an option of filtering on that data select list where in they can choose the conditional clause of </p>
<ul>
<li><p>like</p></li>
<li><p>=</p></li>
<li><p>or</p></li>
<li><p... | [
{
"answer_id": 35205762,
"author": "Heider Sati",
"author_id": 1915577,
"author_profile": "https://Stackoverflow.com/users/1915577",
"pm_score": 2,
"selected": false,
"text": "C:\\Users\\(***Your User Name***)\\AppData\\Roaming\\Microsoft\\Outlook\\VbaProject.OTM\n"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
233,711 | <p>I use an anonymous object to pass my Html Attributes to some helper methods.
If the consumer didn't add an ID attribute, I want to add it in my helper method.</p>
<p>How can I add an attribute to this anonymous object?</p>
| [
{
"answer_id": 233730,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": false,
"text": "new { Name1=value1, Name2=value2} new { old.Name1, old.Name2, ID=myId }"
},
{
"answer_id": 233810,
"author":... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11333/"
] |
233,718 | <p>This question is about App domains and Sessions. Is it possible to have IIS run each User Session in a seperate App Domain. If Yes, Could you please let me settings in the config file that affect this.</p>
<p>Regards,
Anil.</p>
| [
{
"answer_id": 233730,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": false,
"text": "new { Name1=value1, Name2=value2} new { old.Name1, old.Name2, ID=myId }"
},
{
"answer_id": 233810,
"author":... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
233,719 | <p>I'm trying to read the contents of the clipboard using JavaScript. With Internet Explorer it's possible using the function</p>
<pre><code>window.clipboardData.getData("Text")
</code></pre>
<p>Is there a similar way of reading the clipboard in Firefox, Safari and Chrome?</p>
| [
{
"answer_id": 234711,
"author": "eyelidlessness",
"author_id": 17964,
"author_profile": "https://Stackoverflow.com/users/17964",
"pm_score": 5,
"selected": true,
"text": "onpaste someDomNode.onpaste = function(e) {\n var paste = e.clipboardData && e.clipboardData.getData ?\n e... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25960/"
] |
233,721 | <p>As per RFC1035, dns names may contain \ddd \x and quote symbol. Please explain with examples about those.</p>
| [
{
"answer_id": 233941,
"author": "jj33",
"author_id": 430,
"author_profile": "https://Stackoverflow.com/users/430",
"pm_score": 2,
"selected": false,
"text": "Although labels can contain any 8 bit values in octets that make up a\nlabel, it is strongly recommended that labels follow the p... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
233,749 | <p>I have this loop, which I am using to get the values of all cells within all rows of a gridview and then write it to a csv file. My loop looks like this:</p>
<pre><code>string filename = @"C:\Users\gurdip.sira\Documents\Visual Studio 2008\WebSites\Supressions\APP_DATA\surpressionstest.csv";
StreamWriter sWriter = n... | [
{
"answer_id": 233891,
"author": "EFrank",
"author_id": 28572,
"author_profile": "https://Stackoverflow.com/users/28572",
"pm_score": 1,
"selected": false,
"text": " for (int i = 0; i <= (this.GridView3.Rows.Count - 1); i++)\n {\n\n for (int j = 0; j <= (this.GridView3.Rows[... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233749",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30004/"
] |
233,756 | <p>i've written a UserControl descendant that <strong>is</strong> in an assembly dll.</p>
<p>How do i drop the control on a form?</p>
<pre><code>namespace StackOverflowExample
{
public partial class MonthViewCalendar : UserControl
{
...
}
}
</code></pre>
<p>i've added a reference to the assembly under... | [
{
"answer_id": 233774,
"author": "Jeff Yates",
"author_id": 23234,
"author_profile": "https://Stackoverflow.com/users/23234",
"pm_score": 0,
"selected": false,
"text": "ToolboxItemAttribute ToolboxItemAttribute"
},
{
"answer_id": 233958,
"author": "Martin Marconcini",
"au... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12597/"
] |
233,759 | <p>I was wondering if the C# project setting "Allow unsafe code" applies only to unsafe C# code in the project itself, or is it necessary to set this option when linking in a native C++ DLL? What about linking in a managed DLL that itself links to a native DLL? What does this option really do, under the hood?</p>
| [
{
"answer_id": 233763,
"author": "Maxime Rouiller",
"author_id": 24975,
"author_profile": "https://Stackoverflow.com/users/24975",
"pm_score": 3,
"selected": false,
"text": "unsafe(...)\n{\n}\n"
},
{
"answer_id": 233767,
"author": "Jeff Yates",
"author_id": 23234,
"au... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3114/"
] |
233,790 | <p>Is there a way to colorize parts of logs in the eclipse console. I know I could send to error and standard streams and color them differently but I'm more looking someting in the lines of ANSI escape codes (or anyother, HTML ?) where I could embed the colors in the string to have it colored in the logs.</p>
<p>It ... | [
{
"answer_id": 1373290,
"author": "Benjamin Seiller",
"author_id": 167865,
"author_profile": "https://Stackoverflow.com/users/167865",
"pm_score": 7,
"selected": true,
"text": ".* .*ERROR.*"
},
{
"answer_id": 60434404,
"author": "jajube",
"author_id": 7915606,
"author... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25812/"
] |
233,793 | <p>I'm trying to dynamically add some textboxes (input type=text) to a page in javascript and prefill them. The textboxes are coming up, but they are coming up empty. What is the proper way to pre-fill a textbox. Ideally I'd love to use the trick of creating a child div, setting the innerhtml property, and then addi... | [
{
"answer_id": 233815,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 2,
"selected": false,
"text": "txtEmail.value = 'my text'\n"
},
{
"answer_id": 233853,
"author": "Diodeus - James MacFarlane",
"author... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16891/"
] |
233,802 | <p>I am trying to detect Blackberry user agents in my app, which works fine in my development version. But nothing happens when I redeploy the app in production.</p>
<p>application_helper.rb</p>
<pre><code> def blackberry_user_agent?
request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Blac... | [
{
"answer_id": 233986,
"author": "Mike Breen",
"author_id": 22346,
"author_profile": "https://Stackoverflow.com/users/22346",
"pm_score": 3,
"selected": true,
"text": "log_format main '$remote_addr - $remote_user [$time_local] $request '\n '\"$status\" $body_bytes_sent \... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10258/"
] |
233,828 | <p>Let's say you have a aspx page that does not rely on session, but does rely on viewstate for persistance between postbacks. </p>
<p>If a user is accessing this page, and leaves for a long lunch, will viewstate still be valid when he returns?</p>
| [
{
"answer_id": 5377527,
"author": "AareP",
"author_id": 11741,
"author_profile": "https://Stackoverflow.com/users/11741",
"pm_score": 3,
"selected": false,
"text": "<sessionPageState historySize=\"9\"/>"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21155/"
] |
233,842 | <p>I am using VB.Net WinForms. I would like to call the Adobe Reader 9 ActiveX control to print some PDFs. I have added the ActiveX control to the VS toolbox (the dll is AcroPDF.dll, the COM name "Adobe PDF Reader". After some experiment the following code works.</p>
<pre><code>Dim files As String() = Directory.Get... | [
{
"answer_id": 1862454,
"author": "Ed Zenker",
"author_id": 226624,
"author_profile": "https://Stackoverflow.com/users/226624",
"pm_score": -1,
"selected": false,
"text": "Sub Show_Document(ByVal FILENAME As String)\n Dim p As Process = Nothing\n Try\n If My.Computer.FileSys... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29411/"
] |
233,850 | <p>What are the best algorithms (and explanations) for representing and rotating the pieces of a tetris game? I always find the piece rotation and representation schemes confusing.</p>
<p>Most tetris games seem to use a naive "remake the array of blocks" at each rotation:</p>
<p><a href="http://www.codeplex.com/Proj... | [
{
"answer_id": 233882,
"author": "Toon Krijthe",
"author_id": 18061,
"author_profile": "https://Stackoverflow.com/users/18061",
"pm_score": 5,
"selected": false,
"text": "[ 0 1 ]\n[ -1 0 ]\n [ 0 -1 ]\n[ 1 0 ]\n"
},
{
"answer_id": 233894,
"author": "Jon Skeet",
"... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21826/"
] |
233,870 | <p>I know the statement:</p>
<pre><code>create table xyz_new as select * from xyz;
</code></pre>
<p>Which copies the structure and the data, but what if I just want the structure?</p>
| [
{
"answer_id": 233890,
"author": "Jim Hudson",
"author_id": 8051,
"author_profile": "https://Stackoverflow.com/users/8051",
"pm_score": 10,
"selected": true,
"text": "create table xyz_new as select * from xyz where 1=0;\n"
},
{
"answer_id": 240371,
"author": "Dave Costa",
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233870",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5662/"
] |
233,905 | <p>Is is better to do a joined query like this:</p>
<pre><code>var employer = (from person in db.People
join employer in db.Employers
on person.EmployerID equals employer.EmployerID
where person.PersonID == idPerson
select employer).FirstOrDefaul... | [
{
"answer_id": 233943,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": true,
"text": "var employer = (from person in db.People\n where person.PersonID == idPerson\n select perso... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4797/"
] |
233,908 | <p>I need to replace some 2- and 3-digit numbers with the same number plus 10000. So</p>
<pre><code>Photo.123.aspx
</code></pre>
<p>needs to become</p>
<pre><code>Photo.10123.aspx
</code></pre>
<p>and also</p>
<pre><code>Photo.12.aspx
</code></pre>
<p>needs to become</p>
<pre><code>Photo.10012.aspx
</code></pre>... | [
{
"answer_id": 233977,
"author": "wprl",
"author_id": 17847,
"author_profile": "https://Stackoverflow.com/users/17847",
"pm_score": 1,
"selected": false,
"text": "Photo\\.{\\d\\d\\d}\\.aspx Photo.10\\1.aspx Photo\\.{\\d\\d}\\.aspx Photo.100\\1.aspx"
},
{
"answer_id": 234026,
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233908",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/239663/"
] |
233,911 | <p>Im currently using ie as an active x com thing on wxWidgets and was wanting to know if there is any easy way to change the user agent that will always work.</p>
<p>Atm im changing the header but this only works when i manually load the link (i.e. call setUrl)</p>
| [
{
"answer_id": 235713,
"author": "Head Geek",
"author_id": 12193,
"author_profile": "https://Stackoverflow.com/users/12193",
"pm_score": 3,
"selected": true,
"text": "DISPID_AMBIENT_USERAGENT DISPID_AMBIENT_USERAGENT"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23339/"
] |
233,916 | <p>I have a WinForms app with an input textbox, button, and a multiline output textbox.
A root path is entered in the textbox. Button click calls a function to recursively check all subdirectories for some proper directory naming validation check.
The results are output into the multiline textbox.</p>
<p>If the recu... | [
{
"answer_id": 233974,
"author": "Ryan Lundy",
"author_id": 5486,
"author_profile": "https://Stackoverflow.com/users/5486",
"pm_score": 2,
"selected": false,
"text": "List<string>"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
233,919 | <p>I have been working with T-SQL in MS SQL for some time now and somehow whenever I have to insert data into a table I tend to use syntax:</p>
<pre><code>INSERT INTO myTable <something here>
</code></pre>
<p>I understand that keyword <code>INTO</code> is optional here and I do not have to use it but somehow it... | [
{
"answer_id": 233945,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 8,
"selected": true,
"text": "INSERT INTO INTO"
},
{
"answer_id": 233962,
"author": "Tomalak",
"author_id": 18771,
"author_prof... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233919",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3241/"
] |
233,922 | <p>I have this code to give me a rollover on submit buttons, and I'm trying to make it more generic:</p>
<pre><code>$('.rollover').hover(
function(){ // Change the input image's source when we "roll on"
srcPath = $(this).attr("src");
srcPathOver = ???????
... | [
{
"answer_id": 234025,
"author": "Matt Ephraim",
"author_id": 22291,
"author_profile": "https://Stackoverflow.com/users/22291",
"pm_score": 2,
"selected": false,
"text": "srcPathOver = srcPath.replace(/([^.]*)\\.(.*)/, \"$1-over.$2\");\n var srcPath;\n$('.rollover').hover(...\n"
},
{... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26107/"
] |
233,936 | <p>Ok let me make an example:</p>
<pre><code><head>
<script type="text/javascript">
$(document).ready(function(){
$("#options_2").hide();
$("#options_3").hide();
});
</script>
</head>
<body>
<div id="options_1">option 1</div>
<div id="options_2">option 2</di... | [
{
"answer_id": 234009,
"author": "Wayne Austin",
"author_id": 31109,
"author_profile": "https://Stackoverflow.com/users/31109",
"pm_score": 2,
"selected": false,
"text": "$('a#link_1').click(function() {\n $(this).attr(\"class\", \"selected\");\n $(this).siblings('a').removeClass... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26823/"
] |
233,966 | <p>I have a great deal of data to keep synchronized over 4 or 5 sites around the world, around half a terabyte at each site. This changes (either adds or changes) by around 1.4 Gigabytes per day, and the data can change at any of the four sites.</p>
<p>A large percentage (30%) of the data is duplicate packages (Perhap... | [
{
"answer_id": 236271,
"author": "Alexander",
"author_id": 16724,
"author_profile": "https://Stackoverflow.com/users/16724",
"pm_score": 0,
"selected": false,
"text": "detect-renamed"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/233966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31161/"
] |
233,979 | <p>I am trying to link to a file that has the '#' character in via a window.open() call. The file does exist and can be linked to just fine using a normal anchor tag.</p>
<p>I have tried escaping the '#' character with '%23' but when the window.open(myurl) gets processed, the '%23' becomes '%2523'. This tells me tha... | [
{
"answer_id": 234002,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 0,
"selected": false,
"text": "\\#\n"
},
{
"answer_id": 234031,
"author": "Rahul",
"author_id": 16308,
"author_profile": "https://... | 2008/10/24 | [
"https://Stackoverflow.com/questions/233979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18284/"
] |
234,008 | <p>I need to create at runtime instances of a class that uses generics, like <code>class<T></code>, without knowing previously the type T they will have, I would like to do something like that:</p>
<pre><code>public Dictionary<Type, object> GenerateLists(List<Type> types)
{
Dictionary<Type, ob... | [
{
"answer_id": 234016,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 5,
"selected": true,
"text": "public Dictionary<Type, object> GenerateLists(List<Type> types)\n{\n Dictionary<Type, object> lists = new Dictionary<T... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21668/"
] |
234,024 | <p>I have an array I've created in JavaScript. The end result comes out to element1,element2,,,element5,element6,,,element9.... etc</p>
<p>Once passed to ColdFusion, it removes the null elements, I end up with element1,element2,element5,element6,element9</p>
<p>I need to maintain these spaces, any ideas? My problem... | [
{
"answer_id": 452284,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "<cfset jsList = \"item1,item2,,item4,item5,,item6\">\n<cfset jsArray = jsList.split(\",\")>\n<cfdump var=\"#jsArray#\">\n"
}... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234024",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26121/"
] |
234,027 | <p>How can I find the index in a string that matches a boost regex?</p>
| [
{
"answer_id": 234248,
"author": "Anthony Williams",
"author_id": 5597,
"author_profile": "https://Stackoverflow.com/users/5597",
"pm_score": 3,
"selected": false,
"text": "position match_results int find_match_offset(std::string const& string_to_search,\n boost::reg... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3153/"
] |
234,056 | <p>Anyone got a ready made function that will take an XML string and return a correctly indented string?</p>
<p>eg</p>
<pre><code><XML><TAG1>A</TAG1><TAG2><Tag3></Tag3></TAG2></XML>
</code></pre>
<p>and will return nicely formatted String in return after inserting line... | [
{
"answer_id": 234101,
"author": "gabr",
"author_id": 4997,
"author_profile": "https://Stackoverflow.com/users/4997",
"pm_score": 3,
"selected": false,
"text": "program TestIndentXML;\n\n{$APPTYPE CONSOLE}\n\nuses\n SysUtils,\n OmniXML,\n OmniXMLUtils;\n\nfunction IndentXML(const xml:... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6244/"
] |
234,059 | <p>I have the following code:</p>
<pre><code>MemoryStream foo(){
MemoryStream ms = new MemoryStream();
// write stuff to ms
return ms;
}
void bar(){
MemoryStream ms2 = foo();
// do stuff with ms2
return;
}
</code></pre>
<p>Is there any chance that the MemoryStream that I've allocated will som... | [
{
"answer_id": 234071,
"author": "Rob Prouse",
"author_id": 30827,
"author_profile": "https://Stackoverflow.com/users/30827",
"pm_score": 7,
"selected": true,
"text": "using bar() ms2"
},
{
"answer_id": 234080,
"author": "Jeff Atwood",
"author_id": 1,
"author_profile"... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26286/"
] |
234,064 | <p>Using data binding, how do you bind a new object that uses value types? </p>
<p>Simple example:</p>
<pre><code>public class Person() {
private string _firstName;
private DateTime _birthdate;
private int _favoriteNumber;
//Properties
}
</code></pre>
<p>If I create a new Person() and bind it to a f... | [
{
"answer_id": 234155,
"author": "Arcturus",
"author_id": 900,
"author_profile": "https://Stackoverflow.com/users/900",
"pm_score": 2,
"selected": false,
"text": "public class Person() {\n private string? _firstName;\n private DateTime? _birthdate;\n private int? _favoriteNumber... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4231/"
] |
234,076 | <p>I have a "Login" button that I want to be disabled until 3 text boxes on the same WPF form are populated with text (user, password, server). </p>
<p>I have a backing object with a boolean property called IsLoginEnabled which returns True if and only if all 3 controls have data. However, when should I be checking ... | [
{
"answer_id": 234158,
"author": "Andrew",
"author_id": 5662,
"author_profile": "https://Stackoverflow.com/users/5662",
"pm_score": 2,
"selected": true,
"text": "IsLoginEnabled Public Event IsLoginEnabledChanged As EventHandler\n\nPublic Property User() As String\nGet.. ' snipped for b... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/132931/"
] |
234,090 | <p>How do I pass a parameter from a page's useBean in JSP to a servlet in Java? I have some data in a form that gets passed no problem with a submit button, but no way to send anything else. Please help? Here is my code:</p>
<pre><code><input name = "deleteGameButton" type = "submit" value = "Delete"
onclick = "su... | [
{
"answer_id": 234127,
"author": "David Santamaria",
"author_id": 24097,
"author_profile": "https://Stackoverflow.com/users/24097",
"pm_score": 0,
"selected": false,
"text": "<jsp:useBean id = \"userBean\" scope = \"session\" class = \"org.project.User\"/>\n <jsp:setProperty name=\"beanN... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25280/"
] |
234,091 | <p>We have a highly specialized DAL which sits over our DB. Our apps need to use this DAL to correctly operate against this DB.</p>
<p>The generated DAL (which sits on some custom base classes) has various 'Rec' classes (Table1Rec, Table2Rec) each of which represents the record structure of a given table.</p>
<p>Here... | [
{
"answer_id": 614630,
"author": "digiguru",
"author_id": 5055,
"author_profile": "https://Stackoverflow.com/users/5055",
"pm_score": 2,
"selected": true,
"text": "Imports System.Web\nImports System.Web.Services\nImports System.Web.Services.Protocols\n\n<WebService(Namespace:=\"http://te... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11356/"
] |
234,131 | <p>I did this tests and the results seems the count function scale linearly. I have another function relying strongly in the efficiency to know if there are any data, so I would like to know how to replace this select count(*) with another more efficient (maybe constant?) query or data structure.</p>
<blockquote>
<p... | [
{
"answer_id": 234561,
"author": "Patryk Kordylewski",
"author_id": 30927,
"author_profile": "https://Stackoverflow.com/users/30927",
"pm_score": 2,
"selected": false,
"text": "SELECT t.primary_key IS NOT NULL FROM table t LIMIT 1;\n"
},
{
"answer_id": 1691576,
"author": "Mic... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18300/"
] |
234,171 | <p>I have a string containing a date, and another string containing the date format of the first string. Is there a function that I can call to convert that date into something like a SYSTEMTIME structure? Basically, I'd like the opposite of <a href="http://msdn.microsoft.com/en-us/library/ms776293(VS.85).aspx" rel="no... | [
{
"answer_id": 234183,
"author": "Adam Davis",
"author_id": 2915,
"author_profile": "https://Stackoverflow.com/users/2915",
"pm_score": 3,
"selected": true,
"text": "sscanf SYSTEMTIME"
},
{
"answer_id": 234202,
"author": "Anthony Williams",
"author_id": 5597,
"author_... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234171",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3857/"
] |
234,177 | <p>As usual, some background information first:</p>
<p>Database A (Access database) - Holds a table that has information I need from only two columns. The information from these two columns is needed for an application that will be used by people that cannot access database A.</p>
<p>Database B (Access database) - Ho... | [
{
"answer_id": 234415,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 3,
"selected": true,
"text": "DataTable A = load table from A\nDataTable B = load table from B\n\nforeach row in A\n col1 = row[col1]\n col2 = row... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234177",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9732/"
] |
234,181 | <p>I have a sorted collection of objects (it can be either SortedList or SortedDictionary, I will use it mainly for reading so add performance is not that important). How can I get the i-th value?</p>
<p>So e.g. when I have numbers 1, 2, 3, 4, 5 in the collection and I want the median (so 3 in this example), how can I... | [
{
"answer_id": 234259,
"author": "Godeke",
"author_id": 28006,
"author_profile": "https://Stackoverflow.com/users/28006",
"pm_score": 5,
"selected": false,
"text": "list.Values[index] \n dict.ElementAt(index).Value\n"
},
{
"answer_id": 42473025,
"author": "mudrak patel",
... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5363/"
] |
234,210 |
<p>I'm trying to write a web application using SpringMVC. Normally I'd just map some made-up file extension to Spring's front controller and live happily, but this time I'm going for REST-like URLs, with no file-name extensions.</p>
<p>Mapping everything under my context path to the front controller (let's call it "... | [
{
"answer_id": 245143,
"author": "Philip Tinney",
"author_id": 14930,
"author_profile": "https://Stackoverflow.com/users/14930",
"pm_score": 6,
"selected": true,
"text": "/some-static-content-folder/ test.png /some-static-content-folder/test.png\n /some-static-content-folder/some-static-... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6069/"
] |
234,215 | <p>I am creating a WordML document from an xml file whose elements sometimes contain html-formatted text. </p>
<pre><code><w:p>
<w:r>
<w:t> html formatted content is in here taken from xml file! </w:t>
</w:r>
</w:p>
</code></pre>
<p>This is how my templates are sort of set... | [
{
"answer_id": 239235,
"author": "GerG",
"author_id": 17249,
"author_profile": "https://Stackoverflow.com/users/17249",
"pm_score": 0,
"selected": false,
"text": "b w:t w:r <doc xmlns:w=\"urn:schemas-microsoft-com:office:word\">\n<w:p>\n <w:r>\n <w:t>before<b>bold</b>after</w:t>\n <... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234215",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31229/"
] |
234,217 | <p><strong>Note: Mathematical expression evaluation is not the focus of this question. I want to compile and execute new code at runtime in .NET.</strong> That being said...</p>
<p>I would like to allow the user to enter any equation, like the following, into a text box:</p>
<pre><code>x = x / 2 * 0.07914
x = x^2 /... | [
{
"answer_id": 234236,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 2,
"selected": false,
"text": "ConvertEquationToCode"
},
{
"answer_id": 234303,
"author": "Brian Schmitt",
"author_id": 30492,
"author_... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234217",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4228/"
] |
234,231 | <p>How do you create an application shortcut (.lnk file) in C# or using the .NET framework?</p>
<p>The result would be a .lnk file to the specified application or URL.</p>
| [
{
"answer_id": 234543,
"author": "Charley Rathkopf",
"author_id": 10119,
"author_profile": "https://Stackoverflow.com/users/10119",
"pm_score": 7,
"selected": true,
"text": "private static void configStep_addShortcutToStartupGroup()\n{\n using (ShellLink shortcut = new ShellLink())\n ... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10119/"
] |
234,233 | <p>I have two machines... a development machine and a production machine. When I first brought my rails app onto the production server, I had no problem. I simply imported schema.rb by running rake db:schema:load RAILS_ENV=production. All was well.</p>
<p>So, then on my development machine, I made some more changes... | [
{
"answer_id": 235845,
"author": "Ian Terrell",
"author_id": 9269,
"author_profile": "https://Stackoverflow.com/users/9269",
"pm_score": -1,
"selected": false,
"text": "rake db:migrate RAILS_ENV=production\n db:schema:load"
},
{
"answer_id": 241846,
"author": "Brad",
"aut... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10333/"
] |
234,239 | <p>C# .NET 3.5. I'm trying to understand the intrinsic limitation of the C# Action object. Within the lamda (are those, in fact, lamdas?), we can perform assignments, call functions, even execute a ternary operation, but we can't execute a multi-statement operation.</p>
<p>Is this because the single-statement execut... | [
{
"answer_id": 234266,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 5,
"selected": true,
"text": " Action action = () => { if (m_Count < 10) m_Count++; value = m_Count; };\n type name = statement;"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17803/"
] |
234,241 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/7094118/reference-comparing-phps-print-and-echo">Reference: Comparing PHP's print and echo</a> </p>
</blockquote>
<p>Is there any major and fundamental difference between these two functions in PHP?</p>
| [
{
"answer_id": 234255,
"author": "dl__",
"author_id": 28565,
"author_profile": "https://Stackoverflow.com/users/28565",
"pm_score": 9,
"selected": true,
"text": "print() $ret = print \"Hello World\" $ret 1 $b ? print \"true\" : print \"false\";\n , AND OR XOR echo expression [, expressio... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26823/"
] |
234,249 | <p>I'm trying to come up with a Java regex that will match a filename only if it has a valid extension. For example it should match "foo.bar" and "foo.b", but neither "foo." nor "foo".</p>
<p>I've written the following test program</p>
<pre><code>public static void main(String[] args) {
Pattern fileExtensionPattern... | [
{
"answer_id": 234283,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 4,
"selected": true,
"text": ".* \\\\Z"
},
{
"answer_id": 234427,
"author": "Bill K",
"author_id": 12943,
"author_profile": "ht... | 2008/10/24 | [
"https://Stackoverflow.com/questions/234249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2648/"
] |
234,265 | <p>I'm using Chris Pederick's Firefox addon <a href="http://chrispederick.com/work/web-developer/" rel="nofollow noreferrer">"Web Developer 1.1.6"</a>. I get this warning when hitting a certain web page on my site: </p>
<blockquote>
<p>Unknown property 'MozOpacity'. Declaration dropped.</p>
</blockquote>
<p>What do... | [
{
"answer_id": 234271,
"author": "Ross",
"author_id": 2025,
"author_profile": "https://Stackoverflow.com/users/2025",
"pm_score": 1,
"selected": false,
"text": "mozopacity -moz-opacity"
}
] | 2008/10/24 | [
"https://Stackoverflow.com/questions/234265",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8088/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.