unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Can I convert a boolean to Yes/No in a ASP.NET GridView
===
I have a ASP.NET GridView with a column mapped to a boolean. I want do display Yes/No instead of True/False. Well actually I want Ja/Nej (in danish).
Is this possible?
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="false">
<columns>
...
<asp:boundfield headertext="Active" datafield="Active" dataformatstring="{0:Yes/No}" />
...
</columns>
</asp:gridview> | 0 | [
2,
92,
31,
8406,
21,
9827,
413,
210,
20,
1643,
118,
251,
19,
21,
28,
306,
9,
2328,
7354,
4725,
800,
3726,
3726,
31,
57,
21,
28,
306,
9,
2328,
7354,
4725,
29,
21,
4698,
20877,
20,
21,
9827,
413,
210,
9,
31,
259,
107,
3042,
16... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Source control system for small database dev team
===
I am responsible for a small development team and we deal mainly with database development. We are currently using MS Visual Source Safe as our source control system, but it has it´s limitations and we are seriously thinking about changing. What system would you choose? | 0 | [
2,
1267,
569,
329,
26,
284,
6018,
9664,
173,
800,
3726,
3726,
31,
589,
1864,
26,
21,
284,
522,
173,
17,
95,
1183,
2011,
29,
6018,
522,
9,
95,
50,
871,
568,
4235,
3458,
1267,
1834,
28,
318,
1267,
569,
329,
15,
47,
32,
63,
32,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How does Mono work
===
I am a developer who has used C# in Visual Studio with .net, and i have played around a little with Mono on openSUSE Linux, but i don't really understand how it works. If i write an app in Windows on .net, how does this relate to Mono? I can't just execute an a Windows .exe file on Linux without Wine, so it doesn't help me execute apps developed in Windows. Is the purpose purely to have a .net library equivalent on Linux ( and others ) to make cross platform development easier? For example, if i was a business and wanted to reach Linux customers, but really wanted to use .net, then mono should be my choice? Or is there something more that i'm missing? | 0 | [
2,
184,
630,
4129,
170,
800,
3726,
3726,
31,
589,
21,
10058,
72,
63,
147,
272,
5910,
19,
3458,
1120,
29,
13,
9,
2328,
15,
17,
31,
57,
257,
140,
21,
265,
29,
4129,
27,
8965,
3699,
13024,
15,
47,
31,
221,
22,
38,
510,
1369,
18... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are some good resources for understanding SNMP MIBs?
===
I know a little about SNMP, but not enough. I need to develop an application that can read standard SNMP MIBs and read/write the various properties. The network end is no problem, but the actual MIBs and exactly what they may contain is something of a black art to me.
I believe I should be able to use LIBSMI to 'parse' the MIBs, but I don't really understand what the output of the 'parser' is going to be, and how best to use it.
All suggestions welcome... | 0 | [
2,
98,
50,
109,
254,
2566,
26,
3260,
8912,
2554,
534,
4562,
60,
800,
3726,
3726,
31,
143,
21,
265,
88,
8912,
2554,
15,
47,
52,
511,
9,
31,
376,
20,
2803,
40,
3010,
30,
92,
1302,
1236,
8912,
2554,
534,
4562,
17,
1302,
118,
2371... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
#undef-ing in Practice?
===
I'm wondering about the practical use of #undef in C. I'm working through K&R, and am up to the preprocessor. Most of this was material I (more or less) understood, but something on page 90 (second edition) stuck out at me:
> Names may be undefined with `#undef`,
> usually to ensure that a routine is
> really a function, not a macro:
>
> `#undef getchar`
>
> `int getchar(void) { ... }`
Is this a common practice to defend against someone `#define`-ing a macro with the same name as your function? Or is this really more of a sample that wouldn't occur in reality? (EG, no one in his right, wrong nor insane mind should be rewriting `getchar()`, so it shouldn't come up.) With your own function names, do you feel the need to do this? Does that change if you're developing a library for others to use? | 0 | [
2,
6926,
12239,
410,
8,
68,
19,
1345,
60,
800,
3726,
3726,
31,
22,
79,
5712,
88,
14,
5713,
275,
16,
6926,
12239,
410,
19,
272,
9,
31,
22,
79,
638,
120,
680,
1569,
139,
15,
17,
589,
71,
20,
14,
782,
16835,
248,
9,
127,
16,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Trim whitespace from middle of string
===
I'm using the following regex to capture a fixed width "description" field that is always 50 characters long:
(?.{50})
My problem is that the descriptions sometimes contain a *lot* of whitespace, e.g.
"FLUID COMPRESSOR "
Can somebody provide a regex that:
1. Trims all whitespace off the end
2. Collapses any whitespace in between words to a **single space** | 0 | [
2,
8971,
359,
5582,
37,
772,
16,
3724,
800,
3726,
3726,
31,
22,
79,
568,
14,
249,
7953,
1706,
20,
3683,
21,
3535,
9456,
13,
7,
546,
8741,
872,
7,
575,
30,
25,
550,
1222,
1766,
175,
45,
13,
5,
60,
9,
1,
2290,
1,
6,
51,
1448... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Force .NET webservice to use local object class, not proxy class
===
I have a webservice that I'm calling from a windows forms application (both .NET, both in the same solution), and I'd like my webservice to return a custom object from elsewhere in the project - it's a common object that they both share a reference to, as it's in the third project in my solution. When I call the webservice, it returns a "Person" object, but it's in the namespace of the webservice, and it's created from a proxy class that the webservice itself generated. As such, I can't manipulate it and return it to my program, which is expecting a "Person" object based on the shared copy of the class, not a proxy copy from the webservice namespace, and I get an error when I try to CType it to the correct class type.
How do I force the webservice to use a local copy of the class, not a proxy copy? Does my question make any sense in this context? If not, I'll clarify it.
Of note - I've resorted to passing all of the parameters ByRef, and using those returned values to populate a copy of the object I create upon return. That can't be the best way to do this! | 0 | [
2,
558,
13,
9,
2328,
2741,
11449,
20,
275,
375,
3095,
718,
15,
52,
27188,
718,
800,
3726,
3726,
31,
57,
21,
2741,
11449,
30,
31,
22,
79,
2555,
37,
21,
1936,
1997,
3010,
13,
5,
8110,
13,
9,
2328,
15,
156,
19,
14,
205,
4295,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Repairing wrong encoding in XML files
===
One of our providers are sometimes sending XML feeds that are tagged as UTF-8 encoded documents but includes characters that are not included in the UTF-8 charset. This causes the parser to throw an exception and stop building the DOM object when these characters are encountered:
DocumentBuilder.parse(ByteArrayInputStream bais)
throws the following exception:
org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.
Is there a way to "capture" these problems early and avoid the exception (i.e. finding and removing those characters from the stream)? What I'm looking for is a "best effort" type of fallback for wrongly encoded documents. The correct solution would obviously be to attack the problem at the source and make sure that only correct documents are delivered, but what is a good approach when that is not possible? | 0 | [
2,
5612,
68,
1389,
19608,
19,
23504,
6488,
800,
3726,
3726,
53,
16,
318,
13488,
50,
1030,
4907,
23504,
17058,
30,
50,
27945,
28,
287,
11720,
8,
457,
13665,
4374,
47,
1103,
1766,
30,
50,
52,
506,
19,
14,
287,
11720,
8,
457,
4892,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Get an OutputStream into a String
===
What's the best way to pipe the output from an java.io.OutputStream to a String in Java?
Say I have the method:
writeToStream(Object o, OutputStream out)
Which writes certain data from the object to the given stream. However, I want to get this output into a String as easily as possible.
I'm considering writing a class like this (untested):
class StringOutputStream extends OutputStream {
StringBuilder mBuf;
public void write(int byte) throws IOException {
mBuf.append((char) byte);
}
public String getString() {
return mBuf.toString();
}
}
But is there a better way? I only want to run a test!
| 0 | [
2,
164,
40,
5196,
11260,
77,
21,
3724,
800,
3726,
3726,
98,
22,
18,
14,
246,
161,
20,
7642,
14,
5196,
37,
40,
8247,
9,
1963,
9,
1320,
4881,
11260,
20,
21,
3724,
19,
8247,
60,
395,
31,
57,
14,
2109,
45,
2757,
262,
11260,
5,
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... |
Can pixel shaders be used when rendering to an offscreen surface?
===
I'm considering integrating some D3D code I have with WPF via the new D3DImage as described
[here:][1]
[1]: http://www.codeproject.com/KB/WPF/D3DImage.aspx
My question is this: Do pixel shader's work on offscreen surfaces? | 0 | [
2,
92,
18146,
7546,
1224,
44,
147,
76,
15307,
20,
40,
168,
7187,
1490,
60,
800,
3726,
3726,
31,
22,
79,
5154,
24529,
109,
13,
43,
240,
43,
1797,
31,
57,
29,
619,
7721,
1197,
14,
78,
13,
43,
240,
43,
22039,
28,
745,
636,
6836,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a way in .Net to programatically generate a DTD from an existing XML file?
===
I've been looking around the System.Xml namespace, but don't see anything that would support this. Does anyone know if it's built into .Net, or would I have to obtain a third party library to do it? | 0 | [
2,
25,
80,
21,
161,
19,
13,
9,
2328,
20,
625,
721,
8438,
7920,
21,
13,
43,
38,
43,
37,
40,
3149,
23504,
3893,
60,
800,
3726,
3726,
31,
22,
195,
74,
699,
140,
14,
329,
9,
396,
8184,
204,
5582,
15,
47,
221,
22,
38,
196,
602,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Excel Conditional formatting with weighted total
===
I have sets of values in rows in Excel
First row contains weights of how much each value in each column contributes to weighted total.
Now, I want to mark in each following row the value that contributed to the weighted total the most, by changing its background. I played with conditional formatting, but my Excel skills are modest, to say the least.
So, how do I do that? | 0 | [
2,
20700,
21206,
2595,
1203,
29,
23350,
600,
800,
3726,
3726,
31,
57,
3415,
16,
4070,
19,
11295,
19,
20700,
64,
3131,
1588,
1763,
18,
16,
184,
212,
206,
1923,
19,
206,
4698,
19481,
20,
23350,
600,
9,
130,
15,
31,
259,
20,
943,
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... |
What is the difference between an asp.net web method and a wcf service?
===
I'm new to .Net and do not understand the difference. Can someone point me in the right direction? | 0 | [
2,
98,
25,
14,
2841,
128,
40,
28,
306,
9,
2328,
2741,
2109,
17,
21,
11801,
410,
365,
60,
800,
3726,
3726,
31,
22,
79,
78,
20,
13,
9,
2328,
17,
107,
52,
1369,
14,
2841,
9,
92,
737,
454,
55,
19,
14,
193,
1400,
60,
3,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I only show items that belong to a certain user (using restful_authentication)?
===
I have a web application with users and their documents. Each user can have many documents:
user.rb:
has_many :documents
document.rb:
belongs_to :user
document_controller.rb:
def index
@documents = Document.find(:all)
end
I am using the restful_authentication plugin. Here is my question: How do I get the controller to only show documents that belongs to each user? Right now it shows all the documents for all the users.
I am using the latest version of Rails.
| 0 | [
2,
184,
107,
31,
104,
298,
3755,
30,
6219,
20,
21,
1200,
4155,
13,
5,
12655,
760,
1566,
1,
1346,
2504,
1786,
857,
6,
60,
800,
3726,
3726,
31,
57,
21,
2741,
3010,
29,
3878,
17,
66,
4374,
9,
206,
4155,
92,
57,
151,
4374,
45,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Fastest way to determine where PHP script exits.
===
Say you have a large PHP project and forgot to remove a die() somewhere. All that happens when you load the index page is that it goes blank. You want to find it with no effort.
Are there a tool/program/command/IDE that can, on PHP script termination, tell you the location where the script did exit? | 0 | [
2,
7518,
161,
20,
3746,
113,
13,
26120,
3884,
4350,
18,
9,
800,
3726,
3726,
395,
42,
57,
21,
370,
13,
26120,
669,
17,
9564,
20,
4681,
21,
1327,
5,
6,
3493,
9,
65,
30,
5531,
76,
42,
6305,
14,
4348,
2478,
25,
30,
32,
1852,
646... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In Python, what does it mean if an object is scriptable or not?
===
Which types of objects fall into the domain of "scriptable"? | 0 | [
2,
19,
20059,
15,
98,
630,
32,
884,
100,
40,
3095,
25,
3884,
579,
54,
52,
60,
800,
3726,
3726,
56,
2551,
16,
3916,
1080,
77,
14,
4603,
16,
13,
7,
8741,
579,
7,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
ASP.NET Key/Value List
===
I'm doing a custom 404 page for a large website that's undergoing a redesign. There are about 40 high-use pages that customers may have bookmarked, and our new site structure will break these bookmarks.
On my custom 404 page, I want to alert them to the new URL if they attempt to navigate to one of these high-use pages via its old URL. So I have a couple of dynamic controls on the 404 page, one for a "did-you-want-this?" type of dialog, and another for a "if-so-go-here (and update your bookmark)" type of dialog. That's the easy part.
To suggest a new URL, I'm looking at the requested URL. If it has key words in it, I'm going to suggest the new URL based on that, and them I'm firing off the appropriate did-you-want..., and if-so... suggestions on the 404 page as mentioned above.
So I want to store these 40-ish key/value pairs (*keyword/new-URL pairs*) in a data structure, and I'm not sure what would be best. Dictionary? IDictionary? What's the difference and which is more appropriate?
Or am I totally on the wrong track?
Thanks for your time. | 0 | [
2,
28,
306,
9,
2328,
1246,
118,
15165,
968,
800,
3726,
3726,
31,
22,
79,
845,
21,
5816,
13,
23397,
2478,
26,
21,
370,
2271,
30,
22,
18,
16863,
21,
23903,
9,
80,
50,
88,
1417,
183,
8,
3699,
4434,
30,
5279,
123,
57,
360,
22048,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Negative wildcards
===
I want to copy the contents of a directory excluding files and folders whose names contain, say, the word 'Music'.
cp [exclude-matches] *Music* /target_directory
Does this exist? | 0 | [
2,
3682,
23003,
18,
800,
3726,
3726,
31,
259,
20,
4344,
14,
8478,
16,
21,
16755,
13,
14938,
6488,
17,
19294,
18,
1196,
1817,
3717,
15,
395,
15,
14,
833,
13,
22,
7692,
22,
9,
9750,
636,
1706,
150,
17405,
8,
12280,
160,
500,
1637,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What documentation do you use for your Business Requirements
===
As developers, what documentation would you require from your managers?
- 2 lines description good enough?
- Won't move without a Use-Case
diagram?
What kind of documentation would you prefer to work with to help you understand the business requirements?
| 0 | [
2,
98,
13945,
107,
42,
275,
26,
154,
508,
4786,
800,
3726,
3726,
28,
10168,
15,
98,
13945,
83,
42,
4077,
37,
154,
12657,
60,
13,
8,
172,
1560,
5318,
254,
511,
60,
13,
8,
230,
22,
38,
780,
366,
21,
275,
8,
10325,
14161,
60,
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... |
Neural Networks or Human-computer interaction
===
I will be entering my third year of university in my next academic year, once I've finished my placement year as a web developer, and I would like to hear some opinions on the two modules in the Title.
I'm interested in both, however I want to pick one that will be relevant to my career and that I can apply to systems I develop.
I'm doing an Internet Computing degree, it covers web development, networking, database work and programming. Though I have had myself set on becoming a web developer I'm not so sure about that any more so am trying not to limit myself to that area of development.
I know HCI would help me as a web developer, but do you think it's worth it? Do you think Neural Network knowledge could help me realistically in a system I write in the future?
Thanks. | 0 | [
2,
17371,
5540,
54,
585,
8,
18448,
7754,
800,
3726,
3726,
31,
129,
44,
4604,
51,
422,
159,
16,
155,
19,
51,
328,
1810,
159,
15,
382,
31,
22,
195,
842,
51,
10774,
159,
28,
21,
2741,
10058,
15,
17,
31,
83,
101,
20,
990,
109,
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... |
Cannot create an array of LinkedLists in Java...?
===
I'm working on a sparse matrix class that needs to use an array of LinkedLists to store the values of a matrix. Each element of the array (i.e. each LinkedList) represents a row of the matrix. And, each element in the LinkedLists represents a column and the stored value.
<br>
In my class, I have a declaration of the array as:
private LinkedList<IntegerNode>[] myMatrix;
And, in my constructor for the SparseMatrix, I try to define:
myMatrix = new LinkedList<IntegerNode>[numRows];
<br>
The error I end up getting is "Cannot create a generic array of `LinkedList<IntegerNode>`." So, I have two issues with this, 1) What am I doing wrong, and 2) Why is the type acceptable in the declaration for the array if it can't be created? | 0 | [
2,
1967,
1600,
40,
7718,
16,
4727,
5739,
18,
19,
8247,
9,
9,
9,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
23162,
8187,
718,
30,
2274,
20,
275,
40,
7718,
16,
4727,
5739,
18,
20,
1718,
14,
4070,
16,
21,
8187,
9,
206,
4520,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Response.Redirect causes IsPostBack to be true
===
I have a button on an ASP.Net page that will call Response.Redirect back to the same page after performing some processing in order to re-display the results of a query. However, for some reason, the page comes up blank. It seems that IsPostBack is returning true after the redirect. Anybody know why this would happen?
The page is a custom page in Community Server. Here is the basic code:
void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string connStr = ConfigurationManager.ConnectionStrings["SiteSqlServer"].ConnectionString;
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM ge_vw_NonResidents", connStr);
DataTable tbl = new DataTable();
da.Fill(tbl);
da.Dispose();
rptNonResidents.DataSource = tbl;
rptNonResidents.DataBind();
}
}
void btnApprove_Command(object sender, CommandEventArgs e)
{
// Code removed for testing.
Response.Clear();
Response.Redirect("ApproveResidents.aspx", true);
Response.End();
}
| 0 | [
2,
1627,
9,
99,
14706,
4047,
25,
6962,
1958,
20,
44,
1151,
800,
3726,
3726,
31,
57,
21,
5167,
27,
40,
28,
306,
9,
2328,
2478,
30,
129,
645,
1627,
9,
99,
14706,
97,
20,
14,
205,
2478,
75,
2955,
109,
5511,
19,
389,
20,
302,
8,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I add query parameters to a GetMethod (using Java commons-httpclient)?
===
Using Apache's commons-httpclient for Java, what's the best way to add query parameters to a GetMethod instance? If I'm using PostMethod, it's very straightforward:
PostMethod method = new PostMethod();
method.addParameter("key", "value");
GetMethod doesn't have an "addParameter" method, though--instead, there's a host of other APIs like getParams() and setParams(), and various ways of constructing the HttpMethodParams object. Is there something I'm missing here? | 0 | [
2,
184,
107,
31,
3547,
25597,
12905,
20,
21,
164,
5909,
1807,
43,
13,
5,
12655,
8247,
8322,
8,
21127,
150,
18513,
38,
6,
60,
800,
3726,
3726,
568,
17140,
22,
18,
8322,
8,
21127,
150,
18513,
38,
26,
8247,
15,
98,
22,
18,
14,
24... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Partial sort of std::list
===
I have a linked list that I want to sort part of, eg:
std::sort(someIterator, otherIterator, predicate);
std::sort requires random-access iterators so this approach doesn't work. There is a specialisation std::list::sort, but that can only sort the entire list. I don't think I have enough access to the list members to write something myself.
Is there a way to do this without changing to, say, vector? | 0 | [
2,
7284,
2058,
16,
354,
43,
45,
45,
5739,
800,
3726,
3726,
31,
57,
21,
4727,
968,
30,
31,
259,
20,
2058,
141,
16,
15,
12369,
45,
354,
43,
45,
45,
22843,
5,
3220,
242,
106,
3457,
15,
89,
242,
106,
3457,
15,
28712,
6,
73,
354,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
parsing input with scanf in C
===
I've been having a lot of problems trying to figure out how to use scanf. It seems to work fine with integers, being fairly straight forward scanf("%d", &i).
Where I am running into issues is using scanf in loops trying to read input. For example:
do {
printf("counter: %d: ", counter);
scanf("%c %c%d", &command, &prefix, &input);
} while (command != 'q');
1) When I enter in a validly structured input like c P101,it seems to loop again before prompting me. This seems to happen even with a single-
scanf("%c", &c)
in a while loop. It'll do the loop twice before prompting me again. What is making it loop twice, and how do I stop it?
2) When I enter in less amount of input that programmatically wouldnt have another character or number such as q, pressing enter seems to prompt me to enter more. How do get scanf to process both single and double character entries?
| 0 | [
2,
2017,
18,
68,
6367,
29,
8313,
410,
19,
272,
800,
3726,
3726,
31,
22,
195,
74,
452,
21,
865,
16,
1716,
749,
20,
1465,
70,
184,
20,
275,
8313,
410,
9,
32,
2206,
20,
170,
1123,
29,
13820,
18,
15,
142,
6647,
1599,
917,
8313,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
looking for a UTF-8 text editor
===
I am looking for a (simple) text editor that can handle text in different encodings in the same document.
I need to develop some sites with mixed Japanese and English text and the editors I have now (on an English Windows system) are unable to display the Japanese text.
Jedit files don't display the Japanese text I have inputted but when I look at the file in a browser it shows up correctly.
Gvim shows all Japanese text in the editor as question marks and also in the browser.
In Gvim inputting the kanji works (you input the pronounciation and then press space bar to get the kanji) but when you confirm the kanji you want it replaces that kanji with question marks. (1 question mark for every kanji).
Can someone recommend me a text editor to edit html and php files that is able to display utf-8 encoded text and also save as an utf-8 file ?
thank you.
| 0 | [
2,
699,
26,
21,
287,
11720,
8,
457,
1854,
1835,
800,
3726,
3726,
31,
589,
699,
26,
21,
13,
5,
24629,
6,
1854,
1835,
30,
92,
3053,
1854,
19,
421,
19608,
18,
19,
14,
205,
4492,
9,
31,
376,
20,
2803,
109,
3259,
29,
2198,
1095,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.net MVC and WCF
===
I'm working my way into MVC at the moment, but on my "To learn at some point" list, I also have WCF.
I just wonder if WCF is something that should/could be used in an MVC Application or not? The Background is that I want a Desktop Application interact with my MVC Web Site, and I wonder what the best way to transfer data between the two is. Should I just use special Views/have the controllers return JSON or XML (using the ContentResult)?
And maybe even more important, for the other way round, I could just call special controllers? Not sure how Authorization would work in such a context. I can either use Windows Authentication or (if the Site is running forms auth) have the user store his credentials in the application, but I would then essentially create a Http Client in my Application. So while MVC => Application seems really easy, Application => MVC does seem to be somewhat tricky and a possible use for WCF?
I'm not trying to brute-force WCF in this, but I just wonder if there is indeed a good use case for WCF in a MVC application. | 0 | [
2,
28,
306,
9,
2328,
307,
8990,
17,
11801,
410,
800,
3726,
3726,
31,
22,
79,
638,
51,
161,
77,
307,
8990,
35,
14,
688,
15,
47,
27,
51,
13,
7,
262,
2484,
35,
109,
454,
7,
968,
15,
31,
67,
57,
11801,
410,
9,
31,
114,
2666,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Deadlock in Java
===
Long time ago, I saved a sentence from a Java reference book: *"Java has no mechanism to handle deadlock. it won't even know deadlock occurred." (Head First Java 2nd Edition, p.516)*
So, what is about it? Is there a way to catch deadlock case in Java? I mean, is there a way that our code understands a deadlock case occurred? | 0 | [
2,
828,
3966,
19,
8247,
800,
3726,
3726,
175,
85,
1464,
15,
31,
4377,
21,
5123,
37,
21,
8247,
2801,
360,
45,
1637,
7,
1004,
1385,
63,
90,
6534,
20,
3053,
828,
3966,
9,
32,
230,
22,
38,
166,
143,
828,
3966,
2437,
9,
7,
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... |
Can I find out the return value before returning while debugging in Eclipse
===
Is it possible to see the return value of a method after the line has been run and before the instruction pointer returns to the calling function?
I am debugging code I can't modify *(read: don't want to re-compile a third party library)*, and sometimes it jumps to code I don't have source to or the return expression has side effects that stop me being able to just run the expression in the *Display* tab.
Often the return value is used in a compound statement, and so the *Variables* view will never show me the value (hence wanting to see the result before control returns to the calling function). | 0 | [
2,
92,
31,
477,
70,
14,
788,
1923,
115,
2485,
133,
121,
16254,
2762,
19,
11652,
800,
3726,
3726,
25,
32,
938,
20,
196,
14,
788,
1923,
16,
21,
2109,
75,
14,
293,
63,
74,
485,
17,
115,
14,
7304,
454,
106,
4815,
20,
14,
2555,
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... |
In Python, what does it mean if an object is scriptable or not?
===
Which types of objects fall into the domain of "scriptable"? Note, this is not about "[subscriptable](http://stackoverflow.com/questions/216972/in-python-what-does-it-mean-if-an-object-is-scriptable-or-not)" objects. | 0 | [
2,
19,
20059,
15,
98,
630,
32,
884,
100,
40,
3095,
25,
3884,
579,
54,
52,
60,
800,
3726,
3726,
56,
2551,
16,
3916,
1080,
77,
14,
4603,
16,
13,
7,
8741,
579,
7,
60,
1945,
15,
48,
25,
52,
88,
13,
7,
2558,
7563,
8741,
579,
50... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Whats a good language to learn to program Windows applications?
===
Currently, Im only proficient in php, and would like to learn something new. The only thing I can think of, is the obvious C# and .NET, and I just wanted to know if there are any alternatives.
Can it be done in Python? | 0 | [
2,
98,
18,
21,
254,
816,
20,
2484,
20,
625,
1936,
3767,
60,
800,
3726,
3726,
871,
15,
797,
104,
28140,
19,
13,
26120,
15,
17,
83,
101,
20,
2484,
301,
78,
9,
14,
104,
584,
31,
92,
277,
16,
15,
25,
14,
4674,
272,
5910,
17,
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... |
C++ STL: Cotainer Recreation or Reuse after clearing?
===
In programming we face various situations where we are required to make use of intermediate STL containers as the following example depicts:
while(true)
{
set < int > tempSet;
for (int i = 0; i < n; i ++)
{
if (m.size() == min && m.size() <= max)
{
tempSet.insert(i);
}
}
//Some condition testing code
}
Or
set < int > tempSet;
while(true)
{
for (int i = 0; i < n; i ++)
{
if (m.size() == min && m.size() <= max)
{
tempSet.insert(i);
}
}
tempSet.clear();
//Some condition testing code
}
Which approach is better in terms of time and space complexity considering the present state of C++ compliers? | 0 | [
2,
272,
20512,
354,
255,
45,
326,
5851,
106,
8363,
54,
302,
3699,
75,
8130,
60,
800,
3726,
3726,
19,
3143,
95,
276,
617,
8329,
113,
95,
50,
1390,
20,
233,
275,
16,
6889,
354,
255,
18988,
28,
14,
249,
823,
12076,
45,
133,
5,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I determine the display idle time from Python in Windows, Linux, and MacOS?
===
I would like to know how long it's been since the user last hit a key or moved the mouse - not just in my application, but on the whole "computer" (i.e. display), in order to guess whether they're still at the computer and able to observe notifications that pop up on the screen.
I'd like to do this purely from (Py)GTK+, but I am amenable to calling platform-specific functions. Ideally I'd like to call functions which have already been wrapped from Python, but if that's not possible, I'm not above a little bit of C or `ctypes` code, as long as I know what I'm actually looking for.
On Windows I think the function I want is [`GetLastInputInfo`][1], but that doesn't seem to be wrapped by pywin32; I hope I'm missing something.
[1]: http://msdn.microsoft.com/en-us/library/ms646302.aspx | 0 | [
2,
184,
92,
31,
3746,
14,
3042,
18652,
85,
37,
20059,
19,
1936,
15,
13024,
15,
17,
1572,
759,
60,
800,
3726,
3726,
31,
83,
101,
20,
143,
184,
175,
32,
22,
18,
74,
179,
14,
4155,
236,
770,
21,
1246,
54,
385,
14,
7567,
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... |
What is recommended for plug in systems in applications?
===
What are the “normal” ways to do plug-ins in compiled languages (C#/C/C++/D)? I am specifically interested in language agnostic approaches but language specific is not unacceptable.
For the time being, “compile time” plug in approaches (just include the code or not and everything works) are valid but things that can migrate to a more dynamic approach are preferred.
Regarding the runtime type, I'm more interested in the mechanics of loading the plug-in and whatnot than designing the plug-in/app interface
| 0 | [
2,
98,
25,
5773,
26,
10922,
19,
1242,
19,
3767,
60,
800,
3726,
3726,
98,
50,
14,
13,
1,
17462,
1,
2847,
20,
107,
10922,
8,
108,
18,
19,
9316,
2556,
13,
5,
150,
5910,
118,
150,
118,
150,
20512,
118,
43,
6,
60,
31,
589,
3524,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Perforce : Is there a way to link a numbered changelist to a folder in the depot?
===
Problem : I have multiple projects checked out in my depot. I also have multiple pending numbered change lists, each change list containing checked out files specific to its project. When I check out a new file, it appears in the default change list instead of in the change list that is relevant to its project and I need to manually move it to the relevant change list. This gets real tedious real quick.
Is there any way to automate this process? Sure, a shell script with regular expressions could work, but I want to know if there is any Perforce feature that does this. For example, is there a way to link my project folder to a numbered change list so that a newly checked out file automatically appears in the relevant change list? | 0 | [
2,
416,
8774,
13,
45,
25,
80,
21,
161,
20,
3508,
21,
9824,
753,
5739,
20,
21,
19294,
19,
14,
7382,
60,
800,
3726,
3726,
1448,
13,
45,
31,
57,
1886,
2314,
6505,
70,
19,
51,
7382,
9,
31,
67,
57,
1886,
16440,
9824,
753,
7227,
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... |
Software / System Handover Template - Are there any good examples out there?
===
I'm required to provide a handover to our content editors for the update corporate website I've just released. Apparently a training session with notes isn't sufficient. Fair enough.
So more dreaded documentation looms. After a fairly brief trawl over Google, I'm unable to find any relevant and usable template to use as the basis of a website or web application handover. The most useful list of items I've found that should appear in such a document were on Experts Exchange (the enemy):
<ol>
<li>System overview, general introduction</li>
<li>processes and interdepartmental process flow</li>
<li>system configuration, setup and dependencies</li>
<li>technical requirements, features and limitations</li>
<li>support process</li>
<li>escalation lists and contact information for relevant parties for troubleshooting</li>
</ol>
This is a good basis to work from - I can "dumb it down" for users who will only be making content changes to the site, but does anyone know of a good standard template available in the cloud? Is there more that should be added to this list? | 0 | [
2,
2306,
13,
118,
329,
224,
2549,
22894,
13,
8,
50,
80,
186,
254,
3770,
70,
80,
60,
800,
3726,
3726,
31,
22,
79,
1390,
20,
1181,
21,
224,
2549,
20,
318,
2331,
12149,
26,
14,
11100,
4871,
2271,
31,
22,
195,
114,
261,
9,
3083,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Storing C# data structure into a SQL database
===
I am new to the world of ASP.NET and SQL server, so please pardon my ignorance ...
If I have a data structure in C# (for e.g. let's just say, a vector that stores some strings), is it possible to store the contents of the vector as is in SQL table? I want to do this so that it fast to convert that data back into vector form as fast as possible without having to construct it element by element. Almost like writing binary data to a file and then reading it and copying it to an allocated structure in C.
I've created a table on SQL Server 2008 for which a field is defined as VARBINARY(MAX). I thought I'd start with that.
Could someone show me an example of how I would go about storing and retrieving a vector of, say, 10 strings, into and from that field? Is this even possible (I can't think of why not)?
Thanks! | 0 | [
2,
25615,
272,
5910,
1054,
1411,
77,
21,
4444,
255,
6018,
800,
3726,
3726,
31,
589,
78,
20,
14,
126,
16,
28,
306,
9,
2328,
17,
4444,
255,
8128,
15,
86,
2247,
13526,
51,
20949,
13,
9,
9,
9,
100,
31,
57,
21,
1054,
1411,
19,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to quarantine a specific subversion revision?
===
I have a revision that has been committed to SVN trunk which I would like to roll back. However, I would like to retain the changes in some fashion such as a branch or even a patch file. Any suggestions? | 0 | [
2,
184,
20,
26937,
21,
1903,
972,
10898,
11323,
60,
800,
3726,
3726,
31,
57,
21,
11323,
30,
63,
74,
4164,
20,
13,
18,
16578,
6436,
56,
31,
83,
101,
20,
3001,
97,
9,
207,
15,
31,
83,
101,
20,
8201,
14,
1693,
19,
109,
3161,
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,
0,
0,
0,
0... |
Are there any free and/or better alternatives to RequisitePro to capture requirements?
===
I'm looking for a tool that will help with gathering and maintaining requirements (most probably use case specifications)
I have used Rational Requisite Pro in the past and found it was OK but no longer have access to it
Is there anything else I could use? | 0 | [
2,
50,
80,
186,
551,
17,
118,
248,
574,
2676,
18,
20,
302,
3003,
9097,
2740,
20,
3683,
4786,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
5607,
30,
129,
448,
29,
5822,
17,
8215,
4786,
13,
5,
4630,
910,
275,
610,
17971,
6,
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... |
Automatically add some Where clauses to a Linq Expression Tree
===
I am using the Entity Framework and Linq to Entities. I have created a small database pattern & framework to implement versioning as well as localization. Every entity now consists of two or three tables, (ie Product, ProductBase & ProductLocal).
My linq always includes the following boilerplate code:
from o in DB.Product
from b in o.Base
from l in o.Local
WHERE o.VersionStatus == (int)VersionStatus.Active
&& b.VersionStatus == (int)VersionStatus.Active
&& l.VersionStatus == (int)VersionStatus.Active
&& l.VersionLanguage == Context.CurrentLanguage
select new ProductInstance { Instance = o, Base = b, Local = l }
What I would like to accomplish is to turn the above into:
(from o in DB.Product
from b in o.Base
from l in o.Local
select new ProductInstance { Instance = o, Base = b, Local = l }).IsActive()
Or at worst, something like:
from o in DB.Product.Active()
from b in o.Base.Active()
from l in o.Local.Active()
select new ProductInstance { Instance = o, Base = b, Local = l }
I have extended the base classes the EDM generates to implement some interfaces that enforce the properties ( IVersionStatus and/or IVersionLanguage ). Is there some way I can walk the expression tree, check if the type in the expression implements that interface, then set the VersionStatus accordingly?
I woud love it to be as simple as the first option, just less to write and/or forget. I have seen examples that do it after the fact, after its IEnumerable, but I would rather not pull more from the database than I need to.
Thanks for any tips! | 0 | [
2,
7499,
3547,
109,
113,
9040,
18,
20,
21,
6294,
1251,
1803,
1541,
800,
3726,
3726,
31,
589,
568,
14,
9252,
6596,
17,
6294,
1251,
20,
12549,
9,
31,
57,
679,
21,
284,
6018,
3732,
279,
6596,
20,
8713,
615,
68,
28,
134,
28,
375,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Usercontrol with button - When uc is added dynamically to another page
===
Usercontrol with button - When uc is added dynamically to another page I loose the button handler.
ie: I have 1 usercontrol with 1 button - the button has an event handler in the code behind. When i add the UserControl to a page programatically the button handler does not fire. Any idea of an easy way to fix this.
Typically when ive added controls dynamically to a page, i've had to re-wire the event handlers on every post back, but i was hoping since that button was contained in a UserControl and the uc was added dynamically i wouldnt loose it - doesnt seem to be the case - is there a better way to do this? My usercontrol will eventually have MANY buttons on it and i dont want to have to re-wire them everytime from the page that is dynamically adding the usercontrol.
| 0 | [
2,
4155,
12898,
29,
5167,
13,
8,
76,
12669,
25,
905,
7782,
1326,
20,
226,
2478,
800,
3726,
3726,
4155,
12898,
29,
5167,
13,
8,
76,
12669,
25,
905,
7782,
1326,
20,
226,
2478,
31,
4675,
14,
5167,
24641,
9,
13,
660,
45,
31,
57,
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... |
What does it mean when my text is displayed as boxes?
===
I'm attempting to display some text in my program using (say) Windows GDI and some of the unicode characters are displayed as boxes? What is up? | 0 | [
2,
98,
630,
32,
884,
76,
51,
1854,
25,
6115,
28,
8120,
60,
800,
3726,
3726,
31,
22,
79,
6314,
20,
3042,
109,
1854,
19,
51,
625,
568,
13,
5,
6366,
6,
1936,
489,
1115,
17,
109,
16,
14,
28010,
1766,
50,
6115,
28,
8120,
60,
98,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Bubbling up events . .
===
I have multiple layers in an application and i find myself having to bubble up events to the GUI layer for doing status bar changes, etc . . I find myself having to write repeated coded where each layer simply subscribes to events from the lower layer and then in the call back simply raise an event up the chain. Is there a more efficient way of doing this? | 0 | [
2,
26977,
71,
963,
13,
9,
13,
9,
800,
3726,
3726,
31,
57,
1886,
9124,
19,
40,
3010,
17,
31,
477,
992,
452,
20,
10937,
71,
963,
20,
14,
9457,
5385,
26,
845,
1782,
748,
1693,
15,
2722,
13,
9,
13,
9,
31,
477,
992,
452,
20,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What does it mean when my text is displayed as Question Marks?
===
I'm attempting to display some text in my program using (say) Windows GDI and some of the unicode characters are displayed as question marks? What is up?
See also: [What does it mean when my text is displayed as boxes?][1]
[1]: http://stackoverflow.com/questions/217228/what-does-it-mean-when-my-text-is-displayed-as-boxes | 0 | [
2,
98,
630,
32,
884,
76,
51,
1854,
25,
6115,
28,
1301,
4872,
60,
800,
3726,
3726,
31,
22,
79,
6314,
20,
3042,
109,
1854,
19,
51,
625,
568,
13,
5,
6366,
6,
1936,
489,
1115,
17,
109,
16,
14,
28010,
1766,
50,
6115,
28,
1301,
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... |
What are the options for generating user friendly alpha numeric IDs (like business id, SKU)
===
Here are the requirements:
Must be alphanumeric, 8-10 characters so that it is user friendly. These will be stored as unique keys in database. I am using Guids as primary keys so an option to use GUids to generate these unique Ids would be preferable.
I am thinking on the lines of a base-n converter that takes a Guid and converts to an 8 character unique string.
Short, light-weight algorithm preferred as it would be called quite often.
| 0 | [
2,
98,
50,
14,
6368,
26,
13500,
4155,
4753,
5705,
15764,
596,
13,
9178,
13,
5,
1403,
508,
4924,
15,
13,
18,
2294,
6,
800,
3726,
3726,
235,
50,
14,
4786,
45,
491,
44,
5705,
6336,
14744,
15,
469,
8,
1036,
1766,
86,
30,
32,
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... |
How can I sort constructors/methods/nested classes by name in Java?
===
I want to sort all my constructors/methods/nested classes by name in the source code. Is there any easy way to do it?
I'm using NetBeans, but if there is another editor that can do that, just tell me the name of it. | 0 | [
2,
184,
92,
31,
2058,
6960,
248,
18,
118,
5909,
1807,
43,
18,
118,
2696,
1427,
2684,
34,
204,
19,
8247,
60,
800,
3726,
3726,
31,
259,
20,
2058,
65,
51,
6960,
248,
18,
118,
5909,
1807,
43,
18,
118,
2696,
1427,
2684,
34,
204,
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... |
Comparing references in Java
===
Let's say that you have overridden an object's equals() and hashCode() methods, so that they use the object's fields.
How you do you check if two references are to the same object, ala the stock equals() method? | 0 | [
2,
15047,
7231,
19,
8247,
800,
3726,
3726,
408,
22,
18,
395,
30,
42,
57,
84,
15267,
40,
3095,
22,
18,
2747,
18,
5,
6,
17,
19170,
9375,
5,
6,
3195,
15,
86,
30,
59,
275,
14,
3095,
22,
18,
2861,
9,
184,
42,
107,
42,
2631,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Indenting for code-generation
===
Often, programmers write code that generates other code.
(The technical term is [metaprogramming][1], but it is more common than merely cross-compilers; think about every PHP web-page that generates HTML or every XSLT file.)
One area I find challenging is coming up with techniques to ensure that *both* the hand-written source file, and the computer-generated object file are clearly indented to aid debugging. The two goals often seem to be competing.
I find this particularly challenging in the PHP/HTML combination. I think that is because:
- there is sometimes more of the HTML code in the source file than the generating PHP
- HTML files tend to be longer than, say, SQL statements, and need better indenting
- HTML has space-sensitive features (e.g. between tags)
- the result is more publicly visible HTML than SQL statements, so there is more pressure to do a reasonable job.
What techniques do you use to address this?
[1]: http://en.wikipedia.org/wiki/Metaprogramming "Wikipedia article on metaprogramming" | 0 | [
2,
19,
817,
1203,
26,
1797,
8,
12546,
800,
3726,
3726,
478,
15,
17968,
18,
2757,
1797,
30,
7920,
18,
89,
1797,
9,
13,
5,
124,
2447,
981,
25,
636,
5909,
58,
19746,
3863,
500,
2558,
165,
500,
15,
47,
32,
25,
91,
757,
119,
5494,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Missing msvcr80.dll
===
If the C++ runtime msvcr80.dll is missing from a compiled library, is there any way to determine which version was used to create the library or to get it to run on a later version of msvcr80.dll? | 0 | [
2,
2863,
4235,
8990,
139,
2887,
9,
43,
211,
800,
3726,
3726,
100,
14,
272,
20512,
485,
891,
4235,
8990,
139,
2887,
9,
43,
211,
25,
2863,
37,
21,
9316,
1248,
15,
25,
80,
186,
161,
20,
3746,
56,
615,
23,
147,
20,
1600,
14,
1248,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Embedded Slideshow/Image Viewer?
===
I've run across this sort of thing on multiple websites and was wondering what it was called, does anyone know? [Here's a screenshot.][1]
[1]: http://twitpic.com/h77i/full "twitpic.com" | 0 | [
2,
12138,
18066,
1544,
118,
22039,
16812,
60,
800,
3726,
3726,
31,
22,
195,
485,
464,
48,
2058,
16,
584,
27,
1886,
13931,
17,
23,
5712,
98,
32,
23,
227,
15,
630,
1276,
143,
60,
636,
6836,
22,
18,
21,
2324,
7868,
9,
500,
2558,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best algorithm for determining the high and low in an array of numbers?
===
I am using pseudo-code here, but this is in JavaScript. With the most efficient algorithm possible I am trying to find the high and low given an array of positive whole numbers. This is what I came up with, but I don't think it is probably best, and was just wondering if anyone has any other suggestions.
var low = 1;
var high = 1;
for ( loop numbers ) {
if ( number > high ) {
high = number;
}
if ( low == 1 ) {
low = high;
}
if ( number < low ) {
low = number;
}
} | 0 | [
2,
246,
9083,
26,
13521,
14,
183,
17,
708,
19,
40,
7718,
16,
2116,
60,
800,
3726,
3726,
31,
589,
568,
8452,
8,
9375,
235,
15,
47,
48,
25,
19,
8247,
8741,
9,
29,
14,
127,
8243,
9083,
938,
31,
589,
749,
20,
477,
14,
183,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
IF construct in MySql producing error #1064
===
I am attempting to run the following code in phpMyAdmin:
set @tagTokenNum=0;
select @tagTokenNum:=tag_token_id from tag_token where tag_token_name = 'XXX';
delimiter go
if @tagTokenNum is null then
insert into tag_token (tag_token_name) values ('XXX');
select @tagTokenNum:=last_insert_id();
end if;
go
I have also tried this without the delimiter statement and corresponding go. I receive the error message "#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if @tagTokenNum is null then insert into tag_token ..."
As far as I can tell, I am following proper syntax for IF statements in MySql. I'm much more familiar with Microsoft SQL, so it's entirely possible I'm doing something wrong. I'd appreciate any help you can offer. Thanks.
- Dave | 0 | [
2,
100,
6960,
19,
51,
18,
22402,
4081,
7019,
27122,
3470,
800,
3726,
3726,
31,
589,
6314,
20,
485,
14,
249,
1797,
19,
13,
26120,
915,
1283,
2160,
45,
309,
13,
1,
8628,
262,
2853,
6336,
3726,
387,
73,
5407,
13,
1,
8628,
262,
2853... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Taks Manager Script
===
I need to a script that will pull up the Task Manager in Vista but with processes from all users (like when you click "Show processes from all users"). I don't mind the UAC interruption but I'd like to save some time and go straight to the "all users" version.
I don't care what language per se, just something that'll run it native to Vista without loading any extras.
Thanks. | 0 | [
2,
13302,
18,
1382,
3884,
800,
3726,
3726,
31,
376,
20,
21,
3884,
30,
129,
2201,
71,
14,
3005,
1382,
19,
13520,
47,
29,
5102,
37,
65,
3878,
13,
5,
1403,
76,
42,
10840,
13,
7,
9303,
5102,
37,
65,
3878,
7,
6,
9,
31,
221,
22,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why don't my HtmlHelper extensions work?
===
I'm building an ASP.Net MVC website. Rather than have everything in one project, I've decided to separate the Web, Model and Controller out into different projects in the same solution, that reference eachother.
The referencing goes like this:
Web ---[references]---> Controller ---[references]---> Model
Now I wanted to add 2 custom methods to the HtmlHelper class - they're called "IncludeScript" and "IncludeStyle". They each take a single string parameter, and generate a script or link tag respectively.
I've created an extender class, according to documentation on the web, and written the two methods and compiled the application.
Now, when I go into the Public.Master page (which is my main master-page, and one of the places where I intend to use these methods), I can enter code such as below:
`<%= Html.IncludeScript("\js\jquery.js") %>`
The IntelliSense picks up and IncludeScript method and shows me the syntax just fine. So I'd expect that everything should work.
But it doesn't.
Everything compiles, but as soon as I run the application, I get the following run-time error from line 14 of Default.aspx.cs:
`c:\\Projects\\PhoneReel\\PhoneReel.Web\\Views\\Shared\\Public.Master(11): error CS0117: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'IncludeScript'`
Here's the line of code that the error happens on:
`httpHandler.ProcessRequest(HttpContext.Current);`
Any ideas what could be going wrong here? | 0 | [
2,
483,
221,
22,
38,
51,
13,
15895,
14593,
106,
17529,
170,
60,
800,
3726,
3726,
31,
22,
79,
353,
40,
28,
306,
9,
2328,
307,
8990,
2271,
9,
864,
119,
57,
796,
19,
53,
669,
15,
31,
22,
195,
868,
20,
1725,
14,
2741,
15,
1061,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Selected Text from Webbrowser control in .net(C#)
===
I've been trying to figure out how to retrieve the text selected by the user in my webbrowser control and have had no luck after digging through msdn and other resources, So I was wondering if there is a way to actually do this. Maybe I simply missed something.
I appreciate any help or resources regarding this.
Thanks | 0 | [
2,
13,
6239,
3272,
8397,
1704,
1854,
37,
10192,
5417,
4104,
569,
19,
13,
9,
2328,
5,
150,
5910,
6,
800,
3726,
3726,
31,
22,
195,
74,
749,
20,
1465,
70,
184,
20,
11917,
14,
1854,
1704,
34,
14,
4155,
19,
51,
10192,
5417,
4104,
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... |
Bind NameValueCollection to GridView?
===
What kind of collection I should use to convert NameValue collection to be bindable to GridView?
When doing directly it didn't work.
**Code in aspx.cs**
private void BindList(NameValueCollection nvpList)
{
resultGV.DataSource = list;
resultGV.DataBind();
}
**Code in aspx**
<asp:GridView ID="resultGV" runat="server" AutoGenerateColumns="False" Width="100%">
<Columns>
<asp:BoundField DataField="Key" HeaderText="Key" />
<asp:BoundField DataField="Value" HeaderText="Value" />
</Columns>
</asp:GridView>
Any tip most welcome. Thanks. X. | 0 | [
2,
10193,
204,
15165,
15015,
872,
20,
7354,
4725,
60,
800,
3726,
3726,
98,
825,
16,
1206,
31,
378,
275,
20,
8406,
204,
15165,
1206,
20,
44,
10193,
579,
20,
7354,
4725,
60,
76,
845,
1703,
32,
223,
22,
38,
170,
9,
13,
1409,
9375,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
IE7 and the statusbar
===
Is there a way to spawn a new window via javascript in IE7 that hides the statusbar?
I've added the intranet app as a trusted site. Not sure what else I can use to try. This is my JS
window.open("http:/localhost/start.html", "MyApp", "left=0, top=0, width=" + screen.width + "," +
"height=" + screen.height + ", scrollbars=yes, " +
"resizable=yes, location=no, menubar=no, titlebar=no, " + "toolbar=no, status=no"); | 0 | [
2,
13,
660,
465,
17,
14,
1782,
1850,
800,
3726,
3726,
25,
80,
21,
161,
20,
13,
22860,
21,
78,
1463,
1197,
8247,
8741,
19,
13,
660,
465,
30,
3077,
18,
14,
1782,
1850,
60,
31,
22,
195,
905,
14,
14369,
2328,
4865,
28,
21,
9968,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 think Troubleshooting is one of the most important measurable technology-agnostic skills a programmer can have?
===
There are many skills a programmer could have (understanding the problem, asking good questions, good design skills, etc.).
I think Troubleshooting is incredibly valuable.
Whadaya think?
| 0 | [
2,
107,
42,
277,
2572,
12511,
68,
25,
53,
16,
14,
127,
681,
29613,
1099,
8,
58,
21944,
3207,
21,
17968,
92,
57,
60,
800,
3726,
3726,
80,
50,
151,
3207,
21,
17968,
110,
57,
13,
5,
4579,
10465,
14,
1448,
15,
3379,
254,
2346,
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... |
How do you use LEFT on a NTEXT SQL Server Column?
===
How do you use the LEFT function (or an equivalent) on a SQL Server NTEXT column?
Basically I'm building a GridView and I just want to return the first 100 or so characters from the Description column which is NTEXT. | 0 | [
2,
184,
107,
42,
275,
225,
27,
21,
13,
103,
11969,
4444,
255,
8128,
4698,
60,
800,
3726,
3726,
184,
107,
42,
275,
14,
225,
1990,
13,
5,
248,
40,
4602,
6,
27,
21,
4444,
255,
8128,
13,
103,
11969,
4698,
60,
11374,
31,
22,
79,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to access form methods and controls from a class in C#?
===
I'm working on a program in C#, and right now I have one form and a couple classes. I would like to be able to access some of the form controls(such as a textbox) from my class. When I try to change the text in the text box from my class I get the following error:
An object reference is required for the non-static field, method, or property 'Project.Form1.txtLog'
How can I access methods and controls that are in Form1.cs from one of my classes?
| 0 | [
2,
184,
20,
1381,
505,
3195,
17,
8671,
37,
21,
718,
19,
272,
5910,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
625,
19,
272,
5910,
15,
17,
193,
130,
31,
57,
53,
505,
17,
21,
1335,
2684,
9,
31,
83,
101,
20,
44,
777,
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... |
XSD elements to a Form in ASP.NET
===
Is there a standard way to convert an XSD to an input form (ASP.NET C#) so that later on whenever a new field is added / removed from the XSD the field on the page automatically shows up or goes away respectively, is this something which needs to be developed in-house I assume there must be a way to serializes / deserializes and generates a form? Any hel would be appreciated.. | 0 | [
2,
993,
18,
43,
2065,
20,
21,
505,
19,
28,
306,
9,
2328,
800,
3726,
3726,
25,
80,
21,
1236,
161,
20,
8406,
40,
993,
18,
43,
20,
40,
6367,
505,
13,
5,
472,
306,
9,
2328,
272,
5910,
6,
86,
30,
138,
27,
6634,
21,
78,
575,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to use Lightbox under MVC
===
I am a big fan of the Lightbox2 library, and have used it in the past just not on an MVC project. In the past I remember that Lightbox2 was picky about the paths it scripts, css, and images resided in. I remember specifically have to put everything in subdirectories of the page's path, else it wouldn't work.
In a non-MVC application that approach was fine, but now I find myself working on an MVC application and a page's URL may have nothing to do with the directory structure. So linking to Lightbox2 per the instructions of:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
obviously does not work.
I tried putting the absolute path to the JavaScript which gave me the effects, just without the images. I am suspecting that the JavaScript "knows" where its images are, and cannot find them.
Has anyone had success with Lightbox2 in an MVC environment? Perhaps just success deploying Lightbox2 to a non-subdirectory?
Thanks!
| 0 | [
2,
184,
20,
275,
471,
5309,
131,
307,
8990,
800,
3726,
3726,
31,
589,
21,
580,
2514,
16,
14,
471,
5309,
135,
1248,
15,
17,
57,
147,
32,
19,
14,
640,
114,
52,
27,
40,
307,
8990,
669,
9,
19,
14,
640,
31,
1518,
30,
471,
5309,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
URL-Encoded Angle Brackets in URL?
===
I'm working on a legacy app and for whatever reason it's trying to stuff URL-encoded angle brackets into a URL. For example, to get a URL ending with "<sometext>":
http://somesite.com/somefolder/%3csometext%3e
When the above URL-encoded URL is fetched, it generates a 400 error (Bad Request) on IIS6 and I can't quite figure out why. Probably something simple, but I'm stumped.
Ideas? Thanks. | 0 | [
2,
287,
6362,
8,
219,
22254,
5334,
21971,
19,
287,
6362,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
7780,
4865,
17,
26,
2099,
1215,
32,
22,
18,
749,
20,
3217,
287,
6362,
8,
219,
22254,
5334,
21971,
77,
21,
287,
6362,
9,
26,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
edit datagrid row
===
i want to know how to edit a single row (which i select) from a data grid
for example i have a datagrid with columns A, B and C
and i have a couple rows of data, approx 10 rows.
lets say i want to change the value of data within row 4.
how would i do this?
i am using visual studio 2003, but i guess if visual studio 2005 would be okay too. for the coding I'm using c#
thanks.. | 0 | [
2,
9392,
1054,
16375,
3131,
800,
3726,
3726,
31,
259,
20,
143,
184,
20,
9392,
21,
345,
3131,
13,
5,
2140,
31,
5407,
6,
37,
21,
1054,
7354,
26,
823,
31,
57,
21,
1054,
16375,
29,
7498,
21,
15,
334,
17,
272,
17,
31,
57,
21,
133... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Trying to get DXperience under Linux: I get "Windows Installer 3" required when installing .NET 2.0 under wine in SLED
===
I want to try out DXperience component suite on Linux (Suse Linux enterprise desktop). Since it relies heavily on the PInvoke calls, Mono would not work out here.
Some people were able to get this running by installing .NET 2.0 under wine on Linux.
I've tried to do this with the winetricks and manually. Every time .NET 2.0 install on SLED hits the "Installer 3 requirement" with the latest wine.
Installing the MSI3 itself fails due to the absence of the crypto services.
It is possible to avoid this requirement by installing .NET 2.0 in Win98 mode, but the installation process breaks before the end.
Has anyone encountered this before? | 0 | [
2,
749,
20,
164,
13,
43,
396,
1432,
49,
2940,
131,
13024,
45,
31,
164,
13,
7,
27508,
18,
16146,
106,
203,
7,
1390,
76,
25429,
13,
9,
2328,
172,
9,
387,
131,
2667,
19,
19328,
800,
3726,
3726,
31,
259,
20,
1131,
70,
13,
43,
39... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 configure the email settings in CrashRpt to send the crash dump?
===
After reading [this discussion][1] and [this discussion][2] about using CrashRpt to generate a crash dump and email it to the developers, I've been having a difficult time finding any instructions/tutorials for configuring the email settings used by the library to send the email.
When you call the install() function to initialize CrashRpt, you specify the email address you want the crash dump sent to, but how does the CrashPrt library know how to send the email to that address? Wouldn't the library have to know the email client settings for each individual user?
When a fatal crash occurs in my code, the CrashRpt dialog box pops up and when I enter my email address and click the send button, it takes me to a "Save File" dialog box where I can save the zipped package and the account specified in the Install() function never receives an email.
Thanks in advance for any and all help! I'm clearly missing something.
[1]: http://stackoverflow.com/questions/36127/any-recommended-vc-settings-for-better-pdb-analysis-on-release-builds
[2]: http://stackoverflow.com/questions/49224/good-crash-reporting-library-in-c | 0 | [
2,
184,
107,
42,
1065,
15951,
14,
8517,
12410,
19,
4597,
6952,
38,
20,
2660,
14,
4597,
11424,
60,
800,
3726,
3726,
75,
1876,
636,
1565,
5460,
500,
2558,
165,
500,
17,
636,
1565,
5460,
500,
2558,
135,
500,
88,
568,
4597,
6952,
38,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Text input parser in c#
===
I have a text file of this format:
L O A D C A S E 1 O F 2 ...
J O I N T D I S P L A C E M E N T S (global)
Joint X-dsp Y-dsp Z-dsp X-rot Y-rot Z-rot
1 0.0 0.0 0.0 0.0 0.0 -0.001712
2 0.000646 -0.021756 0.0 0.0 0.0 -0.001339
3 0.003562 -0.038487 0.0 0.0 0.0 -0.000727
4 0.006478 -0.041661 0.0 0.0 0.0 0.000104
5 0.009536 -0.036266 0.0 0.0 0.0 0.000720
6 0.012595 -0.022824 0.0 0.0 0.0 0.001326
7 0.014724 0.0 0.0 0.0 0.0 0.001948
8 0.010000 -0.018686 0.0 0.0 0.0 -0.001117
9 0.009354 -0.036887 0.0 0.0 0.0 -0.000829
10 0.005767 -0.041661 0.0 0.0 0.0 0.000060
11 0.002180 -0.035866 0.0 0.0 0.0 0.000798
12 0.000051 -0.020695 0.0 0.0 0.0 0.001210
M E M B E R E N D F O R C E S (local)
Member Joint Nx Vy Vz Txx Myy Mzz
1 1 -16.138t 0.002 0.0 0.0 0.0 0.011
1 2 16.138t -0.002 0.0 0.0 0.0 0.017
2 2 -72.907t 0.003 0.0 0.0 0.0 0.013
2 3 72.907t -0.003 0.0 0.0 0.0 0.023
3 3 -72.909t -0.000 0.0 0.0 0.0 -0.009
3 4 72.909t 0.000 0.0 0.0 0.0 0.005
4 4 -76.455t -0.000 0.0 0.0 0.0 -0.007
4 5 76.455t 0.000 0.0 0.0 0.0 0.003
5 5 -76.453t -0.001 0.0 0.0 0.0 -0.010
5 6 76.453t 0.001 0.0 0.0 0.0 0.000
6 6 -53.226t -0.002 0.0 0.0 0.0 -0.018
6 7 53.226t 0.002 0.0 0.0 0.0 -0.008
7 1 108.570c -0.001 0.0 0.0 0.0 -0.011
7 8 -108.570c 0.001 0.0 0.0 0.0 -0.004
8 2 -76.765t -0.004 0.0 0.0 0.0 -0.024
8 8 76.765t 0.004 0.0 0.0 0.0 -0.021
9 2 80.278c -0.000 0.0 0.0 0.0 -0.006
9 9 -80.278c 0.000 0.0 0.0 0.0 -0.000
10 3 -39.997t -0.002 0.0 0.0 0.0 -0.014
10 9 39.997t 0.002 0.0 0.0 0.0 -0.016
11 4 -23.720t -0.000 0.0 0.0 0.0 0.004
11 9 23.720t 0.000 0.0 0.0 0.0 -0.007
12 4 -0.001t 0.000 0.0 0.0 0.0 0.002
12 10 0.001t -0.000 0.0 0.0 0.0 0.001
13 4 -18.706t 0.000 0.0 0.0 0.0 -0.003
13 11 18.706t -0.000 0.0 0.0 0.0 0.005
14 5 -10.000t 0.001 0.0 0.0 0.0 0.007
14 11 10.000t -0.001 0.0 0.0 0.0 0.008
15 6 32.845c 0.000 0.0 0.0 0.0 0.006
15 11 -32.845c -0.000 0.0 0.0 0.0 -0.000
16 6 -53.223t 0.002 0.0 0.0 0.0 0.012
16 12 53.223t -0.002 0.0 0.0 0.0 0.010
17 7 75.273c 0.000 0.0 0.0 0.0 0.008
17 12 -75.273c -0.000 0.0 0.0 0.0 -0.001
18 8 16.142c 0.005 0.0 0.0 0.0 0.025
18 9 -16.142c -0.005 0.0 0.0 0.0 0.030
19 9 89.682c 0.000 0.0 0.0 0.0 -0.007
19 10 -89.682c -0.000 0.0 0.0 0.0 0.008
20 10 89.682c -0.000 0.0 0.0 0.0 -0.009
20 11 -89.682c 0.000 0.0 0.0 0.0 0.003
21 11 53.228c -0.002 0.0 0.0 0.0 -0.016
21 12 -53.228c 0.002 0.0 0.0 0.0 -0.010
Is there any C# library that can be used to parse the information of this format?
Thanks.
| 0 | [
2,
1854,
6367,
2017,
4104,
19,
272,
5910,
800,
3726,
3726,
31,
57,
21,
1854,
3893,
16,
48,
2595,
45,
644,
635,
21,
13,
43,
272,
21,
13,
18,
13,
62,
137,
635,
398,
172,
13,
9,
9,
9,
487,
635,
31,
13,
103,
13,
38,
13,
43,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Single WCF Service to multiple client connections
===
I have developed a VB.NET WCF service that recives and sends back data. When the first client connects it starts the data output that continues also if the client is closed. If a new client connects then a new object is created and the data output starts at the begninning and continues in parallel with the old instance. Is there a way to read the same service object from multiple clients?
Thanks | 0 | [
2,
345,
11801,
410,
365,
20,
1886,
6819,
6760,
800,
3726,
3726,
31,
57,
885,
21,
13,
20468,
9,
2328,
11801,
410,
365,
30,
6042,
1284,
18,
17,
11350,
97,
1054,
9,
76,
14,
64,
6819,
8534,
32,
3244,
14,
1054,
5196,
30,
2622,
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... |
efficiency /algorithms vs system specifications
===
We are all talking about the efficiency of the algorithms and it depends on input size -basically.
How about the system specifications of current computer that runs the algorithm? does it make any difference to run a different sorting algorithm in a Core 2 Duo 2.6 GHZ, 4 GB RAM-computer or in a P-2, 256 MB RAM-computer?
I am sure that there must be a performance difference. But, I want to know what is the real relationship between algorithms and system specifications... | 0 | [
2,
7836,
13,
118,
192,
6979,
242,
7015,
18,
4611,
329,
17971,
800,
3726,
3726,
95,
50,
65,
1582,
88,
14,
7836,
16,
14,
15935,
17,
32,
9597,
27,
6367,
1072,
13,
8,
6093,
8438,
9,
184,
88,
14,
329,
17971,
16,
866,
1428,
30,
1461... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 that one feature that's missing from your favorite web framework?
===
There are several very high quality web frameworks out there today, and everyone seems to be able to find one that becomes their favorite. Then, they have nothing but good things to say about the framework in question, and they relate their personal experiences on how the framework has made web development more enjoyable for them.
That's excellent, and the web framework-related questions I've seen on stackoverflow have been answered in helpful ways while avoiding flame wars and so on - that says a lot about the people who participate here and it's a pleasure to read quality content.
So here's my question: sure, there are 99 reasons to love your favorite web framework, but what is that 1 extra feature that you wish it had? Or that 1 area that you think could use some improvement?
Hopefully we've moved past the "my framework is better than your framework" pointless discussions, and we've also realized that all frameworks have their sweet spots. I
certainly respect people who can admit that their favorite framework is not perfect, and I'd like to read about the types of features that people find are missing or could be improved. Who knows, the developers of those frameworks might hear you and implement/improve those features!
Thanks in advance for your responses. | 0 | [
2,
98,
25,
30,
53,
1580,
30,
22,
18,
2863,
37,
154,
3839,
2741,
6596,
60,
800,
3726,
3726,
80,
50,
238,
253,
183,
2190,
2741,
6596,
18,
70,
80,
786,
15,
17,
1266,
2206,
20,
44,
777,
20,
477,
53,
30,
2633,
66,
3839,
9,
94,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Integrating JCaptcha with Spring Security
===
What is appropriate way to integrate SpringSecurity with JCapcha ? I just thinking about adding separate security filter in secured filter stack, or entirely rewrite AuthenticationProcessingFilter to support JCaptcha. | 0 | [
2,
24529,
487,
4666,
38,
1651,
29,
1573,
1221,
800,
3726,
3726,
98,
25,
4593,
161,
20,
18399,
1573,
17749,
29,
487,
4666,
1651,
13,
60,
31,
114,
1440,
88,
4721,
1725,
1221,
11945,
19,
6385,
11945,
7566,
15,
54,
2894,
27891,
27963,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What are the possible classes for the OpenThemedata function?
===
I'm trying to call the OpenThemeData (see msdn OpenThemeData) function but I couldn't determine what are the acceptable Class names to be passed in by the "pszClassList" parameter.
HTHEME OpenThemeData(
HWND hwnd,
LPCWSTR pszClassList
);
Could anybody tell me what are the acceptable class names that I can pass into that parameter?
Thanks! | 0 | [
2,
98,
50,
14,
938,
2684,
26,
14,
368,
17794,
4375,
1990,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
645,
14,
368,
17794,
4375,
13,
5,
1798,
4235,
43,
103,
368,
17794,
4375,
6,
1990,
47,
31,
711,
22,
38,
3746,
98,
50,
14,
125... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Programmer's Notepad not Capturing Make Output?
===
I've been using Programmer's notepad for a while now, I find it to be an amazingly simple tool and I prefer to use it on projects where I know I don't need most of the standard IDE overhead. However, I've recently run into this problem when running the program on Windows Vista.
I find that when running the built in "make" command, the output from make.exe isn't captured in the window like its supposed to be. The error code is being caught, but the output is always completely blank, regardless of what the program is actually outputting. (Running the program from the command line shows the output just fine, as does running it without using PN's "Capture Output" option.) Anyone know what the cause of this might be?
Thanks | 0 | [
2,
17968,
22,
18,
1945,
8240,
52,
12859,
233,
5196,
60,
800,
3726,
3726,
31,
22,
195,
74,
568,
17968,
22,
18,
1945,
8240,
26,
21,
133,
130,
15,
31,
477,
32,
20,
44,
40,
5289,
102,
1935,
5607,
17,
31,
6369,
20,
275,
32,
27,
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... |
JPEG built-in checksum / fingerprint?
===
I'm putting together a script to find remove duplicates in a large library of images. At the moment I'm doing a two pass filter of first finding files of the same size and then doing a sha256 on a 10240 byte piece of the file to get a fingerprint of the files with the same size (code <a href="http://parand.com/say/index.php/2008/10/15/python-script-for-finding-and-removing-duplicate-files/">here</a>).
It works well, but I'm guessing there are probably checksums built in to the jpeg format that I could use instead of doing the sha256.
Does anyone know if there are checksums or other components that could act as checksums / fingerprints? If so, is there an efficient way to access them? | 0 | [
2,
487,
20427,
392,
8,
108,
16602,
723,
13,
118,
21564,
60,
800,
3726,
3726,
31,
22,
79,
3873,
429,
21,
3884,
20,
477,
4681,
19429,
18,
19,
21,
370,
1248,
16,
3502,
9,
35,
14,
688,
31,
22,
79,
845,
21,
81,
1477,
11945,
16,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Security and Policy Injection Application Block
===
I have a mixed UI (Win App, WPF App, and soon an ASP.NET MVC App) setup, so far I'm using Client Application Services for security. I know how to programmatically get a user authenticated and doing so is working beautifully. However...
I want to implement some cross cutting that basically checks to see if the user is authenticated all the time. Since everything will be accessing web services I want to enable this as a standard execution for pretty much everything the UI does. So far I'm thinking the PIAB - Policy Injection Application Block - will serve that function. What I'm wondering is two things;
1 Will the PIAB cover that needed functionality? Verifying authentication at every practical step if used against the UI?
...and...
2 Are there alternatives out there besides the PIAB? I'm curious to do a comparison of aspect oriented policy injection frameworks. | 0 | [
2,
1221,
17,
1486,
13646,
3010,
1921,
800,
3726,
3726,
31,
57,
21,
2198,
13,
5661,
13,
5,
4181,
4865,
15,
619,
7721,
4865,
15,
17,
651,
40,
28,
306,
9,
2328,
307,
8990,
4865,
6,
18161,
15,
86,
463,
31,
22,
79,
568,
6819,
3010,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Good Website Editing Software for the Casual Internet User?
===
I'm going to be coaching a gentleman, older, and fairly Internet inexperienced, with maintaining a simple web site. Nothing dynamic, just static pages, text, links, and images. I haven't done any web page work for years. What would you guys recommend he [we] use for software? Are there online tools we can share that would give him the ability to do basic editing, but allow me to get in and fix any HTML "glitches" that might come up? | 0 | [
2,
254,
2271,
9510,
2306,
26,
14,
10093,
2620,
4155,
60,
800,
3726,
3726,
31,
22,
79,
228,
20,
44,
7272,
21,
10240,
15,
1234,
15,
17,
6647,
2620,
27624,
15,
29,
8215,
21,
1935,
2741,
689,
9,
626,
7782,
15,
114,
12038,
4434,
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... |
Which Typesafe Enum in C++ Are You Using?
===
It is common knowledge that built-in enums in C++ are not typesafe.
I was wondering which classes implementing typesafe enums are used out there...
I myself use the following "bicycle", but it is somewhat verbose and limited:
typesafeenum.h:
struct TypesafeEnum
{
// Construction:
public:
TypesafeEnum(): id (next_id++), name("") {}
TypesafeEnum(const std::string& n): id(next_id++), name(n) {}
// Operations:
public:
bool operator == (const TypesafeEnum& right) const;
bool operator != (const TypesafeEnum& right) const;
bool operator < (const TypesafeEnum& right) const;
std::string to_string() const { return name; }
// Implementation:
private:
static int next_id;
int id;
std::string name;
};
typesafeenum.cpp:
int TypesafeEnum::next_id = 1;
bool TypesafeEnum::operator== (const TypesafeEnum& right) const
{ return id == right.id; }
bool TypesafeEnum::operator!= (const TypesafeEnum& right) const
{ return !operator== (right); }
bool TypesafeEnum::operator< (const TypesafeEnum& right) const
{ return id < right.id; }
Usage:
class Dialog
{
...
struct Result: public TypesafeEnum
{
static const Result CANCEL("Cancel");
static const Result OK("Ok");
};
Result doModal();
...
};
const Dialog::Result Dialog::Result::OK;
const Dialog::Result Dialog::Result::CANCEL;
| 0 | [
2,
56,
1001,
18166,
1957,
723,
19,
272,
20512,
50,
42,
568,
60,
800,
3726,
3726,
32,
25,
757,
1918,
30,
392,
8,
108,
1957,
723,
18,
19,
272,
20512,
50,
52,
1001,
18166,
9,
31,
23,
5712,
56,
2684,
17333,
1001,
18166,
1957,
723,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 fast is php_uname()?
===
How fast is [php_uname()][1] say doing `php_uname('s n')` or `php_uname('a')`. The reason I ask is because I'd like to use it to determine which server I'm on and therefore the configuration (paths, etc).
This is related to [Is there a PHP function or variable giving the local host name?][2]
[1]: http://php.net/manual/en/function.php-uname.php
[2]: http://stackoverflow.com/questions/211885/is-there-a-php-function-or-variable-giving-the-local-host-name | 0 | [
2,
184,
1512,
25,
13,
26120,
1,
291,
7259,
5,
6,
60,
800,
3726,
3726,
184,
1512,
25,
636,
26120,
1,
291,
7259,
5,
6,
500,
2558,
165,
500,
395,
845,
13,
1,
26120,
1,
291,
7259,
5,
22,
18,
13,
103,
22,
6,
1,
54,
13,
1,
261... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Point in Polygon aka hit test
===
What's your best, most elegant 2D "point inside polygon" or Polygon.contains(p:Point) algorithm? | 0 | [
2,
454,
19,
21309,
20892,
770,
1289,
800,
3726,
3726,
98,
22,
18,
154,
246,
15,
127,
11614,
172,
43,
13,
7,
3132,
572,
21309,
7,
54,
21309,
9,
1126,
5851,
18,
5,
306,
45,
3132,
6,
9083,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Contatenating xml files with xslt
===
I have several xml files, the names of which are stored in another xml file.
I want to use xsl to produce a summary of the combination of the xml files. I remember there was a way to do this with the msxml extensions (I'm using msxml).
I know I can get the content of each file using select="document(filename)" but I'm not sure how to combine all these documents in to one. | 0 | [
2,
1065,
536,
1316,
1880,
23504,
6488,
29,
993,
18,
255,
38,
800,
3726,
3726,
31,
57,
238,
23504,
6488,
15,
14,
1817,
16,
56,
50,
8214,
19,
226,
23504,
3893,
9,
31,
259,
20,
275,
993,
18,
255,
20,
2213,
21,
14740,
16,
14,
3733... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 determine which server the script is on and therefore the configuration in PHP?
===
I'm trying to determine the best way of having a PHP script determine which server the script/site is currently running on.
At the moment I have a `switch()` that uses `$_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT']` to determine which server it's on. It then sets a few paths, db connection parameters, SMTP paramters and debug settings based on which server it's on. (There maybe additional parameters depending on the site needs.)
This means that I can simply drop the site onto any of the configured servers without having to change any code (specifically the configuration). If it's a new server, then I simply add a new `case` and it's ready from then on.
We have done loading config files based on the same `SERVER_NAME:SERVER_PORT` combination, but found that it's another file you have to maintain, plus we weren't sure on the speed of parsing ini files, (although having extra cases for each server may be just as slow).
Another problem we have is when a site is often moved between 2 servers, but we use the same `SERVER_NAME` and `SERVER_PORT` on each. This means we need to temporarily comment one case and ensure it doesn't get into the repo.
Another other ideas? It needs to be available on all servers (sometimes `SERVER_NAME` and `SERVER_PORT` are not). It would also be nice if it worked with the CLI PHP. | 0 | [
2,
98,
25,
14,
246,
161,
20,
3746,
56,
8128,
14,
3884,
25,
27,
17,
1793,
14,
8091,
19,
13,
26120,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
3746,
14,
246,
161,
16,
452,
21,
13,
26120,
3884,
3746,
56,
8128,
14,
3884,
118,
909... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
perl - getOpt - Getting options in the order entered by the user.
===
I have an existing perl program that uses getOpt package and Getopt::Long::Configure with 'permute' as one of the options. However, now I need to keep the order of the options entered by the user. There is an option $RETURN_IN _ORDER mentioned in the Long.pm, however doesn't seem to be used anywhere at all.
When I pass 'return_in _order', I am getting the following error.
---
**Getopt::Long: unknown config parameter "return_in_order" at C:/Program Files/IBM
/RationalSDLC/common/lib/perl5/5.8.6/Getopt/Long.pm line 1199.**
----
can someone please tell me if this is supported at all and if so, the right way to use? If not, I would like to know the other alternatives I have.
Thanks. | 0 | [
2,
416,
255,
13,
8,
164,
2594,
38,
13,
8,
1017,
6368,
19,
14,
389,
1297,
34,
14,
4155,
9,
800,
3726,
3726,
31,
57,
40,
3149,
416,
255,
625,
30,
2027,
164,
2594,
38,
6030,
17,
164,
2594,
38,
45,
45,
2701,
45,
45,
1126,
15951,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Redirect all requests to ASP.NET MVC on IIS6
===
I am probably overlooking something really simple here but I am trying to redirect all bad URLs to an action that filters the URL based on conditions and then either 301 redirects to a suitable page or issues a 404 page.
To this end I have a route like this at the end of my route table:
routes.MapRoute("NotFound", "{*url}", new { controller = "About", action = "NotFound" });
And an action like this:
public ActionResult NotFound(string url)
{
url = url + (!String.IsNullOrEmpty(Request.QueryString.ToString()) ? "?" + Request.QueryString : "");
if (/* Conditions are met... */)
{
Response.Status = "301 Moved Permanently";
string domain = Request.Url.Scheme + System.Uri.SchemeDelimiter + Request.Url.Host + (Request.Url.Port != 80 ? ":" + Request.Url.Port : "");
Response.AddHeader("Location", domain + "/" + /* Destination URL */);
Response.End();
}
Response.StatusCode = 404;
return View(/* 404 page... */));
}
This works perfectly locally.
However, when deployed to IIS6, URLs that don't include .mvc (e.g. oldfile.php) are never sent to the ASP.NET process for routing.
Is there a simple solution / am I overlooking something? | 0 | [
2,
302,
14706,
65,
12279,
20,
28,
306,
9,
2328,
307,
8990,
27,
595,
18,
379,
800,
3726,
3726,
31,
589,
910,
14237,
301,
510,
1935,
235,
47,
31,
589,
749,
20,
302,
14706,
65,
896,
13,
911,
7532,
20,
40,
1028,
30,
21062,
14,
287... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What does using a dollar sign after $this-> in PHP mean?
===
I'm a little confused by some PHP syntax I've come across. Here is an example:
$k = $this->_tbl_key;
if( $this->$k)
{
$ret = $this->_db->updateObject( $this->_tbl, $this, $this->_tbl_key, $updateNulls );
}
else
{
$ret = $this->_db->insertObject( $this->_tbl, $this, $this->_tbl_key );
}
My question is basically what does `$this->$k` mean? I figured it might mean the member variable that goes by the name of whatever is in `$this->_tbl_key`, but how would that work? Is it possible to add member variables to a class at run-time? | 0 | [
2,
98,
630,
568,
21,
9311,
1676,
75,
5579,
1565,
8,
1,
19,
13,
26120,
884,
60,
800,
3726,
3726,
31,
22,
79,
21,
265,
4230,
34,
109,
13,
26120,
22649,
31,
22,
195,
340,
464,
9,
235,
25,
40,
823,
45,
5579,
197,
800,
5579,
1565... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 naming convention for a lookup map/hash?
===
In data processing, I frequently need to create a lookup data structure to map one identifier to another. As a concrete example, let's take a structure which holds a 1-to-1 mapping between a country's 2 character code and it's full name. In it we would have
AD -> Andorra
AE -> United Arab Emirates
AF -> Afghanistan
What's a good name for the variable that would hold this map? Some ideas (I'll use camel-case names):
countryNameByCode
nameByCodeLookup
nameCodeLookup
codeToName | 0 | [
2,
98,
22,
18,
21,
254,
10929,
3087,
26,
21,
361,
576,
2942,
118,
25436,
60,
800,
3726,
3726,
19,
1054,
5511,
15,
31,
3086,
376,
20,
1600,
21,
361,
576,
1054,
1411,
20,
2942,
53,
25570,
20,
226,
9,
28,
21,
4105,
823,
15,
408,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
__construct() vs SameAsClassName() for constructor in PHP
===
Is there any advantage to using __construct instead of the class' name for a constructor in PHP?
example:
>class Foo{
>> function __construct(){
>> //do stuff
>> }
>}
OR
>class Foo{
>> function Foo(){
>> //do stuff
>> }
>} | 0 | [
2,
13,
1,
1126,
10346,
5,
6,
4611,
205,
472,
1898,
7259,
5,
6,
26,
6960,
248,
19,
13,
26120,
800,
3726,
3726,
25,
80,
186,
3314,
20,
568,
13,
1,
1126,
10346,
700,
16,
14,
718,
22,
204,
26,
21,
6960,
248,
19,
13,
26120,
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... |
Using Entity Framework entities as a buisiness objects?
===
I'm using Entity Framework O/R mapper from Microsoft and using entity classes (generated classes that are mapped to DB objects) as a business objects.
Is this OK? Please state yours cons or pros. What to do in a case of WCF communication between business layer and presentation, how to send those objects as a data members?
| 0 | [
2,
568,
9252,
6596,
12549,
28,
21,
3183,
403,
8776,
3916,
60,
800,
3726,
3726,
31,
22,
79,
568,
9252,
6596,
635,
118,
139,
2942,
1432,
37,
7099,
17,
568,
9252,
2684,
13,
5,
25314,
2684,
30,
50,
20877,
20,
13,
9007,
3916,
6,
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... |
build a plugin system with php
===
I'm working on a custom CMS for my own use and was thinking about implementing a plugin system so I could extend the code a little easier. I'm having trouble conceptualizing the architecture and layout though.
I know I could go through a few open source programs that implement similar features but this is really just academic at this point so I really don't want to spend too much time digging through foreign code.
Does anyone have any good ideas of how to proceed? If someone could outline how some of the more popular programs do it that'd be perfect.
| 0 | [
2,
1895,
21,
10922,
108,
329,
29,
13,
26120,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
5816,
2390,
18,
26,
51,
258,
275,
17,
23,
1440,
88,
17333,
21,
10922,
108,
329,
86,
31,
110,
7206,
14,
1797,
21,
265,
4950,
9,
31,
22,
79... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 I subclass List<T> or have it as a property?
===
I have faced this problem quite often during the last couple of months, during which I've been building this system. The scenario is this: I have this kind of object that essentially is a list of other objects, but has some other properties specific of its nature. For example:
* Class `Tests`:
* Contains many `Test` objects
* Has properties:
* `DefaultTimeouts`
* `DefaultNumberOfTries`
Should I have this class subclass `List<Test>` or should I have it inheriting from `Object`, simply having the list as a property beside the other fields?
I know that this may be a bit subjective and personal taste might play a role here, but I'd wholeheartedly like to know your opinion on this. | 0 | [
2,
378,
31,
972,
1898,
968,
1,
38,
1,
54,
57,
32,
28,
21,
1354,
60,
800,
3726,
3726,
31,
57,
3110,
48,
1448,
1450,
478,
112,
14,
236,
1335,
16,
818,
15,
112,
56,
31,
22,
195,
74,
353,
48,
329,
9,
14,
12705,
25,
48,
45,
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... |
Troubleshooting py2exe packaging problem
===
I've written a setup.py script for py2exe, generated an executable for my python GUI application and I have a whole bunch of files in the dist directory, including the app, w9xopen.exe and MSVCR71.dll. When I try to run the application, I get an error message and to "see the logfile for details". The only problem is, the log file is empty.
The closest error I've seen is "The following modules appear to be missing" but I'm not using any of those modules as far as I know (especially since they seem to be of databases I'm not using) but digging up on Google suggests that these are relatively benign warnings.
I've written and packaged a console application as well as a wxpython one with py2exe and both applications have compiled and run successfully. I am using a new python toolkit called dabo, which in turn makes uses of wxpython modules so I can't figure out what I'm doing wrong. Where do I start investigating the problem since obviously the log file hasn't been too useful? | 0 | [
2,
2572,
12511,
68,
7103,
135,
1706,
62,
16850,
1448,
800,
3726,
3726,
31,
22,
195,
642,
21,
18161,
9,
6448,
3884,
26,
7103,
135,
1706,
62,
15,
6756,
40,
1396,
17194,
5924,
26,
51,
20059,
9457,
3010,
17,
31,
57,
21,
979,
7653,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to generate an 401 error programatically in an ASP.NET page
===
As you can see this is a question from a none web developer. I would like to have an aspx page which, under certain circumstances, can generate a 401 error from code.Ideally it would show the IIS standard page. Any ideas are welcome. | 0 | [
2,
184,
20,
7920,
40,
13,
20658,
7019,
625,
721,
8438,
19,
40,
28,
306,
9,
2328,
2478,
800,
3726,
3726,
28,
42,
92,
196,
48,
25,
21,
1301,
37,
21,
2369,
2741,
10058,
9,
31,
83,
101,
20,
57,
40,
28,
306,
396,
2478,
56,
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... |
Are there any differences between Java's "synchronize" and C#'s "lock"?
===
I think the question is pretty self-explanatory. Do these two keywords have exactly the same effect, or is there something I should be aware of? | 0 | [
2,
50,
80,
186,
4921,
128,
8247,
22,
18,
13,
7,
16023,
2952,
7,
17,
272,
5910,
22,
18,
13,
7,
3966,
7,
60,
800,
3726,
3726,
31,
277,
14,
1301,
25,
1772,
1119,
8,
6899,
1804,
7496,
9,
107,
158,
81,
1246,
12827,
57,
1890,
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,
0,
0,
0... |
Fomating an if statement for readability.
===
What's the best way to format this for readability?
if (strpos($file, '.jpg',1) && file_exists("$thumbsdir/$file") == false || strpos($file, '.gif',1) && file_exists("$thumbsdir/$file") == false || strpos($file, '.png',1) && file_exists("$thumbsdir/$file") == false) {
createThumb("$gallerydir/$file", "$thumbsdir/$file",$thumbsize);
fwrite($log,date("Y-m-d")." @ ".date("H:i:s")." CREATED: $thumbsdir/$file\n");
} | 0 | [
2,
4310,
79,
1880,
40,
100,
3331,
26,
1302,
4091,
9,
800,
3726,
3726,
98,
22,
18,
14,
246,
161,
20,
2595,
48,
26,
1302,
4091,
60,
100,
13,
5,
9729,
12551,
5,
4403,
16877,
15,
13,
22,
9,
12851,
263,
22,
15,
165,
6,
279,
1569,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using jQuery accordion with strange markup.
===
I have this HTML structure and want to convert it to an accordion.
<div class="accor">
<div class="section">
<h3>Sub section</h3>
<p>Sub section text</p>
</div>
<div class="section">
<h3>Sub section</h3>
<p>Sub section text</p>
</div>
<div class="section">
<h3>Sub section</h3>
<p>Sub section text</p>
</div>
</div>
Basically using the `h3`s as accordion headers, and the rest of the content in each `div.section` as the content for each accordion panel. (Also note: the headings could be anything between h2 and h6, depending on their nesting).
I figured that this would be easiest if the DOM tree were restructured so the `h3`s were outside each `div` since that's how the accordion works by default:
<h3>Sub section</h3>
<div class="section">
<p>Sub section text</p>
</div>
The only problem is: how to move the headings around? (I don't have access to change the HTML).
var $sections = $("div.accor > .section"),
$headings = $sections.find("> :header")
;
// I figured that inserting each heading to be before its parent might
// be the answer:
$headings.insertBefore($headings.find(":parent"));
// ... but that doesn't do anything | 0 | [
2,
568,
487,
8190,
93,
20753,
29,
2578,
943,
576,
9,
800,
3726,
3726,
31,
57,
48,
13,
15895,
1411,
17,
259,
20,
8406,
32,
20,
40,
20753,
9,
13,
1,
12916,
718,
3726,
7,
22301,
139,
7,
1,
13,
1,
12916,
718,
3726,
7,
10579,
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... |
How do I inject a single property value into a string using spring 2.5.x ?
===
I would really like to annotate a method with a reference to a single property in a property file for injection.
@Resource("${my.service.url"}}
private String myServiceUrl;
Of course, this syntax does not work ;) Thats why I'm asking here.
I am aware that I can inject the full properties file, but that just seems excessive, I dont want the property file - I want the configured value.
| 0 | [
2,
184,
107,
31,
20316,
21,
345,
1354,
1923,
77,
21,
3724,
568,
1573,
172,
9,
264,
9,
396,
13,
60,
800,
3726,
3726,
31,
83,
510,
101,
20,
40,
1270,
1373,
21,
2109,
29,
21,
2801,
20,
21,
345,
1354,
19,
21,
1354,
3893,
26,
136... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
x86 Assembly Keyboard Input
===
OK, I feel very very stupid for getting hung up on such a basic concept, but I can't seem to find a difinitive answer for this question anywhere.
I'm in the process of trying to hack together the first bits of a kernel. I currently have the entire kernel compiled down as C code, and I've managed to get it displaying text in the console window and all of that fine goodness. Now, I want to start accepting keyboard input so I can actually make some use of the thing and get going on process management.
I'm using DJGPP to compile, and loading with GRUB. I'm also using a small bit of assembly which basically jumps directly into my compiled C code and I'm happy from there. (A friend on the project got this bit working.) Now, fair warning, I don't pretend to know much about x86 assembly, although I'm familiar with other types of assembly, like z80 for example.
All the research I've done seems to point to an ISR at $0x16 to read in the next character from the keyboard buffer. From what I can tell, this is supposed to store the ASCII value in ah, and the keycode in al, or something to that effect. I'm attempting to code this using the following routine in inline assembly:
char getc(void)
{
int output = 0;
//CRAZY VOODOO CODE
asm("xor %%ah, %%ah\n\t"
"int $0x16"
: "=a" (output)
: "a" (output)
:
);
return (char)output;
}
When this code is called, the core immediately crashes. (I'm running it on VirtualBox, I didn't feel the need to try something this basic on real hardware.)
Now I have actually a couple of questions. No one has been able to tell me if (since my code was launched from GRUB) I'm running in real mode or protected mode at the moment. I haven't made the jump one way or another, I was planning on running in real mode until I got a process handler set up.
So, assuming that I'm running in real mode, what am I doing wrong, and how do I fix it? I just need a basic getc routine, preferably non-blocking, but I'll be darned if google is helping on this one at all. Once I can do that, I can do the rest from there.
I guess what I'm asking here is, am I anywhere near the right track? How does one generally go about getting keyboard input on this level?
Thanks a bunch.
| 0 | [
2,
993,
3274,
1475,
8896,
6367,
800,
3726,
3726,
5854,
15,
31,
583,
253,
253,
3553,
26,
1017,
3540,
71,
27,
145,
21,
2125,
2420,
15,
47,
31,
92,
22,
38,
2260,
20,
477,
21,
926,
5617,
49,
6142,
1623,
26,
48,
1301,
4922,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Check LDAP connection (Java)
===
I'm using javax naming to connect to an LDAP database.
Is there a good way to check if a connection is still valid?
I'm looking for something really efficient here because it may need to be done often.
After some web searching all I have found is a suggestion to do a quick search, is there any more lightweight way?
/mac
| 0 | [
2,
2631,
644,
20472,
2760,
13,
5,
1004,
1385,
6,
800,
3726,
3726,
31,
22,
79,
568,
8247,
396,
10929,
20,
6379,
20,
40,
644,
20472,
6018,
9,
25,
80,
21,
254,
161,
20,
2631,
100,
21,
2760,
25,
174,
7394,
60,
31,
22,
79,
699,
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... |
Identify keyboard
===
I have two keyboards connected to my PC, is there any way to know what keyboard a key was pressed on in any language or framework? | 0 | [
2,
5808,
8896,
800,
3726,
3726,
31,
57,
81,
5362,
2587,
20,
51,
5168,
15,
25,
80,
186,
161,
20,
143,
98,
8896,
21,
1246,
23,
2931,
27,
19,
186,
816,
54,
6596,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
silverlight blogs?
===
With the asp.net MVC framework the blogs of the team members (Rob Conery, Phil Haack etc) really helped me on my way and made me feel comfortable the development was going in the right direction.
Is there something similar for Silverlight? | 0 | [
2,
1172,
3130,
8146,
18,
60,
800,
3726,
3726,
29,
14,
28,
306,
9,
2328,
307,
8990,
6596,
14,
8146,
18,
16,
14,
173,
443,
13,
5,
12417,
1065,
3849,
15,
3595,
1458,
8735,
2722,
6,
510,
1456,
55,
27,
51,
161,
17,
117,
55,
583,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Keep resizing text from pushing the other elements in its container around?
===
I have the following html
<div id="menu">
<ul class="horizMenu">
<li id="active"><a href="#" id="current">About</a></li>
<li><a href="#">Archive</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>
and in the css I have
#menu
{
text-align:center;
margin-bottom:10px;
letter-spacing:7px;
}
#menu a
{
color:red;
}
#menu a:hover
{
color:blue;
font-weight:bold;
}
Everything works pretty well, except that when I mouse over the links, the color changes and it becomes bold, which is what i want, but it also causes all of the other li elements to move slightly and then move back when you mouse-off. Is there an easy way to stop this from happening? | 0 | [
2,
643,
10719,
3335,
1854,
37,
5076,
14,
89,
2065,
19,
82,
12147,
140,
60,
800,
3726,
3726,
31,
57,
14,
249,
13,
15895,
13,
1,
12916,
4924,
3726,
7,
755,
291,
7,
1,
13,
1,
1287,
718,
3726,
7,
6778,
3186,
755,
291,
7,
1,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.