unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Conditionally set an attribute on an element with JSP Documents (JSPX)
===
In HTML forms, buttons can be disabled by defining the "disabled" attribute on them, with any value:
<button name="btn1" disabled="disabled">Hello</button>
If a button is to be enabled, the attribute should not exist as there is no defined value that the disabled attribute can be set to that would leave the button enabled.
This is causing me problems when I want to enable / disable buttons when using JSP Documents (jspx). As JSP documents have to be well-formed XML documents, I can't see any way of conditionally including this attribute, as something like the following isn't legal:
<button name="btn1" <%= (isDisabled) ? "disabled" : "" %/>>Hello</button>
While I could replicate the tag twice using a JSTL if tag to get the desired effect, in my specific case I have over 15 attributes declared on the button (lots of javascript event handler attributes for AJAX) so duplicating the tag is going to make the JSP very messy.
How can I solve this problem, without sacrificing the readability of the JSP? Are there any custom tags that can add attributes to the parent by manipulating the output DOM? | 0 | [
2,
2874,
1326,
309,
40,
35,
14755,
27,
40,
4520,
29,
487,
3401,
4374,
13,
5,
728,
3401,
396,
6,
800,
3726,
3726,
19,
13,
15895,
1997,
15,
12861,
92,
44,
10154,
34,
14684,
14,
13,
7,
2906,
579,
43,
7,
35,
14755,
27,
105,
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... |
.NET Webservices development approach
===
I'm planning to write a web service aka api for my application which was developed with .Net and SQLServer. .Net provides a simple way to create webservices by creating asmx files. But i need to know how best it can be designed or what are the best practices in creating a web service in .net or some pointers to good articles as this is my first experience in web services programming. Eventhough SF has many references to best practices in API (which are very good) i dont find much information oriented for .net webservices. | 0 | [
2,
13,
9,
2328,
2741,
11449,
18,
522,
2141,
800,
3726,
3726,
31,
22,
79,
2334,
20,
2757,
21,
2741,
365,
20892,
21,
2159,
26,
51,
3010,
56,
23,
885,
29,
13,
9,
2328,
17,
4444,
255,
10321,
106,
9,
13,
9,
2328,
1927,
21,
1935,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Emacs and Python
===
I recently started learning [Emacs][1]. I went through the tutorial, read some introductory articles, so far so good.
Now I want to use it for Python development. From what I understand, there are two separate Python modes for Emacs: python-mode.el, which is part of the Python project; and python.el, which is part of Emacs 22.
I read all information I could find but most of it seems fairly outdated and I'm still confused.
The questions:
1. What is their difference?
2. Which mode should I install and use?
3. Are there other Emacs add-ons that are essential for Python development?
Relevant links:
* [EmacsEditor][2] @ wiki.python.org
* [PythonMode][3] @ emacswiki.org
[1]: http://www.gnu.org/software/emacs/
[2]: http://wiki.python.org/moin/EmacsEditor
[3]: http://www.emacswiki.org/cgi-bin/wiki/PythonMode
| 0 | [
2,
13,
62,
6893,
18,
17,
20059,
800,
3726,
3726,
31,
1989,
373,
2477,
636,
62,
6893,
18,
500,
2558,
165,
500,
9,
31,
296,
120,
14,
29724,
15,
1302,
109,
26958,
3376,
15,
86,
463,
86,
254,
9,
130,
31,
259,
20,
275,
32,
26,
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... |
Where can I find .NET Framework class diagram?
===
I just need a file (picture, pdf or other type file for printing) of the framework structure.
It is very usefull while learning .Net framework. | 0 | [
2,
113,
92,
31,
477,
13,
9,
2328,
6596,
718,
14161,
60,
800,
3726,
3726,
31,
114,
376,
21,
3893,
13,
5,
25602,
15,
13,
11124,
54,
89,
1001,
3893,
26,
7312,
6,
16,
14,
6596,
1411,
9,
32,
25,
253,
4811,
255,
133,
2477,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Parsing Text in MS Access
===
I have column that contains strings. The strings in that column look like this:
FirstString/SecondString/ThirdString
I need to parse this so I have two values:
Value 1: FirstString/SecondString
Value 2: ThirdString
I could have actually longer strings but I always nee it seperated like [string1/string2/string3/...][stringN]
I can't find anyway in access to do this. Any suggestions? Do i need regular expressions? If so, is there a way to do this in the query designer? | 0 | [
2,
2017,
18,
68,
1854,
19,
4235,
1381,
800,
3726,
3726,
31,
57,
4698,
30,
1588,
7887,
9,
14,
7887,
19,
30,
4698,
361,
101,
48,
45,
64,
11130,
118,
5007,
11130,
118,
8932,
11130,
31,
376,
20,
2017,
870,
48,
86,
31,
57,
81,
4070... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Most pythonic way of counting matching elements in something iterable
===
I have an iterable of entries on which I would like to gather some simple statistics, say the count of all numbers divisible by two and the count of all numbers divisible by three.
My first alternative, While only iterating through the list once and avoiding the list expansion (and keeping the [split loop][1] refactoring in mind), looks rather bloated:
(alt 1)
r = xrange(1, 10)
twos = 0
threes = 0
for v in r:
if v % 2 == 0:
twos+=1
if v % 3 == 0:
threes+=1
print twos
print threes
This looks rather nice, but has the drawback of expanding the expression to a list:
(alt 2)
r = xrange(1, 10)
print len([1 for v in r if v % 2 == 0])
print len([1 for v in r if v % 3 == 0])
What I would really like is something like a function like this:
(alt 3)
def count(iterable):
n = 0
for i in iterable:
n += 1
return n
r = xrange(1, 10)
print count(1 for v in r if v % 2 == 0)
print count(1 for v in r if v % 3 == 0)
But this looks a lot like something that could be done without a function. The final variant is this:
(alt 4)
r = xrange(1, 10)
print sum(1 for v in r if v % 2 == 0)
print sum(1 for v in r if v % 3 == 0)
and while the smallest (and in my book probably the most elegant) it doesn't feel like it expresses the intent very well.
So, my question to you is:
Which alternative do you like best to gather these types of stats? Feel free to supply your own alternative if you have something better.
[1]: http://www.refactoring.com/catalog/splitLoop.html | 0 | [
2,
127,
20059,
596,
161,
16,
11195,
10120,
2065,
19,
301,
32,
106,
579,
800,
3726,
3726,
31,
57,
40,
32,
106,
579,
16,
11399,
27,
56,
31,
83,
101,
20,
7442,
109,
1935,
5818,
15,
395,
14,
2468,
16,
65,
2116,
13,
11390,
18,
3426... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 resolve the error "Expression must evaluate to a node-set" when checking for the existence of a node?
===
I'm attempting to check for the existence of a node using the following .NET code:
xmlDocument.SelectSingleNode(String.Format("//ErrorTable/ProjectName/text()='{0}'", projectName));
This always raises XPathException: Expression must evaluate to a node-set. Why am I getting this error and how can I resolve it? Thank you. | 0 | [
2,
184,
107,
31,
9854,
14,
7019,
13,
7,
28993,
491,
13,
15599,
20,
21,
15421,
8,
3554,
7,
76,
9886,
26,
14,
3012,
16,
21,
15421,
60,
800,
3726,
3726,
31,
22,
79,
6314,
20,
2631,
26,
14,
3012,
16,
21,
15421,
568,
14,
249,
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... |
.NET 3.5 published in 11/07 .NET 3.0 in 11/06. Why are most people still using .NET 2.0?
===
People have been developing own solutions to the following problems:
- Consistent messaging frameworks for remote information exchange (webservices,rpc,...)
- SDK's for state managements for things such as Finite State Machines and Workflows
- Authentication Frameworks
- And much more.
For over **two years** now, Microsoft offers .NET 3.0 which contains consistent and well documented so called Foundations for Workflows, Communication, Authentication and a new way to build web apps.
However,... people were still building own frameworks with consistent object relational mapping to address their databases, own techniques to dynamically extend classes and methods at runtime (for customer to be able to customize application behaviour e.g.).
For **over one year** now, Microsoft offers .NET 3.5 which - amongst others - contain LINQ and therefor a great ORM and wonderful means to extend your code and make it much easier to write code after all.
But look around... it seems as if the majority still uses .NET 2.0. Websites are created in plain ASP.NET. Desktop experience is still achieved with a combination of CSS, JavaScript and HTML. Executables are using plain old WinForms, workflows are implemented with delegates, events, do/while and switch/case.
Without too much discussion, I would be glad to see concrete reasons for the following question:
In your opinion: Why is it that people don't jump onto the .NET 3.5 train?
| 4 | [
2,
13,
9,
2328,
203,
9,
264,
467,
19,
547,
118,
2984,
13,
9,
2328,
203,
9,
387,
19,
547,
118,
3370,
9,
483,
50,
127,
148,
174,
568,
13,
9,
2328,
172,
9,
387,
60,
800,
3726,
3726,
148,
57,
74,
3561,
258,
6776,
20,
14,
249,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Replace keys in a tuple in Erlang
===
I have a list of tuples eg. [{1,40},{2,45},{3,54}....{7,23}] where 1...7 are days of the week (calculated by finding calendar:day_of_the_week()). So now I want to change the list to [{Mon,40},{Tue,45},{Wed,54}...{Sun,23}]. Is there an easier way to do it than lists:keyreplace? | 0 | [
2,
3934,
5534,
19,
21,
2289,
5106,
19,
13,
106,
9949,
800,
3726,
3726,
31,
57,
21,
968,
16,
2289,
18534,
12369,
9,
636,
1,
14924,
387,
1,
15,
1,
135,
15,
2520,
1,
15,
1,
240,
15,
3963,
1,
9,
9,
9,
9,
1,
465,
15,
2001,
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... |
In javaDoc, what's the best way of representing attributes in XML?
===
When you're adding javaDoc comments to your code and you're outlining the structure of an XML document that you're passing back, what's the best way to represent attributes? Is there a best practice for this?
My general structure for my javaDoc comments is like this:
/**
* ...
*
* @return XML document in the form:
*
* <pre>
* <ROOT_ELEMENT>
* <AN_ELEMENT>
* <MULTIPLE_ELEMENTS>*
* </ROOT_ELEMENT>
* </pre>
*/ | 2 | [
2,
19,
8247,
13799,
15,
98,
22,
18,
14,
246,
161,
16,
3793,
13422,
19,
23504,
60,
800,
3726,
3726,
76,
42,
22,
99,
4721,
8247,
13799,
7534,
20,
154,
1797,
17,
42,
22,
99,
70,
8930,
14,
1411,
16,
40,
23504,
4492,
30,
42,
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... |
Where can I get comdef.h?
===
I downloaded some example code from the internet, but when I compiled it I ran into some trouble. My compiler tells me: comdef.h: No such file or directory.
I searched a bit on the internet, but I couldn't find anyone else with the same problem and I have no clue where I can obtain this header file.
I use codeblocks with the GNU GCC compiler.
| 0 | [
2,
113,
92,
31,
164,
13,
960,
13862,
9,
252,
60,
800,
3726,
3726,
31,
23887,
109,
823,
1797,
37,
14,
2620,
15,
47,
76,
31,
9316,
32,
31,
717,
77,
109,
2572,
9,
51,
21486,
2609,
55,
45,
13,
960,
13862,
9,
252,
45,
90,
145,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 output a boolean in T-SQL based on the content of a column?
===
I made a view to abstract columns of different tables and pre-filter and pre-sort them. There is one column whose content I don't care about but I need the info if the content is null or not. So my view should pass an alias as "*true*" in case the value of this specified column **isn't null** and "*false*" in case the value **is null**.
Is this possible with T-SQL (Microsoft SQL Server 2000)?
Thanks in advance! | 0 | [
2,
184,
20,
5196,
21,
9827,
413,
210,
19,
13,
38,
8,
18,
22402,
432,
27,
14,
2331,
16,
21,
4698,
60,
800,
3726,
3726,
31,
117,
21,
1418,
20,
8502,
7498,
16,
421,
7484,
17,
782,
8,
11924,
815,
17,
782,
8,
22843,
105,
9,
80,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Date change notification in a Tkinter app (win32)
===
Does anyone know if it is possible (and if yes, how) to bind an event (Python + Tkinter on MS Windows) to a system date change?
I know I can have .after events checking once in a while; I'm asking if I can somehow have an event fired whenever the system date changes (either automatically for daylight saving time or manually).
MS Windows sends such events to applications and Tkinter does receive them; I know, because if I have an .after timer waiting and I set the date/time after the timer's expiration, the timer event fires instantly. | 0 | [
2,
1231,
753,
52,
4634,
19,
21,
13,
38,
1767,
815,
4865,
13,
5,
4181,
3125,
6,
800,
3726,
3726,
630,
1276,
143,
100,
32,
25,
938,
13,
5,
290,
100,
1643,
15,
184,
6,
20,
10193,
40,
807,
13,
5,
6448,
11570,
2754,
13,
38,
1767,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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't find stuff in session that I just put there (but only sometimes)
===
We have a strange problem occurring *once in a while* on our servers. It usually happens when one or more of our web applications are upgraded. Debugging the problem has gotten me this far...
During the processing of a request:
- In the ASP.NET application we put an object in session
- In code running later (same request) we look up that same session value. **It's empty!**
So it looks like the session service isn't working, right? This code runs hundreds of times a day, and never fails in development environments or in production situation, only related to upgrading the web application(s) on the web server.
And the strange thing: We haven't really fond a proper way of fixing the situation either. IIS reset, ASP.NET state server stop/start, web.config edits, and even server reboots have all bin used - normally a combination is needed to fix it + plus a lot of swearing and pulling of hears. And in most cases it isn't fixed right away, but maybe two or three minutes *after* the third IIS reset or whatever. (So it might not be what fixed it after all.)
I'm going crazy here. Any ideas what might be the problem? Is it a microsoft bug?
Some more info:
- We're running under .NET 2.0
- We are using the ASP.NET state service
- The code accessing the session variable and getting back null is in an assembly referenced by the ASP.NET app. It uses the HttpContect.Current to get at the session | 0 | [
2,
92,
22,
38,
477,
3217,
19,
3723,
30,
31,
114,
442,
80,
13,
5,
811,
104,
1030,
6,
800,
3726,
3726,
95,
57,
21,
2578,
1448,
10428,
1637,
13120,
19,
21,
133,
2483,
27,
318,
17595,
9,
32,
951,
5531,
76,
53,
54,
91,
16,
318,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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# Can I Override with derived types?
===
As far as i know it is not possible to do the following in C# 2.0
<code>
public class Father
{
public virtual Father SomePropertyName
{
get
{
return this;
}
}
}
public class Child : Father
{
public override Child SomePropertyName
{
get
{
return this;
}
}
}
</Code>
I workaround the problem by creating the property in the derived class as "new", but of course that is not polymorphic.
<code>
public new Child SomePropertyName
</code>
Is there any solution in 2.0?
What about any features in 3.5 that address this matter?
Thank you,
Luís
| 0 | [
2,
272,
5910,
92,
31,
84,
11891,
29,
3981,
2551,
60,
800,
3726,
3726,
28,
463,
28,
31,
143,
32,
25,
52,
938,
20,
107,
14,
249,
19,
272,
5910,
172,
9,
387,
13,
1,
9375,
1,
317,
718,
321,
13,
1,
317,
6599,
321,
109,
10890,
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... |
Aborting upload from a servlet
===
I'd like to limit the size of the file that can be uploaded to an application. To achieve this, I'd like to abort the upload process from the server side when the size of the file being uploaded exceeds a limit.
Is there a way to abort an upload process from the server side without waiting the HTTP request to finish? | 0 | [
2,
21557,
68,
71,
8294,
37,
21,
13,
10321,
1336,
800,
3726,
3726,
31,
22,
43,
101,
20,
4496,
14,
1072,
16,
14,
3893,
30,
92,
44,
23782,
20,
40,
3010,
9,
20,
4689,
48,
15,
31,
22,
43,
101,
20,
21557,
14,
71,
8294,
953,
37,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Customized DataGridView column does not accept the entered decimal seperator under Windows Vista
===
For a project I built a custom DataGridView column which contains NumericUpDown controls. It is implemented similar to the suggestion from [Microsoft][1]
The column works fine under Windows XP. It accepts the entered digits and decimal separator.
Under Windows Vista I have the odd problem that the control only accepts the decimal separator entered by the numeric keypad but not from the keyboard main block.
I have to add that I work with German (Switzerland) culture settings under Windows Vista and the German (Switzerland) keyboard layout is activated. The decimal separator in Switzerland is .
Someone has an idea for the reason and maybe a solution? Thank you very much!
Michael
[1]: http://msdn.microsoft.com/en-us/library/aa730881(VS.80).aspx | 0 | [
2,
28779,
1054,
16375,
4725,
4698,
630,
52,
3440,
14,
1297,
26380,
10332,
106,
3457,
131,
1936,
13520,
800,
3726,
3726,
26,
21,
669,
31,
392,
21,
5816,
1054,
16375,
4725,
4698,
56,
1588,
15764,
596,
576,
2968,
8671,
9,
32,
25,
6807,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Partial .csproj Files
===
Is it possible to split the information in a .csproj across more than one file? A bit like a project version of the `partial class` feature. | 0 | [
2,
7284,
13,
9,
6824,
2740,
728,
6488,
800,
3726,
3726,
25,
32,
938,
20,
2132,
14,
676,
19,
21,
13,
9,
6824,
2740,
728,
464,
91,
119,
53,
3893,
60,
21,
1142,
101,
21,
669,
615,
16,
14,
13,
1,
3091,
2815,
718,
1,
1580,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What does the term "input-synchronized calls" mean?
===
I found this in an article on Multithreaded Apartments, but can’t find a definition for “input-synchronized calls”.
(Article is at http://msdn.microsoft.com/en-us/library/ms693421(VS.85).aspx)
As used in the article
- Multithreaded apartments cannot make input-synchronized calls
What are “input-synchronized" calls?
Thanks
| 0 | [
2,
98,
630,
14,
981,
13,
7,
108,
4881,
8,
16023,
1333,
3029,
7,
884,
60,
800,
3726,
3726,
31,
216,
48,
19,
40,
2002,
27,
1889,
96,
10647,
69,
10262,
15,
47,
92,
1,
38,
477,
21,
5465,
26,
13,
1,
108,
4881,
8,
16023,
1333,
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... |
How to do something with bash when a text line appear to a file
===
I want to run a command as soon as a certain text appears in to a log file. How do I do it in bash? | 0 | [
2,
184,
20,
107,
301,
29,
13158,
76,
21,
1854,
293,
1893,
20,
21,
3893,
800,
3726,
3726,
31,
259,
20,
485,
21,
1202,
28,
651,
28,
21,
1200,
1854,
1780,
19,
20,
21,
6738,
3893,
9,
184,
107,
31,
107,
32,
19,
13158,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Websphere with Classic ASP
===
Is it practical (or possible) to create a Websphere Portlet for a Classic ASP website? | 0 | [
2,
2741,
14079,
29,
2732,
28,
306,
800,
3726,
3726,
25,
32,
5713,
13,
5,
248,
938,
6,
20,
1600,
21,
2741,
14079,
1295,
1336,
26,
21,
2732,
28,
306,
2271,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do you setup a shared Working Copy in Subversion
===
I still very new using Subversion.
Is it possible to have a working copy on a network available share (c:\svn\projects\website) that everyone (in this case 3 of use) can checkout and commit files to? We don't need a build server because it is an asp site and the designers are used to having immediate results when they save a file. I could try and show them how to set it up local on their machines but if we could just share the files on the development server and still have the ability to commit when someone is done, that would be ideal.
An easy solution would be for all of us to use the same subversion username and that would at least allow me to put files under version control.
But is it possible to checkout a folder from the svn respository but still require each person to login with their user/pass to commit? | 0 | [
2,
184,
107,
42,
18161,
21,
2592,
638,
4344,
19,
972,
10898,
800,
3726,
3726,
31,
174,
253,
78,
568,
972,
10898,
9,
25,
32,
938,
20,
57,
21,
638,
4344,
27,
21,
982,
904,
1891,
13,
5,
150,
45,
1,
18,
16578,
1,
21011,
18,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PHP Development - lot of (newbie) questions
===
I'm a Engineering student and I'm attending a Database and Information Systems class this semester. It's required that I produce a website/application that uses a database, using PHP/PGSQL. My questions are:
- which IDE would you recommend?
- does anyone have good tips and advices for a new developer?
- it would help me (a lot) to develop this project attending some more "academic" aspects of the subject, such as the Entity/Association Model, etc. Are there any good tools to help structure my work?
Thanks! | 0 | [
2,
13,
26120,
522,
13,
8,
865,
16,
13,
5,
2681,
5893,
6,
2346,
800,
3726,
3726,
31,
22,
79,
21,
1552,
1209,
17,
31,
22,
79,
6237,
21,
6018,
17,
676,
1242,
718,
48,
13738,
9,
32,
22,
18,
1390,
30,
31,
2213,
21,
2271,
118,
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... |
Create an EML (E-Mail) File in Java
===
Anybody knows how to do this? I got all the information of the email (body, subject, from , to, cc, bcc) and need to generate an eml-file out of it. | 0 | [
2,
1600,
40,
3579,
255,
13,
5,
62,
8,
8079,
6,
3893,
19,
8247,
800,
3726,
3726,
11181,
3620,
184,
20,
107,
48,
60,
31,
330,
65,
14,
676,
16,
14,
8517,
13,
5,
9760,
15,
1550,
15,
37,
13,
15,
20,
15,
8093,
15,
2726,
150,
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,
0,
0... |
Double checked locking Article
===
I was reading [this article](http://www.ibm.com/developerworks/java/library/j-dcl.html) about "Double-Checked locking" and out of the main topic of the article I was wondering why at some point of the article the author uses the next Idiom:
>Listing 7. Attempting to solve the out-of-order write problem
>
public static Singleton getInstance()
{
if (instance == null)
{
synchronized(Singleton.class) { //1
Singleton inst = instance; //2
if (inst == null)
{
synchronized(Singleton.class) { //3
inst = new Singleton(); //4
}
instance = inst; //5
}
}
}
return instance;
}
And my question is:
Is there any reason to syncronize twice some code with the same lock?
Have this any purpose it?
Many thanks in advance. | 0 | [
2,
1494,
6505,
17538,
2002,
800,
3726,
3726,
31,
23,
1876,
636,
1565,
2002,
500,
5,
21127,
6903,
6483,
9,
4598,
79,
9,
960,
118,
26051,
106,
7684,
118,
1004,
1385,
118,
1210,
2559,
622,
118,
728,
8,
43,
5316,
9,
15895,
6,
88,
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... |
Can one language be better than another?
===
Is it a case by case basis or are there some languages you can compare and really have an honest, non-fanboy, completely measured quality difference between the two? | 4 | [
2,
92,
53,
816,
44,
574,
119,
226,
60,
800,
3726,
3726,
25,
32,
21,
610,
34,
610,
2239,
54,
50,
80,
109,
2556,
42,
92,
11590,
17,
510,
57,
40,
6964,
15,
538,
8,
7491,
5352,
15,
1524,
7160,
2190,
2841,
128,
14,
81,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Open-source fractal maps
===
I'm interested in creating a game that uses fractal maps for more realistic geography. However, the only fractal map programs I have found are Windows-only, for example [Fractal Mapper][1]. Needless to say, they are also not open-sourced.
Are there any open-sourced fractal map creators available, preferably in Python or C/C++? Ideally I would like something that can be "plugged into" a program, rather then being standalone.
[1]: http://www.nbos.com/products/mapper/mapper.htm | 0 | [
2,
368,
8,
12097,
13,
15891,
3663,
6867,
800,
3726,
3726,
31,
22,
79,
3158,
19,
2936,
21,
250,
30,
2027,
13,
15891,
3663,
6867,
26,
91,
12786,
11320,
9,
207,
15,
14,
104,
13,
15891,
3663,
2942,
1726,
31,
57,
216,
50,
1936,
8,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I support the support department better?
===
With the best will in the world, whatever software you (and me) write will have some kind of defect in it.
What can I do, as a developer, to make things easier for the support department (first line, through to third line, and development) to diagnose, workaround and fix problems that the user encounters.
<h3>Notes</h3>
* I'm expecting answers which are predominantly technical in nature, but I expect other answers to exist.
* Vote up things you like
* Down vote or comment things you've seen not to work in practice.
* "Don't release bugs in your software" is a good answer, but I know that already. | 0 | [
2,
184,
92,
31,
555,
14,
555,
604,
574,
60,
800,
3726,
3726,
29,
14,
246,
129,
19,
14,
126,
15,
2099,
2306,
42,
13,
5,
290,
55,
6,
2757,
129,
57,
109,
825,
16,
18929,
19,
32,
9,
98,
92,
31,
107,
15,
28,
21,
10058,
15,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how to log MethodName when wrapping Log4net
===
I have wrapped Log4net in a static wrapper and want to log
loggingEvent.LocationInformation.MethodName
loggingEvent.LocationInformation.ClassName
However all i get is the name of my wrapper.
How can i Log that info using a forwardingappender and a static wrapper class like
Logger.Debug("Logging to Debug");
Logger.Info("Logging to Info");
Logger.Warn("Logging to Warn");
Logger.Error(ex);
Logger.Fatal(ex);
| 0 | [
2,
184,
20,
6738,
2109,
7259,
76,
13437,
6738,
300,
2328,
800,
3726,
3726,
31,
57,
3684,
6738,
300,
2328,
19,
21,
12038,
28051,
17,
259,
20,
6738,
13,
13919,
4943,
38,
9,
19032,
22793,
9,
5909,
1807,
43,
7259,
13,
13919,
4943,
38,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which CASE Tools do you use?
===
Which Computer-aided Software Engineering tools do you use and why? In what ways do they increase your productivity or help you design your programs? Or, in case you do not use CASE tools, what are your reasons for this? | 0 | [
2,
56,
610,
4672,
107,
42,
275,
60,
800,
3726,
3726,
56,
1428,
8,
8830,
69,
2306,
1552,
4672,
107,
42,
275,
17,
483,
60,
19,
98,
2847,
107,
59,
1839,
154,
18211,
54,
448,
42,
704,
154,
1726,
60,
54,
15,
19,
610,
42,
107,
52,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Is it a good design to put event handling code into an own method?
===
Image a Button on your windows form that does something when being clicked.
The click events thats raised is typically bound to a method such as
> protected void Button1_Click(object
> sender, EventArgs e) {
>
> }
What I see sometimes in other peoples' code is that the implementation of the buttons' behaviour is not put into the Button1_Click method but into an own method that is called from here like so:
> private DoStuff() { }
>
> protected void Button1_Click(object
> sender, EventArgs e) {
> this.DoStuff();
> }
Although I see the advantage here (for instance if this piece of code is needed internally somewhere else, it can be easily used), I am wondering, **if this is a general good design decision**?
So the question is:
Is it a generally good idea to put event handling code into an own method and if so what naming convention for those methods are proven to be best practice? | 0 | [
2,
25,
32,
21,
254,
704,
20,
442,
807,
7988,
1797,
77,
40,
258,
2109,
60,
800,
3726,
3726,
1961,
21,
5167,
27,
154,
1936,
505,
30,
630,
301,
76,
142,
15802,
9,
14,
10840,
963,
30,
18,
1127,
25,
2442,
4138,
20,
21,
2109,
145,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best way to loop through a set of elements in JavaScript?
===
In the past and with most my current projects I tend to use a for loop like this:
var elements = document.getElementsByTagName('div');
for (var i=0; i<elements.length; i++) {
doSomething(elements[i]);
}
I've heard that using a "reverse while" loop is quicker but I have no real way to confirm this:
var elements = document.getElementsByTagName('div'),
length = elements.length;
while(length--) {
doSomething(elements[length]);
}
What is considered as best practice when it comes to looping though elements in JavaScript, or any array for that matter? | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
5293,
120,
21,
309,
16,
2065,
19,
8247,
8741,
60,
800,
3726,
3726,
19,
14,
640,
17,
29,
127,
51,
866,
2314,
31,
5480,
20,
275,
21,
26,
5293,
101,
48,
45,
4033,
2065,
800,
4492,
9,
3060,
27567... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
what's the difference between rapidSSL and geotrust certificates?
===
I want to buy a 128bit SSL certificate for a website selling services. I checked http://www.rapidssl.com/ssl-certificate-products/ssl-certificate.htm and http://www.geotrust.com/ssl/compare-ssl-certificates.html. Why are the prices for QuickSSL (Geotrust, $249) and RapidSSL (rapidSSL, $69) so different? Is there any particular reason for this or it's just marketing?
RapidSSL says the following:
>However it is our opinion that sites conducting more than 50 transactions will require a Professional Level SSL certificate due to the increased likelihood that the website's customers will expect SSL from a highly credible and established SSL provider and well
known internationally accepted SSL brand.
(by "professional level SSL" they mean Geotrust certs)
P.S. will users really pay attention to the SSL issuing authority brand name? | 0 | [
2,
98,
22,
18,
14,
2841,
128,
14908,
18,
255,
17,
6389,
11592,
6259,
18,
60,
800,
3726,
3726,
31,
259,
20,
3034,
21,
13218,
3326,
13,
18,
18,
255,
6259,
26,
21,
2271,
4355,
687,
9,
31,
6505,
7775,
6903,
6483,
9,
10817,
9178,
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... |
SQL trigger for deleting old results
===
We have a database that we are using to store test results for an embedded device. There's a table with columns for different types of failures (details not relevant), along with a primary key 'keynum' and a 'NUM\_FAILURES' column that lists the number of failures. We store passes and failures, so a pass has a '0' in 'NUM\_FAILURES'.
In order to keep the database from growing without bounds, we want to keep the last 1000 results, plus any of the last 50 failures that fall outside of the 1000. So, worst case, the table could have 1050 entries in it. I'm trying to find the most efficient SQL insert trigger to remove extra entries. I'll give what I have so far as an answer, but I'm looking to see if anyone can come up with something better, since SQL isn't something I do very often.
We are using SQLITE3 on a non-Windows platform, if it's relevant. | 0 | [
2,
4444,
255,
7286,
26,
121,
1336,
68,
315,
1736,
800,
3726,
3726,
95,
57,
21,
6018,
30,
95,
50,
568,
20,
1718,
1289,
1736,
26,
40,
12138,
3646,
9,
80,
22,
18,
21,
859,
29,
7498,
26,
421,
2551,
16,
2990,
18,
13,
5,
546,
8682... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 3270 screen-scrape from a Linux-based web app
===
I have a LAMP (PHP) web app which need to interface with programs on an IBM 3270 mainframe. One solution I'm looking at is screen-scraping via TN3270. (I'm integrating the present with the past!)
Many years ago, I wrote C code which used HLLAPI as the basis for such a task.
1. Is HLLAPI still the best way to approach this task?
2. If so, would I be best off just writing a C app to undertake the work necessary and exec() this C app from php?
3. Are there any open source HLLAPI providers for Linux? (In the past I used commercial solutions such as Cleo.)
| 0 | [
2,
184,
20,
203,
13710,
2324,
8,
18,
7519,
1664,
37,
21,
13024,
8,
1281,
2741,
4865,
800,
3726,
3726,
31,
57,
21,
6792,
13,
5,
26120,
6,
2741,
4865,
56,
376,
20,
6573,
29,
1726,
27,
40,
10233,
203,
13710,
407,
8361,
9,
53,
429... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
VS2008 Plugin to preview CSS changes
===
I'm pretty happy with the CSS editor in VS2008, but having to save and refresh in the browser when I am making big changes is a pain.
If have downloaded programs like CSSVista, but the CSS editor is not powerful and really don't like to leave the IDE.
Do you know of some VS2008 plug in for this? | 0 | [
2,
4611,
2753,
10922,
108,
20,
16121,
272,
18,
18,
1693,
800,
3726,
3726,
31,
22,
79,
1772,
1700,
29,
14,
272,
18,
18,
1835,
19,
4611,
2753,
15,
47,
452,
20,
2079,
17,
24905,
19,
14,
16495,
76,
31,
589,
544,
580,
1693,
25,
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... |
What are the best resources for preparing for a MCTS exam.
===
I am considering taking the MCTS exam (employer will pay) with the intention of gaining a core understanding of the .NET framework. Also, I plan to take the C# version. What are the best preparation resources. (I am not interested in brain dumps, as my goal is to learn, not just pass) | 2 | [
2,
98,
50,
14,
246,
2566,
26,
7575,
26,
21,
1324,
38,
18,
11796,
9,
800,
3726,
3726,
31,
589,
5154,
741,
14,
1324,
38,
18,
11796,
13,
5,
1503,
13221,
4366,
129,
1372,
6,
29,
14,
5140,
16,
8299,
21,
2884,
3260,
16,
14,
13,
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... |
Reports in a .NET Winforms App
===
I'm writing a Winforms application and I've been writing these awful HTML reports where I have templates set up and use String.Replace to get my variables into the templates, then output the results to a WebBrowser control. I really don't like this set up.
I'd love to be able to use ASP.NET for my reports, but my clients don't want to have to run IIS on all the machines this is getting installed on, so that's not really an option. | 0 | [
2,
2813,
19,
21,
13,
9,
2328,
628,
4190,
18,
4865,
800,
3726,
3726,
31,
22,
79,
1174,
21,
628,
4190,
18,
3010,
17,
31,
22,
195,
74,
1174,
158,
9021,
13,
15895,
2813,
113,
31,
57,
22894,
18,
309,
71,
17,
275,
3724,
9,
99,
511... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Hibernate SessionFactoryBean for multiple locations of mapping files
===
We have a project consisting of multiple subprojects. With each subproject we potentially have some hibernate mapping files but in the end only **one actual hibernate session**. Those subprojects could be combined in several ways, some depend on each other. My problem is that actually I want to have a SessionFactoryBean which would be able to collect those mappings/mappinglocations from the applicationContext(s) and configure itself.
Has somebody written something like this, or do I have to do it myself (I envision something a bit like the urlresolver or viewresolver functionality from SpringMVC)? | 0 | [
2,
4148,
2102,
8820,
3723,
17455,
93,
863,
210,
26,
1886,
4095,
16,
13305,
6488,
800,
3726,
3726,
95,
57,
21,
669,
4160,
16,
1886,
972,
21011,
18,
9,
29,
206,
972,
21011,
95,
9465,
57,
109,
4148,
2102,
8820,
13305,
6488,
47,
19,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Template Lib (Engine) in Python running with Jython
===
Im searching a Template Lib or Template Engine for generating HTML (XML) that runs under Jython (Jython 2.5 Alpha is ok).
| 0 | [
2,
22894,
13,
8326,
13,
5,
16847,
6,
19,
20059,
946,
29,
487,
93,
11570,
800,
3726,
3726,
797,
5792,
21,
22894,
13,
8326,
54,
22894,
1406,
26,
13500,
13,
15895,
13,
5,
396,
8184,
6,
30,
1461,
131,
487,
93,
11570,
13,
5,
728,
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,
0,
0,
0,
0,
0,
0,
0,
0... |
Best binary/ordinary XML implementation for j2me
===
Following Izb's question about [Best binary XML format for JavaME][1], I'm looking for an implementation for either binary XML-like formats or just plain XML. My metrics for such implementation, by most important first, are:
1. Supported phones. A basic [JTWI][2] phone should be able to run it.
2. It should be either verified or open source, so I could have it verified.
3. Small memory footprint.
4. Fast.
5. Easy to use on server side.
Thanks,<br>
Asaf.
[1]: http://stackoverflow.com/questions/8599/best-binary-xml-format-for-javame
[2]: http://jcp.org/en/jsr/detail?id=185 | 0 | [
2,
246,
14171,
118,
28378,
23504,
6123,
26,
487,
135,
790,
800,
3726,
3726,
249,
13,
3186,
220,
22,
18,
1301,
88,
636,
4936,
14171,
23504,
2595,
26,
8247,
790,
500,
2558,
165,
500,
15,
31,
22,
79,
699,
26,
40,
6123,
26,
694,
141... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
bash script runs from shell but not from cron job
===
#!/bin/bash
/usr/bin/rm /home/user/Maildir/.SPAM/cur/*;
I Have this simple bash script that I want to add to a cron job (also includes spam learning commands before) but this part always fails with "File or directory not found" From what I figure is the metachar isn't being interperted correctly when run as a cron job. If I execute the script from the commandline it works fine.
I'd like a why for this not working and of course a working solution :)
Thanks | 0 | [
2,
13158,
3884,
1461,
37,
3593,
47,
52,
37,
13,
19587,
1205,
800,
3726,
3726,
6926,
187,
118,
4772,
118,
969,
1635,
13,
118,
267,
139,
118,
4772,
118,
6538,
13,
118,
8167,
118,
16704,
118,
8079,
9035,
118,
9,
3401,
765,
118,
4734,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 mathematics necessary for programming?
===
I happened to debate with a friend during college days whether advanced mathematics is necessary for any veteran programmer. He used to argue fiercely against that. He said that programmers need only basic mathematical knowledge from high school or fresh year college math, no more no less, and that almost all of programming tasks can be achieved without even need for advanced math. He argued, however, that algorithms are fundamental & must-have asset for programmers.
My stance was that all computer science advances depended almost solely on mathematics advances, and therefore a thorough knowledge in mathematics would help programmers greatly when they're working with real-world challenging problems.
I still cannot settle on which side of the arguments is correct. Could you tell us your stance, from your own experience? | 4 | [
2,
25,
4264,
2378,
26,
3143,
60,
800,
3726,
3726,
31,
1190,
20,
4503,
29,
21,
860,
112,
314,
509,
1472,
2255,
4264,
25,
2378,
26,
186,
7441,
17968,
9,
24,
147,
20,
6467,
19139,
149,
30,
9,
24,
87,
30,
17968,
18,
376,
104,
2125... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
non-database field on ClearQuest form
===
Is there a way to use form fields that does not correspond to database field for temporary processings?
I.e. I want to add:
- temp fields **item1**, **item2**
- database field **sum**
- button with record hook that sets **sum** = **item1** + **item2** | 0 | [
2,
538,
8,
18768,
8436,
575,
27,
1207,
10351,
505,
800,
3726,
3726,
25,
80,
21,
161,
20,
275,
505,
2861,
30,
630,
52,
14217,
20,
6018,
575,
26,
4700,
5511,
18,
60,
31,
9,
62,
9,
31,
259,
20,
3547,
45,
13,
8,
13,
9577,
2861,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Accurate timestamping in Python
===
I've been building an error logging app recently and was after a way of accurately timestamping the incoming data. When I say accurately I mean each timestamp should be accurate relative to each other (no need to sync to an atomic clock or anything like that).
I've been using datetime.now() as a first stab, but this isn't perfect:
>>> for i in range(0,1000):
... datetime.datetime.now()
...
datetime.datetime(2008, 10, 1, 13, 17, 27, 562000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 562000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 562000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 562000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 578000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 578000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 578000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 578000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 578000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 609000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 609000)
datetime.datetime(2008, 10, 1, 13, 17, 27, 609000)
etc.
The changes between clocks for the first second of samples looks like this:
uSecs difference
562000
578000 16000
609000 31000
625000 16000
640000 15000
656000 16000
687000 31000
703000 16000
718000 15000
750000 32000
765000 15000
781000 16000
796000 15000
828000 32000
843000 15000
859000 16000
890000 31000
906000 16000
921000 15000
937000 16000
968000 31000
984000 16000
So it looks like the timer data is only updated every ~15-32ms on my machine. The problem comes when we come to analyse the data because sorting by something other than the timestamp and then sorting by timestamp again can leave the data in the wrong order (chronologically). It would be nice to have the time stamps accurate to the point that any call to the time stamp generator gives a unique timestamp.
I had been considering some methods involving using a time.clock() call added to a starting datetime, but would appreciate a solution that would work accurately across threads on the same machine. Any suggestions would be very gratefully received. | 0 | [
2,
8137,
436,
4919,
3181,
19,
20059,
800,
3726,
3726,
31,
22,
195,
74,
353,
40,
7019,
13,
13919,
4865,
1989,
17,
23,
75,
21,
161,
16,
16353,
436,
4919,
3181,
14,
17126,
1054,
9,
76,
31,
395,
16353,
31,
884,
206,
436,
38,
10158,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Borderless Taskbar items: Using a right click menu (VB6)
===
Even when `BorderStyle` is set to 0, it is possible to force a window to show up on the taskbar either by turning on the `ShowInTaskbar` property or by using the windows api directly: `SetWindowLong Me.hwnd, GWL_EXSTYLE, GetWindowLong(Me.hwnd, Win.GWL_EXSTYLE) Or Win.WS_EX_APPWINDOW`. However, such taskbar entries lack a right-click menu in their taskbar entry. Right-clicking them does nothing instead of bringing up a context menu. Is there a way, to attach a standard or custom handler to it? | 0 | [
2,
1862,
923,
3005,
1850,
3755,
45,
568,
21,
193,
10840,
11379,
13,
5,
20468,
379,
6,
800,
3726,
3726,
166,
76,
13,
1,
24389,
4381,
1,
25,
309,
20,
713,
15,
32,
25,
938,
20,
558,
21,
1463,
20,
298,
71,
27,
14,
3005,
1850,
69... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 find out if a SQLite index is unique? (With SQL)
===
I want to find out, with an SQL query, whether an index is UNIQUE or not. I'm using SQLite 3.
I have tried two approaches:
SELECT * FROM sqlite_master WHERE name = 'sqlite_autoindex_user_1'
This returns information about the index ("type", "name", "tbl_name", "rootpage" and "sql"). Note that the sql column is empty when the index is automatically created by SQLite.
PRAGMA index_info(sqlite_autoindex_user_1);
This returns the columns in the index ("seqno", "cid" and "name").
Any other suggestions? | 0 | [
2,
184,
107,
31,
477,
70,
100,
21,
4444,
10601,
4348,
25,
2619,
60,
13,
5,
1410,
4444,
255,
6,
800,
3726,
3726,
31,
259,
20,
477,
70,
15,
29,
40,
4444,
255,
25597,
15,
1472,
40,
4348,
25,
2619,
54,
52,
9,
31,
22,
79,
568,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Recommend a tool for graphics, please!
===
I work on a (raytracer) graphics engine and during the development process I want to create a bunch of pictures describing algorithms in space.
First I thought about 3D packages (like 3DSMax and others), then about 2D (like Illustrator and others). But it all seems to be an overkill... (I'd like to use Rhino 4.0 Evaluation, but it is an evaluation version. On the other hand, I don't need all the features Rhino provides, but its license doesn't allow me to use it in Houdini-style for education, for example.)
So, here are my requirements:
- Free;
- Has support of vector graphics so that I can draw lines with arrows and so on;
- Has support of 3D graphics so that it can project it to the random plane (like Rhino or Autocad can do it);
- Works on WindowsXP.
- Also it would be good although no necessary if It could export the scene to either some kind of animation or interactive picture (like VRML or something, I don't care). So, again, this feature is not necessary. | 4 | [
2,
12360,
21,
5607,
26,
8351,
15,
2247,
187,
800,
3726,
3726,
31,
170,
27,
21,
13,
5,
2787,
1939,
5482,
6,
8351,
1406,
17,
112,
14,
522,
953,
31,
259,
20,
1600,
21,
7653,
16,
3104,
7153,
15935,
19,
726,
9,
64,
31,
289,
88,
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... |
Can you recommend good books on CAN and MOST protocols?
===
Can you recommend (any) good books on CAN and/or MOST protocols?
| 0 | [
2,
92,
42,
12360,
254,
964,
27,
92,
17,
127,
19957,
60,
800,
3726,
3726,
92,
42,
12360,
13,
5,
6001,
6,
254,
964,
27,
92,
17,
118,
248,
127,
19957,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What are the benefits of using Perforce instead of Subversion?
===
My team has been using SVN for a few years. We now have the option of switching to Perforce.
What would be the benefits (and pitfalls) of making such a switch? | 0 | [
2,
98,
50,
14,
5800,
16,
568,
416,
8774,
700,
16,
972,
10898,
60,
800,
3726,
3726,
51,
173,
63,
74,
568,
13,
18,
16578,
26,
21,
310,
122,
9,
95,
130,
57,
14,
4255,
16,
13027,
20,
416,
8774,
9,
98,
83,
44,
14,
5800,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... |
Server Error in '/' Application.
===
I have created a Web Application in asp.net 2.0. which is working fine on my Local machine. However when trying to deploy it on sever that has windows 2003 sever, I get the error:
Server Error in '/' Application.
================================
----------
*Parser Error*
------------
**Description:** An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
**Parser Error Message:** The file '/MasterPage.master' does not exist.
**Source Error:**
Line 1: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="LinkChecker Home " %>
Line 2: <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
Line 3:
**Source File:** /LinkChecker/Default.aspx **Line**: 1
Any idea how this can be fixed?
| 0 | [
2,
8128,
7019,
19,
13,
22,
118,
22,
3010,
9,
800,
3726,
3726,
31,
57,
679,
21,
2741,
3010,
19,
28,
306,
9,
2328,
172,
9,
387,
9,
56,
25,
638,
1123,
27,
51,
375,
1940,
9,
207,
76,
749,
20,
17617,
32,
27,
15114,
30,
63,
1936... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Problem joining on the highest value in mysql table
===
I have a products table...
![alt text][1]
and a revisions table, which is supposed to track changes to product info
![alt text][2]
I try to query the database for all products, with their most recent revision...
select
*
from `products` as `p`
left join `revisions` as `r` on `r`.`product_id` = `p`.`product_id`
group by `p`.`product_id`
order by `r`.`modified` desc
but I always just get the first revision. I need to do this in **one** select (ie no sub queries). I can manage it in mssql, is this even possible in mysql?
[1]: http://img357.imageshack.us/img357/6393/productscx5.gif
[2]: http://img124.imageshack.us/img124/1139/revisionslz5.gif | 0 | [
2,
1448,
3765,
27,
14,
1554,
1923,
19,
51,
18,
22402,
859,
800,
3726,
3726,
31,
57,
21,
1985,
859,
9,
9,
9,
13,
187,
2558,
192,
38,
1854,
500,
2558,
165,
500,
17,
21,
11323,
18,
859,
15,
56,
25,
2293,
20,
792,
1693,
20,
2374... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Host Maven Repository
===
I would like to host a Maven repository for a framework we're working on and its dependencies. Can I just deploy my artifacts to my ftp host using mvn deploy, or should I manually deploy and/or setup some things before being able to deploy artifacts? Do I need a tool like Apache Archiva? Note: I only have ftp access to server I want to host the maven repo on. | 0 | [
2,
2015,
1216,
3124,
24869,
800,
3726,
3726,
31,
83,
101,
20,
2015,
21,
1216,
3124,
24869,
26,
21,
6596,
95,
22,
99,
638,
27,
17,
82,
29411,
9,
92,
31,
114,
17617,
51,
10996,
20,
51,
1187,
306,
2015,
568,
17967,
103,
17617,
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... |
What types of sockets are available in VxWorks?
===
Vxworks supports standard IP v4 and IP v6 sockets, but sockets are also used for other purposes.
What other types of sockets are available? | 0 | [
2,
98,
2551,
16,
18482,
18,
50,
904,
19,
566,
396,
7684,
60,
800,
3726,
3726,
566,
396,
7684,
6747,
1236,
15735,
566,
300,
17,
15735,
566,
379,
18482,
18,
15,
47,
18482,
18,
50,
67,
147,
26,
89,
4612,
9,
98,
89,
2551,
16,
1848... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What GUIs exist for GIT on Windows
===
I use SVN via TortoiseSVN but I hear good things about GIT.
Are there any similar tools available for GIT on Windows?
Feel free to answer with tools which still in early development. | 0 | [
2,
98,
9457,
18,
3182,
26,
13,
10404,
27,
1936,
800,
3726,
3726,
31,
275,
13,
18,
16578,
1197,
25691,
18,
16578,
47,
31,
990,
254,
564,
88,
13,
10404,
9,
50,
80,
186,
835,
4672,
904,
26,
13,
10404,
27,
1936,
60,
583,
551,
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,
0,
0,
0,
0,
0,
0,
0,
0... |
Is there a way to establish a HTTPS Connection with Java 1.3?
===
I have to work on an old 1.3 JVM and I'm asked to create a secure connection to another server. Unfortunately the HttpsURLConnection only appears sinc JVM 1.4.
Is there another way to create a secure connection? Is there a library that I could you to add this fonctionnality? | 0 | [
2,
25,
80,
21,
161,
20,
4088,
21,
7775,
18,
2760,
29,
8247,
137,
9,
240,
60,
800,
3726,
3726,
31,
57,
20,
170,
27,
40,
315,
137,
9,
240,
487,
20147,
17,
31,
22,
79,
411,
20,
1600,
21,
4315,
2760,
20,
226,
8128,
9,
6200,
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... |
Open multiple documents from a single file
===
How would I go about creating multiple documents when a single file is opening in a MFC application?
We have an aggregate file format which can contain information for multiple documents. When this file is opened, I would like multiple CDocuments created for each record in the file. We already have a extended CDocManager, so I'm guessing this could be implemented by some logic in OpenDocumentFile. The question is how to pass the information about "I am record x of y" back up from the CDocument class to the doc manager? | 0 | [
2,
368,
1886,
4374,
37,
21,
345,
3893,
800,
3726,
3726,
184,
83,
31,
162,
88,
2936,
1886,
4374,
76,
21,
345,
3893,
25,
1214,
19,
21,
307,
7061,
3010,
60,
95,
57,
40,
8544,
3893,
2595,
56,
92,
3717,
676,
26,
1886,
4374,
9,
76,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 Objects via QueryString
===
I have object A which in turn has a property of type Object B
Class A
property x as Object B
End Class
On my ASP.NET page when I select a gridview item which maps to an object of type A I serialize the object onto the QueryString and pass it to the next page.
However I run into problems if property x actually has some value as it looks like I exceed the QueryString capacity length of 4k (although I didn't think the objects were that large)
I have already considered the following approaches to do this
- Session Variables
**Approach not used as I have read that this is bad practice.**
- Using a unique key for the object and retrieving it on the next page.
**Approach not used as the objects do not map to a single instance in a table, they arte composed of data from different databases.**
So I guess my question is two fold
- Is it worth using GKZip to compress the querystring further (is this possible??)
- What other methods would people suggest to do this? | 0 | [
2,
2848,
3916,
1197,
25597,
11130,
800,
3726,
3726,
31,
57,
3095,
21,
56,
19,
805,
63,
21,
1354,
16,
1001,
3095,
334,
718,
21,
1354,
993,
28,
3095,
334,
241,
718,
27,
51,
28,
306,
9,
2328,
2478,
76,
31,
5407,
21,
7354,
4725,
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... |
Using lock on the key of a Dictionary<string, object>
===
I have a `Dictionary<string, someobject>`.
I need to update items in my dictionary - one key at a time and i was wondering if there are any problems in using the lock on the .key value of my Dictionary object?
private static Dictionary<string, MatrixElement> matrixElements = new Dictionary<string, MatrixElement>();
//Pseudo-code
foreach (KeyValuePair<string, MatrixElement> keyValuePair in matrixElements)
{
lock (keyValuePair.Key)
{
matrixElements[keyValuePair.Key] = SomeMeanMethod();
}
}
Would that hold up in court or fail? I just want each value in the dictionary to be locked independantly so locking (and updating) one value does not lock the others. Also i'm aware the locking will be holding for a long time - but the data will be invalid untill updated fully. | 0 | [
2,
568,
3991,
27,
14,
1246,
16,
21,
9186,
1,
11130,
15,
3095,
1,
800,
3726,
3726,
31,
57,
21,
13,
1,
22595,
1857,
1,
11130,
15,
109,
23793,
1,
9,
31,
376,
20,
11100,
3755,
19,
51,
9186,
13,
8,
53,
1246,
35,
21,
85,
17,
31,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using Maven 1.x without extra plugins, how does someone build an executable jar?
===
Using Maven 1.x with just the bundled/standard plugins, what configuration is necessary to build an executable Jar?
Answers should cover:
- including dependencies in target Jar
- proper classpath configuration to make dependency Jars accessible
| 0 | [
2,
568,
1216,
3124,
137,
9,
396,
366,
2230,
10922,
108,
18,
15,
184,
630,
737,
1895,
40,
1396,
17194,
5924,
5112,
60,
800,
3726,
3726,
568,
1216,
3124,
137,
9,
396,
29,
114,
14,
10194,
43,
118,
15566,
10922,
108,
18,
15,
98,
809... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 freeze GridView header?
===
As in title, does anyone know how to freeze GridView header in ASP.NET ? | 0 | [
2,
184,
20,
11551,
7354,
4725,
157,
106,
60,
800,
3726,
3726,
28,
19,
581,
15,
630,
1276,
143,
184,
20,
11551,
7354,
4725,
157,
106,
19,
28,
306,
9,
2328,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Singular/plural searches and stemming
===
I'm discovering a simple solution for singular-plural keywords searches. I heard about stemming but I don't want to use all its features, only plural/singular transformation. The language is Dutch. Have looked at [http://www.snowball.tartarus.org][1] before. Does anyone know the simple solution for singular|plural relevant searches?
Thanks in advance.
[1]: http://www.snowball.tartarus.org | 0 | [
2,
12217,
118,
5727,
10018,
19994,
17,
29105,
800,
3726,
3726,
31,
22,
79,
15799,
21,
1935,
4295,
26,
12217,
8,
5727,
10018,
1246,
12827,
19994,
9,
31,
752,
88,
29105,
47,
31,
221,
22,
38,
259,
20,
275,
65,
82,
967,
15,
104,
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... |
Creating SQL Server Management Studio 2005 Plugins
===
I've read that plug-ins aren't support for SQL Server Management Studio 2005. But it can be done though. Anyone have any ideas how to do thist?
Here is a company that does it now:
http://www.red-gate.com/products/SQL_Refactor/index.htm
| 0 | [
2,
2936,
4444,
255,
8128,
1097,
1120,
812,
10922,
108,
18,
800,
3726,
3726,
31,
22,
195,
1302,
30,
10922,
8,
108,
18,
4847,
22,
38,
555,
26,
4444,
255,
8128,
1097,
1120,
812,
9,
47,
32,
92,
44,
677,
362,
9,
1276,
57,
186,
3478... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I convert an XmlNodeList into a NodeSet to use within XSLT?
===
I've got a XmlNodeList which I need to have it in a format that I can then re-use it within a XSLT stylesheet by calling it from a C# extension method, can anyone help? I have read that it might have something to do with using a XPathNavigator but I'm still a bit stuck.
Thanks in advanced,
Chris | 0 | [
2,
184,
107,
31,
8406,
40,
23504,
251,
3436,
702,
77,
21,
16272,
1198,
20,
275,
363,
993,
18,
255,
38,
60,
800,
3726,
3726,
31,
22,
195,
330,
21,
23504,
251,
3436,
702,
56,
31,
376,
20,
57,
32,
19,
21,
2595,
30,
31,
92,
94,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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# functions with static data
===
In VB.Net, I can declare a variable in a function as Static, like this:
Function EncodeForXml(ByVal data As String) As String
Static badAmpersand As Regex = new Regex("&(?![a-zA-Z]{2,6};|#[0-9]{2,4};)")
data = badAmpersand.Replace(data, "&")
''// more processing
return data
End Function
Note that I need to use the keyword <code>Static</code>, rather than <code>Shared</code>, which is the normal way to express this in VB.Net. How can I do this in C#? I can't find it's equivalent. | 0 | [
2,
272,
5910,
3719,
29,
12038,
1054,
800,
3726,
3726,
19,
13,
20468,
9,
2328,
15,
31,
92,
10123,
21,
7612,
19,
21,
1990,
28,
12038,
15,
101,
48,
45,
1990,
20523,
1106,
396,
8184,
5,
779,
3377,
1054,
28,
3724,
6,
28,
3724,
12038,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 a private assembly in .Net?
===
I understand access modifiers at the class level and below, but why would an entire assembly be private? I assume by default, assemblies are public? | 0 | [
2,
98,
25,
21,
932,
1475,
19,
13,
9,
2328,
60,
800,
3726,
3726,
31,
1369,
1381,
7226,
16292,
18,
35,
14,
718,
662,
17,
1021,
15,
47,
483,
83,
40,
1078,
1475,
44,
932,
60,
31,
7158,
34,
12838,
15,
21066,
50,
317,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
SQL 2005 DB Partitioning for SharePoint
===
Background
I have a massive db for a SharePoint site collection. It is 130GB and growing at 10gb per month. 100GB of the 130GB is in one site collection. 30GB is the version table. There is only one site collection - this is by design.
Question
Am I able to partition a database (SharePoint) using SQL 2005s data partitioning features (creating multiple data files)?
Is it possible to partition a database that is already created?
Has anyone partitioned a SharePoint DB? Will I encounter any issues?
| 0 | [
2,
4444,
255,
812,
13,
9007,
10711,
68,
26,
1891,
3132,
800,
3726,
3726,
2395,
31,
57,
21,
3787,
13,
9007,
26,
21,
1891,
3132,
689,
1206,
9,
32,
25,
9489,
11400,
17,
1991,
35,
332,
11400,
416,
1617,
9,
808,
11400,
16,
14,
9489,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Handling Long Running Reports
===
I am working on a ASP.net application written in C# with Sql Server 2000 database. We have several PDF reports which clients use for their business needs. The problem is these reports take a while to generate (> 3 minutes). What usually ends up happening is when the user requests the report the request timeout kills the request before the web server has time to finish generating the report, so the user never gets a chance to download the file. Then the user will refresh the page and try again, which starts the entire report generation process over and still ends up timing out. (No we aren't caching reports right now; that is something I am pushing hard for...).
How do you handle these scenarios? I have an idea in my head which involves making an aysnchronous request to start the report generating and then have some javascript to periodically check the status. Once the status indicates the report is finished then make a separate request for the actual file.
Is there a simpler way that I am not seeing? | 0 | [
2,
7988,
175,
946,
2813,
800,
3726,
3726,
31,
589,
638,
27,
21,
28,
306,
9,
2328,
3010,
642,
19,
272,
5910,
29,
4444,
255,
8128,
824,
6018,
9,
95,
57,
238,
13,
11124,
2813,
56,
7421,
275,
26,
66,
508,
2274,
9,
14,
1448,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
When using cvs2svn how can you rename symbols such that a branch and tag resolve to the same name?
===
I am working on converting a CVS repository that has the following symbols (among others):
`tcm-6.1.0-branch` -- a branch
`tcm-6.1.0` -- a tag
Using the standard transformations cvs2svn identifies them properly. However, I'd like to do some clean up during the conversion. Specifically I'd like to drop the redundant '-branch' portion of the branch symbol, since it will be in the 'branches' dir in svn. I added the following to the symbol_transforms of the project:
RegexpSymbolTransform(r'(.*)-branch', r'\1')
Now I end up with " ERROR: Multiple definitions of the symbol 'tcm-6.1.0' in ..." for every file because `tcm-6.1.0` is both a branch and a tag. I have several CVS symbol pairs that result in this problem.
It seems to me that since the source symbols are different and the destination directories are different this operation should be possible. Is there something I'm missing or is this simply a shortcoming of cvs2svn?
How can I rename these symbols such that they remain separate and result in a branch and a tag with the same name?
--
If there is no work around I will try to exclude the problem symbols from the conversion rules and move them by hand afterwards, though I'd rather do it at conversion time. | 0 | [
2,
76,
568,
13,
12732,
18,
135,
18,
16578,
184,
92,
42,
302,
7259,
9794,
145,
30,
21,
1686,
17,
3383,
9854,
20,
14,
205,
204,
60,
800,
3726,
3726,
31,
589,
638,
27,
19583,
21,
13,
12732,
18,
24869,
30,
63,
14,
249,
9794,
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... |
Data generators for SQL server?
===
I would like to receive suggestions on the data generators that are available, for SQL server. If posting a response, please provide any features that you think are important.
I have never used a application like this, so I am looking to be educated on the topic. Thank you.
(My goal is to fill a database with 10,000+ records in each table, to test an application.) | 0 | [
2,
1054,
20495,
26,
4444,
255,
8128,
60,
800,
3726,
3726,
31,
83,
101,
20,
2588,
18389,
27,
14,
1054,
20495,
30,
50,
904,
15,
26,
4444,
255,
8128,
9,
100,
15669,
21,
1627,
15,
2247,
1181,
186,
967,
30,
42,
277,
50,
681,
9,
31,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Getting specific revision via http with VisualSVN Server
===
I'm using VisualSVN Server to host an SVN repo, and for some automation work, I'd like to be able to get specific versions via the http[s] layer.
I can get the HEAD version simply via an http[s] request to the server (httpd?) - but is there any ability to specify the revision, perhaps as a query-string? I can't seem to find it...
I don't want to do a checkout unless I can help it, as there are a lot of files in the specific folder, and I don't want them all - just one or two. | 0 | [
2,
1017,
1903,
11323,
1197,
7775,
29,
3458,
18,
16578,
8128,
800,
3726,
3726,
31,
22,
79,
568,
3458,
18,
16578,
8128,
20,
2015,
40,
13,
18,
16578,
302,
1638,
15,
17,
26,
109,
23217,
170,
15,
31,
22,
43,
101,
20,
44,
777,
20,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Good Ruby or Python OpenSource projects that need help?
===
Anyone know any good Ruby or Python OpenSource projects that are in need of some help at the junior level?
I seen this link: http://stackoverflow.com/questions/38881/how-to-find-opensource-projects-looking-for-help but I am looking for some opinion. | 0 | [
2,
254,
10811,
54,
20059,
368,
12097,
2314,
30,
376,
448,
60,
800,
3726,
3726,
1276,
143,
186,
254,
10811,
54,
20059,
368,
12097,
2314,
30,
50,
19,
376,
16,
109,
448,
35,
14,
1630,
662,
60,
31,
541,
48,
3508,
45,
7775,
6903,
253... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 dynamically create an Actionscript 2 MovieClip based class with
===
I have a helper method has been created which allows a MovieClip-based class in code and have the constructor called. Unfortunately the solution is not complete because the MovieClip callback <b>onLoad()</b> is never called.
(Link to the <a href="http://www.flashdevelop.org/community/viewtopic.php?f=13&t=458">Flashdevelop thread</a> which created the method .)
How can the following function be modified so both the <b>constructor</b> and <b>onLoad()</b> is properly called.
//------------------------------------------------------------------------
// - Helper to create a strongly typed class that subclasses MovieClip.
// - You do not use "new" when calling as it is done internally.
// - The syntax requires the caller to cast to the specific type since
// the return type is an object. (See example below).
//
// classRef, Class to create
// id, Instance name
// ..., (optional) Arguments to pass to MovieClip constructor
// RETURNS Reference to the created object
//
// e.g., var f:Foo = Foo( newClassMC(Foo, "foo1") );
//
public function newClassMC( classRef:Function, id:String ):Object
{
var mc:MovieClip = this.createEmptyMovieClip(id, this.getNextHighestDepth());
mc.__proto__ = classRef.prototype;
if (arguments.length > 2)
{
// Duplicate only the arguments to be passed to the constructor of
// the movie clip we are constructing.
var a:Array = new Array(arguments.length - 2);
for (var i:Number = 2; i < arguments.length; i++)
a[Number(i) - 2] = arguments[Number(i)];
classRef.apply(mc, a);
}
else
{
classRef.apply(mc);
}
return mc;
}
An example of a class that I may want to create:
class Foo extends MovieClip
And some examples of how I would currently create the class in code:
// The way I most commonly create one:
var f:Foo = Foo( newClassMC(Foo, "foo1") );
// Another example...
var obj:Object = newClassMC(Foo, "foo2") );
var myFoo:Foo = Foo( obj ); | 0 | [
2,
184,
20,
7782,
1326,
1600,
40,
1028,
8741,
172,
1308,
150,
6013,
432,
718,
29,
800,
3726,
3726,
31,
57,
21,
448,
106,
2109,
63,
74,
679,
56,
2965,
21,
1308,
150,
6013,
8,
1281,
718,
19,
1797,
17,
57,
14,
6960,
248,
227,
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... |
MVC User Controls + ViewData
===
Hi im new to MVC and I've fished around with no luck on how to build MVC User Controls that have ViewData returned to them. I was hoping someone would post a step by step solution on how to approach this problem. If you could make your solution very detailed that would help out greatly. | 0 | [
2,
307,
8990,
4155,
8671,
2754,
1418,
18768,
800,
3726,
3726,
4148,
797,
78,
20,
307,
8990,
17,
31,
22,
195,
1968,
69,
140,
29,
90,
5419,
27,
184,
20,
1895,
307,
8990,
4155,
8671,
30,
57,
1418,
18768,
587,
20,
105,
9,
31,
23,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 encode text data for XML
===
I was looking for a generic method in .Net to encode a string for use in an Xml element or attribute, and was surprised when I didn't immediately find one. So, before I go too much further, could I just be missing the built-in function?
Assuming for a moment that it really doesn't exist, I'm putting together my own generic <code>EncodeForXml(string data)</code> method, and I'm thinking about the best way to do this.
The data I'm using that prompted this whole thing could contain bad characters like &, <, ", etc. It could also contains on occasion the properly escaped entities: &amp;, &lt;, and &quot;, which means just using a CDATA section may not be the best idea. That seems kinda klunky anyay; I'd much rather end up with a nice string value that can be used directly in the xml.
I've used a regular expression in the past to just catch bad ampersands, and I'm thinking of using it to catch them in this case as well as the first step, and then doing a simple replace for other characters.
So, could this be optimized further without making it too complex, and is there anything I'm missing? :
Function EncodeForXml(ByVal data As String) As String
Static badAmpersand As new Regex("&(?![a-zA-Z]{2,6};|#[0-9]{2,4};)")
data = badAmpersand.Replace(data, "&")
return data.Replace("<", "<").Replace("""", """).Replace(">", "gt;")
End Function
_Sorry for all you C# -only folks-- I don't really care which language I use, but I wanted to make the Regex static and you can't do that in C# without declaring it outside the method, so this will be VB.Net_
Finally, we're still on .Net 2.0 where I work, but if someone could take the final product and turn it into an extension method for the string class, that'd be pretty cool too. | 0 | [
2,
246,
161,
20,
20523,
1854,
1054,
26,
23504,
800,
3726,
3726,
31,
23,
699,
26,
21,
12733,
2109,
19,
13,
9,
2328,
20,
20523,
21,
3724,
26,
275,
19,
40,
23504,
4520,
54,
35,
14755,
15,
17,
23,
2948,
76,
31,
223,
22,
38,
1375,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 WebParts
===
Say you have several webparts, one as a controller and several which take information from the controller and act on it. This is fairly easy to model using the Consumer/Producer interface introduced in ASP 2.0.
How would you, be able to add interactions the other way around whilst still maintaining the above?
A simple example would be the user enters information into webpart A which performs a search and the results would be displayed on webpart B. Webpart C allows you to filter the results which should trigger webpart A to re-submit the query and hence update the results in B.
It doesn't seem possible to do in WSS 3.0 because you are only allowed 1 interface to be used in all of the connections at any one time.
Does this even make sense ? :-)
| 0 | [
2,
1891,
3132,
2741,
3091,
18,
800,
3726,
3726,
395,
42,
57,
238,
2741,
3091,
18,
15,
53,
28,
21,
9919,
17,
238,
56,
247,
676,
37,
14,
9919,
17,
601,
27,
32,
9,
48,
25,
6647,
2010,
20,
1061,
568,
14,
6461,
118,
12391,
6573,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best way to sample/profile a PyObjC application?
===
Sampling with Activity Monitor/Instruments/Shark will show stack traces full of C functions for the Python interpreter. I would be helpful to see the corresponding Python symbol names. Is there some DTrace magic that can do that? Python's cProfile module can be useful for profiling individual subtrees of Python calls, but not so much for getting a picture of what's going on with the whole application in response to user events. | 0 | [
2,
98,
25,
14,
246,
161,
20,
5717,
118,
14503,
21,
7103,
4995,
15864,
3010,
60,
800,
3726,
3726,
19030,
29,
2358,
7626,
118,
108,
11602,
6601,
118,
28178,
129,
298,
7566,
10738,
503,
16,
272,
3719,
26,
14,
20059,
19336,
9,
31,
83,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
"Method Not Implemented" error - Firefox 3
===
Getting sporadic errors from users of a CMS; Ajax requests sometimes result in a "501 Method not implemented" response from the server. Not all the time; usually works.
Application has been stable for months. Users seem to be getting it with Firefox 3. I've seen a couple references via Google to such problems being related to having "charset=UTF-8" in the Content-type header, but these may be spurious
Has anyone seen this error or have any ideas about what the cause could be?
Thanks
Ian | 0 | [
2,
13,
7,
5909,
1807,
43,
52,
6807,
7,
7019,
13,
8,
535,
18219,
203,
800,
3726,
3726,
1017,
26335,
11908,
37,
3878,
16,
21,
2390,
18,
73,
20624,
12279,
1030,
829,
19,
21,
13,
7,
2290,
165,
2109,
52,
6807,
7,
1627,
37,
14,
8128... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 good IIS Log Viewer for large log files?
===
I'm looking for a simple IIS Log Viewer that can open large (e.g. 100 meg) IIS Log files and give me simple filtering and searching tools.
(IIS = Microsoft Internet Information Server, obviously)
(OK, I know I could use Notepad, but I'd like something that can help me filter out the bits I'm not interested in) | 0 | [
2,
21,
254,
595,
18,
6738,
16812,
26,
370,
6738,
6488,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
1935,
595,
18,
6738,
16812,
30,
92,
368,
370,
13,
5,
62,
9,
263,
9,
808,
10905,
6,
595,
18,
6738,
6488,
17,
590,
55,
1935,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 Matlab, how do I change the background color of a subplot?
===
I'm trying to change the background color of a single subplot in a Matlab figure.
It's clearly feasible since the UI allows it, but I cannot find the function to automate it.
I've looked into whitebg, but it changes the color scheme of the whole figure, not just the current subplot. | 0 | [
2,
19,
4277,
9086,
15,
184,
107,
31,
753,
14,
2395,
1665,
16,
21,
972,
13221,
38,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
753,
14,
2395,
1665,
16,
21,
345,
972,
13221,
38,
19,
21,
4277,
9086,
1465,
9,
32,
22,
18,
2885,
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... |
ASP.NET QuickStart video tutorials?
===
Where I can find good video tutorials for ASP.NET?
Thanks. | 0 | [
2,
28,
306,
9,
2328,
2231,
13680,
763,
29724,
18,
60,
800,
3726,
3726,
113,
31,
92,
477,
254,
763,
29724,
18,
26,
28,
306,
9,
2328,
60,
3669,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Modifying Request/Response Streams in WebBrowser Control Using MSHTML
===
I need to find a way to get at the request/response streams inside of the webbrowser winforms control and see that it's not real intuitive. For example, I need to be able to modify post data when a user clicks a submit button. It looks like you have to register for some MSHTML COM events to do so, but am unsure which I need to subscribe to (and how). Has anyone done this in the past? Examples? | 0 | [
2,
17579,
68,
3772,
118,
99,
18,
8782,
870,
9464,
19,
10192,
5417,
4104,
569,
568,
4235,
15895,
800,
3726,
3726,
31,
376,
20,
477,
21,
161,
20,
164,
35,
14,
3772,
118,
99,
18,
8782,
870,
9464,
572,
16,
14,
10192,
5417,
4104,
628... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 UI development framework on windows?
===
I have been developing UI in Win32/MFC, but developing cool UI in Win32/MFC is very difficult and time consuming. Please note, I always want my code to be platform independent, So I prefer programming back-end (Business logic) in C++.
Which is the best framework for developing cool UI on windows platform? I heard of quite a few, like QT, Flex, Delphi. What is your thoughts (Pros and Cons) on these UI development frameworks. Which one do you recommend ?
| 4 | [
2,
246,
13,
5661,
522,
6596,
27,
1936,
60,
800,
3726,
3726,
31,
57,
74,
3561,
13,
5661,
19,
628,
3125,
118,
79,
7061,
15,
47,
3561,
2700,
13,
5661,
19,
628,
3125,
118,
79,
7061,
25,
253,
1956,
17,
85,
13,
17601,
9,
2247,
1945,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Checking for a duplicate element in the OUTPUT using XSLT
===
I've got some XML, for example purposes it looks like this:
<root>
<field1>test</field1>
<f2>t2</f2>
<f2>t3</f2>
</root>
I want to transform it with XSLT, but I want to suppress the second f2 element in the output - how do I check inside my template to see if the f2 element already exists in the output when the second f2 element in the source is processed? My XSLT looks something like this at present:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no" omit-xml-declaration="yes" standalone="no" />
<xsl:template match="/">
<xsl:for-each select="./root">
<output>
<xsl:apply-templates />
</output>
</xsl:for-each>
</xsl:template>
<xsl:template match="*" >
<xsl:element name="{name(.)}">
<xsl:value-of select="." />
</xsl:element>
</xsl:template>
</xsl:stylesheet>
I need to do some sort of check around the xsl:element in the template I think, but I'm not sure how to interrogate the output document to see if the element is already present.
Edit: Forgot the pre tags, code should be visible now!
| 0 | [
2,
9886,
26,
21,
19429,
4520,
19,
14,
5196,
568,
993,
18,
255,
38,
800,
3726,
3726,
31,
22,
195,
330,
109,
23504,
15,
26,
823,
4612,
32,
1879,
101,
48,
45,
13,
1,
14032,
1,
13,
1,
1109,
165,
1,
10543,
1,
118,
1109,
165,
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... |
TDD: Why would a sole developer use it?
===
I'm a contract programmer with lots of experience. I'm used to being hired by a client to go in and do a software project of one form or another on my own, usually from nothing. That means a clean slate, almost every time. I can bring in libraries I've developed to get a quick start, but they're always optional. (and depend on getting the right IP clauses in the contract) Many times I can specify or even design the *hardware* platform... so we're talking serious freedom here.
I can see uses for constructing automated tests for certain code: Libraries with more than trivial functionality, core functionality with a high number of references, etc. Basically, as the value of a piece of code goes up through heavy use, I can see it would be more and more valuable to automatically test that code so that I know I don't break it.
However, *in my situation*, I find it hard to rationalize anything more than that. I'll adopt things as they prove useful, but I'm not about to blindly follow anything.
I find many of the things I do in 'maintenance' are actually small design changes. In this case, the tests would not have saved me anything and now they'd have to change too. A highly iterative, stub-first design approach works very well for me. I can't see actually saving myself that much time with more extensive tests.
Hobby projects are even harder to justify... they're usually anything from weekenders up to a say month long. Edge-case bugs rarely matter, it's all about playing with something.
Reading questions such as [this one][1], The most voted on response seems to say that in that poster's experience/opinion TDD actually wastes time if you've got less than 5 people (even assuming a certain level of competence/experience with TDD). However, that appears to be covering initial development time, not maintenance. It's not clear how TDD stacks up over the entire life cycle of a project.
I think TDD could be a good step in the worthwhile goal of improving the quality of the products of our industry as a whole. Idealism on it's own is no longer all that effective at motivating me, though.
I *do* think TDD would be a good approach in large teams, or any size team containing at least one unreliable programmer. That's not my question.
***Why would a sole developer with a good track record adopt TDD?***
I'd love to hear of any kind of metrics done (formally or not) on TDD... focusing on solo developers or very small teams.
Failing that, anecdotes of your personal experiences would be nice, too. :)
Please avoid stating opinion without experience to back it. Let's not make this an ideology war. Also the skip greater employment options argument. *This is simply an efficiency question.*
[1]: http://stackoverflow.com/questions/67898/tdd-and-productivity | 0 | [
2,
15596,
43,
45,
483,
83,
21,
5005,
10058,
275,
32,
60,
800,
3726,
3726,
31,
22,
79,
21,
1305,
17968,
29,
7503,
16,
1496,
9,
31,
22,
79,
147,
20,
142,
3658,
34,
21,
6819,
20,
162,
19,
17,
107,
21,
2306,
669,
16,
53,
505,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Diagnosing Bad OutputPaths: "The OutputPath property is not set for this project" (in the wonderful world of web deployment projects)
===
Starting with the error:
> Error 81 The OutputPath property is
> not set for this project. Please
> check to make sure that you have
> specified a valid
> Configuration/Platform combination.
> Configuration='Staging'
> Platform='AnyCPU' C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 490 9 crm_deploy
We have a VS 2005 built website with a web deployment project. In this WDP there are two configurations, Staging and Production.
In the .sln for the whole website, we have two configurations with the same name, which are designed to trigger the corresponding deployment projects.
Production builds fine, but Staging returns the error above. I tried updating the .wdproj and .sln so that Staging matched production; I tried copying all the settings from Production to a new configuration (StagingX) by updating these same two files.
In each case, Production still works, but any new configurations I create produce the error above.
I've done a find across the whole project for the word Production and tried searching Googlespace and haven't found anything that explains the problem. WDPs are huge migraine creation devices. Any ideas? Thanks!
----------
(I'll add files as requested)
| 0 | [
2,
926,
21887,
18,
68,
896,
5196,
8353,
18,
45,
13,
7,
124,
5196,
8353,
1354,
25,
52,
309,
26,
48,
669,
7,
13,
5,
108,
14,
5934,
126,
16,
2741,
10475,
2314,
6,
800,
3726,
3726,
1422,
29,
14,
7019,
45,
13,
1,
7019,
9871,
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... |
VBScript -- Using error handling
===
I want to use VBScript to catch errors and log them (ie on error "log something") then resume the next line of the script.
For example,
<pre>
On Error Resume Next
'Do Step 1
'Do Step 2
'Do Step 3
</pre>
When an error occurs on step 1, I want it to log that error (or perform other custom functions with it) then resume at step 2. Is this possible? and how can I implement it? | 0 | [
2,
13,
20468,
8741,
13,
8,
8,
568,
7019,
7988,
800,
3726,
3726,
31,
259,
20,
275,
13,
20468,
8741,
20,
2949,
11908,
17,
6738,
105,
13,
5,
660,
27,
7019,
13,
7,
5567,
301,
7,
6,
94,
13113,
14,
328,
293,
16,
14,
3884,
9,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I determine the running Mac OS X version programmatically?
===
I have a program which needs to behave slightly differently on Tiger than on Leopard. Does anybody know of a system call which will allow me to accurately determine which version of Mac OS X I am running. I have found a number of macro definitions to determine the OS of the build machine, but nothing really good to determine the OS of the running machine.
Thanks,
Joe | 0 | [
2,
184,
92,
31,
3746,
14,
946,
1572,
13,
759,
993,
615,
625,
6732,
1326,
60,
800,
3726,
3726,
31,
57,
21,
625,
56,
2274,
20,
14149,
1847,
12670,
27,
5825,
119,
27,
15446,
9,
630,
11181,
143,
16,
21,
329,
645,
56,
129,
1655,
55... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Date/time formats for various countries
===
Is there any source on the web where I could find date and time formats used in individual countries in the World? I was checking languages listed in Control panel in Windows, but there are some countries missing (for example countries in Africa etc.).
I found some locale tables on the web, but these usualy differ from settings in Windows, so I don't know which version to use.
Thank you,
Petr | 0 | [
2,
1231,
118,
891,
13767,
26,
617,
1166,
800,
3726,
3726,
25,
80,
186,
1267,
27,
14,
2741,
113,
31,
110,
477,
1231,
17,
85,
13767,
147,
19,
1359,
1166,
19,
14,
126,
60,
31,
23,
9886,
2556,
1510,
19,
569,
4113,
19,
1936,
15,
47... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Table Column Formatting
===
I'm trying to format a column in a table using a <col> element. I can set background-color, width, etc., but can't set the font-weight. Why doesn't it work?
<table>
<col style="font-weight:bold; background-color:#CCC;">
<col>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
| 0 | [
2,
859,
4698,
2595,
1203,
800,
3726,
3726,
31,
22,
79,
749,
20,
2595,
21,
4698,
19,
21,
859,
568,
21,
279,
255,
38,
73,
7771,
1569,
263,
38,
73,
4520,
9,
31,
92,
309,
2395,
8,
11282,
15,
9456,
15,
2722,
9,
15,
47,
92,
22,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I easily turn a .Net Windows Form app into an Asp.net app using Visual Studio 2005?
===
I have a pretty basic windows form app in .Net. All the code is C#. I'd like to turn it into an Asp.net web app. How can I easily do this?
I think there's an easy way since the controls I drag/drop onto the windows form designer are pretty much the same that I drag/drop onto the aspx design page.
Note: the windows form app doesn't make any network requests or anything... just reads some text files from the local machine.
Thanks! | 0 | [
2,
184,
92,
31,
2351,
805,
21,
13,
9,
2328,
1936,
505,
4865,
77,
40,
28,
306,
9,
2328,
4865,
568,
3458,
1120,
812,
60,
800,
3726,
3726,
31,
57,
21,
1772,
2125,
1936,
505,
4865,
19,
13,
9,
2328,
9,
65,
14,
1797,
25,
272,
5910... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 MAX row with a GROUP BY in LINQ query
===
I am looking for a way in LINQ to match the follow SQL Query.
Select max(uid) as uid, Serial_Number from Table Group BY Serial_Number
Really looking for some help on this one. The above query gets the max uid of each Serial Number because of the `Group By` Syntax. | 0 | [
2,
184,
107,
31,
164,
14,
2049,
3131,
29,
21,
214,
34,
19,
6294,
1251,
25597,
800,
3726,
3726,
31,
589,
699,
26,
21,
161,
19,
6294,
1251,
20,
730,
14,
1740,
4444,
255,
25597,
9,
5407,
2049,
5,
5661,
43,
6,
28,
287,
1340,
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... |
GB English, or US English?
===
If you have an API, and you are a UK-based developer with a highly international audience, should your API be
setColour()
or
setColor()
(To take one word as a simple example.)
UK-based engineers are often quite defensive about their 'correct' spellings but it could be argued that US spelling is more 'standard' in the international market.
I guess the question is does it matter? Do developers in other locales struggle with GB spelling, or is it normally quite apparent what things mean?
Should it all be US-English? | 0 | [
2,
14857,
486,
15,
54,
182,
486,
60,
800,
3726,
3726,
100,
42,
57,
40,
21,
2159,
15,
17,
42,
50,
21,
1063,
8,
1281,
10058,
29,
21,
2157,
294,
2663,
15,
378,
154,
21,
2159,
44,
309,
26723,
5,
6,
54,
309,
11282,
5,
6,
13,
5,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Field default value from query in MS Access
===
I have a field on a table in MS Access, tblMyTable.SomeID, and I want to set the default value as a user preference in tblUserPref.DefaultSomeID. It doesn't appear that I can set the default value to use a query in the table definition of tblMyTable. I have a form where records are entered into tblMyTable. I've tried to set the default value of the field on the form, but doesn't seem to accept a query either. So, as a last resort, I'm trying to do it with VBA. I can query the value that I want in VBA, but I can't figure out which event to attach the code to.
I want to run the code whenever a new blank record is opened in the form, before the user starts to type into it. I do not want to run the code when an existing record is opened or edited. However, if the code runs for both new blank records and for existing records, I can probably code around that. So far, all of the events I have tried on the field and on the form itself have not run when I wanted them to. Can anyone suggest which event I should use, and on which object? | 0 | [
2,
575,
12838,
1923,
37,
25597,
19,
4235,
1381,
800,
3726,
3726,
31,
57,
21,
575,
27,
21,
859,
19,
4235,
1381,
15,
13,
38,
6287,
915,
5924,
9,
3220,
1340,
15,
17,
31,
259,
20,
309,
14,
12838,
1923,
28,
21,
4155,
9808,
19,
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... |
Looking for MacOS Threaded Networking sample code
===
My code needs to run all networking routines in a separate NSThread.
I have got a library, which I pass a callback routine for communication:
my thread code
library
my callback (networking)
library
my thread code
My callback routine must POST some data to an HTTP server (NSURLConnection), wait for the answer (start a NSRunLoop?), then return to the library.
The library then processes the data.
After the library returns to my thread, I can then post a notification to the main thread which handles drawing and user input.
Is there any sample code covering how to use NSURLConnection in a NSThread? | 0 | [
2,
699,
26,
1572,
759,
9322,
69,
16230,
5717,
1797,
800,
3726,
3726,
51,
1797,
2274,
20,
485,
65,
16230,
8275,
18,
19,
21,
1725,
13,
2172,
96,
10647,
9,
31,
57,
330,
21,
1248,
15,
56,
31,
1477,
21,
645,
1958,
8275,
26,
3291,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
Unfamiliar SQL keyword
===
This is sort of SQL newbie question, I think, but here goes.
I have a SQL Query (SQL Server 2005) that I've put together base on an example user-defined function:
SELECT
CASEID,
GetNoteText(CASEID)
FROM
(
SELECT
CASEID
FROM
ATTACHMENTS
GROUP BY
CASEID
) i
GO
the UDF works great (it concatenates data from multiple rows in a related table, if that matters at all) but I'm confused about the "i" after the FROM clause. The query works fine with the i but fails without it. What is the significance of the "i"? | 0 | [
2,
17819,
4444,
255,
1246,
9587,
800,
3726,
3726,
48,
25,
2058,
16,
4444,
255,
78,
5893,
1301,
15,
31,
277,
15,
47,
235,
1852,
9,
31,
57,
21,
4444,
255,
25597,
13,
5,
18,
22402,
8128,
812,
6,
30,
31,
22,
195,
442,
429,
1000,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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 "expensive" is Oracle Enterprise Manager?
===
I'm using a medical records system built on an Oracle database. Our vendor just told us that we need to shut down Oracle's Enterprise Manager service when we're not using it, because it uses too much of the system's resources. I know I can get actual numbers by checking Sysinternals Process Explorer, but I was hoping that someone can give me info from their personal experience.
Do I need to shut down EM when I'm done with it, or is he being overly concerned? Thanks. | 0 | [
2,
184,
13,
7,
6899,
3474,
1284,
7,
25,
15759,
6002,
1382,
60,
800,
3726,
3726,
31,
22,
79,
568,
21,
1088,
742,
329,
392,
27,
40,
15759,
6018,
9,
318,
23510,
114,
470,
182,
30,
95,
376,
20,
2218,
125,
15759,
22,
18,
6002,
1382... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Do Java listeners need to be removed in the finalize method?
===
Imagine this sample java class:
class A {
void addListener(Listener obj);
void removeListener(Listener obj);
}
class B {
private A a;
B() {
a = new A();
a.addListener(new Listener() {
void listen() {}
}
}
Do I need to add a finalize method to B to call a.removeListener? Assume that the A instance will be shared with some other objects as well and will outlive the B instance.
I am worried that I might be creating a garbage collector problem here. What is the best practice?
| 0 | [
2,
107,
8247,
15672,
376,
20,
44,
1974,
19,
14,
426,
2952,
2109,
60,
800,
3726,
3726,
4382,
48,
5717,
8247,
718,
45,
718,
21,
13,
1,
11364,
3547,
13891,
106,
5,
13891,
106,
5122,
728,
6,
73,
11364,
4681,
13891,
106,
5,
13891,
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... |
Life Cycle Tools Suite
===
I am looking to replace the life cycle tools currently used by my development teams.
Tools that I'm looking for:<br/><br/>
- Version Control<br/>
- Defect/Issue Tracking<br/>
- Requirements Tracking<br/>
- Test Case Management<br/>
- (potentially) Project Management: Project Status, hours entry<br/><br/>
I have a new beefy server (Windows 2008 Server) to run all tools on. I'm looking at COTS and Open Source options, but haven't decided so far.
<br/><br/>
Other factors:<br/>
- Distributed team (different physical sites)<br/>
- Some Windows Development, some Linux Development<br/>
- Software, Firmware, Technical Writing need to be able to use it<br/><br/>
Recommendations on a good suite that will work together?<br/>
If Open Source, best approach to run on the Windows 2008 Server?
| 0 | [
2,
201,
4150,
4672,
6160,
800,
3726,
3726,
31,
589,
699,
20,
3934,
14,
201,
4150,
4672,
871,
147,
34,
51,
522,
952,
9,
4672,
30,
31,
22,
79,
699,
26,
45,
1,
5145,
118,
1,
5145,
118,
1,
13,
8,
615,
569,
1,
5145,
118,
1,
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... |
Rails test hanging - how can I print the test name before execution?
===
I'm having a test hang in our rails app can't figure out which one (since it hangs and doesn't get to the failure report). I found this blog post http://bmorearty.wordpress.com/2008/06/18/find-tests-more-easily-in-your-testlog/ which adds a setup hook to print the test name but when I try to do the same thing it gives me an error saying wrong number of arguments for setup (1 for 0). Any help at all would be apprechiated. | 0 | [
2,
2240,
18,
1289,
4505,
13,
8,
184,
92,
31,
4793,
14,
1289,
204,
115,
5769,
60,
800,
3726,
3726,
31,
22,
79,
452,
21,
1289,
4546,
19,
318,
2240,
18,
4865,
92,
22,
38,
1465,
70,
56,
53,
13,
5,
7412,
32,
4546,
18,
17,
1437,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.