unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Nant : change file permission
===
I have an ASP.NET application.
Basically the delivery process is this one :
- Nant builds the application and creates a zip file on the developer's computer with the application files without SVN folders and useless files. This file is delivered with a Nant script.
- The zip and nant files are copied to the client's computer
- the Nant script replaces the current website files with the file contained in the zip file.
My problem is that with this process I have an Unauthorized access error when I try to open the website.
It seems that the files need to have a permission set for the user "**IIS_WPG**".
I don't have the power to change IIS configuration so I have to manually change the permissions of each file. And each time I replace the files the permissions are removed and I need to set them again.
So I have two questions :
- Can I change files permissions with Nant ? How to do it ?
- Is it possible to avoid this problem ? (developers don't have this user on their computers)
| 0 | [
2,
13,
11028,
13,
45,
753,
3893,
5572,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
3010,
9,
11374,
14,
6010,
953,
25,
48,
53,
13,
45,
13,
8,
13,
11028,
1895,
18,
14,
3010,
17,
9695,
21,
12133,
3893,
27,
14,
10058,
22,
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... |
Splash page in Wordpress
===
I'm starting a Wordpress Blog that will have adult content on it, so I'll need a first-time-only splash page in Wordpress. The first-time-only issue, I can fix with a cookie (although I am aware that not everyone has cookies enabled)
What I could do is, create a script that loads another page if a cookie isn't present. Or I could make the splash page be my home page, and if the cookie is present, redirect.
But that's not really what I'm looking for. I don't want to hassle with pages. In stead I'm looking for a lightbox-y solution, that darkens the background (the home page) and shows a panel with the choice to stay or leave.
I haven't got a clue on how to start this. I am familiar with PHP, Javascript and CSS, so I'm not even asking for code. I just want a web programmer's view on this, and some help on how to create the splash-page the way I would like it. Or is it a stupid idea? | 0 | [
2,
13873,
2478,
19,
833,
5890,
800,
3726,
3726,
31,
22,
79,
1422,
21,
833,
5890,
8146,
30,
129,
57,
3035,
2331,
27,
32,
15,
86,
31,
22,
211,
376,
21,
64,
8,
891,
8,
4965,
13873,
2478,
19,
833,
5890,
9,
14,
64,
8,
891,
8,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Calling .NET methods from VB6 via COM visible DLL
===
I have created a .NET DLL which makes some methods COM visible.
One method is problematic. It looks like this:
bool Foo(byte[] a, ref byte[] b, string c, ref string d)
VB6 gives a compile error when I attempt to call the method:
> Function or interface marked as
> restricted, or the function uses an
> Automation type not supported in
> Visual Basic.
I read that array parameters must be passed by reference, so I altered the first parameter in the signature:
bool Foo(ref byte[] a, ref byte[] b, string c, ref string d)
VB6 still gives the same compile error.
How might I alter the signature to be compatible with VB6?
| 0 | [
2,
2555,
13,
9,
2328,
3195,
37,
13,
20468,
379,
1197,
13,
960,
4560,
13,
43,
211,
800,
3726,
3726,
31,
57,
679,
21,
13,
9,
2328,
13,
43,
211,
56,
1364,
109,
3195,
13,
960,
4560,
9,
53,
2109,
25,
21070,
9,
32,
1879,
101,
48,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Generic contraints on derived classes
===
**I have class A:**
public class ClassA< T >
**Class B derives from A:**
public class ClassB : ClassA< ClassB >
**Class C derives from class B:**
public class ClassC : ClassB
**Now I have a generic method with constraints**
public static T Method< T >() where T : ClassA< T >
OK, now I want to call:
ClassC c = Method< ClassC >();
but I get the compile error saying:
Type argument 'ClassC' does not inherit from or implement the constraint type 'ClassA< ClassC >'.
Yet, the compiler will allow:
ClassB b = Method< ClassB >();
My understanding is that this fails because ClassC inherits ClassA< ClassB > instead of ClassA< ClassC >
**My real question is, is it possible to create a class deriving from ClassB that can be used in some way with the generic method?**
This may seem like generics are overused and I would agree. I am trying to create business layer objects deriving from the subsonic data objects in a separate project.
Note: I have put the < T > with extra spaces otherwise they get stripped from the question. | 0 | [
2,
12733,
11805,
6391,
18,
27,
3981,
2684,
800,
3726,
3726,
13,
1409,
49,
57,
718,
21,
45,
1409,
317,
718,
718,
58,
1,
13,
38,
13,
1,
13,
1409,
1898,
334,
13049,
37,
21,
45,
1409,
317,
718,
718,
220,
13,
45,
718,
58,
1,
718,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Cannot import sqlite with Python 2.6
===
I'm running Python 2.6 on UNIX and when I run the interactive prompt (sqlite is supposed to be preinstalled) I get:
[root@idev htdocs]# python
Python 2.6 (r26:66714, Oct 23 2008, 16:25:34)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sqlite
>>> import sqlite
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sqlite
>>>
Can anyone help me resolve this? | 0 | [
2,
1967,
9010,
4444,
10601,
29,
20059,
172,
9,
379,
800,
3726,
3726,
31,
22,
79,
946,
20059,
172,
9,
379,
27,
22540,
17,
76,
31,
485,
14,
9194,
11443,
4417,
13,
5,
18,
1251,
10601,
25,
2293,
20,
44,
782,
108,
21300,
69,
6,
31,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I print the full value of a long string in gdb?
===
I want to print the full length of a C-string in GDB. By default it's being abbreviated, how do I force GDB to print the full length? | 0 | [
2,
184,
107,
31,
4793,
14,
503,
1923,
16,
21,
175,
3724,
19,
489,
9007,
60,
800,
3726,
3726,
31,
259,
20,
4793,
14,
503,
1476,
16,
21,
272,
8,
11130,
19,
489,
9007,
9,
34,
12838,
32,
22,
18,
142,
15902,
15,
184,
107,
31,
558... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
To Buy or To Build That is The Question
===
We've been speccing out a rather large app for inventory management and customer sales. The scope is pretty large and the cost of development is making the suits nervous. I've been contending that it'll be just as painful to buy an app and try to customize it or worse yet, change our business to fit the software's capabilities.
What are your experiences with this? How can you pitch that building the app in house is better than buying a more inflexable solution? | 2 | [
2,
20,
3034,
54,
20,
1895,
30,
25,
14,
1301,
800,
3726,
3726,
95,
22,
195,
74,
12737,
6302,
70,
21,
864,
370,
4865,
26,
13875,
1097,
17,
7705,
2598,
9,
14,
9914,
25,
1772,
370,
17,
14,
1516,
16,
522,
25,
544,
14,
12702,
4741,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 develop a shopping site, that others can use.
===
I'd like to develop an ecommerce site where I could allow others to sell items, things like pictures, videos, flash, etc. I want to be able to keep a percentage, and pay the rest back to the seller.
Is there anything available, DotNetNuke, etc. that would do this or help get this started. If not what's a good way to approach this with the goal to avoid upfront time and cost.
I'd like to think there would be some revenue that could be reinvested over time, so might grow into something that has some cost after a while. | 0 | [
2,
98,
25,
14,
246,
161,
20,
2803,
21,
4884,
689,
15,
30,
654,
92,
275,
9,
800,
3726,
3726,
31,
22,
43,
101,
20,
2803,
40,
13,
62,
26470,
689,
113,
31,
110,
1655,
654,
20,
3344,
3755,
15,
564,
101,
3104,
15,
6610,
15,
4433,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ELF file headers
===
A quick question about elf file headers, I can't seem to find anything useful on how to add/change fields in the elf header. I'd like to be able to change the magic numbers and to add a build date to the header, and probably a few other things.
As I understand it the linker creates the header information, but I don't see anything in the LD script that refers to it (though i'm new to ld scripts).
I'm using gcc and building for ARM.
thanks! | 0 | [
2,
15704,
3893,
157,
445,
800,
3726,
3726,
21,
2231,
1301,
88,
15704,
3893,
157,
445,
15,
31,
92,
22,
38,
2260,
20,
477,
602,
4811,
27,
184,
20,
3547,
118,
16229,
2861,
19,
14,
15704,
157,
106,
9,
31,
22,
43,
101,
20,
44,
777,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How much a tester should know about internal details of code?
===
How useful, if at all, is for the testers on a product team to know about the internal code details of a product. This does not mean they need to know every line of code but a good idea of how the code is structured, what is the object model, how the various modules are inter-linked, what are the inter-dependencies between various features etc.? This can argubaly help them in finding related issues or defects once they hit one. On the other side, this can potentially 'bias' their "user-centric" approach towards evaluating and certifying the product and can effect the testing results in the end.
I have not heard of any specific model for such interaction. (Lets assume a product that users, potentially non-technical consume, and not a framework or API that the testers are testing - in the latter case the testers may need to understand the code to test that because the user is another programmer). | 0 | [
2,
184,
212,
21,
1289,
106,
378,
143,
88,
3117,
3289,
16,
1797,
60,
800,
3726,
3726,
184,
4811,
15,
100,
35,
65,
15,
25,
26,
14,
1289,
445,
27,
21,
2374,
173,
20,
143,
88,
14,
3117,
1797,
3289,
16,
21,
2374,
9,
48,
630,
52,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get daily commit count and the number of modified paths from svn repository?
===
So what is the easiest way to accomplish this? | 0 | [
2,
184,
20,
164,
1954,
9686,
2468,
17,
14,
234,
16,
5372,
12074,
37,
13,
18,
16578,
24869,
60,
800,
3726,
3726,
86,
98,
25,
14,
27237,
161,
20,
14570,
48,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Progarmmer's Toolbox or The One and Only Language?
===
We've just had YAFLQ and it got me thinking.
What's the more popular approach?
Dedicating your life to "The One and Only True Language"?
Or just realising that they're all just different tools in your toolbox, and having a range of languages to select from, allows you to pick the best tool for the job at hand?
I guess this can be extended to architects as well? Not just seeing Unix or Linux or Windows as being "the one and only solution" but, if you are comfortable with them all, being able to select the best platform for the job.
Otherwise it's like a building architect who can only give you a brick house when you wanted something in wood. | 0 | [
2,
895,
2063,
11531,
22,
18,
5607,
5309,
54,
14,
53,
17,
104,
816,
60,
800,
3726,
3726,
95,
22,
195,
114,
41,
2167,
4372,
1251,
17,
32,
330,
55,
1440,
9,
98,
22,
18,
14,
91,
844,
2141,
60,
121,
28480,
154,
201,
20,
13,
7,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are good sites for free sounds that developers can use in applications?
===
So far I have found:
[http://www.soundsnap.com/][1]
[1]: http://www.soundsnap.com/ | 0 | [
2,
98,
50,
254,
3259,
26,
551,
2795,
30,
10168,
92,
275,
19,
3767,
60,
800,
3726,
3726,
86,
463,
31,
57,
216,
45,
636,
21127,
6903,
6483,
9,
8489,
18,
325,
306,
9,
960,
118,
500,
2558,
165,
500,
636,
165,
500,
45,
7775,
6903,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What's the neatest way to stop a Winforms window being moved around
===
We have a WinForms application which runs on a touch-screen on a bit of industrial equipment. For historical reasons which are not up for changing today, the displayed form has a normal Windows title bar.
We would like to stop people using the mouse (i.e. touchscreen) from moving the window by dragging the title bar. We don't care if there's some other way to move the window using the keyboard.
What's the most elegant way to achieve this? I can think of trying to subvert mouse messages if there's a mouse-down on the titlebar (though NC hit-testing doesn't at first glance seem completely obvious in Winforms), and I can think of responding to Move messages in some way which restores the window position.
But both of these seem clunky, and I have a feeling I am missing something elegant and obvious. | 0 | [
2,
98,
22,
18,
14,
15956,
1430,
161,
20,
747,
21,
628,
4190,
18,
1463,
142,
385,
140,
800,
3726,
3726,
95,
57,
21,
628,
4190,
18,
3010,
56,
1461,
27,
21,
1723,
8,
7187,
27,
21,
1142,
16,
2163,
2181,
9,
26,
1668,
2932,
56,
50... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Overriding Controls property of a panel in C#
===
I have to override Add method of "Controls" property of myControl that is extended from a Panel control of windows. For that i extended ControlCollection class into MyControlCollection where i overriden its Add method. Now i declared a Controls property of MyControlCollection type to hide panel's Controls property. When i am accessing this.Controls.Add(control), it refers to overriden Add method. But if i drags and drops a control on myControl the behaviour is of base type's Add method. Can any body suggest the cause and remedy for this problem? Thanks in advance. | 0 | [
2,
84,
5175,
68,
8671,
1354,
16,
21,
4113,
19,
272,
5910,
800,
3726,
3726,
31,
57,
20,
84,
11891,
3547,
2109,
16,
13,
7,
12898,
18,
7,
1354,
16,
51,
12898,
30,
25,
1984,
37,
21,
4113,
569,
16,
1936,
9,
26,
30,
31,
1984,
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... |
How do I enable a second monitor in C#
===
Is it possible to enable a second monitor and extend the Windows Desktop onto in C#. It needs to do the equivalent of turning on the checkbox in the image below?
![alt text][1]
[1]: http://i38.tinypic.com/27y8nt5.png | 0 | [
2,
184,
107,
31,
9240,
21,
153,
7626,
19,
272,
5910,
800,
3726,
3726,
25,
32,
938,
20,
9240,
21,
153,
7626,
17,
7206,
14,
1936,
17404,
1204,
19,
272,
5910,
9,
32,
2274,
20,
107,
14,
4602,
16,
2101,
27,
14,
2631,
5309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Hosting Git Repository in Windows
===
Is there currently a way to host a shared Git repository in Windows? I understand that you can configure the Git service in Linux with:
git daemon
Is there a native Windows option, short of sharing folders, to host a Git service?
| 0 | [
2,
10637,
13,
10404,
24869,
19,
1936,
800,
3726,
3726,
25,
80,
871,
21,
161,
20,
2015,
21,
2592,
13,
10404,
24869,
19,
1936,
60,
31,
1369,
30,
42,
92,
1065,
15951,
14,
13,
10404,
365,
19,
13024,
29,
45,
13,
10404,
13127,
25,
80,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it possible to use relative paths for SSIS packages dtsConfig files?
===
I am trying to make our SQL Server Integration Services packages as portable as possible and the one thing that is preventing that is that the path to the config is always and absolute path, which makes testing and deployment a headache. Are there any suggestions for making this more manageble?
Another issue is when another developer gets the package out of source control the path is specific to the developers machine. | 0 | [
2,
25,
32,
938,
20,
275,
4543,
12074,
26,
13,
18,
4557,
16875,
13,
43,
38,
18,
14093,
2816,
6488,
60,
800,
3726,
3726,
31,
589,
749,
20,
233,
318,
4444,
255,
8128,
8078,
687,
16875,
28,
13469,
28,
938,
17,
14,
53,
584,
30,
25,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which one is more likely to succeed: clojure or arc?
===
Which one of the following new lisp implementations is more likely to gain the momentum and more mainstream acceptance, arc by Paul Graham or clojure by Rich hickey?
They both launched at the same time, but seems there is more community interest in clojure so far, from both lisp and java folks. | 0 | [
2,
56,
53,
25,
91,
1720,
20,
7952,
45,
7383,
2142,
99,
54,
4686,
60,
800,
3726,
3726,
56,
53,
16,
14,
249,
78,
2093,
3401,
6123,
18,
25,
91,
1720,
20,
3288,
14,
12380,
17,
91,
7469,
10156,
15,
4686,
34,
758,
4497,
54,
7383,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SVN: How do I maintain my local config.blah file?
===
On the SVN server, there is a file called `config.conf`. I have a local version called the same thing (in the same place). **How can I make sure that my local config does not get overwritten, nor checked in?**
While I'm here, is the answer different for a directory?
I'm using Tortoise SVN, but command line answers are cool.
Thanks!
[Sorry if this basic question has been asked before... I looked but didn't find it.] | 0 | [
2,
13,
18,
16578,
45,
184,
107,
31,
4027,
51,
375,
13,
14093,
2816,
9,
220,
9396,
3893,
60,
800,
3726,
3726,
27,
14,
13,
18,
16578,
8128,
15,
80,
25,
21,
3893,
227,
13,
1,
14093,
2816,
9,
14093,
1,
9,
31,
57,
21,
375,
615,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 display a small embedded animated image with Flex?
===
I need to display a small (15x15 pixel) animation in a Flex app. I have it FLV format, but it could be converted to somthing else. I'd prefer to have the file embedded in the app (it's only 8k in size). I've seen posts about displaying animated GIFs using third-party code which would be OK, but is there a way to do this with the native Flex libs. I also realize that FLVs can be displayed in Video objects but only if they are external files.
Thanks! | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
3042,
21,
284,
12138,
5784,
1961,
29,
14409,
60,
800,
3726,
3726,
31,
376,
20,
3042,
21,
284,
13,
5,
1193,
396,
1193,
18146,
6,
6236,
19,
21,
14409,
4865,
9,
31,
57,
32,
398,
8916,
2595,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Monitor battery charge with Win32 API
===
I'm trying to write a small app that monitors how much power is left in a notebook battery and I'd like to know which Win32 function I could use to accomplish that. | 0 | [
2,
7626,
5044,
1906,
29,
628,
3125,
21,
2159,
800,
3726,
3726,
31,
22,
79,
749,
20,
2757,
21,
284,
4865,
30,
18521,
184,
212,
414,
25,
225,
19,
21,
14630,
5044,
17,
31,
22,
43,
101,
20,
143,
56,
628,
3125,
1990,
31,
110,
275,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Webcam usage in C#
===
I am making a program in C# to connect to a webcam and do some image manipulation with it.
I have a working application that uses win32 api (avicap32.dll) to connect to the webcam and send messages to it that sends it to the clipboard. The problem is that, while accesible from paint, reading it from the program results in null pointers.
This is the code I use to connect the webcam:
mCapHwnd = capCreateCaptureWindowA("WebCap", 0, 0, 0, 320, 240, 1024, 0);
SendMessage(mCapHwnd, WM_CAP_CONNECT, 0, 0);
SendMessage(mCapHwnd, WM_CAP_SET_PREVIEW, 0, 0);
And this is what I use to copy the image to the clipboard:
SendMessage(mCapHwnd, WM_CAP_GET_FRAME, 0, 0);
SendMessage(mCapHwnd, WM_CAP_COPY, 0, 0);
tempObj = Clipboard.GetDataObject();
tempImg = (System.Drawing.Bitmap)tempObj.GetData(System.Windows.Forms.DataFormats.Bitmap);
Theres some error checking which I have removed from the code to make it shorter.
Thanks in advance :) | 0 | [
2,
2741,
8760,
7514,
19,
272,
5910,
800,
3726,
3726,
31,
589,
544,
21,
625,
19,
272,
5910,
20,
6379,
20,
21,
2741,
8760,
17,
107,
109,
1961,
17561,
29,
32,
9,
31,
57,
21,
638,
3010,
30,
2027,
628,
3125,
21,
2159,
13,
5,
5271,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 open new browser window?
===
I know that most links should be left up to the end-user to decide how to open, but we can't deny that there are times you almost 'have to' force into a new window (for example to maintain data in a form on the current page).
What I'd like to know is what the consensus is on the 'best' way to open a link in a new browser window.
I know that `<a href="url" target="_blank">` is out. I also know that `<a href="#" onclick="window.open(url);">` isn't ideal for a variety of reasons. I've also tried to completely replace anchors with something like `<span onclick="window.open(url);">` and then style the SPAN to look like a link.
One solution I'm leaning towards is `<a href="url" rel="external">` and using JavaScript to set all targets to '_blank' on those anchors marked 'external'.
Are there any other ideas? What's better? I'm looking for the most XHTML-compliant and easiest way to do this. | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
368,
78,
16495,
1463,
60,
800,
3726,
3726,
31,
143,
30,
127,
6271,
378,
44,
225,
71,
20,
14,
241,
8,
16704,
20,
4073,
184,
20,
368,
15,
47,
95,
92,
22,
38,
9258,
30,
80,
50,
436,
42,
557,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 define default "TagPrefix" for custom controls
===
I have a number of custom controls that I am trying to enable designer support for. The signature looks something like the following:
[ToolboxData("<{0}:MyDropDownList runat=\"server\" CustomProp="123"></{0}:MyDropDownList>")]
public class MyDropDownList: DropDownList
{
... code here
}
This works fine, but when I drag a control onto the page from the toolbox, the TagPrefix that gets added is "cc1":
<%@ Register Assembly="DBMClientPortal.Controls" Namespace="DBMClientPortal.Controls"
TagPrefix="cc1" %>
Obviously it is somewhat irrelevant what that TagPrefix is... it works as it stands, but I figured I *must* be able to change it somehow and curiosity got the better of me...
Anyone know how to define what the TagPrefix will be set to when dragging a custom control onto a page in visual studio?
Thanks,
Max | 0 | [
2,
184,
20,
9267,
12838,
13,
7,
8628,
3515,
18594,
7,
26,
5816,
8671,
800,
3726,
3726,
31,
57,
21,
234,
16,
5816,
8671,
30,
31,
589,
749,
20,
9240,
4742,
555,
26,
9,
14,
7810,
1879,
301,
101,
14,
249,
45,
636,
20799,
5309,
187... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 mock classes instantiated as local variables
===
I'm writing tests for a business method that invokes some DAO classes to perform operations over a database.
This method, firstly retrieves a JDBC connection from a DataSource object, The same connection is passed to all DAO instances, so I can use it to control the transaction. So, if everything works properly, I must invoke commit() over the connection object.
I would like to test if the commit() is invoked, so I've thought to create an expectation (I'm using JMock) that checks that. But since the Connection class isn't a direct neighbour from my Business class, I don't know how to do this.
Someone knows how to overcome this? There is some JMock facility for this, or some alternative design that allows to overcome this?
Thanks | 0 | [
2,
184,
20,
10506,
2684,
6322,
49,
1669,
28,
375,
12157,
800,
3726,
3726,
31,
22,
79,
1174,
4894,
26,
21,
508,
2109,
30,
28371,
18,
109,
13,
17104,
2684,
20,
2985,
1311,
84,
21,
6018,
9,
48,
2109,
15,
64,
102,
11917,
18,
21,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.NET 2.0 on IIS 5 Resulting in Error (aspnet_wp.exe (PID: XXXX) stopped unexpectedly.)
===
When I tried to access the hosted app on the web browser the following error is displayed.
> Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Here are the traces on Event Log...
> Event Type: Error<br/>
Event Source: ASP.NET 2.0.50727.0<br/>
Event Category: None<br/>
Event ID: 1000<br/>
Date: 10/24/2008<br/>
Time: 3:45:26 PM<br/>
User: N/A<br/>
Computer: XXXXX<br/>
Description:<br/>
aspnet_wp.exe (PID: XXXX) stopped unexpectedly.<br/>
> Event Type: Error<br/>
Event Source: ASP.NET 2.0.50727.0<br/>
Event Category: None<br/>
Event ID: 1088<br/>
Date: 10/24/2008<br/>
Time: 3:45:26 PM<br/>
User: N/A<br/>
Computer: XXXXX<br/>
Description:
Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied.<br/>
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1073
Date: 10/24/2008
Time: 3:45:26 PM
User: N/A
Computer: WEBDEV
Description:
Failed to initialize the AppDomain:/LM/W3SVC/1/Root/WebApplicationName
> Exception: System.IO.FileLoadException<br/>
Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)<br/>
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)<br/>
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)<br/>
at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)<br/>
at System.Activator.CreateInstance(String assemblyName, String typeName)<br/>
at System.AppDomain.CreateInstance(String assemblyName, String typeName)<br/>
at System.AppDomain.CreateInstance(String assemblyName, String typeName)<br/>
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)<br/>
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
Any Ideas... | 0 | [
2,
28,
306,
9,
2328,
172,
9,
387,
27,
595,
18,
331,
2927,
19,
7019,
13,
5,
472,
306,
2328,
1,
13790,
9,
1706,
62,
13,
5,
11031,
45,
993,
13290,
6,
1175,
16044,
9,
6,
800,
3726,
3726,
76,
31,
794,
20,
1381,
14,
2812,
4865,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 to Impersonate user forAccessing Network resource, Asp.Net Account
===
I need to access a network resource on which only a given Domain Account has access.
I am using the LogonUser call, but get a "User does not have required priviliege" exception, as the web application is running with the asp.net account and it does not have adequate permissions to make this call.
Is there a way to get around it?
Changing the identity or permissions of the ASP.Net account is not an option as this is a production machine with many projects running.
Is there a better way to achieve this?
Using Asp.Net 2.0, Forms Authentication.
Kind Regards.
| 0 | [
2,
376,
20,
797,
7276,
1373,
4155,
26,
20604,
68,
982,
6577,
15,
28,
306,
9,
2328,
2176,
800,
3726,
3726,
31,
376,
20,
1381,
21,
982,
6577,
27,
56,
104,
21,
504,
4603,
2176,
63,
1381,
9,
31,
589,
568,
14,
6449,
5976,
106,
645,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Java L&F customization: How do I use synth to customize BorderFactory borders?
===
Specifically, I currently have a JPanel with a TitledBorder. I want to customize the look of the border. In my app's current state, the title is drawn, but not the line border itself.
If I bind an imagePainter to the panelBorder method for Panel objects, I can put a custom image around panels -- however it only shows up on those panels that I haven't explicitly set the border on in the code. Here's what that code looks like:
<style id="PanelStyle">
<state>
<imagePainter method="panelBorder" path="images/thick border.png" sourceInsets="3 3 3 3" />
</state>
</style>
<bind style="PanelStyle" type="region" key="Panel" />
How can I do the opposite -- that is, make this custom image only show up on panels I've applied a TitledBorder to? | 0 | [
2,
8247,
644,
1569,
410,
5816,
1829,
45,
184,
107,
31,
275,
13973,
20,
5816,
2952,
1862,
17455,
93,
5878,
60,
800,
3726,
3726,
3524,
15,
31,
871,
57,
21,
487,
3206,
532,
29,
21,
3008,
24389,
9,
31,
259,
20,
5816,
2952,
14,
361,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
It the use of multiple langauges in ASP.NET code behind pages acceptable?
===
For the purposes of this question, the code base is an ASP.NET website that has multiple pages written in both C# and Visual Basic .NET. The primary language is C# and the Visual Basic .NET webpages where forked into the project as the same functionality is needed.
Should the time be taken to actually rewrite these pages, including going through the testing and debugging cycle again, or would the be considered acceptable as is? | 0 | [
2,
32,
14,
275,
16,
1886,
6178,
27229,
18,
19,
28,
306,
9,
2328,
1797,
439,
4434,
12513,
60,
800,
3726,
3726,
26,
14,
4612,
16,
48,
1301,
15,
14,
1797,
1000,
25,
40,
28,
306,
9,
2328,
2271,
30,
63,
1886,
4434,
642,
19,
156,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Write dpi metadata to a jpeg image in Java
===
I am trying to programatically set the dpi metadata of an jpeg image in Java. The source of the image is a scanner, so I get the horizontal/vertical resolution from TWAIN, along with the image raw data. I'd like to save this info for better print results.
Here's the code I have so far. It saves the raw image (byteArray) to a JPEG file, but it ignores the X/Ydensity information I specify via IIOMetadata. Any advice what I'm doing wrong?
Any other solution (third-party library, etc) would be welcome too.
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import java.io.File;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
import javax.imageio.ImageTypeSpecifier;
import javax.imageio.metadata.IIOMetadata;
import javax.imageio.plugins.jpeg.JPEGImageWriteParam;
import javax.imageio.stream.ImageOutputStream
import org.w3c.dom.Element;
import com.sun.imageio.plugins.jpeg.JPEGImageWriter;
public boolean saveJpeg(int[] byteArray, int width, int height, int dpi, String file)
{
BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
WritableRaster wr = bufferedImage.getRaster();
wr.setPixels(0, 0, width, height, byteArray);
try
{
// Image writer
JPEGImageWriter imageWriter = (JPEGImageWriter) ImageIO.getImageWritersBySuffix("jpeg").next();
ImageOutputStream ios = ImageIO.createImageOutputStream(new File(file));
imageWriter.setOutput(ios);
// Compression
JPEGImageWriteParam jpegParams = (JPEGImageWriteParam) imageWriter.getDefaultWriteParam();
jpegParams.setCompressionMode(JPEGImageWriteParam.MODE_EXPLICIT);
jpegParams.setCompressionQuality(0.85f);
// Metadata (dpi)
IIOMetadata data = imageWriter.getDefaultImageMetadata(new ImageTypeSpecifier(bufferedImage), jpegParams);
Element tree = (Element)data.getAsTree("javax_imageio_jpeg_image_1.0");
Element jfif = (Element)tree.getElementsByTagName("app0JFIF").item(0);
jfif.setAttribute("Xdensity", Integer.toString(dpi));
jfif.setAttribute("Ydensity", Integer.toString(dpi));
jfif.setAttribute("resUnits", "1"); // density is dots per inch
// Write and clean up
imageWriter.write(data, new IIOImage(bufferedImage, null, null), jpegParams);
ios.close();
imageWriter.dispose();
}
catch (Exception e)
{
return false;
}
return true;
}
Thanks! | 0 | [
2,
2757,
13,
43,
2159,
28057,
20,
21,
487,
20427,
1961,
19,
8247,
800,
3726,
3726,
31,
589,
749,
20,
625,
721,
8438,
309,
14,
13,
43,
2159,
28057,
16,
40,
487,
20427,
1961,
19,
8247,
9,
14,
1267,
16,
14,
1961,
25,
21,
23195,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to log out user from web site using BASIC authentication?
===
Is it possible to log out user from a web site if he is using basic authentication?
Killing session is not enough, since, once user is authenticated, each request contains login info, so user is automatically logged in next time he access the site using the same credentials.
The only solution so far is to close browser, but that's not acceptable from the usability standpoint.
| 0 | [
2,
184,
20,
6738,
70,
4155,
37,
2741,
689,
568,
2125,
27963,
60,
800,
3726,
3726,
25,
32,
938,
20,
6738,
70,
4155,
37,
21,
2741,
689,
100,
24,
25,
568,
2125,
27963,
60,
2389,
3723,
25,
52,
511,
15,
179,
15,
382,
4155,
25,
1435... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Disabled breakpoints disappear, no more red dot?
===
In previous versions of VS, if you right-clicked a breakpoint's red dot and selected Disable Breakpoint, the dot would become 'hollow', and clicking it again would re-enable it. But in VS2008, disabling the breakpoint removes the red dot entirely and you need to go to the Breakpoints window to re-enable.
Anyone know how to get the previous versions' behavior? I have a few BP's that I toggle often, and its a bit of a PITA to do it in this way. I don't understand why MS took this away. | 0 | [
2,
10154,
1442,
3132,
18,
10866,
15,
90,
91,
402,
14123,
60,
800,
3726,
3726,
19,
1158,
3281,
16,
4611,
15,
100,
42,
193,
8,
150,
10129,
69,
21,
1442,
3132,
22,
18,
402,
14123,
17,
1704,
1460,
579,
1442,
3132,
15,
14,
14123,
83,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SQL user can only run proc, but that proc can do anything
===
In SQL Server 2005, I want a user, called LimitedUser, to only be able to run one proc:
GRANT EXEC ON [usp_RunETL] TO [LimitedUser]
However, that proc needs to be able to do everything -- UPDATE, DELETE, INSERT, EXEC.. everything. How do I do that without having to give all those permissions to LimitedUser? | 0 | [
2,
4444,
255,
4155,
92,
104,
485,
13,
15617,
15,
47,
30,
13,
15617,
92,
107,
602,
800,
3726,
3726,
19,
4444,
255,
8128,
812,
15,
31,
259,
21,
4155,
15,
227,
1317,
16704,
15,
20,
104,
44,
777,
20,
485,
53,
13,
15617,
45,
2048,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 pre-populate a jQuery Datepicker textbox with today's date?
===
I have a very simply jQuery Datepicker calendar:
$(document).ready(function(){
$("#date_pretty").datepicker({
});
});
and of course in the HTML...
<input type="text" size="10" value="" id="date_pretty"/>
Today's date is nicely highlighted for the user when they bring up the calendar, but how do I get jQuery to pre-populate the textbox itself with today's date on page load, without the user doing anything? 99% of the time, the today's date default will be what they want. | 0 | [
2,
184,
107,
31,
782,
8,
6057,
12383,
21,
487,
8190,
93,
1231,
16855,
106,
1854,
5309,
29,
786,
22,
18,
1231,
60,
800,
3726,
3726,
31,
57,
21,
253,
1659,
487,
8190,
93,
1231,
16855,
106,
7036,
45,
5579,
5,
28132,
6,
9,
15193,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 technique would be the least effort to internationalise (at least multi-language) existing Delphi Applications?
===
I have developed about 300 Applications which I would like to provide with multi-language capabilities independent from the Operating System. I have written a just-in-time translator, but that is too slow in applications with many components. What would you suggest I do? | 0 | [
2,
98,
4873,
83,
44,
14,
639,
2150,
20,
294,
2628,
13,
5,
721,
639,
1889,
8,
7020,
6,
3149,
23030,
3767,
60,
800,
3726,
3726,
31,
57,
885,
88,
3565,
3767,
56,
31,
83,
101,
20,
1181,
29,
1889,
8,
7020,
10209,
1124,
37,
14,
24... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 add weights together in an oracle text index?
===
I have created a multi column datastore on a table that allows me to do full text indexing on the table. What I need to be able to do is weight each column different and add the scores together.
The following query works, but is slow:
SELECT document.*, Score(1) + 2*Score(2) as Score
FROM document
WHERE (CONTAINS(documentContent, 'the_keyword', 1) > 0
OR CONTAINS(documentTitle, 'the_keyword', 2) > 0 )
ORDER BY Score DESC
After quite a bit of Googling, people have proposed the solution as:
SELECT document.*, Score(1) as Score
FROM document
WHERE CONTAINS(dummy, '(((the_keyword) within documentTitle))*2 OR ((the_keyword) within documentText)',1) > 0)
ORDER BY Score Desc
The above query is faster than its predecessor but it does not solve the actual problem. In this case, if the keyword is found in the documentTitle, it will not search the documentText (it uses the OR operator). What I really need is to ADD the two scores together so that if a keyword appears in the title AND the text it will have a higher score than if it only appears in the title.
So, how do you add the scores for weighted columns in one CONTAINS clause? | 0 | [
2,
184,
107,
42,
3547,
1763,
18,
429,
19,
40,
15759,
1854,
4348,
60,
800,
3726,
3726,
31,
57,
679,
21,
1889,
4698,
1054,
16828,
27,
21,
859,
30,
2965,
55,
20,
107,
503,
1854,
4348,
68,
27,
14,
859,
9,
98,
31,
376,
20,
44,
77... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
best practice for large WCF service?
===
What is the best practice for writing a rather large wcf service, containing a lot of OperationContracts and DataContracts?
How would I separate functional areas into several contracts, would it be best to create an endpoint for each functional area?
Is there any way to keep the source for the different parts apart, but still use only one service for all of them? | 0 | [
2,
246,
1345,
26,
370,
11801,
410,
365,
60,
800,
3726,
3726,
98,
25,
14,
246,
1345,
26,
1174,
21,
864,
370,
11801,
410,
365,
15,
3503,
21,
865,
16,
1453,
23311,
18,
17,
1054,
23311,
18,
60,
184,
83,
31,
1725,
7652,
924,
77,
23... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Closures in Java 7
===
I have heard that closures could be introduced in the next Java standard that is scheduled to be released somewhere around next summer.
What would this syntax look like?
I read somewhere that introducing closures in java is a bigger change than generic was in java 5. Is this true? pros and cons? | 0 | [
2,
7790,
18,
19,
8247,
453,
800,
3726,
3726,
31,
57,
752,
30,
7790,
18,
110,
44,
1277,
19,
14,
328,
8247,
1236,
30,
25,
3758,
20,
44,
261,
3493,
140,
328,
697,
9,
98,
83,
48,
22649,
361,
101,
60,
31,
1302,
3493,
30,
11442,
7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What do you think about c++ after c++ox standard?
===
What do you think about c++ after c++ox standard is released. | 0 | [
2,
98,
107,
42,
277,
88,
272,
20512,
75,
272,
20512,
6326,
1236,
60,
800,
3726,
3726,
98,
107,
42,
277,
88,
272,
20512,
75,
272,
20512,
6326,
1236,
25,
261,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Can Eclipse Be Used To Find All Deprecated Method Calls?
===
Does Eclipse have a feature that lets you search a project to find all calls to deprecated methods? | 0 | [
2,
92,
11652,
44,
147,
20,
477,
65,
121,
3515,
150,
1669,
2109,
3029,
60,
800,
3726,
3726,
630,
11652,
57,
21,
1580,
30,
6884,
42,
2122,
21,
669,
20,
477,
65,
3029,
20,
121,
3515,
150,
1669,
3195,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Best Practice for Forcing Garbage Collection in C#
===
In my experience it seems that most people will tell you that it is unwise to force a garbage collection but in some cases where you are working with large objects that don't always get collected in the 0 generation but where memory is an issue, is it ok to force the collect? Is there a best practice out there for doing so? | 0 | [
2,
246,
1345,
26,
6135,
15024,
1206,
19,
272,
5910,
800,
3726,
3726,
19,
51,
1496,
32,
2206,
30,
127,
148,
129,
494,
42,
30,
32,
25,
367,
10474,
20,
558,
21,
15024,
1206,
47,
19,
109,
1871,
113,
42,
50,
638,
29,
370,
3916,
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... |
Agile programming for non-technical people
===
I'm supposed to give a presentation on agile programming techniques for my Business and Professional Communications class. One thing I'm having a bit of a problem getting right is the best way to give a quick and dirty overview of how agile programming works before I get into the meat of it.
So what are some good ways to do this? Are there any analogies that work fairly well? Or is there any way to describe agile programming in maybe 3 or 4 sentences?
Note that gross generalizations and oversimplifications are allowed if not preferred. However, for clarity's sake, it could be nice if you would point them out. | 2 | [
2,
27475,
3143,
26,
538,
8,
22307,
148,
800,
3726,
3726,
31,
22,
79,
2293,
20,
590,
21,
6364,
27,
27475,
3143,
4212,
26,
51,
508,
17,
736,
3380,
718,
9,
53,
584,
31,
22,
79,
452,
21,
1142,
16,
21,
1448,
1017,
193,
25,
14,
24... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
OS X file duplication converts text encoding by default
===
All the PHP files in my workspace are encoded in **Unicode (UTF-8, no BOM)**. I often duplicate an existing source file to use as a base for a new script. Invariably (with Path Finder or the original Finder), OS X will convert the encoding of the duplicate file to **Western (Mac OS Roman)**.
Is there any way to make OS X behave and not convert the text encoding when duplicating a text file? Or make it use a specific text encoding (other than Western!) by default for all files with .php extension? | 0 | [
2,
13,
759,
993,
3893,
1052,
20669,
8406,
18,
1854,
19608,
34,
12838,
800,
3726,
3726,
65,
14,
13,
26120,
6488,
19,
51,
170,
5582,
50,
13665,
19,
13,
1409,
8843,
9375,
13,
5,
1982,
410,
8,
457,
15,
90,
1607,
79,
6,
1409,
9,
31... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Dynamic Associative Array Creation in Javascript from JSON
===
It sounds a lot more complicated than it really is.
So in Perl, you can do something like this:
foreach my $var (@vars) {
$hash_table{$var->{'id'}} = $var->{'data'};
}
I have a JSON object and I want to do the same thing, but with a javascript associative array in jQuery.
I've tried the following:
hash_table = new Array();
$.each(data.results), function(name, result) {
hash_table[result.(name).extra_info.a] = result.(name).some_dataset;
});
Where data is a JSON object gotten from a $.getJSON call. It looks more or less like this (my JSON syntax may be a little off, sorry):
{
results:{
datasets_a:{
dataset_one:{
data:{
//stuff
}
extra_info:{
//stuff
}
}
dataset_two:{
...
}
...
}
datasets_b:{
...
}
}
}
But every time I do this, firebug throws the following error:
"XML filter is applied to non-xml data"
| 0 | [
2,
7782,
28,
18,
16325,
3366,
7718,
2502,
19,
8247,
8741,
37,
487,
528,
800,
3726,
3726,
32,
2795,
21,
865,
91,
8343,
119,
32,
510,
25,
9,
86,
19,
416,
255,
15,
42,
92,
107,
301,
101,
48,
45,
26,
14322,
51,
5579,
3311,
13,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cache FreeMarker templates
===
I'm using the Spring class [FreeMarkerConfigurationFactoryBean][1] to retrieve FreeMarker templates. I would like these templates to be cached, but there doesn't appear to be any way to indicate that this behaviour is required.
In contrast, Spring modules provides a [CachingTemplateResolver][2] which does provide template caching, but is it possible to achieve this without using Spring modules, i.e. with FreeMarkerConfigurationFactoryBean?
Cheers,
Don
[1]: http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/ui/freemarker/FreeMarkerConfigurationFactoryBean.html
[2]: https://springmodules.dev.java.net/docs/reference/0.9/html/template.html | 0 | [
2,
16522,
551,
4527,
106,
22894,
18,
800,
3726,
3726,
31,
22,
79,
568,
14,
1573,
718,
636,
4639,
4527,
106,
1126,
13549,
857,
17455,
93,
863,
210,
500,
2558,
165,
500,
20,
11917,
551,
4527,
106,
22894,
18,
9,
31,
83,
101,
158,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Should Java Raw Types be Deprected?
===
Should a future release of Java deprecate the use of raw types to force the migration to generics? I could also see having raw types not allowed by default but allowing them via a compile flag for legacy code. | 0 | [
2,
378,
8247,
4333,
2551,
44,
121,
3515,
150,
1427,
60,
800,
3726,
3726,
378,
21,
1022,
830,
16,
8247,
121,
3515,
9530,
14,
275,
16,
4333,
2551,
20,
558,
14,
8443,
20,
12733,
18,
60,
31,
110,
67,
196,
452,
4333,
2551,
52,
1159,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
c# Reporting Services -- ReportParameter value that isn't a string
===
Ok
I'm working on a little project at the moment, the Report expects an int but the ReportParameter class only lets me have a value that's a string or a string[]
How can I pass an int?
thanks
dan | 0 | [
2,
272,
5910,
6670,
687,
13,
8,
8,
1330,
6351,
7307,
1923,
30,
2532,
22,
38,
21,
3724,
800,
3726,
3726,
5854,
31,
22,
79,
638,
27,
21,
265,
669,
35,
14,
688,
15,
14,
1330,
4186,
18,
40,
19,
38,
47,
14,
1330,
6351,
7307,
718,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to create Windows firewall exception in Visual Basic 2005?
===
Is there a way I can create Windows firewall exceptions in VB2005? I'm trying to deploy a small app that opens up a few ports so I can connect to them and convert them using VMWare Converter.
Thanks in advance,<br/>
Clint. | 0 | [
2,
184,
20,
1600,
1936,
535,
6051,
5391,
19,
3458,
2125,
812,
60,
800,
3726,
3726,
25,
80,
21,
161,
31,
92,
1600,
1936,
535,
6051,
13392,
19,
13,
20468,
2835,
60,
31,
22,
79,
749,
20,
17617,
21,
284,
4865,
30,
8965,
71,
21,
31... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DB sketcher for MacOS?
===
I've been trying to find a free database creator for mac os, and i'm not being able to find any. Anyone know of a free one i could download?
ty | 0 | [
2,
13,
9007,
8998,
106,
26,
1572,
759,
60,
800,
3726,
3726,
31,
22,
195,
74,
749,
20,
477,
21,
551,
6018,
9247,
26,
1572,
13,
759,
15,
17,
31,
22,
79,
52,
142,
777,
20,
477,
186,
9,
1276,
143,
16,
21,
551,
53,
31,
110,
712... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Which Graphical Subsystem for Touchscreen Kiosk Development
===
I'm starting a hobby project in which I would like to have a graphical, touchscreen interface for interacting with a kiosk-like device running on top of Windows XP Embedded. For development of a rich UI experience, I was considering using WPF. However, a number of demonstration videos that I have come across have used Silverlight, while I haven't seen a single WPF demonstration.
It was my understanding that Silverlight was targeted towards website developers, while WPF was more targeted towards desktop development.
So this question has two parts. Firstly, what is the recommended graphical subsystem for development of a rich UI experience on a kiosk-like device hosted on the Windows XP embedded platform? Secondly, if it is Silverlight, which version is suggested (1.0 or 2.0) and why? | 0 | [
2,
56,
21755,
972,
10724,
26,
1723,
7187,
28092,
522,
800,
3726,
3726,
31,
22,
79,
1422,
21,
18229,
669,
19,
56,
31,
83,
101,
20,
57,
21,
21755,
15,
1723,
7187,
6573,
26,
24747,
29,
21,
28092,
8,
1403,
3646,
946,
27,
371,
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... |
Linking to a file (e.g. PDF) within a CakePHP view.
===
I'd like to link to some PDFs in one of my controller views. What's the best practice for accomplishing this? The CakePHP webroot folder contains a ./files/ subfolder, I am confounded by trying to link to it without using "magic" pathnames in my href (e.g. "/path/to/my/webroot/files/myfile.pdf").
What are my options? | 0 | [
2,
12585,
20,
21,
3893,
13,
5,
62,
9,
263,
9,
13,
11124,
6,
363,
21,
8390,
26120,
1418,
9,
800,
3726,
3726,
31,
22,
43,
101,
20,
3508,
20,
109,
13,
11124,
18,
19,
53,
16,
51,
9919,
4146,
9,
98,
22,
18,
14,
246,
1345,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the most useful .net library you've found?
===
The .net framework comes with a bunch of really useful libraries, but there's always something better out there.
What 3rd party libraries have you found that you can't live without now?
is it [C5][1]?
is it [db4o][2]?
is it something off [CodePlex][3]?
Share with the rest of us!
[1]: http://www.itu.dk/research/c5/ "c5 library"
[2]: http://developer.db4o.com/ "data base 4 objects"
[3]: http://www.codeplex.com/ | 0 | [
2,
98,
25,
14,
127,
4811,
13,
9,
2328,
1248,
42,
22,
195,
216,
60,
800,
3726,
3726,
14,
13,
9,
2328,
6596,
1624,
29,
21,
7653,
16,
510,
4811,
8649,
15,
47,
80,
22,
18,
550,
301,
574,
70,
80,
9,
98,
203,
897,
346,
8649,
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... |
Difference btw org.hibernate.jmx.HibernateService and org.jboss.hibernate.jmx.Hibernate
===
Both of them are mbeans. Both are intended to setup Hibernate Session Factory and expose it through JNDI. Both are implemented in Red Hat. But at the same time each of them belongs to separate classes hierarchy.
What is actually the difference between them?
Thank you in advance. | 0 | [
2,
2841,
334,
38,
499,
13,
5583,
9,
8630,
106,
8820,
9,
728,
79,
396,
9,
8630,
106,
8820,
11449,
17,
13,
5583,
9,
728,
10349,
18,
9,
8630,
106,
8820,
9,
728,
79,
396,
9,
8630,
106,
8820,
800,
3726,
3726,
156,
16,
105,
50,
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... |
write a file from webservices
===
I have a webservice using .net c# and I want to write to a text file on the server, but I cannot get this to work I assume it is a permission problem?
thanks
Stuart
| 0 | [
2,
2757,
21,
3893,
37,
2741,
11449,
18,
800,
3726,
3726,
31,
57,
21,
2741,
11449,
568,
13,
9,
2328,
272,
5910,
17,
31,
259,
20,
2757,
20,
21,
1854,
3893,
27,
14,
8128,
15,
47,
31,
1967,
164,
48,
20,
170,
31,
7158,
32,
25,
21... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Ignore pattern for eclipse workspace
===
Do you have a good ignore pattern for svn, git, etc. that handles a whole eclipse workspace? | 0 | [
2,
7174,
3732,
26,
11652,
170,
5582,
800,
3726,
3726,
107,
42,
57,
21,
254,
7174,
3732,
26,
13,
18,
16578,
15,
13,
10404,
15,
2722,
9,
30,
3053,
18,
21,
979,
11652,
170,
5582,
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,
0,
0,
0,
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: Cross-Site posting and redirection in ASP.NET webforms
===
**Scenario:**
The task I have at hand is to enable a single-signon solution between different organizations/websites. I start as an authenticated user on one organization's website, convert specific information into an Xml document, encrypt the document with triple des, and send that over as a post variable to the second organizations login page.
**Question:**
Once I have my xml data packaged, how do I programmatically perform a post to the second website and have the user's browser redirected to the second website as well.
This should behave just like having a form like:
*action="http://www.www.com/posthere" method="post"*
... and having a hidden text field like:
*input type="hidden" value="my encrypted xml"*
This is being written in asp.net 2.0 webforms. | 0 | [
2,
184,
20,
45,
919,
8,
9097,
15669,
17,
302,
14706,
872,
19,
28,
306,
9,
2328,
2741,
4190,
18,
800,
3726,
3726,
13,
1409,
18,
8172,
8756,
45,
1409,
14,
3005,
31,
57,
35,
224,
25,
20,
9240,
21,
345,
8,
18,
28063,
4295,
128,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Where does Outlook store the VBA code files?
===
I had a VBA project in outlook with a few email macros - but after a PC crash they are all gone and all I see is a fresh 'Project1' when I hit Alt+F11
I'm not a VBA programmer, but had a collection of handy macros for email sorting etc. I would not like to have to code them again. Anyone know where the code files should be on the filesystem so that I might rescue the code? | 0 | [
2,
113,
630,
19837,
1718,
14,
566,
969,
1797,
6488,
60,
800,
3726,
3726,
31,
41,
21,
566,
969,
669,
19,
19837,
29,
21,
310,
8517,
9069,
18,
13,
8,
47,
75,
21,
5168,
4597,
59,
50,
65,
1042,
17,
65,
31,
196,
25,
21,
3180,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is Agile programming too... ad hoc for safety-critical systems?
===
For example, would it be incredibly dangerous to do it for avionics software?
Note, I don't completely understand Agile. | 0 | [
2,
25,
27475,
3143,
266,
9,
9,
9,
21,
43,
21061,
26,
2108,
8,
21522,
1242,
60,
800,
3726,
3726,
26,
823,
15,
83,
32,
44,
13003,
3342,
20,
107,
32,
26,
14026,
18680,
18,
2306,
60,
1945,
15,
31,
221,
22,
38,
1524,
1369,
27475,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Domain redirection to the same page and Google
===
We developed a website for a client and he has purchase the .com, .net, .info versions of the domain.
Is there any way to redirect all to the same page without being considered by Google as duplicated content and therefore penalized in the ranking position? | 0 | [
2,
4603,
302,
14706,
872,
20,
14,
205,
2478,
17,
8144,
800,
3726,
3726,
95,
885,
21,
2271,
26,
21,
6819,
17,
24,
63,
3301,
14,
13,
9,
960,
15,
13,
9,
2328,
15,
13,
9,
108,
4120,
3281,
16,
14,
4603,
9,
25,
80,
186,
161,
20,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Add property to anonymous object after creation
===
I use an anonymous object to pass my Html Attributes to some helper methods.
If the consumer didn't add an ID attribute, I want to add it in my helper method.
How can I add an attribute to this anonymous object?
| 0 | [
2,
3547,
1354,
20,
10364,
3095,
75,
2502,
800,
3726,
3726,
31,
275,
40,
10364,
3095,
20,
1477,
51,
13,
15895,
13422,
20,
109,
448,
106,
3195,
9,
100,
14,
6461,
223,
22,
38,
3547,
40,
4924,
35,
14755,
15,
31,
259,
20,
3547,
32,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it possible to read the clipboard in firefox, safari and chrome using javascript?
===
I'm trying to read the contents of the clipboard using javascript. With internet explorer the it's possible using
window.clipdData.getData("Text")
Is there a similar way of reading the clipboard in firefox, safari and chrome?
| 0 | [
2,
25,
32,
938,
20,
1302,
14,
12229,
2806,
19,
535,
18219,
15,
25055,
17,
13,
12985,
568,
8247,
8741,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
1302,
14,
8478,
16,
14,
12229,
2806,
568,
8247,
8741,
9,
29,
2620,
8520,
14,
32,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Beta testing a new product
===
As a Micro ISV I am coming to the stage in the development of a new desktop software application where beta testing it with an external group of users would be great.
*I would prefer private invite only beta testing as opposed to public free for all beta testing.*
Are their websites/organisations, both free or paid, where I can 'reach out' to people (with some degree of selectivity) who want to test software and provide feedback/bug reports and so on?
What have other people done when beta testing their products?
| 0 | [
2,
8434,
4431,
21,
78,
2374,
800,
3726,
3726,
28,
21,
2899,
25,
710,
31,
589,
880,
20,
14,
876,
19,
14,
522,
16,
21,
78,
17404,
2306,
3010,
113,
8434,
4431,
32,
29,
40,
4886,
214,
16,
3878,
83,
44,
374,
9,
1637,
49,
83,
6369... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Rich Graphical Tree/Graph Controls in WinForms
===
I just started using [ANTS 4 .NET profiler][1] and I am looking for something similar to their **[Call Graph][2]** to implement in our own WinForms application(s). In essence, we are looking for a rich (animated) control that we could use to display the relationship between objects in our application - such as the hierarchal relationships between customers and their available addresses.
Are their any similar controls on the market? Or will I have to look into implementing something like this from scratch?
[1]: http://www.red-gate.com/Products/ants_profiler/index.htm
[2]: http://www.simple-talk.com/iwritefor/articlefiles/543-callgraphmoresensible.JPG | 0 | [
2,
2042,
21755,
1541,
118,
9614,
8671,
19,
628,
4190,
18,
800,
3726,
3726,
31,
114,
373,
568,
636,
5958,
268,
13,
9,
2328,
5296,
139,
500,
2558,
165,
500,
17,
31,
589,
699,
26,
301,
835,
20,
66,
13,
1409,
2558,
9200,
7210,
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... |
LINQ to SQL multiple DataContext-s
===
I'm trying to figure the best strategy about how to organize DataContexts. The typical DB we work has between 50 and 100 tables usually in third-normal form and with many relations between them. I think we have two options:
1. Put all tables in a single context. This will ensure that anything we do will be committed in the correct order in database. The problem is that the LINQ designer will be a mess with 50+ tables and I'm worrying performance may be affected.
2. Create several data contexts based on the logical grouping of tables. The problem is that there will be places where one side of a relation will be in one context and the other in another one. We'll have to manually take care of committing both context-s in the correct order.
Is there any recommended practice to handle this? | 0 | [
2,
6294,
1251,
20,
4444,
255,
1886,
1054,
1126,
11969,
8,
18,
800,
3726,
3726,
31,
22,
79,
749,
20,
1465,
14,
246,
4427,
88,
184,
20,
9213,
1054,
1126,
11969,
18,
9,
14,
3874,
13,
9007,
95,
170,
63,
128,
1222,
17,
808,
7484,
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... |
Writing gridview to file does not work with nested for loop
===
I have this loop, which I am using to get the values of all cells within all rows of a gridview and then write it to a csv file. My loop looks like this:
string filename = @"C:\Users\gurdip.sira\Documents\Visual Studio 2008\WebSites\Supressions\APP_DATA\surpressionstest.csv";
StreamWriter sWriter = new StreamWriter(filename);
string Str = string.Empty;
string headertext = "";
sWriter.WriteLine(headertext);
for (int i = 0; i <= (this.GridView3.Rows.Count - 1); i++)
{
for (int j = 0; j <= (this.GridView3.Columns.Count - 1); j++)
{
Str = this.GridView3.Rows[i].Cells[j].Text.ToString();
sWriter.Write(Str);
}
sWriter.WriteLine();
}
sWriter.Close();
}
The problem with this code is that, when stepping through, the 2nd loop (the one going through the columns) does not begin as the debugger does not hit this loop and thus my file is empty.
Any ideas on what is causing this? The code itself looks fine.
Thanks | 0 | [
2,
1174,
7354,
4725,
20,
3893,
630,
52,
170,
29,
5618,
69,
26,
5293,
800,
3726,
3726,
31,
57,
48,
5293,
15,
56,
31,
589,
568,
20,
164,
14,
4070,
16,
65,
2934,
363,
65,
11295,
16,
21,
7354,
4725,
17,
94,
2757,
32,
20,
21,
272... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
.NET VS2005 WinForms: How do i drop a user control onto a form?
===
i've written a UserControl descendant that is not in an assembly dll.
How do i drop the control on a form?
namespace StackOverflowExample
{
public partial class MonthViewCalendar : UserControl
{
...
}
}
i've added a reference to the assembly under the **References** node in the **Solution Explorer**, but no new control has appeared in my **Toolbox**.
How do i make the control appear in the Toolbox so i can drop it on a form? | 0 | [
2,
13,
9,
2328,
4611,
2835,
628,
4190,
18,
45,
184,
107,
31,
2804,
21,
4155,
569,
1204,
21,
505,
60,
800,
3726,
3726,
31,
22,
195,
642,
21,
4155,
12898,
13783,
30,
25,
52,
19,
40,
1475,
13,
43,
211,
9,
184,
107,
31,
2804,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the actual function of the C# project setting "Allow unsafe code"
===
I was wondering if the C# project setting "Allow unsafe code" applies only to unsafe C# code in the project itself, or is it necessary to set this option when linking in a native C++ DLL? What about linking in a managed DLL that itself links to a native DLL? What does this option really do, under the hood? | 0 | [
2,
98,
25,
14,
3463,
1990,
16,
14,
272,
5910,
669,
2697,
13,
7,
17976,
27094,
1797,
7,
800,
3726,
3726,
31,
23,
5712,
100,
14,
272,
5910,
669,
2697,
13,
7,
17976,
27094,
1797,
7,
13169,
104,
20,
27094,
272,
5910,
1797,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
StructureMap and SqlCacheDependency
===
I'm trying to enable SqlCacheDependency through my StructureMap IoC, I'm using LinqToSql I have the code done to take care of the Linq Caching but not quite sure how to go about setting up the SqlCacheDependency as it requires putting this in a global.asa file
void Application_Start(object sender, EventArgs e)
{
string connectionString = WebConfigurationManager.
ConnectionStrings["Catalog"].ConnectionString;
SqlDependency.Start(connectionString);
}
However my repository doesn't use a global.asa as its just a library (.dll) not a web application.
Any ideas how to do this? Maybe put whats in the application_start method into the constructor of my repository? | 0 | [
2,
1411,
15022,
17,
4444,
6109,
9616,
19038,
8883,
800,
3726,
3726,
31,
22,
79,
749,
20,
9240,
4444,
6109,
9616,
19038,
8883,
120,
51,
1411,
15022,
31,
2499,
15,
31,
22,
79,
568,
6294,
1251,
262,
18,
22402,
31,
57,
14,
1797,
677,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
prefilling dynamically created textbox with javascript in IE
===
I'm trying to dynamically add some textboxes (input type=text) to a page in javascript and prefill them. The textboxes are coming up, but they are coming up empty. What is the proper way to pre-fill a textbox. Ideally I'd love to use the trick of creating a child div, setting the innerhtml property, and then adding that div to the parent main div but that didn't work. Then I thought I'd use the dom but setting textboxname.value before or after insertion won't work and doing txttextbox.setattribute('value','somevalue') won't work either. Works fine in firefox. What gives? This has to be possible? Here is my code. I know I'm only using string literals, but these will be replaced with the results of a web service call eventually. Below is some code. Oh and how do you format code to show up as you type it? I thought it said to indent four spaces, and I did that but the code is still on one line. Sorry about that.
var table=document.createElement('table');
var tbody=document.createElement('tbody');
var row=document.createElement('tr');
row.appendChild(document.createElement('td').appendChild(document.createTextNode('E-mail')));
var txtEmail=document.createElement('input');
row.appendChild(document.createElement('td').appendChild(txtEmail));
tbody.appendChild(row);
table.appendChild(tbody);
//document.getElementById('additionalEmails').innerHTML="";
document.getElementById('additionalEmails').appendChild(table); | 0 | [
2,
782,
19971,
68,
7782,
1326,
679,
1854,
5309,
29,
8247,
8741,
19,
13,
660,
800,
3726,
3726,
31,
22,
79,
749,
20,
7782,
1326,
3547,
109,
1854,
5309,
160,
13,
5,
108,
4881,
1001,
3726,
11969,
6,
20,
21,
2478,
19,
8247,
8741,
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... |
Rails: Detecting user agent works in development but not production?
===
I am trying to detect Blackberry user agents in my app, which works fine in my development version. But nothing happens when I redeploy the app in production.
application_helper.rb
def blackberry_user_agent?
request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Blackberry)/]
end
application.html.erb
<% if blackberry_user_agent? -%>
<div class="message">
<p>Using a Blackberry? <a href="http://mobile.site.ca/">Use the mobile optimized version</a>.</p>
</div>
I've tried clearing the cache using rake tmp:cache:clear and restarted mongrel a few times. | 0 | [
2,
2240,
18,
45,
9092,
68,
4155,
2267,
693,
19,
522,
47,
52,
637,
60,
800,
3726,
3726,
31,
589,
749,
20,
9092,
27367,
4155,
5125,
19,
51,
4865,
15,
56,
693,
1123,
19,
51,
522,
615,
9,
47,
626,
5531,
76,
31,
402,
3492,
10892,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 a two way link between a mobile device and a server
===
I would like to create a link between a winMo device and a server, so that they can pass information back and forth to each other. I actually don't really know where to start, I've had SOAP, RPC and creating a TCP link suggested to me. If someone could provide a link to an example that would be great.
Thanks! | 0 | [
2,
2936,
21,
81,
161,
3508,
128,
21,
3241,
3646,
17,
21,
8128,
800,
3726,
3726,
31,
83,
101,
20,
1600,
21,
3508,
128,
21,
628,
1293,
3646,
17,
21,
8128,
15,
86,
30,
59,
92,
1477,
676,
97,
17,
5882,
20,
206,
89,
9,
31,
1121,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
"An unhandled non-continuable exception was thrown during process load"
===
This error message appears on a colleague's machine when he tries to launch a Windows application he's working on:
> An unhandled non-continuable exception was thrown during process load
What does this mean, and how does one go about investigating what is causing it?
I have Googled it, but haven't found a clear answer. It seems to have something to do with problems loading DLLs. | 0 | [
2,
13,
7,
210,
367,
3203,
1294,
538,
8,
13391,
291,
579,
5391,
23,
6027,
112,
953,
6305,
7,
800,
3726,
3726,
48,
7019,
2802,
1780,
27,
21,
12321,
22,
18,
1940,
76,
24,
3919,
20,
3394,
21,
1936,
3010,
24,
22,
18,
638,
27,
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... |
does viewstate expire?
===
Let's say you have a aspx page that does not rely on Session, but does rely on viewstate for persistance between postbacks. If a user is accessing this page, and leaves for a long lunch, will viewstate still be valid when he returns? | 0 | [
2,
630,
1418,
3859,
25910,
60,
800,
3726,
3726,
408,
22,
18,
395,
42,
57,
21,
28,
306,
396,
2478,
30,
630,
52,
12139,
27,
3723,
15,
47,
630,
12139,
27,
1418,
3859,
26,
22084,
2416,
128,
678,
1958,
18,
9,
100,
21,
4155,
25,
138... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Programmatically Printing in Adobe Reading using .NET Interop
===
I am using VB.Net WinForms. I would like to call the Adobe Reader 9 ActiveX control to print some PDFs. I have added the ActiveX control to the VS toolbox (the dll is AcroPDF.dll, the COM name "Adobe PDF Reader". After some experiment the following code works.
Dim files As String() = Directory.GetFiles(TextBoxPath.Text, "*.pdf", SearchOption.TopDirectoryOnly)
Using ActiveXPDF As New AxAcroPDFLib.AxAcroPDF
Me.Controls.Add(ActiveXPDF)
ActiveXPDF.Hide()
For Each filename As String In files
ActiveXPDF.LoadFile(filename)
ActiveXPDF.printAll()
'Begin Yukky Hack
Dim endTime As Date = DateAdd(DateInterval.Second, 20, Now)
Do While Now < endTime
My.Application.DoEvents()
Loop
'End Yuk
Next
End Using
It seems the call to printAll is non-blocking but I can't find a callback or status property I can query to see if the print spooling has been completed. I am missing a property/method or is there a more elegant (and more responsive) work around? | 0 | [
2,
625,
6732,
1326,
7312,
19,
20299,
1876,
568,
13,
9,
2328,
1480,
2594,
800,
3726,
3726,
31,
589,
568,
13,
20468,
9,
2328,
628,
4190,
18,
9,
31,
83,
101,
20,
645,
14,
20299,
7765,
561,
1348,
396,
569,
20,
4793,
109,
13,
11124,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
TSQL: How to fill a variable using a generated sql command string without a cursor
===
I'm trying to get the value of a generated sql inside a stored procedure.
Executing this
DECLARE @sSQL varchar(5000), @retval int
DECLARE @tablename varchar(50)
SELECT @tablename = 'products'
SELECT @sSQL = 'SELECT @retval = MAX(ID)'
SELECT @sSQL = @sSQL + ' FROM ' + @tablename
EXEC (@sSQL)
SELECT @retval
I get
Must declare the variable '@retval'.
How can I get the value without using a cursor (witch I'm trying to avoid)?
| 0 | [
2,
13,
38,
18,
22402,
45,
184,
20,
3509,
21,
7612,
568,
21,
6756,
4444,
255,
1202,
3724,
366,
21,
29588,
800,
3726,
3726,
31,
22,
79,
749,
20,
164,
14,
1923,
16,
21,
6756,
4444,
255,
572,
21,
8214,
7004,
9,
25836,
48,
10123,
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... |
Configuring Visual Studio 2008 to edit legacy JScript ASP files.
===
I'm working on a project that combines .NET with some legacy ASP code via COM interop. The legacy ASP is written in JScript - files look like this helloworld.asp example.
<%@Language="JScript"%>
<html>
<head>
<title>Jscript ASP Page</title>
</head>
<body>
<h1>JScript ASP</h1>
<p>This is JScript ASP at <%=new Date()%></p>
<%
var helloWorld = Server.CreateObject("Interop.HelloWorld")
helloWorld.Name = "Dylan"
%>
<%=helloWorld.SayHello() %>
</body>
</html>
I'd really like to use VS2008 to edit the legacy ASP code along with the rest of the project, but the Intellisense is behaving extremely strangely. One minute it'll be giving me the correct JScript keywords and methods:
![JS Intellisense in VS2008 - working][1]
...so I'll type a line, press Enter, start typing the next line, and the exact same keystrokes will give me what appears to be VBScript intellisense instead:
![ASP intellisense in VS2008 - broken][2]
Is there any way I can tell VS that .asp files are ALWAYS Javascript code, and never to use VB code at all? Having the IDE turn "var" into "vArray" when you press Enter is proving a little frustrating...
Help me, Stackoverflow. You're my only hope.
[1]: http://www.dylanbeattie.net/vs_js_working.jpg
[2]: http://www.dylanbeattie.net/vs_js_wrong.jpg | 0 | [
2,
1065,
13549,
68,
3458,
1120,
570,
20,
9392,
7780,
487,
8741,
28,
306,
6488,
9,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
669,
30,
15339,
13,
9,
2328,
29,
109,
7780,
28,
306,
1797,
1197,
13,
960,
1480,
2594,
9,
14,
7780,
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... |
Tetris Piece Rotation Algorithm
===
What are the best algorithms (and explanations) for representing and rotating the pieces of a tetris game? I always find the piece rotation and representation schemes confusing.
Most tetris games seem to use a naive "remake the array of blocks" at each rotation:
http://www.codeplex.com/Project/ProjectDirectory.aspx?ProjectSearchText=tetris
However, some use pre-built encoded numbers and bit shifting to represent each piece:
http://www.codeplex.com/wintris
Is there a method to do this using mathematics (not sure that would work on a cell based board)? | 0 | [
2,
2392,
14383,
1855,
9431,
9083,
800,
3726,
3726,
98,
50,
14,
246,
15935,
13,
5,
290,
5764,
18,
6,
26,
3793,
17,
16164,
14,
2491,
16,
21,
2392,
14383,
250,
60,
31,
550,
477,
14,
1855,
9431,
17,
5442,
13185,
18084,
9,
127,
2392,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 a Session ID generated on the Server-side or Client-side?
===
This web page [http://www.w3schools.com/ASP/prop_sessionid.asp][1] states that a session ID is generated on the ServerSide.
If this is the case, then how does a server know it's still the same client on the 2nd request response cycle?
Surely the SessionId would be generated on the ClientSide so that the client would be sure of passing the same value to the server?
[1]: http://www.w3schools.com/ASP/prop_sessionid.asp | 0 | [
2,
25,
21,
3723,
4924,
6756,
27,
14,
8128,
8,
1416,
54,
6819,
8,
1416,
60,
800,
3726,
3726,
48,
2741,
2478,
636,
21127,
6903,
6483,
9,
499,
240,
7535,
18,
9,
960,
118,
472,
306,
118,
10890,
1,
7202,
5991,
1340,
9,
472,
306,
50... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Invoking Mail App on the iPhone
===
The application I'm writing calls a web service that sends an email to the user. After the call to the web service is complete, I would like to bring up the Mail application so the user can read the email. I know I can use mailto:, but then a new email is created for the user to compose. Is there a way to invoke the Mail application so that it starts up at the Mailboxes view, allowing the user to navigate to their inbox?
Thanks. | 0 | [
2,
19,
2625,
1581,
4216,
4865,
27,
14,
21024,
800,
3726,
3726,
14,
3010,
31,
22,
79,
1174,
3029,
21,
2741,
365,
30,
11350,
40,
8517,
20,
14,
4155,
9,
75,
14,
645,
20,
14,
2741,
365,
25,
1279,
15,
31,
83,
101,
20,
1499,
71,
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 can I create a copy of an Oracle table without copying the data?
===
I know the statement:
create table xyz_new as select * from xyz;
Which copies the structure and the data, but what if I just want the structure?
| 0 | [
2,
184,
92,
31,
1600,
21,
4344,
16,
40,
15759,
859,
366,
4344,
68,
14,
1054,
60,
800,
3726,
3726,
31,
143,
14,
3331,
45,
1600,
859,
13,
15161,
380,
1,
2681,
28,
5407,
1637,
37,
13,
15161,
380,
73,
56,
3298,
14,
1411,
17,
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,
0,
0,
0,
0,
0,
0... |
Spring + Tiles2 + Freemarker - integrate via Freemarker Servlet or via Spring's FreeMarkerViewResolver?
===
i was strugling today trying to migrate from Freemarker to Tiles2 + Freemarker.
My freemarker templates use macros that come from spring.ftl.
If i provide a fremarker servlet in web.xml, my model is visible to freemarker, but specific spring variables (naturally) are not populated into the model as springs FreemarkerView is responsible for that.
If i configure a separate DispatcherServlet for specific url (say "/tpl/*") and configure freemarker resolver as default view resolver for that servlet and provide UrlFilenameViewController as default controller, special spring variables do get populated to model, but my own model is not visible: it is bound as a request attribute. I can access my model via ${Request.mymodel.myvar} but this way i have to change all my freemarker templates and i see something smelly in the idea.
Now my solution was to extend UrlFilenameViewController and add my model from request to ModelAndView:
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) {
ModelAndView mav = super.handleRequestInternal(request, response);
HashMap<String, Object> map = new HashMap<String, Object>();
Enumeration<String> attributes = request.getAttributeNames();
while(attributes.hasMoreElements()) {
String attribute = attributes.nextElement();
if("model".equals(attribute)) {
logger.debug("FreemarkerViewController.handleRequestInternal: putting attribute to model: " + attribute + "=" + request.getAttribute(attribute));
map.put(attribute, request.getAttribute(attribute));
}
}
logger.debug("FreemarkerViewController.handleRequestInternal: VIEW: " + mav.getViewName());
return new ModelAndView(mav.getViewName(), map);
}
But this solution is somewhat smelly too - if i add something to the model in my business controllers, i have to add is here.
Is there an elegant solution for my problem?
| 0 | [
2,
1573,
2754,
14836,
135,
2754,
551,
4527,
106,
13,
8,
18399,
1197,
551,
4527,
106,
13,
10321,
1336,
54,
1197,
1573,
22,
18,
551,
4527,
106,
4725,
99,
5594,
2304,
60,
800,
3726,
3726,
31,
23,
13,
11602,
263,
802,
786,
749,
20,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Flex Prana
===
I was wondering how many of you already used the Prana Framework for AS3 (Flex/Flash) or heard about it?
I have found it very usefull but there doesn't seem to be a lot of developers using it...
The link is [PranaFramework][1]
[1]: http://www.pranaframework.org
Thx, Lieven Cardoen aka Johlero | 0 | [
2,
14409,
3865,
325,
800,
3726,
3726,
31,
23,
5712,
184,
151,
16,
42,
614,
147,
14,
3865,
325,
6596,
26,
28,
240,
13,
5,
19752,
118,
26694,
6,
54,
752,
88,
32,
60,
31,
57,
216,
32,
253,
4811,
255,
47,
80,
1437,
22,
38,
2260,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
VS.NET solution that just points to a folder and shows all sub-folders and files in the solution explorer?
===
Is there a way to create a blank solution, or some type of file-based project solution within VS.NET so that I can point to a root folder, and have all of the sub-folders and files in that root, show up in my solution explorer? I realize I can create a blank solution and then add the individual items manually by add > existing item, however, this does not keep the folder structure intact, and, well, it would take forever if I have alot of folders/files. | 0 | [
2,
4611,
9,
2328,
4295,
30,
114,
819,
20,
21,
19294,
17,
1285,
65,
972,
8,
8814,
445,
17,
6488,
19,
14,
4295,
8520,
60,
800,
3726,
3726,
25,
80,
21,
161,
20,
1600,
21,
6463,
4295,
15,
54,
109,
1001,
16,
3893,
8,
1281,
669,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best zero (near zero?) administration relational database for a windows desktop app: Access, SQLite, SQL Server, other?
===
We don't need multiuser. Just relational. Our app currently uses Access but Access isn't exactly zero-administration because it's prone to corruption.
Is SQLite rock, rock solid, pure zero-administration?
Or...is there a way to configure SQL Server as a desktop engine so that it is pure zero admin?
Or...is there some other relational choice?
We are using ADO as the layer to talk to Access, so switching to SQL Server wouldn't be hard, but my understanding is that I couldn't use ADO for SQLite, so switching to SQLite would require a lot of rewriting. Is that right? | 0 | [
2,
98,
22,
18,
14,
246,
4606,
13,
5,
14114,
4606,
60,
6,
1603,
5827,
192,
6018,
26,
21,
1936,
17404,
4865,
45,
1381,
15,
4444,
10601,
15,
4444,
255,
8128,
15,
89,
60,
800,
3726,
3726,
95,
221,
22,
38,
376,
1889,
16704,
9,
114,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Query with a join or use LINQ magic?
===
Is is better to do a joined query like this:
var employer = (from person in db.People
join employer in db.Employers
on person.EmployerID equals employer.EmployerID
where person.PersonID == idPerson
select employer).FirstOrDefault();
Or is it just as good to do the easy thing and do this (with null checks):
var employer = (from person in db.People
where person.PersonID == idPerson
select person).FirstOrDefault().Employer; | 0 | [
2,
25597,
29,
21,
1865,
54,
275,
6294,
1251,
2154,
60,
800,
3726,
3726,
25,
25,
574,
20,
107,
21,
670,
25597,
101,
48,
45,
4033,
11726,
800,
13,
5,
2665,
840,
19,
13,
9007,
9,
10171,
1865,
11726,
19,
13,
9007,
9,
1503,
13221,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I create a YUI menu where you can click to open the submenus?
===
We have a grouped/hierarchical YUI menu activated via a YUI menu button. Everything in this menu works pretty well. If you mouseover a menu item with a submenu, the submenu appears as expected. You can select an item from this submenu just fine.
The problem, however, is that you can also click on the parent items of this menu which closes the entire menu. In fact, I want the opposite. I'd like a click of a parent menu item leave the top level menu open and open the submenu (i.e. I want a click to be identical to a mouseover event in terms of functionality).
Side note: This isn't an issue on a typical web browser (e.g. Firefox) where the click event doesn't matter because you can't have a click without a mouseover. This is an issue on the iPhone which doesn't have a mouseover event.
I've been playing with the autosubmenudisplay properties and keepopen properties, hoping I can just handle the parent item click events to do what I want but, so far, I've been unsuccessful. If I set autosubmenudisplay to false, I can't figure out how to get the submenus to display manually. The keepopen property doesn't seem to work rather I set it on the menu or submenus.
Is there a way to get the behavior I want so our iPhone users are happy? | 0 | [
2,
184,
92,
31,
1600,
21,
2600,
49,
11379,
113,
42,
92,
10840,
20,
368,
14,
972,
755,
267,
60,
800,
3726,
3726,
95,
57,
21,
19511,
118,
18094,
8027,
4272,
2600,
49,
11379,
9654,
1197,
21,
2600,
49,
11379,
5167,
9,
796,
19,
48,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Add 10000 to numbers using Regex replace?
===
I need to replace some 2- and 3-digit numbers with the same number plus 10000. So
Photo.123.aspx
needs to become
Photo.10123.aspx
and also
Photo.12.aspx
needs to become
Photo.10012.aspx
I know that in .NET I can delegate the replacement to a function and just add 10000 to the number, but I'd rather stick to garden-variety RegEx if I can. Any ideas? | 0 | [
2,
3547,
332,
3993,
20,
2116,
568,
7953,
1706,
3934,
60,
800,
3726,
3726,
31,
376,
20,
3934,
109,
172,
8,
17,
203,
8,
23904,
2116,
29,
14,
205,
234,
3123,
332,
3993,
9,
86,
3056,
9,
918,
240,
9,
472,
306,
396,
2274,
20,
533,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ie useragent wxWidgets
===
Im currently using ie as an active x com thing on wxWidgets and was wanting to know if there is any easy way to change the user agent that will always work.
Atm im changing the header but this only works when i manually load the link (i.e. call setUrl) | 0 | [
2,
13,
660,
275,
525,
7685,
619,
396,
3976,
43,
3060,
18,
800,
3726,
3726,
797,
871,
568,
13,
660,
28,
40,
1348,
993,
13,
960,
584,
27,
619,
396,
3976,
43,
3060,
18,
17,
23,
4638,
20,
143,
100,
80,
25,
186,
2010,
161,
20,
75... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
INSERT vs INSERT INTO
===
I have been working with TSQL in MSSQL for some time now and somehow whenever I have to insert data into a table I tend to use syntax
INSERT INTO myTable <something here>
I understand that keyword INTO is optional here and I do not have to use it but somehow it grew into habit in my case.
My question is:
- are there any implications of using INSERT syntax versus INSERT INTO?
- which one complies fully with the standard
- are they both valid in other implementations of SQL standard
Of course is nothing critical I am simply curious
| 0 | [
2,
14692,
4611,
14692,
77,
800,
3726,
3726,
31,
57,
74,
638,
29,
13,
38,
18,
22402,
19,
4235,
18,
22402,
26,
109,
85,
130,
17,
3625,
6634,
31,
57,
20,
14692,
1054,
77,
21,
859,
31,
5480,
20,
275,
22649,
14692,
77,
51,
5924,
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... |
Find & replace jquery
===
I have this code to give me a rollover on submit buttons, and I'm trying to make it more generic:
$('.rollover').hover(
function(){ // Change the input image's source when we "roll on"
srcPath = $(this).attr("src");
srcPathOver = ???????
/*need to manipulate srcPath to change from
img/content/go-button.gif
into
img/content/go-button-over.gif
*/
$(this).attr({ src : srcPathOver});
},
function(){ // Change the input image's source back to the default on "roll off"
$(this).attr({ src : srcPath});
}
);
Two things really,
I want to learn how manipulate the `srcPath` variable to append the text '-over' onto the gif filename, to give a new image for the rollover. Can anyone suggest a way to do this?
Also, can someone tell me if this code could be refined at all? I'm a bit new to jQuery and wondered if the syntax could be improved upon.
Many thanks. | 0 | [
2,
477,
279,
3934,
487,
8190,
93,
800,
3726,
3726,
31,
57,
48,
1797,
20,
590,
55,
21,
3001,
2549,
27,
12298,
12861,
15,
17,
31,
22,
79,
749,
20,
233,
32,
91,
12733,
45,
5579,
5,
22,
9,
8694,
2549,
22,
6,
9,
252,
2549,
5,
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... |
Syncing large amounts of data around the world...
===
I have a great deal of data to keep synchronized over 4 or 5 sites around the world, around half a terabyte at each site. This changes (either adds or changes) by around 1.4 Gigabytes per day, and the data can change at any of the four sites.
A large percentage (30%) of the data is duplicate packages (Perhaps packaged-up JDKs), so the solution would have to include a way of picking up the fact that there are such things lying aruond on the local machine and grab them instead of downloading from another site.
The control of versioning is not an issue, this is not a codebase per-se.
I'm just interested if there are any solutions out there (preferably open-source) that get close to such a thing?
My baby script using rsync doesn't cut the mustard any more, I'd like to do more complex, intelligent synchronization.
Thanks | 0 | [
2,
6063,
6302,
370,
8545,
16,
1054,
140,
14,
126,
9,
9,
9,
800,
3726,
3726,
31,
57,
21,
374,
1183,
16,
1054,
20,
643,
27202,
84,
268,
54,
331,
3259,
140,
14,
126,
15,
140,
519,
21,
20796,
23246,
35,
206,
689,
9,
48,
1693,
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... |
Windows Mobile WinInet library working with http compresion
===
On Windows Mobile metod InternetSetOption http://msdn.microsoft.com/en-us/library/ms918381.aspx does not support option INTERNET_OPTION_HTTP_DECODING is there some simple method to turn on compresion under WM 6.0 or any external library that will decompress content received by WinInet
| 0 | [
2,
1936,
3241,
628,
1149,
38,
1248,
638,
29,
7775,
6479,
99,
5991,
800,
3726,
3726,
27,
1936,
3241,
798,
5648,
2620,
870,
3880,
3309,
7775,
6903,
79,
18,
43,
103,
9,
22019,
12980,
9,
960,
118,
219,
8,
267,
118,
1210,
2559,
622,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sharepoint OnWorkflowItemChanged is out of control
===
I there,
I am working on a statemachine workflow. I have one state which listens to an OnWorkflowItemChanged event. The rest listens to OnWorkflowModified events. If I update an Item in another state than the state with the OnWorkflowItemChanged event the event is nevertheless caught by the OnWorkflowItemChanged. This happends at this time when the workflow comes back to the state owning the OnWorkflowItemChanged event.
What can I do to say the OnWorkflowItemChanged activity it should only listen to events trwon in its own state.
Thank you in advance Stefan | 0 | [
2,
1891,
3132,
27,
3783,
9990,
2119,
79,
16229,
43,
25,
70,
16,
569,
800,
3726,
3726,
31,
80,
15,
31,
589,
638,
27,
21,
146,
20442,
170,
9990,
9,
31,
57,
53,
146,
56,
3834,
18,
20,
40,
27,
3783,
9990,
2119,
79,
16229,
43,
80... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I create a network of sites that understand single sign-on?
===
I have several sites (Asp.Net) that I would like to have a single sign on for...
I would like a user to visit Site1 and have Site1 contact a central single sign-on server (SSS).
The SSS would then determine that the user was not logged on (Not sure how) and would redirect the user to a Logon screen (Still on the SSS).
If authenticated, the user would be redirected back to Site1.
Site1 would treat this arrival as new and would likely ask the SSS if the user was logged on. This time the SSS would suggest that the user in question was indeed logged on. And so Site1 could store this fact in it's session for future reference (perhaps with some suitable timeout)
Site1 would contain a link to Site2 which the user might choose to follow.
Arrival at Site2 should trigger an attempt by Site2 to authenticate the user.
**How can I identify the user arriving on Site2 as the same user who already visited Site1 and discover that they have already been authenticated in order that they need not have to log in a second time?**
**Note: The SSS needs to be a private system where I control the account creation. So I'm afraid I can't be relying on external OpenID servers**
| 0 | [
2,
184,
107,
31,
1600,
21,
982,
16,
3259,
30,
1369,
345,
1676,
8,
218,
60,
800,
3726,
3726,
31,
57,
238,
3259,
13,
5,
472,
306,
9,
2328,
6,
30,
31,
83,
101,
20,
57,
21,
345,
1676,
27,
26,
9,
9,
9,
31,
83,
101,
21,
4155,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Impossibility to use generics dinamically?
===
I need to create at runtime instances of a class that uses generics, like `class<T>`, without knowing previously the type T they will have, I would like to do something like that:
public Dictionary<Type, object> GenerateLists(List<Type> types)
{
Dictionary<Type, object> lists = new Dictionary<Type, object>();
foreach (Type type in types)
{
lists.Add(type, new List<type>()); /* this new List<type>() doesn't work */
}
return lists;
}
...but I can't. I think it is not possible to write in C# inside the generic brackets a type variable. Is there another way to do it? | 0 | [
2,
5420,
759,
18,
14264,
20,
275,
12733,
18,
926,
6865,
8438,
60,
800,
3726,
3726,
31,
376,
20,
1600,
35,
485,
891,
13946,
16,
21,
718,
30,
2027,
12733,
18,
15,
101,
13,
1,
1898,
1,
38,
1,
15,
366,
2506,
1343,
14,
1001,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I set the flag FILE_FLAG_BACKUP_SEMANTICS for an fstream object?
===
How can I set the flag FILE_FLAG_BACKUP_SEMANTICS for an fstream object?
You can set most flags with fstream, but it seems like this one is not availble. You can read about the flag [here][1].
[1]: http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx | 0 | [
2,
184,
92,
31,
309,
14,
3157,
3893,
1,
22868,
1,
1958,
576,
1,
18,
12955,
11677,
26,
40,
398,
11260,
3095,
60,
800,
3726,
3726,
184,
92,
31,
309,
14,
3157,
3893,
1,
22868,
1,
1958,
576,
1,
18,
12955,
11677,
26,
40,
398,
11260... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
javascript array to coldfusion
===
I have an array i've create in Javascript. The end result comes out to element1,element2,,,element5,element6,,,element9.... etc
Once passed to coldfusion, it removes the null elements, I end up with element1,element2,element5,element6,element9
I need to maintain these spaces, any ideas? My problem may begin before this, to explain in more detail...
I have a form with 13 elements that are acting as a search/filter type function. I want to "post" with ajax, in essence, i'm using a button to call a jquery function and want to pass the fields to a Coldfusion page, then have the results passed back. The javascript array may not even be my best option.
Any ideas?
| 0 | [
2,
8247,
8741,
7718,
20,
1191,
9818,
800,
3726,
3726,
31,
57,
40,
7718,
31,
22,
195,
1600,
19,
8247,
8741,
9,
14,
241,
829,
1624,
70,
20,
4520,
165,
15,
27567,
135,
15,
15,
15,
27567,
264,
15,
27567,
379,
15,
15,
15,
27567,
51... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I find the index in a string that matches a boost regex?
===
How can I find the index in a string that matches a boost regex? | 0 | [
2,
184,
92,
31,
477,
14,
4348,
19,
21,
3724,
30,
1717,
21,
10419,
7953,
1706,
60,
800,
3726,
3726,
184,
92,
31,
477,
14,
4348,
19,
21,
3724,
30,
1717,
21,
10419,
7953,
1706,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Conversion tool for MS-Excel spreadsheets with macros and VB to Oracle?
===
Our users have created MS-Excel spreadsheets which over time have evolved into fairly complex applications. They run their part of the business with them. But, never having been exposed to software development discipline, these spreadsheets are brittle, single point of failure, solutions.
Our development group uses Oracle primarily with Java and some other technologies. Is there a tools for conversion from MS-Excel to Oracle? At least part way so we can get a head start and not just have to reverse engineer and rewrite? | 0 | [
2,
6263,
5607,
26,
4235,
8,
1706,
11040,
1789,
17627,
18,
29,
9069,
18,
17,
13,
20468,
20,
15759,
60,
800,
3726,
3726,
318,
3878,
57,
679,
4235,
8,
1706,
11040,
1789,
17627,
18,
56,
84,
85,
57,
7339,
77,
6647,
1502,
3767,
9,
59,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.