unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Best javascript syntactic sugar
===
Here are some gems:
Literals:
var obj = {};
var arr = [];
var regex = /something/;
Defaults:
arg = arg || 'default';
Of course we know anonymous functions, but being able to treat them as literals and execute them on the spot (as a closure) is great:
(function() { ... })();
**Question:** What other great syntactic sugar is available in javascript? | 0 | [
2,
246,
8247,
8741,
6063,
6981,
1786,
4200,
800,
3726,
3726,
235,
50,
109,
8551,
18,
45,
20665,
18,
45,
4033,
5122,
728,
800,
13,
1,
73,
4033,
13,
20870,
800,
20767,
73,
4033,
7953,
1706,
800,
13,
118,
9099,
118,
73,
12838,
18,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 mirror a SVN repository on CodePlex?
===
I'm the creator (and so far, only developer) of a CodePlex project. I've writing it on my laptop, using a Subversion repository on my home network.
Submitting my changes to CodePlex via the TeamServer interface is driving me crazy, and I'd really like a simple way of syncing my svn repos with CodePlex via there new SVN interface. svnsync or synmerge seem to be the way to go, but neither's instructions seem clear to a guy who's only ever used TortoiseSVN. And they seem to also seem need local access to the destination server (which clearly for CodePlex, is impossible)
So, could someone give simple instructions how to do this?
| 0 | [
2,
184,
107,
31,
3402,
21,
13,
18,
16578,
24869,
27,
1797,
11326,
60,
800,
3726,
3726,
31,
22,
79,
14,
9247,
13,
5,
290,
86,
463,
15,
104,
10058,
6,
16,
21,
1797,
11326,
669,
9,
31,
22,
195,
1174,
32,
27,
51,
12294,
15,
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... |
Referencing a javascript object literal array
===
How would you reference the models (Accord, CRV, Prius, etc) in this structure?
Is this a bad structure to be able to extract the makes...then use a make to get the models...then use the model to get the options?
var cars = [
{"makes" : "Honda",
"models" : [
{'Accord' : ["2dr","4dr"]} ,
{'CRV' : ["2dr","Hatchback"]} ,
{'Pilot': ["base","superDuper"] } ]
},
{"makes" :"Toyota",
"models" : [
{'Prius' : ["green","reallyGreen"]} ,
{'Camry' : ["sporty","square"]} ,
{'Corolla' : ["cheap","superFly"] } ]
} ] ;
Thanks | 0 | [
2,
13,
29254,
21,
8247,
8741,
3095,
20665,
7718,
800,
3726,
3726,
184,
83,
42,
2801,
14,
2761,
13,
5,
22301,
897,
15,
272,
10359,
15,
4566,
267,
15,
2722,
6,
19,
48,
1411,
60,
25,
48,
21,
896,
1411,
20,
44,
777,
20,
10962,
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... |
CEdit control: what is the maximum size (in characters) it can contain?
===
What is the maximum length for a CEdit control in MFC? | 0 | [
2,
13,
11014,
242,
569,
45,
98,
25,
14,
2979,
1072,
13,
5,
108,
1766,
6,
32,
92,
3717,
60,
800,
3726,
3726,
98,
25,
14,
2979,
1476,
26,
21,
13,
11014,
242,
569,
19,
307,
7061,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Procedural music generation techniques...
===
I've been putting a lot of thought into procedural generation of content for a while and I've never seen much experimentation with procedural music. We have fantastic techniques for generating models, animations, textures, but music is still either completely static or simply layered loops (e.g. Spore).
Because of that, I've been thinking up optimal music generation techniques, and I'm curious as to what other people have in mind. Even if you haven't previously considered it, what do you think will work well? One technique per answer please, and include examples where possible. The technique can use existing data or generate the music entirely from scratch, perhaps on some sort of input (mood, speed, whatever). | 0 | [
2,
26429,
232,
2782,
4212,
9,
9,
9,
800,
3726,
3726,
31,
22,
195,
74,
3873,
21,
865,
16,
289,
77,
26429,
2782,
16,
2331,
26,
21,
133,
17,
31,
22,
195,
243,
541,
212,
23832,
29,
26429,
232,
9,
95,
57,
10356,
4212,
26,
13500,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CString maximum length
===
What is the maximum length in characters a CString object can hold? | 0 | [
2,
272,
11130,
2979,
1476,
800,
3726,
3726,
98,
25,
14,
2979,
1476,
19,
1766,
21,
272,
11130,
3095,
92,
1027,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What is the best encryption library in C/C++?
===
What is the best encryption library in C/C++ In terms of:
- entropy
- quality
- ease of use
- readability
- portability
- performance
What's your favorite and why do you like it? | 4 | [
2,
98,
25,
14,
246,
24420,
1248,
19,
272,
118,
150,
20512,
60,
800,
3726,
3726,
98,
25,
14,
246,
24420,
1248,
19,
272,
118,
150,
20512,
19,
1663,
16,
45,
13,
8,
25587,
13,
8,
2190,
13,
8,
6378,
16,
275,
13,
8,
1302,
4091,
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... |
JQuery selectors not finding class on elements in table created by an Ajax XHR in Ruby on Rails
===
When using
$('.foo').click(function(){
alert("I haz class alertz!");
return false;
});
in application.js, and
<a href = "" class = "foo" id = "foobar_1" >Teh Foobar </a>
in any div that initializes with the page, when clicking "Teh Foobar" it alerts and doesn't follow the link. However, when using the same code in application.js, and
<a href = "" class = "foo" id = "foobar_1" >Teh Foobar </a>
is being returned into a div by a
form_remote_tag
when clicked, "Teh Foobar" fails to alert, and functions as a link.
What is happening, and how do I get around it?
| 0 | [
2,
487,
8190,
93,
23946,
18,
52,
3007,
718,
27,
2065,
19,
859,
679,
34,
40,
20624,
993,
3112,
19,
10811,
27,
2240,
18,
800,
3726,
3726,
76,
568,
5579,
5,
22,
9,
4120,
111,
22,
6,
9,
150,
10129,
5,
22359,
5,
6,
1,
7863,
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... |
HTML - Current Link
===
Sorry if this sounds like a really stupid question, but I need to make a link change color when you are on the page it links to.
For example, when you are on the "Questions" page of stackoverflow, the link at the top changes color. How do you do this?
| 0 | [
2,
13,
15895,
13,
8,
866,
3508,
800,
3726,
3726,
1875,
100,
48,
2795,
101,
21,
510,
3553,
1301,
15,
47,
31,
376,
20,
233,
21,
3508,
753,
1665,
76,
42,
50,
27,
14,
2478,
32,
6271,
20,
9,
26,
823,
15,
76,
42,
50,
27,
14,
13,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Solo Software Engineering in FOSS projects
===
I'm interested in knowing any software engineering techniques developers might use when first starting an Open Source project. I would imagine that conventional processes would not be applicable, as many assume interaction with other developers, which might not be available when a project is first starting out.
What facets of the plethora of software engineering methodologies out there do open source developers use? | 0 | [
2,
2046,
2306,
1552,
19,
13,
15912,
2314,
800,
3726,
3726,
31,
22,
79,
3158,
19,
2506,
186,
2306,
1552,
4212,
10168,
530,
275,
76,
64,
1422,
40,
368,
1267,
669,
9,
31,
83,
4382,
30,
6533,
5102,
83,
52,
44,
14535,
15,
28,
151,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I change read/write mode for a file using Emacs?
===
If a file is set to read only mode, how do I change it to write mode and vice versa from within Emacs? | 0 | [
2,
184,
107,
31,
753,
1302,
118,
23716,
3740,
26,
21,
3893,
568,
13,
62,
6893,
18,
60,
800,
3726,
3726,
100,
21,
3893,
25,
309,
20,
1302,
104,
3740,
15,
184,
107,
31,
753,
32,
20,
2757,
3740,
17,
1821,
18596,
37,
363,
13,
62,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Configuring tomcat security manager in Eclipse
===
Working in Eclipse on a Dynamic Web Project (using Tomcat as the app server), is there some way I can configure things so Tomcat will start with security turned on (i.e. as if I ran catalina.sh start -security)? | 0 | [
2,
1065,
13549,
68,
2067,
5782,
1221,
1382,
19,
11652,
800,
3726,
3726,
638,
19,
11652,
27,
21,
7782,
2741,
669,
13,
5,
12655,
2067,
5782,
28,
14,
4865,
8128,
6,
15,
25,
80,
109,
161,
31,
92,
1065,
15951,
564,
86,
2067,
5782,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I create a decimal field in Access with Alter Table?
===
I want to programmatically create a new column in an Access table. I've tried many permutations of "ALTER TABLE MyTable Add MyField DECIMAL (9,4) NULL;" and gotten "Syntax Error in Field Definition". I can easily create a number field that goes to a Double type, but I want decimal. I would very strongly prefer to do this in a single ALTER TABLE statement and not have to create a field and then alter it. Thanks! | 0 | [
2,
184,
107,
31,
1600,
21,
26380,
575,
19,
1381,
29,
7835,
859,
60,
800,
3726,
3726,
31,
259,
20,
625,
6732,
1326,
1600,
21,
78,
4698,
19,
40,
1381,
859,
9,
31,
22,
195,
794,
151,
28706,
18,
16,
13,
7,
16201,
859,
51,
5924,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Object Initializer syntax to produce correct Json
===
I am attempting to use linq to shape list of data into a particular shape to be returned as Json from an ajax call.
Given this data:
var data = new List<string>();
data.Add("One");
data.Add("Two");
data.Add("Three");
And this code: ** Which is not correct and is what needs to be fixed!! **
var shaped = data.Select(c =>
new { c = c }
).ToList();
serializer.Serialize(shaped,sb);
string desiredResult = sb.ToString();
I would like desiredResult to be:
{
"One": "One",
"Two": "Two",
"Three": "Three"
}
but it is currently:
{ "c" : "One" },{ "c" : "Two" } etc
One problem is that on the left side of the object initializer I want the value of c, not c itself... | 0 | [
2,
3095,
2104,
11907,
22649,
20,
2213,
4456,
487,
528,
800,
3726,
3726,
31,
589,
6314,
20,
275,
6294,
1251,
20,
2539,
968,
16,
1054,
77,
21,
1498,
2539,
20,
44,
587,
28,
487,
528,
37,
40,
20624,
645,
9,
504,
48,
1054,
45,
4033,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Converting a home-brew test application to a standard unit test framework
===
I've got a LOT of tests written for a piece of software (which is a GREAT thing) but it was built essentially as a standalone test in C#. While this works well enough, it suffers from a few shortcomings, not the least of which is that it isn't using a standard testing framework and ends up requiring the person running the test to comment out calls to tests that shouldn't be run (when it isn't desired to run the entire test 'suite'). I'd like to incorporate it into my automated testing process.
I saw that the Test Edition of VS 2008 has the notion of a 'Generic Test' that might do what I want, but we're not in a position to spend the money on that version currently. I recently started using the VS 2008 Pro version.
These test methods follow a familiar pattern:
- Do some setup for the test.
- Execute the test.
- Reset for the next test.
Each of them returns a bool (pass/fail) and a string ref to a fail reason, filled in if it fails.
On the bright side, at least the test methods are consistent.
I am sitting here tonight contemplating the approach I might take tomorrow morning to migrate all this test code to a testing framework and, frankly, I'm not all that excited about the idea of poring over 8-9K lines of test code by hand to do the conversion.
Have you had any experience undertaking such a conversion? Do you have any tips? I think I might be stuck slogging through it all doing global search/replaces and hand-changing the tests.
Any thoughts? | 0 | [
2,
19583,
21,
213,
8,
13712,
1289,
3010,
20,
21,
1236,
1237,
1289,
6596,
800,
3726,
3726,
31,
22,
195,
330,
21,
865,
16,
4894,
642,
26,
21,
1855,
16,
2306,
13,
5,
2140,
25,
21,
374,
584,
6,
47,
32,
23,
392,
7398,
28,
21,
269... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are exceptions truly for exceptional errors?
===
It's my understanding that common wisdom says to only use exceptions for truly exceptional conditions (In fact, I've seen that statement here at SO several times).
However, Krzysztof Cwalina says:
>>One of the biggest misconceptions about exceptions is that they are for “exceptional conditions.” The reality is that they are for communicating error conditions. From a framework design perspective, there is no such thing as an “exceptional condition”. Whether a condition is exceptional or not depends on the context of usage, --- but reusable libraries rarely know how they will be used. For example, OutOfMemoryException might be exceptional for a simple data entry application; it’s not so exceptional for applications doing their own memory management (e.g. SQL server). In other words, one man’s exceptional condition is another man’s chronic condition.
He then also goes on to say that exceptions should be use for:
* Usage errors
* Program errors
* System failures
Considering Krzysztof Cwalina is the PM for the CLR team at MS I ask: What do you think of his statement?
| 0 | [
2,
50,
13392,
4574,
26,
12961,
11908,
60,
800,
3726,
3726,
32,
22,
18,
51,
3260,
30,
757,
10482,
898,
20,
104,
275,
13392,
26,
4574,
12961,
2039,
13,
5,
108,
837,
15,
31,
22,
195,
541,
30,
3331,
235,
35,
86,
238,
436,
6,
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... |
.NET "must-have" development tools
===
James Avery wrote a classic article a while back entitled [Ten Must-Have Tools Every Developer Should Download Now](http://msdn.microsoft.com/en-us/magazine/cc300497.aspx) and Scott Hanselman has an excellent list on [his blog](http://www.hanselman.com/blog/ScottHanselmans2007UltimateDeveloperAndPowerUsersToolListForWindows.aspx) but if you were on a desert island and were only allowed three .NET development tools which ones would you pick?
| 4 | [
2,
13,
9,
2328,
13,
7,
3605,
38,
8,
5815,
7,
522,
4672,
800,
3726,
3726,
586,
13587,
738,
21,
2732,
2002,
21,
133,
97,
3146,
636,
1316,
491,
8,
5815,
4672,
352,
10058,
378,
7121,
130,
500,
5,
21127,
6903,
79,
18,
43,
103,
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... |
Add new field to multiple table at once?
===
I want to add same field to multiple tables. Can I do this with single query in MySql?
Thanks... | 0 | [
2,
3547,
78,
575,
20,
1886,
859,
35,
382,
60,
800,
3726,
3726,
31,
259,
20,
3547,
205,
575,
20,
1886,
7484,
9,
92,
31,
107,
48,
29,
345,
25597,
19,
51,
18,
22402,
60,
3669,
9,
9,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
JE22 Programming Skills
===
I have many years of experience in Java including Swing, Servlet and JDBC, but have never programmed for a J2EE server.
Many job advertisements from large companies are specifically asking for J2EE experience. Are there specific skills or development environments that I should learn to qualify for these kinds of jobs?
| 0 | [
2,
4641,
2287,
3143,
3207,
800,
3726,
3726,
31,
57,
151,
122,
16,
1496,
19,
8247,
215,
5587,
15,
13,
10321,
1336,
17,
487,
43,
7229,
15,
47,
57,
243,
2866,
43,
26,
21,
487,
135,
2851,
8128,
9,
151,
1205,
16556,
37,
370,
1532,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Collections API to Shuffle
===
I am getting very frustrated because I cannot seem to figure out why Collections shuffling is not working properly.
Lets say that I am trying to shuffle the 'randomizer' array.
int[] randomizer = new int[] {200,300,212,111,6,2332};
Collections.shuffle(Arrays.asList(randomizer));
For some reason the elements stay sorted exactly the same whether or not I call the shuffle method. Any ideas? Thanks in advance. | 0 | [
2,
568,
5721,
21,
2159,
20,
23682,
800,
3726,
3726,
31,
589,
1017,
253,
10645,
185,
31,
1967,
2260,
20,
1465,
70,
483,
5721,
26588,
25,
52,
638,
7428,
9,
6884,
395,
30,
31,
589,
749,
20,
23682,
14,
13,
22,
2195,
5555,
11907,
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... |
What is tempuri.org?
===
Why does tempuri.org exist?
Why does each XML Webservice require its own namespace from any other on the web?
Thanks guys. | 0 | [
2,
98,
25,
13449,
15806,
9,
5583,
60,
800,
3726,
3726,
483,
630,
13449,
15806,
9,
5583,
3182,
60,
483,
630,
206,
23504,
2741,
11449,
4077,
82,
258,
204,
5582,
37,
186,
89,
27,
14,
2741,
60,
3669,
2776,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Python - What is the difference between re.search and re.match?
===
What is the difference between the search() and match() functions in the Python re module?
| 0 | [
2,
20059,
13,
8,
98,
25,
14,
2841,
128,
302,
9,
25136,
17,
302,
9,
12280,
60,
800,
3726,
3726,
98,
25,
14,
2841,
128,
14,
2122,
5,
6,
17,
730,
5,
6,
3719,
19,
14,
20059,
302,
12613,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Xcode: attaching to a remote process for debugging
===
Using Xcode 3.1 on OSX 10.5; is it possible to attach (the debugger) to a remote process?
I know that it's possible to start and debug a remote process (as explained [here][1]), but it would be great if I could find a way to attach to an already running remote process...
[1]: http://developer.apple.com/documentation/developertools/Conceptual/XcodeDebugging/800-Debugging_Programs_Remotely/chapter_11_section_1.html#//apple_ref/doc/uid/TP40007057-CH11-SW1 | 0 | [
2,
993,
9375,
45,
19514,
68,
20,
21,
5388,
953,
26,
121,
16254,
2762,
800,
3726,
3726,
568,
993,
9375,
203,
9,
165,
27,
13,
759,
396,
332,
9,
264,
73,
25,
32,
938,
20,
19514,
13,
5,
124,
121,
2345,
11356,
6,
20,
21,
5388,
95... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tool or IDE to debug VB Script code.
===
I need any tool or IDE environment to debug and test the vb scripts code. Please suggest me for any free one. My vb scripts are standalone (vbs extenstion).
Thanks
| 0 | [
2,
5607,
54,
13,
3448,
20,
121,
16254,
13,
20468,
3884,
1797,
9,
800,
3726,
3726,
31,
376,
186,
5607,
54,
13,
3448,
2307,
20,
121,
16254,
17,
1289,
14,
13,
20468,
17505,
1797,
9,
2247,
5601,
55,
26,
186,
551,
53,
9,
51,
13,
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,
0,
0,
0,
0... |
How do I use the vxWorks debug agent to perform pre-kernel debugging?
===
The vxWorks documentation states:
> The WDB agent itself is independent of the target operating system: it
attaches to run-time OS services through a virtual-function run-time
interface. The WDB agent can execute before VxWorks is running (as in
the early stages of porting a BSP to a new board)."
How can I use the debug agent before the vxWorks kernel is running? | 0 | [
2,
184,
107,
31,
275,
14,
566,
396,
7684,
121,
16254,
2267,
20,
2985,
782,
8,
2429,
7440,
121,
16254,
2762,
60,
800,
3726,
3726,
14,
566,
396,
7684,
13945,
202,
45,
13,
1,
14,
619,
9007,
2267,
1145,
25,
1124,
16,
14,
2935,
2455,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
F# Comments convention
===
I am just checking out F#, so apologies if this is a noob question, but in the VS2008 F# CTP 1.9.6.2 'Tutorial' project, both // and /// are used for commenting code.
Is there a functional difference between the two slash vs three slash commenting, or is it convention (as it appears in the tutorial code) to comment a function with /// and use // for everything else? | 0 | [
2,
398,
5910,
7534,
3087,
800,
3726,
3726,
31,
589,
114,
9886,
70,
398,
5910,
15,
86,
27101,
100,
48,
25,
21,
90,
4995,
1301,
15,
47,
19,
14,
4611,
2753,
398,
5910,
272,
13726,
137,
9,
518,
9,
379,
9,
135,
13,
22,
2473,
9819,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 close a formless C# application
===
My application has no forms. It runs by calling Application.Run(); | 0 | [
2,
184,
20,
543,
21,
505,
923,
272,
5910,
3010,
800,
3726,
3726,
51,
3010,
63,
90,
1997,
9,
32,
1461,
34,
2555,
3010,
9,
3169,
5,
6,
73,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Adding a Trendline to Bar Chart in Reporting Services
===
The title says it all. How do I go about adding a trendline to a bar chart in reporting services 2005? | 0 | [
2,
4721,
21,
8703,
1143,
20,
748,
1795,
19,
6670,
687,
800,
3726,
3726,
14,
581,
898,
32,
65,
9,
184,
107,
31,
162,
88,
4721,
21,
8703,
1143,
20,
21,
748,
1795,
19,
6670,
687,
812,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Implementing JQuery's jgGrid with ASP.Net and JSON formatting
===
Has anyone been able to implement the JQuery grid plugin, jqGrid? I'm trying to implement the JSON paging, and I feel like I'm getting close, but that I am also being swamped by inconsequential details. If anyone could post some sample code, I would greatly appreciate it. | 0 | [
2,
17333,
487,
8190,
93,
22,
18,
13,
25095,
16375,
29,
28,
306,
9,
2328,
17,
487,
528,
2595,
1203,
800,
3726,
3726,
63,
1276,
74,
777,
20,
8713,
14,
487,
8190,
93,
7354,
10922,
108,
15,
487,
1251,
16375,
60,
31,
22,
79,
749,
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... |
Powershell: Run a program in a a foreach.
===
I'm trying to get this simple Powershell script working but I think something is fundamentally wrong ;-)
ls | foreach { "C:\Working\tools\custom-tool.exe" $_ }
I basically want to get files in a directory and pass them one by one as arguments to the custom tool. | 0 | [
2,
414,
15984,
45,
485,
21,
625,
19,
21,
21,
26,
14322,
9,
800,
3726,
3726,
31,
22,
79,
749,
20,
164,
48,
1935,
414,
15984,
3884,
638,
47,
31,
277,
301,
25,
26420,
1389,
13,
73,
8,
6,
644,
18,
13,
1,
26,
14322,
13,
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... |
Case-insensitive UTF-8 string collation for SQLite (C/C++)
===
I am looking for a method to compare and sort UTF-8 strings in C++ in a case-insensitive manner to use it in a [custom collation function in SQLite][1].
1. The method should *ideally* be locale-independent. However I won't be holding my breath, as far as I know, collation is very language-dependent, so anything that works on languages other than English will do, even if it means switching locales.
2. Options include using standard C or C++ library or a *small* (suitable for embedded system) and *non-GPL* (suitable for a proprietary system) third-party library.
What I have so far:
1. `strcoll` with C locales and `std::collate`/`std::collate_byname` are case-sensitive. (Are there case-insensitive versions of these?)
2. I tried to use a POSIX strcasecmp, but it seems to be [not defined][2] for locales other than `"POSIX"`
> *In the POSIX locale, strcasecmp() and strncasecmp() do upper to lower conversions, then a byte comparison. The results are unspecified in other locales.*
And, indeed, the result of `strcasecmp` does not change between locales on Linux with GLIBC.
#include <clocale>
#include <cstdio>
#include <cassert>
#include <cstring>
const static char *s1 = "Äaa";
const static char *s2 = "äaa";
int main() {
printf("strcasecmp('%s', '%s') == %d\n", s1, s2, strcasecmp(s1, s2));
printf("strcoll('%s', '%s') == %d\n", s1, s2, strcoll(s1, s2));
assert(setlocale(LC_ALL, "en_AU.UTF-8"));
printf("strcasecmp('%s', '%s') == %d\n", s1, s2, strcasecmp(s1, s2));
printf("strcoll('%s', '%s') == %d\n", s1, s2, strcoll(s1, s2));
assert(setlocale(LC_ALL, "fi_FI.UTF-8"));
printf("strcasecmp('%s', '%s') == %d\n", s1, s2, strcasecmp(s1, s2));
printf("strcoll('%s', '%s') == %d\n", s1, s2, strcoll(s1, s2));
}
This is printed:
strcasecmp('Äaa', 'äaa') == -32
strcoll('Äaa', 'äaa') == -32
strcasecmp('Äaa', 'äaa') == -32
strcoll('Äaa', 'äaa') == 7
strcasecmp('Äaa', 'äaa') == -32
strcoll('Äaa', 'äaa') == 7
[1]: http://www.sqlite.org/c3ref/create_collation.html
[2]: http://www.opengroup.org/onlinepubs/007908775/xsh/strcasecmp.html | 0 | [
2,
610,
8,
108,
19435,
287,
11720,
8,
457,
3724,
9470,
857,
26,
4444,
10601,
13,
5,
150,
118,
150,
20512,
6,
800,
3726,
3726,
31,
589,
699,
26,
21,
2109,
20,
11590,
17,
2058,
287,
11720,
8,
457,
7887,
19,
272,
20512,
19,
21,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Ruby on Vista
===
I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions on this site: http://rubyonrails.org/down
so I downloaded the installer, then Gems, then I downloaded rails with Gems.
now I can't use the Gem or Ruby commands in the command line... so I assume there's something wrong with the environment variables, but I hav eno idea how to set them up in Vista or what to put. Can anyone help me with this? | 0 | [
2,
10811,
27,
13520,
800,
3726,
3726,
31,
4066,
10811,
17,
10811,
27,
2240,
18,
7124,
27,
13520,
2512,
3326,
568,
14,
7876,
27,
48,
689,
45,
7775,
6903,
17791,
7370,
7301,
18,
9,
5583,
118,
2968,
86,
31,
23887,
14,
16146,
106,
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 is the single best resource for learning the visual studio tools?
===
I am trying to learn some of the basic and advanced features of visual studio, Anyone find sites that have this type of information ?
I see this:
http://stackoverflow.com/questions/86355/best-way-to-learn-visual-studio-power-features
But it seems more related to tips and advanced features.
| 0 | [
2,
98,
25,
14,
345,
246,
6577,
26,
2477,
14,
3458,
1120,
4672,
60,
800,
3726,
3726,
31,
589,
749,
20,
2484,
109,
16,
14,
2125,
17,
2255,
967,
16,
3458,
1120,
15,
1276,
477,
3259,
30,
57,
48,
1001,
16,
676,
13,
60,
31,
196,
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... |
Can you allocate a very large single chunk of memory ( > 4GB ) in c or c++?
===
With very large amounts of ram these days I was wondering, it is possible to allocate a single chunk of memory that is larger than 4GB? Or would I need to allocate a bunch of smaller chunks and handle switching between them?
| 0 | [
2,
92,
42,
65,
111,
9530,
21,
253,
370,
345,
15009,
16,
1912,
13,
5,
13,
1,
268,
11400,
13,
6,
19,
272,
54,
272,
20512,
60,
800,
3726,
3726,
29,
253,
370,
8545,
16,
2843,
158,
509,
31,
23,
5712,
15,
32,
25,
938,
20,
65,
11... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the most stable modal dialog implementation across browsers to use from javascript for a web app?
===
I'm using a lot of JQuery in a web application that I am building for a client and I want to find an javascript implementation of a modal dialog that is reasonably stable across the following browser set.
IE 7+
FF 2+
Chrome and Safari
I've tried a couple of jQuery plugins but there always seems to be artifacts in one of these browsers.
| 0 | [
2,
98,
25,
14,
127,
4521,
13,
20756,
28223,
6123,
464,
16495,
18,
20,
275,
37,
8247,
8741,
26,
21,
2741,
4865,
60,
800,
3726,
3726,
31,
22,
79,
568,
21,
865,
16,
487,
8190,
93,
19,
21,
2741,
3010,
30,
31,
589,
353,
26,
21,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best way to add full web search to my site?
===
I need to add full web search to my site. I need something like Google Custom Search but with no ads and it has to be free. Any recommendation of a web service or open source project that can index my site and allow me to search it will be helpful.
My site is made in ruby on rails, if that helps.
I'll make this question community-wiki so you can edit my bad English. I think many people can benefit from this question. | 0 | [
2,
246,
161,
20,
3547,
503,
2741,
2122,
20,
51,
689,
60,
800,
3726,
3726,
31,
376,
20,
3547,
503,
2741,
2122,
20,
51,
689,
9,
31,
376,
301,
101,
8144,
5816,
2122,
47,
29,
90,
16236,
17,
32,
63,
20,
44,
551,
9,
186,
14066,
16... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
EnumDisplayDevices vs WMI Win32_DesktopMonitor, how to detect active monitors?
===
For my current C++ project I need to detect a unique string for every monitor that is connected and active on a large number of computers.
Research has pointed to 2 options
1. Use WMI and query the Win32_DesktopMonitor for all active monitors. Use the PNPDeviceID for unique identification of monitors.
2. Use the EnumDisplayDevices API, and dig down to get the device ID.
I'm interested in using the device id for unique model identification because monitors using the default plug and play driver will report a generic string as the monitor name "default plug and play monitor"
I have been experiencing issues with the WMI method, it seems to be only returning 1 monitor on my Vista machine, looking at doco it turns out it does not work as expected on non WDDM devices.
The EnumDisplayDevices seems to be a little problematic to get going when it runs from a background service (especially on Vista)
* Has anyone else had to do something similar (find unique model string for all connected active monitors?)
* What approach worked best? | 0 | [
2,
1957,
723,
2906,
5438,
546,
18507,
18,
4611,
619,
1435,
628,
3125,
1,
3196,
197,
3880,
2111,
242,
248,
15,
184,
20,
9092,
1348,
18521,
60,
800,
3726,
3726,
26,
51,
866,
272,
20512,
669,
31,
376,
20,
9092,
21,
2619,
3724,
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... |
CURL installation (Windows)
===
I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/
to install & config apache
get the PHP5 packages
and get the CURL packages.
I run the apache and run a PHP script. no problem.
but when I run the php script with curl, it fails.
It returns: **Call to undefined function curl_version() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\testing.php on line 5**
In which line 5 is a called to curl_init()
I output the php -i to see whether the right path to extension is called. It is correctly set:
extension_dir => C:\PHP\ext => C:\PHP\ext
cURL support => enabled
cURL Information => libcurl/7.16.0 OpenSSL/0.9.8g zlib/1.2.3
I even tried to run curl_version() but still, same kind of error comes up.
It looks like the PHP can't find the CURL extension, but the php.ini (and also php -i) shows that it is set.
any idea? :)
P.S> System I m running on:
Windows XP
Apache 2.2
PHP 5.2.6
CURL Win32 Generic Binaries: Win32 2000/XP metalink 7.19.0 binary SSL enabled Daniel Stenberg 249 KB
I didn't get this:
Win32 2000/XP 7.19.0 libcurl SSL enabled Günter Knauf 1.55 MB
Should I get this one instead? | 0 | [
2,
14320,
7758,
13,
5,
27508,
18,
6,
800,
3726,
3726,
31,
57,
709,
65,
14,
7650,
235,
45,
7775,
6903,
6483,
9,
444,
93,
18,
3014,
5482,
9,
960,
118,
3325,
118,
1036,
15718,
9298,
4734,
255,
8,
1410,
8,
26120,
8,
290,
8,
7738,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
caching calculated column in rails
===
I have a tree of active record objects, something like:
class Part < ActiveRecord::Base
has_many :sub_parts, :class_name => "Part"
def complicated_calculation
if sub_parts.size > 0
return self.sub_parts.inject(0){ |sum, current| sum + current.complicated_calculation }
else
sleep(1)
return rand(10000)
end
end
end
It is too costly to recalculate the complicated_calculation each time. So, I need a way to cache the value. However, if any part is changed, it needs to invalidate its cache and the cache of its parent, and grandparent, etc.
As a rough draft, I created a column to hold the cached calculation in the "parts" table, but this smells a little rotten. It seems like there should be a cleaner way to cache the calculated values without stuffing them along side the "real" columns. | 0 | [
2,
1658,
7192,
10785,
4698,
19,
2240,
18,
800,
3726,
3726,
31,
57,
21,
1541,
16,
1348,
571,
3916,
15,
301,
101,
45,
718,
141,
13,
1,
1348,
14953,
45,
45,
8436,
63,
1,
14842,
13,
45,
7563,
1,
3091,
18,
15,
13,
45,
1898,
1,
72... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 unique elements from an array of hashes in Ruby?
===
I have an array of hashes, and I want the unique values out of it. Calling `Array.uniq` doesn't give me what I expect.
a = [{:a => 1},{:a => 2}, {:a => 1}]
a.uniq # => [{:a => 1}, {:a => 2}, {:a => 1}]
Where I expected:
[{:a => 1}, {:a => 2}]
In searching around on the net, I didn't come up with a solution that I was happy with. Folks recommended redefining `Hash.eql?` and `Hash.hash`, since that is what `Array.uniq` is querying.
| 0 | [
2,
184,
107,
31,
164,
14,
2619,
2065,
37,
40,
7718,
16,
63,
438,
18,
19,
10811,
60,
800,
3726,
3726,
31,
57,
40,
7718,
16,
63,
438,
18,
15,
17,
31,
259,
14,
2619,
4070,
70,
16,
32,
9,
2555,
13,
1,
8576,
93,
9,
1020,
9908,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
regular expression to extract text from HTML
===
I would like to extract from a general HTML page, all the text (displayed or not).
I would like to **remove**
- any HTML tags
- Any javascript
- Any CSS styles
Is there a regular expression (one or more) that will achieve that? | 0 | [
2,
1290,
1803,
20,
10962,
1854,
37,
13,
15895,
800,
3726,
3726,
31,
83,
101,
20,
10962,
37,
21,
297,
13,
15895,
2478,
15,
65,
14,
1854,
13,
5,
2906,
11061,
54,
52,
6,
9,
31,
83,
101,
20,
13,
1409,
99,
16598,
1409,
13,
8,
186... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a way to add an onclick event to an ASP.NET Label server control?
===
I wanted to do something like this:
<asp:Label ID="lblMyLabel" onclick="lblMyLabel_Click" runat="server">My Label</asp:Label>
I know that in Javascript I can do:
<span onclick="foo();">My Label</span>
So I'm wondering why I can't do that with a Label object. | 0 | [
2,
25,
80,
21,
161,
20,
3547,
40,
27,
150,
10129,
807,
20,
40,
28,
306,
9,
2328,
1899,
8128,
569,
60,
800,
3726,
3726,
31,
417,
20,
107,
301,
101,
48,
45,
13,
1,
472,
306,
45,
21018,
4924,
3726,
7,
255,
6287,
915,
21018,
7,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JUnit TestCase object instantiation
===
Is a new (or different) instance of `TestCase` object is used to run each test method in a JUnit test case? Or one instance is reused for all the tests?
public class MyTest extends TestCase {
public void testSomething() { ... }
public void testSomethingElse() { ... }
}
While running this test, how many instances of `MyTest` class is created? | 0 | [
2,
7446,
242,
1289,
10325,
3095,
6322,
49,
857,
800,
3726,
3726,
25,
21,
78,
13,
5,
248,
421,
6,
4851,
16,
13,
1,
10543,
10325,
1,
3095,
25,
147,
20,
485,
206,
1289,
2109,
19,
21,
7446,
242,
1289,
610,
60,
54,
53,
4851,
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... |
Encripted data base query
===
I've just found out about stackoverflow.com and just checking if there are ideas for a constraint I'm having with some friends in a project. Although this is more a theoretical question to which I've been trying to find an answer for some time.
I'm not much given into cryptography but if I'm not clear enough I'll try to edit/comment to clarify any question
Trying to be brief, the environment is something like this:
- An application where the front-end as access to encrypt/decrypt keys and the back-end is just used for storage and queries.
- Having a database to which you can't have access for a couple of fields for example let's say "address" which is text/varchar as usual.
- You don't have access to the key for decrypting the information, and all information arrives to the database already encrypted.
The main problem is something like this, how to consistently make queries on the database, it's impossible to do stuff like "where address like '%F§YU/´~#JKSks23%'". (IF there is anyone feeling with an answer for this feel free to shoot it).
But is it ok to do "where address='±!NNsj3~^º-:'"? Or would it also completely eat up the database?
Another restrain that might apply is that the front end doesn't have much processing power available, so already encrypting/decrypting information starts to push it to it's limits. (Saying this just to avoid replies like "Exporting a join of tables to the front end and query it there")
Hope someone can point me into a nice direction to keep thinking about it :) | 0 | [
2,
1957,
28215,
1427,
1054,
1000,
25597,
800,
3726,
3726,
31,
22,
195,
114,
216,
70,
88,
7566,
2549,
9990,
9,
960,
17,
114,
9886,
100,
80,
50,
3478,
26,
21,
28804,
31,
22,
79,
452,
29,
109,
954,
19,
21,
669,
9,
419,
48,
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... |
help: reloading a page via ajax - when window.location=self.location doesn't work
===
so here on my homepage i got a
<ul id="login">
<li> <a id="loginswitch" href="./login-page">log-in</a> | </li>
<li> <a id="signupswitch" href="./signup-page">sign-up</a> </li>
</ul>
so via mootools, i get these anchor elements by id so that once they're clicked, a flashy div will popup below them that contains the login or signup form (with methods to stop the propagation of events of course)
and upon filling-up the fields the ajax call kicks in - that's supposed to create a session and reload the page so that the user would have a visual that he is now logged in and user-level-controls appears etc..
the ajax call is initiated by the mootools ajax class and evalScripts option is set to true
the ajax page returns the script code
<script type="text/javascript">window.location = self.location;</script>
this systems works perfectly - now im wondering why if I change the anchors' href values to href="#" my scripts wont work anymore?
does it have anything to do with the window?
did it change its property when i clicked a link or so even when the event's propagation were stopped?? | 0 | [
2,
448,
45,
27339,
68,
21,
2478,
1197,
20624,
13,
8,
76,
1463,
9,
19032,
3726,
8411,
9,
19032,
1437,
22,
38,
170,
800,
3726,
3726,
86,
235,
27,
51,
213,
6486,
31,
330,
21,
13,
1,
1287,
4924,
3726,
7,
5567,
108,
7,
1,
13,
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... |
WinForms: Load localized help (chm) files
===
What is the best way to load a locale-specific (i.e. translated) compiled help file (.chm)? Our install will deploy them alongside the satellite assemblies containing resources. I'd like to re-use the same probing rules the .NET framework uses to load the satellite assemblies, and I'd definitely like to avoid writing my own searching algorithm, because for example, I'd have to handle specific cases such as "zh-CN/zh-Hans/zh-CHS".
I can't find anything with the System.Windows.Forms.Help class that indicates that you can provide a CultureInfo object to specify a particular culture. Anybody else run across this yet?
Thanks! | 0 | [
2,
628,
4190,
18,
45,
6305,
24821,
448,
13,
5,
673,
79,
6,
6488,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
6305,
21,
375,
62,
8,
9219,
13,
5,
49,
9,
62,
9,
4331,
6,
9316,
448,
3893,
13,
5,
9,
673,
79,
6,
60,
318,
16146,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 programmatically insert a row in a GridView?
===
i have a databound GridView in asp.net 2.0 with a row-selection link. When a row is selected, I want to programmatically add a table row below the selected row, in order to nest another grid et al.
I am researching this for a client and for an article, and i think my google-fu is not strong tonight. Any suggestions? | 0 | [
2,
184,
20,
625,
6732,
1326,
14692,
21,
3131,
19,
21,
7354,
4725,
60,
800,
3726,
3726,
31,
57,
21,
1054,
7410,
7354,
4725,
19,
28,
306,
9,
2328,
172,
9,
387,
29,
21,
3131,
8,
18,
5033,
3508,
9,
76,
21,
3131,
25,
1704,
15,
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... |
Generating a unique ID in PHP
===
I'm trying to generate a unique ID in php in order to store user-uploaded content on a FS without conflicts. I'm using php, and at the moment this little snippet is responsible for generating the UID:
$id = tempnam (".", "");
unlink($id);
$id = substr($id, 2);
This code is hideous: it creates a temporary file on the FS and deletes it, retaining only the relevant unique part of the generated string.
Is there any better way to do this, most preferably without any external dependencies?
Thanks much!
| 0 | [
2,
13500,
21,
2619,
4924,
19,
13,
26120,
800,
3726,
3726,
31,
22,
79,
749,
20,
7920,
21,
2619,
4924,
19,
13,
26120,
19,
389,
20,
1718,
4155,
8,
576,
22546,
2331,
27,
21,
398,
18,
366,
10344,
9,
31,
22,
79,
568,
13,
26120,
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... |
Signature files for document retrieval
===
I was wondering if you know somewhere where I can find information on how to build a signature file for docuement retrieval. <br>
Do you know if there is some code out there that I can use or look at?<br>
I have to create a signature file in C++ under linux platform.<br>
Any help will be greatly appreciated.
Thanks,
| 0 | [
2,
7810,
6488,
26,
4492,
28419,
800,
3726,
3726,
31,
23,
5712,
100,
42,
143,
3493,
113,
31,
92,
477,
676,
27,
184,
20,
1895,
21,
7810,
3893,
26,
107,
3987,
9632,
28419,
9,
13,
1,
5145,
1,
107,
42,
143,
100,
80,
25,
109,
1797,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
strange iPhone app message in gdb: =shlibs-removed,shlib-info...
===
Trying to create my first iPhone app that would play back audio. When I try to set up playback, messages like these appear in gdb:
=shlibs-removed,shlib-info=[num="54",name="AudioIPCPlugIn",kind="B",dyld-addr="0x2c2000",reason="dyld",requested-state="E",state="E",path="/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn",description="/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn",loaded_addr="0x2c2000",slide="0x2c2000",prefix=""]
=shlibs-removed,shlib-info=[num="55",name="AppleHDAHALPlugIn",kind="B",dyld-addr="0x2cb000",reason="dyld",requested-state="E",state="E",path="/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn",description="/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn",loaded_addr="0x2cb000",slide="0x2cb000",prefix=""]
I'm interested to know in general what sort of problems these types of messages might refer to. | 0 | [
2,
2578,
21024,
4865,
2802,
19,
489,
9007,
45,
800,
1635,
8326,
18,
8,
99,
16598,
43,
15,
1635,
8326,
8,
108,
4120,
9,
9,
9,
800,
3726,
3726,
749,
20,
1600,
51,
64,
21024,
4865,
30,
83,
418,
97,
4023,
9,
76,
31,
1131,
20,
30... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C# equivalent to VB.NET Catch ... When
===
In VB.NET I often Catch ... When ...
Try
' Some code
Catch e As ArgumentNullException When e.ParamName.ToUpper() = "SAMPLES"
' Handle the error
End Try
Is there a C# equivalent to Catch ... When?
I don't want to resort to using an *if* statement inside a *catch* if possible.
| 0 | [
2,
272,
5910,
4602,
20,
13,
20468,
9,
2328,
2949,
13,
9,
9,
9,
76,
800,
3726,
3726,
19,
13,
20468,
9,
2328,
31,
478,
2949,
13,
9,
9,
9,
76,
13,
9,
9,
9,
1131,
13,
22,
109,
1797,
2949,
13,
62,
28,
5476,
4215,
211,
10066,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Regex Partial String Matching
===
Let me preface this by saying I'm a complete amateur when it comes to RegEx and only started a few days ago. I'm trying to solve a problem formatting a file and have hit a hitch with a particular type of data. The input file is structured like this:
Two words,Word,Word,Word,"Number, number"
What I need to do is format it like this...
"Two words","Word",Word","Word","Number, number"
I have had a RegEx pattern of s/,/","/g working, except it also replaces the comma in the already quoted Number, number section, which causes the field to separate and breaks the file. Essentially, I need to modify my pattern to replace a comma with "," [quote comma quote], but only when that comma isn't followed by a space. Note that the other fields will never have a space following the comma, only the delimited number list.
I managed to write up s/,[A-Za-z0-9]/","/g which, while matching the appropriate strings, would replace the comma AND the following letter. I have heard of backreferences and think that might be what I need to use? My understanding was that s/(,)[A-Za-z0-9]\b should work, but it doesn't.
Anyone have an idea? | 0 | [
2,
7953,
1706,
7284,
3724,
10120,
800,
3726,
3726,
408,
55,
20910,
48,
34,
1148,
31,
22,
79,
21,
1279,
3852,
76,
32,
1624,
20,
7953,
1706,
17,
104,
373,
21,
310,
509,
1464,
9,
31,
22,
79,
749,
20,
8402,
21,
1448,
2595,
1203,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to insert a total column in a crosstab report in VS 2008
===
How to insert a total column in a crosstab (matrix) report in Report Designer in VS 2008?
It seems that i can only insert a subcolumn in a crosstab report. Thanks. | 0 | [
2,
184,
20,
14692,
21,
600,
4698,
19,
21,
919,
15783,
1330,
19,
4611,
570,
800,
3726,
3726,
184,
20,
14692,
21,
600,
4698,
19,
21,
919,
15783,
13,
5,
540,
17224,
6,
1330,
19,
1330,
4742,
19,
4611,
570,
60,
32,
2206,
30,
31,
92... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Rapid Prototyping for Embedded Systems
===
For doing prototyping on small embedded projects that require physical motion, what hardware prototyping tools are available? For my projects, I tend to spend more time finding parts (i.e. wood, aluminum, etc.) and making the proper cuts, measurements, and connections than writing the software and configuring the electrical hardware.
Are there any affordable products that will enable me to create physical hardware that is strong enough to support motion? If not, what techniques or tools are available to help develop the physical hardware more quickly?
Currently, I typically build my projects from wood and plastic scraps that I have lying around. What types of materials enable you to prototype more quickly? | 0 | [
2,
4470,
9347,
1084,
3181,
26,
12138,
1242,
800,
3726,
3726,
26,
845,
9347,
1084,
3181,
27,
284,
12138,
2314,
30,
4077,
1825,
2422,
15,
98,
7610,
9347,
1084,
3181,
4672,
50,
904,
60,
26,
51,
2314,
15,
31,
5480,
20,
3256,
91,
85,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PHP5: Specifying a datatype in method parameters
===
I have a function that looks like this
class NSNode {
function insertAfter(NSNode $node) {
...
}
}
I'd like to be able to use that function to indicate that the node is being inserted at the start, therefore it is after *nothing*. The way I think about that is that `null` means "nothing", so I'd write my function call like this:
$myNode->insertAfter(null);
Except PHP throws an error saying that it was expecting an `NSNode` object. I'd like to stick to using the strict data typing in my function, but would like to be able to specify a null-esque value.
So, short of changing it to `function insertAfter($node) { }`, is there a way I can pass something else to that function? | 0 | [
2,
13,
26120,
264,
45,
19077,
68,
21,
1054,
4474,
19,
2109,
12905,
800,
3726,
3726,
31,
57,
21,
1990,
30,
1879,
101,
48,
718,
13,
2172,
251,
546,
13,
1,
1990,
14692,
5162,
5,
2172,
251,
546,
5579,
251,
546,
6,
13,
1,
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... |
Database Null
===
I have an asp.net text form that contains numerous decimal fields that are optional. I want to selectively update the database but not inserting a "0" for fields that do not have data (maintaining the null status).
Typically, I would create multiple functions, each with a different signature to handle this. However, I am inserting the data through a webservice which does not allow a function with the same name to have multiple signatures. I can think of a couple ways to work around this, but none "pragmatically".
Thanks! | 0 | [
2,
6018,
16203,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
1854,
505,
30,
1588,
1548,
26380,
2861,
30,
50,
12832,
9,
31,
259,
20,
14092,
102,
11100,
14,
6018,
47,
52,
14692,
68,
21,
13,
7,
387,
7,
26,
2861,
30,
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,
1,
1,
1,
1,
1... |
Exceptions causing junk data in string (C#)
===
Ok, this is a weird one. The junk data isn't random either, it appears to be substrings of the executable itself.
private void Form1_Load(object sender, EventArgs e)
{
string s = GetValue();
// at this point, s == "400". Why isn't really relevant (dumbed down a test)
if (s != "18446744073709551615")
throw new Exception();
// When the exception is thrown though, the string is set to random
// data from inside the executable.
}
This seems dependant on certain seemingly insignificant implementation details in GetValue() (which is a long function, though I'll post it offsite if anyone wants to see) such as calls to string.Format() being in different places.
Has anyone ever run into something similar or have any ideas what might cause this? | 0 | [
2,
13392,
3242,
12096,
1054,
19,
3724,
13,
5,
150,
5910,
6,
800,
3726,
3726,
5854,
15,
48,
25,
21,
5455,
53,
9,
14,
12096,
1054,
2532,
22,
38,
5477,
694,
15,
32,
1780,
20,
44,
972,
11130,
18,
16,
14,
1396,
17194,
5924,
1145,
9... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to build a solution to target 64 bit environment?
===
Is there anyway to build a solution to target 64 bit environment in vs2003? My solution is native c++ not visual c++. Any help would be greatly appreciated.
cheers,
RWendi | 2 | [
2,
184,
20,
1895,
21,
4295,
20,
2935,
4384,
1142,
2307,
60,
800,
3726,
3726,
25,
80,
2774,
20,
1895,
21,
4295,
20,
2935,
4384,
1142,
2307,
19,
4611,
3325,
60,
51,
4295,
25,
1275,
272,
20512,
52,
3458,
272,
20512,
9,
186,
448,
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,
0,
0,
0,
0,
0,
0,
0,
0... |
File input 'accept' attribute - is it useful?
===
Implementing a file upload under html is fairly simple, but I just noticed that there is an 'accept' attribute that can be added to the `<input type="file" ...>` tag.
Is this attribute useful as a way of limiting file uploads to images, etc? What is the best way to use it?
| 0 | [
2,
3893,
6367,
13,
22,
28050,
22,
35,
14755,
13,
8,
25,
32,
4811,
60,
800,
3726,
3726,
17333,
21,
3893,
71,
8294,
131,
13,
15895,
25,
6647,
1935,
15,
47,
31,
114,
2711,
30,
80,
25,
40,
13,
22,
28050,
22,
35,
14755,
30,
92,
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... |
PHP: mysql_connect() won't work via command line
===
I have a script which calls mysql_connect() to connect to a MySQL DB. When I run the script in a browser, it works as expected. However, when I run it from a command line I recieve the error
<pre>Call to undefined function mysql_connect()</pre>
This seems completely paradoxical. Anyone have any ideas as how I can run it from the command line. Btw, I run it from a bash shell like so:
<pre>php /path/to/script.php</pre> | 0 | [
2,
13,
26120,
45,
51,
18,
22402,
1,
25996,
5,
6,
230,
22,
38,
170,
1197,
1202,
293,
800,
3726,
3726,
31,
57,
21,
3884,
56,
3029,
51,
18,
22402,
1,
25996,
5,
6,
20,
6379,
20,
21,
51,
18,
22402,
13,
9007,
9,
76,
31,
485,
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... |
Distributed event handling mechanism for Java
===
I'm looking for a reasonably fast event handling mechanism in Java to generate and handle events across different JVMs running on different hosts.
For event handling across multiple threads in a single JVM, I found some good candidates like Jetlang. But in my search for a distributed equivalent , I couldn't find anything that was lightweight enough to offer good performance.
Does anyone know of any implementations that fit the bill? | 0 | [
2,
4387,
807,
7988,
6534,
26,
8247,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
19531,
1512,
807,
7988,
6534,
19,
8247,
20,
7920,
17,
3053,
963,
464,
421,
487,
20147,
18,
946,
27,
421,
5397,
9,
26,
807,
7988,
464,
1886,
20396,
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... |
Return to refering page
===
I am using an authentication attribute on some of my actions in an asp.net mvc page to refer people to a login screen if they have not authenticated. My problem is returning them to the referring page after they have logged in. I was just keeping track of the referring action and referring controller but that becomes problematic when I also need to keep track of some parameters. Is there some nifty built in trick about which I don't know?
| 0 | [
2,
788,
20,
5017,
68,
2478,
800,
3726,
3726,
31,
589,
568,
40,
27963,
35,
14755,
27,
109,
16,
51,
3078,
19,
40,
28,
306,
9,
2328,
307,
8990,
2478,
20,
5017,
148,
20,
21,
6738,
108,
2324,
100,
59,
57,
52,
14351,
1669,
9,
51,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why does the "at" command always warn me that commands will be executed via sh?
===
Every time I use the "at" command, I get this message:
warning: commands will be executed using /bin/sh
What is it trying to warn me about? More importantly, how do I turn it off? | 0 | [
2,
483,
630,
14,
13,
7,
721,
7,
1202,
550,
9296,
55,
30,
14294,
129,
44,
5557,
1197,
5527,
60,
800,
3726,
3726,
352,
85,
31,
275,
14,
13,
7,
721,
7,
1202,
15,
31,
164,
48,
2802,
45,
3590,
45,
14294,
129,
44,
5557,
568,
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... |
Is there a way to reference an existing CSS style from another CSS style using CSS or javascript?
===
If I have a style defined
.style1
{
width: 140px;
}
can I reference it from a second style?
.style2
{
ref: .style1;
}
Or is there a way via javascript/jQuery? | 0 | [
2,
25,
80,
21,
161,
20,
2801,
40,
3149,
272,
18,
18,
1034,
37,
226,
272,
18,
18,
1034,
568,
272,
18,
18,
54,
8247,
8741,
60,
800,
3726,
3726,
100,
31,
57,
21,
1034,
2811,
13,
9,
4381,
165,
13,
1,
9456,
45,
10008,
306,
396,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Any free alternative to VisualStudio?
===
I am in need of an IDE that can open and understand a .vcproj file. Does anyone know of something that can open these files that is free and an IDE? | 0 | [
2,
186,
551,
2676,
20,
3458,
21026,
60,
800,
3726,
3726,
31,
589,
19,
376,
16,
40,
13,
3448,
30,
92,
368,
17,
1369,
21,
13,
9,
8990,
2740,
728,
3893,
9,
630,
1276,
143,
16,
301,
30,
92,
368,
158,
6488,
30,
25,
551,
17,
40,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Linq to SQL Class Regeneration
===
I've been using this nifty LINQ to SQL tool for a data access layer in an asp.net project. I keep making changes to the underlying tables and in order for the data classes to recognize the change I have to delete and readd the table which has changed. Is there some shortcut to regenerating the data layer? | 0 | [
2,
6294,
1251,
20,
4444,
255,
718,
23010,
800,
3726,
3726,
31,
22,
195,
74,
568,
48,
1781,
3072,
93,
6294,
1251,
20,
4444,
255,
5607,
26,
21,
1054,
1381,
5385,
19,
40,
28,
306,
9,
2328,
669,
9,
31,
643,
544,
1693,
20,
14,
1097... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 add an additional "view" to my iphone app?
===
I have a simple iphone app that's based on the CrashLanding sample app. So basically you tap the title screen and do some stuff... all on the same "view". I want to add an "options" screen/page/view whatever with a few UISwitches. What's the easiest way to do this?
Cheers! | 0 | [
2,
184,
92,
31,
3547,
40,
1351,
13,
7,
4725,
7,
20,
51,
21024,
4865,
60,
800,
3726,
3726,
31,
57,
21,
1935,
21024,
4865,
30,
22,
18,
432,
27,
14,
4597,
618,
68,
5717,
4865,
9,
86,
11374,
42,
5526,
14,
581,
2324,
17,
107,
109... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 does "select count(1) from table_name" on any database tables mean
===
When we execute select count(*) from table_name it returns the number of rows.
What does count(1) do? What does 1 signifies over here? Is this same as count(*) as it gives the same result on execution?
| 0 | [
2,
98,
630,
13,
7,
18,
16964,
2468,
5,
165,
6,
37,
859,
1,
7259,
7,
27,
186,
6018,
7484,
884,
800,
3726,
3726,
76,
95,
15644,
5407,
2468,
5,
2483,
6,
37,
859,
1,
7259,
32,
4815,
14,
234,
16,
11295,
9,
98,
630,
2468,
5,
165... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 does TCP/IP report errors?
===
How does TCP/IP report errors when packet delivery fails permanently? All Socket.write() APIs I've seen simply pass bytes to the underlying TCP/IP output buffer and transfer the data asynchronously. How then is TCP/IP supposed to notify the developer if packet delivery fails permanently (i.e. the destination host is no longer reachable)?
Any protocol that requires the sender to wait for confirmation from the remote end will get an error message. But what happens for protocols where a sender doesn't have to read any bytes from the destination? Does TCP/IP just fail silently? Perhaps Socket.close() will return an error? Does the TCP/IP specification say anything about this? | 0 | [
2,
184,
630,
13,
38,
7439,
118,
4307,
1330,
11908,
60,
800,
3726,
3726,
184,
630,
13,
38,
7439,
118,
4307,
1330,
11908,
76,
12795,
6010,
13614,
8384,
60,
65,
18482,
9,
23716,
5,
6,
21,
8954,
31,
22,
195,
541,
1659,
1477,
34,
323... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Functional programming and multicore architecture
===
I've read somewhere that functional programming is suitable to take advantage of multi-core trend in computin.. I didn't really get the idea. Is it related to the lambda calculus and von neumann architecture?
| 0 | [
2,
7652,
3143,
17,
1889,
10375,
2607,
800,
3726,
3726,
31,
22,
195,
1302,
3493,
30,
7652,
3143,
25,
6445,
20,
247,
3314,
16,
1889,
8,
10375,
8703,
19,
6479,
1982,
108,
9,
9,
31,
223,
22,
38,
510,
164,
14,
882,
9,
25,
32,
1597,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Does using global create any overhead?
===
Is it a problem if you use the global keyword on variables you don't end up using? Compare:
function foo() {
global $fu;
global $bah;
if (something()) {
$fu->doSomething();
} else {
$bah->doSomething();
}
}
function bar() {
if (something()) {
global $fu;
$fu->doSomething();
} else {
global $bah;
$bah->doSomething();
}
}
I'm quite aware that using the second method makes maintaining this code much harder, and that it's generally preferred to put all your globals at the start of functions, so: **Ignoring the difference in maintainability and code-styling of the two functions, is there a difference between these two in terms of overhead?** | 0 | [
2,
630,
568,
2062,
1600,
186,
8860,
60,
800,
3726,
3726,
25,
32,
21,
1448,
100,
42,
275,
14,
2062,
1246,
9587,
27,
12157,
42,
221,
22,
38,
241,
71,
568,
60,
11590,
45,
1990,
4310,
111,
5,
6,
13,
1,
2062,
5579,
4096,
73,
2062,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 make resource dll to describe device fonts ?
===
The target driver im building is not a native driver but a minidriver working with Microsoft Universal Pinter Driver
According to DDK:
> Descriptions of these items [fonts in my case] are
> placed in a resource DLL, as described
> in the Platform SDK documentation.
It then goes on to say:
> In the printer's resource DLL, specify
> .ufm files by using the RC_UFM
> resource type, and specify .ifi files
> by using the RC_FONT resource type.
Despite the reference to SDK, there is no information on how to actually place the .ifi font information inside a resource dll.
Can anyone please point out a way to do this ?
| 0 | [
2,
184,
20,
233,
6577,
13,
43,
211,
20,
4996,
3646,
9978,
18,
13,
60,
800,
3726,
3726,
14,
2935,
2425,
797,
353,
25,
52,
21,
1275,
2425,
47,
21,
4236,
21752,
638,
29,
7099,
4172,
351,
6280,
2425,
496,
20,
13,
8096,
197,
45,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to override global stylesheet
===
In a nutshell, there's a global stylesheet:
a { font-family: Arial; }
I want to use a different font family for a particular link:
<a href="..." style="font-family: Helvetica;">...</a>
or
<span style="font-family: Helvetica;"><a href="...">...</a></span>
but nothing works. Is there an easy way to do this? | 0 | [
2,
184,
20,
84,
11891,
2062,
1034,
17627,
800,
3726,
3726,
19,
21,
8619,
15984,
15,
80,
22,
18,
21,
2062,
1034,
17627,
45,
21,
13,
1,
9978,
8,
13819,
45,
21,
20050,
73,
13,
1,
31,
259,
20,
275,
21,
421,
9978,
190,
26,
21,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I find the DHCP assigned IP address via bash on Fedora?
===
Is there a command within the bash shell of fedora that will give me the currently assigned IP address? | 0 | [
2,
184,
107,
31,
477,
14,
10231,
7439,
2467,
15735,
3218,
1197,
13158,
27,
26726,
58,
60,
800,
3726,
3726,
25,
80,
21,
1202,
363,
14,
13158,
3593,
16,
26726,
58,
30,
129,
590,
55,
14,
871,
2467,
15735,
3218,
60,
3,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
best practices for catching exceptions from sql in c#
===
What are some good ways to catch business logic exceptions or return values from SQL in c#? For instance upon creating a new user, if the user already exists, the system, and the user must be notified. I have used the raise_error() method with a particular state int value, I have used stored procedure return int values, and I have also selected a msg column with a particular structure. Are there any best practices for this? | 0 | [
2,
246,
5242,
26,
9436,
13392,
37,
4444,
255,
19,
272,
5910,
800,
3726,
3726,
98,
50,
109,
254,
2847,
20,
2949,
508,
7085,
13392,
54,
788,
4070,
37,
4444,
255,
19,
272,
5910,
60,
26,
4851,
685,
2936,
21,
78,
4155,
15,
100,
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... |
What is the default URL for APEX for an Oracle XE installation?
===
I've installed Oracle XE with APEX, but forgot to write down the URL to access it. How may I determine the URL? | 0 | [
2,
98,
25,
14,
12838,
287,
6362,
26,
15452,
26,
40,
15759,
13,
13012,
7758,
60,
800,
3726,
3726,
31,
22,
195,
4066,
15759,
13,
13012,
29,
15452,
15,
47,
9564,
20,
2757,
125,
14,
287,
6362,
20,
1381,
32,
9,
184,
123,
31,
3746,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Tunnel over HTTPS
===
At my workplace, the traffic blocker/firewall has been getting progressively worse. I can't connect to my home machine on port 22, and lack of ssh access makes me sad. I was previously able to use SSH by moving it to port 5050, but I think some recent filters now treat this traffic as IM and redirect it through another proxy, maybe. That's my best guess; in any case, my ssh connections now terminate before I get to log in.
These days I've been using Ajaxterm over HTTPS, as port 443 is still unmolested, but this is far from ideal. (Sucky terminal emulation, lack of port forwarding, my browser leaks memory at an amazing rate...) I tried setting up `mod_proxy_connect` on top of `mod_ssl`, with the idea that I could send a `CONNECT localhost:22 HTTP/1.1` request through HTTPS, and then I'd be all set. Sadly, this seems to not work; the HTTPS connection works, up until I finish sending my request; then SSL craps out. It appears as though `mod_proxy_connect` takes over the whole connection instead of continuing to pipe through `mod_ssl`, confusing the heck out of the HTTPS client.
Is there a way to get this to work? I don't want to do this over plain HTTP, for several reasons:
- Leaving a big fat open proxy like that just stinks
- A big fat open proxy is not good over HTTPS either, but with authentication required it feels fine to me
- HTTP goes through a proxy -- I'm not *too* concerned about my traffic being sniffed, as it's ssh that'll be going "plaintext" through the tunnel -- but it's a lot more likely to be mangled than HTTPS, which fundamentally cannot be proxied
Requirements:
- Must work over port 443, without disturbing other HTTPS traffic (i.e. I can't just put the ssh server on port 443, because I would no longer be able to serve pages over HTTPS)
- I have or can write a simple port forwarder client that runs under Windows (or Cygwin) | 0 | [
2,
3485,
84,
7775,
18,
800,
3726,
3726,
35,
51,
16932,
15,
14,
2227,
1921,
106,
118,
5929,
6051,
63,
74,
1017,
22799,
3105,
9,
31,
92,
22,
38,
6379,
20,
51,
213,
1940,
27,
1295,
1024,
15,
17,
1792,
16,
13,
18,
1635,
1381,
1364... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Automated MSI installation
===
What is the best way to automatically install an MSI file or installer .exe? We want to do some automated testing from our build system on the installed copy of the product. Our installer has the usual license acceptance screen, install location, etc. | 0 | [
2,
14904,
4235,
49,
7758,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
7499,
16146,
40,
4235,
49,
3893,
54,
16146,
106,
13,
9,
1706,
62,
60,
95,
259,
20,
107,
109,
14904,
4431,
37,
318,
1895,
329,
27,
14,
4066,
4344,
16,
14,
237... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Quick and dirty way to compare SQL server performance
===
Further to my previous question about the [Optimal RAID setup for SQL server][1], could anyone suggest a quick and dirty way of benchmarking the database performance on the new and old servers to compare them? Obviously, the proper way would be to monitor our actual usage and set up all sorts of performance counters and capture the queries, etc., but we are just not at that level of sophistication yet and this isn't something we'll be able to do in a hurry. So in the meanwhile, I'm after something that would be a bit less accurate, but quick to do and still better than nothing. Just as long as it's not misleading, which would be worse than nothing. It should be SQL Server specific, not just a "synthetic" benchmark. It would be even better if we could use our actual database for this.
[1]: http://stackoverflow.com/questions/165383/optimal-raid-setup-for-sql-server
| 0 | [
2,
2231,
17,
6121,
161,
20,
11590,
4444,
255,
8128,
956,
800,
3726,
3726,
653,
20,
51,
1158,
1301,
88,
14,
636,
25458,
3482,
6847,
18161,
26,
4444,
255,
8128,
500,
2558,
165,
500,
15,
110,
1276,
5601,
21,
2231,
17,
6121,
161,
16,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Oracle error
===
We get sometimes the following error from our partner's database:
<i>ORA-01438: value larger than specified precision allows for this column</i>
The full response looks like the following:
<?xml version="1.0" encoding="windows-1251"?>
<response>
<status_code></status_code>
<error_text>
ORA-01438: value larger than specified precision allows
for this column ORA-06512:
at "UMAIN.PAY_NET_V1_PKG",
line 176 ORA-06512: at line 1
</error_text>
<pay_id>5592988</pay_id>
<time_stamp></time_stamp>
</response>
What can be the cause for this error?
Thank you in advance. | 0 | [
2,
15759,
7019,
800,
3726,
3726,
95,
164,
1030,
14,
249,
7019,
37,
318,
2417,
22,
18,
6018,
45,
13,
1,
49,
1,
6055,
8,
3026,
26758,
45,
1923,
1662,
119,
9931,
13133,
2965,
26,
48,
4698,
1,
118,
49,
1,
14,
503,
1627,
1879,
101,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Instantiating a JavaScript object by calling prototype.constructor.apply
===
Let me start with a specific example of what I'm trying to do.
I have an array of year, month, day, hour, minute, second and millisecond components in the form `[ 2008, 10, 8, 00, 16, 34, 254 ]`. I'd like to instantiate a Date object using the following standard constructor:
new Date(year, month, date [, hour, minute, second, millisecond ])
How can I pass my array to this constructor to get a new Date instance? I'm trying to do something like the following:
var comps = [ 2008, 10, 8, 00, 16, 34, 254 ];
var d = Date.prototype.constructor.apply(this, comps);
I probably need a "`new`" in there somewhere. The above just returns the current time as if I had called "`new Date()`". I also acknowledge that I may be completely in the wrong direction with the above :)
*Note: No `eval()` and no accessing the array items one by one, please. I'm pretty sure I should be able to use the array as is.* | 0 | [
2,
6322,
49,
1880,
21,
8247,
8741,
3095,
34,
2555,
7063,
9,
1126,
10346,
248,
9,
7753,
102,
800,
3726,
3726,
408,
55,
799,
29,
21,
1903,
823,
16,
98,
31,
22,
79,
749,
20,
107,
9,
31,
57,
40,
7718,
16,
159,
15,
1617,
15,
208,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 use the Rails helper link_to RESTfully in this situation?
===
I basically want to use link_to to link to the index method of a controller. I tried:
<%= link_to 'Recipes', Recipe %>
but that outputs:
<a href="/recipes/Recipe">Recipes</a>
Which is clearly not right, if it left off that last bit it would do exactly what I want it to. I thought that with RESTful stuff I somehow would start to leave out the action or something like that. What am I misunderstanding? | 0 | [
2,
184,
107,
31,
275,
14,
2240,
18,
448,
106,
3508,
1,
262,
760,
5655,
19,
48,
1858,
60,
800,
3726,
3726,
31,
11374,
259,
20,
275,
3508,
1,
262,
20,
3508,
20,
14,
4348,
2109,
16,
21,
9919,
9,
31,
794,
45,
13,
1,
11881,
3726,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
obtain command line arguments in unit test
===
In a Test project in Visual Studio 2008 (Pro), I created a Test project, and I want to configure the project properties to give a command line argument to the tests. I set the properties, but then realized I have no idea how to actually use the argument.
How do you get the arguments from MSTest? | 0 | [
2,
5545,
1202,
293,
10553,
19,
1237,
1289,
800,
3726,
3726,
19,
21,
1289,
669,
19,
3458,
1120,
570,
13,
5,
2740,
6,
15,
31,
679,
21,
1289,
669,
15,
17,
31,
259,
20,
1065,
15951,
14,
669,
3704,
20,
590,
21,
1202,
293,
5476,
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... |
Regex to match alphanumeric and spaces
===
What am I doing wrong here?
string q = "john s!";
string clean = Regex.Replace(q, @"([^a-zA-Z0-9]|^\s)", string.Empty);
// clean == "johns". I want "john s"; | 0 | [
2,
7953,
1706,
20,
730,
5705,
6336,
14744,
17,
7644,
800,
3726,
3726,
98,
589,
31,
845,
1389,
235,
60,
3724,
2593,
800,
13,
7,
7373,
13,
18,
187,
7,
73,
3724,
2745,
800,
7953,
1706,
9,
99,
5119,
5,
1251,
15,
13,
1,
7,
5,
255... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Convert SQL Server Database from 2005 to 2000
===
We have a Microsoft SQL Server 2005 database that needs to be converted back to SQL Server 2000. Does anybody have any suggestions on the approach or tools I should use to perform this conversion? We don't utilise any SQL Server 2005 specific features in the database so this should not make the conversion problematic.
| 0 | [
2,
8406,
4444,
255,
8128,
6018,
37,
812,
20,
824,
800,
3726,
3726,
95,
57,
21,
7099,
4444,
255,
8128,
812,
6018,
30,
2274,
20,
44,
3494,
97,
20,
4444,
255,
8128,
824,
9,
630,
11181,
57,
186,
18389,
27,
14,
2141,
54,
4672,
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... |
Update a list element with Lotus Formula
===
I am trying to update an element in a list with Lotus Formula.
I thought you would do it like this:
x := "0":"0":"0";
x[1] := "1";
But when I try to save I get the following error:
:= must be immediately preceded by a field or variable name
| 0 | [
2,
11100,
21,
968,
4520,
29,
15175,
3729,
800,
3726,
3726,
31,
589,
749,
20,
11100,
40,
4520,
19,
21,
968,
29,
15175,
3729,
9,
31,
289,
42,
83,
107,
32,
101,
48,
45,
993,
13,
45,
3726,
13,
7,
387,
7,
45,
7,
387,
7,
45,
7,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Delphi Project Needing runtime Packages, even with runtime Packages off.
===
My Delphi7 project will not run on my clients computer if i don't have a few of the runtime packages in the path. eg rtl70.bpl
I have <I>Build with runtime packages</I> unticked, so shouldn't they be complied into the exe?
| 0 | [
2,
23030,
669,
12210,
485,
891,
16875,
15,
166,
29,
485,
891,
16875,
168,
9,
800,
3726,
3726,
51,
23030,
465,
669,
129,
52,
485,
27,
51,
7421,
1428,
100,
31,
221,
22,
38,
57,
21,
310,
16,
14,
485,
891,
16875,
19,
14,
2013,
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... |
Re-factoring from Active Record to Data Mapper
===
have you re-factored from an [Active Record][1] to a [Data Mapper][2] pattern? what conditions prompted the switch? i'm primarily interested in web based applications, but would like to know the challenges that accompany such a move in any environment.
[1]: http://martinfowler.com/eaaCatalog/activeRecord.html
[2]: http://martinfowler.com/eaaCatalog/dataMapper.html | 0 | [
2,
302,
8,
17455,
68,
37,
1348,
571,
20,
1054,
2942,
1432,
800,
3726,
3726,
57,
42,
302,
8,
17455,
69,
37,
40,
636,
7889,
571,
500,
2558,
165,
500,
20,
21,
636,
18768,
2942,
1432,
500,
2558,
135,
500,
3732,
60,
98,
2039,
9491,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Configuring Tomcat 6 to support Russian cp1251 encoding
===
I am migrating a struts application from Websphere to Tomcat 6 and my application has support for Russian language. In Websphere we use to pass the JVM param -Dclinet.encoding.override=cp1251 but when I tried this with tomcat by passing the JVM argument -DFile.encoding=cp1251, the system doesnt accept input (I an any text box like in search screen) and responds with invalid input.
I also tries passing the same parameter as of Websphere (-Dclinet.encoding.override=cp1251) but didnt solve my problem.
| 0 | [
2,
1065,
13549,
68,
2067,
5782,
400,
20,
555,
1154,
9750,
918,
4246,
19608,
800,
3726,
3726,
31,
589,
28749,
21,
18316,
18,
3010,
37,
2741,
14079,
20,
2067,
5782,
400,
17,
51,
3010,
63,
555,
26,
1154,
816,
9,
19,
2741,
14079,
95,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Ruby Memory Management
===
I have been using ruby for a while now and I find for bigger projects it can take up a fare amount of memory. What are ruby best practices for reducing memory usage?
- Please, let each answer have on "best practice" and let the community vote it up | 0 | [
2,
10811,
1912,
1097,
800,
3726,
3726,
31,
57,
74,
568,
10811,
26,
21,
133,
130,
17,
31,
477,
26,
6197,
2314,
32,
92,
247,
71,
21,
12408,
2006,
16,
1912,
9,
98,
50,
10811,
246,
5242,
26,
7974,
1912,
7514,
60,
13,
8,
2247,
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... |
Best Way to Overwrite Bytes in the Middle of a File in Java
===
What is the best way to overwrite bytes in the middle of a file using Java? | 0 | [
2,
246,
161,
20,
84,
23716,
34,
3231,
19,
14,
772,
16,
21,
3893,
19,
8247,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
84,
23716,
34,
3231,
19,
14,
772,
16,
21,
3893,
568,
8247,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How do I add a Line break in a SQL Server Stored Procedure?
===
I'm making a Stored Procedure that basically concatenates a long string with data from many records.
I want to do:
set @output = @output + 'aaa' + LINEBREAK
How do I specify that line break? | 0 | [
2,
184,
107,
31,
3547,
21,
293,
1442,
19,
21,
4444,
255,
8128,
8214,
7004,
60,
800,
3726,
3726,
31,
22,
79,
544,
21,
8214,
7004,
30,
11374,
1065,
9530,
8820,
18,
21,
175,
3724,
29,
1054,
37,
151,
742,
9,
31,
259,
20,
107,
45,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C# event handling (compared to Java)
===
I am currently having a hardtime understanding and implementing events in C# using delagates. I am used to the Java way of doing things:
1. Define an interface for a listener type which would contain a number of method definitions
2. Define adapter class for that interface to make things easier if I'm not interested in all the events defined in a listener
3. Define Add, Remove and Get[] methods in the class which raises the events
4. Define protected fire methods to do the dirty work of looping through the list of added listeners and calling the correct method
This I understand (and like!) - I know I could do this exactly the same in c#, but it seems that a new (better?) system is in place for c#. After reading countless tutorials explaining the use of delegates and events in c# I still am no closer to really understanding what is going on :S
----------
In short, for the following methods how would I implement the event system in c#:
void computerStarted(Computer computer);
void computerStopped(Computer computer);
void computerReset(Computer computer);
void computerError(Computer computer, Exception error);
^ The above methods are taken from a Java application I once made which I'm trying to port over to c#.
Many many thanks! | 0 | [
2,
272,
5910,
807,
7988,
13,
5,
18415,
2095,
20,
8247,
6,
800,
3726,
3726,
31,
589,
871,
452,
21,
552,
891,
3260,
17,
17333,
963,
19,
272,
5910,
568,
16293,
3322,
18,
9,
31,
589,
147,
20,
14,
8247,
161,
16,
845,
564,
45,
137,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 create the "indexes" required for NSIndexPath:indexPathWithIndexes:length:
===
The class method to create an index path with one or more nodes is:
+ (id)indexPathWithIndexes:(NSUInteger *)indexes length:(NSUInteger)length
How do we create the "indexes" required in the first parameter?
The documentation listed it as *Array of indexes to make up the index path* but it is expecting a (NSUinteger *).
To create an index path of 1.2.3.4, is it simply an array of [1,2,3,4] ? | 0 | [
2,
184,
20,
1600,
14,
13,
7,
25671,
160,
7,
1390,
26,
13,
2172,
25671,
8353,
45,
25671,
8353,
1410,
25671,
160,
45,
6325,
45,
800,
3726,
3726,
14,
718,
2109,
20,
1600,
40,
4348,
2013,
29,
53,
54,
91,
16272,
25,
45,
2754,
13,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how to do Custom cell programming for table view controller?
===
Actually I wanted a custom cell which contains 2 images and 1 text contents, and I wanted to place those into one table cell, and this contents are static so can I use Interface Builder for making that interface.
thanks in advance. | 0 | [
2,
184,
20,
107,
5816,
1667,
3143,
26,
859,
1418,
9919,
60,
800,
3726,
3726,
1121,
31,
417,
21,
5816,
1667,
56,
1588,
172,
3502,
17,
137,
1854,
8478,
15,
17,
31,
417,
20,
209,
273,
77,
53,
859,
1667,
15,
17,
48,
8478,
50,
1203... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
I'm getting a NULL output in a SQL Function when concatting fields
===
I have the following function:
CREATE FUNCTION fGetTransactionStatusLog
(
@TransactionID int
)
RETURNS varchar(8000) AS
BEGIN
declare StatusChanges cursor for
select NewStatusID, FirstName + ' ' + LastName AS UserName, Stamp, CAST(Notes AS varchar(8000)) AS Notes
from TransactionStatusChanges tsc
left join Users us ON tsc.UserID = us.UserID
where TransactionID = @TransactionID ORDER BY StatusNum
declare @output varchar(8000)
declare @NewStatusID char(2)
declare @UserName varchar(255)
declare @Stamp datetime
declare @Notes varchar(8000)
set @output = ''
OPEN StatusChanges
FETCH NEXT FROM StatusChanges INTO @NewStatusID, @UserName, @Stamp, @Notes
WHILE @@FETCH_STATUS = 0
BEGIN
set @output = @output + RTRIM(CAST(@Stamp AS varchar(30))) + ': ' + @NewStatusID + ' by ' + @UserName + CHAR(13) + CHAR(10)
IF @Notes IS NOT NULL
BEGIN
set @output = @output + '---' + @Notes + CHAR(13) + CHAR(10)
END
FETCH NEXT FROM StatusChanges INTO @NewStatusID, @UserName, @Stamp, @Notes
END
CLOSE StatusChanges
DEALLOCATE StatusChanges
RETURN @output
END
Now, that function returns exactly what I want for the Transactions that don't have any Notes in any records...
For transaction that have at least one record in TransactionStatusChanges with a non-NULL Notes field, I get NULL.
I don't quite get it, since I AM checking that @Notes is not NULL before concatting it.
Any ideas?
NOTE: I'm using varchar(8000) because I can't use text inside Functions. | 0 | [
2,
31,
22,
79,
1017,
21,
16203,
5196,
19,
21,
4444,
255,
1990,
76,
1065,
5782,
1203,
2861,
800,
3726,
3726,
31,
57,
14,
249,
1990,
45,
1600,
1990,
398,
3060,
7028,
8645,
10631,
267,
5567,
13,
5,
13,
1,
7028,
8645,
1340,
19,
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... |
GUI tool to browse Java serialized objects
===
Is there a GUI application that can open serialized Java object files (both binary and XML format) and display them in browsable fashion (maybe like the Eclipse debugger displays the state of variables)?
It needs to work at least partially when not all classes can be resolved (an option to attach extra jars would be nice) or when there are serial version UID mismatches.
Extra points for the ability to make changes.
| 0 | [
2,
9457,
5607,
20,
10175,
62,
8247,
27877,
3916,
800,
3726,
3726,
25,
80,
21,
9457,
3010,
30,
92,
368,
27877,
8247,
3095,
6488,
13,
5,
8110,
14171,
17,
23504,
2595,
6,
17,
3042,
105,
19,
10175,
579,
3161,
13,
5,
5138,
101,
14,
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 Examples of .NET Desktop Applications
===
I would like to evaluate .NET as a development platform for a desktop application. I am looking for good examples of .NET desktop applications used in the mainstream. The only ones I know of are:
1. Visual Studio (The copy website form
is one example.)
2. Team Explorer UI
3. Paint.NET
4. Reflector
5. Gnome Do (An app launcher for Gnome; runs on Mono)
I am looking for more examples; open source, freeware or a demo version in that order.
Suggestions?
| 4 | [
2,
254,
3770,
16,
13,
9,
2328,
17404,
3767,
800,
3726,
3726,
31,
83,
101,
20,
13,
15599,
13,
9,
2328,
28,
21,
522,
2452,
26,
21,
17404,
3010,
9,
31,
589,
699,
26,
254,
3770,
16,
13,
9,
2328,
17404,
3767,
147,
19,
14,
7469,
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... |
Is there a better way to find midnight tomorrow?
===
Is there a better way to do this?
-(NSDate *)getMidnightTommorow {
NSCalendarDate *now = [NSCalendarDate date];
NSCalendarDate *tomorrow = [now dateByAddingYears:0 months:0 days:1 hours:0 minutes:0 seconds:0];
return [NSCalendarDate dateWithYear:[tomorrow yearOfCommonEra]
month:[tomorrow monthOfYear]
day:[tomorrow dayOfMonth]
hour:0
minute:0
second:0
timeZone:[tomorrow timeZone]];
}
Note that I always want the next midnight, even if it happens to be midnight when I make that call, however if it happens to be 23:59:59, I of course want the midnight that is coming in one second.
The natural language functions seem flaky, and I'm not sure what Cocoa would do if I pass 32 in the "day" field. (If that'd work I could drop the [now dateByAddingYears:...] call)
| 0 | [
2,
25,
80,
21,
574,
161,
20,
477,
6373,
3450,
60,
800,
3726,
3726,
25,
80,
21,
574,
161,
20,
107,
48,
60,
13,
8,
5,
2172,
8209,
1637,
6,
3060,
7825,
4893,
6015,
1293,
5417,
13,
1,
13,
103,
5093,
706,
1514,
1373,
1637,
1387,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Keyboard chortcut Ctrl + . stopped working
===
The new awesome Ctrl +. keyboard shortcut to show smart tags has suddenly stopped working, a week or so after I discovered it :(
I am missing it badly, having had to revert back to Ctrl+Alt+F10, which really just isn't the same.
I recently installed F# CTP 1.9.6.2
Has anyone else
- installed this CTP and still has Ctrl + .
- Lost Ctrl + . without installing F#
- Even better, found how to get it back again?
| 0 | [
2,
4611,
2753,
8896,
12024,
38,
4118,
13,
4812,
6362,
2754,
13,
9,
1175,
638,
800,
3726,
3726,
14,
78,
13706,
13,
4812,
6362,
2754,
9,
8896,
502,
4118,
20,
298,
3978,
3383,
18,
63,
1605,
1175,
638,
15,
21,
877,
54,
86,
75,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.