qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
309,506 | <p>I want to reveal a div with an input inside when you click a button, and set its focus.</p>
<p>If I use show(), it works, but if I use slideDown() <strong>the focus is lost after the animation completes</strong>. How can I prevent this from happening?</p>
<p>Sample code:</p>
<pre><code>$("document").ready(functio... | [
{
"answer_id": 309562,
"author": "James",
"author_id": 21677,
"author_profile": "https://Stackoverflow.com/users/21677",
"pm_score": 4,
"selected": true,
"text": "$(function(){\n $(\"#MyButton\").click(function(e){\n e.preventDefault();\n $(\".SlidingDiv\").slideDown(fun... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309506",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1842/"
] |
309,522 | <p>(This is related to <a href="https://stackoverflow.com/questions/85373/floor-a-date-in-sql-server">Floor a date in SQL server</a>.)</p>
<p>Does a deterministic expression exist to floor a DATETIME? When I use this as a computed column formula:</p>
<pre><code>DATEADD(dd, DATEDIFF(dd, 0, [datetime_column]), 0)
</cod... | [
{
"answer_id": 309559,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 1,
"selected": false,
"text": "CAST(FLOOR(CAST([datetime_column] as FLOAT)) AS DateTime)\n"
},
{
"answer_id": 309642,
"author": "James Cu... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18771/"
] |
309,533 | <p>I have a webservice @ <a href="http://recpushdata.cyndigo.com/Jobs.asmx" rel="nofollow noreferrer">http://recpushdata.cyndigo.com/Jobs.asmx</a> but I'm not able to access it though I am adding it as a WebReference properly.</p>
<p>Any Help would be great.</p>
| [
{
"answer_id": 309559,
"author": "Joel Coehoorn",
"author_id": 3043,
"author_profile": "https://Stackoverflow.com/users/3043",
"pm_score": 1,
"selected": false,
"text": "CAST(FLOOR(CAST([datetime_column] as FLOAT)) AS DateTime)\n"
},
{
"answer_id": 309642,
"author": "James Cu... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
309,539 | <p>I would like to generate a list of files within a directory. Some of the filenames contain Chinese characters.</p>
<p>eg: [试验].Test.txt</p>
<p>I am using the following code:</p>
<pre><code>require 'find'
dirs = ["TestDir"]
for dir in dirs
Find.find(dir) do |path|
if FileTest.directory?(path)
else
... | [
{
"answer_id": 309707,
"author": "rpattabi",
"author_id": 15139,
"author_profile": "https://Stackoverflow.com/users/15139",
"pm_score": 3,
"selected": true,
"text": "$KCODE = 'utf-8'\n"
},
{
"answer_id": 10933975,
"author": "David",
"author_id": 1442494,
"author_profi... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39731/"
] |
309,553 | <p>I commonly find myself extracting common behavior out of classes into helper/utility classes that contain nothing but a set of static methods. I've often wondered if I should be declaring these classes as abstract, since I can't really think of a valid reason to ever instantiate these? </p>
<p>What would the Pros... | [
{
"answer_id": 311474,
"author": "shsteimer",
"author_id": 292,
"author_profile": "https://Stackoverflow.com/users/292",
"pm_score": 0,
"selected": false,
"text": "import static Utilities.getSomeData;\n\npublic class Consumer {\n\n public void doSomething(){\n\n String data = ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/292/"
] |
309,565 | <p>I'm using the StAX event based API's to modify an XML stream. The stream represents an HTML document, complete with DTD declaration. I would like to copy this DTD declaration into the output document (written using an <code>XMLEventWriter</code>). When I ask the factory to disregard DTD's it will not download the DT... | [
{
"answer_id": 309643,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 3,
"selected": true,
"text": "class CustomResolver implements javax.xml.stream.XMLResolver {\n\n public Object resolveEntity(String publicID,\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309565",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4100/"
] |
309,574 | <p>I want my errors to float above, left-justified, the input field that doesn't validate. How can I do this?</p>
<p>If I can't, how can I turn the errors off? I still want the fields to validate (and highlight on error), but not for the actual error messages to display. I couldn't seem to find anything in the jQue... | [
{
"answer_id": 312102,
"author": "strager",
"author_id": 39992,
"author_profile": "https://Stackoverflow.com/users/39992",
"pm_score": 4,
"selected": false,
"text": "$(...).validate({\n errorPlacement: function(error, element) {\n error.insertBefore(element);\n }\n});\n labe... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309574",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32154/"
] |
309,581 | <p>What is the difference between a <code>const_iterator</code> and an <code>iterator</code> and where would you use one over the other?</p>
| [
{
"answer_id": 309589,
"author": "Dominic Rodger",
"author_id": 20972,
"author_profile": "https://Stackoverflow.com/users/20972",
"pm_score": 8,
"selected": true,
"text": "const_iterator iterator const const"
},
{
"answer_id": 309610,
"author": "jalf",
"author_id": 33213,... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18664/"
] |
309,604 | <p>I need to do the following for hundreds of files:
Append the name of the file (which may contain spaces) to the end of each line in the file.</p>
<p>It seems to me there should be some way to do this:</p>
<pre><code>sed -e 's/$/FILENAME/' *
</code></pre>
<p>where <code>FILENAME</code> represents the name of the c... | [
{
"answer_id": 309616,
"author": "Tyler McHenry",
"author_id": 39375,
"author_profile": "https://Stackoverflow.com/users/39375",
"pm_score": 2,
"selected": false,
"text": "for i in * \ndo\n sed -e \"s/\\$/$i/\" \"$i\" \ndone\n for i in * ; do sed -e \"s/\\$/$i/\" \"$i\" ; done\n TFILE=`... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1094969/"
] |
309,615 | <p>I'd like to establish an ssh tunnel over ssh to my mysql server.</p>
<p>Ideally I'd return a mysqli db pointer just like I was connecting directly.</p>
<p>I'm on a shared host that doesn't have the <a href="http://ca.php.net/ssh2" rel="noreferrer">SSH2</a> libraries but I might be able to get them installed locall... | [
{
"answer_id": 310932,
"author": "Brian C. Lane",
"author_id": 27461,
"author_profile": "https://Stackoverflow.com/users/27461",
"pm_score": 4,
"selected": false,
"text": "ssh -L 3306:localhost:3306 user@domain.com\n"
},
{
"answer_id": 472586,
"author": "Community",
"auth... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1430/"
] |
309,631 | <p>In what cases is it necessary to synchronize access to instance members?
I understand that access to static members of a class always needs to be synchronized- because they are shared across all object instances of the class.</p>
<p>My question is when would I be incorrect if I do not synchronize instance members?... | [
{
"answer_id": 309652,
"author": "bruno conde",
"author_id": 31136,
"author_profile": "https://Stackoverflow.com/users/31136",
"pm_score": 2,
"selected": false,
"text": "instanceVar volatile setInstanceVar() synchronized private volatile int instanceVar =0;\n\npublic synchronized setInst... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309631",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39732/"
] |
309,638 | <p>How can I prevent the pocket PC device from shutting down from my application when the power button pressed? I am using C#.</p>
| [
{
"answer_id": 311892,
"author": "Jérôme Laban",
"author_id": 26346,
"author_profile": "https://Stackoverflow.com/users/26346",
"pm_score": 0,
"selected": false,
"text": " [DllImport(\"coredll\")]\n private extern static IntPtr SetPowerRequirement(string pvDevice, int deviceState, ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309638",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
309,639 | <p>The following questions are about XML serialization/deserialization and schema validation for a .net library of types which are to be used for data exchange.</p>
<hr>
<p>First question, if I have a custom xml namespace say "<a href="http://mydomain/mynamespace" rel="nofollow noreferrer">http://mydomain/mynamespace... | [
{
"answer_id": 310150,
"author": "david valentine",
"author_id": 36627,
"author_profile": "https://Stackoverflow.com/users/36627",
"pm_score": 0,
"selected": false,
"text": "xsd /c /n:myNamespace.Schema.v2_0 myschema_v2_0.xsd\n"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/309639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21566/"
] |
309,651 | <p>I'm new to development on the iPhone. Just about every sample project (as well as the default project templates) have one or more delegates and controllers. Can someone give me a breakdown of what the delegates are responsible for vs. what the controllers are supposed to do?</p>
| [
{
"answer_id": 310250,
"author": "wisequark",
"author_id": 33159,
"author_profile": "https://Stackoverflow.com/users/33159",
"pm_score": 2,
"selected": false,
"text": "UIApplication"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/309651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/678/"
] |
309,668 | <p>Our web team has been asked to build some user interfaces in Sharepoint. The UI's would primarily be forms that would need to write to a SQL Server database.</p>
<p>Is ASP.NET the best way to do this? If so what's the best way to integrate the ASP.NET application into Sharepoint?</p>
| [
{
"answer_id": 309684,
"author": "Mauro",
"author_id": 2208,
"author_profile": "https://Stackoverflow.com/users/2208",
"pm_score": 3,
"selected": true,
"text": "1. Build web parts \n2. build user controls , and use smart part to display them.\n3. use infopath \n4. host the asp.net in an ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/67719/"
] |
309,674 | <p>I am looking for a good menu to use in an ASP.NET. I am currently using the asp menu. I need
it to work in IE 6,7,8, Firefox and Safari. I also need it to not add a lot of overhead to the page client-side. I need to be able to load it from the database.</p>
| [
{
"answer_id": 1010268,
"author": "CRice",
"author_id": 55693,
"author_profile": "https://Stackoverflow.com/users/55693",
"pm_score": 0,
"selected": false,
"text": " .HorizontalMenu_DynamicMenuStyle\n{\n font-family: Verdana;\n font-size: medium;\n background-color: #FCFCFC;\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5633/"
] |
309,675 | <p>I am creating an touch screen application using Swing and have a request to change one of buttons so that it will behave like a keyboard when the button is held down.<br>
(First of all, I am not sure that the touch screen will allow the user to "hold down" the button, but pretend that they can for now)</p>
<p>I was... | [
{
"answer_id": 37165865,
"author": "Mike Lima",
"author_id": 6320298,
"author_profile": "https://Stackoverflow.com/users/6320298",
"pm_score": 0,
"selected": false,
"text": "import java.awt.Font;\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\nimport java.awt.... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309675",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8517/"
] |
309,680 | <p>I have the following code that creates two objects (ProfileManager and EmployerManager) where the object EmployerManager is supposed to inherit from the object ProfileManager.
However, when I do alert(pm instanceof ProfileManager); it returns false.</p>
<pre><code>function ProfileFactory(profileType) {
switch(... | [
{
"answer_id": 311331,
"author": "Noah Goodrich",
"author_id": 20178,
"author_profile": "https://Stackoverflow.com/users/20178",
"pm_score": 2,
"selected": true,
"text": "function EmployerManager() {\n\n this.controller = 'eprofile.php';\n this.anchors = new Array('Industries', 'Em... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309680",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20178/"
] |
309,682 | <p>I'm writing a HTML form that's divided in fieldsets, and I need to get the form fields from a specific fiedset in a function.<br>
Currently it's like this: </p>
<pre><code>function conta(Fieldset){
var Inputs = Fieldset.getElementsByTagName("input");
var Selects = Fieldset.getElementsByTagName("select"... | [
{
"answer_id": 309691,
"author": "Ryan Eastabrook",
"author_id": 105,
"author_profile": "https://Stackoverflow.com/users/105",
"pm_score": 0,
"selected": false,
"text": "//$(\"input select textarea\").each(function() {\n$(\":input\").each(function() { //even better\n // do stuff here\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9835/"
] |
309,683 | <p>I have a page with a few fields and a runtime-generated image on it. The contents of this page are inside an UpdatePanel. There is a button to take the user to a secondary page, which has a button that calls javascript:history.go(-1) when clicked.</p>
<p>The problem is, the first page does a full request instead of... | [
{
"answer_id": 309691,
"author": "Ryan Eastabrook",
"author_id": 105,
"author_profile": "https://Stackoverflow.com/users/105",
"pm_score": 0,
"selected": false,
"text": "//$(\"input select textarea\").each(function() {\n$(\":input\").each(function() { //even better\n // do stuff here\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309683",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
309,706 | <p>So i'm not really sure why this is happening but I'm running through some DataRows where I have the control name, property, and value that I want to set. Everything works fine except when I set the TEXT property of a button. For some reason, the click event is called...</p>
<p>Here's some of the code I've got:</p>
... | [
{
"answer_id": 309766,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": true,
"text": "using System;\nusing System.Drawing;\nusing System.Reflection;\nusing System.Windows.Forms;\n\nclass Test\n{\n static ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21828/"
] |
309,713 | <p>I'm using a Flash TextField control to display some HTML content inside a Flash presentation to be shown on a large touch-screen kiosk. Unfortunately, if any image tag in the displayed HTML content points to a non-existent image, a dialogue is shown with the error message </p>
<pre><code>Error #2044: Unhandled IOEr... | [
{
"answer_id": 329881,
"author": "aaaidan",
"author_id": 26331,
"author_profile": "https://Stackoverflow.com/users/26331",
"pm_score": -1,
"selected": false,
"text": "stage.addEventListener(IOError.IO_ERROR, myErrorHandler);\n"
},
{
"answer_id": 917971,
"author": "Community",... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7526/"
] |
309,723 | <p>Is there a way to view the list of <em>recent documents</em> you've opened in Vim?</p>
<p>I realize I could view the cursor <em>jump list</em>, <code>:ju</code>, and then go to a cursor position in the list but this is not ideal because there will be multiple listings of the same document in the list.</p>
<p>Is ther... | [
{
"answer_id": 4633847,
"author": "Alex Bolotov",
"author_id": 66473,
"author_profile": "https://Stackoverflow.com/users/66473",
"pm_score": 9,
"selected": true,
"text": ":help old :ol[dfiles]\n '0 '1 '2 '9 viminfo :bro[wse] ol[dfiles][!]\n :oldfiles !"
},
{
"answer_id": 47565251... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16973/"
] |
309,734 | <p>I need to be able to take an arbitrary text input that may have a byte order marker (BOM) on it to mark its encoding, and output it as ASCII. We have some old tools that don't understand BOM's and I need to send them ASCII-only data.</p>
<p>Now, I just got done writing this code and I just can't quite believe the i... | [
{
"answer_id": 309791,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 2,
"selected": true,
"text": "Encoding.Unicode.GetString int start = (i_fileBytes[0] == 0xff && i_fileBytes[1] == 0xfe) ? 2 : 0;\nstring text = Encodin... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14582/"
] |
309,737 | <p>I'm using the Apache Commons EqualsBuilder to build the equals method for a non-static Java inner class. For example:</p>
<pre><code>import org.apache.commons.lang.builder.EqualsBuilder;
public class Foo {
public class Bar {
private Bar() {}
public Foo getMyFoo() {
return Foo.this
... | [
{
"answer_id": 309891,
"author": "p3t0r",
"author_id": 16685,
"author_profile": "https://Stackoverflow.com/users/16685",
"pm_score": 2,
"selected": false,
"text": "public class Foo {\n\n public Bar createBar(){\n Bar bar = new Bar(this)\n return bar;\n }\n}\n\npublic class Bar {\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/390636/"
] |
309,740 | <p>I read about this ages ago but never tried it now I can't remember if this is possible or not. Is it possible to extend a class from two parents on php5 e.g.</p>
<p>class_d extends class_c and class_b</p>
<p>moreover can you do this if class_c and class_b are themselves extended from class_a ... so you get somethi... | [
{
"answer_id": 309891,
"author": "p3t0r",
"author_id": 16685,
"author_profile": "https://Stackoverflow.com/users/16685",
"pm_score": 2,
"selected": false,
"text": "public class Foo {\n\n public Bar createBar(){\n Bar bar = new Bar(this)\n return bar;\n }\n}\n\npublic class Bar {\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309740",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
309,744 | <p>Is there a basic php method that accepts a URL and retrieves the date last modified from the header? </p>
<p>It would seem like something php can do, but I'm not sure which object to check.</p>
<p>Thanks</p>
| [
{
"answer_id": 309770,
"author": "Greg",
"author_id": 24181,
"author_profile": "https://Stackoverflow.com/users/24181",
"pm_score": 3,
"selected": false,
"text": "$c = curl_init('http://...');\ncurl_setopt($c, CURLOPT_HEADER, 1); // Include the header\ncurl_setopt($c, CURLOPT_RETURNTRANS... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26577/"
] |
309,745 | <p>How do I check to see if a variable is a number, or contains a number, in UNIX shell?</p>
| [
{
"answer_id": 309789,
"author": "Piotr Lesnicki",
"author_id": 38796,
"author_profile": "https://Stackoverflow.com/users/38796",
"pm_score": 4,
"selected": false,
"text": "test if [ $var -eq $var 2> /dev/null ]; then ...\n"
},
{
"answer_id": 309804,
"author": "Adam Rosenfiel... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309745",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
309,769 | <p>What's the most common way to deal with a series of block elements that need to be on a line (if javascript needs to be able to modify their widths, for example)? What are the pros and cons to applying float:left to each of them vs. using positioning to place them?</p>
| [
{
"answer_id": 310435,
"author": "Darko",
"author_id": 32943,
"author_profile": "https://Stackoverflow.com/users/32943",
"pm_score": 3,
"selected": true,
"text": "<div id=\"con\">\n <div class=\"float\"></div>\n <div class=\"float\"></div>\n</div>\n #con { background:#f0f; }\n.floa... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32771/"
] |
309,775 | <p>I want to design a class that will parse a string into tokens that are meaningful to my application.</p>
<p>How do I design it?</p>
<ol>
<li>Provide a ctor that accepts a string, provide a Parse method and provide methods (let's call them "minor") that return individual tokens, count of tokens etc. OR</li>
<li>Pro... | [
{
"answer_id": 309806,
"author": "Garry Shutler",
"author_id": 6369,
"author_profile": "https://Stackoverflow.com/users/6369",
"pm_score": 2,
"selected": false,
"text": "ValueObject values = parsingClass.Parse(theString);\n"
},
{
"answer_id": 309937,
"author": "Jeromy Irvine"... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
309,786 | <p>How do I force Postgres to use an index when it would otherwise insist on doing a sequential scan?</p>
| [
{
"answer_id": 309814,
"author": "Patryk Kordylewski",
"author_id": 30927,
"author_profile": "https://Stackoverflow.com/users/30927",
"pm_score": 7,
"selected": false,
"text": "enable_seqscan enable_indexscan enable_ enable_"
},
{
"answer_id": 13409114,
"author": "Niraj Bhawn... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/91385/"
] |
309,790 | <p>In Java, what is the difference between the twin methods?</p>
<pre><code>public void methodA() throws AnException {
//do something
throw new AnException();
}
public void methodA() {
//do the same thing
throw new AnException();
}
</code></pre>
<p>I have a intuition that it has something to do with ... | [
{
"answer_id": 671252,
"author": "Yuval",
"author_id": 2819,
"author_profile": "https://Stackoverflow.com/users/2819",
"pm_score": 2,
"selected": false,
"text": "public abstract class AbstractBox {\n public abstract void addItem(Item newItem);\n public abstract void removeItem(Item old... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8203/"
] |
309,802 | <p>Is there any way to set an event handler without doing it manually in the classname.designer.cs file other than double clicking the UI element?</p>
| [
{
"answer_id": 309807,
"author": "Kent Boogaart",
"author_id": 5380,
"author_profile": "https://Stackoverflow.com/users/5380",
"pm_score": 2,
"selected": false,
"text": "myButton.Click += myHandler;\n myButton.Click += delegate\n{\n MessageBox.Show(\"Clicked!\");\n};\n"
},
{
"... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2184/"
] |
309,815 | <p>How do you control the column width in a gridview control in ASP.NET 2.0?</p>
| [
{
"answer_id": 309863,
"author": "DCNYAM",
"author_id": 30419,
"author_profile": "https://Stackoverflow.com/users/30419",
"pm_score": 2,
"selected": false,
"text": "<asp:BoundField HeaderText=\"Name\" DataField=\"LastName\">\n <HeaderStyle Width=\"20em\" />\n</asp:BoundField>\n"
},
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
309,818 | <p>I'm try to extract info from a MySQL DB into a MS SQL DB. The DB is a mess and the developer is no longer available.</p>
<p>All dates are in char fields, and I use </p>
<pre><code>SELECT concat( mid(DueDate, 7, 4), mid(DueDate, 4, 2), mid(DueDate, 1, 2)) as DueDate FROM TableName
</code></pre>
<p>to get the date ... | [
{
"answer_id": 309823,
"author": "Dónal",
"author_id": 2648,
"author_profile": "https://Stackoverflow.com/users/2648",
"pm_score": 5,
"selected": true,
"text": "mysql> SELECT STR_TO_DATE('04/31/2004', '%m/%d/%Y');\n -> '2004-04-31'\n WHERE STR_TO_DATE('04/31/2009', '%m/%d/%Y') > N... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2385/"
] |
309,819 | <p>Has there been any attempt and creating a formalized method for organizing CSS code? Before I go and make up my own strategy for keeping things readable, I'm wondering what else is out there. Google hasn't been very helpful, as I'm not entirely sure what terms to search for.</p>
<p>I'm thinking more along the lines... | [
{
"answer_id": 310072,
"author": "cowgod",
"author_id": 6406,
"author_profile": "https://Stackoverflow.com/users/6406",
"pm_score": 2,
"selected": false,
"text": "#page_container html body ul #slogan #red_bold body { background-color: #fff; color: #999; font-family: verdana, arial, helve... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309819",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5291/"
] |
309,834 | <p>I have a read query that I execute within a transaction so that I can specify the isolation level. Once the query is complete, what should I do?</p>
<ul>
<li>Commit the transaction </li>
<li>Rollback the transaction</li>
<li>Do nothing (which will cause the transaction to be rolled back at the end of the using blo... | [
{
"answer_id": 309848,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": -1,
"selected": false,
"text": "SELECT * FROM SomeTable WITH (NOLOCK)\n"
},
{
"answer_id": 309849,
"author": "Joel Coehoorn",
"author_... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8739/"
] |
309,880 | <p>I'm trying to create a custom transition, to serve as a replacement for a default transition you would get here, for example:</p>
<pre><code>[self.navigationController pushViewController:someController animated:YES];
</code></pre>
<p>I have prepared an OpenGL-based view that performs an effect on some static textu... | [
{
"answer_id": 312112,
"author": "Jeffrey Forbes",
"author_id": 28019,
"author_profile": "https://Stackoverflow.com/users/28019",
"pm_score": 3,
"selected": true,
"text": "UIGraphicsBeginImageContext(self.view.frame.size);\n[[self.view layer] renderInContext:UIGraphicsGetCurrentContext()... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309880",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9804/"
] |
309,884 | <p>The code golf series seem to be fairly popular. I ran across some code that converts a number to its word representation. Some examples would be (powers of 2 for programming fun):</p>
<ul>
<li>2 -> Two</li>
<li>1024 -> One Thousand Twenty Four</li>
<li>1048576 -> One Million Forty Eight Thousand Five Hundred Seve... | [
{
"answer_id": 309962,
"author": "gpojd",
"author_id": 28071,
"author_profile": "https://Stackoverflow.com/users/28071",
"pm_score": 5,
"selected": false,
"text": "perl -MNumber::Spell -e 'print spell_number(2);'\n"
},
{
"answer_id": 309982,
"author": "Robert Gamble",
"au... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2470/"
] |
309,892 | <p>I ran into an interesting behavior recently. It seems that if I override .equals() to take a parameter other than Object, it doesn't get called. Can anyone explain to me why this is happening? It seems to violate my understanding of polymorphism in OOP, but maybe I'm missing something.</p>
<p>Here's much simpler... | [
{
"answer_id": 309974,
"author": "InverseFalcon",
"author_id": 39455,
"author_profile": "https://Stackoverflow.com/users/39455",
"pm_score": -1,
"selected": false,
"text": "contains() List List<MyClass> List contains() Object equals() MyClass"
},
{
"answer_id": 310165,
"autho... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309892",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18511/"
] |
309,921 | <p>Wondering how to open many new windows with Javascript. I have found plenty of places on the internet that show you how to open a new browser window with Javascript, but I want to open a new UNIQUE window. For Example.</p>
<p>I have two links on a page. the user clicks on both links and they are both opened in t... | [
{
"answer_id": 309926,
"author": "Gavin Miller",
"author_id": 33226,
"author_profile": "https://Stackoverflow.com/users/33226",
"pm_score": 3,
"selected": true,
"text": "window.open('page.html','WindowTitle','width=400,height=200')\n"
},
{
"answer_id": 310129,
"author": "ibst... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309921",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7644/"
] |
309,922 | <p>Is it only to allow logical grouping?</p>
| [
{
"answer_id": 310030,
"author": "Roddy",
"author_id": 1737,
"author_profile": "https://Stackoverflow.com/users/1737",
"pm_score": 0,
"selected": false,
"text": "PROPERTY(int, MyVal);\n private:\n int fMyVal;\npublic:\n void setMyVal(const int f) { fMyVal = f; };\n int getMyVal() { re... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37952/"
] |
309,930 | <p>I've got a database with three tables: Books (with book details, PK is CopyID), Keywords (list of keywords, PK is ID) and KeywordsLink which is the many-many link table between Books and Keywords with the fields ID, BookID and KeywordID.</p>
<p>I'm trying to make an advanced search form in my app where you can sear... | [
{
"answer_id": 309942,
"author": "Paul Tomblin",
"author_id": 3333,
"author_profile": "https://Stackoverflow.com/users/3333",
"pm_score": 1,
"selected": false,
"text": "SELECT * FROM books WHERE title LIKE'%Joel%' OR bookid IN \n (SELECT bookid FROM keywordslink WHERE keywordid I... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912/"
] |
309,939 | <p>I have a class library with all my database logic. My DAL/BLL. </p>
<p>I have a few web projects which will use the same database and classes, so I thought it was a good idea to abstract the data layer into its own project.</p>
<p>However, when it comes to adding functionality to classes for certain projects I w... | [
{
"answer_id": 383654,
"author": "user47460",
"author_id": 47460,
"author_profile": "https://Stackoverflow.com/users/47460",
"pm_score": 0,
"selected": false,
"text": "Northind.DAL (prj)\n-NorthindDataContext (EntityNamespace set to \"Northwind.BLL\")\n--Product() (Entity, partial class ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26931/"
] |
309,943 | <p>Need to an expression that returns only things with an "I" followed by either a "J" or a "V" (No Quotes) and then a minimum of 1 number up to 3 numbers.</p>
<p>I J### <br />
I V### <br />
I J## <br />
I V## <br />
I J# <br />
I v# <br /></p>
| [
{
"answer_id": 309952,
"author": "chakrit",
"author_id": 3055,
"author_profile": "https://Stackoverflow.com/users/3055",
"pm_score": 3,
"selected": true,
"text": "I(J|V)[0-9]{1,3}\n I (J|V)[0-9]{1,3}\n"
},
{
"answer_id": 309955,
"author": "Vinko Vrsalovic",
"author_id": 5... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309943",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/38349/"
] |
309,945 | <p>For some reasons, I would like to do an explicit quoting of a string value (becoming a part of constructed SQL query) instead of waiting for implicit quotation performed by <code>cursor.execute</code> method on contents of its second parameter.</p>
<p>By "implicit quotation" I mean:</p>
<pre><code>value = "Unsafe ... | [
{
"answer_id": 310011,
"author": "davidavr",
"author_id": 8247,
"author_profile": "https://Stackoverflow.com/users/8247",
"pm_score": 0,
"selected": false,
"text": "connection literal cursor.execute"
},
{
"answer_id": 310078,
"author": "Richard Levasseur",
"author_id": 36... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/26141/"
] |
309,953 | <p>Is it possible to catch an error when using JSONP with jQuery? I've tried both the $.getJSON and $.ajax methods but neither will catch the 404 error I'm testing. Here is what I've tried (keep in mind that these all work successfully, but I want to handle the case when it fails):</p>
<pre><code>jQuery.ajax({
typ... | [
{
"answer_id": 2085814,
"author": "Fhansen",
"author_id": 253158,
"author_profile": "https://Stackoverflow.com/users/253158",
"pm_score": 2,
"selected": false,
"text": "jQuery(document).ajaxError(function(event, request, settings){\n alert(\"Error\");\n});\n"
},
{
"answer_id": ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309953",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12367/"
] |
309,979 | <p>I have a LinkButton that has to postback to perform some logic.</p>
<p>Once it is finished, instead of loading the page back up in the browser, I want to leave it alone and pop open a new window.</p>
<p>So far, the best idea I've had is to put the LinkButton in an UpdatePanel, and have it render some JavaScript ou... | [
{
"answer_id": 310231,
"author": "azamsharp",
"author_id": 3797,
"author_profile": "https://Stackoverflow.com/users/3797",
"pm_score": 2,
"selected": false,
"text": "protected void Button1_Click(object sender, EventArgs e)\n\n{\n\n// Do some server side work\n\nstring script = \"window.o... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309979",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1965/"
] |
309,991 | <p>I have a just one table mapped in a datacontext. Here's the property and attribute on the column of interest:</p>
<pre><code>[Column(Storage="_CustomerNumber", DbType="VarChar(25)")]
public string CustomerNumber
{
</code></pre>
<p>This column is, in fact, a varchar(25) and has an index.</p>
<p>I've got some simp... | [
{
"answer_id": 310024,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 0,
"selected": false,
"text": "List<IQueryable<Customer>> myQueries = \n myList.Select(s => myDC.Customers.Where(c => c.CustomerNumber == s)).ToList();\nI... | 2008/11/21 | [
"https://Stackoverflow.com/questions/309991",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8155/"
] |
310,010 | <p>There are (at least) two ways that technical debts make their way into projects. The first is by conscious decision. Some problems just are not worth tackling up front, so they are consciously allowed to accumulate as technical debt. The second is by ignorance. The people working on the project don't know or don't r... | [
{
"answer_id": 310076,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 3,
"selected": false,
"text": "alert('hello there!')"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/310010",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17834/"
] |
310,017 | <p>I see two types of examples in various places. One uses form fields like</p>
<blockquote>
<p>curl -X PUT -d "phone=123.456.7890" "<a href="http://127.0.0.1/services/rest/user/123" rel="nofollow noreferrer">http://127.0.0.1/services/rest/user/123</a>"</p>
</blockquote>
<p>and the other uses an XML content like (s... | [
{
"answer_id": 310172,
"author": "Kornel",
"author_id": 27009,
"author_profile": "https://Stackoverflow.com/users/27009",
"pm_score": 0,
"selected": false,
"text": "<phone type=\"work, mobile\"><num>555-555</num><ext>123</ext></phone>\n phone=555-555&phone-ext=123&phone-type=work&phone-t... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310017",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39784/"
] |
310,018 | <p>Is there any GUI-based tools to assist you with writing and maintaining the configuration file? Any code tools to codegen the config file? What are the best ways to make this a little bit easier? Are most people just using Castle ActiveRecord now?</p>
| [
{
"answer_id": 310221,
"author": "Erik Öjebo",
"author_id": 276,
"author_profile": "https://Stackoverflow.com/users/276",
"pm_score": 3,
"selected": true,
"text": "public CustomerMap : ClassMap<Customer>\n{\n public CustomerMap()\n {\n Id(x => x.ID);\n Map(x => x.Name);\n Map(... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310018",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36590/"
] |
310,031 | <p>I am using Borland Builder C++ 2009. I want to add a button to a form that allows the user to open a file in Excel that I specify. I can't think of how to do this. I know how to link with other code and executables -- is there a Microsoft Excel executable that I could use? How could I specify the file then? Any hint... | [
{
"answer_id": 310598,
"author": "Shishiree",
"author_id": 23970,
"author_profile": "https://Stackoverflow.com/users/23970",
"pm_score": 2,
"selected": false,
"text": "ShellExecute(NULL, \"open\" ,\"Excel.exe\", \"C:\\\\Documents and Settings\\\\Lab1\\\\My Documents\\\\Waypoint Tool.xls\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23970/"
] |
310,032 | <p>When printing a single character in a C program, must I use "%1s" in the format string? Can I use something like "%c"?</p>
| [
{
"answer_id": 310040,
"author": "Evan Teran",
"author_id": 13430,
"author_profile": "https://Stackoverflow.com/users/13430",
"pm_score": 7,
"selected": false,
"text": "%c printf(\"%c\", 'h');\n putchar putc #include <stdio.h>\n\nint fputc(int c, FILE *stream);\nint putc(int c, FILE *str... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37952/"
] |
310,035 | <p>Is tilde a legitimate character in an XML SOAP message? I get a <code>SAXParseException:Content not allowed in prolog</code>. I included most of the SOAP message just in case I'm barking up the wrong tree.</p>
<pre><code>POST /... HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, applica... | [
{
"answer_id": 310135,
"author": "Tim Pietzcker",
"author_id": 20670,
"author_profile": "https://Stackoverflow.com/users/20670",
"pm_score": 2,
"selected": false,
"text": "codecs.open(filename, \"UTF-8\") open(filename)"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/310035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39787/"
] |
310,036 | <p>Evidently hash keys are compared in a case-sensitive manner.</p>
<pre><code>$ perl -e '%hash = ( FOO => 1 ); printf "%s\n", ( exists $hash{foo} ) ? "Yes" : "No";'
No
$ perl -e '%hash = ( FOO => 1 ); printf "%s\n", ( exists $hash{FOO} ) ? "Yes" : "No";'
Yes
</code></pre>
<p>Is there a setting to change that ... | [
{
"answer_id": 2886996,
"author": "amphetamachine",
"author_id": 237955,
"author_profile": "https://Stackoverflow.com/users/237955",
"pm_score": 3,
"selected": false,
"text": "my %hash = (FOO => 1);\nmy $key = 'fOo'; # or 'foo' for that matter\n\nmy %lookup = map {(lc $_, $hash{$_})} key... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310036",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39153/"
] |
310,058 | <p><strong>Problem Statement:</strong>
I would like to create an offline database to lookup prices/info on the n most useful books to sell in the United States (where n is probably 3 million or so). </p>
<p><strong>Question:</strong>
So, my question is (and I am open to other approaches here as well), I am trying to f... | [
{
"answer_id": 364339,
"author": "alexandrul",
"author_id": 19756,
"author_profile": "https://Stackoverflow.com/users/19756",
"pm_score": 1,
"selected": false,
"text": "Amazon E-Commerce Service"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/310058",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39758/"
] |
310,062 | <p>I can handle the process that file part, but before I go crazy, has someone built a simple wcf service & client (running under windows services or IIS) that I can use to upload a file, and download that file back? with the fewest lines of code? (C# or VB)</p>
<p>compression & encryption would be cool, but i... | [
{
"answer_id": 310955,
"author": "Mitch Baker",
"author_id": 37896,
"author_profile": "https://Stackoverflow.com/users/37896",
"pm_score": 3,
"selected": true,
"text": "[ServiceContract]\npublic interface IFileService\n{\n [OperationContract]\n byte[] ProcessFile(byte[] FileData);\n}\n... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310062",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3522/"
] |
310,090 | <p>For 2 child template files inheriting a block, the <code>{{ block.super }}</code> does not resolve</p>
<p>Python 2.5.2, Django 1.0, Windows XP SP3</p>
<p>Sample skeleton code for files involved:</p>
<ol>
<li><code>base.html</code></li>
<li><code>item_base.html</code></li>
<li><code>show_info_for_all_items.html</c... | [
{
"answer_id": 310123,
"author": "David Arcos",
"author_id": 30300,
"author_profile": "https://Stackoverflow.com/users/30300",
"pm_score": 4,
"selected": true,
"text": "{% include 'foo.html' %}\n"
},
{
"answer_id": 310819,
"author": "Matthew Marshall",
"author_id": 39856,... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310090",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11452/"
] |
310,094 | <p>In the tradition of <a href="https://stackoverflow.com/questions/309492/user-defined-functions-sql-server-2005-flagged-incorrectly-as-non-deterministic">this question</a> and in light of <a href="http://msdn.microsoft.com/en-us/library/ms178091(SQL.90).aspx" rel="nofollow noreferrer">the documentation</a>, how does ... | [
{
"answer_id": 310113,
"author": "Amy B",
"author_id": 8155,
"author_profile": "https://Stackoverflow.com/users/8155",
"pm_score": 3,
"selected": false,
"text": "CONVERT(datetime, '2008-01-01', 121)\n"
},
{
"answer_id": 310146,
"author": "P Daddy",
"author_id": 36388,
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18255/"
] |
310,105 | <p>I've been discussing a code style issue with a friend. We have a series of packages that implement an interface by returning a specific type of value via a named subroutine. For example:</p>
<pre><code>package Foo::Type::Bar;
sub generate_foo {
# about 5-100 lines of code
return stuff here;
}
</code></pre>
... | [
{
"answer_id": 310433,
"author": "Joe McMahon",
"author_id": 39791,
"author_profile": "https://Stackoverflow.com/users/39791",
"pm_score": 1,
"selected": false,
"text": "Foo::Type Type Foo::Bar->generate\nFoo::Baz->generate\n Bar Baz Type"
},
{
"answer_id": 310471,
"author": ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310105",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31100/"
] |
310,108 | <p>Following is some obviously-defective code for which I think the compiler should emit a diagnostic. But neither <code>gcc</code> nor <code>g++</code> does, even with all the warnings options I could think of: <code>-pedantic -Wall -Wextra</code></p>
<pre><code>#include <stdio.h>
short f(short x)
{
retur... | [
{
"answer_id": 310163,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 0,
"selected": false,
"text": "diy.cpp 14 Info 734: Loss of precision (arg. no. 1) (31 bits to 15 bits)\n"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/310108",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4323/"
] |
310,115 | <p>I am writing a script which is likely to be modified by users. Currently I am storing the configuration settings inside the script. It exists in the form of a hash-of-hashes.</p>
<p>I would like to guard against people accidentally using lowercase characters in the hash keys, because that will break my script.</p>
... | [
{
"answer_id": 310134,
"author": "Andy Lester",
"author_id": 8454,
"author_profile": "https://Stackoverflow.com/users/8454",
"pm_score": 4,
"selected": false,
"text": "for my $key ( grep { uc($_) ne $_ } keys %hash ) {\n my $newkey = uc $key;\n $hash{$newkey} = delete $hash{$key};\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39153/"
] |
310,117 | <p><strong>Caveat:</strong>
I try all the posibilities listed here: <a href="https://stackoverflow.com/questions/254002/how-can-i-ignore-everything-under-a-folder-in-mercurial">How can I ignore everything under a folder in Mercurial</a>.<br>
None works as I hope. </p>
<p>I want to ignore every thing under the folder ... | [
{
"answer_id": 310416,
"author": "Nathan Kitchen",
"author_id": 31000,
"author_profile": "https://Stackoverflow.com/users/31000",
"pm_score": 2,
"selected": false,
"text": "test srcProject TestManager syntax: regexp\n(?<!srcProject\\\\)test\\\\(?!TestManager)\n"
},
{
"answer_id":... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310117",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1356709/"
] |
310,121 | <p>In HTML in the td of a table you can break text by using <code><BR></code> between the words. This also works in the HeaderText of a TemplateItem but not the HeaderText of a BoundField. How do I break up the Header text of a BoundField.</p>
| [
{
"answer_id": 310145,
"author": "Aleris",
"author_id": 20417,
"author_profile": "https://Stackoverflow.com/users/20417",
"pm_score": 6,
"selected": true,
"text": "HtmlEncode = false BoundField <asp:BoundField DataField=\"SomeDataField\" \n HeaderText=\"SomeHeader<br />(OtherData... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4491/"
] |
310,126 | <p>I have a project with a post build event:</p>
<pre><code>copy $(ProjectDir)DbVerse\Lunaverse.DbVerse.*.exe $(TargetDir)
</code></pre>
<p>It works fine every time on my machine. I have a new developer who always gets the "exited with code 1" error. I had her run the same command in a DOS prompt, and it worked fi... | [
{
"answer_id": 2291724,
"author": "JanBorup",
"author_id": 276414,
"author_profile": "https://Stackoverflow.com/users/276414",
"pm_score": 6,
"selected": false,
"text": "copy $(TargetDir)$(TargetName).* $(SolutionDir)bin\n copy \"$(TargetDir)$(TargetName).*\" \"$(SolutionDir)bin\"\n"
}... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310126",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/29493/"
] |
310,160 | <p>I'm experimenting with WCF Services, and have come across a problem with passing Interfaces.</p>
<p>This works:</p>
<pre><code>[ServiceContract]
public interface IHomeService
{
[OperationContract]
string GetString();
}
</code></pre>
<p>but this doesn't:</p>
<pre><code>[ServiceContract]
public interface I... | [
{
"answer_id": 310179,
"author": "Brian Genisio",
"author_id": 36687,
"author_profile": "https://Stackoverflow.com/users/36687",
"pm_score": 5,
"selected": true,
"text": "[ServiceKnownType(typeof(ConcreteDeviceType)]\n"
},
{
"answer_id": 310291,
"author": "Frode Lillerud",
... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33431/"
] |
310,164 | <p>I'm trying to work my way through Ron Jeffries's Extreme Programming Adventures in C#. I am stuck, however, in Chapter 3 because the code does not, and <b>cannot</b>, do what the author says it does. </p>
<p>Basically, the text says that I should be able to write some text in a word-wrap enabled text box. If I then... | [
{
"answer_id": 310367,
"author": "EoRaptor013",
"author_id": 16851,
"author_profile": "https://Stackoverflow.com/users/16851",
"pm_score": 0,
"selected": false,
"text": "print(\"using System;\n private String[] lines;\nprivate int selectionStart;\nprivate int cursorPosition;\n\npublic Te... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16851/"
] |
310,167 | <p>At the XmlSerializer constructor line the below causes an InvalidOperationException which also complains about not having a default accesor implemented for the generic type.</p>
<pre><code>Queue<MyData> myDataQueue = new Queue<MyData>();
// Populate the queue here
XmlSerializer mySerializer =
new X... | [
{
"answer_id": 310171,
"author": "Marc Gravell",
"author_id": 23354,
"author_profile": "https://Stackoverflow.com/users/23354",
"pm_score": 5,
"selected": true,
"text": "List<T> Queue<T> IEnumerable<T> List<T> list = new List<T>(queue);\n"
},
{
"answer_id": 54520107,
"author"... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16260/"
] |
310,178 | <p>I need to design a SOAP api (my first one!). What are the best practices regarding errors returned to the caller.</p>
<p>Assuming an api as follow</p>
<pre><code>[WebMethod]
public List<someClass> GetList(String param1)
{
}
</code></pre>
<p>Should I</p>
<ul>
<li>Throw an exception. Let the SOAP infrastruct... | [
{
"answer_id": 310356,
"author": "Guy Starbuck",
"author_id": 2194,
"author_profile": "https://Stackoverflow.com/users/2194",
"pm_score": 2,
"selected": false,
"text": "public partial interface MyServiceContract\n{\n [System.ServiceModel.FaultContract(typeof(MyService.FaultContracts.E... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37955/"
] |
310,191 | <p>My log file is:</p>
<pre><code> Wed Nov 12 blah blah blah blah cat1
Wed Nov 12 blah blah blah blah
Wed Nov 12 blah blah blah blah
Wed Nov 12 blah blah blah blah cat2
more blah blah
even more blah blah
Wed Nov 12 blah blah blah blah cat3
Wed Nov 12 blah blah blah blah cat4
</code></pre>
<p>I want to... | [
{
"answer_id": 310266,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 1,
"selected": false,
"text": "'\\01' '\\02' c1=`echo -en '\\01'`\nc2=`echo -en '\\02'`\ncat logfile | tr '\\n' $c1 | sed \"s/$c1 /$c2/g\" | sed... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39529/"
] |
310,199 | <p>I am battling regular expressions now as I type. </p>
<p>I would like to determine a pattern for the following example file: <code>b410cv11_test.ext</code>. I want to be able to do a search for files that match the pattern of the example file aforementioned. Where do I start (so lost and confused) and what is the b... | [
{
"answer_id": 310924,
"author": "Brian C. Lane",
"author_id": 27461,
"author_profile": "https://Stackoverflow.com/users/27461",
"pm_score": 0,
"selected": false,
"text": "/^b\\d\\d\\dcv\\d\\d_test\\.ext$/\n"
},
{
"answer_id": 311033,
"author": "Jan Goyvaerts",
"author_id... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37804/"
] |
310,226 | <p>We currently have a heated internal debate as to whether the actual .NET assembly name should include the code's version number (e.g. CodeName02.exe or CompanyName.CodeName02.dll). Does anyone know of an authoritative source, like Microsoft, that provides guidance on this issue?</p>
| [
{
"answer_id": 310241,
"author": "csexton",
"author_id": 19839,
"author_profile": "https://Stackoverflow.com/users/19839",
"pm_score": 5,
"selected": true,
"text": "[assembly: AssemblyVersion(\"1.1.0.256\"]\n[assembly: AssemblyFileVersion(\"1.1.0.256\")]\n"
},
{
"answer_id": 3102... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21410/"
] |
310,245 | <p>I'm trying to get a stored procedure to work for a co-worker who is out sick (and thus can't be asked for guidance).</p>
<p>I have a SQL Server 2005 database that has this exact procedure, and I'm trying to make the scripts to convert a test database to match this dev database. My script has several lines like:</p... | [
{
"answer_id": 315330,
"author": "thursdaysgeek",
"author_id": 22523,
"author_profile": "https://Stackoverflow.com/users/22523",
"pm_score": 1,
"selected": true,
"text": "CAST(TRACER_YIELD AS FLOAT(10,3)),\n CAST(TRACER_YIELD AS FLOAT),\n"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/310245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22523/"
] |
310,247 | <p>Whenever I create a method signature in VS 2008 (C#), I type the two braces:</p>
<p>public void Something() {}</p>
<p>This leaves the cursor to the right of the closing brace. Then I have to use the arrow keys to reposition the cursor in between the braces. Is there a better way to do this without using the arro... | [
{
"answer_id": 310616,
"author": "CrashCodes",
"author_id": 16260,
"author_profile": "https://Stackoverflow.com/users/16260",
"pm_score": 3,
"selected": false,
"text": "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<CodeSnippets xmlns=\"http://schemas.microsoft.com/VisualStudio/2005/Code... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
310,269 | <p>I am unable to build my Web Application (not Web Site) in our build environement. We use DMAKE in our build environment (this unfortunately is non negotiable, therefore using MSBUILD is not permitted ) and when invoking the asp.net precompiler through</p>
<p>C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_comp... | [
{
"answer_id": 19512633,
"author": "user2537805",
"author_id": 2537805,
"author_profile": "https://Stackoverflow.com/users/2537805",
"pm_score": 0,
"selected": false,
"text": "aspnet_compiler -p D:\\Projects\\MGM\\mgm\\mgm -v / D:\\Projects\\MGM-deploy\\mgm_compiled\n"
},
{
"answ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310269",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39802/"
] |
310,271 | <p>I'm an end-user of one of my company's products. It is not very suitable for integration into Spring, however I am able to get a handle on the context and retrieve the required bean by name. However, I would still like to know if it was possible to inject a bean into this class, even though the class is not managed... | [
{
"answer_id": 312367,
"author": "Yonatan Maman",
"author_id": 20065,
"author_profile": "https://Stackoverflow.com/users/20065",
"pm_score": 2,
"selected": false,
"text": "class C implmenets ApplicationContextAware{\n public static ApplicationContex ac;\n void setApplicationContex... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8528/"
] |
310,276 | <p>I'm working on a programming language, and today I got the point where I could compile the factorial function(recursive), however due to the maximum size of an integer the largest I can get is factorial(12). What are some techniques for handling integers of an arbitrary maximum size. The language currently works b... | [
{
"answer_id": 310464,
"author": "Bill K",
"author_id": 12943,
"author_profile": "https://Stackoverflow.com/users/12943",
"pm_score": 2,
"selected": false,
"text": "class BigAssNumber {\n private byte[] value;\n\n // This constructor can handle numbers where overflows have occurred... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310276",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37181/"
] |
310,282 | <p>Recently, I found myself having to write up some concerns I have about race conditions in an application that is in development (not by me). This will likely be brought to the attention of stakeholders who are non-technical and with whom I do not have a direct line of communication, so my explanation needs to be in... | [
{
"answer_id": 35898639,
"author": "Michiel van der Blonk",
"author_id": 219041,
"author_profile": "https://Stackoverflow.com/users/219041",
"pm_score": 0,
"selected": false,
"text": "player 1 grabs a red block\nplayer 1 places red block - player 2 grabs an orange block\nplayer 1... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/28340/"
] |
310,286 | <p>The default behavior of NHibernate is the write all changes to objects to the database when Session.Flush() is called. It does this whether you want it to or not.</p>
<p>How do we prevent writing bad data to the database when we need to do things like validate business rules or input?</p>
<p>For instance .. </p>
... | [
{
"answer_id": 310891,
"author": "KevinT",
"author_id": 39561,
"author_profile": "https://Stackoverflow.com/users/39561",
"pm_score": 0,
"selected": false,
"text": "SessionScope session = new SessionScope(FlushAction.Never);\n"
},
{
"answer_id": 310906,
"author": "yfeldblum",... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/34133/"
] |
310,294 | <p>I'm using a regex that <a href="http://regexlib.com/REDetails.aspx?regexp_id=646" rel="nofollow noreferrer">strips the href tags out of an html doc</a> saved to a string. The following code is how I'm using it in my C# console app.</p>
<pre><code>Match m = Regex.Match(htmlSourceString, "href=[\\\"\\\'](http:\\/\\/|... | [
{
"answer_id": 314097,
"author": "Martin Brown",
"author_id": 20553,
"author_profile": "https://Stackoverflow.com/users/20553",
"pm_score": 3,
"selected": true,
"text": " Match m = Regex.Match(htmlSourceString, \"href=[\\\\\\\"\\\\\\'](http:\\\\/\\\\/|\\\\.\\\\/|\\\\/)?\\\\w+(\\\\.\\\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/557/"
] |
310,307 | <p>Earlier I asked this question <a href="https://stackoverflow.com/questions/309708/how-to-correctly-unit-test-my-dal">How to correctly unit test my DAL?</a>, one thing left unanswered for me is if to really test my DAL is to have a Test DB, then what is the role of mocking vs. a testing DB?</p>
<p>To add on this, an... | [
{
"answer_id": 310609,
"author": "miceuz",
"author_id": 24443,
"author_profile": "https://Stackoverflow.com/users/24443",
"pm_score": 1,
"selected": false,
"text": "List<Item> getAllItems()"
},
{
"answer_id": 12303003,
"author": "Darren Rich",
"author_id": 1652428,
"a... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32240/"
] |
310,333 | <p>What's wrong with the following snippet ?</p>
<pre><code>#include <tr1/functional>
#include <functional>
#include <iostream>
using namespace std::tr1::placeholders;
struct abc
{
typedef void result_type;
void hello(int)
{ std::cout << __PRETTY_FUNCTION__ << std::endl; }
... | [
{
"answer_id": 310364,
"author": "John Zwinck",
"author_id": 4323,
"author_profile": "https://Stackoverflow.com/users/4323",
"pm_score": 3,
"selected": true,
"text": "this typedef void (abc::*fptr)(int) const; // or remove const\nstd::tr1::bind((fptr)&abc::hello, x , _1)(a);\n const this... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19630/"
] |
310,342 | <p>A quick search gave me this <a href="http://www.mail-archive.com/dbdi-dev@perl.org/msg00002.html" rel="nofollow noreferrer">announcement of Parrot DBDI</a> from January 2004 and a <a href="http://www.mail-archive.com/dbdi-dev@perl.org/" rel="nofollow noreferrer">dbdi-dev mailing list</a> which appears to be long dea... | [
{
"answer_id": 310364,
"author": "John Zwinck",
"author_id": 4323,
"author_profile": "https://Stackoverflow.com/users/4323",
"pm_score": 3,
"selected": true,
"text": "this typedef void (abc::*fptr)(int) const; // or remove const\nstd::tr1::bind((fptr)&abc::hello, x , _1)(a);\n const this... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310342",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/311/"
] |
310,355 | <p>Is there any way to access the Windows Event Log from a java class. Has anyone written any APIs for this, and would there be any way to access the data from a remote machine?</p>
<p>The scenario is:</p>
<p>I run a process on a remote machine, from a controlling Java process.
This remote process logs stuff to the E... | [
{
"answer_id": 786129,
"author": "Dan Fleet",
"author_id": 95492,
"author_profile": "https://Stackoverflow.com/users/95492",
"pm_score": 4,
"selected": false,
"text": "import java.io.IOException;\nimport java.util.logging.Level;\n\nimport org.jinterop.dcom.common.JIException;\nimport org... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1836/"
] |
310,363 | <p>I have a time represented as the number of seconds elapsed since midnight, January 1, 1970, UTC (the results of an earlier call to time()). How do I add one day to this time?</p>
<p>Adding 24 * 60 * 60 works in most cases, but fails if the daylight saving time comes on or off in between. In other words, I mostly wa... | [
{
"answer_id": 310374,
"author": "Roland Rabien",
"author_id": 39138,
"author_profile": "https://Stackoverflow.com/users/39138",
"pm_score": 6,
"selected": true,
"text": "int main()\n{\n time_t base = 1142085600;\n for(int i = 0; i < 4; ++i) {\n struct tm* tm = localtime(&base);\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310363",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13029/"
] |
310,376 | <p>Many (most?) sites aiming for accessibility and standards compliance use unordered lists for their navigation. Does this make the site more accessible or does it just provide useful elements for styling?</p>
<p>I don't mind them, and I have been using unordered lists in this way. It's just that, when I remove the s... | [
{
"answer_id": 310391,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": 3,
"selected": false,
"text": "<div> <span>"
},
{
"answer_id": 310447,
"author": "Carl Camera",
"author_id": 12804,
"author_profile":... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16526/"
] |
310,394 | <p>I am still learning sql server somewhat and recently came across a select query in a stored procedure which was causing a very slow fill of a dataset in c#. At first I thought this was to do with .NET but then found a suggestion to put in the stored procedure:</p>
<p>set implicit_transactions off</p>
<p>this seems... | [
{
"answer_id": 339581,
"author": "Sam Saffron",
"author_id": 17174,
"author_profile": "https://Stackoverflow.com/users/17174",
"pm_score": 2,
"selected": false,
"text": "set implicit_transactions on \ngo\nselect top 10 * from sysobjects\n set implicit_transactions off \ngo\nbegin tran\ns... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16989/"
] |
310,408 | <p>Let's say we have a concrete <code>class Apple</code>. (Apple objects can be instantiated.)
Now, someone comes and derives an abstract <code>class Peach</code> from Apple. It's abstract because it introduces a new pure virtual function. The user of Peach is now forced to derive from it and define this new function. ... | [
{
"answer_id": 310499,
"author": "fizzer",
"author_id": 18167,
"author_profile": "https://Stackoverflow.com/users/18167",
"pm_score": 4,
"selected": true,
"text": "Juice() Juice() Berry::Juice() class Tomato : public Berry\n{\npublic:\n void Juice() \n {\n PrepareJuice();\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310408",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22724/"
] |
310,418 | <p>I've given up trying to apply lipstick to the pigs of installers that come out of <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio" rel="noreferrer">Visual Studio</a> and have decided to look at <a href="http://en.wikipedia.org/wiki/WiX" rel="noreferrer">WiX</a>.</p>
<p>What resources would you recomme... | [
{
"answer_id": 310760,
"author": "Rob Mensching",
"author_id": 23852,
"author_profile": "https://Stackoverflow.com/users/23852",
"pm_score": 3,
"selected": false,
"text": "wix-users@lists.wixtoolset.org"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/310418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20198/"
] |
310,425 | <p>Currently I have a table that I search upon 4 fields, FirstName, LastName, MiddleName, And AKA's. I currently have a <strong>CONTAINSTABLE</strong> search for the rows and it works. Not well but it works. Now <strong>I want to make the First Name weighted higher and middle name lower.</strong></p>
<p>I found the co... | [
{
"answer_id": 322191,
"author": "Dave_H",
"author_id": 17109,
"author_profile": "https://Stackoverflow.com/users/17109",
"pm_score": 4,
"selected": true,
"text": "DECLARE @Results TABLE (PersonId Int, Rank Int, Source Int)\n PersonId Int PK Identity, FirstName VarChar(100), MiddleName V... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1925/"
] |
310,426 | <p>To do the equivalent of Python list comprehensions, I'm doing the following:</p>
<pre><code>some_array.select{|x| x % 2 == 0 }.collect{|x| x * 3}
</code></pre>
<p>Is there a better way to do this...perhaps with one method call?</p>
| [
{
"answer_id": 310466,
"author": "Robert Gamble",
"author_id": 25222,
"author_profile": "https://Stackoverflow.com/users/25222",
"pm_score": 7,
"selected": true,
"text": "class Array\n def comprehend(&block)\n return self if block.nil?\n self.collect(&block).compact\n end\nend\n\... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4883/"
] |
310,436 | <p>Is there a way to only load child nodes when the parent node is expanded? The problem that I’m running into is that the “expand” icon doesn’t show up if a node doesn’t have any children. Since I don’t want to load the children until the icon is clicked, I’m left with a bit of a catch 22.</p>
| [
{
"answer_id": 1535877,
"author": "Homer",
"author_id": 176537,
"author_profile": "https://Stackoverflow.com/users/176537",
"pm_score": 2,
"selected": false,
"text": "public class TreeViewItemEx : TreeViewItem {\n protected override DependencyObject GetContainerForItemOverride() {\n ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13181/"
] |
310,441 | <p>I need to reformat a text file into a PDF. Using Perl, I am modifying an existing PostScript template file based on what is in the text file. Sometimes this text file will be long enough to require a two page PDF.</p>
<p>Can I create a two page PDF file from one .ps file using GhostScript? If so, what tells GhostSc... | [
{
"answer_id": 310463,
"author": "Alnitak",
"author_id": 6782,
"author_profile": "https://Stackoverflow.com/users/6782",
"pm_score": 0,
"selected": false,
"text": "showpage"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/310441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7519/"
] |
310,451 | <p>Both <code>static_cast</code> and <code>reinterpret_cast</code> seem to work fine for casting <code>void*</code> to another pointer type. Is there a good reason to favor one over the other?</p>
| [
{
"answer_id": 310489,
"author": "Konrad Rudolph",
"author_id": 1968,
"author_profile": "https://Stackoverflow.com/users/1968",
"pm_score": 8,
"selected": false,
"text": "static_cast reinterpret_cast reinterpret_cast reinterpret_cast reinterpret_cast void* T* static_cast reinterpret_cast... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/37992/"
] |
310,456 | <p>I'm trying to find a way to get the open tasks in C#. I've been searching on google and can only find how to get a list of the <strong>processes</strong>. I want the only the tasks that would show up on the taskbar.</p>
<p>Also, along with that, it would be cool if I could get the process the task is associated w... | [
{
"answer_id": 310481,
"author": "abelenky",
"author_id": 34824,
"author_profile": "https://Stackoverflow.com/users/34824",
"pm_score": 1,
"selected": false,
"text": "using System.Diagnostics;\nstatic void MyFunc()\n{\n Process[] processes = Process.GetProcesses();\n foreach(Proces... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13713/"
] |
310,458 | <p>In ASP.NET (not MVC), what is the best approach to programmatically setting styles on an unordered list used for navigation so the appropriate menu item is styled as the active item if that page is being viewed? </p>
<p>This would most likely be used in conjunction with a MasterPage.</p>
| [
{
"answer_id": 310477,
"author": "Frank V",
"author_id": 18196,
"author_profile": "https://Stackoverflow.com/users/18196",
"pm_score": 2,
"selected": true,
"text": "<{...} class=\"GeneratedMenuItem\"> {...}\n"
},
{
"answer_id": 310535,
"author": "Dillie-O",
"author_id": 7... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310458",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30552/"
] |
310,459 | <p>I'm trying to transform each element of a numpy array into an array itself (say, to interpret a greyscale image as a color image). In other words:</p>
<pre><code>>>> my_ar = numpy.array((0,5,10))
[0, 5, 10]
>>> transformed = my_fun(my_ar) # In reality, my_fun() would do something more useful
arra... | [
{
"answer_id": 310493,
"author": "Piotr Lesnicki",
"author_id": 38796,
"author_profile": "https://Stackoverflow.com/users/38796",
"pm_score": 1,
"selected": false,
"text": " numpy.resize(my_ar, (3,3)).transpose()\n (my_ar.shape[0],)*2"
},
{
"answer_id": 310893,
"author": "Mr ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12779/"
] |
310,469 | <p>I want a workflow that, when an entry is created in List A, will generate one entry in List B for each entry in List C. Is this possible? If so, how?</p>
| [
{
"answer_id": 310493,
"author": "Piotr Lesnicki",
"author_id": 38796,
"author_profile": "https://Stackoverflow.com/users/38796",
"pm_score": 1,
"selected": false,
"text": " numpy.resize(my_ar, (3,3)).transpose()\n (my_ar.shape[0],)*2"
},
{
"answer_id": 310893,
"author": "Mr ... | 2008/11/21 | [
"https://Stackoverflow.com/questions/310469",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
310,479 | <p>I am developing a cocoa application that will be making heavy use of both web services and a standard dbms (most likely MySQL) and I am wondering if anyone has a good option for a database library or ORM solution they have used. CoreData is not an option due to the need to support a standard DBMS and to be able to ... | [
{
"answer_id": 468461,
"author": "Dirk Stoop",
"author_id": 24051,
"author_profile": "https://Stackoverflow.com/users/24051",
"pm_score": 4,
"selected": true,
"text": "NSBundle *pluginBundle = [NSBundle bundleWithPath:pluginPath];\n[pluginBundle load];\n"
}
] | 2008/11/21 | [
"https://Stackoverflow.com/questions/310479",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39819/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.