qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
225,073 | <p>I am about to write junit tests for a XML parsing Java class that outputs directly to an OutputStream. For example <code>xmlWriter.writeString("foo");</code> would produce something like <code><aTag>foo</aTag></code> to be written to the outputstream held inside the XmlWriter instance. The question is ho... | [
{
"answer_id": 225857,
"author": "eljenso",
"author_id": 30316,
"author_profile": "https://Stackoverflow.com/users/30316",
"pm_score": 2,
"selected": false,
"text": "StringWriter StringWriter toString() OutputStream ByteArrayOutputStream toString() public void testSomething()\n{\n Write... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22012/"
] |
225,078 | <p>I have an application that grabs video from multiple webcams, does some image processing, and displays the result on the screen. I'd like to be able to stream the video output on to the web - preferably to some kind of distribution service rather than connecting to clients directly myself.</p>
<p>So my questions ... | [
{
"answer_id": 225857,
"author": "eljenso",
"author_id": 30316,
"author_profile": "https://Stackoverflow.com/users/30316",
"pm_score": 2,
"selected": false,
"text": "StringWriter StringWriter toString() OutputStream ByteArrayOutputStream toString() public void testSomething()\n{\n Write... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17440/"
] |
225,080 | <p>I'm trying to configure an ejabberd installation, using LDAP authentication, but I just can't login, even with the admin user.
This is part of my ejabberd.cfg file:</p>
<pre><code>%...
{auth_method, ldap}.
{ldap_servers, ["server2000.tek2000.local"]}.
{ldap_port,389}.
{ldap_uidattr, "uid"}.
{ldap_base, "dc=server20... | [
{
"answer_id": 225857,
"author": "eljenso",
"author_id": 30316,
"author_profile": "https://Stackoverflow.com/users/30316",
"pm_score": 2,
"selected": false,
"text": "StringWriter StringWriter toString() OutputStream ByteArrayOutputStream toString() public void testSomething()\n{\n Write... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225080",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2019426/"
] |
225,086 | <p>Is there a fairly easy way to convert a datetime object into an RFC 1123 (HTTP/1.1) date/time string, i.e. a string with the format</p>
<pre><code>Sun, 06 Nov 1994 08:49:37 GMT
</code></pre>
<p>Using <code>strftime</code> does not work, since the strings are locale-dependant. Do I have to build the string by hand?... | [
{
"answer_id": 225101,
"author": "Ignacio Vazquez-Abrams",
"author_id": 20862,
"author_profile": "https://Stackoverflow.com/users/20862",
"pm_score": 2,
"selected": false,
"text": ">>> locale.setlocale(locale.LC_TIME, 'en_US')\n'en_US'\n>>> datetime.datetime.now().strftime(locale.nl_lang... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225086",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7779/"
] |
225,088 | <p>I'm trying to figure out the best way to store user uploaded files in a file system. The files range from personal files to wiki files. Of course, the DB will point to those files by someway which I have yet to figure out. </p>
<p>Basic Requirements:</p>
<ul>
<li>Fairy Decent Security so People Can't Guess File... | [
{
"answer_id": 225098,
"author": "Michael Stum",
"author_id": 91,
"author_profile": "https://Stackoverflow.com/users/91",
"pm_score": 1,
"selected": false,
"text": "/2\n/2/2f/\n/2/2f/2fd/\n/2/2f/2fd/2fd4e1c67a2d28fced849ee1bb76e7391b93eb12\n"
},
{
"answer_id": 225112,
"author... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10352/"
] |
225,089 | <p>Why can't we initialize members inside a structure ?</p>
<p>example:</p>
<pre><code>struct s {
int i = 10;
};
</code></pre>
| [
{
"answer_id": 225092,
"author": "Alex B",
"author_id": 23643,
"author_profile": "https://Stackoverflow.com/users/23643",
"pm_score": 5,
"selected": false,
"text": "struct structs struct s {\n int i;\n\n s(): i(10)\n {\n }\n};\n struct s {\n int i;\n};\n\n...\n\nstruct s s... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21599/"
] |
225,096 | <p>I'm starting to look into the whole world of RJS and Prototype/jQuery in Rails and am a little bit confused. There seems to be no clear line of where to use one or the other.</p>
<p>Say I wanted one of the "Active, Hot, Week" tabs like the ones here on SO. When pressing one of them, I want to remove a CSS class (li... | [
{
"answer_id": 225306,
"author": "Codebeef",
"author_id": 12037,
"author_profile": "https://Stackoverflow.com/users/12037",
"pm_score": 2,
"selected": true,
"text": "page.replace(dom_id, :partial => @page_content);\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9191/"
] |
225,103 | <p>I'm writing a MUD engine and I've just started on the game object model, which needs to be extensible.</p>
<p>I need help mainly because what I've done feels messy, but I can't think of a another solution that works better.</p>
<p>I have a class called <code>MudObject</code>, and another class called <code>Contain... | [
{
"answer_id": 225120,
"author": "Jon Limjap",
"author_id": 372,
"author_profile": "https://Stackoverflow.com/users/372",
"pm_score": 1,
"selected": false,
"text": "List<MudObject> public class MudObjectList : List<MudObject>\n public void new Add(MudObject obj)\n{\n obj.ContainedBy =... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1610/"
] |
225,114 | <pre><code><td title="this is a really long line that I'm going to truncate">this is a really long line that I'm going to trunc ...</td>
</code></pre>
<p>Is this the correct way to do it?</p>
| [
{
"answer_id": 225165,
"author": "Abbas",
"author_id": 4714,
"author_profile": "https://Stackoverflow.com/users/4714",
"pm_score": 2,
"selected": false,
"text": "title td <td>\n <span title=\"this is a really long line that I'm going to truncate\">this is a really long line that I'm g... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21559/"
] |
225,130 | <p>I'm tryint to post to a ADO.NET Data Service but the parameters seems to get lost along the way.</p>
<p>I got something like:</p>
<pre><code>[WebInvoke(Method="POST")]
public int MyMethod(int foo, string bar) {...}
</code></pre>
<p>and I make an ajax-call using prototype.js as:</p>
<pre><code>var args = {foo: 4,... | [
{
"answer_id": 225164,
"author": "Ray Lu",
"author_id": 11413,
"author_profile": "https://Stackoverflow.com/users/11413",
"pm_score": 0,
"selected": false,
"text": "<foo>1</foo>\n<bar>abc</bar>\n <Request>\n <foo>1</foo>\n <bar>abc</bar>\n</Request>\n"
},
{
"answer_id": 22538... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225130",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24044/"
] |
225,149 | <p>Guys, I’ve been writing code for 15+ years, but managed to avoid “Web Development” until 3 months ago.</p>
<p>I have inherited a legacy Asp.net application (started in .net 1.1, we’re now on .Net 2.0), it’s the administration tool for our product.</p>
<p>In several places the admin tool simply maintains long lists... | [
{
"answer_id": 225215,
"author": "WebDude",
"author_id": 15360,
"author_profile": "https://Stackoverflow.com/users/15360",
"pm_score": 3,
"selected": true,
"text": "<a name=\"#175\"></a>\n Response.Redirect(\"PageA.aspx#175\");\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225149",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18797/"
] |
225,150 | <p>One of my projects use the MyISAM engine in MySQL, but I'm considering changing it to InnoDB as I need transaction support here and there.</p>
<ul>
<li>What should I look at or consider before doing this? </li>
<li>Can I just change the engine, or should the data be prepared for it?</li>
</ul>
| [
{
"answer_id": 226422,
"author": "J.D. Fitz.Gerald",
"author_id": 11542,
"author_profile": "https://Stackoverflow.com/users/11542",
"pm_score": 2,
"selected": false,
"text": "select count(*) from MyTable"
},
{
"answer_id": 228948,
"author": "Laurynas Pečiūra",
"author_id"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225150",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6681/"
] |
225,194 | <p>I'm relatively new to Threading in Java and I've noticed that everytime I use Thread.sleep() I have to catch InterrupetdException.</p>
<p>What kind of behaviour causes this, and in simple applications where I have a monitor thread can I just Ignore the exception?</p>
| [
{
"answer_id": 225310,
"author": "madlep",
"author_id": 14160,
"author_profile": "https://Stackoverflow.com/users/14160",
"pm_score": 3,
"selected": false,
"text": "interrupt() Thread"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20400/"
] |
225,207 | <p>What is the best practice to solve a Java VM crash if the follow conditions are true:</p>
<ul>
<li>No own or third party native code. 100% pure java</li>
<li>The same program run on many other system without any problems.</li>
</ul>
<p>PS: With VM crash I means that the VM write a dump file like hs_err_pid1234.log... | [
{
"answer_id": 225406,
"author": "oxbow_lakes",
"author_id": 16853,
"author_profile": "https://Stackoverflow.com/users/16853",
"pm_score": 2,
"selected": false,
"text": "OS OS SMB NFS malloc"
},
{
"answer_id": 225951,
"author": "matt b",
"author_id": 4249,
"author_pro... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12631/"
] |
225,210 | <p>We have a collection of photo images sizing a few hundred gigs. A large number of the photos are visually duplicates, but with differing filesizes, resolution, compression etc. </p>
<p>Is it possible to use any specific image processing methods to search out and remove these duplicate images?</p>
| [
{
"answer_id": 225534,
"author": "dbr",
"author_id": 745,
"author_profile": "https://Stackoverflow.com/users/745",
"pm_score": 0,
"selected": false,
"text": "SELECT id FROM photos where id='uploaded_image_id' image_a image_b"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23393/"
] |
225,233 | <p>No I'm not being a wise guy ...</p>
<p>For those fortunate enough to not know the My class: It's something that was <strong>added in VB 2005 (and doesn't exist in C#) and is best described as a 'speeddial for the .net framework'.</strong>
Supposed to make life easier for newbies who won't read which framework clas... | [
{
"answer_id": 225261,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 0,
"selected": false,
"text": "My My.Application Microsoft.VisualBasic.ApplicationServices.ApplicationBase My.Computer Microsoft.VisualBasic.Devices... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1695/"
] |
225,263 | <p>Lets say I have a single object of type Car which I want to render as HTML:</p>
<pre><code>class Car {
public int Wheels { get; set; }
public string Model { get; set; }
}
</code></pre>
<p>I don't want to use the ASP.NET Repeater or ListView controls to bind because it seems too verbose. I just have the one obj... | [
{
"answer_id": 225278,
"author": "Maxime Rouiller",
"author_id": 24975,
"author_profile": "https://Stackoverflow.com/users/24975",
"pm_score": 6,
"selected": true,
"text": "public Car CurrentCar { get; set; }\n <div>\n Wheels: <%= CurrentCar.Wheels %><br />\n Model: <%= CurrentCar.Mode... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225263",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30056/"
] |
225,266 | <p>vi treats dash <code>-</code> and space <code> </code> as word separators for commands such as <code>dw</code> and <code>cw</code>.</p>
<p>Is there a way to add underscore <code>_</code> as well?</p>
<p>I quite often want to change part of a variable name containing underscores, such as changing <code>src_bra... | [
{
"answer_id": 225340,
"author": "HS.",
"author_id": 1398,
"author_profile": "https://Stackoverflow.com/users/1398",
"pm_score": 1,
"selected": false,
"text": "cf_dest_ ct_ f 'iskeyword' :help iskeyword"
},
{
"answer_id": 225361,
"author": "WMR",
"author_id": 2844,
"a... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11928/"
] |
225,275 | <p>I installed a windows service using installUtil.exe. </p>
<p>After updating the code I used installUtil.exe again to install the service w/o uninstalling the original version first.</p>
<p>When I now try to uninstall the service, installUtil.exe completes the uninstall successfully, but the service still appears. ... | [
{
"answer_id": 232434,
"author": "Aaron Weiker",
"author_id": 30664,
"author_profile": "https://Stackoverflow.com/users/30664",
"pm_score": 4,
"selected": false,
"text": "sc delete sericeName\n"
},
{
"answer_id": 1540460,
"author": "Community",
"author_id": -1,
"autho... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225275",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133/"
] |
225,277 | <p>I want to call my .NET code from unmanaged C++. My process entrypoint is .NET based, so I don't have to worry about hosting the CLR. I know it can be done using COM wrappers for .NET objects, but I would like to access individual static methods of managed classes, so COM isn't my shortest/easiest route.</p>
| [
{
"answer_id": 225476,
"author": "Aamir",
"author_id": 30341,
"author_profile": "https://Stackoverflow.com/users/30341",
"pm_score": 1,
"selected": false,
"text": "/clr #using <Mydll.dll>\n MyNameSpace::MyClass^ obj = new MyNameSpace::MyClass();\n"
},
{
"answer_id": 6795543,
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30324/"
] |
225,283 | <p>I have an application, written in C++ using MFC and Stingray libraries. The application works with a wide variety of large data types, which are all currently serialized based on MFC Document/View serialize derived functionality. I have also added options for XML serialization based on the Stingray libraries, whic... | [
{
"answer_id": 43092831,
"author": "Pierre",
"author_id": 282901,
"author_profile": "https://Stackoverflow.com/users/282901",
"pm_score": 1,
"selected": false,
"text": "<tag attribute=\"value\"/>\n <tag attribute=\"value\"> </tag>\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225283",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22564/"
] |
225,291 | <p>I have been using git to keep two copies of my project in sync, one is my local box, the other the test server.
This is an issue which occurs when I log onto our remote development server using ssh;</p>
<pre><code>git clone me@me.mydevbox.com:/home/chris/myproject
Initialized empty Git repository in /tmp/myproject/... | [
{
"answer_id": 225315,
"author": "Matt Curtis",
"author_id": 17221,
"author_profile": "https://Stackoverflow.com/users/17221",
"pm_score": 8,
"selected": true,
"text": "git-upload-pack /usr/bin ssh you@remotemachine echo \\$PATH\n git-upload-pack .bashrc .zshenv .cshrc PATH which git-upl... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225291",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24508/"
] |
225,309 | <p>Today i stumbled upon an interesting performance problem with a stored procedure running on Sql Server 2005 SP2 in a db running on compatible level of 80 (SQL2000).</p>
<p>The proc runs about 8 Minutes and the execution plan shows the usage of an index with an actual row count of 1.339.241.423 which is about facto... | [
{
"answer_id": 225401,
"author": "Tomalak",
"author_id": 18771,
"author_profile": "https://Stackoverflow.com/users/18771",
"pm_score": 0,
"selected": false,
"text": "UPDATE STATISTICS"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25727/"
] |
225,327 | <p>Currently I am working with a <strong>custom</strong> regular expression validator <em>(unfortunately)</em>.</p>
<p>I am trying to set the Regex pattern using a server side inline script like this:</p>
<pre><code>ValidationExpression="<%= RegExStrings.SomePattern %>"
</code></pre>
<p>However, the script is ... | [
{
"answer_id": 225343,
"author": "WebDude",
"author_id": 15360,
"author_profile": "https://Stackoverflow.com/users/15360",
"pm_score": 0,
"selected": false,
"text": "RegExValidator1.ValidationExpression = RegExStrings.SomePattern;\n"
},
{
"answer_id": 487844,
"author": "MarkD... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225327",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11702/"
] |
225,330 | <p>I'm writing a tool to report information about .NET applications deployed across environments and regions within my client's systems.</p>
<p>I'd like to read the values of assembly attributes in these assemblies.</p>
<p>This can be achieved using <code>Assembly.ReflectionOnlyLoad</code>, however even this approach... | [
{
"answer_id": 225355,
"author": "Tamas Czinege",
"author_id": 8954,
"author_profile": "https://Stackoverflow.com/users/8954",
"pm_score": 7,
"selected": true,
"text": "public void TempLoadAssembly()\n{\n AppDomain tempDomain = AppDomain.CreateDomain(\"TemporaryAppDomain\");\n temp... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24874/"
] |
225,337 | <p>What regex pattern would need I to pass to <code>java.lang.String.split()</code> to split a String into an Array of substrings using all whitespace characters (<code>' '</code>, <code>'\t'</code>, <code>'\n'</code>, etc.) as delimiters?</p>
| [
{
"answer_id": 225354,
"author": "glenatron",
"author_id": 15394,
"author_profile": "https://Stackoverflow.com/users/15394",
"pm_score": 7,
"selected": false,
"text": "\\w \\W \\s \\S \\d \\D"
},
{
"answer_id": 225360,
"author": "Henrik Paul",
"author_id": 2238,
"auth... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30323/"
] |
225,357 | <p>I have to develop a system to <strong>monitor</strong> the <strong>generation/transmission</strong> of reports.</p>
<ul>
<li>System data will be stored in database tables (Sybase)</li>
<li>Reports will be generated with different schedules ("mon-fri 10pm", "sat 5am", "1st day of the month", etc.)</li>
<li>System wi... | [
{
"answer_id": 225354,
"author": "glenatron",
"author_id": 15394,
"author_profile": "https://Stackoverflow.com/users/15394",
"pm_score": 7,
"selected": false,
"text": "\\w \\W \\s \\S \\d \\D"
},
{
"answer_id": 225360,
"author": "Henrik Paul",
"author_id": 2238,
"auth... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225357",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15884/"
] |
225,362 | <p>I have some numbers of different length (like 1, 999, 76492, so on) and I want to convert them all to strings with a common length (for example, if the length is 6, then those strings will be: '000001', '000999', '076492'). </p>
<p>In other words, I need to add correct amount of leading zeros to the number.</p>
<p... | [
{
"answer_id": 225372,
"author": "Pramod",
"author_id": 1386292,
"author_profile": "https://Stackoverflow.com/users/1386292",
"pm_score": 2,
"selected": false,
"text": "int n = 999;\nchar buffer[256]; sprintf(buffer, \"%06d\", n);\nstring str(buffer);\n"
},
{
"answer_id": 225389,... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26276/"
] |
225,367 | <p>Yes, I know you could use regular objects as associative arrays in JavaScript, but I'd like to use something closer to java's Map's implementation (HashMap, LinkedHashMap etc). Something that could have any kind of data used as key. Are there any good hash(code/table) in JavaScript implementation out there?</p>
| [
{
"answer_id": 225403,
"author": "keparo",
"author_id": 19468,
"author_profile": "https://Stackoverflow.com/users/19468",
"pm_score": 6,
"selected": true,
"text": "function HashMap () {\n var obj = [];\n return obj;\n}\n\nvar myHashMap = HashMap();\n function HashMap() {\n var o... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12540/"
] |
225,371 | <p>How else might you compare two arrays ($A and $B )and reduce matching elements out of the first to prep for the next loop over the array $A?</p>
<pre><code>$A = array(1,2,3,4,5,6,7,8);
$B = array(1,2,3,4);
$C = array_intersect($A,$B); //equals (1,2,3,4)
$A = array_diff($A,$B); //equals (5,6,7,8)
</code></pr... | [
{
"answer_id": 225678,
"author": "rg88",
"author_id": 11252,
"author_profile": "https://Stackoverflow.com/users/11252",
"pm_score": 6,
"selected": true,
"text": "array_diff array_intersect $arr_1 = array_diff($arr_1, $arr_2);\n$arr_2 = array_diff($arr_2, $arr_1);\n"
},
{
"answer_... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225371",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1149/"
] |
225,375 | <p>I'm developing a Java application using Eclipse. My project has two source directories that are both built and then some files are copied into the output folder. From the output directory I then run my application and all works well.</p>
<p>However, I keep having these warnings:</p>
<p><a href="http://www.freeimag... | [
{
"answer_id": 225417,
"author": "fhe",
"author_id": 4445,
"author_profile": "https://Stackoverflow.com/users/4445",
"pm_score": 6,
"selected": true,
"text": "**/.svn/"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3379/"
] |
225,394 | <p>I have a List of strings that is regenerated every 5 seconds. I want to create a Context Menu and set its items dynamically using this list.
The problem is that I don't have even a clue how to do that and manage the Click action for every item generated (which should use the same method with different parameter DoSo... | [
{
"answer_id": 225514,
"author": "itsmatt",
"author_id": 7862,
"author_profile": "https://Stackoverflow.com/users/7862",
"pm_score": 5,
"selected": true,
"text": "myContextMenuStrip.Items.Clear();\n myContextMenuStrip.Items.Add(myString);\n private void myContextMenuStrip_ItemClicked(obj... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4386/"
] |
225,413 | <p>In vs2008, how can I (possibly with a macro) assign a shortcut key to collapse to definitons but leave regions expanded (they must expand if collapsed)?</p>
<p><strong>EDIT:</strong> I hate regions but my co-workers does not (: So I want this to avoid the regions used by them.</p>
<p>I read jeff's post. Ctrl M + O... | [
{
"answer_id": 1805597,
"author": "JMD",
"author_id": 56793,
"author_profile": "https://Stackoverflow.com/users/56793",
"pm_score": 4,
"selected": true,
"text": "Ctrl+Shift+R Ctrl+H #region //#region Alt+A Ctrl+H #endregion //#endregion Alt+A Ctrl+Shift+R Alt+F8 Ctrl+Shift+R Ctrl+H //#re... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31505/"
] |
225,432 | <p>With VS2005, I want to create a DLL and automatically export all symbols without adding <code>__declspec(dllexport)</code> everywhere, and without hand-creating <code>.def</code> files. Is there a way to do this?</p>
| [
{
"answer_id": 225457,
"author": "Adam Mitz",
"author_id": 2574,
"author_profile": "https://Stackoverflow.com/users/2574",
"pm_score": -1,
"selected": false,
"text": "__declspec(dllexport) __declspec(dllimport)"
},
{
"answer_id": 32284832,
"author": "Maks",
"author_id": 3... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14443/"
] |
225,458 | <p>I'm using the <a href="http://sql.codeproject.com/KB/database/CsvReader.aspx" rel="nofollow noreferrer">CsvReader</a> library in my Windows Forms application, which is coded in horribly messy VB (I've recently taken over the project.)</p>
<p>I'm currently capable of reading semi-colon separated files without quotin... | [
{
"answer_id": 225782,
"author": "Rune Grimstad",
"author_id": 30366,
"author_profile": "https://Stackoverflow.com/users/30366",
"pm_score": 0,
"selected": false,
"text": "File.ReadAllLines(filename) string.Split"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20321/"
] |
225,471 | <p>I have an <code>ActiveRecord</code> model, <code>Foo</code>, which has a <code>name</code> field. I'd like users to be able to search by name, but I'd like the search to ignore case and any accents. Thus, I'm also storing a <code>canonical_name</code> field against which to search:</p>
<pre><code>class Foo
vali... | [
{
"answer_id": 292598,
"author": "unexist",
"author_id": 18179,
"author_profile": "https://Stackoverflow.com/users/18179",
"pm_score": 7,
"selected": true,
"text": ">> \"àáâãäå\".mb_chars.normalize(:kd).gsub(/[^\\x00-\\x7F]/n,'').downcase.to_s\n=> \"aaaaaa\"\n"
},
{
"answer_id": ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1190/"
] |
225,481 | <p>I'm using T4 for generating repositories for LINQ to Entities entities. </p>
<p>The repository contains (amongst other things) a List method suitable for paging. The documentation for <a href="http://msdn.microsoft.com/en-us/library/bb738474.aspx" rel="nofollow noreferrer">Supported and Unsupported Methods</a> does... | [
{
"answer_id": 225749,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 2,
"selected": false,
"text": "public interface IOrderByExpression<T>\n{\n ApplyOrdering(ref IQueryable<T> query);\n}\n\npublic class OrderByExpression<T, U... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225481",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11098/"
] |
225,489 | <p>In regular Java, you can get the text of a stack trace by passing a PrintWriter to printStackTrace. I have a feeling I know the answer to this (i.e. "No") but,</p>
<p>Is there any way to obtain the text of a stack trace in JavaME as a String?</p>
<p><strong>Update:</strong></p>
<p>I should mention that I'm restri... | [
{
"answer_id": 225523,
"author": "Aaron Maenpaa",
"author_id": 2603,
"author_profile": "https://Stackoverflow.com/users/2603",
"pm_score": -1,
"selected": false,
"text": "try{\n throw new Exception(\"Message\"); \n} catch (Exception ex){\n ByteArrayOutputStream out = new ByteAr... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225489",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/974/"
] |
225,535 | <p>In our database, we have a system set up to keep track of applications. We have a bool column that indicates whether or not the application is approved. Then there's another column that indicates whether or not the application is denied. If neither column is true, then the application is considered to be pending.... | [
{
"answer_id": 225569,
"author": "BenR",
"author_id": 18039,
"author_profile": "https://Stackoverflow.com/users/18039",
"pm_score": 3,
"selected": false,
"text": "select case \n when Approved = 1 then 'Approved'\n when Denied = 1 then 'Denied'\n else 'Pending'\n end 'Status'\n"
},
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2147/"
] |
225,542 | <p>I have a Makefile that starts by running a tool before applying the build rules (which this tool writes for me). If this tool, which is a python script, exits with a non-null status code, I want GNU Make to stop right there and not go on with building the program.</p>
<p>Currently, I do something like this (top lev... | [
{
"answer_id": 225626,
"author": "mweerden",
"author_id": 4285,
"author_profile": "https://Stackoverflow.com/users/4285",
"pm_score": 3,
"selected": false,
"text": "$(if $(shell if your_command; then echo ok; fi), , $(error your_command failed))\n your_command your_command && echo ok if ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2095/"
] |
225,545 | <p>I'm creating a C# dll, which is going to be used by others developers in WinForms. For some reasons, I want to detect, if methods from this library, are called from Main (GUI) Thread and warn developer he has done such a thing (ie. in log file). Is there any reasonable way to detect calling method from main thread?
... | [
{
"answer_id": 225556,
"author": "ageektrapped",
"author_id": 631,
"author_profile": "https://Stackoverflow.com/users/631",
"pm_score": 5,
"selected": true,
"text": "if (MyLibraryControl.InvokeRequired)\n //do your thing here\n"
},
{
"answer_id": 225565,
"author": "Marc Grav... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30343/"
] |
225,548 | <p>Where can I find algorithms for image distortions? There are so much info of Blur and other classic algorithms but so little of more complex ones. In particular, I am interested in swirl effect image distortion algorithm.</p>
| [
{
"answer_id": 225575,
"author": "Chris Johnson",
"author_id": 23732,
"author_profile": "https://Stackoverflow.com/users/23732",
"pm_score": 6,
"selected": true,
"text": "a = amount of rotation\nb = size of effect\n\nangle = a*exp(-(x*x+y*y)/(b*b))\nu = cos(angle)*x + sin(angle)*y\nv = -... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25194/"
] |
225,550 | <p>I'm filtering the messages that come to a form with PreFilterMessage like this:</p>
<p><code>print("code sample");</code></p>
<pre><code> public bool PreFilterMessage(ref Message m)
{
if (m.Msg == WM_KEYDOWN && (int)m.WParam == VK_ESCAPE)
{
this.Close();
return true;
}
... | [
{
"answer_id": 232390,
"author": "faulty",
"author_id": 20007,
"author_profile": "https://Stackoverflow.com/users/20007",
"pm_score": 0,
"selected": false,
"text": "ShowDialog() Close() PreFilterMessage() this.Visible = false; Control.Hide"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
225,560 | <p>I think questions like this are the reason why I don't like working with PHP. The manual is good, if you can find what you are looking for. After reading through the <a href="http://us3.php.net/array" rel="nofollow noreferrer">Array Functions</a>, I didn't see one that provides the functionality I need.</p>
<p>I ha... | [
{
"answer_id": 225566,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 4,
"selected": true,
"text": "array_diff $array1 = array(\"a\" => \"green\", \"red\", \"blue\", \"red\");\n$array2 = array(\"b\" => \"green\", \"yel... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
225,563 | <p>I've implemented a set of draggable elements that can be dropped into some containers using jQuery. What I need is an animation that moves an element to a specific container without user interaction. The problem is that the elements and the drop containers are in completely <strong>different parts of the DOM</strong... | [
{
"answer_id": 225628,
"author": "Claudio",
"author_id": 30122,
"author_profile": "https://Stackoverflow.com/users/30122",
"pm_score": 1,
"selected": false,
"text": "var dx = obj1.offsetLeft - obj2.offsetLeft;\nvar dy = obj1.offsetTop - obj2.offsetTop;\nvar distance = Math.sqrt(Math.pow(... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225563",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22592/"
] |
225,572 | <p>In the spirit of <a href="https://stackoverflow.com/questions/171156/best-practices-always-return-a-never-a">Best Practices: Always return a ____, never a ____</a>, I face a similar question in my upcoming <a href="https://stackoverflow.com/questions/219164/generics-in-legacy-code">migration from JDK1.4.2 to JDK5 an... | [
{
"answer_id": 225613,
"author": "madlep",
"author_id": 14160,
"author_profile": "https://Stackoverflow.com/users/14160",
"pm_score": 2,
"selected": false,
"text": "Collections"
},
{
"answer_id": 277315,
"author": "mcjabberz",
"author_id": 30323,
"author_profile": "ht... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6309/"
] |
225,594 | <p>Can <code>Thread.getContextClassLoader()</code> be null ? The javadoc is not really clear.<br>
Should a library take this case into account ?</p>
<p>Update: the reason I asked is that <code>beansbinding.dev.java.net</code> does <em>not</em> work in this case (and my code does <code>setContextClassLoader(null)</code... | [
{
"answer_id": 225670,
"author": "WMR",
"author_id": 2844,
"author_profile": "https://Stackoverflow.com/users/2844",
"pm_score": 3,
"selected": false,
"text": "Thread.setContextClassLoader(null)"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22850/"
] |
225,598 | <p>This is a slightly.. vain question, but BuildBot's output isn't particularly nice to look at..</p>
<p>For example, compared to..</p>
<ul>
<li><a href="http://phpundercontrol.org/about.html" rel="noreferrer">phpUnderControl</a></li>
<li><a href="http://jenkins-ci.org/content/about-jenkins-ci" rel="noreferrer">Jenki... | [
{
"answer_id": 667800,
"author": "Jason Baker",
"author_id": 2147,
"author_profile": "https://Stackoverflow.com/users/2147",
"pm_score": 6,
"selected": true,
"text": "nosetests --with-xunit --enable-cover\n"
},
{
"answer_id": 5119040,
"author": "Nick Holden",
"author_id":... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/745/"
] |
225,617 | <p>I'm trying to get this piece of code working a little better. I suspect it's the loop reading one byte at a time. I couldn't find another way of doing this with gzip decompression. Implementing a <code>StreamReader</code> is fine, but it returns a string which I can't pass to the decompression stream.</p>
<p>Is the... | [
{
"answer_id": 225622,
"author": "Kibbee",
"author_id": 1862,
"author_profile": "https://Stackoverflow.com/users/1862",
"pm_score": 0,
"selected": false,
"text": "String ReponseText;\n\nIO.StreamReader ResponseReader = New IO.StreamReader(webStream );\nReponseText= ResponseReader.ReadToE... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17211/"
] |
225,624 | <p>I have a site, and it will be sold to different clients but for maintenance reasons, we will be keeping one codebase. So this means that this one codebase will have to be dynamic enough to have different styles and so forth, depending on the client.</p>
<p>The domain would be a subdomain-type system, so: projectnam... | [
{
"answer_id": 225646,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 0,
"selected": false,
"text": "/* Do you have a folder in \"Themes\" or \"APP_Themes\" called Savillis? */\n /* Are you doing that? */\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30004/"
] |
225,635 | <p>Using the client-side ASP.NET AJAX library, I have created an instance of a client component with the $create shortcut-method (<a href="http://msdn.microsoft.com/da-dk/library/bb397487(en-us).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/da-dk/library/bb397487(en-us).aspx</a>). The object is attached to ... | [
{
"answer_id": 225948,
"author": "EndangeredMassa",
"author_id": 106,
"author_profile": "https://Stackoverflow.com/users/106",
"pm_score": 1,
"selected": false,
"text": "Returns: A new instance of a component that uses the specified parameters.\n var instance = $create(someType);\n"
}
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225635",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30056/"
] |
225,637 | <p>I recently installed RailRoad gem to generate an .svg diagram of my app's models and controllers.</p>
<p>The rake task keeps breaking with a similar error:</p>
<pre><code>1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:263:in `load_missing_constant': uninitialized constant
</c... | [
{
"answer_id": 2822679,
"author": "Ivan",
"author_id": 394133,
"author_profile": "https://Stackoverflow.com/users/394133",
"pm_score": 0,
"selected": false,
"text": "user@laptop:11:15 AM:rails_app> rake doc:diagrams\n(in /Users/ivan/Sites/lqas)\nrailroad -i -l -a -m -M | dot -Tsvg | sed ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225637",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/449483/"
] |
225,654 | <p>How do you add a page break into a document with XSL-FO? I'm using <a href="http://xmlgraphics.apache.org/fop/" rel="noreferrer">Apache FOP</a> to create PDFs, if that makes a difference.</p>
| [
{
"answer_id": 225691,
"author": "Matthew Wilson",
"author_id": 29429,
"author_profile": "https://Stackoverflow.com/users/29429",
"pm_score": 6,
"selected": true,
"text": "page-break-after page-break-before page-break-inside keep-together keep-with-next keep-with-previous"
},
{
"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21709/"
] |
225,666 | <p>I have a CompositeControl that contains a DropDownList.</p>
<p>I have set the AutoPostBack property of the DropDownList to true.</p>
<p>On the page, I have:</p>
<pre><code><asp:UpdatePanel ID="UpdatePanel" runat="server">
<ContentTemplate>
<MyControl:Control ID="CustomControl" runat="se... | [
{
"answer_id": 225926,
"author": "Programmin Tool",
"author_id": 21691,
"author_profile": "https://Stackoverflow.com/users/21691",
"pm_score": 3,
"selected": true,
"text": "public partial class CatchMyEvent : System.Web.UI.UserControl\n{\n public delegate void ChangedIndex(object send... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8797/"
] |
225,675 | <p>I believe I'm getting bitten by some combination of nested scoping rules and list comprehensions. <a href="http://www.python.org/~jeremy/weblog/040204.html" rel="noreferrer">Jeremy Hylton's blog post</a> is suggestive about the causes, but I don't really understand CPython's implementation well-enough to figure out... | [
{
"answer_id": 225801,
"author": "mweerden",
"author_id": 4285,
"author_profile": "https://Stackoverflow.com/users/4285",
"pm_score": 5,
"selected": true,
"text": "return self.display >>> a = [1,2]\n>>> b = [a,a]\n>>> b\n[[1, 2], [1, 2]]\n>>> a.append(3)\n>>> b\n[[1, 2, 3], [1, 2, 3]]\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15842/"
] |
225,686 | <p>I have a singleton that uses the "static readonly T Instance = new T();" pattern. However, I ran into a case where T is disposable, and actually needs to be disposed for unit tests. How can I modify this pattern to support a disposable singleton?</p>
<p>The interface I would like is something like:</p>
<pre><code>... | [
{
"answer_id": 225747,
"author": "Bogdan Maxim",
"author_id": 23795,
"author_profile": "https://Stackoverflow.com/users/23795",
"pm_score": 0,
"selected": false,
"text": "public sealed class Singleton : IDisposable\n{\n Singleton()\n {\n }\n\n public static Singleton Instance... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225686",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11236/"
] |
225,699 | <p>Does anyone know if you can programmatically open a .webarchive on the iPhone? A .webarchive is Safari's way of packaging up a webpage and it's associated resources into a single file.</p>
<p>I tried creating one and browsing to a link to one in mobile safari, but it didn't work....</p>
<p>Note: I was kind of hop... | [
{
"answer_id": 4952387,
"author": "Duck",
"author_id": 316469,
"author_profile": "https://Stackoverflow.com/users/316469",
"pm_score": 5,
"selected": true,
"text": "NSURL *fileURL = [[NSBundle mainBundle] URLForResource:@\"myFile\"\n withExtension:@\"webarchive\"];\n\n[webView loadRe... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26510/"
] |
225,711 | <p>Any ideas how to stop the system bell from sounding when <kbd>CTRL</kbd>-<kbd>A</kbd> is used to select text in a Winforms application?</p>
<p>Here's the problem. Create a Winforms project. Place a text box on the form and add the following event handler on the form to allow <kbd>CTRL</kbd>-<kbd>A</kbd> to select a... | [
{
"answer_id": 230417,
"author": "Blue Waters",
"author_id": 30363,
"author_profile": "https://Stackoverflow.com/users/30363",
"pm_score": 3,
"selected": false,
"text": "protected override bool ProcessCmdKey(ref Message msg, Keys keyData) \n{\n if (keyData == (Keys.A | Keys.Control)) {\... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225711",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30363/"
] |
225,717 | <p>Given a FieldInfo object and an object, I need to get the actual bytes representation of the field. I know that the field is either <code>int,Int32,uint,short</code> etc.</p>
<p>How can I get the actual byte representation? BinaryFormatter.Serialize won't help, since it'll give me more information than I need (it a... | [
{
"answer_id": 225729,
"author": "James Curran",
"author_id": 12725,
"author_profile": "https://Stackoverflow.com/users/12725",
"pm_score": 3,
"selected": false,
"text": "byte[] Bytes;\n\nif (valType == typeof(int))\n{\n int intVal = (int) GetFieldValue(....);\n Bytes = BitConverte... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
225,735 | <p>Is there an easy way to rename a group of files already contained in a directory, using Python?</p>
<p><strong>Example:</strong> I have a directory full of *.doc files and I want to rename them in a consistent way.</p>
<blockquote>
<p>X.doc -> "new(X).doc"</p>
<p>Y.doc -> "new(Y).doc"</p>
</blockquote>
| [
{
"answer_id": 227125,
"author": "DzinX",
"author_id": 18745,
"author_profile": "https://Stackoverflow.com/users/18745",
"pm_score": 8,
"selected": true,
"text": "import glob, os\n\ndef rename(dir, pattern, titlePattern):\n for pathAndFilename in glob.iglob(os.path.join(dir, pattern))... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11760/"
] |
225,741 | <p>Is there a way to set the StartPosition of a Windows Forms form using code? It seems whatever I try results in the StartPostion being the default.</p>
<p>Here is what I am doing in the form to display:</p>
<pre><code> public DealsForm()
{
InitializeComponent();
this.StartPosition = FormStartP... | [
{
"answer_id": 225768,
"author": "splattne",
"author_id": 6461,
"author_profile": "https://Stackoverflow.com/users/6461",
"pm_score": 1,
"selected": false,
"text": "private void nvShowDeals_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)\n{\n DealsForm frm = new DealsForm(... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1768/"
] |
225,764 | <p>I'm trying to safely update the home directory as specified in <code>/etc/passwd</code>,
but the standard Linux utils - usermod and vipw - for doing so aren't provided
by Cygwin.</p>
<p>Could anyone tell me how they changed this in Cygwin?</p>
| [
{
"answer_id": 226107,
"author": "sblundy",
"author_id": 4893,
"author_profile": "https://Stackoverflow.com/users/4893",
"pm_score": 5,
"selected": true,
"text": "user:...:/cygdrive/c/Documents and Settings/user:/bin/bash\n :"
},
{
"answer_id": 327235,
"author": "netjeff",
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4893/"
] |
225,772 | <p>I'm currently developing an application using a MySQL database.</p>
<p>The database-structure is still in flux and changes while development progresses (I change my local copy, leaving the one on the test-server alone).</p>
<p>Is there a way to compare the two instances of the database to see if there were any cha... | [
{
"answer_id": 8718572,
"author": "Jared",
"author_id": 14744,
"author_profile": "https://Stackoverflow.com/users/14744",
"pm_score": 9,
"selected": true,
"text": "--skip-comments --skip-extended-insert --skip-extended-insert mysqldump --skip-comments --skip-extended-insert -u root -p db... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225772",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27439/"
] |
225,825 | <p>I'm developing a piece in VB.NET. Inside my primary form, I'm creating a new form to use as a dialog. I was wondering if there was a way to, upon the close of the new dialog, save it's size settings for each user (probably in a file on their machine, through XML or something?)</p>
| [
{
"answer_id": 225925,
"author": "Hath",
"author_id": 5186,
"author_profile": "https://Stackoverflow.com/users/5186",
"pm_score": 4,
"selected": true,
"text": "Public Sub New()\n InitializeComponent()\nEnd Sub\n\nPublic Sub New(ByVal userSize As Size)\n InitializeComponent()\n M... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13244/"
] |
225,828 | <p>Since a lot of email clients ignore the HEAD tag, can I embed an inline stylesheet in the body?</p>
| [
{
"answer_id": 225855,
"author": "teebot",
"author_id": 24291,
"author_profile": "https://Stackoverflow.com/users/24291",
"pm_score": 1,
"selected": false,
"text": "margin padding <div style=\"\">"
},
{
"answer_id": 227830,
"author": "Andy Ford",
"author_id": 17252,
"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225828",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2133/"
] |
225,830 | <p>Im in the situation that I often send small codesnippets and xml-snippets to coworkers and partners via my outlook.
Has anyone got a good idea or tool that I can use to have my pastes syntaxhighlighted before I paste them into an email.</p>
<p>I was thinking of an intermediate paste to "$fancytool" and then I woul... | [
{
"answer_id": 2327441,
"author": "ring bearer",
"author_id": 212211,
"author_profile": "https://Stackoverflow.com/users/212211",
"pm_score": 4,
"selected": true,
"text": "Paste in to clipboard in RTF as well as plain text :set syn=xml"
},
{
"answer_id": 65968664,
"author": "... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/86/"
] |
225,832 | <p>Here's the deal. I have an XML document with a lot of records. Something like this:</p>
<pre><code>print("<?xml version="1.0" encoding="utf-8" ?>
<Orders>
<Order>
<Phone>1254</Phone>
<City>City1</City>
<State>State</State>
... | [
{
"answer_id": 899379,
"author": "Richard Morgan",
"author_id": 2258,
"author_profile": "https://Stackoverflow.com/users/2258",
"pm_score": 1,
"selected": false,
"text": " XDocument doc = XDocument.Load(\"sample.xml\");\n XmlSchemaSet schemas = new XmlSchemaSet();\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1688440/"
] |
225,833 | <p>I have to add a coupon table to my db. There are 3 types of coupons : percentage, amount or 2 for 1.</p>
<p>So far I've come up with a coupon table that contains these 3 fields. If there's a percentage value not set to null then it's this kind of coupon.</p>
<p>I feel it's not the proper way to do it. Should I cre... | [
{
"answer_id": 225862,
"author": "mwilliams",
"author_id": 23909,
"author_profile": "https://Stackoverflow.com/users/23909",
"pm_score": 3,
"selected": true,
"text": "- Table Coupons\n - ID\n - name\n - coupon_type_id # (or whatever fits your style guidelines)\n - amount # Example: 1... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24291/"
] |
225,843 | <p>I have a menu div that I want to slide down so it's always visible, but I want it to be positioned under my title div. I don't want it to move until the top of the menu hits the top of the screen and then stay in place. Basically I want a sliding menu with a maximum height it can slide to.</p>
| [
{
"answer_id": 225935,
"author": "jaacob",
"author_id": 28109,
"author_profile": "https://Stackoverflow.com/users/28109",
"pm_score": 4,
"selected": true,
"text": "///// CONFIGURATION VARIABLES:\n\nvar name = \"#rightsidebar\";\nvar menu_top_limit = 241;\nvar menu_top... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30377/"
] |
225,845 | <p>I'm trying to get a kernel module to load at boot.</p>
<p>If I run <code>insmod /path/to/module.ko</code>, it works fine. But this has to be repeated every time I reboot.</p>
<p>If I run <code>modprobe /path/to/module.ko</code>, it can't find the module.
I know modprobe uses a configuration file, but I can't get i... | [
{
"answer_id": 225971,
"author": "Jaime Soriano",
"author_id": 28855,
"author_profile": "https://Stackoverflow.com/users/28855",
"pm_score": 7,
"selected": true,
"text": "sudo ln -s /path/to/module.ko /lib/modules/`uname -r`\nsudo depmod -a\nsudo modprobe module\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225845",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13652/"
] |
225,878 | <p>If I have a usercontrol (in Silverlight) that I've written, that uses XAML to define it's appearance, how can I make a customised version of it?</p>
<p>i.e. I have MyControl.xaml & MyControl.xaml.cs</p>
<p>What do I need to do if I want a "SpecialisedControl" child class? I assume I just make a new code file, ... | [
{
"answer_id": 3110415,
"author": "Chris S",
"author_id": 21574,
"author_profile": "https://Stackoverflow.com/users/21574",
"pm_score": 3,
"selected": false,
"text": "public class MyBase : UserControl\n{\n}\n\npublic class FirstUserControl : MyBase\n{\n...\n}\n <local:MyBase \n x:Clas... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/986/"
] |
225,881 | <p>Can anyone provide a clear explanation / example of what these functions do, and when it's appropriate to use them?</p>
| [
{
"answer_id": 225907,
"author": "matt b",
"author_id": 4249,
"author_profile": "https://Stackoverflow.com/users/4249",
"pm_score": 6,
"selected": true,
"text": "CREATE TABLE order_items (\n product_no integer REFERENCES products ON DELETE RESTRICT,\n order_id integer REFERENCES orders O... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4196/"
] |
225,889 | <p>I am using Visual Assist X for C/C++ code in Visual Studio 2005 but I see that, sometime, when visual studio take focus, the processor is working too much and I cannot type code. If I am waiting somes seconds, it return the focus.</p>
| [
{
"answer_id": 226496,
"author": "jwfearn",
"author_id": 10559,
"author_profile": "https://Stackoverflow.com/users/10559",
"pm_score": 1,
"selected": false,
"text": "VAssistX C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225889",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11664/"
] |
225,895 | <p>I'm trying to track down an issue in our system and the following code worries me. The following occurs in our doPost() method in the primary servlet (names have been changed to protect the guilty):</p>
<pre><code>...
if(Single.getInstance().firstTime()){
doPreperations();
}
normalResponse();
...
</code></pre>
... | [
{
"answer_id": 225913,
"author": "oxbow_lakes",
"author_id": 16853,
"author_profile": "https://Stackoverflow.com/users/16853",
"pm_score": 1,
"selected": false,
"text": "instance firstTime"
},
{
"answer_id": 225914,
"author": "Chris Marasti-Georg",
"author_id": 96,
"a... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30381/"
] |
225,915 | <p>I have a case where I have a bunch of text boxes and radio buttons on a screen all built dynamically with various DIVs. There are onblur routines for all of the text boxes to validate entry, but depending on the radio button selection, the text box entry could be invalid when it was valid originally. I can't use o... | [
{
"answer_id": 226284,
"author": "nickf",
"author_id": 9021,
"author_profile": "https://Stackoverflow.com/users/9021",
"pm_score": 1,
"selected": false,
"text": "eval(\"tagCreditOrDebit = document.forms[0].\" + tagFactor.name.substr(0,3) + \"CreditOrDebitC\");\n tagCreditOrDebit = docume... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225915",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
225,916 | <p>Following on from this question <a href="https://stackoverflow.com/questions/150814/how-to-handle-an-activex-event-in-javascript">here</a></p>
<p>I have a custom ActiveX control which raises an event "BeforePageValidated" which has a parameter "args" which is an object which contains a boolean. The purpose of this ... | [
{
"answer_id": 1291903,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "args [ComVisible(true)]\n[GuidAttribute(\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\")]\npublic class args\n{\n\n}\n"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/225916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
225,929 | <p>I can see people asking all the time whether multiple inheritance should be included into the next version of C# or Java. C++ folks, who are fortunate enough to have this ability, say that this is like giving someone a rope to eventually hang themselves. </p>
<p>What’s the matter with multiple inheritance? Are ther... | [
{
"answer_id": 226056,
"author": "benjismith",
"author_id": 22979,
"author_profile": "https://Stackoverflow.com/users/22979",
"pm_score": 8,
"selected": true,
"text": "A B doSomething C A B doSomething C c = new C();\nc.doSomething();\n class A:\n at offset 0 ... \"abc\" ... 4 byte in... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225929",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22088/"
] |
225,937 | <p>There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use one way over the other.</p>
<p>First type:</p>
<pre><code>List<string> someList = <some way to init>
foreach(string s in someList) {
<process the string>
}
</code></pre>
<p>Othe... | [
{
"answer_id": 225952,
"author": "Joachim Kerschbaumer",
"author_id": 20227,
"author_profile": "https://Stackoverflow.com/users/20227",
"pm_score": 4,
"selected": false,
"text": "someList.ForEach() foreach foreach"
},
{
"answer_id": 225957,
"author": "Craig.Nicol",
"autho... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225937",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/450139/"
] |
225,953 | <p>Where can I find a list of all the C# Color constants and the associated R,G,B (Red, Green, Blue) values?</p>
<p>e.g.</p>
<p>Color.White == (255,255,255)</p>
<p>Color.Black == (0,0,0)</p>
<p>etc...</p>
| [
{
"answer_id": 225967,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 6,
"selected": true,
"text": "using System;\nusing System.Drawing;\nusing System.Reflection;\n\npublic class Test\n{\n static void Main()\n {\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1816/"
] |
225,956 | <p>My only problem is making them line up three-across and have equal spacing. Apparently, spans can not have width and divs (and spans with display:block) don't appear horizontally next to each other. Suggestions?</p>
<p><code><div style='width:30%; text-align:center; float:left; clear:both;'></code> Is what I ... | [
{
"answer_id": 225975,
"author": "jmcd",
"author_id": 2285,
"author_profile": "https://Stackoverflow.com/users/2285",
"pm_score": 7,
"selected": true,
"text": "float: left;"
},
{
"answer_id": 226005,
"author": "Jeremy B.",
"author_id": 28567,
"author_profile": "https:... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225956",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/572/"
] |
225,965 | <p>I have a form which takes both the user details and an image uploaded by them. I want to write the data to a user table and an image table but i am pretty sure that it cannot be done with just two separate insert statements. Any help would be much appreciated.</p>
| [
{
"answer_id": 228699,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "$rec = mysql_query(\"insert into userdet values(\"$id\",\"$username\",....)\");\nif($rec)\n mysql_query(\"insert into imag va... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
225,972 | <p>I've seen <a href="http://msdn.microsoft.com/en-us/library/7tas5c80.aspx" rel="nofollow noreferrer">How to: Host Controls in Windows Forms DataGridView Cells</a> which explains how to host a control for editing a cell in a DataGridView. But how can I host a control for displaying a cell?</p>
<p>I need to display a... | [
{
"answer_id": 486646,
"author": "Shalom Craimer",
"author_id": 54491,
"author_profile": "https://Stackoverflow.com/users/54491",
"pm_score": 2,
"selected": false,
"text": "DataGridViewCell DataGridViewTextBoxCell DataGridViewColumn DataGridViewTextBoxCell IDataGridViewEditingControl Pan... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225972",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15371/"
] |
225,984 | <p>I have a partial that renders a select box using the following method:</p>
<pre><code><%= collection_select 'type', 'id', @types, "id", "name",
{:prompt => true},
{:onchange =>
remote_function(
:loading => "Form.Element.disable('go_button')",
:url => '... | [
{
"answer_id": 486646,
"author": "Shalom Craimer",
"author_id": 54491,
"author_profile": "https://Stackoverflow.com/users/54491",
"pm_score": 2,
"selected": false,
"text": "DataGridViewCell DataGridViewTextBoxCell DataGridViewColumn DataGridViewTextBoxCell IDataGridViewEditingControl Pan... | 2008/10/22 | [
"https://Stackoverflow.com/questions/225984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1486/"
] |
226,002 | <p>Have you ever tried this before?</p>
<pre><code>static void Main(string[] args)
{
int x = 10;
x = x++;
Console.WriteLine(x);
}
</code></pre>
<p>Output: 10.</p>
<p>but for </p>
<pre><code>static void Main(string[] args)
{
int x = 10;
x++;
Console.WriteLine(x);
}
</code></pre>
<p>Output: 1... | [
{
"answer_id": 226008,
"author": "Brian R. Bondy",
"author_id": 3153,
"author_profile": "https://Stackoverflow.com/users/3153",
"pm_score": 7,
"selected": true,
"text": "static void Main(string[] args)\n{\n int x = 10;\n x = x++;\n Console.WriteLine(x);\n}\n static int plusplus(... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226002",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14118/"
] |
226,042 | <p>As part of our build process we run a database update script as we deploy code to 4 different environments. Further, since the same query will get added to until we drop a release into production it <em>has</em> to be able to run multiple times on a given database. Like this:</p>
<pre><code>IF NOT EXISTS (SELECT *... | [
{
"answer_id": 226054,
"author": "bdukes",
"author_id": 2688,
"author_profile": "https://Stackoverflow.com/users/2688",
"pm_score": 9,
"selected": true,
"text": "IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = 'jim')\nBEGIN\nEXEC('CREATE SCHEMA jim')\nEND\n CREATE SCHEMA"
},
{
... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2156/"
] |
226,050 | <p>I am trying to use <code>ResourceBundle#getStringArray</code> to retrieve a <code>String[]</code> from a properties file. The description of this method in the documentation reads:</p>
<blockquote>
<p>Gets a string array for the given key from this resource bundle or one of its parents.</p>
</blockquote>
<p>Howe... | [
{
"answer_id": 226160,
"author": "Robert J. Walker",
"author_id": 4287,
"author_profile": "https://Stackoverflow.com/users/4287",
"pm_score": 6,
"selected": true,
"text": "Properties Object String String bundle.getStringArray(key) (String[]) bundle.getObject(key) String[] String split()"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226050",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9254/"
] |
226,052 | <p>What is the state generating Excel documents from a PHP application on a Linux server?</p>
<p>I am interesting in creating Office 97 (xls) Excel files. My limited research on the subject has turned up this <a href="http://pear.php.net/package/Spreadsheet_Excel_Writer" rel="nofollow noreferrer">Pear package</a>. I... | [
{
"answer_id": 226066,
"author": "Thomas Owens",
"author_id": 572,
"author_profile": "https://Stackoverflow.com/users/572",
"pm_score": 2,
"selected": false,
"text": "header(\"Content-Type: application/vnd.ms-excel\");\nheader(\"Expires: 0\");\nheader(\"Cache-Control: must-revalidate, po... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13850/"
] |
226,064 | <p>How do I load a true color image into a CImageList?</p>
<p>Right now I have</p>
<pre><code>mImageList.Create(IDB_IMGLIST_BGTASK, 16, 1, RGB(255,0,255));
</code></pre>
<p>Where <code>IDB_IMGLIST_BGTASK</code> is a 64x16 True color image. The ClistCtrl I am using it in shows 16 bpp color. I don't see a Create ove... | [
{
"answer_id": 226104,
"author": "Nick",
"author_id": 1490,
"author_profile": "https://Stackoverflow.com/users/1490",
"pm_score": 4,
"selected": true,
"text": "CBitmap bm;\nbm.LoadBitmap(IDB_IMGLIST_BGTASK);\nmImageList.Create(16, 16, ILC_COLOR32 | ILC_MASK, 4, 4);\nmImageList.Add(&bm, R... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1490/"
] |
226,065 | <p>I have a Coupon table. A Coupon can be applicable to certain items only or to a whole category of items.</p>
<p>For example: a 5$ coupon for a Pizza 12" <strong>AND</strong> (1L Pepsi <strong>OR</strong> French fries)</p>
<p>The best I could come up with is to make a CouponMenuItems table containing a coupon_id an... | [
{
"answer_id": 226121,
"author": "cfeduke",
"author_id": 5645,
"author_profile": "https://Stackoverflow.com/users/5645",
"pm_score": 1,
"selected": false,
"text": "Coupon\n CouponId\n Name\n ...\n\nItem\n ItemId\n Name\n ...\n\nGroup\n GroupId\n\nGroupMembership\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226065",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24291/"
] |
226,071 | <p>I have the HTML given below:</p>
<pre><code><ul id="thumbsPhotos">
<li src="/images/1alvaston-hall-relaxing-lg.jpg" onclick="updatePhoto (this.title)"><img src="/images/1alvaston-hall-relaxing-sl.jpg" width="56" height="56"></li>
<li onclick="updatePhoto(this.title)" src="">... | [
{
"answer_id": 226099,
"author": "Chris Marasti-Georg",
"author_id": 96,
"author_profile": "https://Stackoverflow.com/users/96",
"pm_score": 2,
"selected": false,
"text": "$(document).ready(function() {\n $(\"li[src], li[src='']\").each(function() {\n var li = $(this);\n ... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30394/"
] |
226,088 | <p>My predicament is fairly simple: This function gets the <code>id</code> of 'this' <code><li></code> element based on parent <code>id</code> of <code><ul></code>. It used to work fine but not any more, I will either need to have <code><ul></code> use <code>class</code>es instead of <code>id</code> ... | [
{
"answer_id": 226186,
"author": "Erlend Halvorsen",
"author_id": 1920,
"author_profile": "https://Stackoverflow.com/users/1920",
"pm_score": 2,
"selected": false,
"text": "ul#leftlist li.current a {\n color: rgb(96,176,255) !important;\n background-color:218,218,218) !important;\n}\n"... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226088",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/419730/"
] |
226,102 | <p>I realise this is not the ideal place to ask about this in terms of searchability, but I've got a page whose JavaScript code throws "Stack overflow in line 0" errors when I look at it in Internet Explorer.</p>
<p>The problem is quite clearly not in line 0, but somewhere in the list of stuff that I'm writing to the ... | [
{
"answer_id": 226113,
"author": "Mitchel Sellers",
"author_id": 13279,
"author_profile": "https://Stackoverflow.com/users/13279",
"pm_score": 5,
"selected": true,
"text": "\"Disable Script Debugging\" Visual Studio IE"
},
{
"answer_id": 226437,
"author": "glenatron",
"au... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226102",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15394/"
] |
226,105 | <p>I'm trying to read a single XML document from stream at a time using dom4j, process it, then proceed to the next document on the stream. Unfortunately, dom4j's SAXReader (using JAXP under the covers) keeps reading and chokes on the following document element.</p>
<p>Is there a way to get the SAXReader to stop read... | [
{
"answer_id": 231621,
"author": "Trenton",
"author_id": 2601671,
"author_profile": "https://Stackoverflow.com/users/2601671",
"pm_score": 0,
"selected": false,
"text": "<?xml version=\"1.0\"?>"
},
{
"answer_id": 245467,
"author": "Lawrence Dol",
"author_id": 8946,
"a... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7708/"
] |
226,108 | <p>I've been reading about "web services" here on SO, on Wikipedia, Google, etc., and I don't quite understand what they are. What is the plain English definition/description?</p>
<p>If I make a simple website using PHP that just, say, prints a random integer to the page... is this a "web service"? If not, why not?<... | [
{
"answer_id": 226128,
"author": "David Arno",
"author_id": 7122,
"author_profile": "https://Stackoverflow.com/users/7122",
"pm_score": 5,
"selected": false,
"text": "<RANDOM>some random number</RANDOM>\n <HEAD>...</HEAD> \n<BODY>some random number</BODY>\n"
},
{
"answer_id": 17... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22471/"
] |
226,127 | <p>I have a project with a number of different classes querying and modifying data in a common set of tables. I've set up a .dbml file which provides us with a DataContext class. My question is whether a single instance of the DataContext should be used by all objects, or whether multiple instances are safe to use. I'm... | [
{
"answer_id": 226260,
"author": "cllpse",
"author_id": 20946,
"author_profile": "https://Stackoverflow.com/users/20946",
"pm_score": 2,
"selected": false,
"text": "User Application"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14357/"
] |
226,131 | <p>Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is turning that into a phone number link. Is it possible to disable this behavior for a whole page or an element on a page?</p>
| [
{
"answer_id": 226229,
"author": "Diodeus - James MacFarlane",
"author_id": 12579,
"author_profile": "https://Stackoverflow.com/users/12579",
"pm_score": 1,
"selected": false,
"text": "0 = 0\n9 = 9\n"
},
{
"answer_id": 226247,
"author": "Community",
"author_id": -... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226131",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10947/"
] |
226,132 | <p>What are the differences between a wiki and a CMS? Is there any?</p>
| [
{
"answer_id": 10086896,
"author": "Nimesh",
"author_id": 826618,
"author_profile": "https://Stackoverflow.com/users/826618",
"pm_score": 0,
"selected": false,
"text": "The New York Times TechCrunch WordPress"
}
] | 2008/10/22 | [
"https://Stackoverflow.com/questions/226132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15884/"
] |
226,144 | <p>We all know that you can overload a function according to the parameters:</p>
<pre><code>int mul(int i, int j) { return i*j; }
std::string mul(char c, int n) { return std::string(n, c); }
</code></pre>
<p>Can you overload a function according to the return value? Define a function that returns different things ac... | [
{
"answer_id": 226173,
"author": "Zebra North",
"author_id": 17440,
"author_profile": "https://Stackoverflow.com/users/17440",
"pm_score": 4,
"selected": false,
"text": "mul(1, 2);"
},
{
"answer_id": 226192,
"author": "warren",
"author_id": 4418,
"author_profile": "ht... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226144",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3848/"
] |
226,172 | <p>We (apparently) had poorly executed of our Solaris MySQL database engine last night. At least some of the InnoDB tables are corrupted, with timestamp out of order errors in the transaction log, and a specific error about the index being corrupted.</p>
<p>We know about the tools available for MyISAM table repairs, b... | [
{
"answer_id": 3322930,
"author": "Sandro Frattura",
"author_id": 400741,
"author_profile": "https://Stackoverflow.com/users/400741",
"pm_score": 5,
"selected": false,
"text": "create table <new table> like <old table>;\ninsert <new table> select * from <old table>;\ntruncate table <old... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226172",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29975/"
] |
226,206 | <p>I would actually love to have an AlternatingItemTemplate on a GridView, but all it offers is an AlternatingItemStyle. In my grid, each two column row (in a table layout), has an image in the first column, and a description in the second column. I would like to have the positioning of the image and description alte... | [
{
"answer_id": 226358,
"author": "cllpse",
"author_id": 20946,
"author_profile": "https://Stackoverflow.com/users/20946",
"pm_score": 2,
"selected": false,
"text": "<asp:Repeater runat=\"server\" ID=\"Repeater1\" OnItemDataBound=\"Repeater1_ItemDataBound\" />\n public void Repeater1_Item... | 2008/10/22 | [
"https://Stackoverflow.com/questions/226206",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8741/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.