unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
C++ templates Turing-complete?
===
I'm told that the template system in C++ is Turing-complete at compile time. This is mentioned in [this post][1] and also on [wikipedia][2].
Can you provide a nontrivial example of a computation that exploits this property?
Is this fact useful in practice?
[1]: http://stackoverflow.com/questions/75538/hidden-features-of-c#75627
[2]: http://en.wikipedia.org/wiki/C%2B%2B | 0 | [
2,
272,
20512,
22894,
18,
6205,
68,
8,
15990,
60,
800,
3726,
3726,
31,
22,
79,
470,
30,
14,
22894,
329,
19,
272,
20512,
25,
6205,
68,
8,
15990,
35,
26561,
85,
9,
48,
25,
2211,
19,
636,
1565,
678,
500,
2558,
165,
500,
17,
67,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
"The selected files was not found" on an InfoPath form in Sharepoint
===
When using a file attachment control on a InfoPath form as part of a SharePoint workflow I get the error "The selected files was not found". | 0 | [
2,
13,
7,
124,
1704,
6488,
23,
52,
216,
7,
27,
40,
15404,
8353,
505,
19,
1891,
3132,
800,
3726,
3726,
76,
568,
21,
3893,
14575,
569,
27,
21,
15404,
8353,
505,
28,
141,
16,
21,
1891,
3132,
170,
9990,
31,
164,
14,
7019,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Linear algebra for graphics in C
===
I'm developing software that writes to a tiny LCD screen (less than 1" x 1").
I've got all the usual suspects - lines, filled polygons, fonts, etc.
I remember, however, learning how to do fun vector manipulation in linear algebra many moons ago, and creating rotating wireframe objects.
I'd like to do that again, but figured there must be a quick and dirty tutorial and/or simple vector library in C that does all the heavy lifting so I can skip the implementation and go right to the eye candy.
Any pointers?
-Adam | 0 | [
2,
6745,
10999,
26,
8351,
19,
272,
800,
3726,
3726,
31,
22,
79,
3561,
2306,
30,
6215,
20,
21,
3228,
26827,
2324,
13,
5,
923,
119,
137,
7,
993,
137,
7,
6,
9,
31,
22,
195,
330,
65,
14,
3820,
14993,
13,
8,
1560,
15,
1943,
21309... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Replace in multiple files - graphical tool for Linux
===
It needs to be graphical. No sed, awk, grep, perl, whatever. I know how to use those and I do use them now, but I need to cherry-pick each replace in 300+ files.
I want a tool where I can:
- type a search string
- type a replace string
- select a directory and file extension
and it would recursively go into each file in that directory and its sub-directories, open it and scroll to the place where search string is and offer two options:
- replace (and find next)
- find next
Nothing more. Reg.exp. support is a plus, but not required.
| 0 | [
2,
3934,
19,
1886,
6488,
13,
8,
21755,
5607,
26,
13024,
800,
3726,
3726,
32,
2274,
20,
44,
21755,
9,
90,
13924,
15,
13,
3885,
197,
15,
5604,
306,
15,
416,
255,
15,
2099,
9,
31,
143,
184,
20,
275,
273,
17,
31,
107,
275,
105,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Libraries for text animation in Flex / Actionscript ?
===
Are there any good libraries for cool text animation effects for use in Actionscript (for use in an intro screen or banner).
I've given up tryin to use Flash itself because that takes forever, and I dont know which of the many flash text animation tools to choose from.
I'd like to be able to dynamically product cool text effects with different messages. | 0 | [
2,
8649,
26,
1854,
6236,
19,
14409,
13,
118,
1028,
8741,
13,
60,
800,
3726,
3726,
50,
80,
186,
254,
8649,
26,
2700,
1854,
6236,
2292,
26,
275,
19,
1028,
8741,
13,
5,
1106,
275,
19,
40,
17386,
2324,
54,
7492,
6,
9,
31,
22,
195,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 really use your reverse domain for package naming in java?
===
For a long time ago, I have thought that, in java, reversing the domain you own for package naming is silly and awkward.
Which do you use for package naming in your projects?
| 0 | [
2,
107,
42,
510,
275,
154,
7006,
4603,
26,
6030,
10929,
19,
8247,
60,
800,
3726,
3726,
26,
21,
175,
85,
1464,
15,
31,
57,
289,
30,
15,
19,
8247,
15,
28829,
14,
4603,
42,
258,
26,
6030,
10929,
25,
10752,
17,
9309,
9,
56,
107,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
SQL selecting rows by most recent date
===
Using the following query and results, I'm looking for the most recent entry where the ChargeId and ChargeType are unique.
select chargeId, chargeType, serviceMonth from invoice
CHARGEID CHARGETYPE SERVICEMONTH
1 101 R 8/1/2008
2 161 N 2/1/2008
3 101 R 2/1/2008
4 101 R 3/1/2008
5 101 R 4/1/2008
6 101 R 5/1/2008
7 101 R 6/1/2008
8 101 R 7/1/2008
Desired:
CHARGEID CHARGETYPE SERVICEMONTH
1 101 R 8/1/2008
2 161 N 2/1/2008
| 0 | [
2,
4444,
255,
20764,
11295,
34,
127,
1764,
1231,
800,
3726,
3726,
568,
14,
249,
25597,
17,
1736,
15,
31,
22,
79,
699,
26,
14,
127,
1764,
2792,
113,
14,
1906,
1340,
17,
1906,
4474,
50,
2619,
9,
5407,
1906,
1340,
15,
1906,
4474,
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... |
Ending asynchronous delegate invocation with partial type information
===
When writing async method implementations using the BeginInvoke/EndInvoke pattern the code might look something like the following (and to save you guessing this is an async wrapper around a cache):
IAsyncResult BeginPut(string key, object value)
{
Action<string, object> put = this.Put;
return put.BeginInvoke(key, value, null, null);
}
void EndPut(IAsyncResult asyncResult)
{
var put = (Action<string, object>)((AsyncResult)asyncResult).AsyncDelegate;
put.EndInvoke(asyncResult);
}
This works perfectly well because it's known what the type of delegate is, so it can be cast. However it starts to get messy when you have two `Put` methods, because although the method returns void you seemingly have to cast it to a strongly typed delegate to end the invocation, e.g.
IAsyncResult BeginPut(string key, object value)
{
Action<string, object> put = this.Put;
return put.BeginInvoke(key, value, null, null);
}
IAsyncResult BeginPut(string region, string key, object value)
{
Action<string, string, object> put = this.Put;
return put.BeginInvoke(region, key, value, null, null);
}
void EndPut(IAsyncResult asyncResult)
{
var put = ((AsyncResult)asyncResult).AsyncDelegate;
var put1 = put as Action<string, object>;
if (put1 != null)
{
put1.EndInvoke(asyncResult);
return;
}
var put2 = put as Action<string, string, object>;
if (put2 != null)
{
put2.EndInvoke(asyncResult);
return;
}
throw new ArgumentException("Invalid async result", "asyncResult");
}
I'm hoping there is a cleaner way to do this, because the only thing I care about the delegate is the return type (in this case void) and not the arguments that were supplied to it. But I've racked my brains and asked others in the office, and nobody can think of the answer.
I know one solution is to write a custom `IAsyncResult`, but that's such a difficult task with the potential threading issues around things like lazy instantiation of the `WaitHandle` that I'd rather have this slightly hacky looking code than go down that route.
Any ideas on how to end the invocation without a cascading set of `is` checks? | 0 | [
2,
3119,
21,
16023,
1291,
11300,
19,
2625,
16893,
29,
7284,
1001,
676,
800,
3726,
3726,
76,
1174,
21,
9507,
150,
2109,
6123,
18,
568,
14,
2348,
108,
2625,
1048,
118,
2451,
108,
2625,
1048,
3732,
14,
1797,
530,
361,
301,
101,
14,
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... |
Statistical tools for programmers
===
I'm trying to evaluate the purchase of a statistical tool. This will be used in part by non-programming users (doing clinical studies) and in part by programmers, so I'm trying to find a good compromise between usability and automation. Of course, cost is an issue, but if I can build a solid case, we could probably buy a commercial package, so we're not totally limited to free options.
So far, our options are:
- Statistica (which some non-programmers already know)
- Matlab Statistics toolbox (programmers already use matlab)
- R language (would need a UI for non-programmers)
- Hack something into Excel (not fun, but that's what non-programmers do right now)
- ?...
What else is out there? What's the industry standard? What would you recommend, and why?
Ideally, we'd like a tool that can run both on Linux and Windows machines. | 0 | [
2,
6762,
4672,
26,
17968,
18,
800,
3726,
3726,
31,
22,
79,
749,
20,
13,
15599,
14,
3301,
16,
21,
6762,
5607,
9,
48,
129,
44,
147,
19,
141,
34,
538,
8,
19746,
3863,
3878,
13,
5,
537,
68,
5611,
1011,
6,
17,
19,
141,
34,
17968,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How does one use FileStream to append to a file without an exclusive lock?
===
What I'm trying to do with `FileStream` in C#/.NET is to open two streams: one appending to a file and the other reading those writes asynchronously (for unit testing some network connection handling code). I can't figure out how to get the *writer* stream to open the file in non-exlusive locking mode and thus the code always throws an exception:
> The process cannot access the file
> 'C:\test.txt' because it is being used
> by another process.
Here's a smattering of code which demonstrates the issue:
FileStream fwriter = new FileStream("C:\\test.txt", FileMode.Append,
FileAccess.Write, FileShare.Read);
FileStream freader = new FileStream("C:\\test.txt", FileMode.Open,
FileAccess.Read, FileShare.Read); | 0 | [
2,
184,
630,
53,
275,
3893,
11260,
20,
4865,
2451,
20,
21,
3893,
366,
40,
6753,
3991,
60,
800,
3726,
3726,
98,
31,
22,
79,
749,
20,
107,
29,
13,
1,
16877,
11260,
1,
19,
272,
5910,
118,
9,
2328,
25,
20,
368,
81,
9464,
45,
53,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tools you use to develop WPF or Silverlight applications
===
Which all Utilities and Tools you may have come across while developing a Rich Interactive Application on Microsoft platform?.
Few tools that I am familiar with are
1. [Expression][1] Blend - XAML Development
2. [Expression][2] Design - Graphic asset creation
3. [KaXaml][3], A cool and handy XAML editor http://www.kaxaml.com/
4. [Snoop][4] a WPF tool http://blois.us/Snoop/
5. [Mole][5] WPF Visual Tree debugger
5. Blender for 3D modeling http://www.blender.org/
[1]: http://www.microsoft.com/expression/
[2]: http://www.kaxaml.com/
[3]: http://www.kaxaml.com/
[4]: http://blois.us/Snoop/
[5]: http://www.codeproject.com/KB/WPF/MoleForWPF.aspx
[6]: http://www.red-gate.com/products/reflector/index.htm | 0 | [
2,
4672,
42,
275,
20,
2803,
619,
7721,
54,
1172,
3130,
3767,
800,
3726,
3726,
56,
65,
19817,
17,
4672,
42,
123,
57,
340,
464,
133,
3561,
21,
2042,
9194,
3010,
27,
7099,
2452,
60,
9,
310,
4672,
30,
31,
589,
3694,
29,
50,
137,
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... |
Share your Vista 64bit experiences
===
I've got a Dell XPS M1330 with a 2.2ghz processor, 4gig ram, GeForce 8400M, and a 64GB SSD disk.
I'm primarily doing web-development, sharepoint development, integration (Microsoft BI tools) and biztalk. I use virtual machines for these purposes. I've been using Vista 32Bit up until now but I'm considering moving to 64bit to squeeze that little extra ram out of the box.
I'd like to hear if anyone has been using 64bit vista under the same circumstances and if anything should hold me back. Have in mind that this is the laptop I use at work. | 0 | [
2,
1891,
154,
13520,
4384,
3326,
5513,
800,
3726,
3726,
31,
22,
195,
330,
21,
13,
5491,
23045,
18,
307,
1543,
1762,
29,
21,
172,
9,
135,
4780,
380,
14762,
15,
268,
2234,
263,
2843,
15,
3168,
8774,
469,
7114,
79,
15,
17,
21,
4384... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Problem using SQLite :memory: with NHibernate
===
I use NHibernate for my dataacess, and for awhile not I've been using SQLite for local integration tests. I've been using a file, but I thought I would out the :memory: option. When I fire up any of the integration tests, the database seems to be created (NHibernate spits out the table creation sql) but interfacting with the database causes an error.
Has anyone every gotten NHibernate working with an in memory database? Is it even possible? The connection string I'm using is this:
Data Source=:memory:;Version=3;New=True | 0 | [
2,
1448,
568,
4444,
10601,
13,
45,
790,
5171,
93,
45,
29,
12109,
15191,
8820,
800,
3726,
3726,
31,
275,
12109,
15191,
8820,
26,
51,
1054,
6174,
18,
18,
15,
17,
26,
21,
10144,
52,
31,
22,
195,
74,
568,
4444,
10601,
26,
375,
8078,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Running Eclipse under Valgrind
===
Has anybody here succeeded in running Eclipse under [Valgrind][1]? I'm battling a particularly hairy crash involving JNI code, and was hoping that Valgrind perhaps could (again) prove its excellence, but when I run Eclipse under Valgrind, the JVM terminates with an error message about not being able to create the initial object heap (I currently don't have access to the exact error message; I'll edit this post as soon as I do.)
[1]: http://valgrind.org/ | 0 | [
2,
946,
11652,
131,
3347,
23244,
43,
800,
3726,
3726,
63,
11181,
235,
2914,
19,
946,
11652,
131,
636,
3377,
23244,
43,
500,
2558,
165,
500,
60,
31,
22,
79,
20428,
21,
1653,
19165,
4597,
4838,
487,
889,
1797,
15,
17,
23,
3935,
30,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Resources for windows form design
===
The majority of resources that I have for UI all deal with the web world. There are a number of advantages there because of the dynamic nature of the presentation layer. However, I would like to design better windows form programs. Does anyone blog about that sort of thing? | 0 | [
2,
2566,
26,
1936,
505,
704,
800,
3726,
3726,
14,
1698,
16,
2566,
30,
31,
57,
26,
13,
5661,
65,
1183,
29,
14,
2741,
126,
9,
80,
50,
21,
234,
16,
14683,
80,
185,
16,
14,
7782,
1444,
16,
14,
6364,
5385,
9,
207,
15,
31,
83,
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... |
Automate getting report from webpage
===
I'm a Java developer and I have a question about automating a task I've been given. I'm having to 3 times daily, login to this website we have at work, select a few form elements and then click on submit to get a report printed out. I'm wondering how I can write some sort of script that will automate this task? Where should I start? What language should I do it in? I was thinking PHP might be able to do this or even a greasemonkey script possibly?
Thanks a lot. | 0 | [
2,
3108,
5281,
1017,
1330,
37,
2741,
6486,
800,
3726,
3726,
31,
22,
79,
21,
8247,
10058,
17,
31,
57,
21,
1301,
88,
3108,
79,
1880,
21,
3005,
31,
22,
195,
74,
504,
9,
31,
22,
79,
452,
20,
203,
436,
1954,
15,
6738,
108,
20,
48... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
emacs/ubuntu initialization
===
Odd behavior loading emacs on ubuntu, there seems to be some initialization that goes on that is not in the .emacs nor in any of the files emacs reports loading through "emacs --debug-init". I've found some references to font-related resizing but this behavior doesn't seem to be limited to that (e.g reappearing menus and toolbars).
Does anyone have any additional information about the emacs initialization process?
Does it load /etc/emacs/site-start.d files before or after the .emacs, and are there any other locations it loads by default? | 0 | [
2,
13,
62,
6893,
18,
118,
4502,
1020,
2473,
2104,
1829,
800,
3726,
3726,
4210,
3257,
12797,
13,
62,
6893,
18,
27,
287,
12968,
2473,
15,
80,
2206,
20,
44,
109,
2104,
1829,
30,
1852,
27,
30,
25,
52,
19,
14,
13,
9,
62,
6893,
18,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how do i get a filehandle from the command line?
===
i have a subroutine that takes a file handle as an argument. how do i make a file handle from a file path specified on the command line? i don't want to do any processing of this file myself, i just want to pass it off to this other subroutine, which returns an array of hashes with all the parsed data from the file.
here's what the command line input i'm using looks like:
`$ ./getfile.pl /path/to/some/file.csv` | 0 | [
2,
184,
107,
31,
164,
21,
3893,
3203,
413,
37,
14,
1202,
293,
60,
800,
3726,
3726,
31,
57,
21,
972,
8821,
7538,
30,
1384,
21,
3893,
3053,
28,
40,
5476,
9,
184,
107,
31,
233,
21,
3893,
3053,
37,
21,
3893,
2013,
9931,
27,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tools to assist managing the application promotion process in an enterprise environment.
===
I am curious on how others manage code promotion from DEV to TEST to PROD within an enterprise.
What tools or processes do you use to manage the "red tape", entry/exit criteria side of things?
My current organisation is half stuck between some custom online forms type functionality and paper based dependencies to submit documents, gather approvals and reviews.
All this is left in the project managers hands to track what has been submitted, passed review, approved and advise management if there are any roadblocks that may need approval to be "overlooked" before an application can be promoted to the next environment.
A browser based application would be ideal... so whats out there? please show me that you googlefu is better than mine. | 0 | [
2,
4672,
20,
5404,
5616,
14,
3010,
2733,
953,
19,
40,
6002,
2307,
9,
800,
3726,
3726,
31,
589,
7686,
27,
184,
654,
4705,
1797,
2733,
37,
9664,
20,
1289,
20,
895,
43,
363,
40,
6002,
9,
98,
4672,
54,
5102,
107,
42,
275,
20,
4705... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 a good way in PowerShell to check for an IP address switch on a webserver?
===
##Problem
Our web host provider is changing the IP address of one of the servers we are on. We have been given a time frame for when the switch will take place, but no exact details. Therefore, our current *poor man's* check requires a periodic page refresh on a browser to see if our website is still there.
##Question
We are all programmers here and this is killing me that any manual checking is required. I would know how to do this in other languages, but want to know if there is a way to write a script in **PowerShell** to tackle this problem. Does anyone know how I might going about this?
| 0 | [
2,
98,
22,
18,
21,
254,
161,
19,
414,
15984,
20,
2631,
26,
40,
15735,
3218,
5521,
27,
21,
2741,
10321,
106,
60,
800,
3726,
3726,
6926,
5910,
2740,
2854,
79,
318,
2741,
2015,
11747,
25,
4226,
14,
15735,
3218,
16,
53,
16,
14,
1759... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 important for a Computer science masters program application?
===
I'm looking to do a masters in computer science on the east coast of the US in the next couple of years but I'm one of those people who's mostly self-taught. I graduated in 2005 with a law undergraduate degree (in the UK) so i have several questions:
1. Is professional experience useful in my masters application, or do they value 'formal education' more? (I've been a developer for 2 years working with .net / VB / SQL)
2. Would it be beneficial for me to do take some formal maths / computing courses in my spare time
3. What other activities are looked fondly upon in applications, open source contributions or personal projects for example.
Thanks anyone and all for answers. | 4 | [
2,
98,
22,
18,
681,
26,
21,
1428,
762,
5001,
625,
3010,
60,
800,
3726,
3726,
31,
22,
79,
699,
20,
107,
21,
5001,
19,
1428,
762,
27,
14,
342,
1104,
16,
14,
182,
19,
14,
328,
1335,
16,
122,
47,
31,
22,
79,
53,
16,
273,
148,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 mode for Visual Basic (VB6) in Emacs?
===
I would like to use Emacs to edit some VB6 files but Emacs does not appear to have any of built-in niceties of other languages such as syntax highlighting, etc.
Any plugins/extensions? What else can I do to make Emacs an acceptable and comfortable IDE for VB? | 0 | [
2,
25,
80,
21,
3740,
26,
3458,
2125,
13,
5,
20468,
379,
6,
19,
13,
62,
6893,
18,
60,
800,
3726,
3726,
31,
83,
101,
20,
275,
13,
62,
6893,
18,
20,
9392,
109,
13,
20468,
379,
6488,
47,
13,
62,
6893,
18,
630,
52,
1893,
20,
57... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you get the visual element inside a ItemsControl
===
I have a list of States in an ItemsControl, the DataTemplate is a CheckBox. I would like to add a function to select(check) all states. However I need to loop through the CheckBoxs rather then the data items since the checked state is stored in a separate data structure then the list of states the ItemsControl's ItemSource is bound to. | 0 | [
2,
184,
107,
42,
164,
14,
3458,
4520,
572,
21,
3755,
12898,
800,
3726,
3726,
31,
57,
21,
968,
16,
202,
19,
40,
3755,
12898,
15,
14,
1054,
9577,
6554,
25,
21,
2631,
5309,
9,
31,
83,
101,
20,
3547,
21,
1990,
20,
5407,
5,
12542,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 persuade my employer to move from VSS to Subversion?
===
My employer uses Visual Source Safe for version control, there are many problems with it's implementation, from the fact it's partly used as a document repository, to the problem that some repositories are approaching 20gb.
I want to move the company onto Subversion but I'm having problems finding concrete statistics of why it's better, or a justified list of why VSS is not a good solution, at least in the way that management would understand it.
So my questions are:
1. Can anyone provide me with some concrete reasons why subversion is a better system?
2. What are the offical limitations of VSS?
3. Any good ideas of ways I can put these concepts across in business terms? | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
13484,
51,
11726,
20,
780,
37,
4611,
18,
20,
972,
10898,
60,
800,
3726,
3726,
51,
11726,
2027,
3458,
1267,
1834,
26,
615,
569,
15,
80,
50,
151,
1716,
29,
32,
22,
18,
6123,
15,
37,
14,
837,
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... |
Drupal CSS URL Problem
===
I've just got a fresh Drupal 6 install. The css didn't work. Then I realised that a "?U" was appended, and Drupal couldn't find it. Does anyone know where to unset this?
<link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?U" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/admin.css?U" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?U" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?U" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?U" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?U" />
<link type="text/css" rel="stylesheet" media="all" href="/themes/bluemarine/style.css?U" />
| 0 | [
2,
15708,
6720,
272,
18,
18,
287,
6362,
1448,
800,
3726,
3726,
31,
22,
195,
114,
330,
21,
3180,
15708,
6720,
400,
16146,
9,
14,
272,
18,
18,
223,
22,
38,
170,
9,
94,
31,
12514,
30,
21,
13,
7,
60,
291,
7,
23,
4865,
10726,
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... |
Detect GCC compile-time flags of a binary
===
Is there a way to find out what gcc flags a particular binary was compiled with? | 0 | [
2,
9092,
489,
3384,
26561,
8,
891,
9318,
16,
21,
14171,
800,
3726,
3726,
25,
80,
21,
161,
20,
477,
70,
98,
489,
3384,
9318,
21,
1498,
14171,
23,
9316,
29,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Regex to find lines containing sequence but not containing a different sequence
===
How do I write a regular expression to find all lines containing 665 and not having .pdf
I can't seem to find how to do not in regex. This is for Notepad++ syntax if it matters.
Thanks | 0 | [
2,
7953,
1706,
20,
477,
1560,
3503,
4030,
47,
52,
3503,
21,
421,
4030,
800,
3726,
3726,
184,
107,
31,
2757,
21,
1290,
1803,
20,
477,
65,
1560,
3503,
400,
3577,
17,
52,
452,
13,
9,
11124,
31,
92,
22,
38,
2260,
20,
477,
184,
20,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to change the function called when I click in the close button on php-gtk?
===
I load a single instance of a window on php-gtk, I have a button named "Cancel" that hide(); the window, so when the window is needed again I just show();.
But when I click on the close button instead of the cancel button the window is destroyed. Even when I redirect the event (I'm not sure if i'm doing it right) it calls the first(just hide() function) and then the destroy method.
Any idea?
PD: I wouldn't want to destroy and recreate the windows because of php's crappy garbage collector and to be able to maintain previous data without having to refill the whole window(after all is supposed to be a desktop app). | 0 | [
2,
184,
20,
753,
14,
1990,
227,
76,
31,
10840,
19,
14,
543,
5167,
27,
13,
26120,
8,
263,
38,
197,
60,
800,
3726,
3726,
31,
6305,
21,
345,
4851,
16,
21,
1463,
27,
13,
26120,
8,
263,
38,
197,
15,
31,
57,
21,
5167,
377,
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... |
Lucene.Net Search result to highlight search keywords
===
I use Lucene.Net to index some documents. I want to show the user a couple of lines as to why that document is in the result set. just like when you use google to search and it shows the link and followed by the link there are a few lines with the keywords highlighted.
any ideas? | 0 | [
2,
18515,
556,
9,
2328,
2122,
829,
20,
14373,
2122,
1246,
12827,
800,
3726,
3726,
31,
275,
18515,
556,
9,
2328,
20,
4348,
109,
4374,
9,
31,
259,
20,
298,
14,
4155,
21,
1335,
16,
1560,
28,
20,
483,
30,
4492,
25,
19,
14,
829,
30... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Create a JPEG in PHP w/o creating a file?
===
Here's my situation - I want to create a resized jpeg image from a user uploaded image, and then send it to S3 for storage, but am looking to avoid writing the resized jpeg to the disk and then reloading it for the S3 request.
Is there a way to do this completely in memory, with the image data jpeg formatted, saved in a variable?
Thanks again! | 0 | [
2,
1600,
21,
487,
20427,
19,
13,
26120,
619,
118,
111,
2936,
21,
3893,
60,
800,
3726,
3726,
235,
22,
18,
51,
1858,
13,
8,
31,
259,
20,
1600,
21,
302,
6560,
487,
20427,
1961,
37,
21,
4155,
23782,
1961,
15,
17,
94,
2660,
32,
20,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to put WPF Tab Control tabs on the side
===
I am trying to create a Tab Control in WPF that has the tabs arranged down the right side of the control, with the text rotated 90 degrees The look is similar to those plastic tabs you can buy and use in a notebook. I have tried changing the TabStripPlacement to Right, but it just stacks the tabs up on the top right side of the control - not at all what I had in mind. | 0 | [
2,
184,
20,
442,
619,
7721,
6523,
569,
6523,
18,
27,
14,
270,
800,
3726,
3726,
31,
589,
749,
20,
1600,
21,
6523,
569,
19,
619,
7721,
30,
63,
14,
6523,
18,
4300,
125,
14,
193,
270,
16,
14,
569,
15,
29,
14,
1854,
24107,
3151,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Replace control arrays before migrating from vb6
===
With a view to avoiding the construction of further barriers to migration whilst
enhancing an existing vb6 program.
Is there a way to achieve the same functionality as control arrays in vb6 without using them? | 0 | [
2,
3934,
569,
7718,
18,
115,
28749,
37,
13,
20468,
379,
800,
3726,
3726,
29,
21,
1418,
20,
10298,
14,
900,
16,
653,
15641,
20,
8443,
4575,
13,
23267,
40,
3149,
13,
20468,
379,
625,
9,
25,
80,
21,
161,
20,
4689,
14,
205,
18548,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 to have synonyms in Lucene.Net
===
I need lucene to search for synonyms as well as the actual keyword. that is if I search for "CI", I want it to search for CI OR "continues integration". at the moment I search for keywords I have the synonyms for and replace them with the "OR-ed" version, but I suspect there should be a better way to do this. my method will not work for complex queries where you have something like "x AND y OR NOT z". | 0 | [
2,
184,
20,
57,
9344,
18,
19,
18515,
556,
9,
2328,
800,
3726,
3726,
31,
376,
18515,
556,
20,
2122,
26,
9344,
18,
28,
134,
28,
14,
3463,
1246,
9587,
9,
30,
25,
100,
31,
2122,
26,
13,
7,
1892,
7,
15,
31,
259,
32,
20,
2122,
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... |
What are the most useful software development metrics?
===
I would like to track metrics that can be used to improve my team’s software development process, improve time estimates, and detect special case variations that need to be addressed during the project execution.
Please limit each answer to a single metric, describe how to use it, and vote up the good answers. | 0 | [
2,
98,
50,
14,
127,
4811,
2306,
522,
11544,
18,
60,
800,
3726,
3726,
31,
83,
101,
20,
792,
11544,
18,
30,
92,
44,
147,
20,
3545,
51,
173,
1,
18,
2306,
522,
953,
15,
3545,
85,
10527,
15,
17,
9092,
621,
610,
8194,
30,
376,
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... |
Automatic image format detection in PHP
===
I am looking for a way to take a user uploaded image that is currently put in a temporary location ex: /tmp/jkhjkh78 and create a php image from it, autodetecting the format.
Is there a more clever way to do this than a bunch of try/catching with imagefromjpeg, imagefrompng, etc? | 0 | [
2,
6715,
1961,
2595,
11643,
19,
13,
26120,
800,
3726,
3726,
31,
589,
699,
26,
21,
161,
20,
247,
21,
4155,
23782,
1961,
30,
25,
871,
442,
19,
21,
4700,
1474,
1396,
45,
13,
118,
38,
2554,
118,
728,
4278,
728,
4278,
4130,
17,
1600,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Draw Transparent Image using System.Drawing?
===
I'm trying to return a transparent GIF from an .aspx page for display within a web page. I am trying to get the image to have transparency, but I just keep getting Black being where the image should be Transparent.
Does anyone know what I'm doing wrong?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles Me.Load
'' Change the response headers to output a GIF image.
Response.Clear()
Response.ContentType = "image/gif"
Dim width = 110
Dim height = width
'' Create a new 32-bit bitmap image
Dim b = New Bitmap(width, height)
'' Create Grahpics object for drawing
Dim g = Graphics.FromImage(b)
Dim rect = New Rectangle(0, 0, width - 1, height - 1)
'' Fill in with Transparent
Dim tbrush = New System.Drawing.SolidBrush(Color.Transparent)
g.FillRectangle(tbrush, rect)
'' Draw Circle Border
Dim bPen = Pens.Red
g.DrawPie(bPen, rect, 0, 365)
'' Fill in Circle
Dim cbrush = New SolidBrush(Color.LightBlue)
g.FillPie(cbrush, rect, 0, 365)
'' Clean up
g.Flush()
g.Dispose()
'' Make Transparent
b.MakeTransparent()
b.Save(Response.OutputStream, Imaging.ImageFormat.Gif)
Response.Flush()
Response.End()
End Sub | 0 | [
2,
184,
107,
42,
2003,
14862,
1961,
568,
329,
9,
3030,
3546,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
788,
21,
14862,
489,
821,
37,
40,
13,
9,
472,
306,
396,
2478,
26,
3042,
363,
21,
2741,
2478,
9,
31,
589,
749,
20,
164,
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... |
Customer File design
===
How do you model your customer address data and what techinques are you using to ensure the quality of the data?
Things like deduplication algorithms, duplicate matches, making sure that packages and invoices can actually be delived and such? Esepcially in systems handling customers in multiple countries. | 0 | [
2,
7705,
3893,
704,
800,
3726,
3726,
184,
107,
42,
1061,
154,
7705,
3218,
1054,
17,
98,
6145,
108,
13655,
50,
42,
568,
20,
4062,
14,
2190,
16,
14,
1054,
60,
564,
101,
121,
2323,
20669,
15935,
15,
19429,
1717,
15,
544,
562,
30,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I create and query linked database servers in SQL Server?
===
I need to do a join across two different database servers (IPs 10.0.0.50 and 10.0.0.51). What's the best way? | 0 | [
2,
184,
107,
31,
1600,
17,
25597,
4727,
6018,
17595,
19,
4444,
255,
8128,
60,
800,
3726,
3726,
31,
376,
20,
107,
21,
1865,
464,
81,
421,
6018,
17595,
13,
5,
4307,
18,
332,
9,
387,
9,
387,
9,
2290,
17,
332,
9,
387,
9,
387,
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,
0,
0,
0,
0,
0,
0... |
JavaScript: How to detect that the internet connection is offline?
===
How to detect that the internet connection is offline in JavaScript? | 0 | [
2,
8247,
8741,
45,
184,
20,
9092,
30,
14,
2620,
2760,
25,
168,
1143,
60,
800,
3726,
3726,
184,
20,
9092,
30,
14,
2620,
2760,
25,
168,
1143,
19,
8247,
8741,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
ASP.NET version 3.5 website: what does the file "vwd.webinfo" do, exactly? And what's with the bloated web.config file?
===
I am running Visual Studio Team Edition 2008.
<br />
<br />
<br />
When I create a new website, I get a new file I've never seen before: *vwd.webinfo*.
The contents of this file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<VisualWebDeveloper>
<!-- Visual Studio global web project settings. -->
<StartupServices>
<Service ID="{3259AA49-8AA1-44D3-9025-A0B520596A8C}"/>
</StartupServices>
</VisualWebDeveloper>
What do I need a "global web project settings" file for? What does it do, exactly?
<br />
<br />
<br />
Also; what is with the bloated *web.config* file? In standard ASP.NET version 2.0 website projects, the *web.config* file contains about 10 lines of code. But in a ASP.NET version 3.5 website project, it is filled with all sorts of weird settings. | 0 | [
2,
28,
306,
9,
2328,
615,
203,
9,
264,
2271,
45,
98,
630,
14,
3893,
13,
7,
710,
14733,
9,
14113,
108,
4120,
7,
107,
15,
1890,
60,
17,
98,
22,
18,
29,
14,
13,
7091,
1669,
2741,
9,
14093,
2816,
3893,
60,
800,
3726,
3726,
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... |
Best Method for reading a YAML response in .NET?
===
Weve recently been trying to work on an application that uses pandastream to encode our videos, we are sending the videos successfully, and the response that we get back is in YAML, however the only tool that we can find (YAML for .NET) is not parsing the file. Has anyone else ran into this, or have any insight on the best practice for parsing a YAML file in .NET? | 0 | [
2,
246,
2109,
26,
1876,
21,
2167,
8184,
1627,
19,
13,
9,
2328,
60,
800,
3726,
3726,
12690,
1989,
74,
749,
20,
170,
27,
40,
3010,
30,
2027,
16982,
11260,
20,
20523,
318,
6610,
15,
95,
50,
4907,
14,
6610,
3673,
15,
17,
14,
1627,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Apache - Reverse Proxy and HTTP 302 status messsage
===
My team is trying to setup an Apache reverse proxy from a customer's site into one of our web applications.
http://www.example.com/app1/some-path maps to http://internal1.example.com/some-path
Inside our application we use struts and have redirect = true set on certain actions in order to provide certain functionality. The 302 status messages from these re-directs cause the user to break out of the proxy resulting in an error page for the end user.
HTTP/1.1 302 Found
Location: http://internal.example.com/some-path/redirect
Is there any way to setup the reverse proxy in apache so that the redirects work correctly?
http://www.example.com/app1/some-path/redirect
| 0 | [
2,
17140,
13,
8,
7006,
27188,
17,
7775,
13,
22863,
1782,
3957,
18,
1303,
800,
3726,
3726,
51,
173,
25,
749,
20,
18161,
40,
17140,
7006,
27188,
37,
21,
7705,
22,
18,
689,
77,
53,
16,
318,
2741,
3767,
9,
7775,
6903,
6483,
9,
29041... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 refine your estimation process?
===
Estimating how long any given task will take seems to be one of the hardest parts about software development. At my current shop we estimate tasks in hours at the start of an iteration, but once the task is complete we do not use it to aide us in future estimations.
How do you use the information you gather from past estimations to refine future ones?
| 0 | [
2,
184,
107,
42,
302,
7509,
154,
25390,
953,
60,
800,
3726,
3726,
13,
15018,
79,
1880,
184,
175,
186,
504,
3005,
129,
247,
2206,
20,
44,
53,
16,
14,
20766,
1341,
88,
2306,
522,
9,
35,
51,
866,
2546,
95,
10243,
8674,
19,
974,
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... |
Identifying the season from the Date using Java
===
I've had nothing but good luck from SO, so why not try again?
I have an application that needs to show a different image based on the season of the year (spring, summer, winter, fall). I have very specific start and end dates for these seasons.
What I would like from you geniuses is a method called GetSeason that takes a date as input and returns a String value of Spring, Summer, Winter or Fall. Here are the date ranges and their associated seasons:<br>
Spring:3/1-4/30<br>
Summer:5/1-8/31<br>
Fall:9/1-10/31<br>
Winter: 11/1-2/28
Can someone provide a working method to return the proper season?
Thanks everyone!
| 0 | [
2,
13785,
14,
198,
37,
14,
1231,
568,
8247,
800,
3726,
3726,
31,
22,
195,
41,
626,
47,
254,
5419,
37,
86,
15,
86,
483,
52,
1131,
188,
60,
31,
57,
40,
3010,
30,
2274,
20,
298,
21,
421,
1961,
432,
27,
14,
198,
16,
14,
159,
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... |
Does NuSoap have to be configured a certain way when calling from WCF?
===
I'm trying to call a php webservice using WCF. I googled some public php services to see if I could replicate the error I was receiving and I created 2 different unit tests to demonstrate.
The test that failed I get the following error:
System.ServiceModel.ProtocolException: The content type text/xml; charset=ISO-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 601 bytes of the response were: '<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
Here are the unit tests:
[TestMethod]
public void WCF_Call_To_SiteInspect() {
//This service doesn't work. It gets the same communication error as our own servers
var soapClien = new SiteInspect.SiteInspectPortClient();
var response = soapClien.doSiteInspect("Any", "Any", "www.google.com");
Assert.IsTrue(response.serverTime.Length > 0);
}
[TestMethod]
public void WCF_Call_To_FinnService() {
//This service works.... in looking at the wsdl it appears that it references a separate wsdl file. Is this the reason?
var soapClient = new NuSoapFinnService.finnwordsPortTypeClient();
var finnLyric = soapClient.getRandomNeilFinnLyric("text");
Assert.IsTrue(finnLyric.Length > 0);
}
The test case on the bottom (the Finn service) passed at the following URL: http://www.nickhodge.com/nhodge/finnwords/finnwords.wsdl
The first test case failed given the following URL: http://www.flash-db.com/services/ws/siteInspect.wsdl
The only difference I can see in the wsdl is the Finn service references an extraneous file. xmlns:tns="http://www.nickhodge.com/nhodge/finnwords/finnwords.wsdl . Is this bug with WCF that expects the wsdl in a specific format?
| 0 | [
2,
630,
3152,
656,
2552,
57,
20,
44,
28895,
21,
1200,
161,
76,
2555,
37,
11801,
410,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
645,
21,
13,
26120,
2741,
11449,
568,
11801,
410,
9,
31,
8144,
43,
109,
317,
13,
26120,
687,
20,
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... |
c# FormField DropDownList height
===
I want to know how to set the height property for the HTML Select in code. Tried setting the .Attribute.Add("Style","Height:120px") just to see if I could get it to change but to no avail.
| 0 | [
2,
272,
5910,
505,
1109,
2804,
2968,
5739,
2947,
800,
3726,
3726,
31,
259,
20,
143,
184,
20,
309,
14,
2947,
1354,
26,
14,
13,
15895,
5407,
19,
1797,
9,
794,
2697,
14,
13,
9,
721,
14755,
9,
14854,
5,
7,
4381,
7,
15,
7,
252,
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... |
Offline Web Application: Success Stories and Tips
===
We @ [medicware.com.br][1] are thinking about making our **web application offline-capable** with [Gears][2]
So, I'd like to hear **success stories** and **tips** about yours real experiences in that field.
[1]: http://www.medicware.com.br
[2]: http://gears.google.com/ | 0 | [
2,
168,
1143,
2741,
3010,
45,
1280,
1650,
17,
11034,
800,
3726,
3726,
95,
13,
1,
636,
4688,
596,
5011,
9,
960,
9,
5145,
500,
2558,
165,
500,
50,
1440,
88,
544,
318,
13,
1409,
14113,
3010,
168,
1143,
8,
4666,
579,
1409,
29,
636,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Trouble deploying code written on VS2008 to server running .NET Framework 2.0
===
When I created the project I'm trying to deploy I selected that I wanted to target .NET Framework 2.0. After deploying the project I try to brows to it and get and error page that shows:
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
One of the selling points of VS2008 is that you can develop for and deploy to server running .NET2.0 what Am I doing wrong? | 0 | [
2,
2572,
17617,
68,
1797,
642,
27,
4611,
2753,
20,
8128,
946,
13,
9,
2328,
6596,
172,
9,
387,
800,
3726,
3726,
76,
31,
679,
14,
669,
31,
22,
79,
749,
20,
17617,
31,
1704,
30,
31,
417,
20,
2935,
13,
9,
2328,
6596,
172,
9,
387... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Where can I find my .emacs file for Emacs running on Windows?
===
I tried looking for the .emacs file for my Windows install for Emacs but could not find it. Does it have the same filename under Windows as in Unix? Do I have to create it myself? If so, under what specific directory does it go? | 0 | [
2,
113,
92,
31,
477,
51,
13,
9,
62,
6893,
18,
3893,
26,
13,
62,
6893,
18,
946,
27,
1936,
60,
800,
3726,
3726,
31,
794,
699,
26,
14,
13,
9,
62,
6893,
18,
3893,
26,
51,
1936,
16146,
26,
13,
62,
6893,
18,
47,
110,
52,
477,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Message: "Access to the path c:\windows\microsoft.net\framework\(version)\Temporary ASP.NET Files\(blah) is denied." - what causes this?
===
Every so often when I'm debugging, I get this message in nice brown text on an ASP.NET error page:
> *Access to the path
"c:\windows\microsoft.net\framework\\(version)\Temporary ASP.NET Files\\(blah)"
is denied.*
I've never been able to figure out what causes it, what really fixes it, and why it happens.
Often times the path after the "Temporary ASP.NET Files" portion (the "(blah)") does not exist, so I'm not sure why it's looking there.
Sometimes an IISRESET fixes it, and sometimes it doesn't.
Sometimes an aspnet_regiis fixes it, and sometimes it doesn't.
Sometimes a reboot fixes it, and sometimes it doesn't.
For what it's worth I ran into this today with some .NET 1.1 code (yes, still maintaining some - hoping to upgrade it soon) and I'm not sure if I've ever seen it with .NET 2.0 and above.
Does anyone know what causes this and what should fix it? I assume it has multiple possible causes but I'm just curious if someone could shed some light on it. | 0 | [
2,
7019,
2802,
45,
13,
7,
20604,
20,
14,
2013,
272,
45,
1,
27508,
18,
1,
22019,
12980,
9,
2328,
1,
8361,
3783,
1,
5,
10898,
6,
1,
24635,
28,
306,
9,
2328,
6488,
1,
5,
220,
9396,
6,
25,
5265,
9,
7,
13,
8,
98,
4047,
48,
60... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Automatic PHP Documentation Generation?
===
For ActionScript 2, I've used [NaturalDocs][1]. However it has pretty poor support for PHP. I've looked so far at [Doxygen][2] and [phpDocumentor][3], but their output is pretty ugly in my opinion. Does anyone have any experience with automatic documentation generation for PHP? I'd prefer to be able to use javadoc-style tags, they are short to write and easy to remember.
[1]: http://www.naturaldocs.org/
[2]: http://www.stack.nl/~dimitri/doxygen/
[3]: http://www.phpdoc.org/ | 0 | [
2,
6715,
13,
26120,
13945,
2782,
60,
800,
3726,
3726,
26,
1028,
8741,
172,
15,
31,
22,
195,
147,
636,
17232,
13799,
18,
500,
2558,
165,
500,
9,
207,
32,
63,
1772,
1696,
555,
26,
13,
26120,
9,
31,
22,
195,
292,
86,
463,
35,
636... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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++ std::string Constructor
===
any thoughts on this would be appreciated:
std::string s1 = "hello";
std::string s2 = std::string(s1);
I'd now expect these two strings to be independent, i.e. I could append ", world" to s2 and s1 would still read "hello". This is what I find on windows and linux but running the code on a HP_UX machine it seems that s2 and s1 are the same string, so modifying s2 changes s1.
Does this sound absolutely crazy, anyone seen anything similar? | 0 | [
2,
272,
20512,
354,
43,
45,
45,
11130,
6960,
248,
800,
3726,
3726,
186,
3064,
27,
48,
83,
44,
13746,
45,
354,
43,
45,
45,
11130,
13,
18,
165,
800,
13,
7,
11515,
7,
73,
354,
43,
45,
45,
11130,
13,
18,
135,
800,
354,
43,
45,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how do I extract xml properties using shell scripts
===
I have already extracted the tag from the source document using grep but, now I cant seem to figure out how to easily extract the properties from the string. Also I want to avoid having to use any programs that would not usually be present on a standard installation.
$tag='<img src="http://imgs.xkcd.com/comics/barrel_cropped_(1).jpg" title="Don't we all." alt="Barrel - Part 1" />'
I need to end up with the following variables
$src="http://imgs.xkcd.com/comics/barrel_cropped_(1).jpg"
$title="Don't we all."
$alt="Barrel - Part 1"
| 0 | [
2,
184,
107,
31,
10962,
23504,
3704,
568,
3593,
17505,
800,
3726,
3726,
31,
57,
614,
18607,
14,
3383,
37,
14,
1267,
4492,
568,
5604,
306,
47,
15,
130,
31,
2973,
2260,
20,
1465,
70,
184,
20,
2351,
10962,
14,
3704,
37,
14,
3724,
9... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
.NET TransactionScope class and T-SQL TRAN COMMIT and ROLLBACK
===
I am current writing an application that will require multiple inserts, updates and deletes for my business entity. I am using the TransactionScope class to guarantee all the stored procedures can commit or roll back as a single unit of work.
My question is, I am required to also use COMMIT TRAN and ROLLBACK TRAN is each of my stored procedures if I am using the TransactionScope class in my .NET class library? | 0 | [
2,
13,
9,
2328,
12799,
11555,
718,
17,
13,
38,
8,
18,
22402,
12748,
9686,
17,
3001,
1958,
800,
3726,
3726,
31,
589,
866,
1174,
40,
3010,
30,
129,
4077,
1886,
14692,
18,
15,
16779,
17,
27448,
18,
26,
51,
508,
9252,
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... |
NFS Server in Java
===
I search an implementation of a network (or distributed) file system like NFS in Java. The goal is to extend it and do some research stuff with it. On the web I found some implementation e.g. [DJ NFS](http://users.csc.calpoly.edu/~jbergami/projects/djnfs/), but the open question is how mature and fast they are.
Can anyone purpose a good starting point, has anyone experience with such things?
P.S. I know Hadoop DFS and I used it for some projects, but Hadoop is not a good fit for the things I want to do here. | 0 | [
2,
13,
11408,
18,
8128,
19,
8247,
800,
3726,
3726,
31,
2122,
40,
6123,
16,
21,
982,
13,
5,
248,
4387,
6,
3893,
329,
101,
13,
11408,
18,
19,
8247,
9,
14,
1195,
25,
20,
7206,
32,
17,
107,
109,
527,
3217,
29,
32,
9,
27,
14,
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... |
Wicket and JSPs
===
I am trying my hands at Wicket, Using add(new Include()) syntax I was able to include jsps which are at the top level. However those which are present inside 'WEB-INF' cannot be referenced, is there any way to achieve this? | 0 | [
2,
14414,
17,
487,
18,
1919,
800,
3726,
3726,
31,
589,
749,
51,
473,
35,
14414,
15,
568,
3547,
5,
2681,
468,
5,
6,
6,
22649,
31,
23,
777,
20,
468,
487,
18,
1919,
56,
50,
35,
14,
371,
662,
9,
207,
273,
56,
50,
734,
572,
13,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Embedding DLLs in a compiled executable
===
You know, I haven't seen a good answer for this anywhere. Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file to distribute)? If it is possible, how would one go about doing it?
Normally, I'm cool with just leaving the DLLs outside and having the setup program handle everything, but there have been a couple of people at work who have asked me this and I honestly don't know. | 0 | [
2,
11911,
69,
3258,
13,
43,
211,
18,
19,
21,
9316,
1396,
17194,
5924,
800,
3726,
3726,
42,
143,
15,
31,
2933,
22,
38,
541,
21,
254,
1623,
26,
48,
4922,
9,
25,
32,
938,
20,
11911,
69,
21,
782,
8,
21341,
13,
43,
211,
77,
21,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subdomain on different host
===
I'm trying to host a subdomain for my site with a different hosting company and I'm running into issues on how to set it up.
Here are the specifics:
- Domain is registered with GoDaddy.
- Nameservers are pointing to DiscountASP.net where ASP.NET app has been happily running for couple of years.
- Would like blog.mydomain.com to point to my account with DreamHost.com to take advantage of their LAMP stack.
I have added blog.mydomain.com to DreamHost (after adding mydomain.com) via their control panel. I thought I would be able to add a subdomain entry on GoDaddy to point to DreamHost, but all they allow is blog.mydomain.com = new url.
In theory I could just take our .biz or .net domain and host it on DreamHost but was hoping I could do it all with a subdomain.
So, to summarize I'd like to know if what I want to do is feasible and if so, how do I go about it (given the constraints of GoDaddy, DiscountASP, & DreamHost).
Thanks,
Matt | 2 | [
2,
972,
537,
6232,
27,
421,
2015,
800,
3726,
3726,
31,
22,
79,
749,
20,
2015,
21,
972,
537,
6232,
26,
51,
689,
29,
21,
421,
10637,
237,
17,
31,
22,
79,
946,
77,
1549,
27,
184,
20,
309,
32,
71,
9,
235,
50,
14,
1903,
18,
45,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to use python to login to a webpage and retrieve cookies for later usage?
===
I want to download and parse webpage using python, but to access it I need a couple of cookies set. Therefor I need to login over https to the webpage first. The login moment involves sending two POST params (username, password) to /login.php. During the login request I want to retrieve the cookies from the response header and store them so I can use them in the request to download the webpage /data.php.
How would I do this in python (preferably 2.6)? If possible I only want to use builtin modules.
| 0 | [
2,
184,
20,
275,
20059,
20,
6738,
108,
20,
21,
2741,
6486,
17,
11917,
19396,
26,
138,
7514,
60,
800,
3726,
3726,
31,
259,
20,
7121,
17,
2017,
870,
2741,
6486,
568,
20059,
15,
47,
20,
1381,
32,
31,
376,
21,
1335,
16,
19396,
309,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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-00942: table or view does not exist : How do I find which table or view it is talking about
===
We're running a java/hibernate app going against ORACLE 10g in TESTING. Once in a while, we're seeing this error(ORA-00942: table or view does not exist). Is there a way to find out which table/view(s) ORACLE is talking about ?
I know that I can add extra levels of logging in hibernate which will show all the SQL that it executes on ORACLE and then run that SQL to figure out which TABLE/VIEW is missing or missing permission. But given that it is in TESTING/STAGING, that will slow down performance.
Is there a simple way to narrow down on the Table/View Name ?
Thank you,
BR<BR>
~A | 0 | [
2,
54,
58,
8,
2032,
4588,
135,
45,
859,
54,
1418,
630,
52,
3182,
13,
45,
184,
107,
31,
477,
56,
859,
54,
1418,
32,
25,
1582,
88,
800,
3726,
3726,
95,
22,
99,
946,
21,
8247,
118,
8630,
106,
8820,
4865,
228,
149,
15759,
332,
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 join two lists in Java?
===
Conditions: do not modifiy the original lists; JDK only, no external libraries. Bonus points for a one-liner or a JDK 1.3 version.
Is there a simpler way than:
List<String> newList = new ArrayList<String>();
newList.addAll(listOne);
newList.addAll(listTwo);
| 0 | [
2,
184,
107,
31,
1865,
81,
7227,
19,
8247,
60,
800,
3726,
3726,
2039,
45,
107,
52,
7226,
821,
49,
93,
14,
501,
7227,
73,
487,
43,
197,
104,
15,
90,
4886,
8649,
9,
5708,
819,
26,
21,
53,
8,
14813,
54,
21,
487,
43,
197,
137,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the proper name for doing debugging by adding 'print' statements
===
There are many ways of doing debugging, using a debugger is one, but the simple one for the humble, lazy, programmer is to just add a bunch of print statements to your code.
i.e.
def foo(x):
print 'Hey wow, we got to foo!', x
...
print 'foo is returning:', bar
return bar
Is there a proper name for this style of debugging? | 0 | [
2,
98,
25,
14,
4119,
204,
26,
845,
121,
16254,
2762,
34,
4721,
13,
22,
10299,
22,
9015,
800,
3726,
3726,
80,
50,
151,
2847,
16,
845,
121,
16254,
2762,
15,
568,
21,
121,
2345,
11356,
25,
53,
15,
47,
14,
1935,
53,
26,
14,
16446,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Speed of SELECT vs. SET in T-SQL
===
I've been led to believe that for single variable assignment in T-SQL, <code>set</code> is the best way to go about things, for two reasons:
* it's the ANSI standard for variable assignment
* it's actually faster than doing a SELECT (for a single variable)
So...
SELECT @thingy = 'turnip shaped'
becomes
SET @thingy = 'turnip shaped'
But how fast, is _fast_? Am I ever really going to notice the difference?
| 0 | [
2,
1362,
16,
5407,
4611,
9,
309,
19,
13,
38,
8,
18,
22402,
800,
3726,
3726,
31,
22,
195,
74,
481,
20,
985,
30,
26,
345,
7612,
8427,
19,
13,
38,
8,
18,
22402,
15,
13,
1,
9375,
1,
3554,
1,
118,
9375,
1,
25,
14,
246,
161,
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... |
Sharing source between two Netbeans projects
===
I have an existing Java project in Netbeans (a JSF web application). I'd like to experiment with GWT in a separate project - put pull in source from the original project. Is there any way to share source between two Netbeans projects.
When I attempt to add the source directory from the original project into the new the IDE complains that the source is already part of another project. | 0 | [
2,
6126,
1267,
128,
81,
4275,
863,
5950,
2314,
800,
3726,
3726,
31,
57,
40,
3149,
8247,
669,
19,
4275,
863,
5950,
13,
5,
58,
487,
18,
410,
2741,
3010,
6,
9,
31,
22,
43,
101,
20,
5737,
29,
14094,
38,
19,
21,
1725,
669,
13,
8,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Speed of mulitple variable assignment in T-SQL
===
Imagine I have a chunk if initialisation code at the top of a stored procedure with a number of variable assignments:
SET @proc = 'sp_madeupname'
SET @magic_number = 42
SET @tomorrows_date = DATEADD(dd, 1, GETDATE())
...
Clearly doing all of the above as one SELECT would be faster:
SELECT
@proc = 'sp_madeupname'
,@magic_number = 42
,@tomorrows_date = DATEADD(dd, 1, GETDATE())
...
But *how much* faster? Say if this stored procedure was executed as part of a loop, several thousand times, is it going to make any significant difference to the performance? | 0 | [
2,
1362,
16,
6633,
242,
5106,
7612,
8427,
19,
13,
38,
8,
18,
22402,
800,
3726,
3726,
4382,
31,
57,
21,
15009,
100,
2104,
4330,
1797,
35,
14,
371,
16,
21,
8214,
7004,
29,
21,
234,
16,
7612,
16898,
45,
309,
13,
1,
15617,
800,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
When does CSS's !important declaration not work?
===
I am wondering if someone can put a bit of an authoritative reference summary of when the !important declaration in CSS does **not** work to override inline styles.
| 0 | [
2,
76,
630,
272,
18,
18,
22,
18,
13,
187,
25716,
7098,
52,
170,
60,
800,
3726,
3726,
31,
589,
5712,
100,
737,
92,
442,
21,
1142,
16,
40,
25368,
2801,
14740,
16,
76,
14,
13,
187,
25716,
7098,
19,
272,
18,
18,
630,
13,
1409,
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,
0,
0,
0,
0,
0,
0,
0... |
What is the purpose of the cbSize member in Win32API structs
===
I frequently encounter some definitions for Win32API structures (but not limited to it) that have a `cbSize` member as in the following example.
typedef struct _TEST {
int cbSize;
// other members follow
} TEST, *PTEST;
And then we use it like this:
TEST t = { sizeof(TEST) };
...
or
TEST t;
t.cbSize = sizeof(TEST);
...
My initial guess is that this could potentially be used for versioning. A DLL that receives a pointer for a struct like this can check if the `cbSize` member has the expected value with which the DLL was compiled. Or to check if proper packing is done for the struct. But I would like to here from you.
**What is the purpose of the `cbSize` member in some C++ structures on Win32API?** | 0 | [
2,
98,
25,
14,
2131,
16,
14,
6138,
2952,
322,
19,
628,
3125,
2552,
49,
13,
10346,
18,
800,
3726,
3726,
31,
3086,
7007,
109,
18544,
26,
628,
3125,
2552,
49,
3815,
13,
5,
811,
52,
1317,
20,
32,
6,
30,
57,
21,
13,
1,
21389,
295... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WCF transport security with no authentication
===
Is it possible to have transport security without authentication? I'm well aware of it's flaws but atm I can't install a certificate a the client side.
It seems I can set WSHttpBinding.SecurityMode to Transport and the ClientCredentialType to HttpClientCredentialType.None, but when I try to call the service I get this exception:
An error occurred while making the HTTP request to https://[MyService]. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.
I don't think it's a mismatch of the security binding between the client and the server because I'm using a proxy generated by svcutil.
Why's it looking for a server certificate if I've set the ClientCredentialType to None?
Thanks. | 0 | [
2,
11801,
410,
1739,
1221,
29,
90,
27963,
800,
3726,
3726,
25,
32,
938,
20,
57,
1739,
1221,
366,
27963,
60,
31,
22,
79,
134,
3854,
16,
32,
22,
18,
398,
2371,
18,
47,
35,
79,
31,
92,
22,
38,
16146,
21,
6259,
21,
14,
6819,
270... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Should the Visual Studio GUI editor be used?
===
Coming from a background, I'm familiar with GUI editors that do a poor job of producing code. However, I've never written a GUI using .NET. Does the GUI editor in Visual Studio have the same problem(s)? Are both the source files and output GUI good? | 0 | [
2,
378,
14,
3458,
1120,
9457,
1835,
44,
147,
60,
800,
3726,
3726,
880,
37,
21,
2395,
15,
31,
22,
79,
3694,
29,
9457,
12149,
30,
107,
21,
1696,
1205,
16,
4081,
1797,
9,
207,
15,
31,
22,
195,
243,
642,
21,
9457,
568,
13,
9,
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... |
MS Office hyperlinks change code page ?!?
===
When you paste the following URL into IE: [http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx][1], the link on the right of the page cleanly says "Download Zoomit (77 KB)". If you paste the link into an Office document (Word, Excel, PowerPoint -- tested using Office 2003), and activate the link from the document, that same text has picked up a couple of A-circumflex symbols. This is because the source HTML contains "&nbsp;" entities (non-breaking space) which get translated to Unicode 00A0. In UTF-8, this is expressed as X'C2A0', and then the X'C2' gets displayed as a A-circumflex. I don't completely understand how the code pages get mixed up like this, but I'd really like to find a HTML meta http-equiv charset value that will cause my pages containing the nbsp-entity to display properly even when linked from an Office document.
[1]: http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx | 0 | [
2,
4235,
488,
5443,
6258,
18,
753,
1797,
2478,
13,
60,
187,
60,
800,
3726,
3726,
76,
42,
640,
62,
14,
249,
287,
6362,
77,
13,
660,
45,
636,
21127,
6903,
6524,
2328,
9,
22019,
12980,
9,
960,
118,
219,
8,
267,
118,
4980,
18,
628... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are some common things to consider when developing a web-based application to be sold
===
I'm developing an application for an internal customer. One of the requirements is that it be developed in such a way that it could potentially be sold to other organizations. The application is a tracking application for a fund-raising organization that will manage their donations, donors, participants, and events. I already know that I'll need to develop a plugin architecture for authentication (authorization will be handled internally) and to derive demographic data from an external directory.
The application will be built on ASP.NET/C#/Linq/SQL Server. At this point I'm not really open to supporting alternative databases, but I'm thinking I could do this in the future via different Linq drivers, if necessary.
All of the web applications that I've built to date have been custom implementations so I'd like to know if there are other things that I need to address via plugins and/or configuration items. Any input would be helpful.
Thanks. | 0 | [
2,
98,
50,
109,
757,
564,
20,
3563,
76,
3561,
21,
2741,
8,
1281,
3010,
20,
44,
945,
800,
3726,
3726,
31,
22,
79,
3561,
40,
3010,
26,
40,
3117,
7705,
9,
53,
16,
14,
4786,
25,
30,
32,
44,
885,
19,
145,
21,
161,
30,
32,
110,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 break out of multiple loops in Python?
===
Given the following code (that doesn't work):
while True:
#snip: print out current state
while True:
ok = get_input("Is this ok? (y/n)")
if ok == "y" or ok == "Y": break 2 #this doesn't work :(
if ok == "n" or ok == "N": break
#do more processing with menus and stuff
Is there a way to make this work? Or do I have do one check to break out of the input loop, then another, more limited, check in the outside loop to break out all together if the user is satisfied?
**Edit-FYI:** get_input is a short function I wrote that supports showing a prompt and default values and all that fanciness and returns `stdin.readline().strip()` | 0 | [
2,
184,
20,
1442,
70,
16,
1886,
19661,
19,
20059,
60,
800,
3726,
3726,
504,
14,
249,
1797,
13,
5,
887,
1437,
22,
38,
170,
6,
45,
133,
1151,
45,
6926,
18,
889,
306,
45,
4793,
70,
866,
146,
133,
1151,
45,
5854,
800,
164,
1,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the easiest way to allow users to create their own forms on my web app?
===
My ASP.NET web app needs to support the ability for users to create their own forms, complete with textboxes, dropdowns, radio buttons with some logic (required field, etc.). Is there some third party tool that's already geared towards this? | 0 | [
2,
98,
22,
18,
14,
27237,
161,
20,
1655,
3878,
20,
1600,
66,
258,
1997,
27,
51,
2741,
4865,
60,
800,
3726,
3726,
51,
28,
306,
9,
2328,
2741,
4865,
2274,
20,
555,
14,
2165,
26,
3878,
20,
1600,
66,
258,
1997,
15,
1279,
29,
1854,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
COM from x86 assembly?
===
Is it possible to call into COM objects via x86 assembly language? If so, how?
Why would I want to do this? Let's say I've got two programs that I don't have source for - all I've got are the binaries. One of them implements a COM interface, the other doesn't. I want to inject code into the first program to call into the second using this COM interface, and this requires me to use x86 assembly. | 0 | [
2,
13,
960,
37,
993,
3274,
1475,
60,
800,
3726,
3726,
25,
32,
938,
20,
645,
77,
13,
960,
3916,
1197,
993,
3274,
1475,
816,
60,
100,
86,
15,
184,
60,
483,
83,
31,
259,
20,
107,
48,
60,
408,
22,
18,
395,
31,
22,
195,
330,
81... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Database localization
===
i am looking for opinions if the following problem maybe has a better/different/common solution:
---
I have a database for products which contains the names of the products in english (the default language of this application) and i need translations of the names if available.
Currently i have this setup:
A product table
CREATE TABLE products
(
id serial NOT NULL,
"name" character varying(255) NOT NULL,
CONSTRAINT products_pkey PRIMARY KEY (id)
)
and a product localization table
CREATE TABLE products_l10n
(
product_id serial NOT NULL,
"language" character(2) NOT NULL,
"name" character varying(255) NOT NULL,
CONSTRAINT products_l10n_pkey PRIMARY KEY (product_id, language),
CONSTRAINT products_l10n_product_id_fkey FOREIGN KEY (product_id)
REFERENCES products (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE
)
and i use the following query to retrieve a list of localized products (german in this case) with fallback to the default english names:
SELECT p.id, COALESCE(pl.name, p.name) from products p LEFT JOIN products_l10n pl ON p.id = pl.product_id AND language = 'de';
The SQL code is in postgres dialect. | 0 | [
2,
6018,
375,
1829,
800,
3726,
3726,
31,
589,
699,
26,
11900,
100,
14,
249,
1448,
913,
63,
21,
574,
118,
15782,
118,
17130,
4295,
45,
13,
8,
8,
8,
31,
57,
21,
6018,
26,
1985,
56,
1588,
14,
1817,
16,
14,
1985,
19,
486,
13,
5,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to keep row order with SqlBulkCopy?
===
I'm exporting data programatically from Excel to SQL Server 2005 using SqlBulkCopy. It works great, the only problem I have is that it doesn't preserve the row sequence i have in Excel file. I don't have a column to order by, I just want the records to be inserted in the same order they appear in the Excel Spreadsheet.
I can't modify the Excel file, and have to work with what I've got. Sorting by any of the existing columns will break the sequence.
Please help. | 0 | [
2,
184,
20,
643,
3131,
389,
29,
4444,
255,
9077,
197,
19625,
60,
800,
3726,
3726,
31,
22,
79,
7487,
68,
1054,
625,
721,
8438,
37,
20700,
20,
4444,
255,
8128,
812,
568,
4444,
255,
9077,
197,
19625,
9,
32,
693,
374,
15,
14,
104,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
testing for the existence of a temporary table in a multi tempdb environment
===
Is there any way of determining whether or not a specific temp table has been created in a session without referencing the tempdb database that it was created on? Users are allocated to a specific tempdb when they log in, so I don't know which tempdb they'll be using.
I don't need to specify a tempdb to select data out of the temp table, so surely I can see if the table exists? | 0 | [
2,
4431,
26,
14,
3012,
16,
21,
4700,
859,
19,
21,
1889,
13,
9577,
9007,
2307,
800,
3726,
3726,
25,
80,
186,
161,
16,
13521,
1472,
54,
52,
21,
1903,
13,
9577,
859,
63,
74,
679,
19,
21,
3723,
366,
13,
29254,
14,
13,
9577,
9007,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 trampoline function?
===
During recent discussions at work, someone referred to a trampoline function.
I have read the description at [Wikipedia][1]. It is enough to give a general idea of the functionality, but I would like something a bit more concrete.
Do you have a simple snippet of code that would illustrate a trampoline?
[1]: http://en.wikipedia.org/wiki/Trampoline_(computers) | 0 | [
2,
98,
25,
21,
17388,
111,
1143,
1990,
60,
800,
3726,
3726,
112,
1764,
11139,
35,
170,
15,
737,
1870,
20,
21,
17388,
111,
1143,
1990,
9,
31,
57,
1302,
14,
5318,
35,
636,
17375,
26132,
500,
2558,
165,
500,
9,
32,
25,
511,
20,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best way to learn more about imperative-style concurrent programming?
===
Have had to write my first "proper" multithreaded coded recently, and realised just how little I knew about how "imperative-style" (ie, concurrency models used by C++/C#/Java, and the like) concurrent programming techniques.
What resources are there (both books and online tutorials, etc) in order to learn more about this area of coding-fu?
NB: I'm not asking about concurrency models that are arguably better (Erlang's message passing, or Clojure's STM), just paradigms used in imperative languages. | 0 | [
2,
98,
25,
14,
246,
161,
20,
2484,
91,
88,
25186,
8,
4381,
19513,
3143,
60,
800,
3726,
3726,
57,
41,
20,
2757,
51,
64,
13,
7,
10890,
106,
7,
1889,
96,
10647,
69,
13,
22254,
1989,
15,
17,
12514,
114,
184,
265,
31,
404,
88,
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... |
Factory Class - Should i populate my object with data here?
===
im creating a Factory class that will contruct and return an object. I normally would do all of the data stuff at the Data Access Layer, but i dont think i could reach my objective and still do so. What i want to do is use a SQLDataReader to quickly read the data information and populate the object to be returned from the factory. Is this a stupid idea? Is there a better approach? I would prefer not to just return a DataSet from the DAL if possible, or is it a question of performance vs. maintainability?
Thanks in advance | 0 | [
2,
3129,
718,
13,
8,
378,
31,
1675,
12383,
51,
3095,
29,
1054,
235,
60,
800,
3726,
3726,
797,
2936,
21,
3129,
718,
30,
129,
1065,
8989,
4812,
17,
788,
40,
3095,
9,
31,
4147,
83,
107,
65,
16,
14,
1054,
3217,
35,
14,
1054,
1381,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Google App Engine and 404 error
===
I've setup a static website on GAE using hints found elsewhere, but can't figure out how to return a 404 error. My app.yaml file looks like
- url: (.*)/
static_files: static\1/index.html
upload: static/index.html
- url: /
static_dir: static
with all the static html/jpg files stored under the static directory. The above works for files that exist, but returns a null length file if they don't. The answer is probably to write a python script to return a 404 error, but how do you set things up to serve the static files that exist but run the script for files that don't? | 0 | [
2,
8144,
4865,
1406,
17,
13,
23397,
7019,
800,
3726,
3726,
31,
22,
195,
18161,
21,
12038,
2271,
27,
13,
17721,
568,
6382,
18,
216,
6040,
15,
47,
92,
22,
38,
1465,
70,
184,
20,
788,
21,
13,
23397,
7019,
9,
51,
4865,
9,
8580,
25... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can a .NET app be complied to native.
===
Just wondering if a .NET app can be complied down to native machine code ahead of time? I not planning on doing so if you can, I'm just curious.
Thanks | 0 | [
2,
92,
21,
13,
9,
2328,
4865,
44,
27498,
20,
1275,
9,
800,
3726,
3726,
114,
5712,
100,
21,
13,
9,
2328,
4865,
92,
44,
27498,
125,
20,
1275,
1940,
1797,
2173,
16,
85,
60,
31,
52,
2334,
27,
845,
86,
100,
42,
92,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
7645 Null or empty full-text predicate
===
I have a query that ran fine on SQL2005 but moving the database to SQL2008 gives me the error from the title.
The code that is the problem is a call to CONTAINS, CONTAINSTABLE or FREETEXT with an empty parameter. However I'm trying to only call or join when there is a value like such
where (@search_term = '' or (FREETEXT(lst.search_text, @search_term)))
or
left join containstable (listing_search_text, search_text, @search_term) ftb on l.listing_id = ftb.[key]
and len(@search_term) > 0
However I cannot find any workaround for this to work on SQL2008. Any ideas?
I know I can do dynamic SQL or have a if statement with two different cases (select with FT join, select without FT join. Any better workaround which doesn't require doing this?
| 0 | [
2,
6914,
2520,
16203,
54,
2424,
503,
8,
11969,
28712,
800,
3726,
3726,
31,
57,
21,
25597,
30,
717,
1123,
27,
4444,
255,
2835,
47,
1219,
14,
6018,
20,
4444,
255,
2753,
2352,
55,
14,
7019,
37,
14,
581,
9,
14,
1797,
30,
25,
14,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Retrieving the new ID from a SQLDataAdaptor.Update
===
How would you go about retrieving the @@IDENTITY value for each row when the SQLDataAdapater.Update is executed on a table?
eg. Is it possible to modify/intercept the InsertCommand, generated by the SQLCommandBuilder, to say add an output parameter, and then retrieve its value in the da.RowUpdated event???
| 0 | [
2,
13,
6239,
3272,
8397,
14,
78,
4924,
37,
21,
4444,
255,
18768,
27576,
248,
9,
576,
8209,
800,
3726,
3726,
184,
83,
42,
162,
88,
13,
6239,
3272,
8397,
14,
13,
1,
13384,
856,
1923,
26,
206,
3131,
76,
14,
4444,
255,
18768,
4405,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SSRS Reports - parameter query
===
I am having an SQL reporting server reports which has 5 parameters which is nullable values. user may enter values for any of the fields. I need to check the condition that user have to enter atleast any one parameter out of five parameter values(any one is required).
****Note**: I need to do this in SQL Server reports itself.**
Please suggest me some good answer
Thanks | 0 | [
2,
22118,
18,
2813,
13,
8,
18906,
25597,
800,
3726,
3726,
31,
589,
452,
40,
4444,
255,
6670,
8128,
2813,
56,
63,
331,
12905,
56,
25,
16203,
579,
4070,
9,
4155,
123,
2830,
4070,
26,
186,
16,
14,
2861,
9,
31,
376,
20,
2631,
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... |
Why is Apache executing .php.html files as PHP?
===
I have an odd problem...I'm using a documentation generator which generates a lot of output like docs/foo.php.html. It's XHTML, and thus contains `<?xml...>` tags at the beginning of file. The problem is, Apache has somehow decided to run it through the PHP interpreter, even though ".php" appears in the middle of the filename, and not at the end. This in turn triggers a PHP error, because it sees "`<?`" as the command to start executing PHP code, and immediately gets confused by the "`xml...`" which follows it.
How do I configure Apache to ONLY execute .php files, and not .php.html files? The string "php.html" does not appear explicitly anywhere in my Apache config files. There is a line "`AddHandler php5-script .php`", but I don't see how that would also include ".php.html" files. | 0 | [
2,
483,
25,
17140,
25836,
13,
9,
26120,
9,
15895,
6488,
28,
13,
26120,
60,
800,
3726,
3726,
31,
57,
40,
4210,
1448,
9,
9,
9,
49,
22,
79,
568,
21,
13945,
15286,
56,
7920,
18,
21,
865,
16,
5196,
101,
9765,
18,
118,
4120,
111,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there any reason why you all want to be notify whenever someone commit some codes?
===
I know there are things like doing manual check to make sure the codes committed is fundamentally correct. But beside that? Reason i asking is because a big project there are so many commits everyday. | 0 | [
2,
25,
80,
186,
1215,
483,
42,
65,
259,
20,
44,
52,
8612,
6634,
737,
9686,
109,
11358,
60,
800,
3726,
3726,
31,
143,
80,
50,
564,
101,
845,
5132,
2631,
20,
233,
562,
14,
11358,
4164,
25,
26420,
4456,
9,
47,
2113,
30,
60,
1215,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to format methods with large parameter lists
===
I have never seen a way to do this nicely, i would be interested in seeing how others do it. Currently i format it like this:
public Booking createVehicleBooking(Long officeId,
Long start,
Long end,
String origin,
String destination,
String purpose,
String requirements,
Integer numberOfPassengers) throws ServiceException {
/*..Code..*/
} | 0 | [
2,
184,
20,
2595,
3195,
29,
370,
18906,
7227,
800,
3726,
3726,
31,
57,
243,
541,
21,
161,
20,
107,
48,
24050,
15,
31,
83,
44,
3158,
19,
2078,
184,
654,
107,
32,
9,
871,
31,
2595,
32,
101,
48,
45,
317,
360,
68,
1600,
195,
252... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 stop making stupid Mistakes
===
Compared to most people on this site I am admittedly a novice. I wanted to get some advice from the pros on how to avoid making stupid errors in your code.
Is there anyone else who had the problem when they were first starting out of missing some detail that causes big problems? Are there any habits or behaviors that helped you over come this. | 0 | [
2,
184,
20,
747,
544,
3553,
13623,
800,
3726,
3726,
2428,
20,
127,
148,
27,
48,
689,
31,
589,
3297,
102,
21,
21999,
9,
31,
417,
20,
164,
109,
4978,
37,
14,
895,
18,
27,
184,
20,
2658,
544,
3553,
11908,
19,
154,
1797,
9,
25,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Factory Class - Save Objects
===
I have a factory class that populates objects with data. I want to implementing saving from the object, but do not want to populate the object with db stuff - is it stupid to have my Factory that creates the class also save the data?
ie: in my .Save() method on the object i would call Factory.Save(myObject); | 0 | [
2,
3129,
718,
13,
8,
2079,
3916,
800,
3726,
3726,
31,
57,
21,
3129,
718,
30,
1675,
12383,
18,
3916,
29,
1054,
9,
31,
259,
20,
17333,
7599,
37,
14,
3095,
15,
47,
107,
52,
259,
20,
1675,
12383,
14,
3095,
29,
13,
9007,
3217,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to setup proxy connection in Solaris server?
===
Reason is that when accessing internet url i need to supply proxy info.
| 0 | [
2,
184,
20,
18161,
27188,
2760,
19,
4535,
403,
8128,
60,
800,
3726,
3726,
1215,
25,
30,
76,
1381,
68,
2620,
287,
6362,
31,
376,
20,
2837,
27188,
15404,
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... | [
1,
1,
1,
1,
1,
1,
1,
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... |
Any good distributed agent/service models for .NET?
===
I'm looking for tools that implement the distributed agent/service model ... I guess we could also call this grid or cloud computing, but I'm not sure the term is exactly analagous. A distributed agent model would be one where developers build agents that are dispatched to a framework and the framework executes the agent somewhere in the distributed environment.
Specifically, I'm looking for a framework that support dynamic distribution across the grid/cloud, but replaces the transient agent with a more persistent service. The goal here is to minimize the amount of time and effort it requires to deploy a service into the grid/cloud container.
FWIW, I think Digipede gets pretty close to this, but I'm interested in what else is out there. I'm under the impression that assembly distribution would have to be considered in order for the solution to be viable. | 4 | [
2,
186,
254,
4387,
2267,
118,
11449,
2761,
26,
13,
9,
2328,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
4672,
30,
8713,
14,
4387,
2267,
118,
11449,
1061,
13,
9,
9,
9,
31,
2321,
95,
110,
67,
645,
48,
7354,
54,
4005,
10626,
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... |
IE6 generated strange worksheet name when doing export from java application
===
I am encountering error like
test(10)[1].csv file cannot be found at
C:\Documents and Settings\Ron\Local Settings\Temporary Internet Files\Content.IE5\PQ0STUVW
When trying to do export of csv file using the following codes.
Anyone have any idea what could be wrong? This issue does not occure in IE7 / Firefox and is only specific to IE6.
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment;filename=" + fileFullName); | 0 | [
2,
13,
660,
379,
6756,
2578,
170,
17627,
204,
76,
845,
7487,
37,
8247,
3010,
800,
3726,
3726,
31,
589,
7007,
68,
7019,
101,
1289,
5,
1036,
6,
2558,
165,
500,
9,
6824,
710,
3893,
1967,
44,
216,
35,
272,
45,
1,
28132,
18,
17,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SQL Server 2K5 vs SQL Server 2k8
===
Our company conciders to upgrade SQL for the long run what is the best investment? purchase SQLServer 2005 or SQLServer 2008? why in term of:
- Features diff
- License Cost
- Learning curve
Concider the fact that our staff already used sql server 2000 for many year. | 0 | [
2,
4444,
255,
8128,
172,
197,
264,
4611,
4444,
255,
8128,
172,
197,
457,
800,
3726,
3726,
318,
237,
1065,
10220,
445,
20,
9483,
4444,
255,
26,
14,
175,
485,
98,
25,
14,
246,
3709,
60,
3301,
4444,
255,
10321,
106,
812,
54,
4444,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I debug heap errors in a C# class library?
===
I'm getting a heap corruption error in a C# library module I'm calling through COM in a C++ app. The specific error is:
> HEAP: Free Heap block 4b61bb8 modified
> at 4b61be8 after it was freed<BR>
> ...<BR> This may be due to a
> corruption of the heap, and indicates
> a bug in [app].exe
> or any of the DLLs it has loaded.
The top of the call stack is:
> CustomMarshalers.dll!System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.MoveNext()
> + 0x168 bytes
Now my understanding was that .NET was supposed to mitigate memory problems, not make more memory problems with were impossible to fix. Yet, I can't think of anything which I might be doing to cause a memory error, or how I would possibly go about trying to fix it. The particular module is using the Microsoft.VisualStudio.VCProjectEngine .NET components to iterate VC project files, with pretty simple iterators. It's breaking in a foreach statement while iterating Files in a VCProject filter (folder), after succeeding for the previous about 100 calls. The actual code which is breaking is:
IVCCollection CollectionFiles = (IVCCollection)FolderInProject.Files;
foreach (VCFile File in CollectionFiles)
{
[...]
}
How can I possibly go about debugging this? | 0 | [
2,
184,
92,
31,
121,
16254,
15414,
11908,
19,
21,
272,
5910,
718,
1248,
60,
800,
3726,
3726,
31,
22,
79,
1017,
21,
15414,
7858,
7019,
19,
21,
272,
5910,
1248,
12613,
31,
22,
79,
2555,
120,
13,
960,
19,
21,
272,
20512,
4865,
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... |
Javascript MIME Type
===
What is the MIME type of javascript? More specifically, what is the right thing to put in the "type" attribute of a script tag? application/x-javascript and text/javascript seem to be the main contenders. | 0 | [
2,
8247,
8741,
26193,
1001,
800,
3726,
3726,
98,
25,
14,
26193,
1001,
16,
8247,
8741,
60,
91,
3524,
15,
98,
25,
14,
193,
584,
20,
442,
19,
14,
13,
7,
4474,
7,
35,
14755,
16,
21,
3884,
3383,
60,
3010,
118,
396,
8,
1004,
1385,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Converting a class library to a webapp in Visual Basic?
===
I was delivered several hundred source files for a web app original written in classic ASP, but somewhat ported to VisualBasic.NET and ASP.NET
It didn't come with any form of project or solution files.
I'm trying to get it setup to build, but am struggling. If I try to open it as a WebSite (ala Web Site instead of Web Project), I get hundreds of errors, mostly from missing references...
So, I tried creating a new class library project and added all the files, less errors now, but still hundreds.
Is there a way to tell VB to convert this class library project to a Web project? I think that may resolve a lot of the errors.
I'm a C# guy, and I haven't worked in VB since VB6.
| 0 | [
2,
19583,
21,
718,
1248,
20,
21,
2741,
7753,
19,
3458,
2125,
60,
800,
3726,
3726,
31,
23,
4002,
238,
1874,
1267,
6488,
26,
21,
2741,
4865,
501,
642,
19,
2732,
28,
306,
15,
47,
4131,
1295,
69,
20,
3458,
26467,
9,
2328,
17,
28,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is a reasonable query time for associated tables with very large datasets?
===
In *StackOverflow podcast no. 19*, Joe describe Fogcreek's decision to have **one database PER client** instead of **one database for ALL clients**. That kinda sets me thinking about the following.
1. Assuming I have **1000 users**.
2. Each user has **100 clients**.
3. Each client has **1000 products**.
So that means I'm gonna have **1000 x 100 x 1000 = 100,000,000** products associated with users. Now if I do a join tables query for a user and all his client's products, what should be a reasonable amount of query time if I use just a single database for this purpose? | 0 | [
2,
98,
25,
21,
9954,
25597,
85,
26,
1598,
7484,
29,
253,
370,
1054,
3554,
18,
60,
800,
3726,
3726,
19,
1637,
25325,
2549,
9990,
15124,
90,
9,
732,
2483,
15,
1802,
4996,
7486,
15993,
197,
22,
18,
1401,
20,
57,
13,
1409,
849,
6018... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
N-ary trees in C
===
Which would be a neat implemenation of a N-ary tree in C language?
Particulary, I want to implement an n-ary tree in which each node holds an already defined struct like this:
struct task {
char command[MAX_LENGHT];
int required_time;
};
| 0 | [
2,
13,
103,
8,
1857,
1913,
19,
272,
800,
3726,
3726,
56,
83,
44,
21,
15956,
5420,
413,
755,
857,
16,
21,
13,
103,
8,
1857,
1541,
19,
272,
816,
60,
1498,
93,
15,
31,
259,
20,
8713,
40,
13,
103,
8,
1857,
1541,
19,
56,
206,
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... |
Weird SQL Server memory errors after upgrading to 64-bit
===
We've just "upgraded" our production database server from 32-bit to 64-bit. It's running SQL Server 2005 Standard on Windows Server 2003. During the night after the upgrade the server was unavailable for nearly an hour - client requests were timing out. The problem then seemed to fix itself. The only clue I have as to the problem is what's in the SQL server logs:
LazyWriter: warning, no free buffers found.
Memory Manager
VM Reserved = 8470288 KB
VM Committed = 2167672 KB
AWE Allocated = 0 KB
Reserved Memory = 1024 KB
Reserved Memory In Use = 0 KB
Message
Memory node Id = 0
VM Reserved = 8464528 KB
VM Committed = 2162000 KB
AWE Allocated = 0 KB
SinglePage Allocator = 103960 KB
MultiPage Allocator = 31832 KB
MEMORYCLERK_SQLGENERAL (Total)
VM Reserved = 0 KB
VM Committed = 0 KB
AWE Allocated = 0 KB
SM Reserved = 0 KB
SM Committed = 0 KB
SinglePage Allocator = 4352 KB
Then there are many more messages like it starting with MEMORYCLERK.
Does anyone know what is going on? It seems like it's run out of memory and, granted, the server only has 2GB of physical RAM, which isn't very much by today's standards, but surely it shouldn't just completely STOP WORKING? Should I set the maximum memory SQL is allowed to use to 1.6GB or so? Is there something else I can do? | 0 | [
2,
5455,
4444,
255,
8128,
1912,
11908,
75,
26939,
20,
4384,
8,
3326,
800,
3726,
3726,
95,
22,
195,
114,
13,
7,
576,
8031,
43,
7,
318,
637,
6018,
8128,
37,
2512,
8,
3326,
20,
4384,
8,
3326,
9,
32,
22,
18,
946,
4444,
255,
8128,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.