unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Credit Card processing library that handles many merchant gateways?
===
Looking for a c# library that interfaces to multiple merchant gateways.
Should at minimum be able to handle PayPal and authorize. | 0 | [
2,
3251,
2056,
5511,
1248,
30,
3053,
18,
151,
5080,
12171,
18,
60,
800,
3726,
3726,
699,
26,
21,
272,
5910,
1248,
30,
6573,
18,
20,
1886,
5080,
12171,
18,
9,
378,
35,
5187,
44,
777,
20,
3053,
1372,
6720,
17,
1314,
2952,
9,
3,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Generate a default CRUD UI when using Castle ActiveRecord (.net)
===
Is there any simple way to generate a default crud (given an entity) with activerecord (castle implementation)
or something similar for NET?
There is something like this for RoR ( it think its called activescaffold)
Thanks | 0 | [
2,
7920,
21,
12838,
11498,
43,
13,
5661,
76,
568,
1339,
1348,
14953,
13,
5,
9,
2328,
6,
800,
3726,
3726,
25,
80,
186,
1935,
161,
20,
7920,
21,
12838,
11498,
43,
13,
5,
8448,
103,
40,
9252,
6,
29,
1348,
14953,
13,
5,
16736,
612... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I determine when a default printer was set on windows
===
We are trying to trace the time a windows default printer was changed and by who or what.
Any ideas? | 0 | [
2,
92,
31,
3746,
76,
21,
12838,
12925,
23,
309,
27,
1936,
800,
3726,
3726,
95,
50,
749,
20,
5565,
14,
85,
21,
1936,
12838,
12925,
23,
1015,
17,
34,
72,
54,
98,
9,
186,
3478,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to foreign key relationships with the Entity Framework?
===
I want to create a new row in my database on a table that has a couple foreign key relationships and I haven't been able to get a hand on what order and what calls need to be made. This is what I have so far:
db.Models.Order order = DB.Models.Order.CreateOrder( apple );
order.CustomerReference.Attach( ( from c in db.Customer where c.Id == custId select c ).First() );
db.SaveChanges();
The code is failing on the second line there, saying:
> Attach is not a valid operation when
> the source object associated with this
> related end is in an added, deleted,
> or detached state. Objects loaded
> using the NoTracking merge option are
> always detached.
Any ideas? | 0 | [
2,
184,
20,
1228,
1246,
5833,
29,
14,
9252,
6596,
60,
800,
3726,
3726,
31,
259,
20,
1600,
21,
78,
3131,
19,
51,
6018,
27,
21,
859,
30,
63,
21,
1335,
1228,
1246,
5833,
17,
31,
2933,
22,
38,
74,
777,
20,
164,
21,
224,
27,
98,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I change the background color with AJAX?
===
Anyone know a simple method to swap the background color of a webpage using ajax? | 0 | [
2,
184,
107,
31,
753,
14,
2395,
1665,
29,
20624,
60,
800,
3726,
3726,
1276,
143,
21,
1935,
2109,
20,
17150,
14,
2395,
1665,
16,
21,
2741,
6486,
568,
20624,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Printing pointers in C
===
I was trying to understand something with pointers, so I wrote this code:
#include <stdio.h>
int main(void)
{
char s[] = "asd";
char **p = &s;
printf("The value of s is: %p\n", s);
printf("The direction of s is: %p\n", &s);
printf("The value of p is: %p\n", p);
printf("The direction of p is: %p\n", &p);
printf("The direction of s[0] is: %p\n", &s[0]);
printf("The direction of s[1] is: %p\n", &s[1]);
printf("The direction of s[2] is: %p\n", &s[2]);
return 0;
}
When compiling it with gcc I get these warnings:
$ gcc main.c -o main-bin -ansi -pedantic -Wall -lm
main.c: In function ‘main’:
main.c:6: warning: initialization from incompatible pointer type
main.c:9: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char (*)[4]’
main.c:11: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char **’
main.c:12: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char ***’
(The flags for gcc are because I must be C89)
Why incompatible types of pointer? Isn't the name of an array a pointer to it's first element? So if s is a pointer to 'a', &s must be a char **, no?
And why do I get the other warnings? Do I have to cast the pointers with (void *) in order to print them?
And when running I get something like this:
$ ./main-bin
The value of s is: 0xbfb7c860
The direction of s is: 0xbfb7c860
The value of p is: 0xbfb7c860
The direction of p is: 0xbfb7c85c
The direction of s[0] is: 0xbfb7c860
The direction of s[1] is: 0xbfb7c861
The direction of s[2] is: 0xbfb7c862
How can the value of s and it's direction (and of course the value of p) be the same?
Thank you very much,
Patricio | 0 | [
2,
7312,
454,
445,
19,
272,
800,
3726,
3726,
31,
23,
749,
20,
1369,
301,
29,
454,
445,
15,
86,
31,
738,
48,
1797,
45,
6926,
22640,
13,
1,
384,
6921,
9,
252,
1,
19,
38,
407,
5,
2625,
1340,
6,
13,
1,
4892,
13,
18,
2558,
500,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 with a regex that matches something either before OR after something else
===
I have a bunch of XML that has lines that look like this
<_char font_name="/ITC Stone Sans Std Bold" italic="true" />
but sometimes look like this
<_char font_size="88175" italic="true" font_name="/ITC Stone Serif Std Bold" />
Here's what I need to do
* Replace **italic="true"** with **italic="false** for every line that contains **ITC Stone Serif Std Bold**, regardless of whether it comes before OR after the **italic** part.
Can someone help with the regex for this? | 0 | [
2,
448,
29,
21,
7953,
1706,
30,
1717,
301,
694,
115,
54,
75,
301,
962,
800,
3726,
3726,
31,
57,
21,
7653,
16,
23504,
30,
63,
1560,
30,
361,
101,
48,
13,
1,
5433,
9978,
1,
7259,
3726,
7,
118,
242,
150,
1014,
523,
18,
354,
43,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Dealing with a string containing multiple character encodings.
===
I'm not exactly sure how to ask this question really, and I'm no where close to finding an answer, so I hope someone can help me.
I'm writing a Python app that connects to a remote host and receives back byte data, which I unpack using Python's built-in struct module. My problem is with the strings, as they include multiple character encodings. Here is an example of such a string:
"^LThis is an example ^Gstring with multiple ^Jcharacter encodings"
Where the different encoding starts and ends is marked using special escape chars:
- ^L - Latin1
- ^E - Central Europe
- ^T - Turkish
- ^B - Baltic
- ^J - Japanese
- ^C - Cyrillic
- ^G - Greek
And so on... I need a way to convert this sort of string into Unicode, but I'm really not sure how to do it. I've read up on Python's codecs and string.encode/decode, but I'm none the wiser really. I should mention as well, that I have no control over how the strings are outputted by the host.
I hope someone can help me with how to get started on this. | 0 | [
2,
5746,
29,
21,
3724,
3503,
1886,
925,
19608,
18,
9,
800,
3726,
3726,
31,
22,
79,
52,
1890,
562,
184,
20,
1349,
48,
1301,
510,
15,
17,
31,
22,
79,
90,
113,
543,
20,
3007,
40,
1623,
15,
86,
31,
1376,
737,
92,
448,
55,
9,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Beanstalk like Functionality
===
I'm finally getting my team to embrace source code management now that we're working on projects where more than one dev is touching the same codebase, and I setup a free/trial account on Beanstalk for hosted Subversion so people could get a taste of how it works.
That said, we've discussed a somewhat ambitious plan to put a lot of needed/wanted functionality into a single server we can run ourselves, and while I think that's great, we're still working without SCM as those plans slowly form.
In the interim, I'd like to setup a temporary SVN server, but was wondering if there are any F/OSS packages that we could setup that would provide Beanstalk like functionality (i.e. the nice web interface/management setup). I'm not overly concerned with the core-language of the package unless I'd need to hack on the code for the system itself, in which case I'm reasonably comfortable with PHP, Perl, and .NET, though I could probably pickup (an)other language(s) as needed. That said, I'd like to steer clear of .NET or any other technology that would necessitate a Windows license. | 0 | [
2,
14685,
9718,
101,
18548,
800,
3726,
3726,
31,
22,
79,
722,
1017,
51,
173,
20,
9305,
1267,
1797,
1097,
130,
30,
95,
22,
99,
638,
27,
2314,
113,
91,
119,
53,
9664,
25,
6652,
14,
205,
1797,
8436,
15,
17,
31,
18161,
21,
551,
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... |
Is it possible to see more than 65536 rows in Excel 2007?
===
I have an excel file which has more than 65536 rows. However, I can see only first 65536 of them. Is it possible to see all of them in Excel 2007? | 0 | [
2,
25,
32,
938,
20,
196,
91,
119,
2074,
264,
3775,
11295,
19,
20700,
624,
60,
800,
3726,
3726,
31,
57,
40,
20700,
3893,
56,
63,
91,
119,
2074,
264,
3775,
11295,
9,
207,
15,
31,
92,
196,
104,
64,
2074,
264,
3775,
16,
105,
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,
0,
0,
0,
0,
0... |
When is JavaScript's eval() not evil?
===
I'm writing some JavaScript to parse user-entered functions (for spreadsheet-like functionality). Having parsed the formula I _could_ convert it into JavaScript and run <code>eval()</code> on it to yield the result. However, I've always shied away from using <code>eval()</code> if I can avoid it because it's evil (and, rightly or wrongly, I've always thought it is even more evil in JavaScript because the code to be evaluated might be changed by the user).
Obviously one has to use <code>eval()</code> to parse JSON (I presume that JS libraries use <code>eval()</code> for this somewhere, even if they run the JSON through a regex check first), but when else (in your opinion) it is OK to use <code>eval()</code>? | 0 | [
2,
76,
25,
8247,
8741,
22,
18,
13,
62,
3377,
5,
6,
52,
3215,
60,
800,
3726,
3726,
31,
22,
79,
1174,
109,
8247,
8741,
20,
2017,
870,
4155,
8,
23753,
3719,
13,
5,
1106,
1789,
17627,
8,
1403,
18548,
6,
9,
452,
2017,
18,
69,
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... |
Transferring files between web applications running in the same Tomcat Instance
===
I have two web applications running in the same Tomcat Instance. In one of these applications the user will have the ability to upload files such as images and pdf files. I would like the uploaded files to be available to the second application.
Is there a best practice for such a scenario? Or just a pointer to a technology would be fine.
I considered using web services but wondered if it was overkill.
Thanks
Vincent | 0 | [
2,
15798,
6488,
128,
2741,
3767,
946,
19,
14,
205,
2067,
5782,
4851,
800,
3726,
3726,
31,
57,
81,
2741,
3767,
946,
19,
14,
205,
2067,
5782,
4851,
9,
19,
53,
16,
158,
3767,
14,
4155,
129,
57,
14,
2165,
20,
71,
8294,
6488,
145,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to connect to host machine from within Virtual PC image
===
I am putting together a SVN demonstration using a WinXP Virtual PC image, and am unable to see my host machine from within the VPC guest OS.
This demo will be performed while disconnected from our LAN, so I installed the Microsoft Loopback adapter on my laptop. In the TCP/IP settings I manually set the IP address to 192.168.3.1 to avoid conflicts with our internal network. In the VPC image settings I set the Network Type to Microsoft Loopback Adapter and set the IP address to 192.168.3.2.
I cannot ping my host machine from the guest OS and vice versa. I've followed through several different how-to pages on this subject but still cannot determine why this isn't working. What am I missing here? | 0 | [
2,
184,
20,
6379,
20,
2015,
1940,
37,
363,
6599,
5168,
1961,
800,
3726,
3726,
31,
589,
3873,
429,
21,
13,
18,
16578,
10613,
568,
21,
628,
396,
306,
6599,
5168,
1961,
15,
17,
589,
2343,
20,
196,
51,
2015,
1940,
37,
363,
14,
566,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Access function in component directly
===
I'm building my first flex app and am currently bussy splitting it up in multiple components to make it maintainable.
I have a screen which holds a list that is displayed and filled after a succesfull login attempt:
Part of the main app:
<mx:ViewStack id="vsAdmin" height="100%" width="100%">
<mx:TabNavigator id="adminTabs" width="100%" height="100%" historyManagementEnabled="false">
<myComp:compBeheerdersAdmin id="beheerdersViewstackA"/>
</mx:TabNavigator>
</mx:ViewStack>
In the component compBeheerdersAdmin there is a function requestBeheerdersList() that gets the data from the server and Binds it to the list through a handler.
After login the following code from the main app:
mainViewstack.selectedChild = vsAdmin;
//beheerdersViewstackA.createComponentsFromDescriptors();
beheerdersViewstackA.requestBeheerdersList();
The function requestBeheerdersList() does nothing (is not reached, i put a alert as first statement in the function but that is not displayed) when i login after a fresh load of the swf, but when i logout and login again, then the function is reached and the alert is displayed and the list is filled with the data from the server.
Any ideas?
| 0 | [
2,
1381,
1990,
19,
5912,
1703,
800,
3726,
3726,
31,
22,
79,
353,
51,
64,
14409,
4865,
17,
589,
871,
1683,
4980,
17282,
32,
71,
19,
1886,
5090,
20,
233,
32,
4027,
579,
9,
31,
57,
21,
2324,
56,
2763,
21,
968,
30,
25,
6115,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Extracting Source Code from an MS Access DB
===
I have an Access DB that I would like to extract the source code from so I can put it into Source control.
I have tried to extract the data using the Primary Interop Assemblies(PIA), but I am getting issues as it is not picking up all of the modules and forms.
There are 140 Forms and Modules in the code(Don't ask, it's a legacy system I have inherited) but the PIA code is only picking up 91 of them.
Here is the code I am using.
using System;
using Microsoft.Office.Interop.Access;
namespace GetAccesSourceFiles
{
class Program
{
static void Main(string[] args)
{
ApplicationClass appClass = new ApplicationClass();
try
{
appClass.OpenCurrentDatabase("C:\\svn\\projects\\db.mdb",false,"");
Console.WriteLine(appClass.Version);
Console.WriteLine(appClass.Modules.Count.ToString());
Console.WriteLine(appClass.Modules.Parent.ToString());
int NumOfLines = 0;
for (int i = 0; i < appClass.Modules.Count; i++)
{
Console.WriteLine(appClass.Modules[i].Name + " : " + appClass.Modules[i].CountOfLines);
NumOfLines += appClass.Modules[i].CountOfLines;
}
Console.WriteLine("Number of Lines : " + NumOfLines);
Console.ReadKey();
}
catch(Exception ex)
{
Console.WriteLine(ex.Message + "\r\n" +ex.StackTrace);
}
finally
{
appClass.CloseCurrentDatabase();
appClass.Quit(AcQuitOption.acQuitSaveNone);
}
}
}
}
Any suggestions on what that code might be missing? or on a product/tool out there that will do this for me?
| 0 | [
2,
10962,
68,
1267,
1797,
37,
40,
4235,
1381,
13,
9007,
800,
3726,
3726,
31,
57,
40,
1381,
13,
9007,
30,
31,
83,
101,
20,
10962,
14,
1267,
1797,
37,
86,
31,
92,
442,
32,
77,
1267,
569,
9,
31,
57,
794,
20,
10962,
14,
1054,
56... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Code Security Review Tool
===
I am looking for a utility that can be used against .NET assemblies to validate code against best practices, and most importantly can review the code for Security, Injection, and Cross Site Scripting vulnerabilities. I know that it isn't an exact science, but I'm looking for anyones experience/recommendations on the best way to a solution that will at least set a baseline standard. I know that nothing beats doing an individual review, but I'm looking at the high level.
I have been doing some research on [Fortify][1], and so far it is looking like a good tool, from what I can tell it provides a very detailed response. I know that FXCop is out there as well, but I don't know if it goes in deep enough.
[1]: http://www.fortify.com/products/detect/in_development.jsp | 0 | [
2,
13,
9,
2328,
1797,
1221,
1487,
5607,
800,
3726,
3726,
31,
589,
699,
26,
21,
10082,
30,
92,
44,
147,
149,
13,
9,
2328,
21066,
20,
7394,
1373,
1797,
149,
246,
5242,
15,
17,
127,
16922,
92,
1487,
14,
1797,
26,
1221,
15,
13646,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 wrong when you get an "Unrecognized configuration section runtime" configuration exception.
===
In particular from this web.config:
<configuration>
<configSections>
<section name="RStrace" type="Microsoft.ReportingServices.Diagnostics.RSTraceSectionHandler,Microsoft.ReportingServices.Diagnostics" />
</configSections>
<system.diagnostics>
<switches>
<add name="DefaultTraceSwitch" value="3" />
</switches>
</system.diagnostics>
<RStrace>
<add name="FileName" value="ReportServerService_" />
<add name="FileSizeLimitMb" value="32" />
<add name="KeepFilesForDays" value="14" />
<add name="Prefix" value="appdomain, tid, time" />
<add name="TraceListeners" value="file" />
<add name="TraceFileMode" value="unique" />
<add name="Components" value="all:3" />
</RStrace>
<runtime>
<alwaysFlowImpersonationPolicy enabled="true"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.ReportingServices.Interfaces"
publicKeyToken="89845dcd8080cc91"
culture="neutral" />
<bindingRedirect oldVersion="8.0.242.0"
newVersion="10.0.0.0"/>
<bindingRedirect oldVersion="9.0.242.0"
newVersion="10.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
<gcServer enabled="true" />
</runtime>
</configuration>
| 0 | [
2,
98,
25,
1389,
76,
42,
164,
40,
13,
7,
1020,
99,
13974,
103,
1333,
8091,
1050,
485,
891,
7,
8091,
5391,
9,
800,
3726,
3726,
19,
1498,
37,
48,
2741,
9,
14093,
2816,
45,
13,
1,
1126,
13549,
857,
1,
13,
1,
14093,
2816,
10579,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get rid of security exception?
===
I start a .Net server side program on my local workstation, but soon it throws a security exception. I searched the web for answers, but no quick fix was found / worked. I just want to run my program. How do I get rid of the exception? I fully trust the program, because its mine. | 0 | [
2,
184,
20,
164,
6681,
16,
1221,
5391,
60,
800,
3726,
3726,
31,
799,
21,
13,
9,
2328,
8128,
270,
625,
27,
51,
375,
170,
10839,
15,
47,
651,
32,
13566,
21,
1221,
5391,
9,
31,
9036,
14,
2741,
26,
6709,
15,
47,
90,
2231,
6098,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 any way to determine the size of a C++ array programmatically? And if not, why?
===
This question was inspired by a similar question: <a href="http://stackoverflow.com/questions/197675/how-does-delete-know-the-size-of-the-operand-array">How does delete[] “know” the size of the operand array?</a>
My question is a little different: **Is there any way to determine the size of a C++ array programmatically? And if not, why?** Every function I've seen that takes an array also requires an integer parameter to give it the size. But as the linked question pointed out, `delete[]` must know the size of the memory to be deallocated.
Consider this C++ code:
int* arr = new int[256];
printf("Size of arr: %d\n", sizeof(arr));
This prints "`Size of arr: 4`", which is just the size of the pointer. It would be nice to have some function which prints 256, but I don't think one exists in C++. (Again, part of the question is why it doesn't exist.)
**Clarification**: I know that if I declared the array on the stack instead of the heap (i.e. "`int arr[256];`") that the `sizeof` operator would return 256. | 0 | [
2,
25,
80,
186,
161,
20,
3746,
14,
1072,
16,
21,
272,
20512,
7718,
625,
6732,
1326,
60,
17,
100,
52,
15,
483,
60,
800,
3726,
3726,
48,
1301,
23,
3054,
34,
21,
835,
1301,
45,
13,
1,
58,
746,
14057,
3726,
7,
21127,
6903,
25325,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Scope problem - Controling a movieclip inside a button with actionscript
===
I'm trying to show/hide a movieclip (or graphic) symbol that is on a layer of a button symbol using actionscript 2. Here's what I tried
in the actions for the button:
<pre><code>on (release) {
this.button_name.movieclip_name._alpha = 0;
trace(this.button_name.movieclip_name);
}
</code></pre>
and the trace returns ***undefined***... so I think I've got a problem understanding how to address the child element. However I am not a flash programmer... just hacking on it at the moment for a side project, so I probably just don't understand how it works.
Thanks, Jim :) | 0 | [
2,
9914,
1448,
13,
8,
569,
68,
21,
1308,
150,
6013,
572,
21,
5167,
29,
1028,
8741,
800,
3726,
3726,
31,
22,
79,
749,
20,
298,
118,
19522,
21,
1308,
150,
6013,
13,
5,
248,
8479,
6,
4678,
30,
25,
27,
21,
5385,
16,
21,
5167,
46... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
subclipse alternative
===
I've been using Subclipse (an SVN plugin for Eclipse), for quite a while, but have become increasingly unhappy with it. I notice that Tortoise SVN is available as an Eclipse plugin and am considering using that instead within Eclipse (I already use it when accessing SVN outside Eclipse).
Before I make the switch, does anyone have any experience with using the Tortoise SVN Eclipse plugin, or are there any other Eclipse SVN plugins (other than Subclipse) that are recommended?
Cheers,
Don | 0 | [
2,
972,
150,
6013,
870,
2676,
800,
3726,
3726,
31,
22,
195,
74,
568,
972,
150,
6013,
870,
13,
5,
210,
13,
18,
16578,
10922,
108,
26,
11652,
6,
15,
26,
1450,
21,
133,
15,
47,
57,
533,
5054,
14325,
29,
32,
9,
31,
3551,
30,
256... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In WPF, has anybody animated a Grid?
===
I have 2 columns in a Grid. When I click a button, I want the first column to animate to the left from it's current position to 0. So, in effect, it collapses and I'm left with just viewing a single column.
| 0 | [
2,
19,
619,
7721,
15,
63,
11181,
5784,
21,
7354,
60,
800,
3726,
3726,
31,
57,
172,
7498,
19,
21,
7354,
9,
76,
31,
10840,
21,
5167,
15,
31,
259,
14,
64,
4698,
20,
14487,
591,
20,
14,
225,
37,
32,
22,
18,
866,
649,
20,
713,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Possible to export FireFox extensions and settings?
===
Want my FireFox at work to be in sync with my FireFox at my home. Is there a way to simply export all extensions and settings? | 0 | [
2,
938,
20,
7487,
535,
18219,
17529,
17,
12410,
60,
800,
3726,
3726,
259,
51,
535,
18219,
35,
170,
20,
44,
19,
6063,
150,
29,
51,
535,
18219,
35,
51,
213,
9,
25,
80,
21,
161,
20,
1659,
7487,
65,
17529,
17,
12410,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to best write an RSpec custom matcher to test access control in a Rails app
===
OK, so instead of writing a whole bunch of access control specs, and duplicating them across many of my spec files, I'm looking to create a custom matcher. So instead of this:
describe "access control" do
it "should prevent access by non-logged-in users"
it "should prevent access by normal users"
it "should prevent access by editor users"
it "should prevent access by admin users"
it "should allow access by super admin users"
end
I want do something like this:
lambda do
get :index
end.should have_access_control(:allowed => [:super_admin], :disallowed => [:admin, :editor, :user])
Are there any examples or suggestions of how I can go about doing something like this? | 0 | [
2,
184,
20,
246,
2757,
40,
13,
1224,
12610,
5816,
730,
106,
20,
1289,
1381,
569,
19,
21,
2240,
18,
4865,
800,
3726,
3726,
5854,
15,
86,
700,
16,
1174,
21,
979,
7653,
16,
1381,
569,
12737,
18,
15,
17,
1052,
25971,
1203,
105,
464,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Getting Count from Grouped DataTable in VB via Linq
===
I'm running into a mental roadblock here and I'm hoping that I'm missing something obvious.
Anyway, assume I have a table that looks like this:
<pre>
ID LookupValue SortOrder
============================================
1 A 1000
2 B 2000
3 B 2000
4 C 3000
5 C 4000
</pre>
I'm trying to find, using Linq, places where the <code>LookupValue</code> is the same, but the sort order is different (the <code>ID</code> is a PK on my Database table and is irrelevant to this exercise).
I thought the easiest way would be to group by the <code>LookupValue</code> and the <code>SortOrder</code> and then find places where the <code>LookupValue</code> appears more than twice in the result.
Right now, my code looks like this:
Dim KeySortPairs = From d In MyDataTable _
Group By Key = d(LookupValue).ToString(), SortOrder = d(SortOrder).ToString() _
Into Group _
Select Key, SortOrder
For Each Entry In KeySortPairs.Where(Function(t) t.Key.Count() > 1)
''Multiple Sort Orders!!
Next
In this code, however, *everything* gets returned. Am I missing something, or shouldn't that count only give me the entries where the <code>Key</code> appears more than once? I assume I'm making a trivial mistake due to my low-level of comfort with VB.NET, but I can't figure it out -- I've tried moving the <code>Count()</code> into a <code>WHERE</code> clause on the Linq expression, but that gave me the same thing. | 0 | [
2,
1017,
2468,
37,
19511,
1054,
5924,
19,
13,
20468,
1197,
6294,
1251,
800,
3726,
3726,
31,
22,
79,
946,
77,
21,
3584,
383,
12048,
235,
17,
31,
22,
79,
3935,
30,
31,
22,
79,
2863,
301,
4674,
9,
2774,
15,
7158,
31,
57,
21,
859,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 uninstall a Windows service if the files does not exist anymore?
===
How do I uninstall a .NET Windows Service, if the service files does not exists anymore?
I installed a .NET Windows Service using InstallUtil. I have now deleteded the files, but forgot to run InstallUtil /u first, but the service is still listed in the Services MMC.
So I guess I have to go into the registry? Or is there a official way? | 0 | [
2,
184,
107,
31,
367,
108,
21300,
21,
1936,
365,
100,
14,
6488,
630,
52,
3182,
3375,
60,
800,
3726,
3726,
184,
107,
31,
367,
108,
21300,
21,
13,
9,
2328,
1936,
365,
15,
100,
14,
365,
6488,
630,
52,
5636,
3375,
60,
31,
4066,
21... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a text wrap function in the java standard library?
===
The Python standard lib comes with the module `textwrap` which provides a simple text wrapping functionality. Is there something comparable in the java standard library? | 0 | [
2,
25,
80,
21,
1854,
8118,
1990,
19,
14,
8247,
1236,
1248,
60,
800,
3726,
3726,
14,
20059,
1236,
13,
8326,
1624,
29,
14,
12613,
13,
1,
11969,
499,
10817,
1,
56,
1927,
21,
1935,
1854,
13437,
18548,
9,
25,
80,
301,
14109,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Why an abstract class implementing an interface can miss the declaration/implementation of one of the interface's methods?
===
A curious thing happens in Java when you use an abstract class to implement an interface: some of the interface's methods can be completely missing (i.e. neither an abstract declaration or an actual implementation is present), but the compiler does not complain.
For example, given the interface:
public interface IAnything {
void m1();
void m2();
void m3();
}
the following abstract class gets merrily compiled without a warning or an error:
public abstract class AbstractThing implements IAnything {
public void m1() {}
public void m3() {}
}
Can you explain why? | 0 | [
2,
483,
40,
8502,
718,
17333,
40,
6573,
92,
1501,
14,
7098,
118,
8983,
413,
1130,
857,
16,
53,
16,
14,
6573,
22,
18,
3195,
60,
800,
3726,
3726,
21,
7686,
584,
5531,
19,
8247,
76,
42,
275,
40,
8502,
718,
20,
8713,
40,
6573,
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... |
How to detect applicaton activation
===
I need to perform some action when my application receives focus.
I've tried hooking both GotFocus- and Enter-events, but they only trigger when focus changes within my application.
Scenario is that my application detects some problem that must be resolved elsewhere, and I would like to do the check again when the user goes back to my application. | 0 | [
2,
184,
20,
9092,
4865,
16904,
444,
15519,
800,
3726,
3726,
31,
376,
20,
2985,
109,
1028,
76,
51,
3010,
8359,
1776,
9,
31,
22,
195,
794,
5559,
68,
156,
330,
23371,
8,
17,
2830,
8,
4943,
38,
18,
15,
47,
59,
104,
7286,
76,
1776,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 cygwin behind the corporate firewall
===
I'm in a Microsoft IE environment, but I want to use cygwin for a number of quick scripting tasks.
How would I configure it to use my windows proxy information? Ruby gems, ping, etc are all trying to make direct connections. How can I get them to respect the proxy information that IE and firefox use? | 0 | [
2,
184,
107,
31,
275,
6728,
263,
4181,
439,
14,
4871,
535,
6051,
800,
3726,
3726,
31,
22,
79,
19,
21,
7099,
13,
660,
2307,
15,
47,
31,
259,
20,
275,
6728,
263,
4181,
26,
21,
234,
16,
2231,
3884,
68,
8674,
9,
184,
83,
31,
106... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What Pros & Cons would there be to saving code more granularly at the file level?
===
What do you think of this kind of code-to-files-mapping?
MyClass.ext
MyClass:constructors.ext
MyClass:properties.ext
MyClass:method-one.ext
MyClass:method-two:int.ext
MyClass:method-two:string.ext
In a language which is more functional-oriented:
definitions.ext
function-one.ext
function-two:int.ext
function-two:string.ext
...
The point would be that when we are working on our project, we don't *see* this multiplicity of files.
We might either have some kind of daemon process that keeps a mirror `MyClass.ext` file perfectly in sync with this bunch of files, or our favorite code editor sees them all but shows them as their logical aggregation, or this kind of conversion only happens as a set of pre+post-commit hooks.
Now, since we wouldn't be interested in this idea's implementation if it's not a good idea, let's not bother ourselves with its implementation details (the how); let's suppose we've got the perfect implementation that would make this idea to *work well* for us.
**What I would like for us to find together is a good list of pros & cons to this *approach*, both at a high level and at more specific low levels of your concern.**
When we'll be done brainstorming this and seeing each answer's votes, we should see easily if this is a good idea or not. **Therefore, please write one pro/con per answer.**
When the answers + votes will get more stable, I'll add a summary of our answers here. | 0 | [
2,
98,
895,
18,
279,
11608,
83,
80,
44,
20,
7599,
1797,
91,
5659,
7451,
102,
35,
14,
3893,
662,
60,
800,
3726,
3726,
98,
107,
42,
277,
16,
48,
825,
16,
1797,
8,
262,
8,
16877,
18,
8,
540,
5574,
60,
51,
1898,
9,
1706,
38,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best way to clear the screen in Perl?
===
Ideally, something cross-platform. | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
1207,
14,
2324,
19,
416,
255,
60,
800,
3726,
3726,
5628,
102,
15,
301,
919,
8,
27035,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Django with custom, non-SQL service to store models?
===
Can I have a custom service providing the storage of the models I use in Django? That service would not be speaking SQL.
I would like to build a web frontend to a system that consists of multiple services linked with a network based IPC, one of which provides an interface to commonly used, persistent objects (stored in a database).
The real question here is not whether it's possible but whether it would make sense. For example, if I end up inheriting models.Model and overwriting every single method, skipping all the rest of django.db, I guess it wouldn't.
The object service might even end up being implemented in Django, too, but the communication between it and the web frontend would not be using SQL. | 0 | [
2,
3857,
14541,
29,
5816,
15,
538,
8,
18,
22402,
365,
20,
1718,
2761,
60,
800,
3726,
3726,
92,
31,
57,
21,
5816,
365,
2674,
14,
4326,
16,
14,
2761,
31,
275,
19,
3857,
14541,
60,
30,
365,
83,
52,
44,
3324,
4444,
255,
9,
31,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Difference between Data Access Layer and Model in MVC
===
I have implemented what I thought was a pretty decent representation of MVC in several web applications but since having joined crackoverflow, I'm finding that perhaps my initial definitions were a bit simplistic and thus I'd really like some clarification on the differences between the Data Access Layer and the Model or Domain Layer of a web application.
For context, I currently use data access objects that implement the CRUD functions for a single record in the table that the object represents as well as a get() function that returns an object that allows me to iterate through all of the objects that met the criteria for the get() function.
These data access objects are referenced directly from the controller scripts which contain my business logic.
If it matters, I'm working in PHP and MySQL but am interested in suggestions that might be coded in other languages. | 0 | [
2,
2841,
128,
1054,
1381,
5385,
17,
1061,
19,
307,
8990,
800,
3726,
3726,
31,
57,
6807,
98,
31,
289,
23,
21,
1772,
12238,
5442,
16,
307,
8990,
19,
238,
2741,
3767,
47,
179,
452,
670,
6058,
2549,
9990,
15,
31,
22,
79,
3007,
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... |
What is the best way to display one value and store another on .net comboboxes?
===
I can't seem to find an easy to use, .net native way to get Comboboxes on .net winforms to display one value and return another based on the selection without creating my own helper class, with the knowledge that winforms is going to display the ToString method on the object that you put in it.
This is how I'm doing it now, very generically. First, create the helper class.
Public Class ListItem
Public Value As Object
Public DisplayString As String
Public Sub New(ByVal newValue As Object, ByVal NewDisplayString As String)
Value = newValue
DisplayString = NewDisplayString
End Sub
Public Overrides Function ToString() As String
Return DisplayString
End Function End Class
then, to load the combobox from a collection or whatever.
For Each o as WhateverObject In CollectionIwantToaddItemsFrom
li = New ListItem(o.ValueToReturn, o.ValueToDisplay)
Me.ComboBox1.Items.Add(li)
Next
and finally, to use the object
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ComboBox1.SelectedIndexChanged
if me.combobox1.selecteditem is nothing then exit sub
Dim li As ListItem = me.ComboBox1.SelectedItem
Dim o as object = li.value
'do stuff with o.
end sub
I'm sure there is something I'm better to use in the framework that I'm over looking. What is it? | 0 | [
2,
98,
25,
14,
246,
161,
20,
3042,
53,
1923,
17,
1718,
226,
27,
13,
9,
2328,
22621,
5309,
160,
60,
800,
3726,
3726,
31,
92,
22,
38,
2260,
20,
477,
40,
2010,
20,
275,
15,
13,
9,
2328,
1275,
161,
20,
164,
22621,
5309,
160,
27,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Reduce flicker with GDI+ and C++
===
I'm using GDI+ in a C++/MFC application and I just can't seem to avoid flickering whenever the window is resized.
I have already tried these steps:
* returned TRUE on OnEraseBkGnd();
* returned NULL on OnCtlColor();
* used double buffering according to this code:
void vwView::OnDraw(CDC* pDC)
{
CRect rcClient;
GetClientRect(rcClient);
Bitmap bmp(rcClient.Width(), rcClient.Height());
Graphics graphics(&bmp);
graphics.DrawImage(m_image, rcClient.left, rcClient.top);
Graphics grph(pDC->m_hDC);
grph.DrawImage(&bmp, 0, 0);
}
Am I doing something wrong? Or is there another way to achieve this?
| 0 | [
2,
4136,
18709,
29,
489,
1115,
2430,
17,
272,
20512,
800,
3726,
3726,
31,
22,
79,
568,
489,
1115,
2430,
19,
21,
272,
20512,
118,
79,
7061,
3010,
17,
31,
114,
92,
22,
38,
2260,
20,
2658,
22399,
6634,
14,
1463,
25,
302,
6560,
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 can I determine for which platform an executable is compiled?
===
I have a need to work with Windows executables which are made for x86, x64, and IA64. I'd like to programmatically figure out the platform by examining the files themselves.
My target language is PowerShell but a C# example will do. Failing either of those, if you know the logic required that would be great. | 0 | [
2,
184,
92,
31,
3746,
26,
56,
2452,
40,
1396,
17194,
5924,
25,
9316,
60,
800,
3726,
3726,
31,
57,
21,
376,
20,
170,
29,
1936,
1396,
17194,
5924,
18,
56,
50,
117,
26,
993,
3274,
15,
993,
3470,
15,
17,
13,
549,
3470,
9,
31,
22... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Forms and no Cookies - elegant way to submit forms
===
Hoi!
I have a form I wish to submit, but I need to add the PHPSESSID, because some clients allow no cookies.
There are several javascript functions on my page which displays a list of users (search, sort, open details), the page is generated by PHP.
Now I am looking for an elegant way to have the PHPSESSID included in every submit of my form - this needs to be done on several pages, so I hope for an easy solution. Adding the PHPSESSID to the action or into a hidden field does not work properly.
Or is this problem located elsewhere? It could be the client is behind a too restrictive firewall or something. Any ideas (especially with solutions ;-) ) in that direction are also welcome!
Example code (extremely simplified):
<form name="userlist" method="POST" action="./myuserlist.php">
[...some formfields and stuff..]
</form>
<script>
//one example function, there are several on my page
function next_page()
{
//set some hidden field to get the next page
document.forms[0].submit();
}
</script>
Thanks in advance!
Bye,
Basty | 0 | [
2,
1997,
17,
90,
19396,
13,
8,
11614,
161,
20,
12298,
1997,
800,
3726,
3726,
2189,
49,
187,
31,
57,
21,
505,
31,
2536,
20,
12298,
15,
47,
31,
376,
20,
3547,
14,
13,
26120,
7202,
18,
1340,
15,
185,
109,
7421,
1655,
90,
19396,
9... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the difference between the onMouseUp/Down and onPress/Release events in Flash?
===
In Flash, there seem to be two sets of mouse click events:
* onMouseUp, onMouseDown
* onPress, onRelease
Is there any actual difference between these events? I can't tell from the documentation, and I haven't noticed anything in actual usage, but it seems odd to have two different sets of names for the same basic events. Am I missing something? Is there a difference between them? | 0 | [
2,
98,
25,
14,
2841,
128,
14,
27,
14002,
62,
576,
118,
2968,
17,
27,
5890,
118,
15202,
963,
19,
4433,
60,
800,
3726,
3726,
19,
4433,
15,
80,
2260,
20,
44,
81,
3415,
16,
7567,
10840,
963,
45,
1637,
27,
14002,
62,
576,
15,
27,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Executing multiple commands from a Windows cmd script
===
I'm trying to write a Windows cmd script to perform several tasks in series.
However, it always stops after the first command in the script.
The command it stops after is a maven build (not sure if that's relevant).
How do I make it carry on and run each task in turn please?
Installing any software or configuring the registry etc is completely out of the question - it has to work on a vanilla Windows XP installation I'm afraid.
Ideally I'd like the script to abort if any of the commands failed, but that's a "nice to have", not essential.
Thanks. | 0 | [
2,
25836,
1886,
14294,
37,
21,
1936,
2390,
43,
3884,
800,
3726,
3726,
31,
22,
79,
749,
20,
2757,
21,
1936,
2390,
43,
3884,
20,
2985,
238,
8674,
19,
231,
9,
207,
15,
32,
550,
6604,
75,
14,
64,
1202,
19,
14,
3884,
9,
14,
1202,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NCover not picking up web application dlls
===
Im using NCover 1.5.8, and its doesn't seem to produce and metrics relating to my website applications. The ncover output indicates the tests relating to the website have been run.
Is there anything special I need to do for website dlls? | 0 | [
2,
13,
103,
14069,
52,
7833,
71,
2741,
3010,
13,
43,
211,
18,
800,
3726,
3726,
797,
568,
13,
103,
14069,
137,
9,
264,
9,
457,
15,
17,
82,
1437,
22,
38,
2260,
20,
2213,
17,
11544,
18,
8456,
20,
51,
2271,
3767,
9,
14,
13,
103,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is a basic example of "low-level" multi-threading in C++ ?
===
I'm a kinda newbie developer with a few years under my belt. Recently I interviewed at a game company and was asked "have you done any multi-threading?" I told them about having a C# app with a few Threads... and then I said a bit about transactions and locking etc in Sql. The interviewer politely told me that this was too high-level and they are looking for someone with experience doing multi-threading in C++.
So what is a basic example of "low-level" multi-threading in C++ ? | 0 | [
2,
98,
25,
21,
2125,
823,
16,
13,
7,
4121,
8,
3906,
7,
1889,
8,
96,
22883,
19,
272,
20512,
13,
60,
800,
3726,
3726,
31,
22,
79,
21,
21096,
78,
5893,
10058,
29,
21,
310,
122,
131,
51,
3373,
9,
1989,
31,
11018,
35,
21,
250,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 causes javac to issue the "uses unchecked or unsafe operations" warning
===
For example:
<pre>
javac Foo.java
Note: Foo.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
</pre>
| 0 | [
2,
98,
4047,
8247,
150,
20,
1513,
14,
13,
7,
3699,
18,
367,
12542,
69,
54,
27094,
1311,
7,
3590,
800,
3726,
3726,
26,
823,
45,
13,
1,
3515,
1,
8247,
150,
4310,
111,
9,
1004,
1385,
1945,
45,
4310,
111,
9,
1004,
1385,
2027,
367,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Multiple Interchangeable Views (MFC/C++)
===
I have a main frame with a splitter. On the left I have my (imaginatively named) CAppView_Leftand on the right I have CAppView_Right_1and CAppView_Right_2. Through the following code I initialise the two primary views correctly:
if (!m_wndSplitter.CreateStatic(this, 1, 2))
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}
else
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CAppView_Left), CSize(300, 200), pContext))
{
TRACE0("Failed to create left pane\n");
return FALSE;
}
else
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CAppView_Right_1), CSize(375, 200), pContext))
{
TRACE0("Failed to create first right pane\n");
return FALSE;
}
...
What I would like to do is create a second view inside the right frame, however when I try to add this:
if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CAppView_Right_2), CSize(375, 200), pContext))
{
TRACE0("Failed to create first right pane\n");
return FALSE;
}
VS compiles but fails to run the application, raising an exception telling me I have already defined the view.
Can someone suggest how I do this? Also, how to change between the views from either a view or the document class?
Many thanks. | 0 | [
2,
1886,
6617,
579,
4146,
13,
5,
79,
7061,
118,
150,
20512,
6,
800,
3726,
3726,
31,
57,
21,
407,
3523,
29,
21,
2132,
815,
9,
27,
14,
225,
31,
57,
51,
13,
5,
49,
16218,
21525,
102,
377,
6,
21764,
4725,
1,
9742,
290,
27,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Need Advice on Implementing a Time-limited Trial
===
I'm developing a shareware desktop application. I'm to the point where I need to implement the trial-use/activation code. How do you approach something like this? I have my own ideas, but I want to see what the stackoverflow community thinks.
I'm developing with C++/Qt. The intended platform is Windows/Mac/Linux.
Thanks for your advice! | 0 | [
2,
376,
4978,
27,
17333,
21,
85,
8,
23012,
2178,
800,
3726,
3726,
31,
22,
79,
3561,
21,
1891,
5011,
17404,
3010,
9,
31,
22,
79,
20,
14,
454,
113,
31,
376,
20,
8713,
14,
2178,
8,
3699,
118,
19516,
857,
1797,
9,
184,
107,
42,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Need a distributed key-value lookup system
===
I need a way to do key-value lookups across (potentially) hundreds of GB of data. Ideally something based on a distributed hashtable, that works nicely with Java. It should be fault-tolerant, and open source.
The store should be persistent, but would ideally cache data in memory to speed things up.
Can anyone recommend anything? | 0 | [
2,
376,
21,
4387,
1246,
8,
15165,
361,
576,
329,
800,
3726,
3726,
31,
376,
21,
161,
20,
107,
1246,
8,
15165,
361,
15699,
464,
13,
5,
4296,
10107,
102,
6,
4541,
16,
14857,
16,
1054,
9,
5628,
102,
301,
432,
27,
21,
4387,
19170,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 function imagettftext() and unicode
===
I'm using the PHP function imagettftext() to convert text into a GIF image. The text I am converting has Unicode characters including Japanese. Everything works fine on my local machine (Ubuntu 7.10), but on my webhost server, the Japanese characters are mangled. What could be causing the difference? Everything should be encoded as UTF-8.
Broken Image on webhost server:
[http://www.ibeni.net/flashcards/imagetest.php][1]
Copy of correct image from my local machine:
[http://www.ibeni.net/flashcards/imagetest.php.gif][2]
Copy of phpinfo() from my local machine:
[http://www.ibeni.net/flashcards/phpinfo.php.html][3]
Copy of phpinfo() from my webhost server:
[http://example5.nfshost.com/phpinfo][4]
Code:
mb_language('uni');
mb_internal_encoding('UTF-8');
header('Content-type: image/gif');
$text = '日本語';
$font = './Cyberbit.ttf';
// Create the image
$im = imagecreatetruecolor(160, 160);
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
// Create some colors
imagefilledrectangle($im, 0, 0, 159, 159, $white);
// Add the text
imagettftext($im, 12, 0, 20, 20, $black, $font, $text);
imagegif($im);
imagedestroy($im);
[1]: http://www.ibeni.net/flashcards/imagetest.php
[2]: http://www.ibeni.net/flashcards/imagetest.php.gif
[3]: http://www.ibeni.net/flashcards/phpinfo.php.html
[4]: http://example5.nfshost.com/phpinfo
| 0 | [
2,
13,
26120,
1990,
1961,
38,
11720,
11969,
5,
6,
17,
28010,
800,
3726,
3726,
31,
22,
79,
568,
14,
13,
26120,
1990,
1961,
38,
11720,
11969,
5,
6,
20,
8406,
1854,
77,
21,
489,
821,
1961,
9,
14,
1854,
31,
589,
19583,
63,
28010,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tools to help with Internationalization of Strings in JSP
===
Are there any tools to assist with the internationalization of Strings within JSP files?
Most IDEs (for example, [NetBeans][1]) offer such a feature for Java code. However, in the case of NetBeans, no such feature exists for JSP files.
With [gettext][2], for example, there is are various tools out there that assist with extracting text Strings from code. Something similar for JSP would be great!
[1]: http://www.netbeans.org
[2]: http://www.gnu.org/software/gettext/ | 0 | [
2,
4672,
20,
448,
29,
294,
1829,
16,
7887,
19,
487,
3401,
800,
3726,
3726,
50,
80,
186,
4672,
20,
5404,
29,
14,
294,
1829,
16,
7887,
363,
487,
3401,
6488,
60,
127,
13,
8153,
13,
5,
1106,
823,
15,
636,
2328,
863,
5950,
500,
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... |
Get radio value inside iframe
===
How do I go about doing this with jQuery?
Basically the structure:
<form id="myForm">
<iframe>
<!-- Normal HTML headers omitted -->
<input type=radio name="myRadio" value=1>First
<input type=radio name="myRadio" value=2>Second
<input type=radio name="myRadio" value=3>Third
</iframe>
<input type=button value="Submit" />
</form>
I tried various examples from the net such as
$("input[@type=radio][@checked]");
But failed. Even with jQuery form plugin's [.fieldValue()][1] failed.
[1]: http://malsup.com/jquery/form/#fields | 0 | [
2,
164,
603,
1923,
572,
31,
8361,
800,
3726,
3726,
184,
107,
31,
162,
88,
845,
48,
29,
487,
8190,
93,
60,
11374,
14,
1411,
45,
13,
1,
4190,
4924,
3726,
7,
915,
4190,
7,
1,
13,
1,
49,
8361,
1,
13,
1,
187,
8,
8,
1826,
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... |
WPF over remote desktop for windows XP
===
I have heard that WPF primitives will not be supported by remote desktop on windows XP. The implication of this is that if you run a WPF application on a vista machine and display it on an XP machine (via remote desktop) the display will be sent as a compressed bitmap.
This issue is resolved in Vista-Vista comunication via DirectX 11 (?) but this will not be made available on XP. There is obviously a performance hit here, I would like to understand it before making any inroads into developing applications to WPF.
Some information on this topic can be found here:
http://blogs.msdn.com/tims/archive/2007/01/05/comparing-wpf-on-windows-vista-v-windows-xp.aspx
See comment from above link (quote):
----
To SpongeJim's question, this is done by the MIL (media integration layer), which is the underlying core of WPF that handles composition. On a Vista/Vista remote desktop connection, the MIL primitives are remoted and then reconstituted. On other combinations (e.g. 2003/XP), what gets remoted is bitmaps, which is obviously far more bandwidth-intensive. More depth on this topic can be found on Greg Schechter's blog, and in this entry in particular: http://blogs.msdn.com/greg_schechter/archive/2006/06/09/623566.aspx
----
Does anyone have any experience or more up todate information on this issue.
| 0 | [
2,
619,
7721,
84,
5388,
17404,
26,
1936,
23045,
800,
3726,
3726,
31,
57,
752,
30,
619,
7721,
11473,
18,
129,
52,
44,
1827,
34,
5388,
17404,
27,
1936,
23045,
9,
14,
26273,
16,
48,
25,
30,
100,
42,
485,
21,
619,
7721,
3010,
27,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
eclipse beakpoint: stop before leaving a Java method
===
Is there a way to tell the debugger to stop just before returning, on whichever statement exits from the method, be it return, exception, or fall out the bottom? I am inspired by the fact that the Java editor shows me all the places that my method *can* exit - it highlights them when you click on the return type of the method declaration, (Mark Occurrences enabled).
[eclipse 3.4] | 0 | [
2,
11652,
44,
1378,
3132,
45,
747,
115,
1107,
21,
8247,
2109,
800,
3726,
3726,
25,
80,
21,
161,
20,
494,
14,
121,
2345,
11356,
20,
747,
114,
115,
2485,
15,
27,
56,
5221,
3331,
4350,
18,
37,
14,
2109,
15,
44,
32,
788,
15,
5391,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Excel charts - setting series end dynamically
===
I've got a spreadsheet with plenty of graphs in it and one sheet with loads of data feeding those graphs.
I've plotted the data on each graph using
=Sheet1!$C5:$C$3000
This basically just plots the values in C5 to C3000 on a graph.
Regularly though I just want to look at a subset of the data i.e. I might just want to look at the first 1000 rows for example. Currently to do this I have to modify the formula in each of my graphs which takes time.
Would you know a way to simplify this? Ideally if I could just have a cell on single sheet that it reads in the row number from and plots all the graphs from C5 to C 'row number' would be best.
Any help would be much appreciated.
| 0 | [
2,
20700,
5158,
13,
8,
2697,
231,
241,
7782,
1326,
800,
3726,
3726,
31,
22,
195,
330,
21,
1789,
17627,
29,
7062,
16,
7210,
18,
19,
32,
17,
53,
6125,
29,
19069,
16,
1054,
8524,
273,
7210,
18,
9,
31,
22,
195,
28759,
14,
1054,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Wanted: acts_as_nested_set, AJAX drag and drop tutorial
===
Can anyone suggest a tutorial or sample code that implements a nested set (or similar ordered tree structure) with associated Javascript that facilitates drag and drop? I'm looking for both the display code (view) as well as the AJAX backend controller which writes the tree to the database on change.
I want it to represent a multi-layer menu where the ordering and depth of items is important. | 0 | [
2,
417,
45,
3167,
1,
472,
1,
2696,
1427,
1,
3554,
15,
20624,
5501,
17,
2804,
29724,
800,
3726,
3726,
92,
1276,
5601,
21,
29724,
54,
5717,
1797,
30,
8713,
18,
21,
5618,
69,
309,
13,
5,
248,
835,
1905,
1541,
1411,
6,
29,
1598,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Prevent js alert() from pausing timers
===
So I made some timers for a quiz. The thing is, I just realized when I put
javascript: alert("blah");
in the address, the popup alert box **pauses** my timer. Which is very unwanted in a quiz.
I don't think there is any way to stop this behaviour... but I'll ask anyway.
If there is not, mind suggesting what should I do? | 0 | [
2,
2501,
487,
18,
7863,
5,
6,
37,
23840,
85,
1224,
800,
3726,
3726,
86,
31,
117,
109,
85,
1224,
26,
21,
17667,
9,
14,
584,
25,
15,
31,
114,
1896,
76,
31,
442,
8247,
8741,
45,
7863,
5,
7,
220,
9396,
7,
6,
73,
19,
14,
3218,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 "delete [][]... multiDimensionalArray;" operator in C/C++ does not exist?
===
I was always wandering if there is operator for deleting multi dimensional arrays in the standard C/C++ languages.
If we have created a pointer to a single dimensional array
int *array = new int[size];
the delete looks like:
delete [] array;
That's great. But if we have two dimension array, we can not do
delete [][] twoDimenstionalArray;
Instead, we should loop and delete the items, like in [thi][1]s example.
[1]: http://eli.thegreenplace.net/2003/07/23/allocating-multi-dimensional-arrays-in-c/
Can anybody exaplain why? | 0 | [
2,
483,
13,
7,
24249,
591,
20767,
2558,
500,
9,
9,
9,
1889,
7865,
8576,
93,
73,
7,
6022,
19,
272,
118,
150,
20512,
630,
52,
3182,
60,
800,
3726,
3726,
31,
23,
550,
14209,
100,
80,
25,
6022,
26,
121,
1336,
68,
1889,
13,
7865,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 necessary to show an empty <div>?
===
I'd like to show a div that has a background-color with the height and width set to 100% but no content. Is it possible to do that without putting a &nbsp; inside? | 0 | [
2,
25,
2378,
20,
298,
40,
2424,
13,
1,
12916,
1,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
298,
21,
13,
12916,
30,
63,
21,
2395,
8,
11282,
29,
14,
2947,
17,
9456,
309,
20,
12849,
47,
90,
2331,
9,
25,
32,
938,
20,
107,
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,
0,
0,
0,
0... |
Code for checking write-permissions for directories in Win2K/XP
===
Greetings!
I am trying to check directory write-permissions from within a Windows MFC/ATL program using C++. My first guess is to use the C-standard _access function, e.g.:
if (_access("C:\mydir", 2) == -1)
// Directory is not writable.
But apparently on Windows 2000 and XP, _access can't determine directory permissions. (i.e. the Security tab in the Properties dialog when you right-click on a directory in Explorer) So, is there an elegant way to determine a directory's write-permissions in Windows 2000/XP using any of the Windows C++ libraries? If so, how?
Thanks
Evan | 0 | [
2,
1797,
26,
9886,
2757,
8,
1432,
12385,
18,
26,
559,
1596,
19,
628,
135,
197,
118,
396,
306,
800,
3726,
3726,
13769,
18,
187,
31,
589,
749,
20,
2631,
16755,
2757,
8,
1432,
12385,
18,
37,
363,
21,
1936,
307,
7061,
118,
721,
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... |
Confused over .Net Lists
===
Does anyone know a good resource to concisely explain the different types of list available in C# .Net and when there usage is appropriate?
For example, List, Hashtable, Dictionaries etc.
I'm never quite sure when I should be using what.
Thanks. | 0 | [
2,
4230,
84,
13,
9,
2328,
7227,
800,
3726,
3726,
630,
1276,
143,
21,
254,
6577,
20,
29455,
102,
3271,
14,
421,
2551,
16,
968,
904,
19,
272,
5910,
13,
9,
2328,
17,
76,
80,
7514,
25,
4593,
60,
26,
823,
15,
968,
15,
19170,
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... |
How to find out size of session in ASP.NET from web application?
===
How to find out size of session in ASP.NET from web application?
Thanks | 0 | [
2,
184,
20,
477,
70,
1072,
16,
3723,
19,
28,
306,
9,
2328,
37,
2741,
3010,
60,
800,
3726,
3726,
184,
20,
477,
70,
1072,
16,
3723,
19,
28,
306,
9,
2328,
37,
2741,
3010,
60,
3669,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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 list installed MSI from the command line ?
===
<p>
We recently switched our Windows software packages from RPM (cygwin) to MSI (wix). Having a native packaging is a much welcome change and we intend to stick with it. However, MSI feels overly complicated for what it does and doesn't seem to provide some basic abilities. But I'm probably mistaken.
</p>
<p>
Is there a way to list all installed MSI from the command line ?
</p>
| 0 | [
2,
184,
107,
31,
968,
4066,
4235,
49,
37,
14,
1202,
293,
13,
60,
800,
3726,
3726,
13,
1,
306,
1,
95,
1989,
6667,
318,
1936,
2306,
16875,
37,
12936,
13,
5,
2731,
263,
4181,
6,
20,
4235,
49,
13,
5,
3976,
396,
6,
9,
452,
21,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Creating test run configurations in VS 2008
===
I am working with an n-tiered architecture in Visual Studio 2008 (Developer Edition), and I have run into an issue.
We are running unit tests on every method of our services layer, and I am attempting to see the code coverage results, to ensure I'm hitting all the main paths through my methods.
When I attempt to view the results, I am informed that the test run did not have code coverage enabled. I tried editing the test run configuration through test -> edit test run configurations, only to discover that there were none found.
I have yet to discover how to create a test run configuration so that I can enable code coverage results.
How do I create the configuration? | 0 | [
2,
2936,
1289,
485,
8091,
18,
19,
4611,
570,
800,
3726,
3726,
31,
589,
638,
29,
40,
13,
103,
8,
5259,
69,
2607,
19,
3458,
1120,
570,
13,
5,
26051,
106,
1322,
6,
15,
17,
31,
57,
485,
77,
40,
1513,
9,
95,
50,
946,
1237,
4894,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a difference between commit and rollback in a transaction only having selects?
===
The in-house application framework we use at my company makes it necessary to put every SQL query into transactions, even though if I know that none of the commands will make changes in the database. At the end of the session, before closing the connection, I commit the transaction to close it properly. I wonder if there were any particular difference if I rolled it back, especially in terms of speed.
Please note that I am using Oracle, but I guess other databases have similar behaviour. Also, I can't do anything about the requirement to begin the transaction, that part of the codebase is out of my hands. | 0 | [
2,
25,
80,
21,
2841,
128,
9686,
17,
3001,
1958,
19,
21,
12799,
104,
452,
5407,
18,
60,
800,
3726,
3726,
14,
19,
8,
1682,
3010,
6596,
95,
275,
35,
51,
237,
1364,
32,
2378,
20,
442,
352,
4444,
255,
25597,
77,
13147,
15,
166,
362... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MSDN links in Visual Studio
===
I'm looking for a plugin or way to simply go from any namespace, type, method, property, etc in my code (.Net) to the MSDN page the covers it. Does anyone know of anything that will do that?
The "Go to Definition" option when you right click _almost_ covers this, but it doesn't quite work well enough - no support for namespaces and you often end up at an ugly metadata page. I'm still on vs2005, so if vs2008 is better at this I'd like to know about it. | 0 | [
2,
4235,
43,
103,
6271,
19,
3458,
1120,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
10922,
108,
54,
161,
20,
1659,
162,
37,
186,
204,
5582,
15,
1001,
15,
2109,
15,
1354,
15,
2722,
19,
51,
1797,
13,
5,
9,
2328,
6,
20,
14,
4235,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 install an MSI synchronously ?
===
To do an unattended installation of any MSI package, one can simply use the following command:
msiexec /qn /i package.msi
However, this triggers an asynchronous installation: if you happen to chain 2 dependent installations, you will have to wait somehow for the 1st installation to complete.
Is there a way to do this from the command line ?
| 0 | [
2,
184,
107,
31,
16146,
40,
4235,
49,
13,
16023,
13985,
13,
60,
800,
3726,
3726,
20,
107,
40,
367,
10303,
10726,
7758,
16,
186,
4235,
49,
6030,
15,
53,
92,
1659,
275,
14,
249,
1202,
45,
4235,
49,
1706,
3319,
13,
118,
1251,
103,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I replace the current Java process, like a unix-style exec?
===
I have a server written in Java that runs as a Windows service (thanks to Install4J). I want this service to be able to download the latest version of the JAR file it runs from, and start running the new code. The stitch is that I don't want the Windows service to fully exit.
Ideally, I would accomplish this by a unix-style exec() call to stop the current version and run the new one. How can I best accomplish this? | 0 | [
2,
184,
92,
31,
3934,
14,
866,
8247,
953,
15,
101,
21,
22540,
8,
4381,
1396,
3319,
60,
800,
3726,
3726,
31,
57,
21,
8128,
642,
19,
8247,
30,
1461,
28,
21,
1936,
365,
13,
5,
9107,
20,
16146,
300,
728,
6,
9,
31,
259,
48,
365,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 get the path of a Windows "special folder" for a specific user?
===
Inside a service, what is the best way to determine a special folder path (e.g., "My Documents") for a specific user? SHGetFolderPath allows you to pass in a token, so I am assuming there is some way to impersonate the user who's folder you are interested in.
Is there a way to do this based just on a username? If not, what is the minimum amount of information you need for the user account? | 0 | [
2,
184,
92,
31,
164,
14,
2013,
16,
21,
1936,
13,
7,
11118,
19294,
7,
26,
21,
1903,
4155,
60,
800,
3726,
3726,
572,
21,
365,
15,
98,
25,
14,
246,
161,
20,
3746,
21,
621,
19294,
2013,
13,
5,
62,
9,
263,
9,
15,
13,
7,
915,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's faster in VB? Removing an element from an array or inserting one?
===
Which is faster? someCondition has the same probability of being true as it has of being false.
Insertion:
arrayList = Array("apple", "pear","grape")
if someCondition then
' insert "banana" element
end if
Deletion:
arrayList = Array("apple","banana","pear","grape")
if not someCondition then
' remove "banana" element
end if
It looks like it depends purely on the implementation of Insert and Remove. So which, in general, is faster? I'm leaning toward insertion because I've read that one can use CopyMemory to insert without looping. Is this the same for deletion? Does anyone have an example? | 0 | [
2,
98,
22,
18,
4233,
19,
13,
20468,
60,
9096,
40,
4520,
37,
40,
7718,
54,
14692,
68,
53,
60,
800,
3726,
3726,
56,
25,
4233,
60,
109,
22141,
63,
14,
205,
10177,
16,
142,
1151,
28,
32,
63,
16,
142,
4997,
9,
24245,
45,
7718,
57... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Copy a table (inclding indexes) in postgres
===
I have a postgres table. I need to delete some data from it. I was going to create a temporary table, copy the data in, recreate the indexes and the delete the rows I need.
However it seems a bit silly to recreate the table and copy it again and recreate the indexes. Is there anyway in postgres to tell it "I want a complete separate copy of this table, including structure, data and indexes"? | 0 | [
2,
4344,
21,
859,
13,
5,
108,
5316,
3258,
4348,
160,
6,
19,
678,
6879,
18,
800,
3726,
3726,
31,
57,
21,
678,
6879,
18,
859,
9,
31,
376,
20,
27448,
109,
1054,
37,
32,
9,
31,
23,
228,
20,
1600,
21,
4700,
859,
15,
4344,
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... |
How do I assign weights to different columns in a full text search?
===
In my full text search query, I want to assign particular columns a higher weightage. Consider this query:
SELECT Key_Table.RANK, FT_Table.* FROM Restaurants AS FT_Table
INNER JOIN FREETEXTTABLE(Restaurants, *, 'chilly chicken') AS Key_Table
ON FT_Table.RestaurantID = Key_Table.[KEY]
ORDER BY Key_Table.RANK DESC
Now, I want the Name column to have a higher weightage in the results (Name, Keywords and Location are full-text indexed). Currently, if the result is found in any of the three columns, the ranks are not affected.
For example, I'd like a row with Name "Chilly Chicken" to have higher rank than one with Keywords "Chilly Chicken", but another name.
Thanks! | 0 | [
2,
184,
107,
31,
13952,
1763,
18,
20,
421,
7498,
19,
21,
503,
1854,
2122,
60,
800,
3726,
3726,
19,
51,
503,
1854,
2122,
25597,
15,
31,
259,
20,
13952,
1498,
7498,
21,
1184,
1763,
1303,
9,
3563,
48,
25597,
45,
5407,
1246,
1,
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... |
Why does the CSS min-width attribute not force a div to have the specified minimum width?
===
<html>
<head>
<style type="text/css">
div
{
border:1px solid #000;
min-width: 50%;
}
</style>
</head>
<body>
<div>This is some text. </div>
</body>
</html>
I believe the div should be 50 percent of the page, unless, for some reason, the text inside the div makes it larger. However, the border around the div stretches across the entire page width. This occurs in both IE and Firefox.
Suggestions? | 0 | [
2,
483,
630,
14,
272,
18,
18,
4232,
8,
3976,
43,
96,
35,
14755,
52,
558,
21,
13,
12916,
20,
57,
14,
9931,
5187,
9456,
60,
800,
3726,
3726,
13,
1,
15895,
1,
13,
1,
1743,
1,
13,
1,
4381,
1001,
3726,
7,
11969,
118,
6824,
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... |
xcopy /exclude issue
===
I am trying to run xcopy that copies files excluding .obj, etc.
What I am seeing is that Microsoft.Practices.ObjectBuilder.dll is not copied when my excludes.txt file contains .obj as an extension. When .obj is removed, I Microsoft.Practices.ObjectBuilder.dll is copied correctly. This does not happen to other dlls though.
Does anyone have any idea why this would happen?
Thanks!
Lenik | 0 | [
2,
993,
19625,
13,
118,
1706,
150,
17405,
1513,
800,
3726,
3726,
31,
589,
749,
20,
485,
993,
19625,
30,
3298,
6488,
13,
14938,
13,
9,
111,
11741,
15,
2722,
9,
98,
31,
589,
2078,
25,
30,
7099,
9,
7310,
14468,
5052,
9,
23793,
2090... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I tell the Table Name of an ActiveRecord class in c#?
===
I'm trying to verify if a schema matches the objects I'm initializing.
Is there a way to get the TableName of a class other than simply reflecting the class name?
I am using some class with explicit TableNames | 0 | [
2,
92,
31,
494,
14,
859,
204,
16,
40,
1348,
14953,
718,
19,
272,
5910,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
21012,
100,
21,
23874,
1717,
14,
3916,
31,
22,
79,
2104,
3335,
9,
25,
80,
21,
161,
20,
164,
14,
859,
7259,
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... |
How Do You Use jQuery to Simplify Your MVC Views?
===
I have found jQuery to be a great tool to simplify my MVC Views.
For example, instead of including complicated logic to add alternating styles to my tables I just do this...
$(document).ready(function() {
$("table.details tr:odd").addClass("detailsAlternatingRow");
$("table.details tr:even").addClass("detailsRow");
});
Do you know of any other good uses of jQuery to slim down the logic in my MVC View? | 0 | [
2,
184,
107,
42,
275,
487,
8190,
93,
20,
28257,
154,
307,
8990,
4146,
60,
800,
3726,
3726,
31,
57,
216,
487,
8190,
93,
20,
44,
21,
374,
5607,
20,
28257,
51,
307,
8990,
4146,
9,
26,
823,
15,
700,
16,
215,
8343,
7085,
20,
3547,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 specify the order of class members when formatting in Eclipse
===
In Eclipse IDE how do you customize the Java code style formatter to have it sort the class members with a specified order, for example to group all instance methods by visibility? | 0 | [
2,
184,
20,
19077,
14,
389,
16,
718,
443,
76,
2595,
1203,
19,
11652,
800,
3726,
3726,
19,
11652,
13,
3448,
184,
107,
42,
5816,
2952,
14,
8247,
1797,
1034,
26,
24700,
20,
57,
32,
2058,
14,
718,
443,
29,
21,
9931,
389,
15,
26,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Hosting Windows Workflow Designer
===
Does anyone have any experience hosting the Windows Workflow designer surface? I've seen a couple of rather difficult to follow examples on MSDN, but not much else - certainly nothing that offers an explanation into the process of hosting WF that is clear or easy to read... Are there better resources out there for hosting WF (or a workflow-like design surface - I'm not necessarily tied to WF) that actually **make sense**? | 0 | [
2,
10637,
1936,
170,
9990,
4742,
800,
3726,
3726,
630,
1276,
57,
186,
1496,
10637,
14,
1936,
170,
9990,
4742,
1490,
60,
31,
22,
195,
541,
21,
1335,
16,
864,
1956,
20,
1740,
3770,
27,
4235,
43,
103,
15,
47,
52,
212,
962,
13,
8,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JSF / CSS attribute conflicts
===
It's our first JSF app, and I'm in the middle of integrating our graphic designer's CSS into our facelets files. He tells me that he needs the <b>name</b> and <b>id</b> attributes of the input tags to be the same as the <b>for</b> attribute of the label tag.
His request:
<label for="username">User Name:</label>
<input id="username" type="text" name="username" />
However, when JSF code renders the HTML, I get extra identifiers in these attributes.
My facelet code:
<label for="username">User Name:</label>
<h:inputText value="#{login.username}" id="username" name="username" />
Final XHTML that's sent to the browser:
<label for="username">User Name:</label>
<input id="j_id2:username" type="text" name="j_id2:username" />
It makes sense to me from a JSF standpoint, but is there a way for me to meet our graphic designer's request and make everyone happy? Or is this a bad JSF oversight?
Thanks!
| 0 | [
2,
487,
18,
410,
13,
118,
272,
18,
18,
35,
14755,
10344,
800,
3726,
3726,
32,
22,
18,
318,
64,
487,
18,
410,
4865,
15,
17,
31,
22,
79,
19,
14,
772,
16,
24529,
318,
8479,
4742,
22,
18,
272,
18,
18,
77,
318,
276,
11045,
6488,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
When to use SQL Table Alias
===
I curious to know how people are using table alias. The other developers where I work always use table alias, and always use the alias of a, b, c, ect.
Here's an example
SELECT a.TripNum, b.SegmentNum, b.StopNum, b.ArrivalTime <br>
FROM Trip a, Segment b <BR>
WHERE a.TripNum = b.TripNum
I disagree with them, and think table alias should be use more sparingly. I think it should be used when including the same table twice in a query, or when the table name is very long and using a shorter name in the query will make the query easier to read. I also think the alias should be a good name instead of a letter. In the above example if I felt I needed to use 1 letter table alias I would use t for the Trip table and s for the segment table.
| 0 | [
2,
76,
20,
275,
4444,
255,
859,
15794,
800,
3726,
3726,
31,
7686,
20,
143,
184,
148,
50,
568,
859,
15794,
9,
14,
89,
10168,
113,
31,
170,
550,
275,
859,
15794,
15,
17,
550,
275,
14,
15794,
16,
21,
15,
334,
15,
272,
15,
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... |
SSI and XSL
===
I am building a menu and have it set up so that I use a stadard `<!--#include virtual = "myDoc.xml" -->` SSI tag to include my xml document. The xml document includes the xsl document with `<?xml-stylesheet type="text/xsl" href="myOtherDoc.xsl"?>`. For some reason the xsl document is not working. The xml is being displayed as a blob.
Thanks
Bill | 0 | [
2,
13,
18,
18,
49,
17,
993,
18,
255,
800,
3726,
3726,
31,
589,
353,
21,
11379,
17,
57,
32,
309,
71,
86,
30,
31,
275,
21,
13,
8536,
1514,
13,
1,
187,
8,
8,
5910,
22640,
6599,
800,
13,
7,
915,
13799,
9,
396,
8184,
7,
13,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to make a window have taskbar text but no title bar
===
How can I make my window not have a title bar but appear in the task bar with some descriptive text?
If you set the Form's .Text property then .net gives it a title bar, which I don't want.
this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ShowInTaskbar = true;
this.Text = "My title for task bar";
I've found a partial solution, to override CreateParams:
protected override System.Windows.Forms.CreateParams CreateParams
{
get
{
System.Windows.Forms.CreateParams cp = base.CreateParams;
cp.Style &= ~0x00C00000; // WS_CAPTION
return cp;
}
}
However this causes my window to be resized as if they have a title bar, ie it's taller than it should be. Is there any good solution to this?
| 0 | [
2,
184,
20,
233,
21,
1463,
57,
3005,
1850,
1854,
47,
90,
581,
748,
800,
3726,
3726,
184,
92,
31,
233,
51,
1463,
52,
57,
21,
581,
748,
47,
1893,
19,
14,
3005,
748,
29,
109,
25508,
1854,
60,
100,
42,
309,
14,
505,
22,
18,
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... |
Parsing "Event XML"
===
I'm looking to use Java to parse an ongoing stream of event drive XML generated by a remote device. Here's a simplified sample of two events:
<?xml version="1.0"?>
<Event> DeviceEventMsg
<Param1>SomeParmValue</Param1>
</Event>
<?xml version="1.0"?>
<Event> DeviceEventMsg
<Param1>SomeParmValue</Param1>
</Event>
It seems like SAX is more suited to this than DOM because it is an ongoing stream, though I'm not as familiar with Sax. Don't yell at me for the structure of the XML - I know it already and can't change it. And yes the device DOES send the xml directive before every event. My first problem is that the second xml processing instruction is croaking the SAX parser. Can anyone suggest a way to get around that? | 0 | [
2,
2017,
18,
68,
13,
7,
4943,
38,
23504,
7,
800,
3726,
3726,
31,
22,
79,
699,
20,
275,
8247,
20,
2017,
870,
40,
6748,
3766,
16,
807,
1493,
23504,
6756,
34,
21,
5388,
3646,
9,
235,
22,
18,
21,
13,
11268,
5717,
16,
81,
963,
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... |
checkstyle + suppression filters
===
I have a checkstyle suppression filter setup (e.g. ignore magic numbers in unit test code).
The suppression xml file resides in the same folder as the checkstyle xml file. However, where this file actually is varies:
on my windows dev box it is in d:\dev\shared\checkstyle\config
on the Linux CI server it will be in /root/repo/shared/checkstyle/config
on another developers box it could be anywhere (they check out their svn repo to).
The only "consistent" thing is that the suppression file is always in the same folder as the checkstyle xml file.
I cannot work out how to ensure that this file is always consistently picked up. Also I don't know why checkstyle does not support embedded suppression within the checkstyle xml file.
any help?
| 0 | [
2,
2631,
4381,
2754,
19594,
21062,
800,
3726,
3726,
31,
57,
21,
2631,
4381,
19594,
11945,
18161,
13,
5,
62,
9,
263,
9,
7174,
2154,
2116,
19,
1237,
1289,
1797,
6,
9,
14,
19594,
23504,
3893,
12631,
19,
14,
205,
19294,
28,
14,
2631,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Writing VBA in Excel 2007 for use in Excel 2003
===
Where I'm at the developers have been updated to Excel 2007, but most of the users haven't. I'm building a spreadsheet template (*.xlt) for a user that's gonna need some vba code included, and I'm wondering what issues I'm likely to run into building this in 2007 instead of 2003? I don't have access to a machine with Excel 2003 for testing, and I'm worried this particular project is headed for disaster. | 0 | [
2,
1174,
566,
969,
19,
20700,
624,
26,
275,
19,
20700,
973,
800,
3726,
3726,
113,
31,
22,
79,
35,
14,
10168,
57,
74,
6372,
20,
20700,
624,
15,
47,
127,
16,
14,
3878,
2933,
22,
38,
9,
31,
22,
79,
353,
21,
1789,
17627,
22894,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the bare minimum Cygwin install to have DDD running properly on XP?
===
I’m already using MinGW for gcc and gdb on a USB stick under Windows XP without admin rights. I’d like to have [ddd](http://www.gnu.org/software/ddd/) (the Data Display Debugger) as well but apparently this only works under the X Window System. It seems the simplest way I can get ddd working on XP is by running Cygwin. So what's the bare minimum of Cygwin I can install to get ddd up and running on XP?
| 0 | [
2,
98,
22,
18,
14,
4856,
5187,
6728,
263,
4181,
16146,
20,
57,
13,
43,
8096,
946,
7428,
27,
23045,
60,
800,
3726,
3726,
31,
1,
79,
614,
568,
12069,
499,
26,
489,
3384,
17,
489,
9007,
27,
21,
182,
220,
5258,
131,
1936,
23045,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.NET - ObjectDataSource: using multi-select ListBox as ControlParameter
===
I have a form that contains a GridView control which is databound to an ObjectDataSource Control. There are several TextBox controls that are already being used as ControlParameters for the ObjectDataSource. I also have a custom data object that the ObjectDataSource is associated with {TypeName="myDataClass"}. The values are passed from the ObjectDataSource to myDataClass.
Now I need to also use a multi-select ListBox as a ControlParameter. When I use the SelectedValue parameter of the ListBox, the ObjectDataSource is only seeing the first selected item in the list.
Here's the question: How can I get all the multi-select ListBox values passed into my custom object "myDataClass" instead of just the first one selected? Hence the ["multi-select"]
Thanks for any help!
| 0 | [
2,
28,
306,
9,
2328,
13,
8,
3095,
18768,
12097,
45,
568,
1889,
8,
18,
16964,
968,
5309,
28,
569,
6351,
7307,
800,
3726,
3726,
31,
57,
21,
505,
30,
1588,
21,
7354,
4725,
569,
56,
25,
1054,
7410,
20,
40,
3095,
18768,
12097,
569,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 good in-browser code editor?
===
We've all seen in-browser rich text editors, which allow you to edit colored/styled text in a WYSIWYG manner. But what about code editors, which automatically highlight code based on language rules as you type? Think Eclipse in a textarea (but without the refactoring support).
Do such things exist? I imagine scaling would be a problem - larger files would be difficult to edit efficiently. | 0 | [
2,
25,
80,
21,
254,
19,
8,
25699,
4104,
1797,
1835,
60,
800,
3726,
3726,
95,
22,
195,
65,
541,
19,
8,
25699,
4104,
2042,
1854,
12149,
15,
56,
1655,
42,
20,
9392,
10133,
118,
4381,
43,
1854,
19,
21,
5809,
18,
49,
7913,
263,
383... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
FCKeditor Plugin Issues
===
I am a complete beginner trying to develop for FCKeditor so please bear with me here. I have been tasked with developing a custom plugin that will allow users to browse a specific set of images that the user uploads. Essentially the user first attaches images, then uses the FCKeditor to insert those images.
So I have my plugin directory:
- lang
- fckplugin.js
- img.png (for the toolbar button)
I am looking for some help on strategy for the custom file browser (lets call it mybrowser.asp).
1) Should mybrowser.asp be in the plugin directory? It is dynamic and only applies to one specific area of the site.
2) How should I pass the querystring to mybrowser.asp?
3) Any other recommendations for developing FCKeditor plugins? Any sample plugins that might be helpful to me? | 0 | [
2,
2644,
197,
13401,
10922,
108,
1549,
800,
3726,
3726,
31,
589,
21,
1279,
26931,
749,
20,
2803,
26,
2644,
197,
13401,
86,
2247,
2746,
29,
55,
235,
9,
31,
57,
74,
14605,
29,
3561,
21,
5816,
10922,
108,
30,
129,
1655,
3878,
20,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SharpLibZip: Add file without path.
===
I'm using the following code, using the [SharpZipLib][1] library, to add files to a .zip file, but each file is being stored with its full path. I need to only store the file, in the 'root' of the .zip file.
string[] files = Directory.GetFiles(folderPath);
using (ZipFile zipFile = ZipFile.Create(zipFilePath))
{
zipFile.BeginUpdate();
foreach (string file in files)
{
zipFile.Add(file);
}
zipFile.CommitUpdate();
}
I can't find anything about an option for this in the supplied documentation. As this is a very popular library, I hope someone reading this may know something.
[1]: http://www.sharpziplib.com/ | 0 | [
2,
2641,
8326,
2553,
306,
45,
3547,
3893,
366,
2013,
9,
800,
3726,
3726,
31,
22,
79,
568,
14,
249,
1797,
15,
568,
14,
636,
23646,
2553,
306,
8326,
500,
2558,
165,
500,
1248,
15,
20,
3547,
6488,
20,
21,
13,
9,
2553,
306,
3893,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.NET cookie expiration time is always 1/1/0001 12:00 AM
===
I'm setting the cookie expiration using the following code:
----------------------------------------------------
// remove existing cookies.
request.Cookies.Clear();
response.Cookies.Clear();
// ... serialize and encrypt my data ...
// now set the cookie.
HttpCookie cookie = new HttpCookie(AuthCookieName, encrypted);
cookie.Expires = DateTime.Now.Add(TimeSpan.FromHours(CookieTimeOutHours));
cookie.HttpOnly = true;
response.Cookies.Add(cookie);
// redirect to different page
----------------------------------------------------
When I read the cookie timeout in the other page I'm getting 1/1/0001 12:00 AM. If someone can help me figure out the problem, I'll appreciate it.
thanks
Shankar | 0 | [
2,
28,
306,
9,
2328,
19980,
29529,
85,
25,
550,
13,
8197,
8197,
3993,
165,
137,
21319,
589,
800,
3726,
3726,
31,
22,
79,
2697,
14,
19980,
29529,
568,
14,
249,
1797,
45,
13,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
XUL - sidbar buttons that load new pages in main browser window.
===
I have created a xul file that makes a sidebar in my browser. I'm trying to put buttons in my sidebar that load different pages within the main browser window. I'm not sure how to access the main browser window and load a new url within it. I have here a simple button and script to show you what I have so far. Any light on this subject would be greatly appreciated! Thanks
<pre>
<script type="application/x-javascript">
function loadURL(url) {
window.content.open(url)
}
</script>
<button
id="identifier"
class="dialog"
label="VenWiki"
image="images/image.jpg"
oncommand="loadURL("http://www.yahoo.com);"/>
</pre> | 0 | [
2,
993,
1287,
13,
8,
7027,
1850,
12861,
30,
6305,
78,
4434,
19,
407,
16495,
1463,
9,
800,
3726,
3726,
31,
57,
679,
21,
993,
1287,
3893,
30,
1364,
21,
270,
1850,
19,
51,
16495,
9,
31,
22,
79,
749,
20,
442,
12861,
19,
51,
270,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Linq to SQL class lifespan
===
As far as I can understand, when I new up a *Linq to SQL class*, it is the equivalent of new'ing up a *SqlConnection object*.
Suppose I have an object with two methods: `Delete()` and `SubmitChanges()`. Would it be wise of me to new up the *Linq to SQL class* in each of the methods, or would a private variable holding the *Linq to SQL class* - new'ed up by the constructor - be the way to go?
What I'm trying to avoid is a time-out. | 0 | [
2,
6294,
1251,
20,
4444,
255,
718,
26892,
800,
3726,
3726,
28,
463,
28,
31,
92,
1369,
15,
76,
31,
78,
71,
21,
1637,
1226,
1251,
20,
4444,
255,
718,
2483,
15,
32,
25,
14,
4602,
16,
78,
22,
68,
71,
21,
1637,
18,
22402,
25996,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Redirect Trace output to Console
===
Let's say I'm working on a little batch-processing console app in VB.Net. I want to be able to structure the app like this:
Sub WorkerMethod()
''//Do some work
Trace.WriteLine("Work progress")
''//Do more work
Trace.WriteLine("Another progress update")
''//...
End Sub
Sub Main()
''//Do any setup, like confirm the user wants to continue or whatever
WorkerMethod()
End Sub
Note that I'm using <code>Trace</code> rather than <code>Console</code> for my output. This is because the worker method may be called from elsewhere, or even live in a different assembly, and I want to be able to attach different trace listeners to it. So how can I connect the console to the trace?
I can already do it by defining a simple class (shown below) and adding an instance to the Trace's listeners colelction, but I'm wondering if there's a more accepted or built in way to accomplish this:
Public Class ConsoleTrace
Inherits Diagnostics.TraceListener
Public Overloads Overrides Sub Write(ByVal message As String)
Console.Write(message)
End Sub
Public Overloads Overrides Sub WriteLine(ByVal message As String)
Console.WriteLine(message)
End Sub
End Class
| 0 | [
2,
302,
14706,
5565,
5196,
20,
8650,
800,
3726,
3726,
408,
22,
18,
395,
31,
22,
79,
638,
27,
21,
265,
13064,
8,
16835,
68,
8650,
4865,
19,
13,
20468,
9,
2328,
9,
31,
259,
20,
44,
777,
20,
1411,
14,
4865,
101,
48,
45,
972,
74... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Testing HTML/CSS/Javascript skills when hiring
===
When hiring a front-end developer, what specific skills and practices should you test for? What is a good metric for evaluating their skill in HTML, CSS and Javascript?
Obviously, table-less semantic HTML and pure CSS layout are probably the key skills. But what about specific techniques? Should he/she be able to effortlessly mock up a multi-column layout? CSS sprites? Equal height (or faux) columns? Does HTML tag choice matter (ie, relying too heavily on `<div>`)? Should they be able to explain (in words) how floats work?
And what about javascript skills? How important is framework experience (jQuery, Prototype, etc). today?
Obviously, the details of the position and the sites they'll be working on are the best indication of what skills are needed. But I'm wondering what specific skills people might consider to be deal-breakers (or makers) when creating tests for candidates.
Thanks. | 0 | [
2,
4431,
13,
15895,
118,
6824,
18,
118,
1004,
1385,
8741,
3207,
76,
16867,
800,
3726,
3726,
76,
16867,
21,
431,
8,
2451,
10058,
15,
98,
1903,
3207,
17,
5242,
378,
42,
1289,
26,
60,
98,
25,
21,
254,
11544,
26,
26764,
66,
6148,
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... |
Progressbar from Spring Context?
===
I would like to create a window with a progressbar which shows the current status of Spring's object instantiation. From Spring.Net's [documentation][1] it seems that `IObjectPostProcessors` is the right point to start and track whenever an Object has been instanciated. However in order to get "Percentage of instantiated classes" I need to ask `ObjectDefinitionCount` of spring's factory to get the number of configured object. However this does not work until the contextcreation has been finished (also [this problem][2] problem seems to be related).
If it's not possible to use Spring to get the start-up status, how do you display information during application start up to the user?
[1]: http://www.springframework.net/docs/1.1.2/reference/html/objects.html#objects-factory-customizing
[2]: http://stackoverflow.com/questions/179140/how-do-i-find-out-when-the-springnet-root-context-has-loaded | 0 | [
2,
3455,
1850,
37,
1573,
4141,
60,
800,
3726,
3726,
31,
83,
101,
20,
1600,
21,
1463,
29,
21,
3455,
1850,
56,
1285,
14,
866,
1782,
16,
1573,
22,
18,
3095,
6322,
49,
857,
9,
37,
1573,
9,
2328,
22,
18,
636,
28132,
857,
500,
2558,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I get the size of the Transaction Log in SQL 2005 programmatically?
===
We're working with a fixed transaction log size on our databases, and I'd like to put together an application to monitor the log sizes so we can see when things are getting too tight and we need to grow the fixed trn log.
Is there any TSQL command that I can run which will tell me the current size of the transaction log, and the fixed limit of the transaction log? | 0 | [
2,
184,
92,
31,
164,
14,
1072,
16,
14,
12799,
6738,
19,
4444,
255,
812,
625,
6732,
1326,
60,
800,
3726,
3726,
95,
22,
99,
638,
29,
21,
3535,
12799,
6738,
1072,
27,
318,
6018,
18,
15,
17,
31,
22,
43,
101,
20,
442,
429,
40,
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... |
What's the best way to create a single-file upload form using PHP?
===
I've found a few samples online but I'd like to get feedback from people who use PHP daily as to potential security or performance considerations and their solutions.
Note that I am only interested in uploading a single file at a time.
Ideally no browser plugin would be required (Flash/Java), although it would be interesting to know the benefits of using a plugin.
I would like to know both the best HTML form code and PHP processing code. | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
1600,
21,
345,
8,
16877,
71,
8294,
505,
568,
13,
26120,
60,
800,
3726,
3726,
31,
22,
195,
216,
21,
310,
7855,
2087,
47,
31,
22,
43,
101,
20,
164,
13111,
37,
148,
72,
275,
13,
26120,
1954,
28,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What it this called in computer science?
===
A lot of programming languages and frameworks do/allow/require something that I can't seem to find the name for, even though there probably is one in computer science. What they basically do is bind to a variable/object/class/function by name.
[Flex][1] example:
<mx:Button click="selectAll()" label="Select All"/>
[Mate][2] example:
<Injectors target="{QuotePanel}">
<PropertyInjector targetKey="price" source="{QuoteManager}" sourceKey="currentPrice" />
</Injectors>
Java example:
Class.forName("Foo")
There are many other examples. You get the idea. What troubles me is that there is virtually no way to verify this at compile-time, and not much the IDE can do to help in terms of code completion, navigation, and refactoring. But that's besides the point.
My question is, what is this called?
It's none of these: [dynamic binding][3], [name binding][4], [reflection][5]
[1]: http://www.adobe.com/products/flex/
[2]: http://mate.asfusion.com/
[3]: http://en.wikipedia.org/wiki/Dynamic_binding
[4]: http://en.wikipedia.org/wiki/Name_binding
[5]: http://en.wikipedia.org/wiki/Reflection_(computer_science) | 0 | [
2,
98,
32,
48,
227,
19,
1428,
762,
60,
800,
3726,
3726,
21,
865,
16,
3143,
2556,
17,
6596,
18,
107,
118,
17976,
118,
99,
3003,
99,
301,
30,
31,
92,
22,
38,
2260,
20,
477,
14,
204,
26,
15,
166,
362,
80,
910,
25,
53,
19,
142... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why is Microsoft.SharePoint.Search.dll copied in my project?
===
When working on a VS2005 project that involves referencing Microsoft.SharePoint.dll, building the project causes Microsoft.SharePoint.Search.dll to be copied to my bin folder. Why is this? Okay, maybe it's just a bug, but I want to know the mechanism. | 0 | [
2,
483,
25,
7099,
9,
16608,
3132,
9,
25136,
9,
43,
211,
18225,
19,
51,
669,
60,
800,
3726,
3726,
76,
638,
27,
21,
4611,
2835,
669,
30,
6569,
13,
29254,
7099,
9,
16608,
3132,
9,
43,
211,
15,
353,
14,
669,
4047,
7099,
9,
16608,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Silverlight Hosted in Winforms
===
I would like to host a silverlight control in winforms via a winforms browser, but for it to work I need some way for the forms to talk to the silverlight, and also the other way around. Would it be possible to somehow have the two interact with each other using JavaScript as a middleman? I.e., have the form speak to the browser's javascript, and have that speak to the silverlight control? Is there a better way? Or even a way at all? (other than compiling the code as silverlight and wpf) | 0 | [
2,
1172,
3130,
2812,
19,
628,
4190,
18,
800,
3726,
3726,
31,
83,
101,
20,
2015,
21,
1172,
3130,
569,
19,
628,
4190,
18,
1197,
21,
628,
4190,
18,
16495,
15,
47,
26,
32,
20,
170,
31,
376,
109,
161,
26,
14,
1997,
20,
930,
20,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get at the goodies in my Grails Config.groovy at runtime?
===
in Config.groovy I see this:
// set per-environment serverURL stem for creating absolute links
environments {
production {
grails.serverURL = "http://www.changeme.com"
}
}
what is the correct way to access that at runtime? | 0 | [
2,
184,
107,
31,
164,
35,
14,
254,
1596,
19,
51,
489,
7301,
18,
13,
14093,
2816,
9,
7944,
2026,
93,
35,
485,
891,
60,
800,
3726,
3726,
19,
13,
14093,
2816,
9,
7944,
2026,
93,
31,
196,
48,
45,
12894,
309,
416,
8,
28976,
8128,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you get a co-worker to use 3rd party code?
===
There is a guy I work with who has been tasked with getting a grid hooked up to a database. There has been some problem with the performance of the built-in grid and we are looking for alternative solutions.
I have suggested (and my manager has backed me up) that we try testing 3rd party grids such as Infragistics, XCeed, Telerik, or any of the dozens of other grid vendors out there.
My co-worker has started working on his own custom solution and used the following arguments as to why he hasn't 'gotten around' to downloading the trial versions:
- Need the source code so we can customize
- Confident that the 3rd party grids won't perform as well as a hand-rolled solution
- Doesn't think that 3rd party grids can connect to our data source
Now, I will admit that we are using SharePoint and ASP.NET, but I am looking for a platform agnostic approach to the problem.
How do you convince a developer to at least explore 3rd party controls before building your own? | 0 | [
2,
184,
107,
42,
164,
21,
326,
8,
22560,
20,
275,
203,
897,
346,
1797,
60,
800,
3726,
3726,
80,
25,
21,
1244,
31,
170,
29,
72,
63,
74,
14605,
29,
1017,
21,
7354,
14988,
71,
20,
21,
6018,
9,
80,
63,
74,
109,
1448,
29,
14,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.