unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
How are most AS3 Video Players Created?
===
Are most flash video players created all programmatically? Or they done using static buttons that are referenced in classes? Is it better to create all your buttons on the fly or does it not really matter? | 0 | [
2,
184,
50,
127,
28,
240,
763,
1007,
679,
60,
800,
3726,
3726,
50,
127,
4433,
763,
1007,
679,
65,
625,
6732,
1326,
60,
54,
59,
677,
568,
12038,
12861,
30,
50,
17571,
19,
2684,
60,
25,
32,
574,
20,
1600,
65,
154,
12861,
27,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Difference between a C# 2.0 and C# 3.0 feature
===
What is the difference between ***anonymous methods*** of C# 2.0 and ***lambda expressions*** of C# 3.0.? | 0 | [
2,
2841,
128,
21,
272,
5910,
172,
9,
387,
17,
272,
5910,
203,
9,
387,
1580,
800,
3726,
3726,
98,
25,
14,
2841,
128,
8980,
210,
14016,
1291,
3195,
2483,
1409,
16,
272,
5910,
172,
9,
387,
17,
8980,
24187,
13832,
2483,
1409,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
WeakReference Bug ?
===
[TestMethod]
public void Memory()
{
var wr = new WeakReference("aaabbb");
Assert.IsTrue(wr.IsAlive);
GC.Collect();
GC.Collect();
GC.Collect();
GC.Collect();
GC.Collect();
Assert.IsFalse(wr.IsAlive); //<-- fails here
}
It's .NET 3.5 SP1<br>
Can anyone can tell me why this test fails? | 0 | [
2,
3910,
28018,
6256,
13,
60,
800,
3726,
3726,
636,
10543,
5909,
1807,
43,
500,
317,
11364,
1912,
5,
6,
13,
1,
4033,
8845,
800,
78,
3910,
28018,
5,
7,
22160,
220,
3490,
7,
6,
73,
10908,
9,
403,
13398,
5,
7127,
9,
8164,
5928,
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... |
How to embed IronPython in a .NET application
===
Is it possible to expose an API in a .NET application by embedding a scripting language like IronPython?
How is it done? | 0 | [
2,
184,
20,
11911,
69,
1751,
6448,
11570,
19,
21,
13,
9,
2328,
3010,
800,
3726,
3726,
25,
32,
938,
20,
13833,
40,
21,
2159,
19,
21,
13,
9,
2328,
3010,
34,
11911,
69,
3258,
21,
3884,
68,
816,
101,
1751,
6448,
11570,
60,
184,
25... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
LoadfromText gives error 2285 (Microsoft Office Access can't create the output file)
===
When importing forms in access using loadfromtext, I continually get a runtime error 2285. Searching the internet shows many people with the same problem, yet no solutions. Does anyone know what causes this bug?
Edit:
In addition a file called 'errors.txt' is created in the folder containing the database. | 0 | [
2,
6305,
2665,
11969,
2352,
7019,
1024,
3058,
13,
5,
22019,
12980,
488,
1381,
92,
22,
38,
1600,
14,
5196,
3893,
6,
800,
3726,
3726,
76,
9010,
68,
1997,
19,
1381,
568,
6305,
2665,
11969,
15,
31,
16609,
164,
21,
485,
891,
7019,
1024... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 C# enums typesafe?
===
Are C# enums typesafe?
If not are the implications? | 0 | [
2,
50,
272,
5910,
1957,
723,
18,
1001,
18166,
60,
800,
3726,
3726,
50,
272,
5910,
1957,
723,
18,
1001,
18166,
60,
100,
52,
50,
14,
14747,
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... | [
1,
1,
1,
1,
1,
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,
0... |
In QT, for a context menu item, how to hide the space of the icon
===
I am adding a context menu using QAction for a widget.
Now, there is some white space beside the text of the action. I assume this is the space where the QIcon association with the QAction should have been there. Now how do i hide this space. I tried doing a action->setIcon(QIcon()); but still does not seem to work.
Kindly let me know if you have the way to remove that space before the text. | 0 | [
2,
19,
2593,
38,
15,
26,
21,
4141,
11379,
9101,
15,
184,
20,
3077,
14,
726,
16,
14,
9801,
800,
3726,
3726,
31,
589,
4721,
21,
4141,
11379,
568,
2593,
8645,
26,
21,
4807,
43,
3060,
9,
130,
15,
80,
25,
109,
359,
726,
2113,
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... |
Render partial from different folder (not shared)
===
How can I have a view render a partial (user control) from a different folder?
With preview 3 I used to call RenderUserControl with the complete path, but whith upgrading to preview 5 this is not possible anymore.
Instead we got the RenderPartial method, but it's not offering me the functionality I'm looking for. | 0 | [
2,
16535,
7284,
37,
421,
19294,
13,
5,
1270,
2592,
6,
800,
3726,
3726,
184,
92,
31,
57,
21,
1418,
16535,
21,
7284,
13,
5,
16704,
569,
6,
37,
21,
421,
19294,
60,
29,
16121,
203,
31,
147,
20,
645,
16535,
16704,
12898,
29,
14,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 write a short literal in C++?
===
Very basic question.. how do I write a `short` literal in C++?
I know the following:
* `2` is an `int`
* `2L` is a `long`
* `2LL` is a `long long`
* `2.0f` is a `float`
* `2.0` is a `double`
* `'\2'` is a `char`.
But how would I write a `short` literal? I tried `2S` but that gives a compiler warning. | 0 | [
2,
184,
107,
31,
2757,
21,
502,
20665,
19,
272,
20512,
60,
800,
3726,
3726,
253,
2125,
1301,
9,
9,
184,
107,
31,
2757,
21,
13,
1,
10849,
1,
20665,
19,
272,
20512,
60,
31,
143,
14,
249,
45,
1637,
13,
1,
135,
1,
25,
40,
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... |
How to detect the printer model?
===
When I plug my HP Laserjet 3015, Windows detects the correct model and then tries to install the appropriate drivers.
How can I detect the model of connected printer(s)? I don't want to use the list of installed printers because a Zebra printer can be installed with a Generic/Text only driver.
I'm a Delphi and C# programmer, so any tips in both language will be appreciated.
Thanks | 0 | [
2,
184,
20,
9092,
14,
12925,
1061,
60,
800,
3726,
3726,
76,
31,
10922,
51,
5301,
7283,
10307,
712,
1193,
15,
1936,
9092,
18,
14,
4456,
1061,
17,
94,
3919,
20,
16146,
14,
4593,
5783,
9,
184,
92,
31,
9092,
14,
1061,
16,
2587,
1292... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 the major benefits of scrum as a methodology?
===
I work in the technical department of a design agency. We use XP to manage our department's software development. I have been asked to give a short presentation describing Scrum and whether it would be suitable, in a broader context, for managing *client project work*.
Scrum would be applied to cross functional teams containing graphic designers, information architects, content editors, user experience engineers, web designers and software developers.
**What benefits could scrum bring to this sort of team?**
| 0 | [
2,
98,
50,
14,
394,
5800,
16,
26562,
28,
21,
18653,
60,
800,
3726,
3726,
31,
170,
19,
14,
2447,
604,
16,
21,
704,
2344,
9,
95,
275,
23045,
20,
4705,
318,
604,
22,
18,
2306,
522,
9,
31,
57,
74,
411,
20,
590,
21,
502,
6364,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Issues During ASP.NET MVC Upgrade from Preview 5 to Beta?
===
What issues or refactoring did you have to do when you upgraded from ASP.NET MVC Preview 5 to the newly released [Beta][1] version?
[1]: http://www.microsoft.com/downloads/details.aspx?familyid=a24d1e00-cd35-4f66-baa0-2362bdde0766&displaylang=en&tm | 0 | [
2,
1549,
112,
28,
306,
9,
2328,
307,
8990,
9483,
37,
16121,
331,
20,
8434,
60,
800,
3726,
3726,
98,
1549,
54,
302,
17455,
68,
144,
42,
57,
20,
107,
76,
42,
9958,
37,
28,
306,
9,
2328,
307,
8990,
16121,
331,
20,
14,
2771,
261,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
RequiredFieldValidator Help
===
Quick question:
I have multiple RequireFieldValidators on my aspx page.
On the backend (C#) I want to be able to tell which control specifically wasn't valid so I can apply a style to that control.
I use the Page.IsValid method to see if the overall page passed validation but I need to know specifically which one control failed.
Thanks. | 0 | [
2,
1390,
1109,
18506,
43,
3457,
448,
800,
3726,
3726,
2231,
1301,
45,
31,
57,
1886,
4077,
1109,
18506,
43,
9922,
27,
51,
28,
306,
396,
2478,
9,
27,
14,
97,
2451,
13,
5,
150,
5910,
6,
31,
259,
20,
44,
777,
20,
494,
56,
569,
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... |
Getting jQuery to recognise .change() in IE
===
I'm using jQuery to hide and show elements when a radio button group is altered/clicked. It works fine in browsers like Firefox, but in IE 6 and 7, the action only occurs when the user then clicks somewhere else on the page.
To elaborate, when you load the page, everything looks fine. In Firefox, if you click a radio button, one table row is hidden and the other one is shown immediately. However, in IE 6 and 7, you click the radio button and nothing will happen until you click somewhere on the page. Only then does IE redraw the page, hiding and showing the relevant elements.
Here's the jQuery I'm using:
$(document).ready(function(){
$(".hiddenOnLoad").hide();
$("#viewByOrg").change(function () {
$(".visibleOnLoad").show();
$(".hiddenOnLoad").hide();
});
$("#viewByProduct").change(function () {
$(".visibleOnLoad").hide();
$(".hiddenOnLoad").show();
});
});
Here's the part of the XHTML that it affects. Apologies if it's not very clean, but the whole page does validate as XHTML 1.0 Strict:
<tr>
<td>View by:</td>
<td>
<p>
<input type="radio" name="viewBy" id="viewByOrg" value="organisation" checked="checked"/>
Organisation
</p>
<p>
<input type="radio" name="viewBy" id="viewByProduct" value="product"/>
Product
</p>
</td>
</tr>
<tr class="visibleOnLoad">
<td>Organisation:</td>
<td>
<select name="organisation" id="organisation" multiple="multiple" size="10">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
</select>
</td>
</tr>
<tr class="hiddenOnLoad">
<td>Product:</td>
<td>
<select name="product" id="product" multiple="multiple" size="10">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
</select>
</td>
</tr>
If anyone has any ideas why this is happening and how to fix it, they would be very much appreciated! | 0 | [
2,
1017,
487,
8190,
93,
20,
16945,
13,
9,
16229,
5,
6,
19,
13,
660,
800,
3726,
3726,
31,
22,
79,
568,
487,
8190,
93,
20,
3077,
17,
298,
2065,
76,
21,
603,
5167,
214,
25,
8745,
118,
150,
10129,
69,
9,
32,
693,
1123,
19,
16495... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Application Settings
===
What is a fairly standard way for storing application settings, mainly for windows but also easy to move over to other platforms.
Theres basicly 4 groups of settings I want to have:
* Global settings, affects all users, and may be moved between machines
* Global system settings, affects all users, but percific to that system (eg defaults for that system, eg graphivs options)
* User settings, user setttings that are moved between systems (eg sound volume)
* User system settings, user settings percific to that system (eg graphics options that are hardware dependent)
Each level overides the previous level, allowing for "global settings" to be largly the applications defaults, with user settings storing the options the user chose.
The first two will basicly be defaults where there is no user setting (eg for a new user).
I considered implementing a set of functions, which I could then implement for the diffrent systems (likly to be through ini files), but is this the best way?
(c++)
namespace config
{
void Init(const std::string &AppName);
//updates config for keys/sections that don't exist (ie don't overwrite changes by advanced users by rewriting the entire file)
void Defaults (std::map<std::string,std::map<std::string,std::string> > &Map);
void SystemDefaults (std::map<std::string,std::map<std::string,std::string> > &Map);
void Set (const std::string &Section, const std::string &Key, const std::string &Value);
void SetSystem (const std::string &Section, const std::string &Key, const std::string &Value);
void SetUser (const std::string &Section, const std::string &Key, const std::string &Value);
void SetUserSystem (const std::string &Section, const std::string &Key, const std::string &Value);
std::string GetValue (const std::string &Section, const std::string &Key);
}
I know windows has a set of directories for such settings, but are these the correct dirs for my needs?
* Global settings - <SYSDRIVE>\Users\Default\Appdata\Roaming
* Global system settings - <SYSDRIVE>\Users\Default\Appdata\Local
* User settings - <SYSDRIVE>\Users\<USER>\AppData\Roaming
* User system settings - <SYSDRIVE>\Users\<USER>\AppData\Local | 0 | [
2,
3010,
12410,
800,
3726,
3726,
98,
25,
21,
6647,
1236,
161,
26,
25615,
3010,
12410,
15,
2011,
26,
1936,
47,
67,
2010,
20,
780,
84,
20,
89,
6843,
9,
80,
18,
2125,
102,
268,
1170,
16,
12410,
31,
259,
20,
57,
45,
1637,
2062,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 best update a website from subversion.
===
I have a PHP website backed by a MySQL database and a small team of programmers submitting code to subversion. Typically we write code, test it locally, commit to subversion and then copy changed files to a hidden area for online testing.
However mistakes can be made. Occasionally I want to refresh the site so that I know, without a doubt, that the site code and database really represents what's in subversion. I'd like to get as close to a one click solution as possible so that it's foolproof.
What's the best way to do that?
BTW, if it matters, we develop on windows machines. | 0 | [
2,
184,
20,
246,
11100,
21,
2271,
37,
972,
10898,
9,
800,
3726,
3726,
31,
57,
21,
13,
26120,
2271,
6334,
34,
21,
51,
18,
22402,
6018,
17,
21,
284,
173,
16,
17968,
18,
28848,
1797,
20,
972,
10898,
9,
2442,
95,
2757,
1797,
15,
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... |
When should the Win32 InterlockedExchange function be used?
===
I came across the function [InterlockedExchange][1] and was wondering when I should use this function. In my opinion, setting a 32 Bit value on an x86 processor should always be atomic?
[1]: http://msdn.microsoft.com/en-us/library/ms683590(VS.85).aspx "MSDN Link" | 0 | [
2,
76,
378,
14,
628,
3125,
1480,
3966,
69,
1706,
16229,
1990,
44,
147,
60,
800,
3726,
3726,
31,
281,
464,
14,
1990,
636,
6280,
3966,
69,
1706,
16229,
500,
2558,
165,
500,
17,
23,
5712,
76,
31,
378,
275,
48,
1990,
9,
19,
51,
40... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Search All Fields In All Tables For A Specific Value (Oracle)
===
Is it possible to search every field of every table for a particular value in Oracle?
<br><br>
There are hundreds of tables with thousands of rows in some tables so I know this could take a very long time to query. But the only thing I know is that a value for the field I would like to query against is '1/22/2008P09RR8'.
<br><br>
I've tried using this statement below to find an appropriate column based on what I think it should be named but it returned no results.
<br><br>
SELECT * from dba\_objects
WHERE object\_name like '%DTN%'
<br><br><br>
There is absolutely no documentation on this database and I have no idea where this field is being pulled from.
<br><br>
Any thoughts??? | 0 | [
2,
2122,
65,
2861,
19,
65,
7484,
26,
21,
1903,
1923,
13,
5,
6055,
5615,
6,
800,
3726,
3726,
25,
32,
938,
20,
2122,
352,
575,
16,
352,
859,
26,
21,
1498,
1923,
19,
15759,
60,
13,
1,
5145,
1,
5145,
1,
80,
50,
4541,
16,
7484,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Struts JSP previous link
===
Does anyone know how I can retrieve the previous JSP URL that a page has come from within a JSP?
Can I retrieve this from the session/ request/ response object?
Hope this makes sense, Thank you | 0 | [
2,
18316,
18,
487,
3401,
1158,
3508,
800,
3726,
3726,
630,
1276,
143,
184,
31,
92,
11917,
14,
1158,
487,
3401,
287,
6362,
30,
21,
2478,
63,
340,
37,
363,
21,
487,
3401,
60,
92,
31,
11917,
48,
37,
14,
3723,
118,
3772,
118,
1627,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Pocket PC emulator with network access without Virtual PC?
===
In developing software for the Pocket PC platform, I have been happily using the Pocket PC emulator that Microsoft provides with Visual Studio (and as a free download). It provides for much faster develop/deploy/test cycles. (Of course, I do still final testing on real hardware). I have also found that providing the emulator to other folks in the office (e.g. the documentation team) allows them to get accurate screen shots with little effort. So, I'm convinced this is a great tool for my situation.
Here's the concern:
In order to use the networking capabilities of the emulator, one must install Microsoft Virtual PC on the machine that will run the emulator. This seems like an awful heavyweight requirement for such a small tool. Has anyone found a simpler way to enable networking functionality on the Pocket PC emulator? | 0 | [
2,
3397,
5168,
3579,
14868,
29,
982,
1381,
366,
6599,
5168,
60,
800,
3726,
3726,
19,
3561,
2306,
26,
14,
3397,
5168,
2452,
15,
31,
57,
74,
12356,
568,
14,
3397,
5168,
3579,
14868,
30,
7099,
1927,
29,
3458,
1120,
13,
5,
290,
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... |
Why does MSI require the original .msi file to proceed with an uninstall ?
===
As most of you probably noticed, when uninstalling an MSI package Windows will ask for the original .msi file...
Why is that ?
I can only see disadvantages to that:
<ul>
<li>not resilient to network changes.</li>
<li>not resilient to local disk changes.</li>
<li>unexpected by users.</li>
<li>typically requires users to leave their desk and start a crusade to get the correct CD.</li>
<li>kind of proves installations are not self-contained.</li>
<li>promotes the use of unsafe tools such as msizap.</li>
<li>which in turn promotes the "next time I'll just use a zip file" mentality.</li>
</ul>
Could someone shed some light on this ?
| 0 | [
2,
483,
630,
4235,
49,
4077,
14,
501,
13,
9,
79,
18,
49,
3893,
20,
11158,
29,
40,
367,
108,
21300,
13,
60,
800,
3726,
3726,
28,
127,
16,
42,
910,
2711,
15,
76,
367,
108,
21300,
68,
40,
4235,
49,
6030,
1936,
129,
1349,
26,
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... |
How do you convert a DataTable into a generic list?
===
Currently, I'm using:
DataTable dt = CreateDataTableInSomeWay();
List<DataRow> list = new List<DataRow>();
foreach (DataRow dr in dt.Rows)
{
list.Add(dr);
}
Is there a better/magic way? | 0 | [
2,
184,
107,
42,
8406,
21,
1054,
5924,
77,
21,
12733,
968,
60,
800,
3726,
3726,
871,
15,
31,
22,
79,
568,
45,
1054,
5924,
13,
43,
38,
800,
679,
4375,
5924,
108,
3220,
1443,
5,
6,
73,
968,
1,
18768,
5417,
1,
968,
800,
78,
968... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
IndexOutOfRangeException on Queryable.Single
===
I have an ASP.NET site that has been running perfectly for a long time, nothing's changed recently. From one hour to the next I started receiving an IndexOutOfRangeException in a line where I do a LINQ query like this:
var form = SqlDB.GetTable<ORMB.Form, CDB>()
.Where(f => f.FormID == formID)
.Single();
ORMB.Form is a POCO object with LINQ to SQL attributes mapping it to an MSSQL table (mapping is verified as correct). The stacktrace is as follows:
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.List`1.Add(T item)
at System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user)
at System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
at System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
at System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
at System.Linq.Queryable.Single[TSource](IQueryable`1 source)
at GetForm.Page_Load(Object sender, EventArgs e)
Reflecting System.Collections.Generic.List.Add shows the following code:
public void Add(T item)
{
if (this._size == this._items.Length)
{
this.EnsureCapacity(this._size + 1);
}
this._items[this._size++] = item;
this._version++;
}
The only line that should be prone to the IndexOfOutRangeException is this._items[this._size++] = item, I cannot see how I'm affecting this however.
I can solve the problem by doing an appdomain recycle, so it must be caching related somehow. ObjectTracking is turned off on the DataContext, in case that matters.
My gut feeling is that this might be a threading issue, SqlConnectionManager having cached IConnectionUsers in the List<IConnectionUser> field called 'users'. If two threads enter the Add method at the same time, what prevents the following from happening:
T1: Add(x)
T2: Add(y)
T1: Since _size == _items.Length: EnsureCapacity(_size + 1)
T2: Since _size > _items.Length: _items[_size++] = item;
T1: _items[size++] = item <- OutOfRangeException since T2 didn't increase the capacity as needed
Anyone? | 0 | [
2,
4348,
1320,
1041,
8366,
10066,
872,
27,
25597,
579,
9,
14031,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
689,
30,
63,
74,
946,
5759,
26,
21,
175,
85,
15,
626,
22,
18,
1015,
1989,
9,
37,
53,
1671,
20,
14,
328,
31,
373,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 set PAL tool perfmon threshold
===
Performance Analyzer Log tool or PAL publishes the report using the SystemOVerview.xml or QuickSystemOVerview.xml, but I also see SQLServer.xml and other threshold files in the PAL folder.
My perfmon counters include Process, memory, Disk, Network, SQLServer. Which threshold would process all these counters and output a detailed report?
I have also automated this, i.e. I call the PAL.ps1 script directly and pass arguments to it and despite specifying "Process all counters", the output html file has only Process, Memory and Processor | 0 | [
2,
184,
20,
309,
4370,
5607,
416,
410,
2111,
11361,
800,
3726,
3726,
956,
16051,
139,
6738,
5607,
54,
4370,
13829,
14,
1330,
568,
14,
329,
2549,
4725,
9,
396,
8184,
54,
2231,
10724,
2549,
4725,
9,
396,
8184,
15,
47,
31,
67,
196,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Nhibernate repository not producing OrderBY SQL
===
I have a repository of various methods (only relevant ones included), and I am trying to order the results.
At current it appears this is being on C# side, and no within my database, which is where I would expect the call to be..
public virtual IQueryable<T> All()
{
return _session.Query<T>();
}
public virtual IQueryable<T> Find(Expression<Func<T, bool>> expression)
{
return All().Where(expression);
}
I am returning the IQueryable, and then calling OrderBy() at a later stage (please note, I would expect this is still following the deferred execution pattern..)
Any ideas where I'm going wrong?
If it matters - it's a informix db. | 0 | [
2,
12109,
15191,
8820,
24869,
52,
4081,
389,
779,
4444,
255,
800,
3726,
3726,
31,
57,
21,
24869,
16,
617,
3195,
13,
5,
4965,
7480,
53,
18,
506,
6,
15,
17,
31,
589,
749,
20,
389,
14,
1736,
9,
35,
866,
32,
1780,
48,
25,
142,
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... |
Serializing queryset to JSON is taking a lot of time. How can I debug this?
===
I am serializing Django model objects in batches of 10000 as json and sending them. I am using [DjangoFullSerializers][1] from wadofstuff to do this, as I also wanted a related field to be serialized along with my object. During peak server load, one batch is taking around 9-10 mins to finish. A fetch of 10000 objects of MySQL takes somewhere between 1-2 seconds. I am not sure what a serialize to JSON might be doing to take so much overhead. I have tried using simplejson (which doesn't give the option to serialize related fields), but time taken is still long enough. I am not sure but I think, wadofstuff uses simplejson behind the screen.
I wasn't able to configure cjson with Django, so couldn't test on that. But how could I configure optimally or improve the usage of current setup. Intuitively, I feel, once the data has been fetched into memory, converting 10000 objects to JSON shouldn't take this long.
I am attaching the profile dump taken using cProfile. Please have a look and suggest some pointers/tips/help.
Attachment: [cProfile Dump File][2]
Thanks in advance.
[1]: http://code.google.com/p/wadofstuff/wiki/DjangoFullSerializers
[2]: http://cl.ly/3R0m2P0l3e2h1A3u2v3H | 0 | [
2,
5956,
3335,
25597,
3554,
20,
487,
528,
25,
741,
21,
865,
16,
85,
9,
184,
92,
31,
121,
16254,
48,
60,
800,
3726,
3726,
31,
589,
5956,
3335,
3857,
14541,
1061,
3916,
19,
13064,
160,
16,
332,
3993,
28,
487,
528,
17,
4907,
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,
1,
1... |
Can I use MySQL interactively from an SQL block in org-mode?
===
I use R interactively from Org-mode - the keybinding `C-x '` from within an R code-block launches an interactive R session using ESS.
When I press `C-x '` from inside an SQL code block, it launches SQL mode, but it is not clear how I can then send a query to MySQL. I would like to be able to do this, and to specify the hostname database name (e.g. from a .my.cnf settings file).
Can I do something similar with MySQL? If so, can I have it choose a group from my .my.cnf file? | 0 | [
2,
92,
31,
275,
51,
18,
22402,
9194,
102,
37,
40,
4444,
255,
1921,
19,
13,
5583,
8,
15570,
60,
800,
3726,
3726,
31,
275,
761,
9194,
102,
37,
13,
5583,
8,
15570,
13,
8,
14,
1246,
22260,
13,
1,
150,
8,
396,
13,
22,
1,
37,
36... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Passing varying variables through geometry shader
===
I introduced a geometry shader to my OpenGL application. My shaders have quite a few of "varying" variables that I pass from the vertex shader to the fragment shader. Now, having introduced the geometry shader I have to manually pass every varying value in the geometry shader for each vertex. Is there a way to avoid that and do things "automatically"? | 0 | [
2,
2848,
9852,
12157,
120,
11689,
7546,
139,
800,
3726,
3726,
31,
1277,
21,
11689,
7546,
139,
20,
51,
368,
8430,
3010,
9,
51,
7546,
1224,
57,
1450,
21,
310,
16,
13,
7,
3311,
8173,
7,
12157,
30,
31,
1477,
37,
14,
22895,
7546,
139... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Border Color on tr is not applying on IE-7
===
I am finding an issue which is specific with IE-7. Working on FF, Chrome, IE 8/9. The issue is that IE 7 is not honoring border color on tr. Any workaround in CSS, Jquery, Javascript appreciated. http://jsfiddle.net/VW84N/ | 0 | [
2,
1862,
1665,
27,
9235,
25,
52,
11989,
27,
13,
660,
8,
465,
800,
3726,
3726,
31,
589,
3007,
40,
1513,
56,
25,
1903,
29,
13,
660,
8,
465,
9,
638,
27,
13,
2460,
15,
13,
12985,
15,
13,
660,
13,
12530,
518,
9,
14,
1513,
25,
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... |
indexdb for google chrome extension
===
I'm using IndexDB in my google chrome extension, but the requirement is like, based on the user preferences, we need to delete the all the records stored in IndexDB store.
so far code is like this
var db = VidManager.vidDB.db;
var trans = db.transaction(["vid"], IDBTransaction.READ_WRITE);
var store = trans.objectStore("vid");
now store has the values, can some one advice how can i delete all the store values.
thanks | 0 | [
2,
4348,
9007,
26,
8144,
13,
12985,
3896,
800,
3726,
3726,
31,
22,
79,
568,
4348,
9007,
19,
51,
8144,
13,
12985,
3896,
15,
47,
14,
8981,
25,
101,
15,
432,
27,
14,
4155,
9808,
18,
15,
95,
376,
20,
27448,
14,
65,
14,
742,
8214,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 difference between using shift-f5 or the red-X on the controlbox for terminating a debug session?
===
is there a difference in the dispose() functions being called ? | 0 | [
2,
98,
25,
14,
2841,
128,
568,
4471,
8,
410,
264,
54,
14,
402,
8,
396,
27,
14,
569,
5309,
26,
25724,
21,
121,
16254,
3723,
60,
800,
3726,
3726,
25,
80,
21,
2841,
19,
14,
17913,
5,
6,
3719,
142,
227,
13,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
browser back button doesnt work in cached environment
===
teh back button jsut causes my page to refresh. Is there a way around this without disabling the cache? | 0 | [
2,
16495,
97,
5167,
5886,
170,
19,
16522,
43,
2307,
800,
3726,
3726,
13,
22314,
97,
5167,
487,
18,
1982,
4047,
51,
2478,
20,
24905,
9,
25,
80,
21,
161,
140,
48,
366,
1460,
58,
8599,
14,
16522,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to detect when an object is no longer referenced
===
Is there a way to create register a handler that will be called exactly at the time when the last reference to a certain object is released?
An example would be an object that is backed by a physical data file and once the object become unreferenced, the file should be closed and than renamed. It would be nice if this was possible without having to explicitly call a "close" method on that object.
All the notification mechanisms I am aware of from the Weak/Phantom reference area only state that notification will occur at some point in time but there is no gurantee as to when this will happen... | 0 | [
2,
184,
20,
9092,
76,
40,
3095,
25,
90,
1045,
17571,
800,
3726,
3726,
25,
80,
21,
161,
20,
1600,
2243,
21,
24641,
30,
129,
44,
227,
1890,
35,
14,
85,
76,
14,
236,
2801,
20,
21,
1200,
3095,
25,
261,
60,
40,
823,
83,
44,
40,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 the instance value of a property marked with a Attribute?
===
I have a class which is marked with a custom attribute, like this:
public class OrderLine : Entity
{
...
[Parent]
public Order Order { get; set; }
public Address ShippingAddress{ get; set; }
...
}
I want to write a generic method, where I need to get the Property on a Entity which is marked with the Parent attribute.
Here is my Attribute:
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public class ParentAttribute : Attribute
{
}
How do I write this?
| 0 | [
2,
184,
107,
31,
164,
14,
4851,
1923,
16,
21,
1354,
2739,
29,
21,
35,
14755,
60,
800,
3726,
3726,
31,
57,
21,
718,
56,
25,
2739,
29,
21,
5816,
35,
14755,
15,
101,
48,
45,
317,
718,
389,
1143,
13,
45,
9252,
13,
1,
13,
9,
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... |
CastleProject *.vm HttpForbiddenHandler not work
===
I try to use HttpForbiddenHandler to block the file without success. The web.config is as follows:
<httpHandlers>
<add verb="*" path="*.ashx" type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory, Castle.MonoRail.Framework"/>
<add verb="*" path="*.vm" type="System.Web.HttpForbiddenHandler"/>
</httpHandlers>
I have setup the virtual directory to forward .vm request to aspnet_isapi.dll too. Basically I have followed this guide:
[http://support.microsoft.com/kb/815152][1]
[1]: http://support.microsoft.com/kb/815152
Any idea why it doesn't work? I am using Windows XP + IIS 5.1 to test it. | 0 | [
2,
1339,
21011,
1637,
9,
20147,
7775,
1106,
11283,
817,
3203,
1252,
52,
170,
800,
3726,
3726,
31,
1131,
20,
275,
7775,
1106,
11283,
817,
3203,
1252,
20,
1921,
14,
3893,
366,
1280,
9,
14,
2741,
9,
14093,
2816,
25,
28,
2415,
45,
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... |
How do you register a Windows Service during installation?
===
I have built a windows service application in VB.net 2008, and used the Setup Wizard to add an installation process.
The installer works, in that it adds the app to add/remove programs and copies all of the files etc, but it's missing the final (required) step of actually installing the service.
I have added the primary output of the Project as a custom action for Install and Uninstall, without success.
what's the secret? | 0 | [
2,
184,
107,
42,
2243,
21,
1936,
365,
112,
7758,
60,
800,
3726,
3726,
31,
57,
392,
21,
1936,
365,
3010,
19,
13,
20468,
9,
2328,
570,
15,
17,
147,
14,
18161,
10276,
20,
3547,
40,
7758,
953,
9,
14,
16146,
106,
693,
15,
19,
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... |
Naming of ID columns in database tables
===
I was wondering peoples opinions on the naming of ID columns in database tables.
If I have a table called Invoices with a primary key of an identity column I would call that column InvoiceID so that I would not conflict with other tables and it's obvious what it is.
Where I am workind current they have called all ID columns ID.
So they would do the following:
Select
i.ID
, il.ID
From
Invoices i
Left Join InvoiceLines il
on i.ID = il.InvoiceID
Now, I see a few problems here:
1. You would need to alias the columns on the select
2. ID = InvoiceID does not fit in my brain
3. If you did not alias the tables and referred to InvoiceID is it obvious what table it is on?
What are other peoples thoughts on the topic? | 0 | [
2,
10929,
16,
4924,
7498,
19,
6018,
7484,
800,
3726,
3726,
31,
23,
5712,
148,
18,
11900,
27,
14,
10929,
16,
4924,
7498,
19,
6018,
7484,
9,
100,
31,
57,
21,
859,
227,
19,
13379,
18,
29,
21,
1256,
1246,
16,
40,
3270,
4698,
31,
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... |
What services are required by SQL Express/SQL Server?
===
One of our partners recently reported that our software could not contact a remote instance of SQL Express until they started the RPC Locator and SQL Server Browser services. Where would I find a list of services that must be running, on both server and client, to enable remote access to SQL Express and/or SQL Server?
Sadly, the SQL Express documentation does not appear to include this detail. | 0 | [
2,
98,
687,
50,
1390,
34,
4444,
255,
2999,
118,
18,
22402,
8128,
60,
800,
3726,
3726,
53,
16,
318,
4724,
1989,
1117,
30,
318,
2306,
110,
52,
2203,
21,
5388,
4851,
16,
4444,
255,
2999,
163,
59,
373,
14,
761,
5779,
13,
10799,
3457... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 cascade rename PK on table, MS SQL 2005
===
I have successfully been able to rename a table and drop all constraints on that table with foreign key relationships and build they all back up. However, now I am at a point where the PK_tblFoo exists in more than one place (when I transfer the table to another DB). Renaming the table does not rename the primary key.
How would I cascade rename the primary key? I have renamed the table, I just need to get this portion figured out.
| 0 | [
2,
184,
20,
13542,
302,
7259,
13,
17244,
27,
859,
15,
4235,
4444,
255,
812,
800,
3726,
3726,
31,
57,
3673,
74,
777,
20,
302,
7259,
21,
859,
17,
2804,
65,
16747,
27,
30,
859,
29,
1228,
1246,
5833,
17,
1895,
59,
65,
97,
71,
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... |
XSD and polymorphism
===
I am kinda repeating this question bit the 1st time it was asked incorrectly.
I have this:
<xsd:complexType name="A">
<xsd:sequence>
<xsd:element name="options" type="options"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="B">
<xsd:complexContent>
<xsd:element name="options" type="ex_options"/>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="options">
<xsd:sequence>
...some options
</xsd:sequence>
</xsd:element>
<xsd:complexType name="ex_options">
<xsd:complexContent>
<xsd:extension base="options">
<xsd:sequence>
...some more options
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:element>
So basically I have class A with an inner class of options
Class B inherits from class A and I want B.options to inherit from A.options so that when we do webservices we only need to pass a and when we call getOptions it will return the right object B.options. Currently with the way the xsd stands I get an error saying multiple elements with name options with different types appear in the model group. The errors is in the B type.
| 0 | [
2,
993,
18,
43,
17,
3446,
13348,
800,
3726,
3726,
31,
589,
21096,
17389,
48,
1301,
1142,
14,
137,
384,
85,
32,
23,
411,
22870,
9,
31,
57,
48,
45,
13,
1,
396,
18,
43,
45,
960,
11326,
4474,
204,
3726,
7,
58,
7,
1,
13,
1,
396... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 get client DPI in Partial Trust XBAP?
===
Is it possible to get the client's DPI in a Partial Trust XBAP? If so, how? | 0 | [
2,
184,
107,
42,
164,
6819,
13,
43,
2159,
19,
7284,
1527,
993,
969,
306,
60,
800,
3726,
3726,
25,
32,
938,
20,
164,
14,
6819,
22,
18,
13,
43,
2159,
19,
21,
7284,
1527,
993,
969,
306,
60,
100,
86,
15,
184,
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... |
What is the reasoning for and the basic concepts behind an interstitial loading page?
===
I'm interested in finding out why this is used on some Web sites for processing user-initiated search submissions, how it affects the request and response flow, and programmatically why it would be necessary (or beneficial). In an MVC framework it seems difficult to execute since you are injecting another page into the middle of the flow.
EDIT:
Not advertising related. For instance, most travel sites used to do this, and there were no ads... some banking sites do it too, where there is just a loader that says something like "Please wait while we process your transaction...". | 0 | [
2,
98,
25,
14,
15543,
26,
17,
14,
2125,
8700,
439,
40,
1480,
384,
242,
2815,
12797,
2478,
60,
800,
3726,
3726,
31,
22,
79,
3158,
19,
3007,
70,
483,
48,
25,
147,
27,
109,
2741,
3259,
26,
5511,
4155,
8,
108,
8793,
1669,
2122,
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... |
Sharepoint StateMachine : Handling multiple responses to multiple created tasks
===
I created a StateMachine workflow for sharepoint and at one state, I create multiple tasks using a replicator. The number of tasks created is variable.
I need to handle the OnTaskChanged event for all the tasks I created which seems impossible as one event handler can only be associated with one task.
I can use a restrictive number of tasks which can be created and handled by a specific number of handlers but I am considering that as a last resort or create a sequential workflow as a last resort.
Please do let me know if this is even supported or if there are any workarounds.
Reference Link: http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/a174ac5f-03ed-4e27-998b-bbdb7d01d09b/ | 0 | [
2,
1891,
3132,
146,
20442,
13,
45,
7988,
1886,
13231,
20,
1886,
679,
8674,
800,
3726,
3726,
31,
679,
21,
146,
20442,
170,
9990,
26,
1891,
3132,
17,
35,
53,
146,
15,
31,
1600,
1886,
8674,
568,
21,
13426,
2153,
9,
14,
234,
16,
867... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
jQuery: How to stop a helper from being removed if it wasn't successfully dropped.
===
I have a draggable with a custom helper. Sometimes the helper is a clone and sometimes it is the original element. The problem is that when the helper is the original element and is **not** dropped on a valid droppable it gets removed. My solution looks like this so far:
in my `on_dropped` callback I set `ui.helper.dropped_on_droppable` to `true`;
In the `stop` callback of the draggable, I check for that variable and then ... what do I do?
$('.my_draggable').draggable({
stop : function(e, ui) {
if (!ui.helper.dropped_on_droppable) {
/* what do I do here? */
}
},
Is this even the right approach?
| 0 | [
2,
487,
8190,
93,
45,
184,
20,
747,
21,
448,
106,
37,
142,
1974,
100,
32,
526,
22,
38,
3673,
1539,
9,
800,
3726,
3726,
31,
57,
21,
5501,
263,
579,
29,
21,
5816,
448,
106,
9,
1030,
14,
448,
106,
25,
21,
13871,
17,
1030,
32,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 SAP SCRIPT, how to add a page break or print the records in a new page
===
I would like to print the records in a new page every time the contract number changes. What is the syntax for new page in the SAP SCRIPT.
Kindly let me know if you know how to achieve this. | 0 | [
2,
19,
7508,
3884,
15,
184,
20,
3547,
21,
2478,
1442,
54,
4793,
14,
742,
19,
21,
78,
2478,
800,
3726,
3726,
31,
83,
101,
20,
4793,
14,
742,
19,
21,
78,
2478,
352,
85,
14,
1305,
234,
1693,
9,
98,
25,
14,
22649,
26,
78,
2478,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
GUI For Service Methods
===
We have a service that runs methods used for data import/export at specified intervals. To test these methods we have a little application with a single button that, when clicked, instantiates the import/export class and invokes the desired method. Nothing fancy. I would like create a more robust test application that can receive debug information from the method in more of a real-time fashion than the return value from the service method. These methods can take anywhere from a few minutes to 30 to run a full import/export load, and I would like some indication of the amount of data that's already been processed.
My initial idea was to wrap the classes in some type of message queuing class which the test application could then read from and display the messages. However I'm still kind of a n00b at this, so I don't know if there's a better way to do what I want to do.
We develop in VB on .NET 2.0 | 0 | [
2,
9457,
26,
365,
3195,
800,
3726,
3726,
95,
57,
21,
365,
30,
1461,
3195,
147,
26,
1054,
9010,
118,
1706,
1993,
35,
9931,
15899,
9,
20,
1289,
158,
3195,
95,
57,
21,
265,
3010,
29,
21,
345,
5167,
30,
15,
76,
15802,
15,
6322,
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... |
Looking for simple rules-engine library in .NET
===
Does anyone know of a good .NET library rules library (ideally open-source)? I need something that can do nested logic expressions, e.g., (A AND B) AND (B OR C OR D). I need to do comparisons of object properties, e.g., A.P1 AND B.P1. (Ideally, I could compare any property -- A.P1 AND B.P2).
It should store the rules in a database (I've got a lot or simple configurable logic). And it should have a rule creation/management API. The management tool would have to inspect the instances to determine which properties are available and which constraints exist.
Thanks! | 0 | [
2,
699,
26,
1935,
1761,
8,
16847,
1248,
19,
13,
9,
2328,
800,
3726,
3726,
630,
1276,
143,
16,
21,
254,
13,
9,
2328,
1248,
1761,
1248,
13,
5,
3448,
1326,
368,
8,
12097,
6,
60,
31,
376,
301,
30,
92,
107,
5618,
69,
7085,
13832,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Online Translation
===
Hey =) I am trying to develop an online translation service (sort of a personal challenge) but I have been looking for any guidelines or any way to see how it should be done and so far I have come up with nothing so. In a nutshell, does anybody knows where to find a service, code or explanation of how online translation works and/or guidelines for making one?
Thank you =D | 0 | [
2,
2087,
4064,
800,
3726,
3726,
8409,
800,
6,
31,
589,
749,
20,
2803,
40,
2087,
4064,
365,
13,
5,
22843,
16,
21,
1319,
2404,
6,
47,
31,
57,
74,
699,
26,
186,
12629,
54,
186,
161,
20,
196,
184,
32,
378,
44,
677,
17,
86,
463,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Odd .Net serialization problem
===
I had an odd problem today when I was trying to serialize an object. The object was generated via "Add service reference" from a web service (svcutil.exe).
The problem was that the below property (agencyId) was not being serialized with the rest of the object. Out of desperation I commented the property below it because it had the "XMLIgnoreAttribute" assigned... after I commented the ignored property, the agencyId field serialized as expected.
Can someone please explain to me why this behavior occurred?
Thanks!!
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
public string agencyId
{
get {
return this.agencyIdField;
}
set {
this.agencyIdField = value;
this.RaisePropertyChanged("agencyId");
}
}
/// <remarks/>
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool agencyIdSpecified
{
get
{
return this.agencyIdFieldSpecified;
}
set
{
this.agencyIdFieldSpecified = value;
this.RaisePropertyChanged("agencyIdSpecified");
}
} | 0 | [
2,
4210,
13,
9,
2328,
5956,
1829,
1448,
800,
3726,
3726,
31,
41,
40,
4210,
1448,
786,
76,
31,
23,
749,
20,
5956,
2952,
40,
3095,
9,
14,
3095,
23,
6756,
1197,
13,
7,
14854,
365,
2801,
7,
37,
21,
2741,
365,
13,
5,
18,
8990,
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... |
Java Media Framework on client side?
===
If I’m writing an applet that shows a video sequence (eg. streaming from a camera, or the applet itself is running the on the camera), do my clients need to download the Java Media Framework libraries inorder to see the sequence? | 0 | [
2,
8247,
941,
6596,
27,
6819,
270,
60,
800,
3726,
3726,
100,
31,
1,
79,
1174,
40,
4037,
38,
30,
1285,
21,
763,
4030,
13,
5,
5431,
9,
11920,
37,
21,
3336,
15,
54,
14,
4037,
38,
1145,
25,
946,
14,
27,
14,
3336,
6,
15,
107,
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... |
Setting a DBGrid column format in Delphi
===
I am using a DBGrid component in delphi. I wonder how I can set the format of a column. I have real values that I want to be displayed as currency in the grid.
Someone knows how? | 0 | [
2,
2697,
21,
13,
9007,
16375,
4698,
2595,
19,
23030,
800,
3726,
3726,
31,
589,
568,
21,
13,
9007,
16375,
5912,
19,
23030,
9,
31,
2666,
184,
31,
92,
309,
14,
2595,
16,
21,
4698,
9,
31,
57,
683,
4070,
30,
31,
259,
20,
44,
6115,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
ActiveMQ over SSL to a .Net client
===
Does anyone know if it's possible to connect a c# client to an ActiveMQ instance over SSL using the Spring.Messaging.Nms library? Or if not using Nms then some other library?
Many thanks | 0 | [
2,
1348,
79,
1251,
84,
13,
18,
18,
255,
20,
21,
13,
9,
2328,
6819,
800,
3726,
3726,
630,
1276,
143,
100,
32,
22,
18,
938,
20,
6379,
21,
272,
5910,
6819,
20,
40,
1348,
79,
1251,
4851,
84,
13,
18,
18,
255,
568,
14,
1573,
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... |
C# property attributes
===
I have seen the following code:
[DefaultValue(100)]
[Description("Some descriptive field here")]
public int MyProperty{...}
The functionality from the above snippit seems clear enough, I have no idea as to how I can use it to do useful things. Im not even sure as to what name to give it!
Does anyone know where I can find more information/a tutorial on these property attributes?
I would be also interested in any novel / useful tasks this feature can do. | 0 | [
2,
272,
5910,
1354,
13422,
800,
3726,
3726,
31,
57,
541,
14,
249,
1797,
45,
636,
13862,
9708,
15165,
5,
4031,
6,
500,
636,
546,
8741,
872,
5,
7,
3220,
25508,
575,
235,
7,
6,
500,
317,
19,
38,
51,
10890,
106,
1084,
1,
9,
9,
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... |
Design Hints, Payroll System...
===
We are designing a Payroll Generation System for a client.
The organization we are targeting has a hierarchy as follows:
Company -> Cluster -> Business Unit (BU) -> Department -> Employee
The salary for an employee is made up of various salary components.
Each salary component has 3 rules associated with it, a Calculation Rule (Calculate component as % of another component, or % of a fixed number or a fixed number), an Eligibility Rule (whether an Employee/Dept is eligible for a component) and a Constraint Rule which limits tha max and min of a component.
**These rules are editable and can be edited by a user end user**. Also these rules are inherited top-down, but if defined at a lower level, the lower level rule takes precedence.
**We have a database which has Attendance, Leaves, Bonuses tables and these rules are also supposed to interact with these tables.**
The client will be generating payroll for multiple clients each hosting a Separate Database instance. They may each have a different interpretation of each component and may have different components.
We are only looking to support SQL Server, and payroll generation will be an offline activity.
**We are divided upon where to put the logic which uses these rules to generate the individual tax components (which will include Tax Deductions, Tax Write-offs, Allowances, etc).**
Some people are advocating magic SPs which will take an employee Id and generate a payroll for that month.
Others want the logic to be split into separate components which will get the dependent data for an employee in the application layer and calculate these components there.
The order of our priorities are:
1. The ability to adapt changes to new clients quickly
2. Long term maintainability
3. Performance
1 and 2 outweigh 3 here by a large factor as this will be an offline activity.
Suggestions and pointers to existing systems' architecture will be very helpful.
...and yes, we are using LINQ to SQL elsewhere in the system.
Kind regards,
Ashish Sharma | 0 | [
2,
704,
6382,
18,
15,
28019,
329,
9,
9,
9,
800,
3726,
3726,
95,
50,
15026,
21,
28019,
2782,
329,
26,
21,
6819,
9,
14,
1165,
95,
50,
15972,
63,
21,
14417,
28,
2415,
45,
237,
13,
8,
1,
7460,
13,
8,
1,
508,
1237,
13,
5,
2345,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
.NET CodeDom - compile and invoke a generated method
===
I managed to create a class using CodeDom and add a single method to that class. Now, is there a way to, having constructed the CodeCompileUnit instance, compile the code and invoke the generated method? The method invocation has to be done in the same context as the code generation.
| 0 | [
2,
13,
9,
2328,
1797,
5555,
13,
8,
26561,
17,
28371,
21,
6756,
2109,
800,
3726,
3726,
31,
1471,
20,
1600,
21,
718,
568,
1797,
5555,
17,
3547,
21,
345,
2109,
20,
30,
718,
9,
130,
15,
25,
80,
21,
161,
20,
15,
452,
2096,
14,
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... |
Does anyone know what happened to javaspec.org?
===
javaspec.org should contain a java-related wiki; but it seems down... Is this only temporary or is it down 'forever'? | 0 | [
2,
630,
1276,
143,
98,
1190,
20,
8247,
18,
12610,
9,
5583,
60,
800,
3726,
3726,
8247,
18,
12610,
9,
5583,
378,
3717,
21,
8247,
8,
6203,
13,
17375,
73,
47,
32,
2206,
125,
9,
9,
9,
25,
48,
104,
4700,
54,
25,
32,
125,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Error when copying a check constraint using DTS
===
I have a DTS package that is raising an error with a "Copy SQL Server Objects" task. The task is copying a table plus data from one SQL Server 2000 SP4 server to another (same version) and is giving the error: -
*Could not find CHECK constraint for 'dbo.MyTableName', although the table is flagged as having one.*
The source table has one check constraint defined that appears to cause the problem. After running the DTS package, the thing appears to work properly - the table, all constraints and data ARE created on the destination server? But the error above is raised causing subsequent steps not to run.
Any idea why this error is raised ? | 0 | [
2,
7019,
76,
4344,
68,
21,
2631,
28804,
568,
13,
43,
38,
18,
800,
3726,
3726,
31,
57,
21,
13,
43,
38,
18,
6030,
30,
25,
5698,
40,
7019,
29,
21,
13,
7,
19625,
4444,
255,
8128,
3916,
7,
3005,
9,
14,
3005,
25,
4344,
68,
21,
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... |
Does the .Net TraceSource/TraceListener framework have something similar to log4net's Formatters?
===
I've begun to the the built-in TraceSource and TraceListener classes and I would like to modify the output format of the events independently of the TraceSources and TraceListeners. It seems that the TraceListeners apply their own formatting. Is it possible to completely change the formatting without creating a new class for each and every TraceListener I use? | 0 | [
2,
630,
14,
13,
9,
2328,
5565,
12097,
118,
38,
7367,
13891,
106,
6596,
57,
301,
835,
20,
6738,
300,
2328,
22,
18,
2595,
6052,
60,
800,
3726,
3726,
31,
22,
195,
4349,
20,
14,
14,
392,
8,
108,
5565,
12097,
17,
5565,
13891,
106,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Strip whitespace from jsp output
===
How can I strip out extra whitespace from jsp pages' output? Is there a switch I can flip on my web.xml? Is there a Tomcat specific setting? | 0 | [
2,
4998,
359,
5582,
37,
487,
3401,
5196,
800,
3726,
3726,
184,
92,
31,
4998,
70,
2230,
359,
5582,
37,
487,
3401,
4434,
22,
5196,
60,
25,
80,
21,
5521,
31,
92,
8805,
27,
51,
2741,
9,
396,
8184,
60,
25,
80,
21,
2067,
5782,
1903,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Is there a tool to alphabetize CSS definitions in Visual Studio?
===
Eric Meyer's advice to keep individual rules alphabetized in a CSS style definition makes sense - there's no "natural" way to order rules, and this makes it easy in a complex definition to make sure you don't define the same thing twice.
div.Foo
{
background:Green;
border:1px solid Khaki;
display:none;
left:225px;
max-height:300px;
overflow-x:hidden;
overflow-y:auto;
position:absolute;
top:0;
width:230px;
z-index:99;
}
So my question: Is there a plugin or some other easy way to select a list of rules in Visual Studio and alphabetize them? (Better yet, to apply this throughout a stylesheet in one fell swoop.) | 0 | [
2,
25,
80,
21,
5607,
20,
11844,
2952,
272,
18,
18,
18544,
19,
3458,
1120,
60,
800,
3726,
3726,
2647,
10078,
22,
18,
4978,
20,
643,
1359,
1761,
11844,
1333,
19,
21,
272,
18,
18,
1034,
5465,
1364,
1259,
13,
8,
80,
22,
18,
90,
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... |
Why Opensource and freewares
===
I have used certain freeware tools which are really great in terms of the features they provide. Not to mention, the opensource frameworks and API we use in common use.
I wonder what, apart from sharing, is the ideallogy behind publishing an opensource or freeware. Doesn't this hamper the competitor comapnies which are are having a market base in the contemprary field ?
| 0 | [
2,
483,
368,
12097,
17,
551,
5011,
18,
800,
3726,
3726,
31,
57,
147,
1200,
551,
5011,
4672,
56,
50,
510,
374,
19,
1663,
16,
14,
967,
59,
1181,
9,
52,
20,
3794,
15,
14,
368,
12097,
6596,
18,
17,
21,
2159,
95,
275,
19,
757,
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... |
WaitForObject
===
can anyone please tell me what is the return value of WaitForObject() function .
I do not mean the type of return value (int ) .
What does it return if the event is signalled and what does it return if the event is not signalled .
Thanks | 0 | [
2,
1760,
1106,
23793,
800,
3726,
3726,
92,
1276,
2247,
494,
55,
98,
25,
14,
788,
1923,
16,
1760,
1106,
23793,
5,
6,
1990,
13,
9,
31,
107,
52,
884,
14,
1001,
16,
788,
1923,
13,
5,
6391,
13,
6,
13,
9,
98,
630,
32,
788,
100,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Process text files ftp'ed into a set of directories in a hosted server
===
The situation is as follows:
A series of remote workstations collect field data and ftp the collected field data to a server through ftp. The data is sent as a CSV file which is stored in a unique directory for each workstation in the FTP server.
Each workstation sends a new update every 10 minutes, causing the previous data to be overwritten. We would like to somehow concatenate or store this data automatically. The workstation's processing is limited and cannot be extended as it's an embedded system.
One suggestion offered was to run a cronjob in the FTP server, however there is a Terms of service restriction to only allow cronjobs in 30 minute intervals as it's shared-hosting. Given the number of workstations uploading and the 10 minute interval between uploads it looks like the cronjob's 30 minute limit between calls might be a problem.
Is there any other approach that might be suggested? The available server-side scripting languages are perl, php and python.
Upgrading to a dedicated server might be necessary, but I'd still like to get input on how to solve this problem in the most elegant manner. | 0 | [
2,
953,
1854,
6488,
1187,
306,
22,
69,
77,
21,
309,
16,
559,
1596,
19,
21,
2812,
8128,
800,
3726,
3726,
14,
1858,
25,
28,
2415,
45,
21,
231,
16,
5388,
170,
10839,
18,
5543,
575,
1054,
17,
1187,
306,
14,
3674,
575,
1054,
20,
21... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Activator.CreateInstance can't find the constructor (MissingMethodException)
===
I have a class which has the following constructor
public DelayCompositeDesigner(DelayComposite CompositeObject)
{
InitializeComponent();
compositeObject = CompositeObject;
}
along with a default constructor with no parameters.
Next I'm trying to create an instance, but it only works without parameters:
var designer = Activator.CreateInstance(designerAttribute.Designer);
This works just fine, but if I want to pass parameters it does not:
var designer = Activator.CreateInstance(designerAttribute.Designer, new DelayComposite(4));
This results in an MissingMethodException:
Constructor voor type Vialis.LightLink.Controller.Scenarios.Composites.DelayCompositeDesigner was not found
Any ideas here? | 0 | [
2,
13,
19516,
3457,
9,
6037,
1373,
108,
384,
2416,
92,
22,
38,
477,
14,
6960,
248,
13,
5,
7292,
68,
5909,
1807,
43,
10066,
872,
6,
800,
3726,
3726,
31,
57,
21,
718,
56,
63,
14,
249,
6960,
248,
317,
7255,
960,
14882,
591,
19862... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Minimize CSS length holding style of given HTML constant
===
Suppose A.css styles B.html. What tools/techniques are there to programmatically reduce the size of A.css while holding its styling effects on B.html constant? Here are some techniques I would imagine such a tool using:
1. **Remove redundancies in A.css.** For example, if the same class is defined twice you can remove the second definition without affecting semantics. This seems pretty easy.
2. **Remove style definitions that aren't used**. Does A.css style any elements that don't appear in B.html? If so, remove them.
3. **Combine styles where appropriate**. If A.css defines styles for div.x and div.y and every div that happens to have class x also has class y, one could combine the class definitions in A.css.
A different strategy would be to have a tool that examines the computed styles of each element in a piece of styled HTML and spits out the minimal style sheet that would preserve the computed styles. Does something like *this* exist? | 0 | [
2,
16713,
272,
18,
18,
1476,
1337,
1034,
16,
504,
13,
15895,
3587,
800,
3726,
3726,
5787,
21,
9,
6824,
18,
6443,
334,
9,
15895,
9,
98,
4672,
118,
6524,
889,
13655,
50,
80,
20,
625,
6732,
1326,
4136,
14,
1072,
16,
21,
9,
6824,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 most wanted non-existent or underdeveloped open source project?
===
I am wondering if people have any ideas for open source projects that don't exist yet that they would like to share. Also, submit ideas that may be under open source development but need considerable work. I want to gauge the need for various projects.
Please submit one idea per answer for effective voting, thanks. | 4 | [
2,
98,
25,
154,
127,
417,
538,
8,
20788,
54,
131,
20102,
368,
1267,
669,
60,
800,
3726,
3726,
31,
589,
5712,
100,
148,
57,
186,
3478,
26,
368,
1267,
2314,
30,
221,
22,
38,
3182,
768,
30,
59,
83,
101,
20,
1891,
9,
67,
15,
122... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 a noob escape tutorial-land and actually get programming?
===
Ok, so I've read the tutorials for... everything. I *know* how to code, in the most abstractest of senses. But, how do you break from the guided rails of tutorial exercise #1-2, to something with a bit more meat on it, **without** delving into the wild, wooly world of production/open-source code? Something in between smart people spoon-feeding you code, and smart people beating you mercilessly because you're new? | 0 | [
2,
184,
92,
21,
90,
4995,
2220,
29724,
8,
618,
17,
1121,
164,
3143,
60,
800,
3726,
3726,
5854,
15,
86,
31,
22,
195,
1302,
14,
29724,
18,
26,
9,
9,
9,
796,
9,
31,
1637,
17806,
2483,
184,
20,
1797,
15,
19,
14,
127,
8502,
1430,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
ODBC x64 oracle problem
===
I have a workstation wit Windows 2008 x64, MS Access 2007 and Oracle 11g x64
I use Access to connect to Oracle via ODBC.
I am the administrator (in the administrator group) on the WS, I run access as administrator but when i want to make an ODBC call to Oracle it does not work.
How do I do it:
I start MS Access and creates a direct query. In the properties dialog I go to add new and the Select datasource dialog appears. I then use machine datasource and click New, System datasource - but the driver for Oracle is not there.
Regards Robert :-) | 0 | [
2,
12340,
7229,
993,
3470,
15759,
1448,
800,
3726,
3726,
31,
57,
21,
170,
10839,
9642,
1936,
570,
993,
3470,
15,
4235,
1381,
624,
17,
15759,
547,
263,
993,
3470,
31,
275,
1381,
20,
6379,
20,
15759,
1197,
12340,
7229,
9,
31,
589,
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 conventions exist for ordering arguments in methods?
===
A colleague and I are discussing best practices regarding ordering method parameters. The goal is to establish a standard in our organization to improve readability and productivity by giving our methods common signatures. We are merely establishing guidelines for the recent grads we are hiring.
**Example (userId is always passed in to audit the calls):**
GetOrders(string userId, int customerId);
GetOrders(string userId, int[] orderIds);
GetCustomer(string userId, int customerId);
My argument is the following:
1. common arguments are left most.
2. remaining arguments are based on importance
3. optional (nullable) arguments last.
His argument is essentially the opposite.
I'm not asking for a right or wrong answer here, nor a discussion. I just want to see what standards exist already.
Thanks! | 0 | [
2,
98,
15117,
3182,
26,
15775,
10553,
19,
3195,
60,
800,
3726,
3726,
21,
12321,
17,
31,
50,
10988,
246,
5242,
3467,
15775,
2109,
12905,
9,
14,
1195,
25,
20,
4088,
21,
1236,
19,
318,
1165,
20,
3545,
1302,
4091,
17,
18211,
34,
1438,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Function pointers, closures and Lamda
===
I am just now learning about function pointers and as I was readying the K&R chapter on the subject the first thing that hit me was, "Hey, this is kinda like a closure." I knew this assumption is fundamentally wrong somehow and after a search online wasn't really to find any analysis of this comparison.
So why are C style function pointer fundamentally different than closures or lambdas? As far as I can tell it has to do with the fact that the function pointer still points to a defined(named) function as opposed to being able to anonymously define the function.
Why is passing a function to a function seen as more powerful in the second case, where it is unnamed, than the first where it is just a normal everyday function that is being passed?
Please tell me how and why I am wrong to compare the two so closely.
Thanks. | 0 | [
2,
1990,
454,
445,
15,
7790,
18,
17,
11108,
593,
800,
3726,
3726,
31,
589,
114,
130,
2477,
88,
1990,
454,
445,
17,
28,
31,
23,
1451,
68,
14,
680,
1569,
139,
1260,
27,
14,
1550,
14,
64,
584,
30,
770,
55,
23,
15,
13,
7,
3909,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 mount a windows drive in Java?
===
We are working with some legacy code that accesses a shared drive by the letter (f:\ for example). Using the UNC notation is not an option. Our Java wrapper app will run as a service, and as the first step, I would like to map the drive explicitly in the code. Has anyone done this?
Thanks,
Brett | 0 | [
2,
184,
92,
31,
2149,
21,
1936,
1493,
19,
8247,
60,
800,
3726,
3726,
95,
50,
638,
29,
109,
7780,
1797,
30,
1381,
160,
21,
2592,
1493,
34,
14,
1748,
13,
5,
410,
45,
1,
26,
823,
6,
9,
568,
14,
16061,
15591,
25,
52,
40,
4255,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 pointer from another thread?
===
Let's have the following class definition:
CThread::CThread ()
{
this->hThread = NULL;
this->hThreadId = 0;
this->hMainThread = ::GetCurrentThread ();
this->hMainThreadId = ::GetCurrentThreadId ();
this->Timeout = 2000; //milliseconds
}
CThread::~CThread ()
{
//waiting for the thread to terminate
if (this->hThread) {
if (::WaitForSingleObject (this->hThread, this->Timeout) == WAIT_TIMEOUT)
::TerminateThread (this->hThread, 1);
::CloseHandle (this->hThread);
}
}
//*********************************************************
//working method
//*********************************************************
unsigned long CThread::Process (void* parameter)
{
//a mechanism for terminating thread should be implemented
//not allowing the method to be run from the main thread
if (::GetCurrentThreadId () == this->hMainThreadId)
return 0;
else {
m_pMyPointer = new MyClass(...);
// my class successfully works here in another thread
return 0;
}
}
//*********************************************************
//creates the thread
//*********************************************************
bool CThread::CreateThread ()
{
if (!this->IsCreated ()) {
param* this_param = new param;
this_param->pThread = this;
this->hThread = ::CreateThread (NULL, 0, (unsigned long (__stdcall *)(void *))this->runProcess, (void *)(this_param), 0, &this->hThreadId);
return this->hThread ? true : false;
}
return false;
}
//*********************************************************
//creates the thread
//*********************************************************
int CThread::runProcess (void* Param)
{
CThread* thread;
thread = (CThread*)((param*)Param)->pThread;
delete ((param*)Param);
return thread->Process (0);
}
MyClass* CThread::getMyPointer() {
return m_pMyPointer;
}
In the main program, we have the following:
void main(void) {
CThread thread;
thread.CreateThread();
MyClass* myPointer = thread.getMyPointer(); // CRASH, BOOM, BANG!!!!
}
At the moment the getMyPointer() method is executed ( in the main thread ) it crashes. Obviously I don't know how to get the pointer, which points to memory, allocated in another thread. Is this actually possible? | 0 | [
2,
184,
20,
164,
454,
106,
37,
226,
9322,
60,
800,
3726,
3726,
408,
22,
18,
57,
14,
249,
718,
5465,
45,
272,
96,
10647,
45,
45,
150,
96,
10647,
13,
5,
6,
13,
1,
48,
8,
1,
252,
96,
10647,
800,
16203,
73,
48,
8,
1,
252,
96... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 advantages of using google.load('jQuery', ...) vs direct inclusion of hosted script URL?
===
Google hosts some popular JavaScript libraries at:
http://code.google.com/apis/ajaxlibs/
According to google:
> The most powerful way to load the libraries is by using google.load() ...
What are the real advantages of using
`google.load("jquery", "1.2.6")`
vs.
`<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>`
? | 0 | [
2,
98,
50,
14683,
16,
568,
8144,
9,
8294,
5,
22,
728,
8190,
93,
22,
15,
13,
9,
9,
9,
6,
4611,
1744,
10660,
16,
2812,
3884,
287,
6362,
60,
800,
3726,
3726,
8144,
5397,
109,
844,
8247,
8741,
8649,
35,
45,
7775,
6903,
9375,
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 much time and effort do you spend on IE6?
===
I've often read that corporations will save millions once Internet Explorer 6 is finally laid to rest, but reading quotes like that make me wonder just how much time people are spending on IE6 development. I'll be happy once IE6 goes, but I've found that if I write valid HTML and CSS, keep the transparent images issue in mind, and don't try to over-complicate my design, I only need to write a few lines of IE6-specific CSS, which usually takes only about 10-15 minutes. So I'm curious, how much time, effort, and money do you or your corporation spend on preparing your sites for IE6? Also, at what point will you drop IE6 support? | 0 | [
2,
184,
212,
85,
17,
2150,
107,
42,
3256,
27,
13,
660,
379,
60,
800,
3726,
3726,
31,
22,
195,
478,
1302,
30,
13548,
129,
2079,
11999,
382,
2620,
8520,
400,
25,
722,
2488,
20,
760,
15,
47,
1876,
18901,
101,
30,
233,
55,
2666,
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 to write a SQL statement which gets results via a relationship table? (many to many)
===
I have 3 tables (archive has many sections, section (may) belong to many archives):
* `archive`
* `id PK`
* `description`
* `archive_to_section`
* `archive_id PK FK`
* `section_id PK FK`
* `section`
* `id PK`
* `description`
What would the SQL look like to list all the sections that belong a certain archive id?
I am just learning SQL. From what I've read it sounds like I would need a join, or union? FYI I'm using postgres. | 0 | [
2,
184,
20,
2757,
21,
4444,
255,
3331,
56,
3049,
1736,
1197,
21,
1429,
859,
60,
13,
5,
14842,
20,
151,
6,
800,
3726,
3726,
31,
57,
203,
7484,
13,
5,
23941,
63,
151,
4501,
15,
1050,
13,
5,
3904,
6,
6219,
20,
151,
8111,
6,
45,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 being Pragmatic agile?
===
I just re-read [The Pragmatic Programmer][1] (my third time reading it...I get something new every time, too). It seems like the tips that they mention are related to many of the various Agile methodologies. Is Pragmatic Programming just another form of Agile Development?
[1]: http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X | 0 | [
2,
25,
142,
28443,
27475,
60,
800,
3726,
3726,
31,
114,
302,
8,
10647,
636,
124,
28443,
17968,
500,
2558,
165,
500,
13,
5,
915,
422,
85,
1876,
32,
9,
9,
9,
49,
164,
301,
78,
352,
85,
15,
266,
6,
9,
32,
2206,
101,
14,
11034,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Export all contacts as vcards from Outlook
===
So, I want to export all my contacts from Outlook as vcards. If I google that, I get a bunch of shareware programs, but I want something free that just works.
If I'm to code it myself, I guess I should use the Microsoft.Office.Interop.Outlook assembly. Has anyone already code to convert ContactItems to vcards? | 0 | [
2,
7487,
65,
11894,
28,
566,
6648,
18,
37,
19837,
800,
3726,
3726,
86,
15,
31,
259,
20,
7487,
65,
51,
11894,
37,
19837,
28,
566,
6648,
18,
9,
100,
31,
8144,
30,
15,
31,
164,
21,
7653,
16,
1891,
5011,
1726,
15,
47,
31,
259,
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... |
VMWare Server 1.0.7 on 64-bit Windows 2008 Issue
===
Normally when using VMWare Server 1.0.7 you are asked if you would like to connect to the local machine or a remote host. Installing the same software on 64-bit Windows 2008 only gives the remote host option.
I have tried entering the local machine name as the host and entering creds that have admin rights to the server but I just get a "Cannot connect as the target machine actively rejected it" error. I have tried to find a solution on Google, but with no joy.
Anyone run into this before and can point me in the right direction? | 2 | [
2,
13,
20147,
5011,
8128,
137,
9,
387,
9,
465,
27,
4384,
8,
3326,
1936,
570,
1513,
800,
3726,
3726,
4147,
76,
568,
13,
20147,
5011,
8128,
137,
9,
387,
9,
465,
42,
50,
411,
100,
42,
83,
101,
20,
6379,
20,
14,
375,
1940,
54,
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... |
How to base64 encode a PDF file in Python
===
How should I base64 encode a PDF file for transport over XML-RPC in Python? | 0 | [
2,
184,
20,
1000,
3470,
20523,
21,
13,
11124,
3893,
19,
20059,
800,
3726,
3726,
184,
378,
31,
1000,
3470,
20523,
21,
13,
11124,
3893,
26,
1739,
84,
23504,
8,
139,
5779,
19,
20059,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Find out location of an executable file in Cocoa
===
The simple question is: how to find out the location of an executable file in a Cocoa application.
Remember that, in many Unix-like OS people use PATH environment to assign the preferred location for their executables, especially when they have several versions of same application in their system. As a good practice, our Cocoa application should find the PREFERRED location of the executable file it needs.
For example, there was a SVN 1.4 in Leopard default configuration at /usr/bin, and you installed a much newer version, say SVN 1.5.3 via MacPorts at /opt/local/bin. And you set your PATH using /etc/path.d or .bash_profile or .zshrc like that:
export PATH=/opt/local/bin:$PATH
So you can use the new version of svn instead of the old one from the system. It works well in any terminal environment. But not in Cocoa applications. Cocoa application, as far as I know, only has a default PATH environment like this:
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
By default it will not using the configuration in /etc/path.d, .bash_profile, .profile, .zshrc, etc.
So how exactly can we do?
p.s. We have [a semi-solution here][1], but it cannot fully satisfied the objective for this question.
[1]: http://github.com/pieter/gitx/tree/master/PBGitBinary.m | 0 | [
2,
477,
70,
1474,
16,
40,
1396,
17194,
5924,
3893,
19,
24507,
800,
3726,
3726,
14,
1935,
1301,
25,
45,
184,
20,
477,
70,
14,
1474,
16,
40,
1396,
17194,
5924,
3893,
19,
21,
24507,
3010,
9,
1518,
30,
15,
19,
151,
22540,
8,
1403,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Silverlight: How to set default style in generic.xaml for child class?
===
I have the following hierachy:
public class A
{
protected class B
{
}
}
And I've tried to define a default style in the following ways (inside generic.xaml):
<Style TargetType="local:A+B">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:A+B">
<Grid/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="local:A.B">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:A.B">
<Grid/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="local:B">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:B">
<Grid/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Does anyone know the correct syntax? | 0 | [
2,
1172,
3130,
45,
184,
20,
309,
12838,
1034,
19,
12733,
9,
6791,
8184,
26,
850,
718,
60,
800,
3726,
3726,
31,
57,
14,
249,
4148,
2615,
5864,
45,
317,
718,
21,
13,
1,
3803,
718,
334,
13,
1,
13,
1,
13,
1,
17,
31,
22,
195,
7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
search text then print
===
I am searching for "o" then prints all lines with "o". Any suggestion/code I must apply?
data.txt<br>
j,o,b:<br>
a,b,d:<br>
o,l,e:<br>
f,a,r:<br>
e,x,o:<br>
desired output:<br>
j,o,b:<br>
o,l,e:<br>
e,x,o:<br> | 0 | [
2,
2122,
1854,
94,
4793,
800,
3726,
3726,
31,
589,
5792,
26,
13,
7,
111,
7,
94,
12202,
65,
1560,
29,
13,
7,
111,
7,
9,
186,
10910,
118,
9375,
31,
491,
5645,
60,
1054,
9,
38,
396,
38,
1,
5145,
1,
487,
15,
111,
15,
220,
45,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
HTML Reporting Solution
===
What good components and packages are available for generating HTML reports based on report definitions? I have a truly horrific project where each report is a dedicated aspx page that builds one fantastically big HTML string, which it then assigns to a 'reportBody' Label control.
Standard grids are not a good solution as they provide no grouping capability, but I'm open to buying a grid that is friendly for grouping, printing, and exporting. FYI is one reporting engine option I'll be looking at. What else is there? SSRS may not be an option, as MSSQL may not even be an option. | 0 | [
2,
13,
15895,
6670,
4295,
800,
3726,
3726,
98,
254,
5090,
17,
16875,
50,
904,
26,
13500,
13,
15895,
2813,
432,
27,
1330,
18544,
60,
31,
57,
21,
4574,
25142,
669,
113,
206,
1330,
25,
21,
2360,
28,
306,
396,
2478,
30,
1895,
18,
53... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 difference betweeen Select * and Select [list each col]
===
I'm using MS SQL 2005. Is there a difference, to the SQL engine, between
SELECT * FROM MyTable;
and
SELECT ColA, ColB, ColC FROM MyTable;
When ColA, ColB, and ColC are all the columns to the table?
If they are the same, is there a reason why you should use the 2nd one anyway? I have a project that's heavy on LINQ, and I'm not sure if the standard SELECT * it generates is a bad practice, or if I should always be a .Select() on it to specify which cols I want. | 0 | [
2,
25,
80,
21,
2841,
5676,
10969,
219,
5407,
1637,
17,
5407,
636,
5739,
206,
3313,
500,
800,
3726,
3726,
31,
22,
79,
568,
4235,
4444,
255,
812,
9,
25,
80,
21,
2841,
15,
20,
14,
4444,
255,
1406,
15,
128,
5407,
1637,
37,
51,
592... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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++ Variant
===
I'm in the process of creating a class that stores metadata about a particular data source. The metadata is structured in a tree, very similar to how XML is structured. The metadata values can be integer, decimal, or string values.
I'm curious if there is a good way in C++ to store variant data for a situation like this. I'd like for the variant to use standard libraries, so I'm avoiding the COM, Ole, and SQL VARIANT types that are available.
My current solution looks something like this:
enum MetaValueType
{
MetaChar,
MetaString,
MetaShort,
MetaInt,
MetaFloat,
MetaDouble
};
union MetaUnion
{
char cValue;
short sValue;
int iValue;
float fValue;
double dValue;
};
class MetaValue
{
...
private:
MetaValueType ValueType;
std::string StringValue;
MetaUnion VariantValue;
};
The MetaValue class has various Get functions for obtaining the currently stored variant value, but it ends up making every query for a value a big block of if/else if statements to figure out which value I'm looking for.
I've also explored storing the value as only a string, and performing conversions to get different variant types out, but as far as I've seen this leads to a bunch of internal string parsing and error handling which isn't pretty, opens up a big old can of precision and data loss issues with floating point values, and still doesn't eliminate the query if/else if issue stated above.
Has anybody implemented or seen something that's cleaner to use for a C++ variant data type using standard libraries? | 0 | [
2,
272,
20512,
8320,
800,
3726,
3726,
31,
22,
79,
19,
14,
953,
16,
2936,
21,
718,
30,
4134,
28057,
88,
21,
1498,
1054,
1267,
9,
14,
28057,
25,
17784,
19,
21,
1541,
15,
253,
835,
20,
184,
23504,
25,
17784,
9,
14,
28057,
4070,
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... |
Assignment in .NET 3.5 expression trees
===
Is it possible to encode an assignment into an expression tree? | 0 | [
2,
8427,
19,
13,
9,
2328,
203,
9,
264,
1803,
1913,
800,
3726,
3726,
25,
32,
938,
20,
20523,
40,
8427,
77,
40,
1803,
1541,
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... | [
1,
1,
1,
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,
0,
0,
0... |
"Duplicate node detected" in a CruiseControl.NET configuration file
===
When I launch CruiseControl.NET with a particular configuration file I receive the following error:
>ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: Duplicate node detected
What does this mean, and what causes it? | 0 | [
2,
13,
7,
2323,
26811,
15421,
11968,
7,
19,
21,
6581,
12898,
9,
2328,
8091,
3893,
800,
3726,
3726,
76,
31,
3394,
6581,
12898,
9,
2328,
29,
21,
1498,
8091,
3893,
31,
2588,
14,
249,
7019,
45,
13,
1,
20131,
7684,
9,
13057,
2628,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
A C library for finding local maxima?
===
I'm trying to write an audio analysis application, and I need to identify local maxima in a 2D array which represents a spectrogram. I've already got an open source library that can generate the spectrogram using Fast Fourier Transforms, but I was wondering if anybody knew of any good libraries to help me with actually finding the maxima? I'm not quite sure what to search Google for - the best I could think of was "numerical library" but that hasn't got me very far.
Preferably in C, but I'm open to other suggestions. | 0 | [
2,
21,
272,
1248,
26,
3007,
375,
10584,
58,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
2757,
40,
4023,
2495,
3010,
15,
17,
31,
376,
20,
5808,
375,
10584,
58,
19,
21,
172,
43,
7718,
56,
4719,
21,
13,
7350,
661,
6295,
9,
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... |
Nunit and 64bits
===
I am on Vista 64 bits and I have a project built with x86 configuration. All work fine. Now, we are at the time to create test. We have NUnit 2.4.8 but we have a lot of problem.
The test are loading trough the Nunit.exe (gui) when we select the .dll directly but when executing we have a system.badimageformatexception.
I have read by searching on Google few trick about the nunit.exe.config but none work. (changing to UTF8... uncomment .net version for startup).
Any idea? | 0 | [
2,
10210,
242,
17,
4384,
3326,
18,
800,
3726,
3726,
31,
589,
27,
13520,
4384,
10181,
17,
31,
57,
21,
669,
392,
29,
993,
3274,
8091,
9,
65,
170,
1123,
9,
130,
15,
95,
50,
35,
14,
85,
20,
1600,
1289,
9,
95,
57,
10210,
242,
172... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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] File download does not work with IE7 & vista
===
I have an asp.net page which sends content of a file to the client, so the browser shows the save as dialog to download the file. This page is displayed in a popup and when the user clicks the save button, it closes automatically and the download starts.
On windows server 2003, it works fine. On vista with other browsers, also works fine. But when I try with IE7 & Vista, the popup opens, and closes after about a second without displaying the file download dialog. How can I solve this?
The code I use for response generation is:
FileStream fileStream = new FileStream(filePath, FileMode.Open);
int fileSize = (int)fileStream.Length;
byte[] buffer = new byte[fileSize];
fileStream.Read(buffer, 0, (int)fileSize);
fileStream.Close();
Response.Clear();
Response.Buffer = true;
Response.BufferOutput = true;
Response.ContentType = "application / octet - stream";
Response.AddHeader("Content-Length", buffer.Length.ToString());
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
Response.AddHeader("Extension", Path.GetExtension(filename));
Response.ContentEncoding = System.Text.Encoding.GetEncoding("windows-1254");
Response.BinaryWrite(buffer);
Response.Flush();
Response.End();
And I am opening the popup with this javascript:
window.open ('Download.aspx?filename=somefile.ext','downloadWindow','location=0,status=0,scrollbars=0,width=1,height=1'); | 0 | [
2,
636,
472,
306,
9,
2328,
500,
3893,
7121,
630,
52,
170,
29,
13,
660,
465,
279,
13520,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
2478,
56,
11350,
2331,
16,
21,
3893,
20,
14,
6819,
15,
86,
14,
16495,
1285,
14,
2079,
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... |
Does anyone here uses PHP-GTK? Is there a better alternative?
===
I had made some questions regarding php-gtk(there are only 4 php-gtk tagged questions and 3 are mine) and I end up answering myself because no one answer them.
I know is a strange language selection but I was attracted to it because it runs on several OS's and the fact that I can reuse some of my code (also the apps end up looking good and I can make little installers in NSIS that just rocks).
Is there a better alternative, that is GPL and can run on several platforms?
| 0 | [
2,
630,
1276,
235,
2027,
13,
26120,
8,
263,
38,
197,
60,
25,
80,
21,
574,
2676,
60,
800,
3726,
3726,
31,
41,
117,
109,
2346,
3467,
13,
26120,
8,
263,
38,
197,
5,
1887,
50,
104,
268,
13,
26120,
8,
263,
38,
197,
27945,
2346,
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... |
Does Ruby best practice shun statement modifiers after, for example, a long code block that is passed to an iterator?
===
something.each do |x|
#lots of stuff
end if some_condition | 0 | [
2,
630,
10811,
246,
1345,
15800,
3331,
7226,
16292,
18,
75,
15,
26,
823,
15,
21,
175,
1797,
1921,
30,
25,
1100,
20,
40,
32,
106,
3457,
60,
800,
3726,
3726,
301,
9,
14322,
107,
13,
1,
396,
1,
6926,
5639,
18,
16,
3217,
241,
100,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What is the difference between Scrum and Extreem Programming?
===
A few years ago I have worked on a green field project where we did Extreme Programming. I also see a lot of people mention the Scrum methodology.
Could someone tell me the main differences between Scrum and XP? | 0 | [
2,
98,
25,
14,
2841,
128,
26562,
17,
1396,
8101,
79,
3143,
60,
800,
3726,
3726,
21,
310,
122,
1464,
31,
57,
577,
27,
21,
647,
575,
669,
113,
95,
144,
4750,
3143,
9,
31,
67,
196,
21,
865,
16,
148,
3794,
14,
26562,
18653,
9,
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,
0,
0,
0,
0,
0... |
Self-documenting code
===
I have a colleague who insists that his code doesn't need comments, it's "self documenting."
I've reviewed his code, and while it's clearer than code which I've seen others produce, I still disagree that self-documenting code is as complete and useful as well commented and documented code.
Help me understand his point of view.
- What is self documenting code
- Can it really replace well commented and documented code
- Are there situations where it's better than well documented and commented code
- Are there examples where code cannot possibly be self-documenting without comments
Maybe it's just my own limitations, but I don't see how it can be a good practice.
This is not meant to be an argument - please don't bring up reasons why well commented and documented code is high priority - there are many resources showing this, but they aren't convincing to my peer. I believe I need to more fully understand his perspective to convince him otherwise. Start a new question if you must, but don't argue here.
-Adam | 4 | [
2,
1119,
8,
28132,
68,
1797,
800,
3726,
3726,
31,
57,
21,
12321,
72,
20098,
30,
33,
1797,
1437,
22,
38,
376,
7534,
15,
32,
22,
18,
13,
7,
8411,
4492,
68,
9,
7,
31,
22,
195,
10072,
33,
1797,
15,
17,
133,
32,
22,
18,
1207,
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... |
Aggregate Login Control [ASP.NET]
===
Is there a control out in the world that allows a user to log in to a website with MS Passport (Windows Live ID, whatever), Facebook, OpenID, etc. all in one control?
Thanks, everyone! | 0 | [
2,
8544,
6738,
108,
569,
636,
472,
306,
9,
2328,
500,
800,
3726,
3726,
25,
80,
21,
569,
70,
19,
14,
126,
30,
2965,
21,
4155,
20,
6738,
19,
20,
21,
2271,
29,
4235,
10338,
13,
5,
27508,
18,
515,
4924,
15,
2099,
6,
15,
9090,
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,
0,
0... |
Django template with jquery
===
I have a Google App Engine that has a form. When the user clicks on the submit button, AJAX operation will be called, and the server will output something to append to the end of the very page where it comes from. How, I have a Django template, and I intend to use jquery. I have the following view:
<html>
<head>
<title></title>
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/scripts.js"></script>
</head>
<body>
welcome
<form id="SubmitForm" action="/" method="POST">
<input type="file" name="vsprojFiles" />
<br/>
<input type="submit" id="SubmitButton"/>
</form>
<div id="Testing">
{{thebest}}
</div>
</body>
</html>
Here's the script in scripts.js:
$(function() {
$("#SubmitForm").click(submitMe);
});
var submitMe = function(){
//alert('no way');
var f = $('#SubmitForm');
var action = f.attr("action");
var serializedForm = f.serialize();
$.ajax( {
type: 'post',
data: serializedForm,
url: form_action,
success: function( result ) {
$('#SubmitForm').after( "<div><tt>" +
result +
"</tt></div>" );
}
} );
};
And here's my controller code:
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.ext.webapp import template
from google.appengine.api.urlfetch_errors import *
import cgi
import wsgiref.handlers
import os
import sys
import re
import urllib
from django.utils import simplejson
class MainPage(webapp.RequestHandler):
def get(self):
path = os.path.join(os.path.dirname(__file__), 'Index.html')
template_values={'thebest': 'thebest'}
tmplRender =template.render(path, template_values)
self.response.out.write(tmplRender)
pass
def Post(self):
print >>sys.__stderr__,'me posting'
result = 'grsgres'
self.response.out.write(simplejson.dumps(result))
As you can see, when the user clicks on the submitbutton, the controller method Mainpage.post will be called.
Now I want to display the content of the 'result' variable right after the form, how can I do it? | 0 | [
2,
3857,
14541,
22894,
29,
487,
8190,
93,
800,
3726,
3726,
31,
57,
21,
8144,
4865,
1406,
30,
63,
21,
505,
9,
76,
14,
4155,
10840,
18,
27,
14,
12298,
5167,
15,
20624,
1453,
129,
44,
227,
15,
17,
14,
8128,
129,
5196,
301,
20,
48... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
TextBox SpellCheck
===
The RichTextBox supports a spellcheck option which is very nice. (SpellCheck.IsEnabled = true)
But I cannot seem to get it to another language. (I live in the Netherlands.. ;))
Does any of you have an experience with the SpellCheck option of TextBox?
I know it can be change by changing the keyboard settings, but I want to change it in the application.
What I have tried so far (and did not work):
- Changing the CurrentCulture on the current Thread.
- Changing the Language property in xaml in "nl-NL"
- Changing the Language property in code with the <code>XmlLanguage.GetLanguage("nl-NL");</code>
You should not get any spelling errors with the following line:
"Dit is een Nederlandse tekst."
The RFC 3066 language key of my language is "nl-NL"
Many thanks,
Rick
| 0 | [
2,
1854,
5309,
4762,
12542,
800,
3726,
3726,
14,
2042,
11969,
5309,
6747,
21,
4762,
12542,
4255,
56,
25,
253,
2210,
9,
13,
5,
23405,
12542,
9,
49,
1264,
579,
43,
800,
1151,
6,
47,
31,
1967,
2260,
20,
164,
32,
20,
226,
816,
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... |
best way to remove an event handler in jquery?
===
who knows the answer?
i have a input type="image" which sort of acts like the little cell notes in excel. if someone enters a number into the textbox this input-image is paired with, i setup an event handler for the input-image and then when the user clicks the image they get a little popup to add some notes to the data.
the problem i'm having, is that when a user enters a zero into the textbox, i need to disable the input-image's event handler. i tried to do something like $('#myimage').click(function { return false; }); but that did not work. | 0 | [
2,
246,
161,
20,
4681,
40,
807,
24641,
19,
487,
8190,
93,
60,
800,
3726,
3726,
72,
3620,
14,
1623,
60,
31,
57,
21,
6367,
1001,
3726,
7,
22039,
7,
56,
2058,
16,
3167,
101,
14,
265,
1667,
2434,
19,
20700,
9,
100,
737,
8104,
21,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Browser & version in prototype library?
===
I am used to using Atlas and recently transitioning to jQuery and sometimes prototype. Project that I'm on now is using prototype - Is there an easy way to get the browser and version using this library? In Atlas it is fairly simple. I've looked over the API documentation and can't seem to find it. | 0 | [
2,
16495,
279,
615,
19,
7063,
1248,
60,
800,
3726,
3726,
31,
589,
147,
20,
568,
11986,
17,
1989,
4513,
68,
20,
487,
8190,
93,
17,
1030,
7063,
9,
669,
30,
31,
22,
79,
27,
130,
25,
568,
7063,
13,
8,
25,
80,
40,
2010,
161,
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... |
technical certifications improve programming skills ?
===
Does going for technical certifications helps one grow as a programmer or it is just to demonstrate that you are a field matter expert ? | 0 | [
2,
2447,
10439,
18,
3545,
3143,
3207,
13,
60,
800,
3726,
3726,
630,
228,
26,
2447,
10439,
18,
7778,
53,
3213,
28,
21,
17968,
54,
32,
25,
114,
20,
10847,
30,
42,
50,
21,
575,
1161,
5390,
13,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.