qid int64 4 22.2M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
404,186 | <p>i have a stored procedure that creates a table then fills this table somehow from tables of the database then selects everything from this table then drops this table.the problem is,how can i use the selected columns from that dropped table im using DataContext i always put the result of the the stored procedure in ... | [
{
"answer_id": 404224,
"author": "StingyJack",
"author_id": 16391,
"author_profile": "https://Stackoverflow.com/users/16391",
"pm_score": 1,
"selected": false,
"text": "//retrieves a list of strings related to the itemID\npublic List<String> RetriveItem(int itemID)\n{\n\n // declare our... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404186",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,199 | <p>This is related to <a href="https://stackoverflow.com/questions/153420/is-it-feasible-to-create-a-rest-client-with-flex">this question</a>. I'm writing a Flex app (a WindowedApplication) that uses REST. Everything's fine when I post with valid authentication, but if I happen to pass an invalid username or password t... | [
{
"answer_id": 1011216,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 2,
"selected": false,
"text": "request.authenticate = false;\n"
}
] | 2008/12/31 | [
"https://Stackoverflow.com/questions/404199",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/87798/"
] |
404,226 | <p>I know this is a pretty basic question, and I <em>think</em> I know the answer...but I'd like to confirm.</p>
<p>Are these queries truly equivalent?</p>
<pre><code>SELECT * FROM FOO WHERE BAR LIKE 'X'
SELECT * FROM FOO WHERE BAR ='X'
</code></pre>
<p>Perhaps there is a performance overhead in using like with no w... | [
{
"answer_id": 37788432,
"author": "CSharpie",
"author_id": 1789202,
"author_profile": "https://Stackoverflow.com/users/1789202",
"pm_score": 4,
"selected": false,
"text": "="
},
{
"answer_id": 73556471,
"author": "Diego Alonso",
"author_id": 19887474,
"author_profile... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27657/"
] |
404,231 | <p>I have this enum:</p>
<pre><code>enum ButtonState {
BUTTON_NORMAL = 0,
BUTTON_PRESSED = 1,
BUTTON_CLICKED = 2
};
const u8 NUM_BUTTON_STATES = 3;
</code></pre>
<p>In my Button class I have member variables <code>ButtonState state;</code> and <code>ButtonColors colors[NUM_BUTTON_STATES];</code>. When dr... | [
{
"answer_id": 404253,
"author": "Stefan",
"author_id": 48003,
"author_profile": "https://Stackoverflow.com/users/48003",
"pm_score": 4,
"selected": false,
"text": "enum ButtonState {\n BUTTON_NORMAL = 0,\n BUTTON_PRESSED,\n BUTTON_CLICKED,\n NUM_BUTTON_STATES\n};\n"
},
{... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/813/"
] |
404,232 | <p>I am trying to pass a reference to a two-dimensional array to a function in C++. I know the size of both dimensions at compile time. Here is what I have right now:</p>
<pre><code>const int board_width = 80;
const int board_height = 80;
void do_something(int[board_width][board_height]& array); //function protot... | [
{
"answer_id": 404243,
"author": "Paige Ruten",
"author_id": 813,
"author_profile": "https://Stackoverflow.com/users/813",
"pm_score": -1,
"selected": false,
"text": "void do_something(int array[board_width][board_height]);\n"
},
{
"answer_id": 404247,
"author": "Johannes Sch... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,258 | <p>For some reason the following code fails. You can't simply erase a reverse_iterator by using its base() method. </p>
<pre><code>#include <set>
#include <iostream>
int main()
{
std::set<int> setOfInts;
setOfInts.insert(1);
setOfInts.insert(2);
setOfInts.insert(3);
std::set<... | [
{
"answer_id": 404261,
"author": "Brian",
"author_id": 16457,
"author_profile": "https://Stackoverflow.com/users/16457",
"pm_score": -1,
"selected": false,
"text": "erase"
},
{
"answer_id": 404269,
"author": "Doug T.",
"author_id": 8123,
"author_profile": "https://Sta... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404258",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8123/"
] |
404,278 | <p>Anyone know why the MINUTE method in java.util.Caldendar returns an incorrect minute?</p>
<pre><code>import java.util.Calendar;
public class Clock
{
// Instance fields
private Calendar time;
/**
* Constructor. Starts the clock at the current operating system time
*/
public Clock()
{
... | [
{
"answer_id": 404283,
"author": "Marc Novakowski",
"author_id": 27020,
"author_profile": "https://Stackoverflow.com/users/27020",
"pm_score": 5,
"selected": false,
"text": "System.out.println(this.time.get(Calendar.HOUR_OF_DAY) + \":\" + this.time.get(Calendar.MINUTE));\n"
},
{
... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404278",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,290 | <p>I'm trying to create a splash screen that shows assemblies (all referenced library) loading status. I use AppDomain.AssemblyLoad AssemblyLoadEventHandler delegate to catch what assembly is being loaded but the problem is the event is not triggered when the program initializes. I tried register the event handler in a... | [
{
"answer_id": 404309,
"author": "Michael Bray",
"author_id": 50356,
"author_profile": "https://Stackoverflow.com/users/50356",
"pm_score": 0,
"selected": false,
"text": "static void Main(string[] args)\n{\n AppDomain.CurrentDomain.AssemblyLoad += new AssemblyLoadEventHandler(CurrentD... | 2008/12/31 | [
"https://Stackoverflow.com/questions/404290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,313 | <p>I have a table that has about 1/2 million records in it.</p>
<p>Each month we get about 1/2 million more records to import. These are currently shoved into another table in the DB, but will eventually be loaded directly from a txt file. For each of these new records, I have to determine if we have that record alr... | [
{
"answer_id": 404324,
"author": "Charles Bretana",
"author_id": 32632,
"author_profile": "https://Stackoverflow.com/users/32632",
"pm_score": 2,
"selected": true,
"text": " Update DestTable Set\n ColName = T.ColName,\n [repeat for all cols]\n From TmpTable T Join DestTa... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571/"
] |
404,322 | <p>I need to be able to programmatically transcode mpeg-2 files to .mp4, .mp3, .wmv, .rm (optional), and .flv (optional), and hopefully generate a thumbnail as well. I found the Java Media Framework, but it frankly looks pretty crappy. This will be running a Linux server, so I could shell out to ffmpeg using Commons Ex... | [
{
"answer_id": 404343,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 4,
"selected": true,
"text": "ffmpeg -i {input}.ext -r {target_frame_rate} -ar {target_audio_rate} -b {target_bitrate} -s {width}x{height} {target}.ext\n"
... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42891/"
] |
404,332 | <p>In my ASP.NET application, I want to use regular expressions to change URLs into hyper links in user posts, for example:</p>
<pre><code>http://www.somesite.com/default.aspx
</code></pre>
<p>to</p>
<pre><code><a href="http://www.somesite.com/default.aspx">http://www.somesite.com/default.aspx</a>
</c... | [
{
"answer_id": 404336,
"author": "Vilx-",
"author_id": 41360,
"author_profile": "https://Stackoverflow.com/users/41360",
"pm_score": 0,
"selected": false,
"text": "Regex.Matches()"
},
{
"answer_id": 404403,
"author": "Leon Tayson",
"author_id": 18413,
"author_profile"... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/676066/"
] |
404,344 | <p>I'm trying to grab a specific bit of raw text from a web site. Using this site and other sources, I learned how to grab specific images using simpleXML and xpath.</p>
<p>However the same approach doesn't appear to be working for grabbing raw text. Here's what's NOT working right now.</p>
<pre><code>// first I set... | [
{
"answer_id": 405386,
"author": "Beau Simensen",
"author_id": 50453,
"author_profile": "https://Stackoverflow.com/users/50453",
"pm_score": 1,
"selected": false,
"text": "if ( count($commcount) > 0 ) {\n $divContent = $commcount[0]->asXml();\n print $divContent;\n}\n"
},
{
... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404344",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,346 | <p>Does anyone know how to write a program in Python that will calculate the addition of the harmonic series. i.e. 1 + 1/2 +1/3 +1/4...</p>
| [
{
"answer_id": 404354,
"author": "recursive",
"author_id": 44743,
"author_profile": "https://Stackoverflow.com/users/44743",
"pm_score": 2,
"selected": false,
"text": "def calc_harmonic(n):\n return sum(1.0/d for d in range(2,n+1))\n"
},
{
"answer_id": 404361,
"author": "z... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404346",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47204/"
] |
404,368 | <p>In working with objects and interfaces what is the best practice for writing to the database? There is a plethora of opinions regarding the object design but I am unclear about the database end. A simple example: </p>
<p>Suppose a Contact base class that contains the common fields such as contact name (Bill, Fred, ... | [
{
"answer_id": 404387,
"author": "Andrew Hare",
"author_id": 34211,
"author_profile": "https://Stackoverflow.com/users/34211",
"pm_score": 1,
"selected": false,
"text": "Phone"
},
{
"answer_id": 404544,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "ht... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50622/"
] |
404,379 | <p>I have an order page that is being rendered from a Model object (Order) with a few properties. One of the properties of the Order object is</p>
<pre><code>public List<OrderItem> Items { get; set; };
</code></pre>
<p>and the other is</p>
<pre><code>public List<OrderComment> Comments { get; set; };
</c... | [
{
"answer_id": 404431,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 2,
"selected": false,
"text": "RenderPartial"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14101/"
] |
404,391 | <p>How do I get the actual value (or text) of the item selected in an HTML select box? Here are the main methods I've tried...</p>
<pre><code>
document.getElementById('PlaceNames').value
</code></pre>
<pre><code>
$("#PlaceNames option:selected").val()
</code></pre>
<pre><code>
$("#PlaceNames option:selected").text(... | [
{
"answer_id": 404396,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 1,
"selected": false,
"text": "var select = document.getElementById('PlaceNames');\nvar value = select.options[select.selectedIndex].value;\n"
},
... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49294/"
] |
404,421 | <p>I'm going through SICP and I'd like to have an interpreter analogous to the interactive Python interpreter to play around in while I'm watching the lectures and reading the book. Furthermore, I'd like this interpreter to run inside Emacs so I can jump back and forth between files of scheme code and the interactive i... | [
{
"answer_id": 404514,
"author": "Cos",
"author_id": 49469,
"author_profile": "https://Stackoverflow.com/users/49469",
"pm_score": 3,
"selected": false,
"text": "M-x customize-group"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404421",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512/"
] |
404,430 | <p>I have heard of regular expressions and only seen use cases for a few things so I don't think of using them very often. In the past I have done a couple of things and it has taken me hours to do. Later I talk to someone and they say "here is how to do it using a regular expression".</p>
<p>So what are things for ... | [
{
"answer_id": 404434,
"author": "Bill the Lizard",
"author_id": 1288,
"author_profile": "https://Stackoverflow.com/users/1288",
"pm_score": 3,
"selected": false,
"text": "^[ \\t]+\n"
},
{
"answer_id": 404505,
"author": "Mark A. Nicolosi",
"author_id": 1103052,
"autho... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23571/"
] |
404,450 | <p>I am finishing off a C# ASP.NET program that allows the user to build their own computer by selecting hardware components such as memory, cpu, etc from a drop down lists. The SQL datatable has 3 columns; ComputerID, Attribute and Value. The computerID is an ID that corresponds to a certain computer in my main datata... | [
{
"answer_id": 404466,
"author": "tvanfosson",
"author_id": 12950,
"author_profile": "https://Stackoverflow.com/users/12950",
"pm_score": 0,
"selected": false,
"text": "Dictionary<string,int> attributeMap = new Dictionary<string,int>();\nattributeMap.Add(\"MEMORY\",1000);\nattributeMap.... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,468 | <p>I am writing a library in standard C++ which does the phonetic conversion. I have used std::string as of now. But in future I may have to change this to someother (std::wstring or something else). So I need to write my library in such a way that I can switch this easily. I have done the following so far to achieve t... | [
{
"answer_id": 405018,
"author": "xtofl",
"author_id": 6610,
"author_profile": "https://Stackoverflow.com/users/6610",
"pm_score": 1,
"selected": false,
"text": "std::string"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50419/"
] |
404,470 | <p>My REST API returns JSON. </p>
<p>I'm currently returning text/plain as the MIME type, but it feels funny.
Should I be returning <code>application/x-javascript</code> or some other type?</p>
<p>The second question is with regard to the HTTP status code for error conditions.
If my REST API is returning an error sta... | [
{
"answer_id": 404472,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 7,
"selected": true,
"text": "application/json"
},
{
"answer_id": 6121687,
"author": "inquam",
"author_id": 357448,
"author_profil... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404470",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24457/"
] |
404,484 | <p>Using Grails 1.1 beta2 and a JSP page. The JSP includes the CSS reference:</p>
<pre><code><link rel="stylesheet" type="text/css" href="styles.css">
</code></pre>
<p>When this line is included Grails pukes with the error:</p>
<pre><code>[7000] errors.GrailsExceptionResolver java.lang.NumberFormatException: F... | [
{
"answer_id": 404472,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 7,
"selected": true,
"text": "application/json"
},
{
"answer_id": 6121687,
"author": "inquam",
"author_id": 357448,
"author_profil... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/24396/"
] |
404,498 | <p>How do I add rows programmatically to a DataGridTable in C#? When the user selects an option, I want to repopulate a DataGridTable with fresh data, which I am acquiring as shown below:</p>
<pre><code> connect.Open();
MySqlCommand comm = connect.CreateCommand();
comm.CommandText = getCustomerI... | [
{
"answer_id": 404472,
"author": "Lawrence Dol",
"author_id": 8946,
"author_profile": "https://Stackoverflow.com/users/8946",
"pm_score": 7,
"selected": true,
"text": "application/json"
},
{
"answer_id": 6121687,
"author": "inquam",
"author_id": 357448,
"author_profil... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404498",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23249/"
] |
404,513 | <p>I am just starting with C++ and got some problems in understanding how the scope for private member variables in a class works. Please see the below code</p>
<pre><code>class Foo{
private:
std::vector<int> container;
public:
// other methods
};
int main(int argc, char* argv[])
{
F... | [
{
"answer_id": 404517,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 4,
"selected": true,
"text": "delete"
},
{
"answer_id": 404539,
"author": "Mr.Ree",
"author_id": 37946,
"author_profil... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50419/"
] |
404,522 | <p>I have a case where the child view sends notification to its parent view. Now I'm calling <code>addObserver:</code> in <code>viewWillAppear:</code> and <code>removeObserver:</code> in <code>viewWillDisappear:</code>. But, I'm guessing this is not correct since <code>viewWillAppear:</code> calls when view is refreshe... | [
{
"answer_id": 404720,
"author": "Mustafa",
"author_id": 49739,
"author_profile": "https://Stackoverflow.com/users/49739",
"pm_score": 1,
"selected": false,
"text": "viewDidLoad"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49739/"
] |
404,534 | <p>I ran across this case of <code>UnboundLocalError</code> recently, which seems strange:</p>
<pre><code>import pprint
def main():
if 'pprint' in globals(): print 'pprint is in globals()'
pprint.pprint('Spam')
from pprint import pprint
pprint('Eggs')
if __name__ == '__main__': main()
</code></pre>
... | [
{
"answer_id": 404610,
"author": "Kenan Banks",
"author_id": 43089,
"author_profile": "https://Stackoverflow.com/users/43089",
"pm_score": 3,
"selected": true,
"text": "from pprint import pprint"
},
{
"answer_id": 404709,
"author": "JV.",
"author_id": 33612,
"author_p... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3594/"
] |
404,547 | <p>This problem is a continuation of a previous problem:</p>
<p><a href="https://stackoverflow.com/questions/402432/c-returning-and-inserting-a-2d-array-object">C++ Returning and Inserting a 2D array object</a></p>
<p>and it is highly recommended to view the link to understand the following.</p>
<p>I followed throug... | [
{
"answer_id": 405830,
"author": "Joseph Garvin",
"author_id": 50385,
"author_profile": "https://Stackoverflow.com/users/50385",
"pm_score": 0,
"selected": false,
"text": "cell"
},
{
"answer_id": 413695,
"author": "Mark Essel",
"author_id": 51700,
"author_profile": "h... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,549 | <p>Sometimes I want to write a "major" comment to describe a large block of code and then write "minor" comments to describe a few of the lines within that block of code:</p>
<pre><code>// Major comment
// Minor comment
...
// Minor comment 2
...
</code></pre>
<p>The major comment looks strange without code directl... | [
{
"answer_id": 404559,
"author": "Marc Novakowski",
"author_id": 27020,
"author_profile": "https://Stackoverflow.com/users/27020",
"pm_score": 1,
"selected": false,
"text": "// ***** Major comment *****\n\n// Minor comment\n...\n\n// Minor comment 2\n...\n"
},
{
"answer_id": 4045... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/813/"
] |
404,557 | <h2>Duplicate</h2>
<p><a href="https://stackoverflow.com/questions/308466/modifying-a-collection-while-iterating-through-it-c">Modifying A Collection While Iterating Through It</a></p>
<hr>
<p>Has anyone a nice pattern to allow me to get around the inability to remove objects while I loop through an enumerable colle... | [
{
"answer_id": 404569,
"author": "TheSoftwareJedi",
"author_id": 18941,
"author_profile": "https://Stackoverflow.com/users/18941",
"pm_score": 2,
"selected": false,
"text": "List myFilteredList = new List();\nforeach (MyObject myObject in myListOfMyObjects)\n{\n if (!condition) myFil... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404557",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
404,604 | <p>Lots of IPCs are offered by Unix/Linux: pipes, sockets, shared memory, dbus, message-queues...</p>
<p>What are the most suitable applications for each, and how do they perform?</p>
| [
{
"answer_id": 404622,
"author": "Eugene Yokota",
"author_id": 3827,
"author_profile": "https://Stackoverflow.com/users/3827",
"pm_score": 7,
"selected": false,
"text": "pipe(2)"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27424/"
] |
404,615 | <p>What are some best practice for "Memory Efficient C programming".
Mostly for embedded/mobile device what should be the guidelines for having low memory consumptions ?</p>
<p>I guess there should be separate guideline for a) code memory b) data memory</p>
| [
{
"answer_id": 404659,
"author": "strager",
"author_id": 39992,
"author_profile": "https://Stackoverflow.com/users/39992",
"pm_score": 3,
"selected": false,
"text": "std::vector"
},
{
"answer_id": 405006,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/27424/"
] |
404,617 | <p>We are developing a Flash site with PHP. the problem is that it storing the cache , but we have to disable the cache using JavaScript or PHP.</p>
<p>How can I disable caching?</p>
| [
{
"answer_id": 404647,
"author": "cowgod",
"author_id": 6406,
"author_profile": "https://Stackoverflow.com/users/6406",
"pm_score": 5,
"selected": false,
"text": "<?php\nheader(\"Expires: Tue, 01 Jan 2000 00:00:00 GMT\");\nheader(\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404617",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,651 | <p>With a listbox, I have the following code to extract the item selected:</p>
<pre><code> private void inventoryList_SelectedIndexChanged(object sender, EventArgs e)
{
String s = inventoryList.SelectedItem.ToString();
s = s.Substring(0, s.IndexOf(':'));
bookDetailTable.Rows.Clear();
... | [
{
"answer_id": 404663,
"author": "Mitchell Gilman",
"author_id": 43219,
"author_profile": "https://Stackoverflow.com/users/43219",
"pm_score": 5,
"selected": true,
"text": "private void dataGridView1_SelectionChanged(object sender, EventArgs e)\n{\n DataGridView dgv = (DataGridView)se... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404651",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/23249/"
] |
404,676 | <p>Is is that I'm a newbie learning Ruby, or does it really have more ways to write (the same) things than Java/C#? Also, if it is more flexible than Java, are there any linguistic features of Ruby that are generally <strong>not</strong> used to avoid confusion?</p>
<p>Examples might be parallel assignment and all the... | [
{
"answer_id": 1579720,
"author": "deau",
"author_id": 121737,
"author_profile": "https://Stackoverflow.com/users/121737",
"pm_score": 1,
"selected": false,
"text": "def abs(n); (n < 0) ? -n : n; end\ndef square(n); n * n; end\ndef average(x, y); (x + y) / 2; end\n\ndef fixed_point(x, po... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404676",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8047/"
] |
404,698 | <p>In replies to <a href="https://stackoverflow.com/questions/391503/if-condition-continue-or-if-condition-style-preference">one of my questions</a>, I received a number of answers saying that style 2 may perform better than style 1. I don't understand how, since I believe they should emit essentially the same machine ... | [
{
"answer_id": 404947,
"author": "Øyvind Skaar",
"author_id": 49194,
"author_profile": "https://Stackoverflow.com/users/49194",
"pm_score": 3,
"selected": true,
"text": "using System;\nusing System.Collections.Generic;\n\nnamespace ConsoleApplication2\n{\n class Program\n {\n ... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41283/"
] |
404,701 | <p>I would like to display tagcloud in my home page. Found this wordpress flash plugin <a href="http://alexisyes.com/tags/wpcumulus" rel="nofollow noreferrer">http://alexisyes.com/tags/wpcumulus</a> , but for that i needed to setup wordpress. I am wondering whether there is any other standalone plugin similar to wpcumu... | [
{
"answer_id": 404714,
"author": "Shawn",
"author_id": 26,
"author_profile": "https://Stackoverflow.com/users/26",
"pm_score": 2,
"selected": true,
"text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<tags>\n <tag name=\"Books\" count=\"4\" />\n <tag name=\"Magazines\" count=\"20\... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404701",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,717 | <p>I have been used to do some refactorings by introducing compilation errors. For example, if I want to remove a field from my class and make it a parameter to some methods, I usually remove the field first, which causes a compilation error for the class. Then I would introduce the parameter to my methods, which would... | [
{
"answer_id": 404749,
"author": "Johnno Nolan",
"author_id": 1116,
"author_profile": "https://Stackoverflow.com/users/1116",
"pm_score": 3,
"selected": false,
"text": "class myClass {\n void megaMethod() \n {\n int x,y,z;\n //lots of lines of code\n z = m... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404717",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41283/"
] |
404,729 | <p>I've seen a few programs (eg Charles Web Developer Proxy) that are able to modify Firefox's proxy settings. The sequence is:</p>
<ol>
<li>Firefox is running, with the users proxy settings.</li>
<li>User starts the external third party application, which</li>
<li>modifies Firefox's proxy settings, and then</li>
<li>... | [
{
"answer_id": 405665,
"author": "bugmagnet",
"author_id": 426,
"author_profile": "https://Stackoverflow.com/users/426",
"pm_score": 2,
"selected": false,
"text": "# Mozilla User Preferences\n\n/* Do not edit this file.\n *\n * If you make changes to this file while the application is ru... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2997/"
] |
404,733 | <p>I need to identify what natural language my input belongs to.
The goal is to distinguish between <em>Arabic</em> and <em>English</em> words in a mixed input, where the input is Unicode and is extracted from XML text nodes.
I have noticed the class <code>Character.UnicodeBlock</code>. Is it related to my problem? H... | [
{
"answer_id": 410854,
"author": "Alan Moore",
"author_id": 20938,
"author_profile": "https://Stackoverflow.com/users/20938",
"pm_score": 2,
"selected": false,
"text": "[A-Za-z]+"
},
{
"answer_id": 32923176,
"author": "james.garriss",
"author_id": 584674,
"author_prof... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48599/"
] |
404,744 | <p>I have an application that resides in a single .py file. I've been able to get pyInstaller to bundle it successfully into an EXE for Windows. The problem is, the application requires a .cfg file that always sits directly beside the application in the same directory.</p>
<p>Normally, I build the path using the fol... | [
{
"answer_id": 404750,
"author": "Soviut",
"author_id": 46914,
"author_profile": "https://Stackoverflow.com/users/46914",
"pm_score": 8,
"selected": true,
"text": "import os\nimport sys\n\nconfig_name = 'myapp.cfg'\n\n# determine if application is a script file or frozen exe\nif getattr(... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46914/"
] |
404,774 | <p>I have this tiny Qt project with a project file like this:</p>
<pre><code>TEMPLATE = lib
TARGET = record32
VERSION = 0.0.1
DEPENDPATH += .
INCLUDEPATH += .
CONFIG += shared
SOURCES += recorder.cpp
HEADERS += recorder.h
</code></pre>
<p>When I compile a library from it by <code>qmake && nmake</code>, it re... | [
{
"answer_id": 36011195,
"author": "vitperov",
"author_id": 2915164,
"author_profile": "https://Stackoverflow.com/users/2915164",
"pm_score": 3,
"selected": false,
"text": "CONFIG += skip_target_version_ext\n"
},
{
"answer_id": 42269750,
"author": "iamantony",
"author_id"... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40657/"
] |
404,795 | <p>I was recently teaching myself Python and discovered the LBYL/EAFP idioms with regards to error checking before code execution. In Python, it seems the accepted style is EAFP, and it seems to work well with the language.</p>
<p>LBYL (<strong><em>L</strong>ook <strong>B</strong>efore <strong>Y</strong>ou <strong>L</... | [
{
"answer_id": 404802,
"author": "Yuval Adam",
"author_id": 24545,
"author_profile": "https://Stackoverflow.com/users/24545",
"pm_score": 4,
"selected": true,
"text": "if (o != null)\n o.doSomething();\nelse\n // handle\n"
},
{
"answer_id": 405220,
"author": "Jonathan L... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49018/"
] |
404,804 | <pre><code>public class CovariantTest {
public A getObj() {
return new A();
}
public static void main(String[] args) {
CovariantTest c = new SubCovariantTest();
System.out.println(c.getObj().x);
}
}
class SubCovariantTest extends CovariantTest {
public B getObj() {
... | [
{
"answer_id": 404812,
"author": "Spoike",
"author_id": 3713,
"author_profile": "https://Stackoverflow.com/users/3713",
"pm_score": 4,
"selected": false,
"text": "x"
},
{
"answer_id": 404813,
"author": "billybob",
"author_id": 49464,
"author_profile": "https://Stackov... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/40945/"
] |
404,825 | <p>How to return a list in Python???</p>
<p>When I tried returning a list,I got an empty list.What's the reason???</p>
| [
{
"answer_id": 404837,
"author": "Autoplectic",
"author_id": 49994,
"author_profile": "https://Stackoverflow.com/users/49994",
"pm_score": 0,
"selected": false,
"text": "In [1]: def pants():\n ...: return [1, 2, 'steve']\n ...: \nIn [2]: pants()\nOut[2]: [1, 2, 'steve']\n"
},
... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404825",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46646/"
] |
404,830 | <p>I have an application in which I'm trying to capture the shift key modifier to perform an action, however when I run the program and press and normal key without the shift key modifier I get a beep and the modifier and key are not sent to my keyDown event. The relevant code is:</p>
<pre><code>NSString* eventChars ... | [
{
"answer_id": 405580,
"author": "Peter Hosey",
"author_id": 30461,
"author_profile": "https://Stackoverflow.com/users/30461",
"pm_score": 2,
"selected": false,
"text": "eventChars"
},
{
"answer_id": 408537,
"author": "Nathan Kinsinger",
"author_id": 20045,
"author_pr... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404830",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2594/"
] |
404,838 | <p>I've been programming in C-derived languages for a couple of decades now. Somewhere along the line, I decided that I no longer wanted to write:</p>
<pre><code>if (var) // in C
if ($var) # in Perl
</code></pre>
<p>when what I meant was:</p>
<pre><code>if (var != 0)
if (defined $var and $var ne '')
</code></p... | [
{
"answer_id": 404841,
"author": "gak",
"author_id": 11125,
"author_profile": "https://Stackoverflow.com/users/11125",
"pm_score": 4,
"selected": false,
"text": "if (var)\n"
},
{
"answer_id": 404845,
"author": "asalamon74",
"author_id": 21348,
"author_profile": "https... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404838",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41861/"
] |
404,842 | <p>I am starting, and loving, TDD, however wondering about the red green light concept. I do understand in theory the importance of ensuring you can fail a test before passing it. In practice, however, I am finding it somewhat a futile practice.</p>
<p>I feel I can't properly write a failing or passing test without im... | [
{
"answer_id": 404933,
"author": "jwpfox",
"author_id": 18665,
"author_profile": "https://Stackoverflow.com/users/18665",
"pm_score": 1,
"selected": false,
"text": "bool isIntPrime( int testInt )\n"
},
{
"answer_id": 405096,
"author": "Charlie Martin",
"author_id": 35092,... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404842",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5302/"
] |
404,854 | <p>when I try to fine-tune my process, I see that the waiting channel is stext, what does it mean?</p>
| [
{
"answer_id": 8772148,
"author": "Otheus",
"author_id": 531243,
"author_profile": "https://Stackoverflow.com/users/531243",
"pm_score": 1,
"selected": false,
"text": "ps axo pid,cmd,wchan"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404854",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/65724/"
] |
404,861 | <p>I know:</p>
<ul>
<li><p>The control points a and d (start and end point of a 2D cubic bezier curve)</p></li>
<li><p>The slopes a->b, c->d, and b->c (b,c the other control points)</p></li>
<li><p>Where the halfway point of the <a href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve" rel="nofollow noreferrer">Bézier ... | [
{
"answer_id": 404953,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 1,
"selected": false,
"text": "u * slope(a->b)+a = b, v * slope(c->d)+d = c\n"
},
{
"answer_id": 1093856,
"author": "Naaff",
"author_id": 994... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404861",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,873 | <p>If the free source code editor <a href="http://notepad-plus.sourceforge.net/uk/about.php" rel="noreferrer">Notepad++</a> has the feature "Find in files...", that is without the files being opened in the editor, does it also have the feature "Replace in files..."?</p>
<p>Notepad++ is based on the editing component <... | [
{
"answer_id": 4071923,
"author": "Alex",
"author_id": 265877,
"author_profile": "https://Stackoverflow.com/users/265877",
"pm_score": 7,
"selected": true,
"text": "\\n"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404873",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/25093/"
] |
404,877 | <p>How to create a java.awt.Image from image data? Image data is not pure RGB pixel data but encoded in jpeg/png format.</p>
<p>JavaME has a simple api Image.createImage(...) for doing this. </p>
<pre><code>public static Image createImage(byte[] imageData,
int imageOffset,
... | [
{
"answer_id": 404885,
"author": "Dmitry Khalatov",
"author_id": 18174,
"author_profile": "https://Stackoverflow.com/users/18174",
"pm_score": 3,
"selected": true,
"text": "import java.awt.*;\n\nToolkit toolkit = Toolkit.getDefaultToolkit();\n\nImage image = toolkit.createImage(imageData... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
404,879 | <p>I'm working on the development of a C++ API which uses custom-designed plugins
to interface with different database engines using their APIs and specific SQL
syntax.</p>
<p>Currently, I'm attempting to find a way of inserting BLOBs, but since <code>NULL</code> is
the terminating character in C/C++, the BLOB beco... | [
{
"answer_id": 404925,
"author": "Louis Gerbarg",
"author_id": 30506,
"author_profile": "https://Stackoverflow.com/users/30506",
"pm_score": 1,
"selected": false,
"text": "sqlite_prepare_v2()"
},
{
"answer_id": 405907,
"author": "Eclipse",
"author_id": 8701,
"author_p... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404879",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/36145/"
] |
404,886 | <p>Is there any better alternative for doing string formatting in VC6, with syntax checking before substitution?</p>
| [
{
"answer_id": 404916,
"author": "ChrisN",
"author_id": 3853,
"author_profile": "https://Stackoverflow.com/users/3853",
"pm_score": 4,
"selected": true,
"text": "CString"
},
{
"answer_id": 844360,
"author": "dcw",
"author_id": 73491,
"author_profile": "https://Stackov... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404886",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/22076/"
] |
404,887 | <p>I'm sorry, but this is beginning to feel like kicking myself in the head. I'm completely baffled by RSpec. Have watched video after video, read tutorial after tutorial, and still I'm just stuck on square one. </p>
<p>=== here is what I'm working with</p>
<p><strong><a href="http://github.com/fudgestudios/bort/tr... | [
{
"answer_id": 405090,
"author": "Otto",
"author_id": 9594,
"author_profile": "https://Stackoverflow.com/users/9594",
"pm_score": 2,
"selected": false,
"text": "require File.dirname(__FILE__) + '/../spec_helper'\ninclude ApplicationHelper\ninclude UsersHelper\ninclude AuthenticatedTestHe... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404887",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/33287/"
] |
404,891 | <p>I have two pages of jQuery, Page1 and Page2, and I'm able to get input in Page1.</p>
<p>The <code>somval=1000$</code>.</p>
<p>The page 1 user enters the somevalue. I have stored the value:</p>
<pre><code>var val = somval;
</code></pre>
<p>Now in the second page, I need to get the result of somvalue in page 1. Of... | [
{
"answer_id": 404894,
"author": "gak",
"author_id": 11125,
"author_profile": "https://Stackoverflow.com/users/11125",
"pm_score": 5,
"selected": true,
"text": "window.location = 'page2.html?somval=' + somval;\n"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44984/"
] |
404,899 | <p>I found the following rather strange. Then again, I have mostly used closures in dynamic languages which shouldn't be suspectable to the same "bug". The following makes the compiler unhappy:</p>
<pre><code>VoidFunction t = delegate { int i = 0; };
int i = 1;
</code></pre>
<p>It says:</p>
<blockquote>
<p>A loca... | [
{
"answer_id": 404910,
"author": "dalle",
"author_id": 19100,
"author_profile": "https://Stackoverflow.com/users/19100",
"pm_score": 0,
"selected": false,
"text": "int i = 1;\nVoidFunction t = delegate { Console.WriteLine(i); };\n"
},
{
"answer_id": 404918,
"author": "Øyvind ... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404899",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13995/"
] |
404,905 | <p>I currently have an anchor tag that, when clicked, appends another anchor tag to the DOM. This is all done via jQuery. I know what the "id" attribute of the anchor tag to be added will be. However, when I try the following code, it fails to handle the newly added anchor tag's click event:</p>
<p>$("#id").click(fu... | [
{
"answer_id": 404917,
"author": "Beau Simensen",
"author_id": 50453,
"author_profile": "https://Stackoverflow.com/users/50453",
"pm_score": 1,
"selected": false,
"text": "$(\"#id\").ready(function() {\n $(\"#id\").click(function() { alert(\"test\"); }\n});\n"
},
{
"answer_id"... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1574/"
] |
404,941 | <p>I want to be able to pass an "array" of values to my stored procedure, instead of calling "Add value" procedure serially.</p>
<p>Can anyone suggest a way to do it? am I missing something here?</p>
<p>Edit: I will be using PostgreSQL / MySQL, I haven't decided yet.</p>
| [
{
"answer_id": 405041,
"author": "Weej",
"author_id": 48172,
"author_profile": "https://Stackoverflow.com/users/48172",
"pm_score": 2,
"selected": false,
"text": "CREATE FUNCTION [dbo].[Split]\n(\n @ItemList NVARCHAR(4000), \n @delimiter CHAR(1)\n)\nRETURNS @IDTable TABLE (Item VAR... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/41391/"
] |
404,948 | <p>A common scenario when using source control is to have a development branch along with versioned release branches. We use CVS, with HEAD as the development branch, and a branch named e.g. release-6-2 for the current release of a product.</p>
<p>Development of new features go into the development branch only, but bu... | [
{
"answer_id": 404996,
"author": "orip",
"author_id": 37020,
"author_profile": "https://Stackoverflow.com/users/37020",
"pm_score": 2,
"selected": false,
"text": "PRE_FOO"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/404948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18651/"
] |
404,957 | <p>Using iPhone CALayer, I want a rotation animation for my spirit layer, but I also want a callback for the animation end, hot to do that? </p>
<p>I think maybe I should use CABasicAnimation, but I don't know how to do rotation using CABasicAnimation, any idea?</p>
<p>Thanks</p>
| [
{
"answer_id": 405395,
"author": "Kendall Helmstetter Gelner",
"author_id": 6330,
"author_profile": "https://Stackoverflow.com/users/6330",
"pm_score": 4,
"selected": true,
"text": "- (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag\n"
},
{
"answer_id": 4071... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404957",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47936/"
] |
404,975 | <p>Using java, minus the exception handling, it is as simple as </p>
<pre><code>FileOutputStream ostream = new FileOutputStream("\\\\host\\share");
PrintStream printStream = new PrintStream(ostream);
printStream.print("HELLO PRINTER");
printStream.close();
ostream.close();
</code></pre>
| [
{
"answer_id": 405272,
"author": "nakajima",
"author_id": 39589,
"author_profile": "https://Stackoverflow.com/users/39589",
"pm_score": 1,
"selected": false,
"text": "File"
},
{
"answer_id": 405987,
"author": "russellkt",
"author_id": 12417,
"author_profile": "https:/... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404975",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12417/"
] |
404,989 | <p>I'm getting a "FormatException: Input string was not in a correct format" error that I don't understand.</p>
<p>I'm using the following lines to write a string to a text file:</p>
<pre><code>using (StreamWriter sw = new StreamWriter(myfilename, false, System.Text.Encoding.GetEncoding(enc)))
{
sw.Write(mystrin... | [
{
"answer_id": 404994,
"author": "Øyvind Skaar",
"author_id": 49194,
"author_profile": "https://Stackoverflow.com/users/49194",
"pm_score": 5,
"selected": true,
"text": "sw.Write(mystring + Environment.NewLine);\n"
},
{
"answer_id": 409054,
"author": "Øyvind Skaar",
"auth... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44004/"
] |
404,995 | <p>My question is how to check if a microphone and a speaker are from the same sound card on Windows platform. If they are from different cards, then the logic to handling timing will be different. I'm using both DSound and WMME API.</p>
| [
{
"answer_id": 409000,
"author": "bugmagnet",
"author_id": 426,
"author_profile": "https://Stackoverflow.com/users/426",
"pm_score": 1,
"selected": false,
"text": "strComputer = \".\" \nSet objWMIService = GetObject(\"winmgmts:\\\\\" & strComputer & \"\\root\\CIMV2\") \nSet colItems = ob... | 2009/01/01 | [
"https://Stackoverflow.com/questions/404995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47681/"
] |
405,039 | <p>Is there any way how to set <code>std::setw</code> manipulator (or its function <code>width</code>) permanently? Look at this:</p>
<pre><code>#include <iostream>
#include <iomanip>
#include <algorithm>
#include <iterator>
int main( void )
{
int array[] = { 1, 2, 4, 8, 16, 32, 64, 128, 256... | [
{
"answer_id": 405068,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 5,
"selected": true,
"text": ".width"
},
{
"answer_id": 25173025,
"author": "chappjc",
"author_id": 2778484,
"author_p... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405039",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21009/"
] |
405,043 | <pre><code>Response.Redirect(string.Format("myprofile.aspx?uid={0}&result=saved#main",user.UserID));
</code></pre>
<p>said code translates to</p>
<p><strong>IE7</strong> - <code>myprofile.aspx?uid=933fdf8e-1be0-4bc2-a269-ac0b01ba4755&result=saved</code></p>
<p><strong>FF</strong>- <code>myprofile.aspx?uid=93... | [
{
"answer_id": 405702,
"author": "scunliffe",
"author_id": 6144,
"author_profile": "https://Stackoverflow.com/users/6144",
"pm_score": 2,
"selected": true,
"text": "uid=933fdf8e-1be0-4bc2-a269-ac0b01ba4755&result=saved&hash=main#main\n"
},
{
"answer_id": 8069991,
"author": "R... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2763/"
] |
405,047 | <p>I'm looking for an Objective-C way of sorting characters in a string, as per the answer to <a href="https://stackoverflow.com/questions/401834/how-to-elegantly-compute-the-anagram-signature-of-a-word-in-ruby">this</a> question.</p>
<p>Ideally a function that takes an NSString and returns the sorted equivalent. </p>... | [
{
"answer_id": 405162,
"author": "sprintf",
"author_id": 50712,
"author_profile": "https://Stackoverflow.com/users/50712",
"pm_score": 4,
"selected": true,
"text": "int char_compare(const char* a, const char* b) {\n if(*a < *b) {\n return -1;\n } else if(*a > *b) {\n ... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405047",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42404/"
] |
405,059 | <p>I have a datalayer.cs file that was generated using a code gen tool.</p>
<p>I am marking the class as a partial class, so I can create another file with my own hand written datalayer code.</p>
<p>How should I name my files? </p>
<p>Should I do it like this:</p>
<p>/data/partial/datalayer.cs
/data/datalayer.cs</p... | [
{
"answer_id": 405069,
"author": "ChrisW",
"author_id": 49942,
"author_profile": "https://Stackoverflow.com/users/49942",
"pm_score": 1,
"selected": false,
"text": "/mydirectory/MyFormName.cs\n/mydirectory/MyFormName.Designer.cs\n"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/405059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50700/"
] |
405,060 | <p>Something like <code>.//div[@id='foo\d+]</code> to capture div tags with <code>id='foo123'</code>.</p>
<p>I'm using .NET, if that matters.</p>
| [
{
"answer_id": 405081,
"author": "Cristian Vat",
"author_id": 20109,
"author_profile": "https://Stackoverflow.com/users/20109",
"pm_score": 5,
"selected": false,
"text": "matches()"
},
{
"answer_id": 405507,
"author": "Dimitre Novatchev",
"author_id": 36305,
"author_p... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11236/"
] |
405,072 | <p>I am relatively new to The Zend framework having only been working with it probably two months at the most. I am now trying to get a list of results from a query I run, send it through the zend paginator class and display 4 results per page, however it does not seem to be recognising when it has got 4 results, I bel... | [
{
"answer_id": 405259,
"author": "Brian Fisher",
"author_id": 43816,
"author_profile": "https://Stackoverflow.com/users/43816",
"pm_score": 1,
"selected": false,
"text": "public function getAllNews()\n{\n $db = Zend_Registry::get('db');\n\n $sql = \"SELECT * FROM $this->_na... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
405,076 | <p>I made a drag and drop utility that make it possible for users to drag and drop elements directly on a workplace and create their page, I wound how can I save the user's work as HTML page!</p>
| [
{
"answer_id": 405087,
"author": "Pim Jager",
"author_id": 35197,
"author_profile": "https://Stackoverflow.com/users/35197",
"pm_score": 1,
"selected": false,
"text": "var positions = new Array();\nfunction savePositionOfAllDivs() {\n $('div').each( function(){\n $this = $(this);\n id ... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/49809/"
] |
405,106 | <p>All of the questions that I've asked recently about Python have been for this project. I have realised that the reason I'm asking so many questions may not be because I'm so new to Python (but I know a good bit of PHP) and is probably not because Python has some inherent flaw.</p>
<p>Thus I will now say what the pr... | [
{
"answer_id": 405328,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "https://Stackoverflow.com/users/10661",
"pm_score": 2,
"selected": false,
"text": "formationsHash"
},
{
"answer_id": 405356,
"author": "S.Lott",
"author_id": 10661,
"author_profile": "ht... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405106",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1384652/"
] |
405,112 | <p>How are objects stored in memory in C++?</p>
<p>For a regular class such as </p>
<pre><code>class Object
{
public:
int i1;
int i2;
char i3;
int i4;
private:
};
</code></pre>
<p>Using a pointer of Object as an array can be used to access i1 as follows?</p>
<pre><code>((Object*)&myObjec... | [
{
"answer_id": 405141,
"author": "Larry Gritz",
"author_id": 3832,
"author_profile": "https://Stackoverflow.com/users/3832",
"pm_score": 5,
"selected": true,
"text": "((int*)&myObject)[0] == i1\n"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/405112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16177/"
] |
405,113 | <p>I have a structure in C which resembles that of a database table record.
Now when I query the table using select, I do not know how many records I will get.
I want to store all the returned records from the select query in a array of my structure data type.</p>
<p>Which method is best?</p>
<h3>Method 1: find array s... | [
{
"answer_id": 405124,
"author": "Bjarke Ebert",
"author_id": 31890,
"author_profile": "https://Stackoverflow.com/users/31890",
"pm_score": 1,
"selected": false,
"text": "std::vector<myrecord>"
},
{
"answer_id": 405385,
"author": "Max",
"author_id": 50023,
"author_pro... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405113",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50706/"
] |
405,114 | <p>I need to transfer DVD image files between a Windows XP computer and a Mac running Leopard.</p>
<p>The machines are not connected via a fast network, and I have a few USB drives floating around that I want to use, e.g. 8GB flash, 60GB and 250GB USB hard drives.</p>
<p>Sometimes the files creep above 4GB (the maxim... | [
{
"answer_id": 405131,
"author": "frankodwyer",
"author_id": 42404,
"author_profile": "https://Stackoverflow.com/users/42404",
"pm_score": 2,
"selected": false,
"text": "split"
},
{
"answer_id": 405245,
"author": "ewalshe",
"author_id": 47429,
"author_profile": "https... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17971/"
] |
405,134 | <p>I <code>UIButton</code> using + <code>buttonWithType:</code> </p>
<p>What I need to figure out is how to manually change the button state. There are times when I need it to be set to "disabled."</p>
<p>I read through the <code>UIButton</code> documentation but I cannot seem to find anything about manually setting ... | [
{
"answer_id": 405163,
"author": "Ben Gottlieb",
"author_id": 6694,
"author_profile": "https://Stackoverflow.com/users/6694",
"pm_score": 7,
"selected": true,
"text": "button.enabled = NO;"
},
{
"answer_id": 7988158,
"author": "roberthuttinger",
"author_id": 798788,
"... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405134",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46022/"
] |
405,140 | <p>How can I achieve the following with a format string: Do 01.01.2009 ?
It has to work in all languages (the example would be for Germany). So there should only be the short weekday and then the short date.</p>
<p>I tried 'ddd d' (without the '). However, this leads to 'Do 01'.
Is there maybe a character I can put be... | [
{
"answer_id": 405154,
"author": "Darin Dimitrov",
"author_id": 29407,
"author_profile": "https://Stackoverflow.com/users/29407",
"pm_score": 3,
"selected": true,
"text": "DateTime.Now.ToString(\"ddd dd/MM/yyyy\")\n"
},
{
"answer_id": 405167,
"author": "cowgod",
"author_i... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
405,151 | <p>On iPhone, I perform a HTTP request using NSURLRequest for a chunk of data. Object allocation spikes and I assign the data accordingly. When I finish with the data, I free it up accordingly - however instruments doesn't show any data to have been freed!</p>
<p>My theory is that by default HTTP requests are cached, ... | [
{
"answer_id": 405711,
"author": "catlan",
"author_id": 23028,
"author_profile": "https://Stackoverflow.com/users/23028",
"pm_score": 3,
"selected": false,
"text": "- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse\n... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405151",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1221378/"
] |
405,161 | <p>I need to find a fairly efficient way to detect syllables in a word. E.g.,</p>
<p>Invisible -> in-vi-sib-le</p>
<p>There are some syllabification rules that could be used:</p>
<p>V
CV
VC
CVC
CCV
CCCV
CVCC</p>
<p>*where V is a vowel and C is a consonant.
E.g., </p>
<p>Pronunciation (5 Pro-nun-ci-a-tion; CV-CVC-... | [
{
"answer_id": 4103234,
"author": "hoju",
"author_id": 105066,
"author_profile": "https://Stackoverflow.com/users/105066",
"pm_score": 5,
"selected": false,
"text": "from nltk.corpus import cmudict\nd = cmudict.dict()\ndef nsyl(word):\n return [len(list(y for y in x if y[-1].isdigit()))... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405161",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50705/"
] |
405,164 | <p>I've done quite a bit of research into this but it seems that the methods used are inconsistent and varied.</p>
<p>Here are some methods I have used in the past:</p>
<pre><code>/* 1: */ typeof myFunc === 'function'
/* 2: */ myFunc.constructor === Function
/* 3: */ myFunc instanceof Function
</code></pre>
<p>As... | [
{
"answer_id": 405202,
"author": "AnthonyWJones",
"author_id": 17516,
"author_profile": "https://Stackoverflow.com/users/17516",
"pm_score": 2,
"selected": false,
"text": "toString.call(obj) === \"[object Function]\"\n"
},
{
"answer_id": 405314,
"author": "PhiLho",
"autho... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/21677/"
] |
405,165 | <p>I am a C++ developer, slowly getting into web development. I like LISP a lot but don't like AllegroCL and web-frameworks available for LISP. I am looking for more freedom and ability to do cool hacks on language level. I don't consider tabs as a crime against nature.</p>
<p>Which one is closer to LISP: Python or Ru... | [
{
"answer_id": 405188,
"author": "zenazn",
"author_id": 46848,
"author_profile": "https://Stackoverflow.com/users/46848",
"pm_score": 6,
"selected": true,
"text": "2.days.from_now"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/405165",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47937/"
] |
405,176 | <p>The Table - Query has 2 columns (functionId, depFunctionId)</p>
<p>I want all values that are either in functionid or in depfunctionid</p>
<p>I am using this:</p>
<pre><code>select distinct depfunctionid from Query
union
select distinct functionid from Query
</code></pre>
<p>How to do it better?</p>
| [
{
"answer_id": 405350,
"author": "Community",
"author_id": -1,
"author_profile": "https://Stackoverflow.com/users/-1",
"pm_score": 0,
"selected": false,
"text": "select depfunctionid , functionid from Query\ngroup by depfunctionid , functionid\n"
},
{
"answer_id": 405463,
"au... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/30546/"
] |
405,189 | <p>I'm using following for a simple database application:</p>
<ul>
<li>SQL Server Compact Edition .sdf file as database, with int primary key IDs.</li>
<li>Typed DataSet and BindingSource as data access layer</li>
<li>DataGridView for displaying data.</li>
</ul>
<p>My problem is, I'm having trouble with the last inse... | [
{
"answer_id": 405227,
"author": "Toran Billups",
"author_id": 2701,
"author_profile": "https://Stackoverflow.com/users/2701",
"pm_score": 0,
"selected": false,
"text": "Public Sub InsertSupplier(ByVal SupplierObject As Supplier) Implements ISupplierRepository.InsertSupplier\nSupplierObj... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405189",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
405,229 | <p>I have a script of MySQL queries that I use and that work.</p>
<p>I'm trying to execute the same queries in Microsoft SQL server and there's one thing I don't understand.</p>
<p>MySql uses "key" to define a key made up of different fields.</p>
<p>What is the way to do the same thing in SQL Server?</p>
<p>Thanks!... | [
{
"answer_id": 405234,
"author": "recursive",
"author_id": 44743,
"author_profile": "https://Stackoverflow.com/users/44743",
"pm_score": 2,
"selected": false,
"text": "ALTER TABLE product\n ADD CONSTRAINT prim_prod PRIMARY KEY(product_foo, product_bar)\n"
},
{
"answer_id": 405... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405229",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44004/"
] |
405,233 | <p>In the below code sample, what does <code>{0:X2}</code> mean? This is from the reflection section of the MCTS Application Development Foundation book (covering dynamic code, etc.).</p>
<pre><code>foreach(Byte b in body.GetILAsBodyArray())
{
Console.Write("{0:X2}", b);
}
</code></pre>
| [
{
"answer_id": 55142597,
"author": "Niels Gjeding Olsen",
"author_id": 769779,
"author_profile": "https://Stackoverflow.com/users/769779",
"pm_score": 2,
"selected": false,
"text": " long a = 123456789;\n Console.Write(\"{0:X2}\", a);\n -> 75BCD15\n"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/405233",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/32484/"
] |
405,246 | <p>I'm writing a a very small daemon that must remain responsive even when a system is under severe stress. I'm looking at the differences between SCHED_FIFO and SCHED_RR in regards to scheduling, as well as trying to determine a sensible priority.</p>
<p>Which scheduler would be appropriate for a small but critical m... | [
{
"answer_id": 405271,
"author": "Johannes Schaub - litb",
"author_id": 34509,
"author_profile": "https://Stackoverflow.com/users/34509",
"pm_score": 2,
"selected": false,
"text": "man sched_setscheduler\n"
},
{
"answer_id": 405353,
"author": "Norman Ramsey",
"author_id":... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405246",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50049/"
] |
405,282 | <p>I am trying to write a life simulation in python with a variety of animals. It is impossible to name each instance of the classes I am going to use because I have no way of knowing how many there will be.</p>
<p>So, my question:</p>
<p>How can I automatically give a name to an object?</p>
<p>I was thinking of cre... | [
{
"answer_id": 405297,
"author": "Jiaaro",
"author_id": 2908,
"author_profile": "https://Stackoverflow.com/users/2908",
"pm_score": 2,
"selected": false,
"text": "\nfrom new import classobj\nmy_class=classobj('Foo',(object,),{})\n\n"
},
{
"answer_id": 405331,
"author": "S.Lot... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
405,288 | <p>Consider this trigger:</p>
<pre><code>ALTER TRIGGER myTrigger
ON someTable
AFTER INSERT
AS BEGIN
DELETE FROM someTable
WHERE ISNUMERIC(someField) = 1
END
</code></pre>
<p>I've got a table, someTable, and I'm trying to prevent people from inserting bad records. For the purpose of this question, a... | [
{
"answer_id": 405295,
"author": "ConcernedOfTunbridgeWells",
"author_id": 15401,
"author_profile": "https://Stackoverflow.com/users/15401",
"pm_score": 7,
"selected": true,
"text": "Inserted"
},
{
"answer_id": 405305,
"author": "Dmitry Khalatov",
"author_id": 18174,
... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4/"
] |
405,320 | <p>Each page of my site has 10 (almost) identical divs, varying only in the text within. When a certain part of a div is clicked, I want a different part of that div to be modified.</p>
<p>I'm using this code:</p>
<pre><code>$(document).ready(function(){
$(".notLogged img").mouseover(function(){
$(this).parent()&g... | [
{
"answer_id": 405330,
"author": "Andreas Grech",
"author_id": 44084,
"author_profile": "https://Stackoverflow.com/users/44084",
"pm_score": 4,
"selected": true,
"text": "$(document).ready(function(){\n $(\".notLogged img\").mouseover(function(){\n $(this).parent().find(\"span\").html(\... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405320",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1615/"
] |
405,336 | <p>Netbeans tells me it's bad to access a static method from a non static method. Why is this bad?
"Accessing static method getInstance" is the warning:</p>
<pre><code>import java.util.Calendar;
public class Clock
{
// Instance fields
private Calendar time;
/**
* Constructor. Starts the clock at the... | [
{
"answer_id": 405348,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 4,
"selected": false,
"text": "Thread.sleep"
},
{
"answer_id": 405366,
"author": "orip",
"author_id": 37020,
"author_profile": "htt... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405336",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
405,338 | <p>Using the standard MVC set up in Zend Framework, I want to be able to display pages that have anchors throughout. Right now I'm just adding a meaningless parameter with the '#anchor' that I want inside the .phtml file.</p>
<pre><code><?= $this->url(array(
'controller'=>'my.controller',
'action'=>... | [
{
"answer_id": 406720,
"author": "Martin Rázus",
"author_id": 39014,
"author_profile": "https://Stackoverflow.com/users/39014",
"pm_score": 5,
"selected": true,
"text": "class My_View_Helper_Url extends Zend_View_Helper_Url\n{ \n public function url(array $urlOptions = array(), $na... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/42523/"
] |
405,364 | <p>This question is for the java language in particular. I understand that there is a static protion of memory set aside for all static code.</p>
<p>My question is how is this static memory filled? Is a static object put into static memory at import, or at first reference? Also, do the same garbage collection rules ap... | [
{
"answer_id": 405402,
"author": "erickson",
"author_id": 3474,
"author_profile": "https://Stackoverflow.com/users/3474",
"pm_score": 6,
"selected": true,
"text": "ClassLoader"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/405364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/48728/"
] |
405,379 | <p>I am designing a helper method that does lazy loading of certain objects for me, calling it looks like this:</p>
<pre><code>public override EDC2_ORM.Customer Customer {
get { return LazyLoader.Get<EDC2_ORM.Customer>(
CustomerId, _customerDao, ()=>base.Customer, (x)=>Customer = x); }
... | [
{
"answer_id": 405396,
"author": "Jon Skeet",
"author_id": 22656,
"author_profile": "https://Stackoverflow.com/users/22656",
"pm_score": 3,
"selected": false,
"text": "this"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/405379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5056/"
] |
405,394 | <p>Now I'm trying to work with System.Web.Routing. All is just fine, but I can't understand how to make form authentication work with url routing (return url, redirection, etc). Google says nothing. Help! :)</p>
<p><strong>UPD:</strong> I forgot - I <strong>don't use MVC</strong>. That's the problem. How to use rouni... | [
{
"answer_id": 435218,
"author": "Dominic Betts",
"author_id": 50911,
"author_profile": "https://Stackoverflow.com/users/50911",
"pm_score": 4,
"selected": true,
"text": " <?xml version=\"1.0\"?>\n <configuration>\n <system.web>\n <httpHandlers>\n <add path=\"*\" verb=\"... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50737/"
] |
405,409 | <p>I have</p>
<pre><code>$.ajax({
url: identity,
success: function(data) { ProcessIdentityServer(data) }
});
</code></pre>
<p>When 'data' is returned, is there a way to run selectors against it without adding it into the DOM. So for example, how can I get all the href values of any LINK tags contained in the HTML... | [
{
"answer_id": 405417,
"author": "nakajima",
"author_id": 39589,
"author_profile": "https://Stackoverflow.com/users/39589",
"pm_score": 4,
"selected": false,
"text": "data"
},
{
"answer_id": 405427,
"author": "Beau Simensen",
"author_id": 50453,
"author_profile": "htt... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/39655/"
] |
405,415 | <p>Given this line of code in C:</p>
<blockquote>
<p><code>printf("%3.0f\t%6.1f\n", fahr, <strong>(</strong>(5.0/9.0) * (fahr-32)<strong>)</strong>);</code></p>
</blockquote>
<p>Is there a way to delete or yank from the first bold parenthesis to its matching parenthesis? I thought about <strong>df)</strong>, but th... | [
{
"answer_id": 405420,
"author": "David Norman",
"author_id": 34502,
"author_profile": "https://Stackoverflow.com/users/34502",
"pm_score": 4,
"selected": false,
"text": "v%y"
},
{
"answer_id": 405425,
"author": "ahy1",
"author_id": 42761,
"author_profile": "https://S... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50111/"
] |
405,426 | <p>In Java, it would look like this:</p>
<pre><code>class Foo
{
float[] array;
}
Foo instance = new Foo();
instance.array = new float[10];
</code></pre>
| [
{
"answer_id": 405431,
"author": "Adam Rosenfield",
"author_id": 9530,
"author_profile": "https://Stackoverflow.com/users/9530",
"pm_score": 5,
"selected": true,
"text": "float *array;\n// Allocate 10 floats -- always remember to multiple by the object size\n// when calling malloc\narray... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/50335/"
] |
405,429 | <p>Coming from a C++ background, I've run into a snag with overloading based on a specific instance of a generic type. The following doesn't work since only once instance of the code for the <code>Foo<T></code> class is ever generated, so inside the <code>Method</code>, the type of <code>this</code> is simply <c... | [
{
"answer_id": 405451,
"author": "BenAlabaster",
"author_id": 40650,
"author_profile": "https://Stackoverflow.com/users/40650",
"pm_score": 0,
"selected": false,
"text": "class Stuff<T>\n{\n public T value { get; set; }\n}\n\nclass Program\n{\n static void DummyFunc(Stuff<int> inst... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8701/"
] |
405,432 | <p>I want to fill a map with class name and method, a unique identifier and a pointer to the method.</p>
<pre><code>typedef std::map<std::string, std::string, std::string, int> actions_type;
typedef actions_type::iterator actions_iterator;
actions_type actions;
actions.insert(make_pair(class_name, attribute_nam... | [
{
"answer_id": 405452,
"author": "strager",
"author_id": 39992,
"author_profile": "https://Stackoverflow.com/users/39992",
"pm_score": 3,
"selected": false,
"text": "class MyClass\n{\n public:\n void function();\n};\n\nvoid (MyClass:*function_ptr)() = MyClass::function;\n\nMyCl... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/47537/"
] |
405,433 | <p>I'm am looking for specific suggestions or references to an algorithm and/or data structures for encoding a list of words into what would effectively would turn out to be a spell checking dictionary. The objectives of this scheme would result in a very high compression ratio of the raw word list into the encoded for... | [
{
"answer_id": 405454,
"author": "jamesh",
"author_id": 4737,
"author_profile": "https://Stackoverflow.com/users/4737",
"pm_score": 2,
"selected": false,
"text": "/usr/share/dict/words"
}
] | 2009/01/01 | [
"https://Stackoverflow.com/questions/405433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1553/"
] |
405,478 | <p>Currently I am binding a dataset with a datagrid.</p>
<pre><code>ds = query.ExecuteReadQuery("select PollQuestionText as 'Survey Question',
PollAnswer1Text as 'Selection 1', PollAnswer2Text as 'Selection 2', PollAnswer3Text
as 'Selection 3', PollEnabled 'Status' from tbl_pollquestions")
For Each row As Data... | [
{
"answer_id": 405755,
"author": "Salamander2007",
"author_id": 10629,
"author_profile": "https://Stackoverflow.com/users/10629",
"pm_score": 3,
"selected": true,
"text": "RowDataBound"
},
{
"answer_id": 1631038,
"author": "Don Cote",
"author_id": 13354,
"author_profi... | 2009/01/01 | [
"https://Stackoverflow.com/questions/405478",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/44973/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.