unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
ASP.NET Routing with Web Forms
===
I've read [ASP.NET Routing… Goodbye URL rewriting?][1] and [Using Routing With WebForms][2] which are great articles, but limited to simple, illustrative, "hello world"-complexity examples.
Is anyone out there using ASP.NET routing with web forms in a non-trivial way? Any gotchas to be aware of? Performance issues? Further recommended reading I should look at before ploughing into an implementation of my own?
[1]: http://chriscavanagh.wordpress.com/2008/03/11/aspnet-routing-goodbye-url-rewriting/
[2]: http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx | 0 | [
2,
28,
306,
9,
2328,
19880,
29,
2741,
1997,
800,
3726,
3726,
31,
22,
195,
1302,
636,
472,
306,
9,
2328,
19880,
9,
9,
9,
9537,
287,
6362,
302,
12646,
60,
500,
2558,
165,
500,
17,
636,
12655,
19880,
29,
2741,
4190,
18,
500,
2558,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best way to run multiple subprocesses via fork()?
===
A python script need to spawn multiple sub-processes via fork(). All of those child processes should run simultaneously and the parent process should be waiting for all of them to finish. Having an ability to set some timeout on a "slow" child would be nice.
The parent process goes on processing the rest of the script after all kids are collected.
What is the best way to work it out? Thanks. | 0 | [
2,
98,
25,
14,
246,
161,
20,
485,
1886,
972,
16835,
160,
1197,
8777,
5,
6,
60,
800,
3726,
3726,
21,
20059,
3884,
376,
20,
13,
22860,
1886,
972,
8,
16835,
160,
1197,
8777,
5,
6,
9,
65,
16,
273,
850,
5102,
378,
485,
6888,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Printing from the web with few steps
===
I need to add functionality to my J2EE-based wep application:
1) Take some page, probably with form controls, convert it to some printer friendly format.
2) Print it this rendered format a) without showing it and b) without a print dialog.
I'm not too worried about 1, but have no idea if 2a and 2b are even possible.
Thanks for any help. | 0 | [
2,
7312,
37,
14,
2741,
29,
310,
2382,
800,
3726,
3726,
31,
376,
20,
3547,
18548,
20,
51,
487,
135,
2851,
8,
1281,
95,
306,
3010,
45,
137,
6,
247,
109,
2478,
15,
910,
29,
505,
8671,
15,
8406,
32,
20,
109,
12925,
4753,
2595,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to turn off warning for no xml comment in VS 2005
===
At some point in time I turned on a setting in Visual Studio 2005 that produces a warning when methods/classes don't have an xml comment associated with them. I would like to turn this off, but can't seem to find the setting again. Anyone know where this is? | 0 | [
2,
184,
20,
805,
168,
3590,
26,
90,
23504,
6484,
19,
4611,
812,
800,
3726,
3726,
35,
109,
454,
19,
85,
31,
412,
27,
21,
2697,
19,
3458,
1120,
812,
30,
6700,
21,
3590,
76,
3195,
118,
1898,
160,
221,
22,
38,
57,
40,
23504,
6484,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Disable the scroll bar in MDI Parent
===
It is possible to prevent scroll bars from appearing when you drag a Mdichild outside the bounds of the Mdiparent in vb.net?
I would prefer the solution to not involve checking the posistion of the child form as there are too many forms to alter.
Obviously autoscroll is set to false on the mdiparent
and setting VScroll and HScroll to false doesn't work
thanks in advance | 0 | [
2,
1460,
579,
14,
12159,
748,
19,
8138,
49,
4766,
800,
3726,
3726,
32,
25,
938,
20,
2501,
12159,
6062,
37,
4870,
76,
42,
5501,
21,
8138,
49,
11287,
719,
14,
4138,
18,
16,
14,
8138,
49,
18908,
19,
13,
20468,
9,
2328,
60,
31,
83... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Ratio of time spent on coding versus unit testing
===
What is a typical estimate for coding unit tests given an estimate for coding new functionality? Is this different for estimates to maintain code? | 0 | [
2,
4825,
16,
85,
1111,
27,
13,
15458,
5706,
1237,
4431,
800,
3726,
3726,
98,
25,
21,
3874,
10243,
26,
13,
15458,
1237,
4894,
504,
40,
10243,
26,
13,
15458,
78,
18548,
60,
25,
48,
421,
26,
10527,
20,
4027,
1797,
60,
3,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I concatenate two multi-dimensional arrays in VB?
===
I've got this code:
rs1 = getResults(sSQL1)
rs2 = getResults(sSQL2)
rs1 and rs2 and 2D arrays. The first index represents the number of columns (static) and the second index represents the number of rows (dynamic).
I need to join the two arrays and store them in rs3. I don't know what type rs1 and rs2 are though. | 0 | [
2,
184,
107,
31,
1065,
9530,
8820,
81,
1889,
8,
7865,
7718,
18,
19,
13,
20468,
60,
800,
3726,
3726,
31,
22,
195,
330,
48,
1797,
45,
13,
1224,
165,
800,
164,
29955,
18,
5,
18,
18,
22402,
165,
6,
13,
1224,
135,
800,
164,
29955,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Get a handle on event listening in JavaScript
===
Last week we released Omniture's analytics code onto a large volume of web sites after tinkering and testing for the last week or so.
On almost all of our site templates, it works just fine. In a few scattered, unpredictable situations, there is a *crippling, browser-crashing experience* that *may* turn away some users.
We're not able to see a relationship between the crashing templates at this time, and while there *are* many ways to troubleshoot, the one that's confuddling us is related to event listeners.
The sites crash when any anchor on these templates is clicked. There isn't any inline JS, and while we firebug'ed our way through the attributes of the HTML, we couldn't find a discernable loop or issue that would cause this. (while we troubleshoot, you can experience this for yourself [here][1] [**warning**! clicking any link in the page will cause your browser to crash!])
**How do you determine if an object has a listener or not? How do you determine what will fire when event is triggered?**
> FYI, I'd love to set breakpoints, but
> *between Omnitures miserably obfuscated code and repeated browser
> crashes*, I'd like to research more
> thoroughly how I can approach this.
[1]: http://dv1.gatehousemedia.com/dev/omniture/index.html | 0 | [
2,
164,
21,
3053,
27,
807,
4948,
19,
8247,
8741,
800,
3726,
3726,
236,
877,
95,
261,
14677,
6418,
22,
18,
26320,
1797,
1204,
21,
370,
2310,
16,
2741,
3259,
75,
25438,
68,
17,
4431,
26,
14,
236,
877,
54,
86,
9,
27,
557,
65,
16,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Upgrade to Quartz 1.6 on JBoss 4.2.x
===
Is there a recommended way to upgrade Quartz in JBoss 4.2.x?
JBoss bundles quartz 1.5.2, but I have encountered issues that I want to avoid.
- http://jira.opensymphony.com/browse/QUARTZ-399
- http://jira.opensymphony.com/browse/QUARTZ-520
I would not want to patch quartz.jar in JBoss just to resolve the errors, but instead provide a new quartz.jar (plus associated configuration artifacts). The [Quartz 1.6 migration notes][1] only contain information specific to Quartz, and I could not find any additional information during my search.
I am quite sure somebody has already tried that, and hope that this person could share or provide some links.
[1]: http://www.opensymphony.com/quartz/wikidocs/Quartz%201.6.0.html#Quartz1.6.0-MigrationNotes
| 0 | [
2,
9483,
20,
20913,
137,
9,
379,
27,
487,
10349,
18,
268,
9,
135,
9,
396,
800,
3726,
3726,
25,
80,
21,
5773,
161,
20,
9483,
20913,
19,
487,
10349,
18,
268,
9,
135,
9,
396,
60,
487,
10349,
18,
10194,
18,
20913,
137,
9,
264,
9... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What PHP / MySQL drivers or Database Abstraction Layers Support Prepared Statements?
===
I am working on a project that is built on an extended version of the default PDO and PDOStatement classes and as such it uses PDO style named parameters instead of the "?" placeholder for variables.
However, the client is now requesting that we look into using a different driver because their version OS X Web Server apparently doesn't have the ability to install this driver easily. So is anyone aware of any other database abstraction libraries or database access drivers that I could easily extend with our current set of functionality that takes named parameters like PDO does? | 0 | [
2,
98,
13,
26120,
13,
118,
51,
18,
22402,
5783,
54,
6018,
23907,
9124,
555,
3268,
9015,
60,
800,
3726,
3726,
31,
589,
638,
27,
21,
669,
30,
25,
392,
27,
40,
1984,
615,
16,
14,
12838,
351,
537,
17,
351,
537,
3859,
1130,
2684,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you specify your Content Type in ASP.NET?
===
I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from within my application | 0 | [
2,
184,
107,
42,
19077,
154,
2331,
1001,
19,
28,
306,
9,
2328,
60,
800,
3726,
3726,
31,
22,
79,
19077,
68,
51,
9765,
4474,
28,
993,
15895,
8170,
15,
47,
32,
22,
18,
142,
795,
84,
14,
6511,
28,
21,
2331,
1001,
16,
1854,
118,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Saving - Order of operations in .NET (C#)
===
I have a btnSave_Click() function in my code-behind. If a user clicks the save button (image) I created, it calls this function:
protected void btnSave_Click(object sender, EventArgs e)
{
this.saveForm();
txtMessages.Text = "Save Complete";
}
The saveForm() function obviously saves the form (through stored procedures). Will .NET wait until that save is complete before displaying the "Save Complete" message, or is there something else I should be doing to let the user know when the save is done.
What's the best tutorial for this type of thing (i.e. spinner and notification of when save is complete)? | 0 | [
2,
7599,
13,
8,
389,
16,
1311,
19,
13,
9,
2328,
13,
5,
150,
5910,
6,
800,
3726,
3726,
31,
57,
21,
334,
38,
103,
19863,
1,
150,
10129,
5,
6,
1990,
19,
51,
1797,
8,
24878,
9,
100,
21,
4155,
10840,
18,
14,
2079,
5167,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get a single character in ruby without pressing enter
===
How can I get a single keyboard character from the terminal with ruby without pressing enter?
I tried Curses::getch, but that didn't really work for me. | 0 | [
2,
184,
20,
164,
21,
345,
925,
19,
10811,
366,
7196,
2830,
800,
3726,
3726,
184,
92,
31,
164,
21,
345,
8896,
925,
37,
14,
3855,
29,
10811,
366,
7196,
2830,
60,
31,
794,
7144,
18,
45,
45,
3060,
673,
15,
47,
30,
223,
22,
38,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to use strace ?
===
A collegue told me once that the last option when everything has failed to debug on linux was to use strace.
I tried to train learn the science there is behind this strange tool but I am not a system admin guru and I Don't really get results.
So what is it exactly and what does it do ?
How to use it ? In which case ?
How to understand the output and process it ?
In brief, how does this stuff work ? ***In simple words.*** | 0 | [
2,
184,
20,
275,
354,
7367,
13,
60,
800,
3726,
3726,
21,
9470,
62,
3982,
470,
55,
382,
30,
14,
236,
4255,
76,
796,
63,
1702,
20,
121,
16254,
27,
13024,
23,
20,
275,
354,
7367,
9,
31,
794,
20,
1528,
2484,
14,
762,
80,
25,
439... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How many parameters are too many?
===
Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand and maintain.
Of course, you could use a structured variable as a workaround: putting all those variables in a single struct and passing it to the routine. In fact, using structures to simplify parameter lists is one of the techniques described by Steve McConnell in *Code Complete*. But as he says:
>*Careful programmers avoid bundling data any more than is logically necessary.*
So if your routine has too many parameters or you use a struct to disguise a big parameter list, you're probably doing something wrong. That is, you're not keeping coupling loose.
My question is, **when can I consider a parameter list too big?** I think that more than 5 parameters, are too many. What do you think? | 0 | [
2,
184,
151,
12905,
50,
266,
151,
60,
800,
3726,
3726,
8275,
18,
92,
57,
12905,
15,
30,
22,
18,
90,
996,
9,
42,
92,
9267,
28,
151,
12905,
28,
42,
123,
376,
15,
47,
266,
151,
16,
105,
129,
233,
154,
8275,
1956,
20,
1369,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Mono IDE on Windows
===
Is there any IDE for coding mono on windows platform? | 0 | [
2,
4129,
13,
3448,
27,
1936,
800,
3726,
3726,
25,
80,
186,
13,
3448,
26,
13,
15458,
4129,
27,
1936,
2452,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I change the colours of a textarea in actionscript?
===
I create a TextArea in actionscript:
var textArea:TextArea = new TextArea();
I want it to have a black background. I've tried
textArea.setStyle("backgroundColor", 0x000000);
and I've tried
textArea.opaqueBackground = 0x000000;
but the TextArea stays white. What should I do?
| 0 | [
2,
184,
107,
31,
753,
14,
8739,
16,
21,
1854,
17760,
19,
1028,
8741,
60,
800,
3726,
3726,
31,
1600,
21,
1854,
17760,
19,
1028,
8741,
45,
4033,
1854,
17760,
45,
11969,
17760,
800,
78,
1854,
17760,
5,
6,
73,
31,
259,
32,
20,
57,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a definitive book on Python?
===
There have been several questions here on SO about resources for learning Python (which have been most helpful,) but I was wondering if there was some consensus in the Python community about what the definitive reference book was once you knew the language?
I'm hoping for something along the same lines as K&R's "The C Programming Language," or Larry Wall's "Programming Perl." Any suggestions would be most appreciated.
| 0 | [
2,
25,
80,
21,
15676,
360,
27,
20059,
60,
800,
3726,
3726,
80,
57,
74,
238,
2346,
235,
27,
86,
88,
2566,
26,
2477,
20059,
13,
5,
2140,
57,
74,
127,
15600,
15,
6,
47,
31,
23,
5712,
100,
80,
23,
109,
11205,
19,
14,
20059,
514,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how to customize print layout of SharePoint list item
===
i need to be able to produce a "pretty" printout of an individual list item's values, with the goals being:
* get rid of all navigation
* organize data as it would appear on a typical paper form (a customer requirement)
i'm avoiding using InfoPath at this time due to other issues (which i'll post separate questions for...)
**for example**, i have an individual list item that normally displays similar to the following <code>DispForm.aspx</code> *example*:
![SharePoint - DispForm.aspx][1]
i need a printed version (*<code>PrintForm.aspx</code>*??) that will display similar to the following *example*:
![SharePoint - PrintForm.aspx][2]
from what i can tell, i can't do this just by modifying/creating custom CSS.
it also seems that i can't quite do this just by creating my own "print" version of <code>DispForm.aspx</code>.
any suggestions, ideas, links would be very helpful.
[1]: http://farm4.static.flickr.com/3025/2919055776_bec7d520c9_o_d.png "SharePoint - DispForm.aspx"
[2]: http://farm4.static.flickr.com/3101/2918303785_ddfb28d32e_o_d.png "SharePoint - PrintForm.aspx" | 0 | [
2,
184,
20,
5816,
2952,
4793,
9106,
16,
1891,
3132,
968,
9101,
800,
3726,
3726,
31,
376,
20,
44,
777,
20,
2213,
21,
13,
7,
21542,
7,
4793,
1320,
16,
40,
1359,
968,
9101,
22,
18,
4070,
15,
29,
14,
1547,
142,
45,
1637,
164,
6681... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Disable 2 buttons on form submission ( ASP.NET )
===
I have this solution for a single button:
myButton.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(myButton).ToString());
Which works pretty well for one button, any ideas on how to expand this to 2 buttons?
| 0 | [
2,
1460,
579,
172,
12861,
27,
505,
10923,
13,
5,
28,
306,
9,
2328,
13,
6,
800,
3726,
3726,
31,
57,
48,
4295,
26,
21,
345,
5167,
45,
51,
811,
444,
9,
721,
14755,
18,
9,
14854,
5,
7,
218,
150,
10129,
7,
15,
13,
7,
1565,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
django development IDE
===
I have done a little django development but it has all been in a text editor. I was curious what more advanced development tools others are using in their django development. I am used to using Visual Studio for development and really like the intellisense, code completion, and file organization it provides and would like to find something (or a combination of tools) that would provide some of this in the django/python environment. | 0 | [
2,
3857,
14541,
522,
13,
3448,
800,
3726,
3726,
31,
57,
677,
21,
265,
3857,
14541,
522,
47,
32,
63,
65,
74,
19,
21,
1854,
1835,
9,
31,
23,
7686,
98,
91,
2255,
522,
4672,
654,
50,
568,
19,
66,
3857,
14541,
522,
9,
31,
589,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are there javascript libraries that will handle popout windows (i.e. like Meebo or Gmail chat windows)?
===
I could write this, but before I do, I wanted to check to see if there are existing solutions out there since it seems a lot of websites already do this, so I was wondering if there was a quick way to do this. | 0 | [
2,
50,
80,
8247,
8741,
8649,
30,
129,
3053,
1675,
1320,
1936,
13,
5,
49,
9,
62,
9,
101,
55,
62,
1192,
54,
489,
8079,
6615,
1936,
6,
60,
800,
3726,
3726,
31,
110,
2757,
48,
15,
47,
115,
31,
107,
15,
31,
417,
20,
2631,
20,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SVN checkout or export for production environment?
===
In a project I am working on, we have an ongoing discussion amongst the dev team - should the production environment be deployed as a checkout from the SVN repository or as an export?
The development environment is obviously a checkout, since it is constantly updated.
For the production, I'm personally for checking out the main trunk, since it makes future updates easier (just run svn update). However some of the devs are against it, as svn creates files with the group/owner and permissions of the svn process (this is on a linux OS, so those things matter), and also having the .svn directories on the production seem to them to be somewhat dirty.
Also, if it is a checkout - how do you push individual features to the production without including in-development code? do you use tags or branch out for each feature? any alternatives? | 0 | [
2,
13,
18,
16578,
2631,
1320,
54,
7487,
26,
637,
2307,
60,
800,
3726,
3726,
19,
21,
669,
31,
589,
638,
27,
15,
95,
57,
40,
6748,
5460,
4667,
14,
9664,
173,
13,
8,
378,
14,
637,
2307,
44,
6698,
28,
21,
2631,
1320,
37,
14,
13,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In SQL Server, Is it possible to insert into two tables at the same time?
===
My database contains three tables called `Object_Table`, `Data_Table` and `Link_Table`. The link table just contains two columns, the identity of an object record and an identity of a data record.
I want to copy the data from `DATA_TABLE` where it is linked to one given object identity and insert corresponding records into `Data_Table` and `Link_Table` for a different given object identity.
I **can** do this by selecting into a table variable and the looping through doing two inserts for each iteration.
Is this the best way to do it? | 0 | [
2,
19,
4444,
255,
8128,
15,
25,
32,
938,
20,
14692,
77,
81,
7484,
35,
14,
205,
85,
60,
800,
3726,
3726,
51,
6018,
1588,
132,
7484,
227,
13,
1,
23793,
1,
5924,
1,
15,
13,
1,
18768,
1,
5924,
1,
17,
13,
1,
6258,
1,
5924,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the most egregious pop culture perversion of programming?
===
I'm thinking along the lines of the virtual world representation in [Hackers][1].
[1]: http://www.imdb.com/title/tt0113243/ | 0 | [
2,
98,
22,
18,
14,
127,
13,
62,
17565,
5907,
1675,
1365,
416,
10898,
16,
3143,
60,
800,
3726,
3726,
31,
22,
79,
1440,
303,
14,
1560,
16,
14,
6599,
126,
5442,
19,
636,
22983,
445,
500,
2558,
165,
500,
9,
636,
165,
500,
45,
7775... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... |
Subtext install gives error in Medium trust level.
===
I am trying to install [Subtext][1] in a medium trust level environment (host: [Crystaltech][2]) and am getting the following error (see below). I was able to do the administration setup but when it tries to go to the blog for actual use, boom.
I know I could "upgrade" the environment to a full trust level but I want to understand why the error is happening and the ramifications of that moving to fUll trust before I do it.
To expand upon this question; what are the "Trust Levels"?
> Security Exception
>
> Description: The
> application attempted to perform an
> operation not allowed by the security
> policy. To grant this application the
> required permission please contact
> your system administrator or change
> the application's trust level in the
> configuration file.
>
> Exception Details:
> System.Security.SecurityException:
> Request for the permission of type
> 'System.Security.Permissions.SecurityPermission,
> mscorlib, Version=2.0.0.0,
> Culture=neutral,
> PublicKeyToken=b77a5c561934e089'
> failed.
>
> Source Error:
>
> An unhandled exception was generated
> during the execution of the current
> web request. Information regarding the
> origin and location of the exception
> can be identified using the exception
> stack trace below.
>
> Stack Trace:
>
>
> [SecurityException: Request for the
> permission of type
> 'System.Security.Permissions.SecurityPermission,
> mscorlib, Version=2.0.0.0,
> Culture=neutral,
> PublicKeyToken=b77a5c561934e089'
> failed.]
> System.Web.Security.UrlAuthorizationModule.CheckUrlAccessForPrincipal(String
> virtualPath, IPrincipal user, String
> verb) +47
> Subtext.Framework.UrlManager.UrlReWriteHandlerFactory.GetHandlerForUrl(String
> url) +66
> Subtext.Framework.UrlManager.UrlReWriteHandlerFactory.ProcessHandlerTypePage(HttpHandler
> item, HttpContext context) +143
> Subtext.Framework.UrlManager.UrlReWriteHandlerFactory.GetHandler(HttpContext
> context, String requestType, String
> url, String path) +340
> System.Web.HttpApplication.MapHttpHandler(HttpContext
> context, String requestType,
> VirtualPath path, String
> pathTranslated, Boolean useAppConfig)
> +175 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
> +128 System.Web.HttpApplication.ExecuteStep(IExecutionStep
> step, Boolean& completedSynchronously)
> +161
[1]: http://subtextproject.com/
[2]: http://www.crystaltech.com/ | 0 | [
2,
972,
11969,
16146,
2352,
7019,
19,
4152,
1527,
662,
9,
800,
3726,
3726,
31,
589,
749,
20,
16146,
636,
7563,
11969,
500,
2558,
165,
500,
19,
21,
4152,
1527,
662,
2307,
13,
5,
11694,
45,
636,
25905,
6524,
500,
2558,
135,
500,
6,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PHP session side-effect warning with global variables as a source of data
===
I'm trying to host a PHP web site that was given to me. I see this warning:
> **Warning:** Unknown: Your script possibly
> relies on a session side-effect which
> existed until PHP 4.2.3. Please be
> advised that the session extension
> does not consider global variables as
> a source of data, unless
> register_globals is enabled. You can
> disable this functionality and this
> warning by setting
> session.bug_compat_42 or
> session.bug_compat_warn to off,
> respectively. in **Unknown** on line **0**
What does this mean? How might I track down the source of this problem within the code? | 0 | [
2,
13,
26120,
3723,
270,
8,
21295,
3590,
29,
2062,
12157,
28,
21,
1267,
16,
1054,
800,
3726,
3726,
31,
22,
79,
749,
20,
2015,
21,
13,
26120,
2741,
689,
30,
23,
504,
20,
55,
9,
31,
196,
48,
3590,
45,
13,
1,
13,
1409,
1885,
29... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sorting a list into multiple vertical columns
===
Does anyone have a good algorithm for re-sorting an array of values (already pre-sorted) so that they can be displayed in multiple (N) columns and be read vertically? This would be implemented in .Net but I'd prefer something portable and not some magic function.
A good example of it working is the ASP.Net CheckBoxList control rendering as a table with the direction set to vertical.
Here's an example of the input and output:
Input:
Columns = 4
Array = {"A", "B", "C", "D", "E", "F", "G"}
Output:
ACEG
BDF
Thanks!
| 0 | [
2,
2058,
68,
21,
968,
77,
1886,
7035,
7498,
800,
3726,
3726,
630,
1276,
57,
21,
254,
9083,
26,
302,
8,
22843,
68,
40,
7718,
16,
4070,
13,
5,
192,
15193,
782,
8,
22843,
69,
6,
86,
30,
59,
92,
44,
6115,
19,
1886,
13,
5,
103,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C++ thread/process identifier
===
Is there a *portable* way of getting thread and/or process identifier (string, int, ...) with C++? | 0 | [
2,
272,
20512,
9322,
118,
16835,
25570,
800,
3726,
3726,
25,
80,
21,
1637,
1993,
579,
2483,
161,
16,
1017,
9322,
17,
118,
248,
953,
25570,
13,
5,
11130,
15,
19,
38,
15,
13,
9,
9,
9,
6,
29,
272,
20512,
60,
3,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Regex to match url end-of-line or "/" character
===
I have a url and I'm trying to match it to a regular expression to pull out some groups. The problem I'm having is that the url can either end _or_ continue with a "/" and more url text. I'd like to match urls like this:
- http://server/xyz/2008-10-08-4
- http://server/xyz/2008-10-08-4/
- http://server/xyz/2008-10-08-4/123/more
But not match something like this:
- http://server/xyz/2008-10-08-4-1
So, I thought my best bet was something like this:
/(.+)/(\d{4}-\d{2}-\d{2})-(\d+)[/$]
where the character class at the end contained either the "/" or the end-of-line. The character class doesn't seem to be happy with the "$" in there though. How can I best discriminate between these urls while still pulling back the correct groups?
| 0 | [
2,
7953,
1706,
20,
730,
287,
6362,
241,
8,
1041,
8,
1143,
54,
13,
7,
118,
7,
925,
800,
3726,
3726,
31,
57,
21,
287,
6362,
17,
31,
22,
79,
749,
20,
730,
32,
20,
21,
1290,
1803,
20,
2201,
70,
109,
1170,
9,
14,
1448,
31,
22,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I register a custom IObjectRenderer in log4net?
===
I'm doing some research into using log4net, and I found the *IObjectRenderer* interface interesting. It would allow us to control how types are logged and provide a different, possibly more user-friendly <code>ToString()</code> implementation. I just started looking at log4net though, and can't seem to find a logical way to programmatically set up the association between types and renderers.
I found that this can be set up in the XML configuration file by reading the <a href="http://logging.apache.org/log4net/release/manual/configuration.html#HC-13011608">manual</a>, but it didn't give me any hints about programmatically adding these. It seems to me that you'd rather have a programmatic object renderer in some cases, so I'm curious how to do this. | 0 | [
2,
184,
107,
31,
2243,
21,
5816,
31,
23793,
99,
16706,
106,
19,
6738,
300,
2328,
60,
800,
3726,
3726,
31,
22,
79,
845,
109,
527,
77,
568,
6738,
300,
2328,
15,
17,
31,
216,
14,
1637,
49,
23793,
99,
16706,
106,
2483,
6573,
4883,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to Show Ballon tooltip when mouse stops
===
I want to display a balloon style message when the users mouse stops on an element from more than say 1.5 seconds. And then if they move the mouse I would like to hide the balloon. I am trying to use some JavaScript code I found posted out in the wild. Here is the code I am using to detect when the mouse has stopped:
document.onmousemove = (function() {
var onmousestop = function() {
//code to show the ballon
};
}, thread;
return function() {
clearTimeout(thread);
thread = setTimeout(onmousestop, 1500);
};
})();
So I have two questions. One, does anyone have a recommended lightweight javascript balloon that will display at the cursor location. And two, the detect mouse stopped code works ok but I am stumped on how to detect that the mouse has started moving again and hide the balloon. Thanks... | 0 | [
2,
184,
20,
298,
1592,
218,
5607,
10169,
76,
7567,
6604,
800,
3726,
3726,
31,
259,
20,
3042,
21,
10876,
1034,
2802,
76,
14,
3878,
7567,
6604,
27,
40,
4520,
37,
91,
119,
395,
137,
9,
264,
2582,
9,
17,
94,
100,
59,
780,
14,
7567... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are there shortcut keys for ReSharper's Unit Test Runner?
===
For obvious productivity reasons, I make an effort of learning and using as many of the keyboard shortcuts for the various Re# commands.
However, it seems that the unit test runner does not have any associated shortcut keys. I want to be able to select certain tests and be able to run or debug them without resorting to grabbing the mouse each time. Is using the mouse my only option? | 0 | [
2,
50,
80,
502,
4118,
5534,
26,
302,
23646,
106,
22,
18,
1237,
1289,
4510,
60,
800,
3726,
3726,
26,
4674,
18211,
2932,
15,
31,
233,
40,
2150,
16,
2477,
17,
568,
28,
151,
16,
14,
8896,
502,
4118,
18,
26,
14,
617,
302,
5910,
142... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are best practices for using thread local storage in .NET?
===
I have a requirement in my application that I think can be met by using thread local storage, but I'm wondering if it's one of those things that's best to avoid.
I have read a few articles on the subject:
[http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=58][1]
[http://msdn.microsoft.com/en-us/library/system.threadstaticattribute(vs.80).aspx][2]
I know *how* to use it, I'm just wondering if I *should* use it.
Any advice, gotchas to be aware of?
[1]: http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=58
[2]: http://msdn.microsoft.com/en-us/library/system.threadstaticattribute(vs.80).aspx | 0 | [
2,
98,
50,
246,
5242,
26,
568,
9322,
375,
4326,
19,
13,
9,
2328,
60,
800,
3726,
3726,
31,
57,
21,
8981,
19,
51,
3010,
30,
31,
277,
92,
44,
798,
34,
568,
9322,
375,
4326,
15,
47,
31,
22,
79,
5712,
100,
32,
22,
18,
53,
16,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using stored procedures for calculations.
===
I am currently working on a project that will store specific financial information about our clients in a MS SQL database. Later, our users need to be able to query the database to return data from the clients based on certain criteria (eg. clients bigger then a certain size, clients in a certain geographical location) and total it to use as a benchmark. The database will be accessed by our financial software using a script.
I am currently writing the stored procedures for the database. What I am planning on doing is writing several different stored procedures based on the different types of criteria that can be used. They will return the client numbers.
The actual question I have is on the method of retrieving the data. I need to do several different calculations with the clients data. Is it better practice to have different stored procedures to do the calculation based on the client number and return the result or is it better to just have a stored procedure return all the information about the client and perform the calculations in the script?
Performance could be an issue because there will be a lot of clients in the database so I want the method to be reasonably efficient.
| 0 | [
2,
568,
8214,
8876,
26,
19186,
9,
800,
3726,
3726,
31,
589,
871,
638,
27,
21,
669,
30,
129,
1718,
1903,
1553,
676,
88,
318,
7421,
19,
21,
4235,
4444,
255,
6018,
9,
138,
15,
318,
3878,
376,
20,
44,
777,
20,
25597,
14,
6018,
20,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you set up database testing using the PHP SimpleTest framework
===
I am using SimpleTest, a PHP-based unit testing framework. I am testing new code that will handle storing and retrieving website comments from a database. I am at a loss for how to structure the project to test the database access code.
I am looking for any suggestions as to best practices for testing db code in a PHP application. Examples are really great. Sites for further reading are great.
Thank you kindly. :) | 0 | [
2,
184,
107,
42,
309,
71,
6018,
4431,
568,
14,
13,
26120,
1935,
10543,
6596,
800,
3726,
3726,
31,
589,
568,
1935,
10543,
15,
21,
13,
26120,
8,
1281,
1237,
4431,
6596,
9,
31,
589,
4431,
78,
1797,
30,
129,
3053,
25615,
17,
13,
623... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Cheap places for MSDN Licenses
===
A similar question has been asked: http://stackoverflow.com/questions/42466/msdn-subscriptions-on-the-cheap, but I am not interested in the solutions provided:
* I am not developing a product for sale, I am starting up a consulting company, so Empower is not an option.
* I have visited the links to MS regarding MSDN subscriptions and they _do not_ point to a way to get an inexpensive copy.
* I am not interested in suggestions that I become a MVP. Frankly, I'm desiring to focus on developing my company, not jumping through MS's hoops. | 0 | [
2,
9148,
1489,
26,
4235,
43,
103,
3962,
18,
800,
3726,
3726,
21,
835,
1301,
63,
74,
411,
45,
7775,
6903,
25325,
2549,
9990,
9,
960,
118,
24652,
18,
13722,
21339,
12626,
79,
18,
43,
103,
8,
7563,
8741,
5757,
8,
218,
8,
124,
8,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I slice an array in Excel VBA?
===
What function can I use in Excel VBA to slice an array? | 0 | [
2,
184,
107,
31,
12982,
40,
7718,
19,
20700,
566,
969,
60,
800,
3726,
3726,
98,
1990,
92,
31,
275,
19,
20700,
566,
969,
20,
12982,
40,
7718,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Advertised disk space vs actual disk space
===
Why is it that advertised disk space is almost always higher than the disk space reported by the UI? For example, I have an "80 gb" hard drive, but the iTunes UI indicates only 74. I usually see this as well with hard disks and the amount reported with the drive letter. | 0 | [
2,
19465,
8582,
726,
4611,
3463,
8582,
726,
800,
3726,
3726,
483,
25,
32,
30,
19465,
8582,
726,
25,
557,
550,
1184,
119,
14,
8582,
726,
1117,
34,
14,
13,
5661,
60,
26,
823,
15,
31,
57,
40,
13,
7,
2887,
14857,
7,
552,
1493,
15,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Updating an object within a Set
===
Let's say I have this type in my application:
public class A {
public int id;
public B b;
public boolean equals(Object another) { return this.id == ((A)another).id; }
}
and a <code>Set`<A`></code> structure. Now, I have an object of type <code>A</code> and want to do the following:
- If my <code>A</code> is within the set, update its field <code>b</code> to match my object.
- Else, add it to the set.
So checking if it is in there is easy enough (<code>contains</code>), and adding to the set is easy too. My question is <u>this</u>: how do I get a handle to update the object within? Interface <code>Set</code> doesn't have a <code>get</code> method, and the best I could think of was to remove the object in the set and add mine. another, even worse, alternative is to traverse the set with an iterator to try and locate the object.
I'll gladly take better suggestions... This includes the efficient use of other data structures.
Yuval =8-) | 0 | [
2,
71,
43,
1880,
40,
3095,
363,
21,
309,
800,
3726,
3726,
408,
22,
18,
395,
31,
57,
48,
1001,
19,
51,
3010,
45,
317,
718,
21,
13,
1,
317,
19,
38,
4924,
73,
317,
334,
334,
73,
317,
9827,
413,
210,
2747,
18,
5,
23793,
226,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Disable anchors in Chrome/WebKit/Safark
===
Consider the following code:
$("a").attr("disabled", "disabled");
In IE and FF, this will make anchors unclickable, but in WebKit based browsers (Google Chrome and Safari) this does nothing. The nice thing about the disabled attribute is that it is easily removed and does not effect the href and onclick attributes.
Do you have any suggestions on how to get the desired result. Answers must be:
- Easily be revertable, since I want to disable form input controls while I have an AJAX call running.
- Must work in IE, FF, and WebKit | 0 | [
2,
1460,
579,
6265,
18,
19,
13,
12985,
118,
14113,
13703,
118,
18,
2565,
15923,
800,
3726,
3726,
3563,
14,
249,
1797,
45,
5579,
5,
7,
58,
7,
6,
9,
10303,
139,
5,
7,
2906,
579,
43,
7,
15,
13,
7,
2906,
579,
43,
7,
6,
73,
19,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Safe to Run LogParser Against Live Production IIS Log?
===
Is it safe to run LogParser against our live production IIS log file?
Currently, I have been copying it over to another location and then running LogParser 2.2 against the log file.
Instead, I would really like to run it against the live data so that I can see changes to it immediately, however, I am a little concerned that it might cause issues.
Does anyone know if querying the live IIS logs would cause a problem? | 0 | [
2,
1834,
20,
485,
6738,
3574,
4104,
149,
515,
637,
595,
18,
6738,
60,
800,
3726,
3726,
25,
32,
1834,
20,
485,
6738,
3574,
4104,
149,
318,
515,
637,
595,
18,
6738,
3893,
60,
871,
15,
31,
57,
74,
4344,
68,
32,
84,
20,
226,
1474,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.Net compiliation
===
I have a question about asp.net compiling. I know the different ways you can compile but my question is with the default method. Microsoft says that pages and code are compiled on their first use and then cached. My question is, when does that cache clear... when the app pool recycles? Or, does it cache it until it's changed even through server reboots. Basically, if it compiles once and then caches it until it's changed I'm ok with it... if it recompiles with every reboot or app pool recycle I'm going to go the route of pre-compiling. | 0 | [
2,
28,
306,
9,
2328,
6479,
7502,
857,
800,
3726,
3726,
31,
57,
21,
1301,
88,
28,
306,
9,
2328,
24378,
9,
31,
143,
14,
421,
2847,
42,
92,
26561,
47,
51,
1301,
25,
29,
14,
12838,
2109,
9,
7099,
898,
30,
4434,
17,
1797,
50,
931... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which is more appropriate: getters and setters or functions?
===
Is it ever appropriate to abandon the "getMyValue()" and "setMyValue()" pattern of getters and setters if alternative function names make the API more obvious?
For example, imagine I have this class in C++:
<pre><code>
public class SomeClass {
private:
bool mIsVisible;
public:
void draw();
void erase();
}
</code></pre>
I could add functions to get/set "mIsVisible" like this:
<pre><code>
bool getVisible() { return mIsVisible; };
void setVisible(bool visible) {
if (!mIsVisible && visible) {
draw();
} else if (mIsVisible && !visible) {
erase();
}
mIsVisible = visible;
}
</pre></code>
However, it would be equally possible to use the following methods instead:
<pre><code>
bool isVisible() { return mIsVisible; };
void show() {
if (!mIsVisible) {
mIsVisible = true;
draw();
}
}
void hide() {
if (mIsVisible) {
mIsVisible = false;
erase();
}
}
</code></pre>
In brief, is it better to have a single "setVisible(bool)" method, or a pair of "show()" and "hide()" methods? Is there a convention, or is it purely a subjective thing? | 0 | [
2,
56,
25,
91,
4593,
45,
164,
6052,
17,
309,
6052,
54,
3719,
60,
800,
3726,
3726,
25,
32,
462,
4593,
20,
10416,
14,
13,
7,
3060,
915,
15165,
5,
6,
7,
17,
13,
7,
3554,
915,
15165,
5,
6,
7,
3732,
16,
164,
6052,
17,
309,
6052... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Better way to verify if an request accept json
===
Actually I'm using this way. Do you have a better?
private bool AcceptJson(HttpRequest request)
{
const string JsonType = "application/json";
if (request.ContentType.ToLower(CultureInfo.InvariantCulture).StartsWith(JsonType))
{
return true;
}
if (request.AcceptTypes.Select(t => t.ToLower(CultureInfo.InvariantCulture) == JsonType).Count() > 0)
{
return true;
}
return false;
}
| 0 | [
2,
574,
161,
20,
21012,
100,
40,
3772,
3440,
487,
528,
800,
3726,
3726,
1121,
31,
22,
79,
568,
48,
161,
9,
107,
42,
57,
21,
574,
60,
932,
1607,
1823,
3440,
728,
528,
5,
21127,
99,
10351,
3772,
6,
13,
1,
11608,
38,
3724,
487,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is your experience with Clearcase Multiserver?
===
We are considering using ClearCase Multisite to enable the offshore development team. The other option is the ClearCase Remote Client using the local (onshore) ClearCase installation. Has anyone had experiences using Multisite? Is the synchronization and management hassle worth offshore being able to use the fat client? | 0 | [
2,
98,
25,
154,
1496,
29,
1207,
10325,
1889,
10321,
106,
60,
800,
3726,
3726,
95,
50,
5154,
568,
1207,
10325,
1889,
9097,
20,
9240,
14,
13609,
522,
173,
9,
14,
89,
4255,
25,
14,
1207,
10325,
5388,
6819,
568,
14,
375,
13,
5,
218,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I convert a file's format from Unicode to ASCII using Python?
===
I use a 3rd party tool that outputs a file in Unicode format. However, I prefer it to be in ASCII. The tool does not have settings to change the file format.
What is the best way to convert the entire file format using Python? | 0 | [
2,
184,
107,
31,
8406,
21,
3893,
22,
18,
2595,
37,
28010,
20,
28,
1892,
49,
568,
20059,
60,
800,
3726,
3726,
31,
275,
21,
203,
897,
346,
5607,
30,
5196,
18,
21,
3893,
19,
28010,
2595,
9,
207,
15,
31,
6369,
32,
20,
44,
19,
28... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's on your C++ cheatsheet?
===
Every so often, I'll have to switch between languages for the majority of the code I write (whether for work or for play). I find that C++ is one of those languages that requires a lot of mental cache space, so if I take a long break from it, then I forget a lot of the details. Even things like adding items to an STL container or using the `static` storage keyword in various contexts get all jumbled up ("is it `add`, `append`, `push`...oh, it's `push_back`").
So what essential tidbits do you like to have loaded into your brain when you're writing C++? | 0 | [
2,
98,
22,
18,
27,
154,
272,
20512,
18585,
17627,
60,
800,
3726,
3726,
352,
86,
478,
15,
31,
22,
211,
57,
20,
5521,
128,
2556,
26,
14,
1698,
16,
14,
1797,
31,
2757,
13,
5,
26340,
26,
170,
54,
26,
418,
6,
9,
31,
477,
30,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Microsoft Certified Partner? Important to Developers?
===
My company has recently became a Microsoft Certified Partner and from a business perspective it helps us greatly as it provides the software licenses needed to continue development in a much more cost effective manner, and the added benefit of marketing abilities.
Now, I know that Microsoft Certified Partner status is important to many clients, but from a developers perspective, is it something that as a .NET developer you would look for when selecting an organization to potentially work for? Is it seen as a benefit where you know at a minimum that the organization will have access to the tools needed for the job?
| 0 | [
2,
7099,
6935,
2417,
60,
681,
20,
10168,
60,
800,
3726,
3726,
51,
237,
63,
1989,
178,
21,
7099,
6935,
2417,
17,
37,
21,
508,
6531,
32,
7778,
182,
5629,
28,
32,
1927,
14,
2306,
3962,
18,
851,
20,
1816,
522,
19,
21,
212,
91,
151... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
View state in a custom control
===
I am trying to create a custom control that a "gridview" like control but specifcally for business objects that implement certain custom interfaces.
In doing this I have come across the following problem.
I have a control that I have disabled viewstate on (and I don't want to re-enable it) and it has a child control that I want viewstate enabled on. I can't seem to get the viewstate on the child control to work since its parents is disabled. Does anyone have any ideas of how to get that to work?
| 0 | [
2,
1418,
146,
19,
21,
5816,
569,
800,
3726,
3726,
31,
589,
749,
20,
1600,
21,
5816,
569,
30,
21,
13,
7,
16375,
4725,
7,
101,
569,
47,
12737,
821,
150,
1326,
26,
508,
3916,
30,
8713,
1200,
5816,
6573,
18,
9,
19,
845,
48,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best way to use assembly versioning attributes?
===
The [AssemblyVersion][1] and [AssemblyFileVersion][2] attributes are the built-in way of handling version numbers for .NET assemblies. While the framework provides the ability to have the least significant parts of a version number (build and revision, in Microsoft terms) automatically determined, I find the method for this pretty weak, and no doubt have many others.
So I'd like to ask, what ways have been determined to do the best job of having version numbers that better reflect the actual version of a project? Do you have a pre-build script that sets part of the version to the date and time, or repository version for your working copy of a project? Do you just use the automatic generation provided by the framework? Or something else? What's the best way to manage assembly/file versioning?
[1]: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyfileversionattribute.aspx | 0 | [
2,
98,
25,
14,
246,
161,
20,
275,
1475,
615,
68,
13422,
60,
800,
3726,
3726,
14,
636,
29432,
10898,
500,
2558,
165,
500,
17,
636,
29432,
16877,
10898,
500,
2558,
135,
500,
13422,
50,
14,
392,
8,
108,
161,
16,
7988,
615,
2116,
26... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Synchronizing SVN repo from local to server?
===
So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup.
I do all of my development on my laptop so i don't always have an internet connection (hence the local SVN), so i was wondering if there is an easy way to push the changes i commit to my local repo onto the server repo? | 0 | [
2,
13,
16023,
3335,
13,
18,
16578,
302,
1638,
37,
375,
20,
8128,
60,
800,
3726,
3726,
86,
31,
57,
48,
375,
13,
18,
16578,
302,
1638,
30,
31,
589,
568,
26,
51,
9664,
170,
27,
21,
1498,
669,
15,
17,
31,
67,
57,
21,
13,
18,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Unified Navigation System for JSF (menus, breadcrumbs, sitemap)
===
We're using MyFaces, Richfaces & Restfaces to build a website on top of Oracle Stellant CMS. We're not using Site Studio. Are there any widgets/combination of widgets out there that could provide a unified navigation system? The site structure needs to be read from a DB table and CMS metadata fields, and we need a top tab menu, an expandable sidebar menu, breadcrumbs, and a sitemap (bonus points if it uses the sitemaps.org standard). We're currently using a combination of autonomous hand-rolled and off-the shelf widgets that aren't interoperating very well - the different navigation features aren't staying in sync as the site is navigated. | 0 | [
2,
11496,
8368,
329,
26,
487,
18,
410,
13,
5,
755,
267,
15,
5988,
25241,
4562,
15,
689,
15022,
6,
800,
3726,
3726,
95,
22,
99,
568,
51,
6413,
18,
15,
2042,
6413,
18,
279,
760,
6413,
18,
20,
1895,
21,
2271,
27,
371,
16,
15759,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why does TortoiseSVN (1.5.3) try to merge 1-Head when I pull from trunk?
===
I use TortoiseSVN 1.5.3 and VisualSVN 1.5.3 (Subversion 1.5.2)
Suppose that I create a new branch (/branches/branch1) of the trunk(/trunk)
Further suppose that someone (also using TortoiseSVN 1.5.3) merges their branch back into the trunk.
I try to perform a merge (right click working copy of branch1 and select merge followed by first type in appropriate dialog).
I select the trunk as the url.
I leave the revision box blank because I want the merge-tracking to determine which revisions I need to merge.
When I kick off the merge... either as a test or for real.. the output dialog suggests that revisions 1-head are to be the target of this operation. and as I allow the merge to continue I see virtually everything I have in the repository go through being "Added" or in the case of some folders, skipped ( although it does process their contents)
What a I doing wrong?.... I expected a single revision to be targeted and for this to be a very quick operation
| 0 | [
2,
483,
630,
25691,
18,
16578,
13,
5,
165,
9,
264,
9,
240,
6,
1131,
20,
12666,
137,
8,
1743,
76,
31,
2201,
37,
6436,
60,
800,
3726,
3726,
31,
275,
25691,
18,
16578,
137,
9,
264,
9,
240,
17,
3458,
18,
16578,
137,
9,
264,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to improve java knowledge?
===
I'm in college. Basically I have already learnt the syntax of java from books and have been programming in java for two years (Not every other day of course, because it's a computer science and not software engineering course). However, I find myself lacking sufficient knowledge of java and feel inadequate.
For example, none of the books taught me that if I override the Object equals method, then I should override the hashCode method as well (if I want the hash containers to work properly). It was only when I couldn't get my program to run as expected and having to debug that I discovered this. I find this unproductive because I felt that it's something that should have been taught, something that should have been known in the first place. I expect that as I do more programming in java I'll run into similar "should have known" kind of problems, so I would just like to pre-empt it by learning more.
Perhaps I have been reading the wrong books, so can you point me to some good java books to read. Or is it the case that books are just to teach you the syntax, while the intricacies of java and the API should just be discovered the hard way. Or I should just read the entire API (granted the API mentions "Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.") and I admit that I didn't read it the first time round. | 0 | [
2,
184,
20,
3545,
8247,
1918,
60,
800,
3726,
3726,
31,
22,
79,
19,
314,
9,
11374,
31,
57,
614,
2484,
38,
14,
22649,
16,
8247,
37,
964,
17,
57,
74,
3143,
19,
8247,
26,
81,
122,
13,
5,
1270,
352,
89,
208,
16,
674,
15,
185,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Bandlimited waveform generation
===
I am writing a software synthesizer and need to generate bandlimited, alias free waveforms in realtime at 44.1 kHz samplerate. Sawtooth waveform would do for now, since I can generate a pulse wave by mixing two sawtooths together, one inverted and phase shifted.
So far I've tried the following aproaches:
1. Precomputing one-cycle perfectly bandlimited waveform samples at different bandlimit frequencies at startup, then playing back the two closest ones mixed together. Works okay I guess, but does not feel very elegant. A lot of samples are needed or the "gaps" between them will be heard. Interpolating and mixing is also quite CPU intensive.
2. Integrating a train of DC compensated sinc pulses to get a sawtooth wave. Sounds great except that the wave drifts away from zero if you don't get the DC compensation exactly right (which I found to be really tricky). The DC problem can be reduced by adding a bit of leakage to the integrator, but then you loose the low frequencies.
So, my question is: What is the usual way this is done? Any suggested solution must be efficient in terms of CPU, since it must be done in realtime, for many voices at once. | 0 | [
2,
323,
23012,
2367,
4190,
2782,
800,
3726,
3726,
31,
589,
1174,
21,
2306,
11506,
17,
376,
20,
7920,
323,
23012,
15,
15794,
551,
2367,
4190,
18,
19,
683,
891,
35,
4576,
9,
165,
20325,
5717,
5487,
9,
441,
15808,
2367,
4190,
83,
107... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Reporting Services internationalization
===
We use SQL Server Reporting Services for our web reports. At the moment, our clients are all in the UK, so for each report, we set the Language property for the report to "English (United Kingdom)".
But now we have US and French clients. So, we'll need to change the language and currency for the French, and the date format and currency for the Americans. We want to keep one set of reports for all our clients.
What is the best way to do this? | 0 | [
2,
6670,
687,
294,
1829,
800,
3726,
3726,
95,
275,
4444,
255,
8128,
6670,
687,
26,
318,
2741,
2813,
9,
35,
14,
688,
15,
318,
7421,
50,
65,
19,
14,
1063,
15,
86,
26,
206,
1330,
15,
95,
309,
14,
816,
1354,
26,
14,
1330,
20,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Should you display what's happening in the unit test as it runs?
===
As I am coding my unit tests, I tend to find that I insert the following lines:
Console.WriteLine("Starting InteropApplication, with runInBackground set to true...");
try
{
InteropApplication application = new InteropApplication(true);
application.Start();
Console.WriteLine("Application started correctly");
}
catch(Exception e)
{
Assert.Fail(string.Format("InteropApplication failed to start: {0}", e.ToString()));
}
//test code continues ...
All of my tests are pretty much the same thing. They are displaying information as to why they failed, or they are displaying information about what they are doing. I haven't had any *formal* methods of how unit tests should be coded. Should they be displaying information as to what they are doing? Or should the tests be silent and not display any information at all as to what they are doing, and only display failure messages?
NOTE: The language is C#, but I don't care about a language specific answer. | 0 | [
2,
378,
42,
3042,
98,
22,
18,
4942,
19,
14,
1237,
1289,
28,
32,
1461,
60,
800,
3726,
3726,
28,
31,
589,
13,
15458,
51,
1237,
4894,
15,
31,
5480,
20,
477,
30,
31,
14692,
14,
249,
1560,
45,
8650,
9,
23716,
1143,
5,
7,
13680,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Do you count the Hrs spent on Bug fixes towards the scrum?
===
HI, I am new to the scrum methodology and looking for some help to get comfortable with the environment and wondering if there needs to be a bucket to track Developers and QA hours spent on deployments and bug fixes and retests. Seems like it could have major impact on the graph. | 0 | [
2,
107,
42,
2468,
14,
13,
3112,
18,
1111,
27,
6256,
6098,
160,
1016,
14,
26562,
60,
800,
3726,
3726,
4148,
15,
31,
589,
78,
20,
14,
26562,
18653,
17,
699,
26,
109,
448,
20,
164,
5733,
29,
14,
2307,
17,
5712,
100,
80,
2274,
20,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to edit CSS style of a div using C# in .NET
===
I'm trying to grab a div's ID in the code behind (C#) and set some css on it. Can I grab it from the DOM or do I have to use some kind of control?
<div id="formSpinner">
<img src="images/spinner.gif">
<p>Saving...</p>
</div>
| 0 | [
2,
184,
20,
9392,
272,
18,
18,
1034,
16,
21,
13,
12916,
568,
272,
5910,
19,
13,
9,
2328,
800,
3726,
3726,
31,
22,
79,
749,
20,
4931,
21,
13,
12916,
22,
18,
4924,
19,
14,
1797,
439,
13,
5,
150,
5910,
6,
17,
309,
109,
272,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the difference between AppDomain.CurrentDomain.BaseDirectory and Application.ExecutablePath in practice?
===
According to the MSDN, the BaseDirectory is where an AppDomain will look for DLLs to load, while ExecutablePath will provide the path to the original executable file (including file name). I know that one has the file name and the other does not. I know that if I create a new AppDomain I can give it a different path. But removing the file name from ExecutablePath and assuming I'm only using one AppDomain, in practice, what is the difference between those two paths? Will they always be the same (again, assuming only one AppDomain)? Is there an instance when they would be different? | 0 | [
2,
98,
22,
18,
14,
2841,
128,
4865,
537,
6232,
9,
17657,
537,
6232,
9,
8436,
10197,
93,
17,
3010,
9,
1706,
17194,
5924,
8353,
19,
1345,
60,
800,
3726,
3726,
496,
20,
14,
4235,
43,
103,
15,
14,
1000,
10197,
93,
25,
113,
40,
486... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the preferred way to do a CSS rollover?
===
When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach? | 0 | [
2,
98,
25,
14,
5981,
161,
20,
107,
21,
272,
18,
18,
3001,
2549,
60,
800,
3726,
3726,
76,
2697,
71,
21,
3001,
2549,
1590,
19,
13,
15895,
15,
50,
80,
186,
5800,
13,
5,
248,
4175,
5660,
18,
6,
20,
845,
32,
19,
272,
18,
18,
46... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I submit a bug to microsoft?
===
This is definitely a lazy web question (the answer wasn't apparently clear in the first 3 google hits I got). How do I submit a bug report to Microsoft (product is SQL Server 2005, if that matters)? | 3 | [
2,
184,
107,
31,
12298,
21,
6256,
20,
7099,
60,
800,
3726,
3726,
48,
25,
4939,
21,
16792,
2741,
1301,
13,
5,
124,
1623,
526,
22,
38,
3083,
1207,
19,
14,
64,
203,
8144,
3858,
31,
330,
6,
9,
184,
107,
31,
12298,
21,
6256,
1330,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... |
Designing Web Sites with Ruby on Rails
===
I'm just learning Ruby on Rails. I've read a few books, I've watched lots of Railscasts, I've looked at some examples.
However, when working on my first serious project with Rails, I've gotten hung up on how to properly implement some very basic web site features that most tutorials I've seen lack.
For instance: Navigation menus. Lots of tutorials on how to make a static one, but what about dynamic? If I want to make a navigation bar that's different across pages, how would I go about doing that?
I think that the best way to learn things like this is by seeing example code. Are there any good open sourced sites in RoR? Any example code that I can check out? | 0 | [
2,
15026,
2741,
3259,
29,
10811,
27,
2240,
18,
800,
3726,
3726,
31,
22,
79,
114,
2477,
10811,
27,
2240,
18,
9,
31,
22,
195,
1302,
21,
310,
964,
15,
31,
22,
195,
1634,
7503,
16,
2240,
18,
6146,
18,
15,
31,
22,
195,
292,
35,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get list of all tables in a database using TSQL?
===
What is the best way to get the names of all of the tables in a specific database on SQL Server? | 0 | [
2,
184,
107,
31,
164,
968,
16,
65,
7484,
19,
21,
6018,
568,
13,
38,
18,
22402,
60,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
164,
14,
1817,
16,
65,
16,
14,
7484,
19,
21,
1903,
6018,
27,
4444,
255,
8128,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
PHP website, should I develop into a Linux distribution instead of Windows?
===
In few months I start a project in PHP and I am hesitating to do like usual : develop on my Windows Vista 64bits machine. Since I know few things on Linux, I think it can be a good way to learn by working on a Linux distribution.
**Do you think it's a good idea or not?** I would run a [VirtualBox][1] with Ubuntu (on my Vista64bits). I was thinking to install [XAMPP][2] to be able to develop in PHP.
If you think it's a good idea, feel free to suggest me some tutorial about what I should know with Virtualizing an OS, or Linux/dev.
[1]: http://www.virtualbox.org/
[2]: http://www.apachefriends.org/en/xampp-linux.html | 0 | [
2,
13,
26120,
2271,
15,
378,
31,
2803,
77,
21,
13024,
2523,
700,
16,
1936,
60,
800,
3726,
3726,
19,
310,
818,
31,
799,
21,
669,
19,
13,
26120,
17,
31,
589,
24,
18,
242,
1880,
20,
107,
101,
3820,
13,
45,
2803,
27,
51,
1936,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tool for finding package namespace conflicts in java code
===
We have a number of projects that use the same and/or similar package names. Many or these projects will build jar files that are used by other projects. We have found a number of foo.util foo.db and foo.exceptions where the same class names are being used leading to name space conflicts.
Does anyone know of a tool that will search a set of java code bases and automatically find name space conflicts and ambiguous imports?
| 0 | [
2,
5607,
26,
3007,
6030,
204,
5582,
10344,
19,
8247,
1797,
800,
3726,
3726,
95,
57,
21,
234,
16,
2314,
30,
275,
14,
205,
17,
118,
248,
835,
6030,
1817,
9,
151,
54,
158,
2314,
129,
1895,
5112,
6488,
30,
50,
147,
34,
89,
2314,
9... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you version your database schema?
===
How do you prepare your SQL deltas? do you manually save each scehma changing SQL to a delta folder, or do you have some kind of an automated diffing process?
I am interested in conventions for versioning database schema along with the source code. Perhaps a pre-commit hook that diffs the schema?
Also, what options for diffing deltas exist aside from [DbDeply][1]?
[1]: http://dbdeploy.com/ | 0 | [
2,
184,
107,
42,
615,
154,
6018,
23874,
60,
800,
3726,
3726,
184,
107,
42,
5723,
154,
4444,
255,
6395,
18,
60,
107,
42,
23671,
2079,
206,
13,
18,
1105,
22018,
4226,
4444,
255,
20,
21,
6395,
19294,
15,
54,
107,
42,
57,
109,
825,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
loops and garbage collection
===
I am working on a web application and I have run into the following situation.
Dim a as Object
Dim i as Integer = 0
Try
For i=1 to 5
a = new Object()
'Do stuff
a = Nothing
Next
Catch
Finally
a = Nothing
End Try
Do i need to do the a=Nothing in the loop or will the garbage collector clean a up?
| 0 | [
2,
19661,
17,
15024,
1206,
800,
3726,
3726,
31,
589,
638,
27,
21,
2741,
3010,
17,
31,
57,
485,
77,
14,
249,
1858,
9,
5937,
21,
28,
3095,
5937,
31,
28,
13820,
800,
713,
1131,
26,
31,
3726,
165,
20,
331,
21,
800,
78,
3095,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Flash exporting/publishing time
===
What are the main reasons for having ridiculously long export times for a simple flash movie to swf? I have no unnecessary images or symbols, everything possible is set to lower than low and it still takes 10 minutes and upwards to export a 30 second animation at 24 fps. I have even created a new fla and pasted everything in there, to find out if it isn't maybe just a bug in flash. All other animations I've exported take a normal amount of time.
System specifications:
1GB DDR2 RAM
Intel Pentium D 3.4GHz
Should I upgrade my system?
Could it have something to do with having many symbols within symbols? | 0 | [
2,
4433,
7487,
68,
118,
17848,
18491,
68,
85,
800,
3726,
3726,
98,
50,
14,
407,
2932,
26,
452,
9080,
102,
175,
7487,
436,
26,
21,
1935,
4433,
1308,
20,
13,
18,
15263,
60,
31,
57,
90,
16435,
3502,
54,
9794,
15,
796,
938,
25,
30... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Phone Number Verification
===
I have a website form that requires a US phone number input for follow up purposes, and this is very necessary in this case. I want try to eliminate users entering junk data *330-000-0000*. I have seen some options of third parties that validate phone numbers for you, however idk if that is the best option for this situation. However if you have every used one of these third parties and can make a recommendation that would also be greatly appreciated here.
However I am considering checking the number against a set of rules to just try to narrow down the junk phone numbers received.
- not a 555 number
- does not contain 7 identical digits
- valid area code (this is readily available)
- not a 123-1234 or 123-4567
- I guess I could also count out 867-5309 (heh*)
Would this result in any situations that you can think of that would not allow a user to enter their phone number? Could you think of any other rules that a phone number should not contain? Any other thoughts? | 0 | [
2,
1132,
234,
25056,
800,
3726,
3726,
31,
57,
21,
2271,
505,
30,
4781,
21,
182,
1132,
234,
6367,
26,
1740,
71,
4612,
15,
17,
48,
25,
253,
2378,
19,
48,
610,
9,
31,
259,
1131,
20,
10628,
3878,
4604,
12096,
1054,
1637,
13509,
8,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C/C++ Web Server Library?
===
I'm looking for a well-written, flexible library written in C or C++ (I'm writing my apps in C++) that can be used to embed an relatively simple HTTP server into my applications. Ultimately I will use this for application monitoring and control.
There are a number of great client-side libraries (e.g. libwww, neon, curl) but I'm struggling to find a good solution for the server-side. I'm sure other folks have done this before, so I'd love to hear what folks have done and what has worked and what hasn't. | 0 | [
2,
272,
118,
150,
20512,
2741,
8128,
1248,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
134,
8,
6390,
15,
13568,
1248,
642,
19,
272,
54,
272,
20512,
13,
5,
49,
22,
79,
1174,
51,
4865,
18,
19,
272,
20512,
6,
30,
92,
44,
147,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I take preview of documents?
===
I'm working on a file sharing website, I need a way to take screenshots of the uploaded documents.
The site will support several file formarts, from plain text to office documents (doc, xls, ppt, ...), videos (mpeg, avi, ...), images (jpg, gif, png, ...) PDF's, Open Office, etc.
Each document need to have a "preview" of it, the good part is that the client wants the following formats to have previews: doc, xls, ppt and pdf. The other files format are optionals, they'll have preview if I can find a way to take them.
Additionally, the images are not a problem because I just need to include a thumbnail in the preview. Also I will use FFMPEG for converting videos to FLV so I can use it for taking screenshots of the videos too.
I was thinking in using [JODconverter][1] which supports Office and Open Office formats, I don't know if it converts to JPG but at least it converts to PDF which is somenthing.
The site is being build in PHP under Drupal 5 running in a dedicated Debian server so in case that I choose JOD I'll use it as a webservice running in a virtual server in the same machine.
Does anybody knows a better application or method for converting files to images?
Any help will be greatly appreciated, thanks in advance!
Javier
[1]: http://www.artofsolving.com/opensource/jodconverter | 0 | [
2,
184,
92,
31,
247,
16121,
16,
4374,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
3893,
6126,
2271,
15,
31,
376,
21,
161,
20,
247,
2324,
7868,
18,
16,
14,
23782,
4374,
9,
14,
689,
129,
555,
238,
3893,
505,
13448,
15,
37,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Return 'null' or throw exception
===
I have a method that is suppose to return an object if it is found.
If it is not found, should I:
a) return null
b) throw an exception
c) other | 0 | [
2,
788,
13,
22,
4215,
211,
22,
54,
3814,
5391,
800,
3726,
3726,
31,
57,
21,
2109,
30,
25,
5787,
20,
788,
40,
3095,
100,
32,
25,
216,
9,
100,
32,
25,
52,
216,
15,
378,
31,
45,
21,
6,
788,
16203,
334,
6,
3814,
40,
5391,
272,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
writing optimization function
===
I'm trying to write a tennis reservation system and I got stucked with this problem.
Let's say you have players with their prefs regarding court number, day and hour.
Also every player is ranked so if there is day/hour slot and there are several players
with preferences for this slot the one with top priority should be chosen.
I'm thinking about using some optimization algorithms to solve this problem but I'am not sure what would be the best cost function and/or algorithm to use.
Any advice?
One more thing I would prefer to use Python but some language-agnostic advice would be welcome also.
Thanks!
| 0 | [
2,
1174,
21597,
1990,
800,
3726,
3726,
31,
22,
79,
749,
20,
2757,
21,
3637,
8733,
329,
17,
31,
330,
4549,
69,
29,
48,
1448,
9,
408,
22,
18,
395,
42,
57,
1007,
29,
66,
782,
11754,
3467,
495,
234,
15,
208,
17,
1671,
9,
67,
352... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Worst technobabble you've ever heard
===
Following the <a href="http://stackoverflow.com/questions/175074/whats-the-most-egregious-pop-culture-perversion-of-programming">Egregious pop culture perversion of programming</a>, what is the most outlandishly insane technobabble you have ever heard, either in fiction or real life?
Extra points to those unfortunates whose real life stories beat Hollywood.
Note: feel free to sketch out what would be necessary for such gibberish to actually work. | 2 | [
2,
4126,
18203,
969,
13784,
42,
22,
195,
462,
752,
800,
3726,
3726,
249,
14,
13,
1,
58,
746,
14057,
3726,
7,
21127,
6903,
25325,
2549,
9990,
9,
960,
118,
24652,
18,
11698,
8235,
3828,
118,
608,
18,
8,
124,
8,
4630,
8,
62,
17565,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to convert milliseconds into human readable form?
===
I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second.
For example:
10 Days, 5 hours, 13 minutes, 1 second.
I'm pretty sure that the trick is fairly simple, but I'm slammed today so I thought I'd reach out to SO's geniuses for a quick fix.
Thanks :)
EDIT: The language I'm using does not have this built in, otherwise I'd use it.
| 0 | [
2,
184,
20,
8406,
13436,
5007,
18,
77,
585,
1302,
579,
505,
60,
800,
3726,
3726,
31,
376,
20,
8406,
40,
17237,
2006,
16,
13436,
5007,
18,
77,
509,
15,
974,
15,
902,
153,
9,
26,
823,
45,
332,
509,
15,
331,
974,
15,
539,
902,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is named pipes?
===
I know a little bit about this but wanted some more information. What is it and how does it work?
Context happens to be SQL Server | 0 | [
2,
98,
25,
377,
14104,
60,
800,
3726,
3726,
31,
143,
21,
265,
1142,
88,
48,
47,
417,
109,
91,
676,
9,
98,
25,
32,
17,
184,
630,
32,
170,
60,
4141,
5531,
20,
44,
4444,
255,
8128,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
jQuery UI droppables - changing the image that's dropped
===
I'm working with [jQuery UI's droppables][1] and am wondering what the best way to make the dropped clone use a different `IMG SRC` than the item being dropped.
In the photo manager demo there, the thumbnail gets dropped into a slot that's the same size. I'd like to drop a large image into a small slot, and as such I need its clone to use my thumbnail instead of the full image.
Any suggestions on the best way to handle this?
[1]: http://dev.jquery.com/view/tags/ui/latest/demos/functional/#ui.droppable | 0 | [
2,
487,
8190,
93,
13,
5661,
2804,
306,
579,
18,
13,
8,
4226,
14,
1961,
30,
22,
18,
1539,
800,
3726,
3726,
31,
22,
79,
638,
29,
636,
728,
8190,
93,
13,
5661,
22,
18,
2804,
306,
579,
18,
500,
2558,
165,
500,
17,
589,
5712,
98,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Starting external process during integration testing in maven
===
I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests are finished, but is not necessary.
Is there a Maven plugin to accomplish this? Other ideas? | 0 | [
2,
1422,
4886,
953,
112,
8078,
4431,
19,
1216,
3124,
800,
3726,
3726,
31,
259,
1524,
14904,
8078,
4431,
26,
21,
1216,
3124,
669,
9,
14,
8078,
4894,
4077,
30,
40,
4886,
13,
5,
27035,
8,
19374,
6,
625,
25,
373,
115,
946,
9,
5628,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
One entity shared across two web services?
===
I'm working on a project where I have 2 web services that need the same entity. The 2 web services are on the same server so on the back-end, they share the same classes.
On the front-end side, my code consumes *both* web services and sees the entities from both services as separate (in different namespaces) so I can't use the entity across both services.
Does anyone know of a way to allow this to work in .NET 2.0?
I've done this with my entity:
[XmlType(TypeName = "Class1", Namespace = "myNamespace")]
public class Class1
{
public int field;
}
Hoping that my IDE would somehow "know" that the class is the same on both web services so that it wouldn't create separate entities for both classes, but no luck.
Is this possible to do with .NET 2.0 web services? | 0 | [
2,
53,
9252,
2592,
464,
81,
2741,
687,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
669,
113,
31,
57,
172,
2741,
687,
30,
376,
14,
205,
9252,
9,
14,
172,
2741,
687,
50,
27,
14,
205,
8128,
86,
27,
14,
97,
8,
2451,
15,
59,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to find where a ruby method is defined (at runtime)?
===
We recently had a problem where, after a series of commits had occurred, a backend process failed to run. Now, we were good little boys and girls and ran rake test after every check-in but due to some oddities in Rails' library loading, it only occurred when you ran it directly from mongrel in production mode.
Tracked the bug down and it was due to a new Rails gem overwriting a method in the String class in a way that broke one narrow use in runtime Rails code.
Anyway, long story short -- is there a way to, at runtime, ask Ruby **where** a method has been defined? Something like whereami( :foo ) ? I cannot guarantee the source lives in my project, so grepping for 'def foo' won't necessarily give me what I need (not to mention if I have *many* def foo's, sometimes I don't know until runtime which one I may be using).
Thanks!!
| 0 | [
2,
184,
20,
477,
113,
21,
10811,
2109,
25,
2811,
13,
5,
721,
485,
891,
6,
60,
800,
3726,
3726,
95,
1989,
41,
21,
1448,
113,
15,
75,
21,
231,
16,
9686,
18,
41,
2437,
15,
21,
97,
2451,
953,
1702,
20,
485,
9,
130,
15,
95,
46,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DB2 Online Database Backup
===
I have currently 200+ GB database that is using the DB2 built in backup to do a daily backup (and hopefully not restore - lol) But since that backup now takes more than 2.5 hours to complete I am looking into a Third party Backup and Restore utility. The version is 8.2 FP 14 But I will be moving soon to 9.1 and I also have some 9.5 databases to backup and restore. What is the best tools that you have used for this purpose?
Thanks!
| 0 | [
2,
13,
9007,
135,
2087,
6018,
10119,
800,
3726,
3726,
31,
57,
871,
2327,
2430,
14857,
6018,
30,
25,
568,
14,
13,
9007,
135,
392,
19,
10119,
20,
107,
21,
1954,
10119,
13,
5,
290,
13416,
52,
8454,
13,
8,
13,
20248,
6,
47,
179,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can you use keyword explicit to prevent automatic conversion of method parameters?
===
I know you can use C++ keyword 'explicit' for constructors of classes to prevent an automatic conversion of type. Can you use this same command to prevent the conversion of parameters for a class method?
I have two class members, one which takes a bool as a param, the other an unsigned int. When I called the function with an int, the compiler converted the param to a bool and called the wrong method. I know eventually I'll replace the bool, but for now don't want to break the other routines as this new routine is developed.
Thanks | 0 | [
2,
92,
42,
275,
1246,
9587,
14990,
20,
2501,
6715,
6263,
16,
2109,
12905,
60,
800,
3726,
3726,
31,
143,
42,
92,
275,
272,
20512,
1246,
9587,
13,
22,
6899,
16927,
38,
22,
26,
6960,
248,
18,
16,
2684,
20,
2501,
40,
6715,
6263,
16,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
I want to use an LDAP client here at work to talk to Active Directory. How can I discover on my own the IP I should be aiming at?
===
I know I could just ask, but that would involve bureaucratic entanglements.... | 0 | [
2,
31,
259,
20,
275,
40,
644,
20472,
6819,
235,
35,
170,
20,
930,
20,
1348,
16755,
9,
184,
92,
31,
6297,
27,
51,
258,
14,
15735,
31,
378,
44,
15442,
35,
60,
800,
3726,
3726,
31,
143,
31,
110,
114,
1349,
15,
47,
30,
83,
8847,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... |
How do i designate in XSD that an element only contains CDATA?
===
How can I represent the following in XSD.
<price-update>
<![CDATA[
arbitrary data goes here
]]>
</price-update>
| 0 | [
2,
184,
107,
31,
24124,
19,
993,
18,
43,
30,
40,
4520,
104,
1588,
1745,
4375,
60,
800,
3726,
3726,
184,
92,
31,
3501,
14,
249,
19,
993,
18,
43,
9,
13,
1,
24137,
8,
576,
8209,
1,
13,
1,
187,
2558,
150,
18768,
2558,
17237,
105... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... |
What iclass handles the popup/notification windows on iphone?
===
I'm looking for the class name of the popup/message windows on the iPhone (it's a blueish window that comes up when you have a missed call, or a message comes in for example.)
| 0 | [
2,
98,
31,
1898,
3053,
18,
14,
1675,
576,
118,
1270,
4634,
1936,
27,
21024,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
14,
718,
204,
16,
14,
1675,
576,
118,
3845,
18,
1303,
1936,
27,
14,
21024,
13,
5,
242,
22,
18,
21,
705,
15... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Script all stored procedures in Management Studio 2005
===
In Enterprise Manager you could script all SPs in a database through the right click menu, is there a way to do it in Management Studio? | 0 | [
2,
3884,
65,
8214,
8876,
19,
1097,
1120,
812,
800,
3726,
3726,
19,
6002,
1382,
42,
110,
3884,
65,
3782,
18,
19,
21,
6018,
120,
14,
193,
10840,
11379,
15,
25,
80,
21,
161,
20,
107,
32,
19,
1097,
1120,
60,
3,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Is there a connection between SourceSafe (version control) and SharePoint (collaboration)?
===
Or are they two distinct applications that are not related? | 0 | [
2,
25,
80,
21,
2760,
128,
1267,
18166,
13,
5,
10898,
569,
6,
17,
1891,
3132,
13,
5,
7771,
20906,
857,
6,
60,
800,
3726,
3726,
54,
50,
59,
81,
4421,
3767,
30,
50,
52,
1597,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Why the memory usage of a .NET application seems to drop as it is minimized ?
===
For example, launch Paint.NET. Then have a look on its memory usage with Task Manager: on my computer, it uses 36Mb.
Then minimize Paint.NET: now it takes only a few more than 1Mb.
This happens with every .NET Application. What happens when a .NET Application is minimized ? Is a GC occurring ? | 0 | [
2,
483,
14,
1912,
7514,
16,
21,
13,
9,
2328,
3010,
2206,
20,
2804,
28,
32,
25,
16713,
43,
13,
60,
800,
3726,
3726,
26,
823,
15,
3394,
5107,
9,
2328,
9,
94,
57,
21,
361,
27,
82,
1912,
7514,
29,
3005,
1382,
45,
27,
51,
1428,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best application of .dispose()
===
This is something that I have never fully grasped in .NET as to the correct application of the .dispose() method.
Say I have something like
Public Class someClass()
sub someMethod
' do some stuff tying uop resources
end sub
End Class
public class mainApp
dim _class as new SomeClass
_class.someMethod()
End Class
In all cases is it good practice to implement a dispose method, and if so what should go in there?
If it is not the case that every class should have dispose method (which my gut feeling says the shoudln't) what classes should? I have alsways thought anything which may tie up a resource (i.e. connection, datareader etc) should have a .dispose() which would unallocate these resources.
Also how would you enforce a calling into calling the .dispose() method?
| 4 | [
2,
98,
25,
14,
246,
3010,
16,
13,
9,
2906,
15690,
5,
6,
800,
3726,
3726,
48,
25,
301,
30,
31,
57,
243,
2337,
17444,
19,
13,
9,
2328,
28,
20,
14,
4456,
3010,
16,
14,
13,
9,
2906,
15690,
5,
6,
2109,
9,
395,
31,
57,
301,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there an easy way to animate the ScrollableControl.ScrollControlIntoView method?
===
I have a form where controls are dynamically added to a Panel. However, when they do so, they are many times added below the fold (bottom of the container). It's nice that the .NET Framework provides this ScrollControlIntoView method, however, for added usability, it would also be nice if there was an easy way to animate so that it is easy for the user to understand that the Panel was automatically scrolled.
Has anyone ever encountered this or have any ideas as to how to tackle it? | 0 | [
2,
25,
80,
40,
2010,
161,
20,
14487,
591,
14,
12159,
579,
12898,
9,
3862,
8694,
12898,
108,
262,
4725,
2109,
60,
800,
3726,
3726,
31,
57,
21,
505,
113,
8671,
50,
7782,
1326,
905,
20,
21,
4113,
9,
207,
15,
76,
59,
107,
86,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tools/Components for building a Survey Application
===
We are designing a survey application with the following features
1. The users will be able to select questions from a set of predefined questions.
2. Each question has a question type defined which dictates the type of answer (multiple choice, DB lookup, free text etc)
3. The user can create a hierarchy of sections with multiple questions with in each section.
4. The responses of the survey will be stored to an SQL server database.
There is also a requirement to generate an output document from each survey response.
We are planning to implement this application using ASP.net.
I am looking for suggestions which will help us reduce the development effort. Is there any commercial/open source application which we can customize for our needs? is there any ready-made components which helps creation of dynamic ASP.net pages?
| 0 | [
2,
4672,
118,
11103,
849,
14128,
26,
353,
21,
3431,
3010,
800,
3726,
3726,
95,
50,
15026,
21,
3431,
3010,
29,
14,
249,
967,
137,
9,
14,
3878,
129,
44,
777,
20,
5407,
2346,
37,
21,
309,
16,
782,
13439,
2346,
9,
172,
9,
206,
130... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I create a MySQL JOIN query for only selecting the rows in one table where a certain number of references to that row exist in another table?
===
I have two tables in my database, called *ratings* and *movies*.
**Ratings:**
> `| id | movie_id | rating |`
**Movies:**
> `| id | title |`
A typical movie record might be like this:
> `| 4 | Cloverfield (2008) |`
and there may be several rating records for Cloverfield, like this:
> `| 21 | 4 | 3 |` (rating number 21, on movie number 4, giving it a rating of 3)
> `| 22 | 4 | 2 |` (rating number 22, on movie number 4, giving it a rating of 2)
> `| 23 | 4 | 5 |` (rating number 23k on movie number 4, giving it a rating of 5)
**The question:**
How do I create a JOIN query for only selecting the rows in the movie table that have more than `x` number of ratings in the ratings table? For example, in the above example if Cloverfield only had one rating in the ratings table and `x` was 2, it would not be selected.
Thanks for any help or advice! | 0 | [
2,
184,
92,
31,
1600,
21,
51,
18,
22402,
1865,
25597,
26,
104,
20764,
14,
11295,
19,
53,
859,
113,
21,
1200,
234,
16,
7231,
20,
30,
3131,
3182,
19,
226,
859,
60,
800,
3726,
3726,
31,
57,
81,
7484,
19,
51,
6018,
15,
227,
1637,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WS_EX_TOOLWINDOW jumping to background on window destroy
===
Weird issue:
1. Open a large notepad window
2. create a toolwindow (style WS_EX_TOOLWINDOW)
3. create 2 more windows (normal overlapped) (WS_OVERLAPPED)
4. close those 2 overlapped windows (child of desktop or the toolwindow)
5. the toolwindow jumps behind the notepad window
Does anyone know why this is the case? Or what I could be doing wrong? I would say 'bug in windows', but that is rarely the case. | 0 | [
2,
619,
18,
1,
1706,
1,
20799,
27508,
8759,
20,
2395,
27,
1463,
4407,
800,
3726,
3726,
5455,
1513,
45,
137,
9,
368,
21,
370,
1945,
8240,
1463,
172,
9,
1600,
21,
5607,
27508,
13,
5,
4381,
619,
18,
1,
1706,
1,
20799,
27508,
6,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a (built-in) way in JavaScript to check if a string is a valid number?
===
I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function? | 0 | [
2,
25,
80,
21,
13,
5,
8607,
8,
108,
6,
161,
19,
8247,
8741,
20,
2631,
100,
21,
3724,
25,
21,
7394,
234,
60,
800,
3726,
3726,
31,
22,
79,
3935,
80,
22,
18,
301,
19,
14,
205,
14425,
726,
28,
14,
315,
13,
20468,
379,
25,
6336... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Is the Microsoft Public License viral?
===
In section 3(d), the [Microsoft Public License][1] (Ms-PL) states: "If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license". It seems to me that the statement "complies with this license" means that software that contains the Ms-PL-licensed code must also be as free as the Ms-PL permits. Is this a viral requirement, similar to the GNU GPL?
[1]: http://www.microsoft.com/opensource/licenses.mspx#Ms-PL | 0 | [
2,
25,
14,
7099,
317,
3962,
14987,
60,
800,
3726,
3726,
19,
1050,
203,
5,
43,
6,
15,
14,
636,
22019,
12980,
317,
3962,
500,
2558,
165,
500,
13,
5,
79,
18,
8,
5727,
6,
202,
45,
13,
7,
821,
42,
14751,
186,
2980,
16,
14,
2306,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
learning c# Excel interop
===
What are some resources that will help get me up and running quickly with the Excel interop in C#? | 0 | [
2,
2477,
272,
5910,
20700,
1480,
2594,
800,
3726,
3726,
98,
50,
109,
2566,
30,
129,
448,
164,
55,
71,
17,
946,
976,
29,
14,
20700,
1480,
2594,
19,
272,
5910,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I convert Word smart quotes and em dashes in a string?
===
I have a form with a textarea. Users enter a block of text which is stored in a database.
Occasionally a user will paste text from Word containing smart quotes or emdashes. Those characters appear in the database as: –, ’, “ ,â€
What function should I call on the input string to convert smart quotes to regular quotes and emdashes to regular dashes?
I am working in PHP. | 0 | [
2,
184,
107,
31,
8406,
833,
3978,
18901,
17,
3579,
8405,
160,
19,
21,
3724,
60,
800,
3726,
3726,
31,
57,
21,
505,
29,
21,
1854,
17760,
9,
3878,
2830,
21,
1921,
16,
1854,
56,
25,
8214,
19,
21,
6018,
9,
4533,
21,
4155,
129,
640,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the most critical piece of code you have written and how did you approach it?
===
Put it another way: what code have you written that **cannot** fail. I'm interested in hearing from those who have worked on projects dealing with heart monitors, water testing, economic fundamentals, missile trajectories, or the O2 concentration on the space shuttle.
How did you prepare for writing this sort of code: methodologically, intellectually, and emotionally? | 0 | [
2,
98,
25,
14,
127,
2507,
1855,
16,
1797,
42,
57,
642,
17,
184,
144,
42,
2141,
32,
60,
800,
3726,
3726,
442,
32,
226,
161,
45,
98,
1797,
57,
42,
642,
30,
13,
1409,
1245,
1270,
1409,
7476,
9,
31,
22,
79,
3158,
19,
3229,
37,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.