unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
How to compare Floats with delta?
===
Is there in Ruby some functionality/syntax to compare two floats with delta? Something similar to *assert_in_delta(expected_float, actual_float, delta)* from *test/unit* but returning Boolean? | 0 | [
2,
184,
20,
11590,
11510,
18,
29,
6395,
60,
800,
3726,
3726,
25,
80,
19,
10811,
109,
18548,
118,
9507,
15514,
20,
11590,
81,
11510,
18,
29,
6395,
60,
301,
835,
20,
1637,
22220,
38,
1,
108,
1,
3436,
536,
5,
6899,
11557,
69,
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... |
Is it useful to test the return of "new" in C++?
===
I usually never see test for new in C++ and I was wondering why.
`Foo *f = new Foo;`
`// f is assumed as allocated, why usually, nobody test the return of new?` | 0 | [
2,
25,
32,
4811,
20,
1289,
14,
788,
16,
13,
7,
2681,
7,
19,
272,
20512,
60,
800,
3726,
3726,
31,
951,
243,
196,
1289,
26,
78,
19,
272,
20512,
17,
31,
23,
5712,
483,
9,
13,
1,
4120,
111,
1637,
410,
800,
78,
4310,
111,
73,
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... |
Reording a list of positional items
===
I have a Request object which contains a list of Approvers. An approver has a name and an approval position.
1. Mathew
2. Mark
3. Luke
4. John
Ultimately, a request will move through this chain, starting at Mathew and ended at John.
I need to be able to re-order these allowing adds and deletes as outlined below.
An approver can be -
Added at a certain position - ie. Add Peter at position 3 in which case the new order would be
1. Mathew
2. Mark
3. Peter
4. Luke
5. John
Delete - ie. Delete Mark in which case the new order is
1. Mathew
2. Luke
3. John
Edited - ie you can change John's position to 1 in which case the new order is
1. John
2. Mathew
3. Mark
4. Luke
I have come up with a number of solutions, however none of them is particular elegant.
Any help would be much appreciated
| 0 | [
2,
302,
248,
3258,
21,
968,
16,
649,
192,
3755,
800,
3726,
3726,
31,
57,
21,
3772,
3095,
56,
1588,
21,
968,
16,
14741,
1224,
9,
40,
14741,
139,
63,
21,
204,
17,
40,
4988,
649,
9,
137,
9,
17677,
172,
9,
943,
203,
9,
3881,
268... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to embed Ruby in C++?
===
What's the best way to embed Ruby as a scripting language in C++? Using ruby.h? SWIG? Something else? What I need is to expose some C++ objects to Ruby and have the Ruby interpreter evaluate scripts that access these objects. I don't care about extending Ruby or accessing it in C++.
I've found this <a href="http://aeditor.rubyforge.org/ruby_cplusplus/index.html">article on embedding Ruby in C++</a>, and while it's very useful, it's kinda old and I was wondering if there are any other resources on the subject (or open source implementations of similar engines). | 0 | [
2,
184,
20,
11911,
69,
10811,
19,
272,
20512,
60,
800,
3726,
3726,
98,
22,
18,
14,
246,
161,
20,
11911,
69,
10811,
28,
21,
3884,
68,
816,
19,
272,
20512,
60,
568,
10811,
9,
252,
60,
13,
18,
12445,
60,
301,
962,
60,
98,
31,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Interesting Master's degree programs?
===
I'm applying for a masters in fall of next year and was wondering if anyone had suggestions for interesting/challenging master's degrees in CS. I think that even though picking the right university is important, it is even more important to pick a master's degree where you'll find talented/creative people to interact and learn from.
background: never taken AI, discrete math, compilers, operating systems, data structures, cryptography or anything involving c/c++ courses
looking for: hci research & applications, the future of mobile tech & social interaction, something tangible and not abstract, somewhere where I can take a minor in music/art/design
inspiration: randy pausch, johnny lee, blaise aguera, jeff han, 42entertainment, and jonathan harris (ted.com) | 0 | [
2,
4883,
1129,
22,
18,
1168,
1726,
60,
800,
3726,
3726,
31,
22,
79,
11989,
26,
21,
5001,
19,
1080,
16,
328,
159,
17,
23,
5712,
100,
1276,
41,
18389,
26,
4883,
118,
673,
20025,
2762,
1129,
22,
18,
4442,
19,
272,
18,
9,
31,
277,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
InternetExplorer automation object + PerformanceCounter = not working?
===
I'm currently trying to build a simple component which should monitor, if the user opens a window with a specific url (IE only).
So I wrote this component and everything works fine, so I intergrated it with the application, where it was needed.
The problem is, in this application PerformanceCounters are used, and these seem to disturb the behaviour of the InternetExplorer automation object.
So I wrote this little sample to demonstrate the problem:
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Diagnostics;
using SHDocVw;
namespace IEHookTest
{
class Program
{
static void Main(string[] args)
{
Thread t = new Thread(PerfCounter);
t.Start();
URLInterceptor.Instance.StartListening();
Console.ReadLine();
}
private static void PerfCounter()
{
PerformanceCounter cpuPc =
new PerformanceCounter("Processor", "% Processor Time", "_Total", true);
do
{
float x = cpuPc.NextValue();
System.Diagnostics.Debug.WriteLine(x);
Thread.Sleep(50);
} while (true);
}
}
class URLInterceptor
{
private const string DEMANDED_URL = "test";
private ShellWindows _shellWindows = new ShellWindows();
public static readonly URLInterceptor Instance = new URLInterceptor();
private static int _count = 0;
private URLInterceptor()
{
}
public void StartListening()
{
_count++;
_shellWindows.WindowRegistered -= ShellWindows_WindowRegistered;
_shellWindows.WindowRegistered += new DShellWindowsEvents_WindowRegisteredEventHandler(ShellWindows_WindowRegistered);
FindIEs();
}
private void FindIEs()
{
int count = 0;
foreach (InternetExplorer browser in _shellWindows)
{
browser.NewWindow3 -= browser_NewWindow3;
browser.NewWindow3 += new DWebBrowserEvents2_NewWindow3EventHandler(browser_NewWindow3);
count++;
}
}
private void ShellWindows_WindowRegistered(int lCookie)
{
FindIEs();
}
private void browser_NewWindow3(ref object ppDisp,
ref bool Cancel,
uint dwFlags,
string bstrUrlContext,
string bstrUrl)
{
if (!string.IsNullOrEmpty(bstrUrl) && bstrUrl.ToLower().Contains(DEMANDED_URL))
{
Cancel = true;
Console.WriteLine("catched URL: " + bstrUrl);
}
}
}
}
This sample needs a reference to the "Microsoft Internet Controls" (SHDocVw).
To test the sample, just open google and search for "test". Take the first link and open it in a new tab or window.
You will see, that sometimes the "NewWindow3" event is raised, and sometimes it is not.
But if you comment out line 15 (Thread start), the objects works as expected, and raises the event for every new window.
So my question is, why are is the performance counter disturbing the InternetExplorer object, and how can I use both. I tried to run the monitor component in a new AppDomain, but that didn't solve the problem. Only creating a new process was a solution, but this is want I don't want to do, for serveral reasons.
I'm testing on Win2k3 server with IE 7.
tia
Martin | 0 | [
2,
2620,
6899,
7386,
106,
23217,
3095,
2754,
956,
24416,
800,
52,
638,
60,
800,
3726,
3726,
31,
22,
79,
871,
749,
20,
1895,
21,
1935,
5912,
56,
378,
7626,
15,
100,
14,
4155,
8965,
21,
1463,
29,
21,
1903,
287,
6362,
13,
5,
660,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
error msg in avr studio4
===
i have recently purchased an AVR USB programmer from robokits.co.in, was trying to program atmeg8 using AVR studio4 and i get the following when i click on the program options:
a problem occurred when executing the command. make sure u are using the correct programming method. current mode is ISP
verify that the device is placed in the correct socket, and that the ISP cable is connected properly.check that the programming frequency specified in the main page is well below 1/4th of the clock frequency of the device.
i have tried all that i could think of, i have checked the connections and the freq is below 1/4th of the device.
but that doesn't solve this problem
i have made the circuit for blinking LEDs program
please help me out
see the image for details![alt text][1]
thanking you
[1]: http://1.bp.blogspot.com/_Fa6w_-W-IXs/SQV9DQ54-1I/AAAAAAAAAIE/1XI3HX5ESRk/s1600-h/a.jpg | 0 | [
2,
7019,
4235,
263,
19,
21,
6938,
1120,
300,
800,
3726,
3726,
31,
57,
1989,
2432,
40,
21,
6938,
182,
220,
17968,
37,
3830,
3085,
7363,
9,
716,
9,
108,
15,
23,
749,
20,
625,
35,
790,
263,
457,
568,
21,
6938,
1120,
300,
17,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Automatically Remove Subversion Unversioned Files
===
does anybody know a way to recursively remove all files in a working copy that are not under version control? (I need this to get more reliable results in my automatic build VMware.)
Thanks,
Stefan | 0 | [
2,
7499,
4681,
972,
10898,
367,
10898,
69,
6488,
800,
3726,
3726,
630,
11181,
143,
21,
161,
20,
302,
24244,
102,
4681,
65,
6488,
19,
21,
638,
4344,
30,
50,
52,
131,
615,
569,
60,
13,
5,
49,
376,
48,
20,
164,
91,
11398,
1736,
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,
0,
0,
0,
0,
0,
0... |
How could I improve this code ( C++ )
===
I want your suggestion on the following pseudo-code . Please suggest how could I improve it,whether or not I could use some design patterns .
<pre><code>
// i'm receiving a string containing : id operation arguments
data = read(socket);
tokens = tokenize(data," "); // tokenize the string based on spaces
if(tokens[0] == "A") {
if(tokens[1] == "some_operation") {
// here goes code for some_operation , will use the remaining tokens as arguments for function calls
}
else if(tokens[1] == "some_other_operation") {
// here goes code for some_other_operation , will use the remaining tokens
}
...
else {
// unknown operation
}
}
else if(tokens[0] == "B") {
if(tokens[1] == "some_operation_for_B") {
// do some operation for B
}
else if(tokens[1] == "yet_another_operation") {
// do yet_another_operation for B
}
...
else {
// unknown operation
}
}
</code></pre>
I hope you get the point . The thing is I have a large number of <strong>id's</strong> and each has it's own <strong>operations</strong> , and I think it's kinda ugly to have 10 screens of code containing a lot of <strong>if's</strong> and <strong>else if's</strong>. | 0 | [
2,
184,
110,
31,
3545,
48,
1797,
13,
5,
272,
20512,
13,
6,
800,
3726,
3726,
31,
259,
154,
10910,
27,
14,
249,
8452,
8,
9375,
13,
9,
2247,
5601,
184,
110,
31,
3545,
32,
15,
26340,
54,
52,
31,
110,
275,
109,
704,
6282,
13,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Modelling an I-Section in a 3D Graphics Library
===
I am using Direct3D to display a number of I-sections used in steel construction. There could be hundreds of instances of these I-sections all over my scene.
I could do this two ways:
![I-Sections][1]
Using method A, I have fewer surfaces. However, with backface culling turned on, the surfaces will be visible from only one side. If backface culling is turned off, then the flanges (horizontal plates) and web (vertical plate) may be rendered in the wrong order.
Method B seems correct (and I could keep backface culling turned on), but in my model the thickness of plates in the I-section is of no importance and I would like to avoid having to create a separate triangle strip for each side of the plates.
Is there a better solution? Is there a way to switch off backface culling for only certain calls of DrawIndexedPrimitives? I would also like a platform-neutral answer to this, if there is one.
[1]: http://vulcan.eager.googlepages.com/i-section.png | 0 | [
2,
23089,
40,
31,
8,
10579,
19,
21,
203,
43,
8351,
1248,
800,
3726,
3726,
31,
589,
568,
1744,
240,
43,
20,
3042,
21,
234,
16,
31,
8,
10579,
18,
147,
19,
1951,
900,
9,
80,
110,
44,
4541,
16,
13946,
16,
158,
31,
8,
10579,
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... |
What laptop is the most friendly to linux? (for programming)
===
I want to buy a laptop for programming under linux and I have no idea what specific problems can appear (like "no drivers for device", "impossible to hibernate" and so on...)
What should I think of when selecting new laptop for linux?
I will run Ubuntu, C++, SBCL. Also I will convert photos from my Nikon D80, but not more (so laptop is not graphics-oriented).
I've already owned Asus A9 and Samsung R40 laptops and neither of them were good enough.
These laptops were actually cheap, so I have no questions about them. But Macbook Pro is not an option for me either: it looks cool, but it's far too expensive. I think about IBM Thinkpad, but I'm not really sure if this is what I need.
So, my requirements are:
- long battery life;
- good drivers support for linux (Ubuntu);
- price not higher than $1500.
About other requirements I would better accept your opinion.
P.S. I've read <a href="http://stackoverflow.com/questions/9157/what-is-the-best-laptop-for-programmers">what-is-the-best-laptop-for-programmers</a>, but it doesn't answer my question... | 4 | [
2,
98,
12294,
25,
14,
127,
4753,
20,
13024,
60,
13,
5,
1106,
3143,
6,
800,
3726,
3726,
31,
259,
20,
3034,
21,
12294,
26,
3143,
131,
13024,
17,
31,
57,
90,
882,
98,
1903,
1716,
92,
1893,
13,
5,
1403,
13,
7,
251,
5783,
26,
364... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Convert complex XML structures to DataSet with multiple tables
===
What is the best way to convert an XML document to a .NET 2.0 DataSet. The XML document contains complex structures with parent-child relationships and should be transformed into multiple tables in the DataSet. The DataSet tables should also maintain the relationship among tables.
right now, I've to write custom XSLT to do this transformation | 0 | [
2,
184,
20,
8406,
1502,
23504,
3815,
20,
1054,
3554,
29,
1886,
7484,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
8406,
40,
23504,
4492,
20,
21,
13,
9,
2328,
172,
9,
387,
1054,
3554,
9,
14,
23504,
4492,
1588,
1502,
3815,
29,
4766,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Activex from java application?
===
Is it possible to easily embed ActiveX controls in Java application? Is it worth it. In my next project I should either use existing activex in Java app or have to reimplement everything from scratch, so I'm wondering what will be less hassle. | 0 | [
2,
1348,
396,
37,
8247,
3010,
60,
800,
3726,
3726,
25,
32,
938,
20,
2351,
11911,
69,
1348,
396,
8671,
19,
8247,
3010,
60,
25,
32,
2715,
32,
9,
19,
51,
328,
669,
31,
378,
694,
275,
3149,
1348,
396,
19,
8247,
4865,
54,
57,
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... |
Can I make subclasses override a method without making it abstract?
===
I have a class with some abstract methods, but I want to be able to edit a subclass of that class in the designer. However, the designer can't edit the subclass unless it can create an instance of the parent class. So my plan is to replace the abstract methods with stubs and mark them as virtual - but then if I make another subclass, I won't get a compile-time error if I forget to implement them.
Is there a way to mark the methods so that they have to be implemented by subclasses, without marking them as virtual? | 0 | [
2,
92,
31,
233,
972,
1898,
160,
84,
11891,
21,
2109,
366,
544,
32,
8502,
60,
800,
3726,
3726,
31,
57,
21,
718,
29,
109,
8502,
3195,
15,
47,
31,
259,
20,
44,
777,
20,
9392,
21,
972,
1898,
16,
30,
718,
19,
14,
4742,
9,
207,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 events
===
How does the event creation and handling work in Java? | 0 | [
2,
8247,
963,
800,
3726,
3726,
184,
630,
14,
807,
2502,
17,
7988,
170,
19,
8247,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Standalone app: keep the database healthy/responsive over time
===
I have a winforms c# application using a mssql express database. The application is deployed on the pc's of our customers and they don't have computer related knowledge.
The application updates the database regular and I see a lot of fragmentation on the index files. How do I keep the database healthy/responsive over time?
I was thinking about programming a stored procedure which reorganize every index. But I lack t-sql skills. So can someone lead me in the right direction?
Bas | 0 | [
2,
26986,
4865,
45,
643,
14,
6018,
7714,
118,
22153,
84,
85,
800,
3726,
3726,
31,
57,
21,
628,
4190,
18,
272,
5910,
3010,
568,
21,
4235,
18,
22402,
2999,
6018,
9,
14,
3010,
25,
6698,
27,
14,
5168,
22,
18,
16,
318,
5279,
17,
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... |
Windows Forms Modal Dialog that returns an Object rather than DialogResult
===
I'm kinda stuck with this one so I hoped someone could help me.
I am doing a Winforms application and I need to show a Modal Dialog (form.ShowDialog) that returns a value (prompts the User some values and wraps them in a Object).
I just can't see how to do this rather than give a reference into the object or depending on some form of public Property to read the data afterwards.
I'd just like to have ShowDialog return something different, but that doesn't work.
Is thare some "good" way to do this?
I'm sure the problem isn't new, but since almost nobody seems to do Winforms any more I can't find any guidance on the web. | 0 | [
2,
1936,
1997,
13,
20756,
28223,
30,
4815,
40,
3095,
864,
119,
28223,
29955,
800,
3726,
3726,
31,
22,
79,
21096,
4549,
29,
48,
53,
86,
31,
3691,
737,
110,
448,
55,
9,
31,
589,
845,
21,
628,
4190,
18,
3010,
17,
31,
376,
20,
298... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 use foriegn key into new table
===
I have one table
CREATE TABLE GUEST(id int(15) not null auto_increment PRIMARY KEY, GuestName char(25) not null);
CREATE TABLE PAYMENT(id int(15)not null auto_increment Foriegn Key(id) references GUEST(id), BillNr int(15) not null);
what is problem in second command, why it is not working please correct me. it did not create new table.
thanks
| 0 | [
2,
184,
20,
275,
26,
660,
9776,
1246,
77,
78,
859,
800,
3726,
3726,
31,
57,
53,
859,
1600,
859,
2427,
5,
1340,
19,
38,
5,
1193,
6,
52,
16203,
3108,
1,
28461,
1256,
1246,
15,
2427,
7259,
4892,
5,
1811,
6,
52,
16203,
6,
73,
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... |
Can I compare two ms-access files
===
I want to compare two ms-access .mdb files to check that the data they contain is same in both. Is there any tool or library exists for this type of comparison? | 0 | [
2,
92,
31,
11590,
81,
4235,
8,
20604,
6488,
800,
3726,
3726,
31,
259,
20,
11590,
81,
4235,
8,
20604,
13,
9,
79,
9007,
6488,
20,
2631,
30,
14,
1054,
59,
3717,
25,
205,
19,
156,
9,
25,
80,
186,
5607,
54,
1248,
5636,
26,
48,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Moving to Subversion from SourceSafe
===
We're a distributed team of 5 developers working on rather large integrations project. We currently use SourceSafe (yes I *know* it sucks but it has just worked until recently and we've used it forever). Our biggest problem has recently become performance. Checking in and out project just takes forever and we're finding ourselves spending a lot of time just waiting for SourceSafe (yes we've turned off anti-virus check and all the other performance boost trix - it's still slow).
We're now looking into setting up and moving all our stuff to Subversion instead. *How is performance in SourceSafe over the web compared to Subversion?* I guess that the history isn't that important to move (we could just go back to the VSS database if we need an old file) and the the actually moving of files to Subversion should be a problem - right?
I'd also like to have some input on tools and add-ons that are "must have" besides the actual Subversion core tools. | 0 | [
2,
1219,
20,
972,
10898,
37,
1267,
18166,
800,
3726,
3726,
95,
22,
99,
21,
4387,
173,
16,
331,
10168,
638,
27,
864,
370,
8078,
18,
669,
9,
95,
871,
275,
1267,
18166,
13,
5,
1714,
31,
1637,
17806,
2483,
32,
8466,
18,
47,
32,
63... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Approaches to creating the View for "Humble Dialogs"
===
I have a bunch of questions to post regarding the issue of separating the view from logic when creating a GUI.
The following is a minimal example of what I would do for a simple dialog that has a label and a button using the "Humble Dialog" approach. Pressing the button should show some text on the label. I have used C++ an Qt that I am comfortable with but I guess it is readable by all other audiences.
In any case I am interested in possible side effects because of the choice of language (I am using C++ in the project I am interested in introducing this).
class IView {
public:
IView(){}
virtual ~IView(){}
virtual void showResult(const QString &text)=0;
};
class Presenter {
public:
Presenter(IView *view){
m_View = view;
}
~Presenter(){}
void buttonPressed(const QString &text){
QString text;
// Evaluate text
m_View->showResult(text);
}
private:
IView *m_View;
}
// Multiple inheritance. Is this OK?
class MyView : public IView , public QDialog {
public:
MyView(){
m_Presenter = new Presenter(this);
m_Button = new QPushbutton(this);
m_Label = new QLabel(this);
// Ui event handled inside view but then directly
// propagated to the Presenter
connect(m_Button,SIGNAL(clicked()),this,SLOT(buttonPressed()));
}
~MyView(){
delete m_Presenter;
// Qt will automatically delete m_Button and m_Label;
}
void showResult(const QString &text){
m_Label->setText(text);
}
protected slots:
void buttonPressed(){
m_Presenter->buttonPressed();
}
private:
Presenter *m_Presenter;
QPushbutton *m_Button;
QLabel *m_Label;
}
class TestView : public IView {
public:
TestView(){}
~TestView(){}
void showResult(const QString &text){
m_LabelText = text;
}
QString getResult(){
return m_LabelText;
}
private:
QString m_LabelText;
}
// Test code
TestView view;
Presenter presenter(&view);
presenter.buttonPressed();
EXPECT_EQ(view.getResult(),"Expected Result");
// Procuction code
MyView view;
view.show();
Now this is what I got by following the [initial work on the Humble dialog by Feathers][1]. The approach that I would get from [Fowler's implentation][2] would be to avoid creating the instance of the Presenter class in the constructor of MyView but pass it as a parameter instead so the production code would look like the test code. I personally like the approach I present here.
So,
* Is it meant to be used with multiple inheritance (see my comment in MyView class)?
* Should the events be propagated directly to the Presenter or should they be handled in the view that will call the respective presenter action (as I have done here to avoid having to make the Presenter a QObject so it can handle UI events)?
* Are there any other remarks?
[1]: http://www.objectmentor.com/resources/articles/TheHumbleDialogBox.pdf
[2]: http://codebetter.com/blogs/jeremy.miller/pages/129546.aspx | 0 | [
2,
7501,
20,
2936,
14,
1418,
26,
13,
7,
252,
23977,
28223,
18,
7,
800,
3726,
3726,
31,
57,
21,
7653,
16,
2346,
20,
678,
3467,
14,
1513,
16,
16880,
14,
1418,
37,
7085,
76,
2936,
21,
9457,
9,
14,
249,
25,
21,
8663,
823,
16,
98... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Get current/active security zone of a .NET application?
===
I have an application that behaves oddly, and just to verify, I'd like to see which security zone it is currently running under.
I've found the System.Security.SecurityZone enum, but can't seem to find anything that will return which of these I'm running under.
Does anyone have any tips?
Basically I want to find out if my application is running in MyComputer, Intranet, Internet, Untrusted, Trusted, etc. | 0 | [
2,
164,
866,
118,
7889,
1221,
2464,
16,
21,
13,
9,
2328,
3010,
60,
800,
3726,
3726,
31,
57,
40,
3010,
30,
14149,
18,
17459,
15,
17,
114,
20,
21012,
15,
31,
22,
43,
101,
20,
196,
56,
1221,
2464,
32,
25,
871,
946,
131,
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... |
How to register a .NET CCW with regasm from a Visual Studio 2008 Setup project
===
I have a setup project for a .NET Service Application which uses a .NET component wich exposes a COM interface (COM callable wrapper / CCW).
To get the component working on a target machine, it has to be registered with
> regasm.exe /tlb /codebase component.dll
The /tlb switch to generate the typelib is mandatory in this case, otherwise i can't create objects from that assembly.
The question is, how can i configure my Visual Studio 2008 Setup-Project to register this assembly with a call to regasm /tlb ?
| 0 | [
2,
184,
20,
2243,
21,
13,
9,
2328,
8093,
499,
29,
302,
6927,
79,
37,
21,
3458,
1120,
570,
18161,
669,
800,
3726,
3726,
31,
57,
21,
18161,
669,
26,
21,
13,
9,
2328,
365,
3010,
56,
2027,
21,
13,
9,
2328,
5912,
13,
13583,
13833,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
patterns for controllers in MVC application
===
What are your favourite patterns for writing a controller? | 0 | [
2,
6282,
26,
9919,
18,
19,
307,
8990,
3010,
800,
3726,
3726,
98,
50,
154,
7740,
6282,
26,
1174,
21,
9919,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Dynamic Compilation of ASP.NET Page?
===
How can I achieve this? I am trying to load content from the database and fuse it together with the Content control. The progrm is some of the content has dynamic bits to it and thus would like it to be compiled on the fly. Has anyone done this sort of stuff before? | 0 | [
2,
7782,
4868,
16,
28,
306,
9,
2328,
2478,
60,
800,
3726,
3726,
184,
92,
31,
4689,
48,
60,
31,
589,
749,
20,
6305,
2331,
37,
14,
6018,
17,
13,
13072,
32,
429,
29,
14,
2331,
569,
9,
14,
895,
8807,
79,
25,
109,
16,
14,
2331,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Converting one XML document into another XML document
===
I want to convert an XML document containing many elements within a node (around 150) into another XML document with a slightly different schema but mostly with the same element names. Now do I have to manually map each element/node between the 2 documents. For that I will have to hardcode 150 lines of mapping and element names. Something like this:
XElement newOrder = new XElement("Order");
newOrder.Add(new XElement("OrderId", (string)oldOrder.Element("OrderId")),
newOrder.Add(new XElement("OrderName", (string)oldOrder.Element("OrderName")),
...............
...............
...............and so on
The newOrder document may contain additional nodes which will be set to null if nothing is found for them in the oldOrder. So do I have any other choice than to hardcode 150 element names like orderId, orderName and so on... Or is there some better more maintainable way? | 0 | [
2,
19583,
53,
23504,
4492,
77,
226,
23504,
4492,
800,
3726,
3726,
31,
259,
20,
8406,
40,
23504,
4492,
3503,
151,
2065,
363,
21,
15421,
13,
5,
10037,
4354,
6,
77,
226,
23504,
4492,
29,
21,
1847,
421,
23874,
47,
1555,
29,
14,
205,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Reccemended a automatic web application availiblity checker
===
I am looking for a piece of software that I can schedule to check that our web apps are up and running. I've used HP open view years ago, but remember it being quite expensive, I'm looking for something open source or cheap.
So it would login in and do some simple actions maybe submit form and check for some text on screen that means the web app is running ok and then email me if the website is down.
I could create a test using the Selenium IDE, and automate it with an Ant script but looking for a more streamlined solution that a non programming could use.
Any suggestions?
Thanks,
Scotty | 0 | [
2,
6042,
1105,
79,
10726,
21,
6715,
2741,
3010,
24240,
49,
6287,
856,
2631,
106,
800,
3726,
3726,
31,
589,
699,
26,
21,
1855,
16,
2306,
30,
31,
92,
4345,
20,
2631,
30,
318,
2741,
4865,
18,
50,
71,
17,
946,
9,
31,
22,
195,
147,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
monkey testing software for windows apps
===
I would like to stress test a win32 application by sending a lot of random keystrokes to it, and I wonder if anyone could point me to some software I could use. Ideally, I should be able to specify which keystrokes should be sent, at which rate. | 0 | [
2,
11861,
4431,
2306,
26,
1936,
4865,
18,
800,
3726,
3726,
31,
83,
101,
20,
5384,
1289,
21,
628,
3125,
3010,
34,
4907,
21,
865,
16,
5477,
1246,
12962,
18,
20,
32,
15,
17,
31,
2666,
100,
1276,
110,
454,
55,
20,
109,
2306,
31,
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... |
ASP.AJAX TabContainer/TabPanel Customisation
===
Is it possible to set the position of the tabs to be at the bottom of the tabcontainer using the AjaxToolkit? You do have some control over the CSS but I'm not au-fait enough with CSS to see whether it's feasible?
Thanks | 0 | [
2,
28,
306,
9,
6881,
7522,
6523,
1126,
5851,
106,
118,
15783,
3206,
532,
5816,
4330,
800,
3726,
3726,
25,
32,
938,
20,
309,
14,
649,
16,
14,
6523,
18,
20,
44,
35,
14,
2129,
16,
14,
6523,
1126,
5851,
106,
568,
14,
20624,
20799,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
truncate output in BASH
===
How do I truncate output in BASH?
For example, if I "du file.name" how do I just get the numeric value and nothing more? | 0 | [
2,
22328,
62,
5196,
19,
13158,
800,
3726,
3726,
184,
107,
31,
22328,
62,
5196,
19,
13158,
60,
26,
823,
15,
100,
31,
13,
7,
2323,
3893,
9,
7259,
7,
184,
107,
31,
114,
164,
14,
15764,
596,
1923,
17,
626,
91,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to output a String on multiple lines using Graphics
===
My Program overrides `public void paint(Graphics g, int x, int y);` in order to draw some stings using `g.drawString(someString, x+10, y+30);`
Now someString can be quite long and thus, it may not fit on one line.<br>
What is the best way to write the text on multiple line.<br> For instance, in a rectangle (x1, y1, x2, y2)? | 0 | [
2,
184,
20,
5196,
21,
3724,
27,
1886,
1560,
568,
8351,
800,
3726,
3726,
51,
625,
84,
11891,
18,
13,
1,
12259,
11364,
5107,
5,
12084,
18,
489,
15,
19,
38,
993,
15,
19,
38,
13,
93,
6,
73,
1,
19,
389,
20,
2003,
109,
8210,
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... |
Subversion server on 64-bit Windows?
===
I want to set up a Subversion server installation on Windows Server 2003 64-bit and I'm considering using [VisualSVN Server](http://www.visualsvn.com/server/). Does this work OK in a 64-bit environment? Are there any issues or gotchas I should be aware of before installing the software?
Many thanks! | 0 | [
2,
972,
10898,
8128,
27,
4384,
8,
3326,
1936,
60,
800,
3726,
3726,
31,
259,
20,
309,
71,
21,
972,
10898,
8128,
7758,
27,
1936,
8128,
973,
4384,
8,
3326,
17,
31,
22,
79,
5154,
568,
636,
20893,
18,
16578,
8128,
500,
5,
21127,
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,
1,
1,
1,
1,
1,
1,
1,
1... |
Tutorial for JDI (Java Debugger Interface)
===
I like to generate a thread dump programmatically. I've learned that there a basically two ways to do it:
1. Use the "Java Virtual Machine Tool Interface" JVM-TI
2. Use the higher abstracted "Java Debugger Interface" JDI
For the JVM-TI I was able to find some useful information, but I would have to write a JNI-DLL which, at least for the moment, I would like to avoid. With the JDI I can use Java and it seems I'm able to use it from within the application. But I wasn't able to find some kind of tutorial or HOWTO for it. The only documentation I could find, were the Java-Docs http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/ which isn't very helpful, because it doesn't show me how to use this classes.
So, does anybody know of a good tutorial/book I could read?
Thx for any help! | 0 | [
2,
29724,
26,
487,
1115,
13,
5,
1004,
1385,
121,
2345,
11356,
6573,
6,
800,
3726,
3726,
31,
101,
20,
7920,
21,
9322,
11424,
625,
6732,
1326,
9,
31,
22,
195,
2691,
30,
80,
21,
11374,
81,
2847,
20,
107,
32,
45,
137,
9,
275,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I return my records grouped by NULL and NOT NULL?
===
I have a table that has a `processed_timestamp` column -- if a record has been processed then that field contains the datetime it was processed, otherwise it is null.
I want to write a query that returns two rows:
NULL xx -- count of records with null timestamps
NOT NULL yy -- count of records with non-null timestamps
Is that possible?
TIA! | 0 | [
2,
184,
107,
31,
788,
51,
742,
19511,
34,
16203,
17,
52,
16203,
60,
800,
3726,
3726,
31,
57,
21,
859,
30,
63,
21,
13,
1,
16835,
69,
1,
891,
384,
10158,
1,
4698,
13,
8,
8,
100,
21,
571,
63,
74,
16697,
94,
30,
575,
1588,
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... |
Web Design Tool for Web Developer
===
I would like to see if there is such a tool that allows reusable web template with components like menu and form easily applied. Basically I want to mock a very simple interface using html, to see if the navigation is working, then generate a pure XHTML/CSS for me to use on my web projects. | 0 | [
2,
2741,
704,
5607,
26,
2741,
10058,
800,
3726,
3726,
31,
83,
101,
20,
196,
100,
80,
25,
145,
21,
5607,
30,
2965,
302,
267,
579,
2741,
22894,
29,
5090,
101,
11379,
17,
505,
2351,
2435,
9,
11374,
31,
259,
20,
10506,
21,
253,
1935... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Forcing application to throw specific exceptions
===
We are replacing the exception handling system in our app in order to conform to Vista certification, but the problem is how to force certain exceptions to be thrown, so that we can check the response.
Unfortunately the whole app was written without taking into consideration proper layering, abstraction or isolation principles, and within the timeframe introducing mocking and unit testing is out of the question :(
My idea is to introduce code which will throw a particular exception, either through a compiler directive or by respecting a value in the config file. We can then just run the app as normal and manually check how the exception is handled.
Just thought I'd put it out there and see if the SO community can think of anything better!
Cheers | 0 | [
2,
6135,
3010,
20,
3814,
1903,
13392,
800,
3726,
3726,
95,
50,
5496,
14,
5391,
7988,
329,
19,
318,
4865,
19,
389,
20,
13620,
20,
13520,
10439,
15,
47,
14,
1448,
25,
184,
20,
558,
1200,
13392,
20,
44,
6027,
15,
86,
30,
95,
92,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
When should I use primitives instead of wrapping objects?
===
Actually [here][1] is a similar topic with little practical value.
As far as I understand, primitives perform better and should be used everywhere except for the cases where Object-related features (e.g. `null` check) are needed. Right?
[1]: http://stackoverflow.com/questions/564/what-is-the-difference-between-an-int-and-an-integer-in-javac | 0 | [
2,
76,
378,
31,
275,
11473,
18,
700,
16,
13437,
3916,
60,
800,
3726,
3726,
1121,
636,
6836,
500,
2558,
165,
500,
25,
21,
835,
8303,
29,
265,
5713,
1923,
9,
28,
463,
28,
31,
1369,
15,
11473,
18,
2985,
574,
17,
378,
44,
147,
641... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Decode escaped Url without using HttpUtility.UrlDecode
===
Is there any function that converts an escaped Url string to its unescaped form? System.Web.HttpUtility.UrlDecode() can do that job but I don't want to add a reference to System.Web.dll. Since my app is not a web application, I don't want to add a dependency for only using a function in an assembly. | 0 | [
2,
121,
9375,
5409,
287,
6362,
366,
568,
7775,
14255,
856,
9,
911,
255,
546,
9375,
800,
3726,
3726,
25,
80,
186,
1990,
30,
8406,
18,
40,
5409,
287,
6362,
3724,
20,
82,
367,
13944,
3631,
505,
60,
329,
9,
14113,
9,
21127,
14255,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Web Application Infrastructure
===
I have custom coded several enterprise applications for mid to large organizations to use internally (some with a minimal external footprint). I now have plans for a web project that may (hopefully) see a large userbase with more daily traffic than my previous projects have ever attained. Obviously I want my design to be scalable and maintainable. The problem is that from a physical layout perspective (servers/VMs) I do not know what to expect.
The question: What are some good resources for this? Books? Websites? I have found plenty on scalable application design, but nothing on scalable physical design. | 0 | [
2,
2741,
3010,
5282,
800,
3726,
3726,
31,
57,
5816,
13,
22254,
238,
6002,
3767,
26,
907,
20,
370,
2856,
20,
275,
17739,
13,
5,
3220,
29,
21,
8663,
4886,
18511,
6,
9,
31,
130,
57,
1753,
26,
21,
2741,
669,
30,
123,
13,
5,
18930,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 stop a DataGridView from automatically selecting a row?
===
I have a DataGridView control in a TabPage, and I listen for the SelectionChanged event. When the TabPage is selected, the DataGridView selects the first row and fires the SelectionChanged event. How can I stop it from automatically selecting a row? | 0 | [
2,
184,
107,
31,
747,
21,
1054,
16375,
4725,
37,
7499,
20764,
21,
3131,
60,
800,
3726,
3726,
31,
57,
21,
1054,
16375,
4725,
569,
19,
21,
6523,
6486,
15,
17,
31,
3834,
26,
14,
3155,
16229,
43,
807,
9,
76,
14,
6523,
6486,
25,
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... |
How to access XML version of CruiseContol.NET Web Dashboard (over HTTP)?
===
Well, that's it. | 0 | [
2,
184,
20,
1381,
23504,
615,
16,
6581,
1126,
13741,
9,
2328,
2741,
26478,
13,
5,
2549,
7775,
6,
60,
800,
3726,
3726,
134,
15,
30,
22,
18,
32,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
STL sorted set where the conditions of order may change
===
I have a C++ STL set with a custom ordering defined.
The idea was that when items get added to the set, they're naturally ordered as I want them.
However, what I've just realised is that the ordering predicate can change as time goes by.
Presumably, the items in the set will then no longer be in order.
So two questions really:
1. Is it harmful that the items would then be out of order? Am I right in saying that the worst that can happen is that new entries may get put into the wrong place (which actually I can live with). Or, could this cause crashes, lost entries etc?
2. Is there a way to "refresh" the ordering of the set? You can't seem to use std::sort() on a set. The best I can come up with is dumping out the contents to a temp container and re-add them.
Any ideas?
Thanks,
John | 0 | [
2,
354,
255,
22554,
309,
113,
14,
2039,
16,
389,
123,
753,
800,
3726,
3726,
31,
57,
21,
272,
20512,
354,
255,
309,
29,
21,
5816,
15775,
2811,
9,
14,
882,
23,
30,
76,
3755,
164,
905,
20,
14,
309,
15,
59,
22,
99,
8000,
1905,
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... |
Modeling a 1 to 1..n relationship in the database
===
How would you model hotel room to guests relationship (in PostgreSQL, if it matters)? A room can have several guests, but at least one.
Sure, one can relate guests to rooms with a foreign key `room_id`. But how do you enforce on the DBMS level that a room must have at least one guest?
May be it's just impossible? | 0 | [
2,
12807,
21,
137,
20,
137,
9,
9,
103,
1429,
19,
14,
6018,
800,
3726,
3726,
184,
83,
42,
1061,
1454,
337,
20,
5516,
1429,
13,
5,
108,
678,
6879,
18,
22402,
15,
100,
32,
4556,
6,
60,
21,
337,
92,
57,
238,
5516,
15,
47,
35,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Refresh Excel whilst Debugging
===
If I am debugging (in this case a Visual Studio assembly called by Excel) and the code updates the Excel worksheet, how do I get Excel to redraw the current sheet / window whilst paused in the debugger? | 0 | [
2,
184,
107,
31,
24905,
20700,
4575,
121,
16254,
2762,
800,
3726,
3726,
100,
31,
589,
121,
16254,
2762,
13,
5,
108,
48,
610,
21,
3458,
1120,
1475,
227,
34,
20700,
6,
17,
14,
1797,
16779,
14,
20700,
170,
17627,
15,
184,
107,
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... |
In terms of the ability to deploy, does any web programming language stand out or lag behind the others?
===
In terms of the number of servers ready to receive an application written in the language, the number of people who can write code using the language, and so on? | 0 | [
2,
19,
1663,
16,
14,
2165,
20,
17617,
15,
630,
186,
2741,
3143,
816,
1261,
70,
54,
13,
6828,
439,
14,
654,
60,
800,
3726,
3726,
19,
1663,
16,
14,
234,
16,
17595,
1451,
20,
2588,
40,
3010,
642,
19,
14,
816,
15,
14,
234,
16,
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,
0,
0,
0,
0... |
XSD change the available elements based on a previous Element Value
===
Is there a way to change the available elements based on a previous element value?
I have some lookup 'Cause' codes but some of these only belong to certain 'Products'.
I therefore want to create each products lookup cause code enumeration and let this only be available based on the product selection.
Is this possible ?
Many Thanks
| 0 | [
2,
993,
18,
43,
753,
14,
904,
2065,
432,
27,
21,
1158,
4520,
1923,
800,
3726,
3726,
25,
80,
21,
161,
20,
753,
14,
904,
2065,
432,
27,
21,
1158,
4520,
1923,
60,
31,
57,
109,
361,
576,
13,
22,
17560,
22,
11358,
47,
109,
16,
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... |
Application crashing when talking to oracle unless executable path contains spaces
===
We have an x-files problem with our .NET application. Or, rather, hybrid Win32 and .NET application.
When it attempts to communicate with Oracle, it just dies. Vanishes. Goes to the big black void in the sky. No event log message, no exception, no nothing.
If we simply ask the application to talk to a MS SQL Server instead, which has the effect of replacing the usage of OracleConnection and related classes with SqlConnection and related classes, it works as expected.
Today we had a breakthrough.
For some reason, a customer had figured out that by placing all the application files in a directory on his desktop, it worked as expected with Oracle as well. Moving the directory down to the root of the drive, or in C:\Temp or, well, around a bit, made the crash reappear.
Basically it was 100% reproducable that the application worked if run from directory on desktop, and failed if run from directory in root.
Today we figured out that the difference that counted was wether there was a space in the directory name or not.
So, these directories would work:
C:\Program Files\AppDir\Executable.exe
C:\Temp Lemp\AppDir\Executable.exe
C:\Documents and Settings\someuser\Desktop\AppDir\Executable.exe
whereas these would not:
C:\CompanyName\AppDir\Executable.exe
C:\Programfiler\AppDir\Executable.exe <-- Program Files in norwegian
C:\Temp\AppDir\Executable.exe
I'm hoping someone reading this has seen similar behavior and have a "aha, you need to twiddle the frob on the oracle glitz driver configuration" or similar.
Anyone? | 0 | [
2,
3010,
14604,
76,
1582,
20,
15759,
4003,
1396,
17194,
5924,
2013,
1588,
7644,
800,
3726,
3726,
95,
57,
40,
993,
8,
16877,
18,
1448,
29,
318,
13,
9,
2328,
3010,
9,
54,
15,
864,
15,
6957,
628,
3125,
17,
13,
9,
2328,
3010,
9,
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... |
Notkeeping tool that doesn't lock you in
===
We all know that having a good note taking tool is important as a developer.
However, OneNote and Evernote forces us to be locked in to a particular vendor.
Anyone know of good open-source tools, or even other method of taking notes w/o being "locked-in"? | 0 | [
2,
52,
15880,
5607,
30,
1437,
22,
38,
3991,
42,
19,
800,
3726,
3726,
95,
65,
143,
30,
452,
21,
254,
1945,
741,
5607,
25,
681,
28,
21,
10058,
9,
207,
15,
53,
10280,
17,
462,
10280,
879,
182,
20,
44,
4011,
19,
20,
21,
1498,
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... |
simple c# problem
===
All i need is a way to make a property of one class only 'settable' from one other class (a sort of manager class)
Is this even possible in c#?
My colleague 'reliably' informs me that I have a design flaw, but I feel I should at least ask the community before i conceed defeat! | 0 | [
2,
1935,
272,
5910,
1448,
800,
3726,
3726,
65,
31,
376,
25,
21,
161,
20,
233,
21,
1354,
16,
53,
718,
104,
13,
22,
3554,
5924,
22,
37,
53,
89,
718,
13,
5,
58,
2058,
16,
1382,
718,
6,
25,
48,
166,
938,
19,
272,
5910,
60,
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... |
Overriding a method with Generic Parameters in Java?
===
<p>I have an abstract Class <b>Monitor.java</b> which is subclassed by a Class <b>EmailMonitor.java</b>. The method <pre>public abstract List<? extends MonitorAccount> performMonitor(List<? extends MonitorAccount> accounts)</pre> is defined in <b>Monitor.java</b> and must be overridden in <b>EmailMonitor.java</b>.
</p>
<p>
I currently have the method overridden in <b>EmailMonitor.java</b> as follows:
<pre>
@Override
public List<EmailAccount> performMonitor(List<EmailAccount> emailAccounts) {
...//unrelated logic
return emailAccounts;
}
</pre>
</p>
<p>
However, this produces the compile time error: <i>Name clash: The method performMonitor(List<EmailAccount>) of type EmailMonitor has the same erasure as performMonitor(List<? extends MonitorAccount> emailAccounts) of type Monitor but does not override it</i>
<p>EmailAccount is a subclass of MonitorAccount, so (in my mind atleast) overriding it in this way makes perfect sense. Seeing as the compiler is not happy with my logic though, How should I go about this correctly while still keeping my compile time checks to make sure that all calls to <i>EmailMonitor.performMonitor()</i> receive Lists of <b>EmailAccount</b> rather than some other type of <b>MonitorAccount</b>?
</p> | 0 | [
2,
84,
5175,
68,
21,
2109,
29,
12733,
12905,
19,
8247,
60,
800,
3726,
3726,
13,
1,
306,
1,
49,
57,
40,
8502,
718,
13,
1,
220,
1,
2111,
242,
248,
9,
1004,
1385,
1,
118,
220,
1,
56,
25,
972,
1898,
69,
34,
21,
718,
13,
1,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I specify a TCP transport is server mode (listening) or client mode in activemq?
===
The example given for a spring injected endpoint is as follows:
<endpoint id="hl7listener" uri="mina:tcp://localhost:8888?sync=true&codec=hl7codec"/>
How do I setup a client mode endpoint such that is will connect to a specific port on another server?
How do I configure the endpoint to listen for inbound connections? (the example seems to be a listener as indicated by its descriptive id but why?)
Note: I am not actually using the HL7 protocol or codec. I will be developing my own for a proprietary protocol codec. | 0 | [
2,
184,
107,
31,
19077,
21,
13,
38,
7439,
1739,
25,
8128,
3740,
13,
5,
13891,
68,
6,
54,
6819,
3740,
19,
1348,
79,
1251,
60,
800,
3726,
3726,
14,
823,
504,
26,
21,
1573,
23256,
241,
3132,
25,
28,
2415,
45,
13,
1,
2451,
3132,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sys.WebForms.PageRequestManagerServerErrorException 12031
===
I'm occasionaly getting the following popup from an AJAX.NET application
<pre>Sys.WebForms.PageRequestManagerServerErrorException: An Unknown error occurred while processing the request on the server. The status code returned from the server was: 12031</pre>
From the [Microsoft kb][1] that status code indicates a ERROR_INTERNET_CONNECTION_RESET, but it doesn't state what was the underlying issue the triggered the error in the first place.
How can I log/trace/etc the underlying error that generated the popup?
[1]: http://support.microsoft.com/kb/193625 | 0 | [
2,
10315,
18,
9,
14113,
4190,
18,
9,
6486,
99,
10351,
22256,
10321,
106,
29992,
10066,
872,
6029,
3513,
800,
3726,
3726,
31,
22,
79,
7713,
93,
1017,
14,
249,
1675,
576,
37,
40,
20624,
9,
2328,
3010,
13,
1,
3515,
1,
4980,
18,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What tools to use for developing flash/flex based touch screen user interface for embedded system
===
We are looking at developing a device with a touch screen and an embedded PC like computer for the user interface.
What are the benefits and disadvantages of using flash/flex for this user interface development?
One of our goals is to seperate the design (= look and feel) and the functionality of the application to ease the development. | 0 | [
2,
98,
4672,
20,
275,
26,
3561,
4433,
118,
19752,
432,
1723,
2324,
4155,
6573,
26,
12138,
329,
800,
3726,
3726,
95,
50,
699,
35,
3561,
21,
3646,
29,
21,
1723,
2324,
17,
40,
12138,
5168,
101,
1428,
26,
14,
4155,
6573,
9,
98,
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... |
How to get only the schema of the database into a dataset?
===
How to load only the schema of the tables into a dataset. | 0 | [
2,
184,
20,
164,
104,
14,
23874,
16,
14,
6018,
77,
21,
1054,
3554,
60,
800,
3726,
3726,
184,
20,
6305,
104,
14,
23874,
16,
14,
7484,
77,
21,
1054,
3554,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Scenarios for Thread Ordering Service
===
Reading up the new Vista/Win2008 features, I wonder what is the point of the Thread Ordering Service. In other words, in which scenario the "classic" scheduler's "fair to all" policy is not sufficient, and a definite order of threads is preferrable?
| 0 | [
2,
19611,
26,
9322,
15775,
365,
800,
3726,
3726,
1876,
71,
14,
78,
13520,
118,
4181,
2753,
967,
15,
31,
2666,
98,
25,
14,
454,
16,
14,
9322,
15775,
365,
9,
19,
89,
715,
15,
19,
56,
12705,
14,
13,
7,
19824,
7,
4345,
139,
22,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C# - Placing a PDF inside another PDF
===
I have multiple logos of various companies in various formats that needs to be added to other PDFs. The format of these logos is not specified at the moment but it could be locked down to only certain formats if it causes issues.
These other PDFs will be mostly posters and will be printed off by the user.
Question: What is the best way for adding these logo's onto the PDF poster artwork on the fly to then be downloaded and printed by the user? Bareing in mind it needs to retain the original quality of the PDF when being printed.
Thanks in advance | 0 | [
2,
272,
5910,
13,
8,
5861,
21,
13,
11124,
572,
226,
13,
11124,
800,
3726,
3726,
31,
57,
1886,
6449,
18,
16,
617,
1532,
19,
617,
13767,
30,
2274,
20,
44,
905,
20,
89,
13,
11124,
18,
9,
14,
2595,
16,
158,
6449,
18,
25,
52,
993... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Easiest way to read a config file belonging to another application
===
Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don't need to write to it, just grab a couple of values from it.
Thanks
| 0 | [
2,
27237,
161,
20,
1302,
21,
13,
14093,
2816,
3893,
5979,
20,
226,
3010,
800,
3726,
3726,
89,
119,
568,
4333,
23504,
15,
25,
80,
40,
2010,
161,
19,
13,
9,
2328,
20,
368,
17,
1302,
21,
13,
14093,
2816,
3893,
5979,
20,
226,
1475,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Hardware recommendations/limits when using WPF?
===
My company is just starting to look at using WPF for migrating all of our 10 year old business applications. These applications will most of the time be running on computers that have limited/old hardware. We are now a little worried that the hardware might be too limited for using WPF.
We have installed Family.Show (http://www.vertigo.com/familyshow.aspx) on an basic older computer and that seems to run ok. But we would like know what your experiences with WPF on older hardware is? Anyone out there willing to share some experiences with us? | 0 | [
2,
7610,
12121,
118,
20565,
18,
76,
568,
619,
7721,
60,
800,
3726,
3726,
51,
237,
25,
114,
1422,
20,
361,
35,
568,
619,
7721,
26,
28749,
65,
16,
318,
332,
159,
315,
508,
3767,
9,
158,
3767,
129,
127,
16,
14,
85,
44,
946,
27,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Source code of big/popular websites
===
It's great to find all those little snippets of code on the Web for your current needs, but is there anything better than getting whole application source code at once and reading it like a book?
There's no better way to learn positive and negative aspects of various architecture solutions.
That's why I was trying to find some known/big websites with its source code published, but haven't found anything more than I knew already ( http://code.reddit.com/browser )
Do you know anything more?
PS. Just being curious - have you heard about any unofficial big web site source code leak?
| 0 | [
2,
1267,
1797,
16,
580,
118,
28252,
13931,
800,
3726,
3726,
32,
22,
18,
374,
20,
477,
65,
273,
265,
13,
29061,
18,
16,
1797,
27,
14,
2741,
26,
154,
866,
2274,
15,
47,
25,
80,
602,
574,
119,
1017,
979,
3010,
1267,
1797,
35,
382... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AST from C code
===
I want to perform some transformations on C source code. **I need a tool on linux that generates a complete AST from the source code** so that I can apply my transformations on this AST and then convert it back to the C source code. I tried [ELSA][1] but it is not getting compiled. (I am using Ubuntu 8.4). Can anyone suggest a better tool/application?
[1]: http://www.cs.berkeley.edu/~smcpeak/elkhound/sources/elsa/ | 0 | [
2,
28,
38,
37,
272,
1797,
800,
3726,
3726,
31,
259,
20,
2985,
109,
6978,
18,
27,
272,
1267,
1797,
9,
13,
1409,
49,
376,
21,
5607,
27,
13024,
30,
7920,
18,
21,
1279,
28,
38,
37,
14,
1267,
1797,
1409,
86,
30,
31,
92,
5645,
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... |
c# WebRequest class and headers
===
When I try to set the header properties on a WebRequest object, I get the following exception
**This header must be modified using the appropriate property**
I've tried modifying the .Headers propery and adding them that way like so
webRequest.Headers.Add(HttpRequestHeader.Referer, "http://stackoverflow.com");
But still getting exceptions. I can get around this by casting the WebRequest object to a HttpWebRequest and setting the properties such as httpWebReq.Referer ="http://stackoverflow.com"
But I'd like to know if there's a way to get a finer grained control over modifying headers with a request for a remote resource.
Thanks
| 0 | [
2,
272,
5910,
2741,
99,
10351,
718,
17,
157,
445,
800,
3726,
3726,
76,
31,
1131,
20,
309,
14,
157,
106,
3704,
27,
21,
2741,
99,
10351,
3095,
15,
31,
164,
14,
249,
5391,
13,
1409,
1565,
157,
106,
491,
44,
5372,
568,
14,
4593,
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... |
Things possible in IntelliJ that aren't possible in Eclipse?
===
I have heard from people who have switched either way and who swear by the one or the other.
Being a huge Eclipse fan but having not had the time to try out IntelliJ, I am interested hearing from IntelliJ users who are "ex-Eclipsians" some specific things that you can do with IntelliJ that you can not do with Eclipse.
**Note**: This is not a subjective question nor at all meant to turn into a holy IDE war. ***Please downvote any flamebait answers***. Thanks. | 4 | [
2,
564,
938,
19,
19,
4213,
9999,
30,
4847,
22,
38,
938,
19,
11652,
60,
800,
3726,
3726,
31,
57,
752,
37,
148,
72,
57,
6667,
694,
161,
17,
72,
6688,
34,
14,
53,
54,
14,
89,
9,
142,
21,
2329,
11652,
2514,
47,
452,
52,
41,
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 best free plugin for Eclipse that allows for formatting/indenting/cleanup of JSP code?
===
I know that IntelliJ has an option to select all the code in a JSP file, right click, and select "format". This nicely formats all HTML, CSS, scriptlets and JSTL tags in a JSP file. Can Eclipse do this? If not, what is the best free Eclipse plugin that does the same? | 0 | [
2,
98,
25,
14,
246,
551,
10922,
108,
26,
11652,
30,
2965,
26,
2595,
1203,
118,
108,
817,
1203,
118,
20254,
576,
16,
487,
3401,
1797,
60,
800,
3726,
3726,
31,
143,
30,
19,
4213,
9999,
63,
40,
4255,
20,
5407,
65,
14,
1797,
19,
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... |
C++ Code Profiler
===
Can anybody recommend a good code profiler for C++?
I came across Shiny - any good? http://sourceforge.net/projects/shinyprofiler/ | 0 | [
2,
272,
20512,
1797,
5296,
139,
800,
3726,
3726,
92,
11181,
12360,
21,
254,
1797,
5296,
139,
26,
272,
20512,
60,
31,
281,
464,
13091,
13,
8,
186,
254,
60,
7775,
6903,
12097,
1106,
834,
9,
2328,
118,
21011,
18,
118,
9156,
93,
14503... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Looking for Attractive Forum to Add to My Application
===
Looking for an attractive, highly customizable forum plugin to implement. Don't want to build one myself, but don't want to settle for usual crap. Something Ajax-y?
Was leaning towards Community Server but would love to see what others had to reccomend.
Thanks. | 0 | [
2,
699,
26,
7982,
5691,
20,
3547,
20,
51,
3010,
800,
3726,
3726,
699,
26,
40,
7982,
15,
2157,
5816,
3186,
579,
5691,
10922,
108,
20,
8713,
9,
221,
22,
38,
259,
20,
1895,
53,
992,
15,
47,
221,
22,
38,
259,
20,
6080,
26,
3820,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Menu item accel key works only after menu item has been shown.
===
I'm developing a SWT/JFace application using the libraries from Eclipse 3.4.1.
I encounter the following problem on Windows (Vista 32bit) and Ubuntu 8.10 32bit:
I create a menu bar in the createMenuManager method of the JFace ApplicationWindow. I add MenuManagers for file, edit and help.
I then add an ExitAction to the file MenuManager like so:
filemenu.add(new ExitAction(this));
The ExitAction is defined this way:
public class ExitAction extends Action {
final ApplicationWindow window;
public ExitAction(ApplicationWindow w) {
this.window = w;
setText("E&xit");
setToolTipText("Exit the application");
setAccelerator(SWT.MOD1 + 'Q');
}
}
Now when my application starts I want be able to press "CTRL+Q" to quit the application. This does however not work. Only AFTER I click on "File" in the menu bar and THEN clicking "CTRL+Q" the application will quit.
I've tried this with different accelerators- same behavior.
It does work however if I create a "MenuItem" instead of an "Action" to contribute to the menu bar.
Is this a SWT bug or do I miss something?
Torsten.
| 0 | [
2,
11379,
9101,
7602,
532,
1246,
693,
104,
75,
11379,
9101,
63,
74,
1721,
9,
800,
3726,
3726,
31,
22,
79,
3561,
21,
8783,
38,
118,
728,
6413,
3010,
568,
14,
8649,
37,
11652,
203,
9,
300,
9,
165,
9,
31,
7007,
14,
249,
1448,
27,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the correct way to check if a value is a date/number in Delphi
===
What is the correct way to check if a value is a date/number in Delphi?
I know other languages have functions like isDate and isNaN, but what is the Delphi equivalent? at the minute I have this
function isNumeric(s1:string):boolean;
begin
// will throw exception if its not a number
// there must be a better way to do this!!
try
StrTofloat(s1);
result := TRUE ;
except
result := FALSE;
end;
end;
But throwing exceptions cant be good, and it makes debugging hard as I keep seeing the exception dialogue every time the code is called. | 0 | [
2,
98,
25,
14,
4456,
161,
20,
2631,
100,
21,
1923,
25,
21,
1231,
118,
16299,
19,
23030,
800,
3726,
3726,
98,
25,
14,
4456,
161,
20,
2631,
100,
21,
1923,
25,
21,
1231,
118,
16299,
19,
23030,
60,
31,
143,
89,
2556,
57,
3719,
101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are the factors most important to developing a game?
===
I would like to know this to understand why some games like Mario is still playing today and because no other. This is to implement in future game projects.
**What are the factors most important to developing a game?**
Gameplay or Graphics? Both? | 0 | [
2,
98,
50,
14,
4776,
127,
681,
20,
3561,
21,
250,
60,
800,
3726,
3726,
31,
83,
101,
20,
143,
48,
20,
1369,
483,
109,
466,
101,
7204,
25,
174,
791,
786,
17,
185,
90,
89,
9,
48,
25,
20,
8713,
19,
1022,
250,
2314,
9,
13,
1409... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Baffled by an XPath issue on IE
===
David Flanagan's excellent book on JavaScript has an example that shows how to perform XPath queries in IE. On page 518 of fifth edition, you can see the following code snippet taken from example 21-10:
// In IE, the context must be an Element not a document,
// so if the context is a document, use the documentElement instead
if (context == doc) context = doc.documentElement;
return context.selectNodes(this.xpathText);
I found out the hard way that this code is absolutely necessary. It appears (although I cant understand why) that on IE XMLHttpRequest seems to to randomly return a reference to either the document corresponding to the received XML or the documentElement. Whats happening here?
| 0 | [
2,
29027,
34,
40,
993,
8353,
1513,
27,
13,
660,
800,
3726,
3726,
684,
27956,
22,
18,
5977,
360,
27,
8247,
8741,
63,
40,
823,
30,
1285,
184,
20,
2985,
993,
8353,
9386,
2829,
19,
13,
660,
9,
27,
2478,
331,
1087,
16,
1900,
1322,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Ajax replace text with image.
===
I have put together the following mootools script
window.addEvent('domready', function() {
var shouts = "timed.php";
var log = $('log_res');
function updateData (url,target)
{
new Ajax(url,{
method: 'get',
update: $(target),
onComplete: function() {
log.removeClass('ajax-loading');} }).request();
log.empty().addClass('ajax-loading');
}
var update = function(){ updateData ( shouts, 'log_res' ); };
update(); // call it immediately
update.periodical(10000); // and then periodically
});
its using moo 1.1.
But although the class is replaced, I want to be able to put html inside the div instead just changing the style, any suggestions?
heres the html
<div id="AJAX">
<h3>Ajax Response</h3>
<div id="log_res">exercise</div>
</div> | 0 | [
2,
20624,
3934,
1854,
29,
1961,
9,
800,
3726,
3726,
31,
57,
442,
429,
14,
249,
13,
8765,
20799,
18,
3884,
1463,
9,
14854,
4943,
38,
5,
22,
5555,
15193,
22,
15,
1990,
5,
6,
13,
1,
4033,
18344,
800,
13,
7,
891,
43,
9,
26120,
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... |
Why do I get web exception when creating an XPathDocument?
===
Creating an XPathDocument with referenced DTD sometimes throws a web exception. Why? | 0 | [
2,
483,
107,
31,
164,
2741,
5391,
76,
2936,
40,
993,
8353,
28132,
60,
800,
3726,
3726,
2936,
40,
993,
8353,
28132,
29,
17571,
13,
43,
38,
43,
1030,
13566,
21,
2741,
5391,
9,
483,
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 change a column's "Row Source" in Access table at run-time?
===
I would like to change the "Row Source" values in an Access table through code.
This way I can filter what a user can choose in a column's combo box. | 0 | [
2,
184,
20,
753,
21,
4698,
22,
18,
13,
7,
5417,
1267,
7,
19,
1381,
859,
35,
485,
8,
891,
60,
800,
3726,
3726,
31,
83,
101,
20,
753,
14,
13,
7,
5417,
1267,
7,
4070,
19,
40,
1381,
859,
120,
1797,
9,
48,
161,
31,
92,
11945,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Programmatically register HttpModules at runtime
===
I'm writing an app where 3rd party vendors can write plugin DLLs and drop them into the web app's bin directory. I want the ability for these plugins to be able to register their own HttpModules if necessary.
Is there anyway that I can add or remove HttpModules from and to the pipeline at runtime without having a corresponding entry in the Web.Config, or do I have to programmatically edit the Web.Config when adding / removing modules? I know that either way is going to cause an AppDomain restart but I'd rather be able to do it in code than having to fudge the web.config to achieve the same effect. | 0 | [
2,
625,
6732,
1326,
2243,
7775,
19673,
160,
35,
485,
891,
800,
3726,
3726,
31,
22,
79,
1174,
40,
4865,
113,
203,
897,
346,
19787,
92,
2757,
10922,
108,
13,
43,
211,
18,
17,
2804,
105,
77,
14,
2741,
4865,
22,
18,
4511,
16755,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to map multiple records using SqlMap in Ibatis
===
I am just getting into ibatis with SqlMap for the first time and I have run into a problem. I have figured out how to insert, delete, update, and select single records. Now however I am trying to write a select statement that will bring back more than a single record and I am getting mapping errors. How do I specify that the result should be a List of my custom objects? | 0 | [
2,
184,
20,
2942,
1886,
742,
568,
4444,
255,
15022,
19,
13,
9747,
3409,
800,
3726,
3726,
31,
589,
114,
1017,
77,
13,
9747,
3409,
29,
4444,
255,
15022,
26,
14,
64,
85,
17,
31,
57,
485,
77,
21,
1448,
9,
31,
57,
5700,
70,
184,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does the computer science/software engineering field have a standardized citation format?
===
Wikipedia provides [a number of citations used in the sciences][1], however does one stand out in computer science and software engineering related documents? My initial guess is to the [IEEE format][2], as they have a number of conferences and publications related to both fields, but I couldn't find anything definite.
[1]: http://en.wikipedia.org/wiki/Citation#Sciences
[2]: http://www.computer.org/portal/site/ieeecs/menuitem.c5efb9b8ade9096b8a9ca0108bcd45f3/index.jsp?&pName=ieeecs_level1&path=ieeecs/publications/author/style&file=refer.xml&xsl=generic.xsl&;jsessionid=JF8Gz8vgnLvVvyJLfxFnpyWfbT7QT4fZy1GhHBd913hGq2qHsJ2K!-478330902 | 0 | [
2,
630,
14,
1428,
762,
118,
12980,
5011,
1552,
575,
57,
21,
19009,
9715,
2595,
60,
800,
3726,
3726,
20169,
1927,
636,
58,
234,
16,
9715,
18,
147,
19,
14,
2623,
500,
2558,
165,
500,
15,
207,
630,
53,
1261,
70,
19,
1428,
762,
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... |
What's the best way to apply a drop shadow?
===
What is the best method for applying drop shadows? I'm working on a site right now where we have a good deal of them, however, I've been fighting to find the best method to do it. The site is pretty animation heavy so shadows need to work well with this.<br /><br />
I tried a jQuery shadow pulgin. The shadows looked good and were easy to use but were slow and didn't work well with any animations (required lots of redrawing, very joggy).<br /><br />
I also tried creating my own jQuery extension that wraps my element in a couple gray divs and then offsets them a little bit to give a shadow effect. This worked well. It's quick and responsive to the animation. However, it makes DOM manipulation/traversal cumbersome since everything is wrapped in these shadow divs.<br /><br />
I know there has to be a better way but this isn't exactly my forte. Thoughts? | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
5645,
21,
2804,
3118,
60,
800,
3726,
3726,
98,
25,
14,
246,
2109,
26,
11989,
2804,
5327,
60,
31,
22,
79,
638,
27,
21,
689,
193,
130,
113,
95,
57,
21,
254,
1183,
16,
105,
15,
207,
15,
31,
22... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Image stretching and resizing
===
I have a picture that I need to resize to a specific dimension and then move one of the corner to a place higher than before so the image is not rectangular anymore but some kind of polygon. Is there a library that could help me with this kind of image manipulation or does someone knows the name of this operation? | 0 | [
2,
1961,
11566,
17,
10719,
3335,
800,
3726,
3726,
31,
57,
21,
2151,
30,
31,
376,
20,
302,
10454,
20,
21,
1903,
9547,
17,
94,
780,
53,
16,
14,
1531,
20,
21,
209,
1184,
119,
115,
86,
14,
1961,
25,
52,
11354,
3375,
47,
109,
825,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 HttpApplication.EndRequest event not fired
===
According [this MSDN article][1] *HttpApplication*.EndRequest can be used to close or dispose of resources. However this event is not fired/called in my application.
We are attaching the handler in Page_Load the following way:
HttpContext.Current.ApplicationInstance.EndRequest += ApplicationInstance_EndRequest;
[1]: http://msdn.microsoft.com/en-us/library/y3bwdsh3.aspx | 0 | [
2,
28,
306,
9,
2328,
7775,
2552,
20669,
9,
2451,
99,
10351,
807,
52,
3899,
800,
3726,
3726,
496,
636,
1565,
4235,
43,
103,
2002,
500,
2558,
165,
500,
1637,
21127,
2552,
20669,
2483,
9,
2451,
99,
10351,
92,
44,
147,
20,
543,
54,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 for a process inside a VirtualPc to talk to a process on the host?
===
I have Virtual PC 2007. I am writing a C# program that will run on the Host and Virtual. It needs to communicate both ways.
**What is the best way to do this?**
**Can it be done in a way that does not require changing Virtual settings?**
(the OSs will be XP, Vista, Server 2000 / 2003) | 0 | [
2,
98,
25,
14,
246,
161,
26,
21,
953,
572,
21,
6599,
5779,
20,
930,
20,
21,
953,
27,
14,
2015,
60,
800,
3726,
3726,
31,
57,
6599,
5168,
624,
9,
31,
589,
1174,
21,
272,
5910,
625,
30,
129,
485,
27,
14,
2015,
17,
6599,
9,
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... |
How do you share configuration information between languages
===
I'm looking for best practices for using the same configuration data in different places without [repeating yourself][1].
Example 1. Data validation rules where you want to validate on the client using javascript, but you want to make sure by validating on the server.
Example 2. Database access where your web server and your cronjobs use the same password, username.
Ease of processing and a human-readable solution would be a plus.
[1]: http://en.wikipedia.org/wiki/Don%27t_repeat_yourself | 0 | [
2,
184,
107,
42,
1891,
8091,
676,
128,
2556,
800,
3726,
3726,
31,
22,
79,
699,
26,
246,
5242,
26,
568,
14,
205,
8091,
1054,
19,
421,
1489,
366,
636,
99,
1664,
1880,
2834,
500,
2558,
165,
500,
9,
823,
137,
9,
1054,
27999,
1761,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is a "Unit"?
===
In the context of unit testing, what is a "unit"? | 0 | [
2,
98,
25,
21,
13,
7,
15464,
7,
60,
800,
3726,
3726,
19,
14,
4141,
16,
1237,
4431,
15,
98,
25,
21,
13,
7,
15464,
7,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Best way to find all factors of a given number in C#
===
All numbers that divide evenly into x.
I put in 4 it returns: 4, 2, 1 | 0 | [
2,
246,
161,
20,
477,
65,
4776,
16,
21,
504,
234,
19,
272,
5910,
800,
3726,
3726,
65,
2116,
30,
8918,
166,
102,
77,
993,
9,
31,
442,
19,
268,
32,
4815,
45,
268,
15,
172,
15,
137,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to enable buttons when scroll bar hits bottom with Win32?
===
I'm writing a license agreement dialog box with Win32 and I'm stumped. As usual with these things I want the "accept/don't accept" buttons to become enabled when the slider of the scroll bar of the richedit control hits bottom, but I can't find a way to get notified of that event. The earliest I've been able to learn about it is when the user releases the left mouse button.
Is there a way to do this?
Here's what I tried so far:
- `WM_VSCROLL` and `WM_LBUTTONUP` in richedit's wndproc
- `EN_MSGFILTER` notification in dlgproc (yes the filter mask is getting set)
- `WM_VSCROLL` and `WM_LBUTTONUP` in dlgproc.
- `EN_VSCROLL` notification in dlgproc
I got so desperate I tried polling but that didn't work either because apparently timer messages stop arriving while the mouse button is down on the slider. I tried both:
- timer callback (to poll) in dlgproc
- timer callback (to poll) in richedit's wndproc
| 0 | [
2,
184,
20,
9240,
12861,
76,
12159,
748,
3858,
2129,
29,
628,
3125,
60,
800,
3726,
3726,
31,
22,
79,
1174,
21,
3962,
2022,
28223,
1649,
29,
628,
3125,
17,
31,
22,
79,
15781,
69,
9,
28,
3820,
29,
158,
564,
31,
259,
14,
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... |
Can you configure VS2008 Code Analysis to use a British English Dictionary?
===
VS2008 Code Analysis will flag a spelling mistake in an identifier using the <code>IdentifiersShouldBeSpelledCorrectly</code> warning type.
This process is using an American dictionary by default because words are being flagged that are correctly spelt using the British spelling. For example, words like "Organisation" and "Customisation", etc...
I am aware that you can create your own custom Xml dictionary files that contain any words you don't want to be flagged, however, can anyone tell me if you can configure Code Analysis to use a different default (or additional) dictionary from those available in Windows? | 0 | [
2,
92,
42,
1065,
15951,
4611,
2753,
1797,
2495,
20,
275,
21,
388,
486,
9186,
60,
800,
3726,
3726,
4611,
2753,
1797,
2495,
129,
3157,
21,
11292,
5643,
19,
40,
25570,
568,
14,
13,
1,
9375,
1,
13384,
16292,
18,
14941,
863,
23405,
69,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Whats the 'best' method of writing data out to a file, to be later read in again. (C++)
===
What is the best way of storing data out to a file on a network, which will be later read in again programmatically. Target platform for the program is Linux (Fedora), but it will need to write out a file to a Windows (XP) machine
This needs to be in C++, there will be a high number of write / read events so it needs to be efficient, and the data needs to be written out in such a way that it can be read back in easily.
The whole file may not be being read back in, I'll need to search for a specific block of data in the file and read that back in.
Will simple binary stream writer do?
How should I store the data - XML?
Anything else I need to worry about? | 0 | [
2,
98,
18,
14,
13,
22,
4936,
22,
2109,
16,
1174,
1054,
70,
20,
21,
3893,
15,
20,
44,
138,
1302,
19,
188,
9,
13,
5,
150,
20512,
6,
800,
3726,
3726,
98,
25,
14,
246,
161,
16,
25615,
1054,
70,
20,
21,
3893,
27,
21,
982,
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... |
C#: How to include dependent DLLs?
===
I am using a 3rd party API which is defined in 2 DLLs. I have included those DLLs in my project and set references to them. So far so good.
However, these DLLs have at least one dependent DLL which cannot be found at runtime. I copied the missing DLL into the project and set the 'Copy to output' flag but without success.
What should I be doing here to tell the project where it should find the dependent DLL? | 0 | [
2,
272,
5910,
45,
184,
20,
468,
9063,
13,
43,
211,
18,
60,
800,
3726,
3726,
31,
589,
568,
21,
203,
897,
346,
21,
2159,
56,
25,
2811,
19,
172,
13,
43,
211,
18,
9,
31,
57,
506,
273,
13,
43,
211,
18,
19,
51,
669,
17,
309,
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... |
¿Do you know a free hosting for ClickOnce apps?
===
I am developing an application that will be open source, and i want this application to be updatable through ClickOnce (or similar), but i want to implement it from a free hosting, as i don't know the volume of downloads i will have.
I would need something like sourceforge or codeplex,a hosting that allows me to see the version and in that case, alert the user that there is another newer version and download it. | 0 | [
2,
13,
1,
537,
42,
143,
21,
551,
10637,
26,
10840,
13120,
4865,
18,
60,
800,
3726,
3726,
31,
589,
3561,
40,
3010,
30,
129,
44,
368,
1267,
15,
17,
31,
259,
48,
3010,
20,
44,
71,
593,
5924,
120,
10840,
13120,
13,
5,
248,
835,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Logical negation operator in F#? (!-equivalent)
===
What is the equivalent to the C# "!" operator in F#?
Thanks, Jacob | 0 | [
2,
11545,
9574,
857,
6022,
19,
398,
5910,
60,
13,
5,
187,
8,
20922,
6,
800,
3726,
3726,
98,
25,
14,
4602,
20,
14,
272,
5910,
13,
7,
187,
7,
6022,
19,
398,
5910,
60,
3669,
15,
4079,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Am I immune to SQL injections if I use stored procedures?
===
Lets say on MySQL database (if it matters). | 0 | [
2,
589,
31,
12458,
20,
4444,
255,
13646,
18,
100,
31,
275,
8214,
8876,
60,
800,
3726,
3726,
6884,
395,
27,
51,
18,
22402,
6018,
13,
5,
821,
32,
4556,
6,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Should this property be part of my object's interface?
===
I have a property called "IsSecureConnection" that is part of my object's interface. This makes sense for most implementations of the interface, however, in some implementations I would like to make the property ReadOnly.
Should I omit this property from the object's interface even though it is required by all of the implementations (though slightly different on occasion)?
Thanks! | 0 | [
2,
378,
48,
1354,
44,
141,
16,
51,
3095,
22,
18,
6573,
60,
800,
3726,
3726,
31,
57,
21,
1354,
227,
13,
7,
403,
22917,
25996,
872,
7,
30,
25,
141,
16,
51,
3095,
22,
18,
6573,
9,
48,
1364,
1259,
26,
127,
6123,
18,
16,
14,
65... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 CE 3.5 deployment problem, concerning interop between C# and C++
===
We have a situation where a C# application is working with SQL CE 3.5. To allow for a legacy program to use some of its features we have produced a C++ dll which uses interop to extract the info that it needs from the C# program. For this to work, the C#-program needs to access the database. Its not a very complex scenario.
When trying to deploy with a private install some problems occur though.
There is no problem with the C# program, it can access the database and work with it without any problems.
But when trying to access functions in the C#-program through the C++ interop which forces the C#-program to access the database, we get a crash with the exception saying that "...the Provider: System.Data.SqlServerCe.3.5 is not installed".
This is obviously because we cannot add a App.config file to the executing program.
How can we get around this? Is there another way to fix this? Any other forms of SQL CE 3.5 install methods are out of the question. So we must get this to work.
Regards,
P
| 0 | [
2,
4444,
255,
4000,
203,
9,
264,
10475,
1448,
15,
6477,
1480,
2594,
128,
272,
5910,
17,
272,
20512,
800,
3726,
3726,
95,
57,
21,
1858,
113,
21,
272,
5910,
3010,
25,
638,
29,
4444,
255,
4000,
203,
9,
264,
9,
20,
1655,
26,
21,
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... |
Getting started with OpenGL
===
As you can see [here][1] I'm about to start work on a 3d project for class.
Do you have any useful resources/websites/tips/etc. on someone getting started with OpenGL for the first time? The project will be in C++ and accessing OpenGL via GLUT. Thanks!
[1]: http://stackoverflow.com/questions/193339/simple-3d-graphics-project | 0 | [
2,
1017,
373,
29,
368,
8430,
800,
3726,
3726,
28,
42,
92,
196,
636,
6836,
500,
2558,
165,
500,
31,
22,
79,
88,
20,
799,
170,
27,
21,
203,
43,
669,
26,
718,
9,
107,
42,
57,
186,
4811,
2566,
118,
14113,
18,
6359,
118,
10169,
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... |
Custom Error Pages in JBoss
===
Hey all, This is my first question here!
I'm trying to setup custom error pages in my JBoss RESTful web service. I'm starting with the 400 error, so in my web.xml I've added
<error-page>
<error-code>400</error-code>
<location>/400.html</location>
</error-page>
and I've placed 400.html at the root of my war file (I've also tried placing it at the root of WEB-INF). Unfortunately, I keep getting 404's when I'm supposed to get 400's, presumably because JBoss can't seem to find 400.html. Any ideas what I'm doing wrong?
Might it be because my servlets are mapped to the root?
<servlet-mapping>
<servlet-name>api</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
if so, what are the alternatives?
Thanks! | 0 | [
2,
5816,
7019,
4434,
19,
487,
10349,
18,
800,
3726,
3726,
8409,
65,
15,
48,
25,
51,
64,
1301,
235,
187,
31,
22,
79,
749,
20,
18161,
5816,
7019,
4434,
19,
51,
487,
10349,
18,
760,
1566,
2741,
365,
9,
31,
22,
79,
1422,
29,
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... |
ORA-12514 after rebooting server
===
I am using Oracle 10g R2.
Recently, after rebooting the server, I started having a problem where I couldn't connect to the instance. I am only connecting locally on the server itself.
Oddly enough, the issue corrects itself if I start the Database Administration Assistant, and select my instance to supposedly change its settings.
Does anybody have a clue on the roots of this problem?
| 0 | [
2,
54,
58,
8,
16649,
1419,
75,
25312,
68,
8128,
800,
3726,
3726,
31,
589,
568,
15759,
332,
263,
761,
135,
9,
1989,
15,
75,
25312,
68,
14,
8128,
15,
31,
373,
452,
21,
1448,
113,
31,
711,
22,
38,
6379,
20,
14,
4851,
9,
31,
589... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WinForms: Proper way to change number of rows in a TableLayoutPanel
===
i'm trying to change the number of rows in a [TableLayoutPanel][1] programatically (sometimes it needs to be four, sometimes five, and rarely six).
Unfortunatly changing the number of rows does not keep the `RowStyles` collection in sync, so you are then not able to set the height of the newly added rows. The following test code demonstrates this fact:
private void button1_Click(object sender, EventArgs e)
{
//TableLayoutPanels start with 2 rows by default.
Debug.Assert(tableLayoutPanel1.RowStyles.Count == tableLayoutPanel1.RowCount);
//Cannot remove rows
tableLayoutPanel1.RowCount = 1;
Debug.Assert(tableLayoutPanel1.RowStyles.Count == tableLayoutPanel1.RowCount);
}
The second assertion fails.
private void button2_Click(object sender, EventArgs e)
{
//TableLayoutPanels start with 2 rows by default.
Debug.Assert(tableLayoutPanel1.RowStyles.Count == tableLayoutPanel1.RowCount);
//Cannot add rows
tableLayoutPanel1.RowCount = 6;
Debug.Assert(tableLayoutPanel1.RowStyles.Count == tableLayoutPanel1.RowCount);
}
The second assertion fails.
So what's the proper programatic way to set the [`RowCount`][2] property of a [`TableLayoutPanel`][1]?
[1]: http://msdn.microsoft.com/en-us/library/system.windows.forms.tablelayoutpanel.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.windows.forms.tablelayoutpanel.rowcount.aspx
| 0 | [
2,
628,
4190,
18,
45,
4119,
161,
20,
753,
234,
16,
11295,
19,
21,
859,
4414,
1320,
3206,
532,
800,
3726,
3726,
31,
22,
79,
749,
20,
753,
14,
234,
16,
11295,
19,
21,
636,
5924,
4414,
1320,
3206,
532,
500,
2558,
165,
500,
625,
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... |
Is there a coding standard for VBA applications?
===
Is there any coding standard published by microsoft for vba applications? | 0 | [
2,
25,
80,
21,
13,
15458,
1236,
26,
566,
969,
3767,
60,
800,
3726,
3726,
25,
80,
186,
13,
15458,
1236,
467,
34,
7099,
26,
566,
969,
3767,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Need to create an expression in an outer join that only returns one row
===
I'm creating a really complex dynamic sql, it's got to return one row per user, but now I have to join against a one to many table. I do an outer join to make sure I get at least one row back (and can check for null to see if there's data in that table) but I have to make sure I only get one row back from this outer join part if there's multiple rows in this second table for this user.
So far I've come up with this: (sybase)
select a.user_id from table1 a, table2 b where a.user_id*=b.user_id and a.sub_id = (select min(c.sub_id) from table2 c where b.sub_id = c.sub_id)
The subquery finds the min value in the one to many table for that particular user.
This works but I fear nastiness from doing correlated subqueries when table 1 and 2 get very large.
Is there a better way? I'm trying to dream up a way to get joins to do it, but I'm not seeing it.
Also saying "where rowcount=1" or "top 1" doesn't help me, because I'm not trying to fix the above query, I'm ADDING the above to an already complex query.
| 0 | [
2,
376,
20,
1600,
40,
1803,
19,
40,
4896,
1865,
30,
104,
4815,
53,
3131,
800,
3726,
3726,
31,
22,
79,
2936,
21,
510,
1502,
7782,
4444,
255,
15,
32,
22,
18,
330,
20,
788,
53,
3131,
416,
4155,
15,
47,
130,
31,
57,
20,
1865,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to determine if XElement.Elements() contains a node with a specific name?
===
For example for the following XML
<Order>
<Phone>1254</Phone>
<City>City1</City>
<State>State</State>
</Order>
I might want to find out whether the XElement contains "City" Node or not. | 0 | [
2,
184,
20,
3746,
100,
993,
27567,
9,
27567,
18,
5,
6,
1588,
21,
15421,
29,
21,
1903,
204,
60,
800,
3726,
3726,
26,
823,
26,
14,
249,
23504,
13,
1,
7861,
1,
13,
1,
7709,
1,
918,
3963,
1,
118,
7709,
1,
13,
1,
5788,
1,
5788,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 is recommended: "static public" or "public static"
===
If you have a class member that is static and public. Would you write "static public" or "public static"? I know they are the same. But is there some recommendation / best practice for writing this? | 0 | [
2,
56,
25,
5773,
45,
13,
7,
18077,
317,
7,
54,
13,
7,
12259,
12038,
7,
800,
3726,
3726,
100,
42,
57,
21,
718,
322,
30,
25,
12038,
17,
317,
9,
83,
42,
2757,
13,
7,
18077,
317,
7,
54,
13,
7,
12259,
12038,
7,
60,
31,
143,
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... |
Passing a client certificate only works on my machine
===
I have a web service that is protected my requiring the consuming third party application to pass as client certificate. I have installed the certificate on the providing web service in production and on the client as well. This process is currently working fine for other clients with a similar setup. The current version is written in .NET 3.5 and works perfectly on my development machine under cassini (and running standalone), but refuses to work on my production machine with the same code and certificate setup. I have confirmed that the provider web service accepts the certificate installed on the client through the browser, but when the cert is added to a webservice call programatically, I get a 403, access is denied. I output the fingerprint of the certificate added to the call before it makes the request to the protected webservice, and it is indeed the correct certificate attached. My thinking is that somewhere along the line, it does not have access to the private key portion of the certificate.
Any ideas?
Note: I've given the IIS process access to the relevant ~/crypto directories.
This is C# and .NET 3.5 | 0 | [
2,
2848,
21,
6819,
6259,
104,
693,
27,
51,
1940,
800,
3726,
3726,
31,
57,
21,
2741,
365,
30,
25,
3803,
51,
9052,
14,
13,
17601,
422,
346,
3010,
20,
1477,
28,
6819,
6259,
9,
31,
57,
4066,
14,
6259,
27,
14,
2674,
2741,
365,
19,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.