unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Is it possible to simulate spacing between table cells such that vertical and horizontal spacing are different?
===
In CSS, you can specify the spacing between table cells using the border-spacing property of a table.
However, this results in uniform spacing between columns and rows, and I am finding more situations where the designs I am using call for gaps between rows, but not columns, or visa versa.
If I have a solid background, I can simulate spacing using borders the same colour as the background colour.
I could also make a div (for example) the first child of every table cell, and using either padding or margins to get the desired results, but that is a lot of extra markup just to accommodate the style.
Given that that the data I am displaying is tabular data, is there a sensible way to achieve this style using tables? | 0 | [
2,
25,
32,
938,
20,
24969,
29177,
128,
859,
2934,
145,
30,
7035,
17,
10095,
29177,
50,
421,
60,
800,
3726,
3726,
19,
272,
18,
18,
15,
42,
92,
19077,
14,
29177,
128,
859,
2934,
568,
14,
1862,
8,
18,
10055,
68,
1354,
16,
21,
859... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Add a css class with Html.RouteLink
===
Does anyone know how I can add a class to the link rendered using the Html.RouteLink helper method in ASP.Net MVC, it has the htmlAttributes object as the last parameter which I assumed I would be able to use, but since class is obviously a reserved word, I cannot supply this as one of the properties on the object. | 0 | [
2,
3547,
21,
272,
18,
18,
718,
29,
13,
15895,
9,
20179,
6258,
800,
3726,
3726,
630,
1276,
143,
184,
31,
92,
3547,
21,
718,
20,
14,
3508,
10877,
568,
14,
13,
15895,
9,
20179,
6258,
448,
106,
2109,
19,
28,
306,
9,
2328,
307,
899... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 do a many-to-many relationship in LINQ?
===
I have two tables say, t1 and t2 that have t1.t1\_id and t2.t2\_id as primary keys. They are related by table t3 with columns t3.t1_id and t3.t2_id, respectively. Using LINQ I get an EntitySet<t3> on class t1 and t2, but what I want is an EntitySet<t2> on class t1 and EntitySet<t1> on class t2. How do I do this? | 0 | [
2,
184,
107,
31,
107,
21,
151,
8,
262,
8,
14842,
1429,
19,
6294,
1251,
60,
800,
3726,
3726,
31,
57,
81,
7484,
395,
15,
13,
38,
165,
17,
13,
38,
135,
30,
57,
13,
38,
165,
9,
38,
165,
1,
1340,
17,
13,
38,
135,
9,
38,
135,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 to do a reverse update with Subversion?
===
I have a branch in an SVN tree which contains the source to a third party product. I need to update that branch with the latest version. If I check it out and copy the new source over the old source, I can easily add the new files and do a commit. However, I would also like make sure that any files that are the old version but not the new version get deleted.
Is there a way to tell SVN to update a repository from a directory? | 0 | [
2,
25,
80,
21,
161,
20,
107,
21,
7006,
11100,
29,
972,
10898,
60,
800,
3726,
3726,
31,
57,
21,
1686,
19,
40,
13,
18,
16578,
1541,
56,
1588,
14,
1267,
20,
21,
422,
346,
2374,
9,
31,
376,
20,
11100,
30,
1686,
29,
14,
5736,
615... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Anonymous method in Invoke call
===
Having a bit of trouble with the syntax where we want to call a delegate anonymously within a Control.Invoke.
We have tried a number of different approaches, all to no avail.
For example:
myControl.Invoke(delegate() { MyMethod(this, new MyEventArgs(someParameter)); });
where someParameter is local to this method
The above will result in a compiler-error of
"Cannot convert anonymous method to type 'System.Delegate' because it is not a delegate type"
Any help is appreciated!
| 0 | [
2,
10364,
2109,
19,
28371,
645,
800,
3726,
3726,
452,
21,
1142,
16,
2572,
29,
14,
22649,
113,
95,
259,
20,
645,
21,
11300,
10364,
102,
363,
21,
569,
9,
108,
2625,
1048,
9,
95,
57,
794,
21,
234,
16,
421,
7501,
15,
65,
20,
90,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 post a page from asp.net to classic ASP
===
I'd like to post some form variables into a classic ASP page. I don't want to have to alter the classic ASP pages, because of the amount of work that would need to be done, and the amount of pages that consume them.
The classic ASP page expects form variables Username and Userpassword to be submitted to them.
username = Request.Form("UserName")
userpassword = Request.Form("Userpassword")
It then performs various actions and sets up sessions, going into a asp applciation.
I want to submit these variables into the page from ASP.NET, but the login control is nested inside usercontrols and templates, so I can't get the form element's names to be "username" and "UserPassword".
Any ideas?
| 0 | [
2,
184,
20,
678,
21,
2478,
37,
28,
306,
9,
2328,
20,
2732,
28,
306,
800,
3726,
3726,
31,
22,
43,
101,
20,
678,
109,
505,
12157,
77,
21,
2732,
28,
306,
2478,
9,
31,
221,
22,
38,
259,
20,
57,
20,
7835,
14,
2732,
28,
306,
443... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 tools for testing bulk emailing in .net?
===
Scenario is that we send out thousands of emails through SMTP server. Content is created in advance and picked up when sent.
The thing is we want to find where our bottlenecks are in production environment and where work needs to be done. Goal is to be able to send half a million emails in ten minutes*.
Should we create dummy email accounts? I've heard of being able to send to SMTP server that only keeps them locally but does that really test all bottlenecks? Has anyone got some strategic approaches to this?
*this is for an airline who wants to promote a fare deal, by law they are required to email everyone within certain time limit otherwise there are legal implications to deal. In case someone was fearing this was a spam generator. | 0 | [
2,
246,
4672,
26,
4431,
7238,
8517,
68,
19,
13,
9,
2328,
60,
800,
3726,
3726,
12705,
25,
30,
95,
2660,
70,
3805,
16,
8517,
18,
120,
7613,
13726,
8128,
9,
2331,
25,
679,
19,
3612,
17,
2114,
71,
76,
795,
9,
14,
584,
25,
95,
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 to downsize std::vector?
===
Is there a way to resize a std::vector to lower capacity when I no longer need previously reserved space? | 0 | [
2,
184,
20,
125,
10454,
354,
43,
45,
45,
28033,
60,
800,
3726,
3726,
25,
80,
21,
161,
20,
302,
10454,
21,
354,
43,
45,
45,
28033,
20,
987,
2301,
76,
31,
90,
1045,
376,
1343,
9430,
726,
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... |
How would I start learning how to program in Flex?
===
Can anyone give me pointers to good books or web sites that teach how to do Flex programming? | 0 | [
2,
184,
83,
31,
799,
2477,
184,
20,
625,
19,
14409,
60,
800,
3726,
3726,
92,
1276,
590,
55,
454,
445,
20,
254,
964,
54,
2741,
3259,
30,
5348,
184,
20,
107,
14409,
3143,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Java Heresy: Anyone using vi as a Java IDE?
===
I'm addicted to vi, it's now my de facto way of editing text files.
Being that it's mainly a text editor and not an IDE, has anyone got tricks for me to make it easier when developing java apps.
Some questions I have:
- How do I invoke a maven task without leaving vi
- Can I get code completion?
- How's the syntax highlighting?
Anything else other than "Don't do it!!!" that I should know about?
Thank you.
| 0 | [
2,
8247,
235,
4980,
45,
1276,
568,
1790,
28,
21,
8247,
13,
3448,
60,
800,
3726,
3726,
31,
22,
79,
16906,
69,
20,
1790,
15,
32,
22,
18,
130,
51,
121,
14967,
161,
16,
9510,
1854,
6488,
9,
142,
30,
32,
22,
18,
2011,
21,
1854,
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... |
Jython and Java nested class
===
I'm using Jython to write tests for a Java project.
It works well, but I can't figure how to get access to a
java public nested class.
package mypackage;
public class NyClass {
public class MyNestedClass {
...
}
}
Does somebody knows how to do this? | 0 | [
2,
487,
93,
11570,
17,
8247,
5618,
69,
718,
800,
3726,
3726,
31,
22,
79,
568,
487,
93,
11570,
20,
2757,
4894,
26,
21,
8247,
669,
9,
32,
693,
134,
15,
47,
31,
92,
22,
38,
1465,
184,
20,
164,
1381,
20,
21,
8247,
317,
5618,
69,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
VSTO: Why is OfficeRibbon.Context null?
===
I'm developing my first Word 2007 addin, and I've added an OfficeRibbon to my project. In a button-click handler, I'd like a reference to either the current `Word.Document` or `Word.Application`.
I'm trying to get a reference via the `OfficeRibbon.Context` property, which the documentation says should refer to the current `Application` object. However, it is always `null`.
Does anyone know either
a) if there is something I need to do to make `OfficeRibbon.Context` appear correctly populated?
b) if there is some other way I can get a reference to the Word Application or active Word Document?
Notes:
- I'm using VS2008 SP1
- The ribbon looks like it has initialized fine: The ribbon renders correctly in Word; I can step the debugger through both the constructor and the OnLoad members; Button click handlers execute correctly.
- Here's [the online help for this property](http://msdn.microsoft.com/en-us/library/microsoft.office.tools.ribbon.officeribbon.context.aspx?ppud=4);
> **OfficeRibbon.Context Property**
>
> `C#`
> `public Object Context { get; internal set; }`
>
>
> An Object that represents the Inspector window or application instance that is associated with this OfficeRibbon object.
>
> **Remarks**
>
> In Outlook, this property refers to the Inspector window in which this OfficeRibbon is displayed.
>
> In Excel, Word, and PowerPoint, this property returns the application instance in which this OfficeRibbon is displayed.
| 0 | [
2,
4611,
262,
45,
483,
25,
1069,
4598,
5566,
9,
1126,
11969,
16203,
60,
800,
3726,
3726,
31,
22,
79,
3561,
51,
64,
833,
624,
3547,
108,
15,
17,
31,
22,
195,
905,
40,
1069,
4598,
5566,
20,
51,
669,
9,
19,
21,
5167,
8,
150,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best primary key data type for Linq to SQL
===
I am starting new project with SqlServer and Linq to Sql.
What data type would be better for surrogate keys in tables: `identity` or `uniqueidentifier` ?
As I understood, `identity` is automatically generated on insert, while `uniqueidentifier` should be generated in code (GUID).
Are there any significant performance differences?
e.g. `identity` value must be read after insert, so there is extra database trip after insert.
| 0 | [
2,
246,
1256,
1246,
1054,
1001,
26,
6294,
1251,
20,
4444,
255,
800,
3726,
3726,
31,
589,
1422,
78,
669,
29,
4444,
255,
10321,
106,
17,
6294,
1251,
20,
4444,
255,
9,
98,
1054,
1001,
83,
44,
574,
26,
28525,
5534,
19,
7484,
45,
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... |
jboss with less memory
===
I have now 1gb ram at work(i hope that will change soon) and jboss takes almost half of it and that is too much, i turned off logging to file, what more can i do to reduce memory usage ? | 0 | [
2,
487,
10349,
18,
29,
787,
1912,
800,
3726,
3726,
31,
57,
130,
137,
11400,
2843,
35,
170,
5,
49,
1376,
30,
129,
753,
651,
6,
17,
487,
10349,
18,
1384,
557,
519,
16,
32,
17,
30,
25,
266,
212,
15,
31,
412,
168,
13,
13919,
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,
0,
0,
0... |
Place to store user settings in Sharepoint besides profiles
===
Is user profiles an appropriate place to store things like number of items per page in a custom grid user selected? (I you can store it in the view, but it won't be per user this way).
My first though was to store these settings in user profiles, but there are problems with access permissions boiling down to you either have to give every user 'Manager User Profiles' permission in SSP or you [have to run the application pool under a domain user, not NETWORK SERVICE](http://stackoverflow.com/questions/82788/sharepoint-userprofilemanager-without-manage-user-profiles-right). Both scenarios are unrealistic for me, so I'm now looking for another way to store such 'per user' settings.
Thanks! | 0 | [
2,
209,
20,
1718,
4155,
12410,
19,
1891,
3132,
3410,
5296,
18,
800,
3726,
3726,
25,
4155,
5296,
18,
40,
4593,
209,
20,
1718,
564,
101,
234,
16,
3755,
416,
2478,
19,
21,
5816,
7354,
4155,
1704,
60,
13,
5,
49,
42,
92,
1718,
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... |
Outlook Express - sending e-mail from the command line
===
What is the best way to send e-mail using outlook express from the command line? It has to be an automated operation with no user interaction. There will be some .jpg files in attachment.
Thanks. | 0 | [
2,
19837,
2999,
13,
8,
4907,
13,
62,
8,
8079,
37,
14,
1202,
293,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
2660,
13,
62,
8,
8079,
568,
19837,
2999,
37,
14,
1202,
293,
60,
32,
63,
20,
44,
40,
14904,
1453,
29,
90,
4155,
7754,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Subsonic\ORM on Windows CE\Mobile
===
Has anyone managed to get subsonic or a variant working on Windows Mobile? We cant get it to work as it has a dependency on System.Configuration.
Any suggestions on an alternate ORMs that would work on a windows mobile device?
| 0 | [
2,
972,
17766,
1,
248,
79,
27,
1936,
4000,
1,
12571,
800,
3726,
3726,
63,
1276,
1471,
20,
164,
972,
17766,
54,
21,
8320,
638,
27,
1936,
3241,
60,
95,
2973,
164,
32,
20,
170,
28,
32,
63,
21,
26835,
27,
329,
9,
1126,
13549,
857,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 block until an asynchronous job finishes
===
I'm working on a C# library which offloads certain work tasks to the GPU using NVIDIA's CUDA. An example of this is adding two arrays together using extension methods:
float[] a = new float[]{ ... }
float[] b = new float[]{ ... }
float[] c = a.Add(b);
The work in this code is done on the GPU. However, I would like it to be done asynchronously such that only when the result is needed will the code running on the CPU block (if the result is not finished on the GPU yet). To do this I've created an ExecutionResult class which hides the asynchronous execution. In use this looks as follows:
float[] a = new float[]{ ... }
float[] b = new float[]{ ... }
ExecutionResult res = a.Add(b);
float[] c = res; //Implicit converter
At the last line the program blocks if the data is done ready yet. I'm not certain of the best way to implement this blocking behavior inside the ExecutionResult class as I'm not very experienced with synchronizing threads and those sorts of things.
public class ExecutionResult<T>
{
private T[] result;
private long computed = 0;
internal ExecutionResult(T[] a, T[] b, Action<T[], T[], Action<T[]>> f)
{
f(a, b, UpdateData); //Asych call - 'UpdateData' is the callback method
}
internal void UpdateData(T[] data)
{
if (Interlocked.Read(ref computed) == 0)
{
result = data;
Interlocked.Exchange(ref computed, 1);
}
}
public static implicit operator T[](ExecutionResult<T> r)
{
//This is obviously a stupid way to do it
while (Interlocked.Read(ref r.computed) == 0)
{
Thread.Sleep(1);
}
return result;
}
}
The Action passed to the constructor is an asynchronous method which performs the actual work on the GPU. The nested Action is the asynchronous callback method.
My main concern is how to best/most elegantly handle the waiting done in the converter but also if there are more appropriate ways to attack the problem as a whole. Just leave a comment if there is something I need to elaborate or explain further. | 0 | [
2,
184,
20,
1921,
163,
40,
21,
16023,
1291,
1205,
13625,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
272,
5910,
1248,
56,
168,
8294,
18,
1200,
170,
8674,
20,
14,
489,
4201,
568,
13,
20763,
18175,
22,
18,
272,
5729,
9,
40,
823,
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 assertion?Is that necessary?
===
How it is dome in c++ ?example code is appreciated | 0 | [
2,
98,
25,
20878,
60,
403,
30,
2378,
60,
800,
3726,
3726,
184,
32,
25,
6985,
19,
272,
20512,
13,
60,
29041,
1797,
25,
13746,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Nested Java enum definition - does declaring as static make a difference?
===
I have an interface - here's a nicely contrived version as an example:
public interface Particle {
enum Charge {
POSITIVE, NEGATIVE
}
Charge getCharge();
double getMass();
etc...
}
Is there any difference in how implementations of this would behave if I defined the `Charge` enum as static - i.e. does this have any effect:
public interface Particle {
static enum Charge {
POSITIVE, NEGATIVE
}
Charge getCharge();
double getMass();
etc...
} | 0 | [
2,
5618,
69,
8247,
1957,
723,
5465,
13,
8,
630,
15594,
28,
12038,
233,
21,
2841,
60,
800,
3726,
3726,
31,
57,
40,
6573,
13,
8,
235,
22,
18,
21,
24050,
1065,
3367,
4763,
615,
28,
40,
823,
45,
317,
6573,
11534,
13,
1,
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... |
What are the fileds that the user table should contain from the security/authenication perspective?
===
When designing user table what would be the must have fields from the security/user authentication point of view for a Web based Application (.NET and SqlServer 2005)
I came with with the following fields:
userID
username -- preferably email
passwordHash
onceUsePassword -- to indicate that the password should be changed after login
alternativeContactEmail
userStatusID -- FK to a lookup table with statuses like: active, diabled etc
dateCreated
dateUpdated
lastPasswordUpdate
lastLogon
-- and then the rest like :forename, surname etc which are not of the interest in this question
Am I missing something?
Is standard identity (INT) sufficient for userID or should the GUID be used instead (the userID is not going to be exposed anywhere)?
| 0 | [
2,
98,
50,
14,
5263,
18,
30,
14,
4155,
859,
378,
3717,
37,
14,
1221,
118,
1346,
124,
4796,
857,
6531,
60,
800,
3726,
3726,
76,
15026,
4155,
859,
98,
83,
44,
14,
491,
57,
2861,
37,
14,
1221,
118,
16704,
27963,
454,
16,
1418,
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... |
How to pause a UIImageView animation
===
I have an animation that I'm displaying using a UIImageView:
imageView.animationImages = myImages;
imageView.animationDuration = 3;
[imageView startAnimating];
I know I can stop it using stopAnimating, but what I want is to be able to pause it. The reason is that when you call stop, none of your animation images are displayed, whereas I would like the last one that is up at the time when I hit a button to stay up.
I have tried setting the duration to a much larger number, but that causes all the images to disappear as well. There must be a really basic way to do this? | 0 | [
2,
184,
20,
6911,
21,
13,
5661,
22039,
4725,
6236,
800,
3726,
3726,
31,
57,
40,
6236,
30,
31,
22,
79,
17418,
568,
21,
13,
5661,
22039,
4725,
45,
1961,
4725,
9,
3443,
79,
857,
22039,
18,
800,
51,
22039,
18,
73,
1961,
4725,
9,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tab Navigation - Frames or AJAX?
===
I have what I imagine to be a pretty standard web-interface.
There are 4 different ListViews (grid controls) which are accessed by a series of Tabs on the top.
I have implemented this as follows:
![alt text][1]
Tab 1 will load Page 1 containing Grid 1 into Frame 2, Tab 2 will load Page 2 containing Grid 2 into Frame 2 etc.
However this then means that if you click on an item in the Grid, and I load DetailsPage1.aspx into Frame 2, then Frame 1 and the tabs are still visible and active.
I've been advised that I should just have one Frame, and load the Pages in dynamically based on the tab click, using HttpRequest (or WebRequest in asp.net).
Is this the correct approach to take? If you have any resources or tips at hand, it would be appreciated!
Thanks
[1]: http://img402.imageshack.us/img402/1530/pagedu8.jpg | 0 | [
2,
6523,
8368,
13,
8,
12809,
54,
20624,
60,
800,
3726,
3726,
31,
57,
98,
31,
4382,
20,
44,
21,
1772,
1236,
2741,
8,
6280,
6413,
9,
80,
50,
268,
421,
968,
4725,
18,
13,
5,
16375,
8671,
6,
56,
50,
12904,
34,
21,
231,
16,
6523,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 to put on top of the source files in large projects?
===
It is necessary to put copyright information and some other stuff on top of every source file in large enterprise projects. What is your preferred template, what should be included/excluded?
I am more or less thinking of this:
/**
* This file is part of blabla.
* Created:
* Changes:
*
*
*
* $Id$
* Copyright (C) YEARS BlaB Company.
*/ | 4 | [
2,
98,
20,
442,
27,
371,
16,
14,
1267,
6488,
19,
370,
2314,
60,
800,
3726,
3726,
32,
25,
2378,
20,
442,
8398,
676,
17,
109,
89,
3217,
27,
371,
16,
352,
1267,
3893,
19,
370,
6002,
2314,
9,
98,
25,
154,
5981,
22894,
15,
98,
37... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
When's the absolute latest you can call Page.ClientScript.RegisterClientScriptBlock?
===
I need to output some JavaScript in a WebControl based on some processing and some properties that the consumer can set, doing it on the load of the page will be to early.
When is the latest I can call RegisterClientScriptBlock and still have it output on the page? | 0 | [
2,
76,
22,
18,
14,
7070,
5736,
42,
92,
645,
2478,
9,
150,
18513,
38,
8741,
9,
12463,
9959,
150,
18513,
38,
8741,
12048,
60,
800,
3726,
3726,
31,
376,
20,
5196,
109,
8247,
8741,
19,
21,
2741,
12898,
432,
27,
109,
5511,
17,
109,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 inherit from a class in a different header file?
===
I am having dependency troubles. I have two classes: `Graphic` and `Image`. Each one has its own .cpp and .h files. I am declaring them as the following:
`Graphic.h`:
<pre><code>
#include "Image.h"
class Image;
class Graphic {
...
};
</code></pre>
`Image.h`:
<pre><code>
#include "Graphic.h"
class Graphic;
class Image : public Graphic {
...
};</code></pre>
When I try to compile, I get the following error:
<pre>
Image.h:12: error: expected class-name before ‘{’ token
</pre>
If I remove the forward declaration of `Graphic` from `Image.h` I get the following error:
<pre>
Image.h:13: error: invalid use of incomplete type ‘struct Graphic’
Image.h:10: error: forward declaration of ‘struct Graphic’
</pre>
| 0 | [
2,
184,
107,
42,
17569,
37,
21,
718,
19,
21,
421,
157,
106,
3893,
60,
800,
3726,
3726,
31,
589,
452,
26835,
16615,
9,
31,
57,
81,
2684,
45,
13,
1,
12084,
1,
17,
13,
1,
22039,
1,
9,
206,
53,
63,
82,
258,
13,
9,
150,
3421,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
designing model structure for django
===
I'm trying to design a model for a application allowing 2 people to bet with each other (I know, sounds stupid...). What I'm wondering about is how to connect the bet with users. The structure is like this
|-------------| |----------|
| Bet | | User |
| BetUser1 | |----------|
| BetUser2 |
| Winner |
| ... |
|-------------|
So we got 2 people that bet with each other (both are `Users` from django auth system) and then, after one of them wins, there's a winner. Now all those 3 fields are of type `User`, but:
* Should I make BetUser1 and BetUser2 separate fields, or design some many-to-two relationship here? (with many-to-two being a many-to-many and with some external way of ensuring no more then 2 `Users` can be assigned to each bet?
* winner can only be either user 1 or user 2, noone else of course. How should I create this field, yet another `ForeignKey(User)`, or some else?
Just looking for some fresh point of view, as it seems that in such stupid case I'm stuck with the django model system. | 0 | [
2,
15026,
1061,
1411,
26,
3857,
14541,
800,
3726,
3726,
31,
22,
79,
749,
20,
704,
21,
1061,
26,
21,
3010,
2719,
172,
148,
20,
5676,
29,
206,
89,
13,
5,
49,
143,
15,
2795,
3553,
9,
9,
9,
6,
9,
98,
31,
22,
79,
5712,
88,
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... |
basic php problem unexpected $end
===
I am new to PHP and trying to get the following code to work:
<?php
include 'config.php';
include 'opendb.php';
$query = "SELECT name, subject, message FROM contact";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "Name :{$row['name']} <br>" .
"Subject : {$row['subject']} <br>" .
"Message : {$row['message']} <br><br>";
"ARTICLE_NO :{$row['ARTICLE_NO']} <br>" .
"ARTICLE_NAME :{$row['ARTICLE_NAME']} <br>" .
"SUBTITLE :{$row['SUBTITLE']} <br>" .
"CURRENT_BID :{$row['CURRENT_BID']} <br>" .
"START_PRICE :{$row['START_PRICE']} <br>" .
"BID_COUNT :{$row['BID_COUNT']} <br>" .
"QUANT_TOTAL :{$row['QUANT_TOTAL']} <br>" .
"QUANT_SOLD :{$row['QUANT_SOLD']} <br>" .
"STARTS :{$row['STARTS']} <br>" .
"ENDS :{$row['ENDS']} <br>" .
"ORIGIN_END :{$row['ORIGIN_END']} <br>" .
"SELLER_ID :{$row['SELLER_ID']} <br>" .
"BEST_BIDDER_ID :{$row['BEST_BIDDER_ID']} <br>" .
"FINISHED :{$row['FINISHED']} <br>" .
"WATCH :{$row['WATCH']} <br>" .
"BUYITNOW_PRICE :{$row['BUYITNOW_PRICE']} <br>" .
"PIC_URL :{$row['PIC_URL']} <br>" .
"PRIVATE_AUCTION :{$row['PRIVATE_AUCTION']} <br>" .
"AUCTION_TYPE :{$row['AUCTION_TYPE']} <br>" .
"INSERT_DATE :{$row['INSERT_DATE']} <br>" .
"UPDATE_DATE :{$row['UPDATE_DATE']} <br>" .
"CAT_1_ID :{$row['CAT_1_ID']} <br>" .
"CAT_2_ID :{$row['CAT_2_ID']} <br>" .
"ARTICLE_DESC :{$row['ARTICLE_DESC']} <br>" .
"DESC_TEXTONLY :{$row['DESC_TEXTONLY']} <br>" .
"COUNTRYCODE :{$row['COUNTRYCODE']} <br>" .
"LOCATION :{$row['LOCATION']} <br>" .
"CONDITIONS :{$row['CONDITIONS']} <br>" .
"REVISED :{$row['REVISED']} <br>" .
"PAYPAL_ACCEPT :{$row['PAYPAL_ACCEPT']} <br>" .
"PRE_TERMINATED :{$row['PRE_TERMINATED']} <br>" .
"SHIPPING_TO :{$row['SHIPPING_TO']} <br>" .
"FEE_INSERTION :{$row['FEE_INSERTION']} <br>" .
"FEE_FINAL :{$row['FEE_FINAL']} <br>" .
"FEE_LISTING :{$row['FEE_LISTING']} <br>" .
"PIC_XXL :{$row['PIC_XXL']} <br>" .
"PIC_DIASHOW :{$row['PIC_DIASHOW']} <br>" .
"PIC_COUNT :{$row['PIC_COUNT']} <br>" .
"ITEM_SITE_ID :{$row['ITEM_SITE_ID']};
}
include 'closedb.php';
?>
However I get this error:
Parse error: syntax error, unexpected $end in C:\Programme\EasyPHP 2.0b1\www\test.php on line 56
I would also like to know if there is perhaps an easier way to obtain mysql records instead of typing by hand? | 0 | [
2,
2125,
13,
26120,
1448,
9380,
5579,
2451,
800,
3726,
3726,
31,
589,
78,
20,
13,
26120,
17,
749,
20,
164,
14,
249,
1797,
20,
170,
45,
13,
1,
60,
26120,
468,
13,
22,
14093,
2816,
9,
26120,
22,
73,
468,
13,
22,
10157,
9007,
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... |
Cookies on IE6 Standalone on Windows server 2003?
===
I cant seem to get IE6 and IE7 running alongside each other on my Windows Server 2003 VPC.
I have tried both: http://browsers.evolt.org/?ie/32bit/standalone
and: http://tredosoft.com/Multiple_IE , and yes, I tried putting the Wininet.dll in my standalone path.
The browser works, but cookies does not! Any help would be greatly appreciated. Also, I am aware of the VPC Microsoft has supplied, but i am trying to avoid that solution as well. | 0 | [
2,
19396,
27,
13,
660,
379,
26986,
27,
1936,
8128,
973,
60,
800,
3726,
3726,
31,
2973,
2260,
20,
164,
13,
660,
379,
17,
13,
660,
465,
946,
2387,
206,
89,
27,
51,
1936,
8128,
973,
566,
5779,
9,
31,
57,
794,
156,
45,
7775,
6903,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why won't this XHTML form validate?
===
Any ideas why this won't validate here:
[http://validator.w3.org/#validate_by_input][1]
It seems the form input tags are wrong but reading through the XHTML spec they should validate fine. Any ideas?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>
<div class="Header">
<table class="HeaderTable">
<tr>
<td>
<div class="Heading">Test <span class="Standard">Test</span>
</div>
</td>
<td>
<div class="Controls">
<form id="ControlForm" method="get" action="Edit.php">
<input type="submit" name="action" id="Edit" value="Edit" />
<input type="submit" name="action" id="New" value="New" />
</form>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
[1]: http://validator.w3.org/#validate_by_input | 0 | [
2,
483,
230,
22,
38,
48,
993,
15895,
505,
7394,
1373,
60,
800,
3726,
3726,
186,
3478,
483,
48,
230,
22,
38,
7394,
1373,
235,
45,
636,
21127,
6903,
18506,
43,
3457,
9,
499,
240,
9,
5583,
118,
5910,
18506,
8209,
1,
779,
1,
108,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Exceptions or error codes
===
Yesterday I was having a heated debate with a coworker on what would be the preferred error reporting method. Mainly we were discussing the usage of exceptions or error codes for reporting errors between application layers or modules.
**What rules do you use to decide if you use exceptions or error codes for error reporting?** | 0 | [
2,
13392,
54,
7019,
11358,
800,
3726,
3726,
7124,
31,
23,
452,
21,
10264,
4503,
29,
21,
326,
22560,
27,
98,
83,
44,
14,
5981,
7019,
6670,
2109,
9,
2011,
95,
46,
10988,
14,
7514,
16,
13392,
54,
7019,
11358,
26,
6670,
11908,
128,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I get SQL Server column definition with parentheses and everything?
===
I need a smart way to get the data types out of INFORMATION_SCHEMA.COLUMNS in a way that could be used in a CREATE TABLE statement. The problem is the 'extra' fields that need to be understood, such as NUMERIC`_`PRECISION and NUMERIC`_`SCALE.
Obviously, I can ignore the columns for INTEGER (precision of 10 and scale of 0), but there are other types I would be interested in, such as NUMERIC. So without writing lots of code to parse the table, any ideas on how to get a sort of field shorthand out of the column definition?
I would like to be able to get something like :
int,
datetime,
money,
numeric**(10,2)** | 0 | [
2,
184,
92,
31,
164,
4444,
255,
8128,
4698,
5465,
29,
28273,
17,
796,
60,
800,
3726,
3726,
31,
376,
21,
3978,
161,
20,
164,
14,
1054,
2551,
70,
16,
676,
1,
7526,
540,
9,
716,
4404,
2172,
19,
21,
161,
30,
110,
44,
147,
19,
21... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
XSRF in a RESTful Application
===
I am a ASP.NET Developer trying to learn Rails and RESTful approach. To understand, I am planning to write a Email client, which would make RESTful GET call to the server to fetch the emails and POST to send an email.
What are the best practices (both generic and/or specific to Rails) to be followed so that, the above application is not exposing any XSRF vulnerabilities. | 0 | [
2,
993,
18,
8291,
19,
21,
760,
1566,
3010,
800,
3726,
3726,
31,
589,
21,
28,
306,
9,
2328,
10058,
749,
20,
2484,
2240,
18,
17,
760,
1566,
2141,
9,
20,
1369,
15,
31,
589,
2334,
20,
2757,
21,
8517,
6819,
15,
56,
83,
233,
760,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Brace highlighting in Visual Studio for Javascript?
===
Is there a way to get Visual Studio 2008 to do matching brace highlighting for Javascript?
If there is no way to do it in Studio, can it be done using ReSharper?
Thanks!!
| 0 | [
2,
15646,
23102,
19,
3458,
1120,
26,
8247,
8741,
60,
800,
3726,
3726,
25,
80,
21,
161,
20,
164,
3458,
1120,
570,
20,
107,
10120,
15646,
23102,
26,
8247,
8741,
60,
100,
80,
25,
90,
161,
20,
107,
32,
19,
1120,
15,
92,
32,
44,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Java - change focus on key press
===
I am writing a Java Application for Data Entry using Eclipse and SWT. Naturally it has a great many Text objects.
What I would like to happen is that when user enters something into one field focus automatically changes to the next field.
Thanks in advance
| 0 | [
2,
8247,
13,
8,
753,
1776,
27,
1246,
901,
800,
3726,
3726,
31,
589,
1174,
21,
8247,
3010,
26,
1054,
2792,
568,
11652,
17,
8783,
38,
9,
8000,
32,
63,
21,
374,
151,
1854,
3916,
9,
98,
31,
83,
101,
20,
2384,
25,
30,
76,
4155,
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,
0... |
Eclipse Problems View not showing Errors anymore
===
For some reason Eclipse is no longer showing me Java compilation Errors in the Problems View.
It is still showing Warnings.
This has suddenly happened and I cannot think of anything that I have changed which would affect this.
I am using the "Maven Integration for Eclipse" plugin but I have been for some time - not sure if this could have affected it or not.
Any ideas? | 0 | [
2,
11652,
1716,
1418,
52,
3187,
11908,
3375,
800,
3726,
3726,
26,
109,
1215,
11652,
25,
90,
1045,
3187,
55,
8247,
4868,
11908,
19,
14,
1716,
1418,
9,
32,
25,
174,
3187,
3590,
18,
9,
48,
63,
1605,
1190,
17,
31,
1967,
277,
16,
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... |
webservice.htc, moz-behaviors and Firefox 3.
===
Whilst trying to get our app working in Firefox (I'm a big proponent of X-Browser support but our lead dev is resisting me saying IE is good enough). So I'm doing a little side project to see how much work it is to convert.
I've hit a problem straight away.
The main.aspx page binds to a webservice using the IE only method of adding behaviour through a htc file, which is auto-generated by VS I beleive.
<div id="webservice"></div> <!-- we use this div to load the webservice stuff -->
Firefox doesn't support this but there is an xml bindings file which can be used to enable htc support (see here: http://dean.edwards.name/moz-behaviors/overview/). The examples work in FF3 but when I use my webservice.htc as I normally would e.g.:
//Main.aspx
/*SNIP*/
<style type="text/css" media="all">
#webservice
{
behavior:url(webservice.htc);
-moz-binding:url(bindings.xml#webservice.htc);
}
</style>
</head>
<body>
<div id="webservice"></div> <!-- we use this div to load the webservice stuff -->
/*SNIP*/
//Main.js
webservice.useService(url + asmpath + "/WebServiceWrapper.asmx?WSDL","WebServiceWrapper");
I get webservice is not defined (works fine in IE), I obviously tried
var webservice = document.getElementById("webservice")
and
$("#webservice").useService(url + asmpath + "/WebServiceWrapper.asmx?WSDL","WebServiceWrapper");
as well which just gives me "useService is not defined" in Firebug. Which leads me to beleive that the binding is not working. However I can see that webservice.htc is being loaded by Firefox in the Firebug console window.
Anyone got any experience of this?
Am I going to have to rewrite how the webservice is called?
Cheers,
Rob
| 0 | [
2,
2741,
11449,
9,
9020,
150,
15,
13,
18057,
8,
863,
20358,
248,
18,
17,
535,
18219,
203,
9,
800,
3726,
3726,
4575,
749,
20,
164,
318,
4865,
638,
19,
535,
18219,
13,
5,
49,
22,
79,
21,
580,
15508,
16,
993,
8,
25699,
4104,
555,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Redmine or Tracd to use for project management?
===
Can anyone suggest which of the Redmine or Tracd would be a better option for project management? Currently I am planning to deploy it on a one project setup but plan to use it across multiple projects in the fututre. Which of the two is easier to deploy? I use windows. Any other software which is web based and comes with its own web server?
Thanks... | 4 | [
2,
402,
7640,
54,
7957,
6324,
20,
275,
26,
669,
1097,
60,
800,
3726,
3726,
92,
1276,
5601,
56,
16,
14,
402,
7640,
54,
7957,
6324,
83,
44,
21,
574,
4255,
26,
669,
1097,
60,
871,
31,
589,
2334,
20,
17617,
32,
27,
21,
53,
669,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Python bindings are there for CVS?
===
I once did a cursory search and found no good CVS bindings for Python. I wanted to be able to write helper scripts to do some fine-grained manipulation of the repository and projects in it. I had to resort to using popen and checking the stdout and stderr and then parsing those. It was messy and error-prone.
Are there any good quality modules for CVS integration for Python? Which module do you prefer and why?
While I am at it, is there a good Subversion integration module for Python? My understanding is that Subversion has a great API for such things.
Thanks! | 0 | [
2,
98,
20059,
8728,
18,
50,
80,
26,
13,
12732,
18,
60,
800,
3726,
3726,
31,
382,
144,
21,
29588,
93,
2122,
17,
216,
90,
254,
13,
12732,
18,
8728,
18,
26,
20059,
9,
31,
417,
20,
44,
777,
20,
2757,
448,
106,
17505,
20,
107,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
not a valid mysql resource
===
I am trying the following code:(I dont knowhow to make it colored)
<?php
$link = mysql_connect('localhost', 'root', 'geheim');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
$query = "SELECT * FROM Auctions";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
foreach($row as $field=>$value)
{
echo "$field: {$value} <br />";
}
}
mysql_close($link);
?>
And get this error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Programme\EasyPHP 2.0b1\www\test.php on line 14
What am I missing? | 0 | [
2,
52,
21,
7394,
51,
18,
22402,
6577,
800,
3726,
3726,
31,
589,
749,
14,
249,
1797,
45,
5,
49,
1049,
143,
1544,
20,
233,
32,
10133,
6,
13,
1,
60,
26120,
5579,
6258,
800,
51,
18,
22402,
1,
25996,
5,
22,
15580,
11694,
22,
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 I insert text at beginning of a multi-line selection in VI/VIM?
===
In vim, how would I go about inserting characters at the beginning of each line in a selection? For instance, let's say I want to comment out a block of code by appending '//' at the beginning of each line (assuming my language's comment system doesn't allow block commenting like /* */). How would I do this? | 0 | [
2,
184,
107,
31,
14692,
1854,
35,
997,
16,
21,
1889,
8,
1143,
3155,
19,
1790,
118,
1755,
79,
60,
800,
3726,
3726,
19,
1790,
79,
15,
184,
83,
31,
162,
88,
14692,
68,
1766,
35,
14,
997,
16,
206,
293,
19,
21,
3155,
60,
26,
4851... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Debugging using RealView Debug(RVDebug)
===
I dont know if this is a very specific question, but still posting in hope that there might be few who have this prior experience/background and can point something to me in my problem.
I am havign a C code for ARM926 target. I am trying to debug it using Arm Xtended Debugger(AXD). The main( ) of this code, takes say 14 command line arguments which are mentioned in the code warrior project settings at proper place and behaviour of the code is as expected.
But when i try to use the same AXF(Arm eXecutable Format file) file and try to do source level debugging using the RVDEBUG by changing the settings of the Codewarrior project, and start debugging using the RVDEBUG(after connecting to the target) argc value is 1, and the behaviour of the code is unexpected.
When i select RVDEBUG in code warrior settings i give the same options as i used during AXD debug session.
My question is :
1.) I am using the same AXD for both the debugging sessions(AXD and RVDEBUG), why behaving the way it is.
2.) Is there any other setting change needed in codewarrior project setting to get it working using the RVDEBUG debugger.
3.) Is there any other setting that i need to give in RVDEBUG debugger IDE to get it working using the RVDEBUG debugger. How do i solve this.
P.S. I need to use RVDEBUG because it gives me a clean way of source level debugging, and profiling, better in some sense than
AXD.
-AD
| 0 | [
2,
121,
16254,
2762,
568,
683,
4725,
121,
16254,
5,
10359,
546,
16254,
6,
800,
3726,
3726,
31,
1049,
143,
100,
48,
25,
21,
253,
1903,
1301,
15,
47,
174,
15669,
19,
1376,
30,
80,
530,
44,
310,
72,
57,
48,
1313,
1496,
118,
1958,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AJAX to WCF not working
===
I'm trying to get [this sample][1] for AJAX to WCF working, with the following code. When viewed in FF, nothing is displayed, and when viewed in IE, 'undefined' is displayed. I'm using IIS 7, btw.
function getTime() {
TimeService.TimeService.GetTimeFormatted("dd-mm-yyyy [hh:mm:ss]", onMethodCompleted, onMethodFailed);
}
function onMethodCompleted(results) {
$get("currentTimeLabel").innerText = getTime();
}
...
<asp:ScriptManager runat="server" ID="scriptManager">
<Services>
<asp:ServiceReference Path="~/TimeService.svc" />
</Services>
</asp:ScriptManager>
<div>
<input type="button" value="Get time" onclick="getTime()" />
<hr />
<asp:Label runat="server" ID="currentTimeLabel" />
</div>
[1]: http://dotnetslackers.com/articles/ajax/JSON-EnabledWCFServicesInASPNET35.aspx | 0 | [
2,
20624,
20,
11801,
410,
52,
638,
800,
3726,
3726,
31,
22,
79,
749,
20,
164,
636,
1565,
5717,
500,
2558,
165,
500,
26,
20624,
20,
11801,
410,
638,
15,
29,
14,
249,
1797,
9,
76,
6084,
19,
13,
2460,
15,
626,
25,
6115,
15,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are good uses for class helpers?
===
Delphi (and probably a lot of other languages) has class helpers. These provide a way to add extra methods to an existing class. Without making a subclass.
So, what are good uses for class helpers? | 0 | [
2,
98,
50,
254,
2027,
26,
718,
448,
445,
60,
800,
3726,
3726,
23030,
13,
5,
290,
910,
21,
865,
16,
89,
2556,
6,
63,
718,
448,
445,
9,
158,
1181,
21,
161,
20,
3547,
2230,
3195,
20,
40,
3149,
718,
9,
366,
544,
21,
972,
1898,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to prevent a user from seeing previous users info by hitting the "Back" button
===
I am developing a java web app using servlet, in order to prevent user from hitting the back button to see previous users' info, I have the following code :
protected void processRequest(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException
{
HttpSession session=request.getSession(true);
response.setContentType("text/html");
response.setHeader("Cache-Control","no-cache,no-store");
response.setDateHeader("Expires",0);
response.setHeader("Pragma","no-cache");
......
// if (!User_Logged_In)
session.invalidate();
}
Besides I also have the following code in the file : web/WEB-INF/web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
......
<filter>
<filter-name>ResponseHeaderFilter</filter-name>
<filter-class>ResponseHeaderFilter</filter-class>
<init-param>
<param-name>Cache-Control</param-name>
<param-value>private,no-cache,no-store</param-value>
</init-param>
<init-param>
<param-name>Pragma</param-name>
<param-value>no-cache</param-value>
</init-param>
<init-param>
<param-name>Expires</param-name>
<param-value>0</param-value>
</init-param>
</filter>
</web-app>
And the ResponseHeaderFilter.java look like this :
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
public class ResponseHeaderFilter implements Filter
{
FilterConfig fc;
public void doFilter(ServletRequest req,ServletResponse res,FilterChain chain) throws IOException,ServletException
{
HttpServletResponse response=(HttpServletResponse)res;
for (Enumeration e=fc.getInitParameterNames();e.hasMoreElements();) // Set the provided HTTP response parameters
{
String headerName=(String)e.nextElement();
response.addHeader(headerName,fc.getInitParameter(headerName));
}
chain.doFilter(req,response); // Pass the request/response on
}
public void init(FilterConfig filterConfig)
{
this.fc=filterConfig;
}
public void destroy()
{
this.fc=null;
}
}
So far it's still not working correctly, the back button will bring up a warning window saying the data has expired, it asks if the user wants to repost it, if you choose yes, it will still display the previous pages info, what am I doing wrong ? What's the fix ?
Frank | 0 | [
2,
184,
20,
2501,
21,
4155,
37,
2078,
1158,
3878,
15404,
34,
6687,
14,
13,
7,
1958,
7,
5167,
800,
3726,
3726,
31,
589,
3561,
21,
8247,
2741,
4865,
568,
13,
10321,
1336,
15,
19,
389,
20,
2501,
4155,
37,
6687,
14,
97,
5167,
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... |
Fieldsets and legends
===
Alright, I know how the fieldset/legend works out in html. Say you have a form with some fields:
<form>
<fieldset>
<legend>legend</fieldset>
<input name="input1" />
</fieldset>
</form>
What should I use the legend for? It's being displayed as a **title**, but isn't a legend semantically an explanation of the contents? In my view, preferably you'd do something like this:
<form>
<fieldset>
<legend>* = required</fieldset>
<label for="input1">input 1 *</label><input name="input1" />
</fieldset>
</form>
But that doesn't really work out with how fieldsets are rendered. Is this just a ambigious naming in html, or is it my misunderstanding of the english word 'legend'? | 0 | [
2,
2861,
6095,
17,
10089,
800,
3726,
3726,
11885,
15,
31,
143,
184,
14,
575,
3554,
118,
6727,
2451,
693,
70,
19,
13,
15895,
9,
395,
42,
57,
21,
505,
29,
109,
2861,
45,
13,
1,
4190,
1,
13,
1,
1109,
3554,
1,
13,
1,
6727,
2451,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
(JSP ArrayList ) Not getting the proper size of the ArrayList
===
I have problem in getting the number of elements in the array that i have highlighted as bold in the jsp page( i.e, <%=alt.size()%> ) if i execute this i m gettin the value as 1(but it should rather print 3) because i think i m adding that method to the array in the generator class thats y it is taking an only 1. can u please help me how do i get the right output for this..
This is my jsp page
<%
ArrayList<Alert> a = AlertGenerator.getAlert();
pageContext.setAttribute("alt", a);
%>
<c:forEach var="alert" items="${alt}" varStatus="status" >
<p>You have <%=alt.size()%> Active Alert(s)</p>
<ul>
<li><a href="#" class="linkthree">${alert.alert1}</a></li>
<li><a href="#" class="linkthree">${alert.alert2}</a></li>
<li><a href="#" class="linkthree">${alert.alert3}</a></li>
</ul>
</c:forEach>
This is my arraygenerator class
package com.cg.mock;
import java.util.ArrayList;
public class AlertGenerator {
public static ArrayList<Alert> getAlert() {
ArrayList<Alert> alt = new ArrayList<Alert>();
alt.add(new Alert("alert1","alert2","alert3"));
return alt;
}
}
This is my bean class
package com.cg.mock;
public class Alert {
String alert1;
String alert2;
String alert3;
public Alert(String alert1, String alert2,String alert3) {
super();
this.alert1 = alert1;
this.alert2 = alert2;
this.alert3 = alert3;
}
public String getAlert1() {
return alert1;
}
public void setAlert1(String alert1) {
this.alert1 = alert1;
}
public String getAlert2() {
return alert2;
}
public void setAlert2(String alert2) {
this.alert2 = alert2;
}
public String getAlert3() {
return alert3;
}
public void setAlert3(String alert3) {
this.alert3 = alert3;
}
}
| 0 | [
2,
13,
5,
728,
3401,
7718,
5739,
13,
6,
52,
1017,
14,
4119,
1072,
16,
14,
7718,
5739,
800,
3726,
3726,
31,
57,
1448,
19,
1017,
14,
234,
16,
2065,
19,
14,
7718,
30,
31,
57,
12528,
28,
5657,
19,
14,
487,
3401,
2478,
5,
31,
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... |
Does TCL have some concept of function pointers?
===
Working with TCL and I'd like to implement something like the [Strategy Pattern][1]. I want to pass in the "strategy" for printing output in a TCL function, so I can easily switch between printing to the screen and printing to a log file. What's the best way to do this in TCL?
[1]: http://en.wikipedia.org/wiki/Strategy_pattern | 0 | [
2,
630,
13,
38,
5316,
57,
109,
2420,
16,
1990,
454,
445,
60,
800,
3726,
3726,
638,
29,
13,
38,
5316,
17,
31,
22,
43,
101,
20,
8713,
301,
101,
14,
636,
17962,
2687,
3732,
500,
2558,
165,
500,
9,
31,
259,
20,
1477,
19,
14,
13,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it appropriate to use "Wingdings" fonts in a Windows Forms or WPF app?
===
I have a WPF control, that has a list of "Investors", and in the right column of the list, a "Delete" button.
I could either waste some time making an image of an "x" in photoshop. Or, I could just use Wingdings font and set the content to "Õ" (which makes a cool looking delete button).
Is this appropriate? My thinking is... while not every font family is on every computer, I'm pretty sure that it's safe to say that if you're running my WPF Windows Forms program, then you have Wingdings.
What do you think? Please try to give statistics (not just feelings) on the matter. Should I worry about font size? etc. | 0 | [
2,
25,
32,
4593,
20,
275,
13,
7,
3546,
3258,
18,
7,
9978,
18,
19,
21,
1936,
1997,
54,
619,
7721,
4865,
60,
800,
3726,
3726,
31,
57,
21,
619,
7721,
569,
15,
30,
63,
21,
968,
16,
13,
7,
22401,
248,
18,
7,
15,
17,
19,
14,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Saving a modified image to the original file using GDI+
===
I was loading a Bitmap Image from a File. When I tried to save the Image to another file I got the following error "A generic error occurred in GDI+". I believe this is because the file is locked by the image object.
Ok so tried calling the Image.Clone function. This still locks the file.
hmm. Next I try loading a Bitmap Image from a FileStream and load the image into memory so GDI+ doesn't lock the file. This works great except I need to generate thumbnails using Image.GetThumbnailImage method it throws an out of memory exception. Apparently I need to keep the stream open to stop this exception but if I keep the stream open then the file remains locked.
So no good with that method. In the end I created a copy of the file. So now I have 2 versions of the file. 1 I can lock and manipulate in my c# program. This other original file remains unlocked to which I can save modifications to. This has the bonus of allowing me to revert changes even after saving them because I'm manipulating the copy of the file which cant change.
Surely there is a better way of achieving this without having to have 2 versions of the image file. Any ideas? | 0 | [
2,
7599,
21,
5372,
1961,
20,
14,
501,
3893,
568,
489,
1115,
2430,
800,
3726,
3726,
31,
23,
12797,
21,
1142,
15022,
1961,
37,
21,
3893,
9,
76,
31,
794,
20,
2079,
14,
1961,
20,
226,
3893,
31,
330,
14,
249,
7019,
13,
7,
58,
12733... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Directory.GetFiles keeping the last access time
===
It appears that Directory.GetFiles() in C# modifies the Last access date of a file.
I've googled for hours and can't seem to find a work around for this issue. Is there anyway to keep all the MAC (Modified, Accessed, Created) attributes of a file?
I'm using Directory.GetDirectories(), Directory.GetFiles(), and FileInfo.
Also, the fi.LastAccessTime is giving strange results -- the date is correct, however, the time is off by 2 minutes, or a few hours.
Below is the method I'm using. If you require more information, please let me know.
Thanks!
public void PopulateTreeView(string directoryValue, ref TreeNode parentNode)
{
string[] directoryArray = Directory.GetDirectories(directoryValue);
string[] fileArray = Directory.GetFiles(directoryValue, "*.*", SearchOption.AllDirectories);
try
{
#region Directories
if (directoryArray.Length != 0)
{
foreach (string directory in directoryArray)
{
DirectoryInfo di = new DirectoryInfo(directory);
TreeNode dirNode = parentNode.Nodes.Add(di.Name);
FileNode fn = new FileNode();
fn.bIsDir = true;
fn.dir = di;
dirNode.Tag = fn;
PopulateTreeView(directory, ref dirNode);
Application.DoEvents();
}
}
#endregion
#region Files
if (fileArray.Length != 0)
{
foreach (string file in fileArray)
{
FileInfo fi = new FileInfo(file);
TreeNode fileNode = parentNode.Nodes.Add(fi.Name);
FileNode fn = new FileNode();
fn.bIsDir = false;
fn.file = fi;
fileNode.Tag = fn;
fileNode.ImageIndex = 1;
Console.WriteLine(fi.Name + " - " + fi.LastAccessTime);
}
}
#endregion
}
catch (UnauthorizedAccessException)
{
parentNode.Nodes.Add("Access denied");
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
Application.DoEvents();
}
} | 0 | [
2,
16755,
9,
3060,
16877,
18,
2882,
14,
236,
1381,
85,
800,
3726,
3726,
32,
1780,
30,
16755,
9,
3060,
16877,
18,
5,
6,
19,
272,
5910,
7226,
12970,
14,
236,
1381,
1231,
16,
21,
3893,
9,
31,
22,
195,
8144,
43,
26,
974,
17,
92,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do yo comment an MS-access Query?
===
What is syntax for adding comments in an access query? | 0 | [
2,
184,
107,
3727,
6484,
40,
4235,
8,
20604,
25597,
60,
800,
3726,
3726,
98,
25,
22649,
26,
4721,
7534,
19,
40,
1381,
25597,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What is the practical use of "dynamic" variable in C# 4.0?
===
What is their use if when you call the method, it might not exist?
Does that mean that you would be able to dynamically create a method on a dynamic object?
What are the practical use of this? | 0 | [
2,
98,
25,
14,
5713,
275,
16,
13,
7,
20985,
7,
7612,
19,
272,
5910,
268,
9,
387,
60,
800,
3726,
3726,
98,
25,
66,
275,
100,
76,
42,
645,
14,
2109,
15,
32,
530,
52,
3182,
60,
630,
30,
884,
30,
42,
83,
44,
777,
20,
7782,
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's the best where to get the directory from which an assembly is executing
===
For my apps, I store some configuration file in xml along with the assembly(exe), and something other temporary files for proccessing purpose.
I found some quirk with `".\\"` and `Application.StartupPath`.
I've been using
String configPath = ".\\config.xml";
It works fine until I called `OpenFIleDialog` to open some files in other folders, the statement above failed. Apparently ".\\" is referring to "CurrentDirectory", which changes every time when we browse to another folder.
At some point, I was using
String configPath = Path.Combine(Application.StartupPath + "config.xml");
At some point, when I need to execute this assembly from another folder by using `Process.Start()`, things start to fall apart. Apparently the working directory is not set properly, and `Application.StartupPath` is actually referring to working directory instead of the directory of which the assembly is executing, as I've assumed. So I have to resort to using ProcessInfo to setup the working directory to the assembly's directory. I also had problem with this when I was writing VSTO.
So, my question is, what's the best, simplest and most assured way to get the current directory that the assembly is executing, without those quirks(or misunderstanding) that I've just mentioned?
| 0 | [
2,
98,
22,
18,
14,
246,
113,
20,
164,
14,
16755,
37,
56,
40,
1475,
25,
25836,
800,
3726,
3726,
26,
51,
4865,
18,
15,
31,
1718,
109,
8091,
3893,
19,
23504,
303,
29,
14,
1475,
5,
1706,
62,
6,
15,
17,
301,
89,
4700,
6488,
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... |
How do I display a tooltip for a CMFCRibbonButton in the status bar?
===
I have a `CMFCRibbonStatusBar` in my mainframe to which I add a `CMFCRibbonButtonsGroup` which again has a `CMFCRibbonButton`. This button has the same ID as a menu entry.
Creating the button is done as follows:
CMFCRibbonButtonsGroup* pBGroup = new CMFCRibbonButtonsGroup();
CMFCToolBarImages images;
images.SetImageSize(CSize(32, 16)); // Non-square bitmaps
if(images.Load(IDB_STATUSBAR_IMAGES))
{
pBGroup->SetImages(&images, NULL, NULL);
}
m_pStatusButton = new CMFCRibbonButton(ID_STATUS_SHOWSTATUS,
_T(""),
IMAGEINDEX_DEFAULTSTATUS);
pBGroup->AddButton(m_pStatusButton);
m_wndStatusBar.AddExtendedElement(pBGroup, _T(""));
I want to use this button as a status indicator.
I want to display a tool tip in the following two cases:
- when the status changes and
- when the user moves the mouse over the button.
I have no idea how to start in the first place. I have looked at the `ToolTipDemo` and `DlgToolTips` sample projects but couldn't figure out how to do it since all they do is display tooltips for the toolbar items or dialog buttons (`CWnd`-derived instead of `CMFCRibbonButton`).
If you are familiar with the `ToolTipDemo` sample project: Since there seem to be several ways of doing things, I would prefer the tooltip to look like the "Extended Visual Manager-based" tool tip as [shown in this screenshot][1].
Thanks!
[1]: http://img394.imageshack.us/my.php?image=tooltiptm7.png | 0 | [
2,
184,
107,
31,
3042,
21,
5607,
10169,
26,
21,
2390,
7061,
17980,
5566,
811,
444,
19,
14,
1782,
748,
60,
800,
3726,
3726,
31,
57,
21,
13,
1,
9095,
7061,
17980,
5566,
10631,
267,
1850,
1,
19,
51,
407,
8361,
20,
56,
31,
3547,
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... |
why dont any body upgrade C compiler with the advanced features?
===
struct elem
{
int i;
char k;
};
elem user; // compile error!
struct elem user; // this is correct
In the above piece of code we are getting error for the first declaration.But this glitch is removed in C++ classes.there in C++ we dont need to use the keyword class again and again.
<p>So why dont any body update the corresponding library function or the function in Compiler of the struct in C with this feature.So that we can use structure without the keyword as in classes in C++ ?
<p>Why dont the C compiler developer remove some of the glitches of C like the above ones and update with some advanced features without damaging the original concept of C?
<p>Why it is the same old compiler not updated from 1970's ?
<p>look at visual studio etc.. it is frequently updated with new releases and for every new release we have to learn some new function usages(even though it is a problem we can cope up with it) .Like that we will also get updated with the new compiler if there is any.
<p>dont take it as a silly question.why it is not possible? we can develop it without any incompatibility issues (without affecting the code that was developed on the present / old compiler)
| 0 | [
2,
483,
1049,
186,
358,
9483,
272,
21486,
29,
14,
2255,
967,
60,
800,
3726,
3726,
13,
10346,
931,
1503,
13,
1,
19,
38,
31,
73,
4892,
680,
73,
13,
1,
73,
931,
1503,
4155,
73,
12894,
26561,
7019,
187,
13,
10346,
931,
1503,
4155,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Hidden FreeTextBox bug on Firefox
===
I have a problem with the [FreeTextBox][1] rich Text Editor in my ASP.NET site. The problem occurs when I access the site with firefox, and I have a freetextbox instance in a hidden div. The hidden div might also be an AJAX Tab Panel. The actual problem is that when the page loads it throws an uncaught exception (firebug shows the StoreHtml() function) and halts the postback!!
Is anywhere of the problem and a solution for it??
Thanks
[1]: http://freetextbox.com/ | 0 | [
2,
3689,
551,
11969,
5309,
6256,
27,
535,
18219,
800,
3726,
3726,
31,
57,
21,
1448,
29,
14,
636,
4639,
11969,
5309,
500,
2558,
165,
500,
2042,
1854,
1835,
19,
51,
28,
306,
9,
2328,
689,
9,
14,
1448,
3690,
76,
31,
1381,
14,
689,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
static nested class in java, why?
===
I was looking at the Java code for LinkedList and noticed that it made use of a static nested class Entry.
public class LinkedList<E> ... {
...
private static class Entry<E> { ... }
}
What is the reasons for using a static nested class, rather than an normal inner class?
The only reason I could think of, was so that Entry doesn't have access to instance variables, so from an OOP point of view it has better encapsulation.
But I thought there might be other reasons, maybe performance. Anyone have any thoughts?
Note. I hope I have got my terms correct, I would have called it a static inner class, but I think this is wrong: http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html | 0 | [
2,
12038,
5618,
69,
718,
19,
8247,
15,
483,
60,
800,
3726,
3726,
31,
23,
699,
35,
14,
8247,
1797,
26,
4727,
5739,
17,
2711,
30,
32,
117,
275,
16,
21,
12038,
5618,
69,
718,
2792,
9,
317,
718,
4727,
5739,
1,
62,
1,
13,
9,
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... |
best way to consume a webservice in an asp.net code behind
===
I'm trying to bind a datasource to a repeater, for instance, to a web service (.asmx from a different website) on page load. The webservice returns a DataSet from an sql call. What is the best way to go about doing this? | 0 | [
2,
246,
161,
20,
16447,
21,
2741,
11449,
19,
40,
28,
306,
9,
2328,
1797,
439,
800,
3726,
3726,
31,
22,
79,
749,
20,
10193,
21,
1054,
12097,
20,
21,
6830,
106,
15,
26,
4851,
15,
20,
21,
2741,
365,
13,
5,
9,
472,
79,
396,
37,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Extended Camera control on Windows Mobile
===
I know how to capture a camera snaphot on Windows Mobile 5.0/6 using SHCameraCapture. But is there something more extensive that allows me much finer control? Namely to get available zoom levels and to set the zoom level programmatically, also e.g. different ISO modes / lightsensitivity and setting of macro mode if available. (I.e. similar to what [JSR 234][1] offers).
My project is probably going to be written in C++.
[1]: https://developer.sonyericsson.com/docs/DOC-1674 | 0 | [
2,
1984,
3336,
569,
27,
1936,
3241,
800,
3726,
3726,
31,
143,
184,
20,
3683,
21,
3336,
6877,
7010,
27,
1936,
3241,
331,
9,
15928,
379,
568,
5527,
24636,
4666,
6418,
9,
47,
25,
80,
301,
91,
3386,
30,
2965,
55,
212,
1123,
139,
569... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I create a subclass of TabPage that I can edit like a UserControl?
===
I want to create a subclass of TabPage that contains some control, and I want to control the layout and properties of those controls through the designer. However, if I open my subclass in the designer, I can't position them like I could on a UserControl. I don't want to have to create a TabPage with an UserControl instance on it, I want to design the TabPage directly.
How do I do that? I've tried changing the Designer and DesignerCategory attributes, but I haven't found any values that help. | 0 | [
2,
184,
107,
31,
1600,
21,
972,
1898,
16,
6523,
6486,
30,
31,
92,
9392,
101,
21,
4155,
12898,
60,
800,
3726,
3726,
31,
259,
20,
1600,
21,
972,
1898,
16,
6523,
6486,
30,
1588,
109,
569,
15,
17,
31,
259,
20,
569,
14,
9106,
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... |
Do numerical primary keys of deleted records in a database get reused for future new records?
===
For example if I have an auto-numbered field, I add new records without specifying this field and let DB engine to pick it for me.
So, will it pick the number of the deleted record? If yes, when?
// SQL Server, MySQL. // | 0 | [
2,
107,
16010,
1256,
5534,
16,
19584,
742,
19,
21,
6018,
164,
302,
8795,
26,
1022,
78,
742,
60,
800,
3726,
3726,
26,
823,
100,
31,
57,
40,
3108,
8,
24651,
575,
15,
31,
3547,
78,
742,
366,
19077,
68,
48,
575,
17,
408,
13,
9007,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Demos of Mobile Web Abilities?
===
I'm trying to determine what kinds of interactions a mobile website can handle. For example, I obviously can't track page-level dragging operations because this scrolls on mobile browsers. So, I'm looking for demos that can tell me what interactions work, how well, and hopefully for information about how consistently that is across mobile devices. For example, I'd like to know if I had a page that fit on the screen, would my page elements receive mouse move events when I drag my finger? I could test that myself, but I figure there are probably lots of things that could be tested, so I was hoping there was something like the ACID test, but for mobile UI interactions. | 0 | [
2,
19494,
16,
3241,
2741,
7009,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
3746,
98,
8623,
16,
11224,
21,
3241,
2271,
92,
3053,
9,
26,
823,
15,
31,
4409,
92,
22,
38,
792,
2478,
8,
3906,
13052,
1311,
185,
48,
12159,
18,
27,
3241... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's a good way to document web page links in a web application?
===
Can anyone suggest easy ways to document how web pages in a relatively complicated web application link to each other?
Should I document them in Visio possibly?
That seems the easiest.
I need to check each of the different buttons and functions on each page, and some of these depend on how the user accesses each page, so I need to document each path through the application.
| 0 | [
2,
98,
22,
18,
21,
254,
161,
20,
4492,
2741,
2478,
6271,
19,
21,
2741,
3010,
60,
800,
3726,
3726,
92,
1276,
5601,
2010,
2847,
20,
4492,
184,
2741,
4434,
19,
21,
3109,
8343,
2741,
3010,
3508,
20,
206,
89,
60,
378,
31,
4492,
105,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you use the jQuery blockui add-in with MVC Ajax?
===
I have been reading the post here:
[http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/][1]
But it wants to use the following object:
Sys.WebForms.PageRequestManager.getInstance()
Which doesn't exist when using the MVC AJAX code. Has anyone tried to hook when the postback ends from MVC AJAX to know when to unblock the UI?
[1]: http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/ | 0 | [
2,
184,
107,
42,
275,
14,
487,
8190,
93,
1921,
5661,
3547,
8,
108,
29,
307,
8990,
20624,
60,
800,
3726,
3726,
31,
57,
74,
1876,
14,
678,
235,
45,
636,
21127,
6903,
219,
716,
4357,
9,
960,
118,
2753,
118,
1036,
118,
3277,
118,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a good service for checking website/server vulnerability
===
I have been asked to provide information on available techniques for assessing our current, and any future websites for security problems. the request is in the form of
> Do you know of any good free one that examines for security holes?
I think our data security is probably worth a small amount of upfront spend so any non-free methods would be appreciated too.
Our systems are a mish mash of mySQL, Oracle, SQLServer, PHP, ASP.NET etc etc systems though I guess that that does not matter too much. All the systems are secured in as much as they are patched and the firewalls are set sensibly so outside people cannot get directly to the database boxes etc.
It is XSS and similar attacks that we wish to prevent.
What do YOU use to give you confidence in your systems? ');DROP TABLE answer; | 0 | [
2,
25,
80,
21,
254,
365,
26,
9886,
2271,
118,
10321,
106,
20607,
800,
3726,
3726,
31,
57,
74,
411,
20,
1181,
676,
27,
904,
4212,
26,
22822,
318,
866,
15,
17,
186,
1022,
13931,
26,
1221,
1716,
9,
14,
3772,
25,
19,
14,
505,
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... |
Direct3D: Transform One Pair of Points to be Aligned Parallel to Another
===
I have a line (actually a cube) going from (x1,y1,z1) to (x2,y2,z2). I would like to rotate it so that it is aligned along another line going from (x3,y3,z3) to (x4,y4,z4). Presently I am using 'Math::Atan2` along with `Matrix::RotateYawPitchRoll`. Any better ways to do this?
| 0 | [
2,
1744,
240,
43,
45,
8007,
53,
2146,
16,
819,
20,
44,
13,
12740,
3821,
20,
226,
800,
3726,
3726,
31,
57,
21,
293,
13,
5,
15661,
21,
13682,
6,
228,
37,
13,
5,
396,
165,
15,
93,
165,
15,
380,
165,
6,
20,
13,
5,
396,
135,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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't use HttpWebRequest with GET method
===
I have the following code which works just fine when the method is "POST", but changing to "GET" doesn't work:
HttpWebRequest request = null;
request = HttpWebRequest.Create(uri) as HttpWebRequest;
request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
request.Method = "POST"; // Doesn't work with "GET"
request.BeginGetRequestStream(this.RequestCallback, null);
I get a `ProtocolViolationException` exception with the "GET" method. | 0 | [
2,
92,
22,
38,
275,
7775,
458,
3692,
10351,
29,
164,
2109,
800,
3726,
3726,
31,
57,
14,
249,
1797,
56,
693,
114,
1123,
76,
14,
2109,
25,
13,
7,
6962,
7,
15,
47,
4226,
20,
13,
7,
3060,
7,
1437,
22,
38,
170,
45,
7775,
458,
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... |
What parameter parser libraries are there for C++?
===
I'd like to pass parameters to my C++ program in the following manner:
./myprog --setting=value
Are there any libraries which will help me to do this easily? | 0 | [
2,
98,
18906,
2017,
4104,
8649,
50,
80,
26,
272,
20512,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
1477,
12905,
20,
51,
272,
20512,
625,
19,
14,
249,
3832,
45,
13,
9,
118,
915,
2740,
263,
13,
8,
8,
19831,
3726,
15165,
50,
80,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... |
Oracle listener state blocked
===
I have a webpp which works fine when under a light load. However, when we run a lot of threads each with their own database connection, then we start getting the error
ORA-12519: TNS:no appropriate service handler found
After looking online I found that running `lsnrctl services` was a good diagnostic step, so I did that. The result for our service was
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:130 refused:0 state:blocked
LOCAL SERVER
The number of established connections is consistent with the number of threads. However, the `state:blocked` seems like a cause and/or symptom of this problem.
So what's my next step? The max number of open sessions is 1024, which is more than enough, and there's no limit to the number of sessions per user. I ran this test after a reboot of the machine, and no other programs were connected. I'm really not sure what to try next, so any help will be greatly appreciated. | 0 | [
2,
15759,
21772,
146,
8388,
800,
3726,
3726,
31,
57,
21,
2741,
3421,
56,
693,
1123,
76,
131,
21,
471,
6305,
9,
207,
15,
76,
95,
485,
21,
865,
16,
20396,
206,
29,
66,
258,
6018,
2760,
15,
94,
95,
799,
1017,
14,
7019,
54,
58,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 test custom Model Binders in ASP.NET MVC?
===
I've written some custom model binders (implementing IModelBinder) in our ASP.NET MVC application. I'm wondering what is a good approach to unittest them (binders)? | 0 | [
2,
184,
20,
1289,
5816,
1061,
13,
24200,
18,
19,
28,
306,
9,
2328,
307,
8990,
60,
800,
3726,
3726,
31,
22,
195,
642,
109,
5816,
1061,
13,
24200,
18,
13,
5,
8983,
413,
1130,
68,
31,
13998,
24200,
6,
19,
318,
28,
306,
9,
2328,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 far do you take code coverage?
===
I've recently started using code coverage tools (particularily Emma and EclEmma), and I really like the view that it gives me as to the completeness of my unit tests - and the ability to see what areas of the code my unit tests aren't hitting at all. I currently work in an organization that doesn't do a lot of unit testing, and I plan on really pushing everyone to take on unit testing and code coverage and TDD and hopefully convert the organization.
One issue that I'm unsure of with this subject is exactly how far I should take my code coverage. For example, if I have a class such as this:
//this class is meant as a pseudo-enum - I'm stuck on Java 1.4 for time being
public final class BillingUnit {
public final static BillingUnit MONTH = new BillingUnit("month");
public final static BillingUnit YEAR = new BillingUnit("year");
private String value;
private BillingUnit(String value) {
this.value = value;
}
public String getValue() {
return this.value;
}
public boolean equals(Object obj) {
return value.equals(((BillingUnit) obj).getValue());
}
public int hashCode() {
return value.hashCode();
}
}
I wrote some simple unit tests to make sure that `equals()` works correctly, that `getValue()` returns what I expected, etc. But thanks to the visual nature of EclEmma, the `hashcode()` method shows up as bright red for "not tested".
Is it worthwhile to even bother to test `hashCode()`, in this example, considering how simple the implementation is? I feel like I would be adding a unit test for this method simply to bump the code coverage % up, and get rid of the glaring red highlight that EclEmma adds to these lines.
Maybe I'm being neurotic and OCD-like, but I find that using something like EclEmma that makes it so easy to see what is untested - the plugin highlights the source code in red, and covered code in green - really makes me want to push to get as many classes 100% green as a I can - even when it doesn't add much of a benefit. | 4 | [
2,
184,
463,
107,
42,
247,
1797,
5245,
60,
800,
3726,
3726,
31,
22,
195,
1989,
373,
568,
1797,
5245,
4672,
13,
5,
3091,
17996,
5768,
4476,
17,
6695,
413,
11651,
6,
15,
17,
31,
510,
101,
14,
1418,
30,
32,
2352,
55,
28,
20,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What you do as developer with non-bugs client requests, f.e small fix in UI?
===
I am only one person working on project - so I am developer without PM above me. I finished portal, hovewer client from time to time attacks me with request such as "make font bigger" or change margin in css or make button which makes "xxx and yyy".
There are simple task, sometimes only for few clicks, but it takes my time and I hate doing such tasks. On the other hand I understand those people, while sometimes small fix helps them a lot in work. What say them on communicators - it's hard to ignore them. Is disabling communicators best solution - but I need it to communicate with my co-workers.
What you do in such situations? | 0 | [
2,
98,
42,
107,
28,
10058,
29,
538,
8,
16254,
18,
6819,
12279,
15,
398,
9,
62,
284,
6098,
19,
13,
5661,
60,
800,
3726,
3726,
31,
589,
104,
53,
840,
638,
27,
669,
13,
8,
86,
31,
589,
10058,
366,
6736,
784,
55,
9,
31,
842,
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... |
Can I make one Netbeans project depend on another without hacking a Makefile?
===
I've got two different netbeans C++ application projects - my application and the unit tests. I want to set it up so that if my main application is rebuilt, the unit tests are rebuilt as well (and vice versa).
Netbeans is good at resolving the dependencies for library projects, and rebuilding them if necessary, but I can't see any way of making one *application* project depend upon another.
I *could* do this by editing the .build-post rule in the Makefile by hand, but that's a bit ugly.
I suspect adding some magic macros to the Project Properties -> Build -> Debug -> Additional Dependencies dialogue would do what I want, but I can't find any docs for this.
I suppose this is probably a sign that I should switch to Cruise Control to automate the process of building and running my tests... | 0 | [
2,
92,
31,
233,
53,
4275,
863,
5950,
669,
12547,
27,
226,
366,
25787,
21,
233,
16877,
60,
800,
3726,
3726,
31,
22,
195,
330,
81,
421,
4275,
863,
5950,
272,
20512,
3010,
2314,
13,
8,
51,
3010,
17,
14,
1237,
4894,
9,
31,
259,
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... |
Using EMMA and JMockit together?
===
I'm trying to generate code coverage reports with [EMMA][1] using tests of which some use [JMockit][2]. For the most part, it works, but a few of my tests crash with a ClassFormatError, like so:
java.lang.ClassFormatError
at sun.instrument.InstrumentationImpl.redefineClasses0(Native Method)
at sun.instrument.InstrumentationImpl.redefineClasses(InstrumentationImpl.java:79)
at mockit.internal.RedefinitionEngine.redefineMethods(RedefinitionEngine.java:138)
at mockit.internal.RedefinitionEngine.redefineMethods(RedefinitionEngine.java:73)
at mockit.Mockit.setUpMocks(Mockit.java:177)
at test.my.UnitTest.setUpBeforeClass(UnitTest.java:21)
Any idea what is going on, and whether I can fix the problem? Or are EMMA and JMockit mutually exclusive?
[1]: http://emma.sourceforge.net/
[2]: http://jmockit.dev.java.net | 0 | [
2,
568,
4476,
17,
487,
79,
5668,
242,
429,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
7920,
1797,
5245,
2813,
29,
636,
23690,
500,
2558,
165,
500,
568,
4894,
16,
56,
109,
275,
636,
728,
79,
5668,
242,
500,
2558,
135,
500,
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... |
What happens when DB engine runs out of numbers to use for primary keys?
===
Since [DBs do not reuse numbers of deleted records][1] it is possible to run out of numbers, especially if you pick not really a big integer type for this column.
What would happen and how to prevent it if it's bad?
// SQL Server, MySQL //
[1]: http://stackoverflow.com/questions/253522/do-numerical-primary-keys-of-deleted-records-in-a-database-get-reused-for-futur | 0 | [
2,
98,
5531,
76,
13,
9007,
1406,
1461,
70,
16,
2116,
20,
275,
26,
1256,
5534,
60,
800,
3726,
3726,
179,
636,
9007,
18,
107,
52,
302,
3699,
2116,
16,
19584,
742,
500,
2558,
165,
500,
32,
25,
938,
20,
485,
70,
16,
2116,
15,
1118... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Refactor traceListener code so it can be unit tested
===
I have the following code:
private static void WriteStartupInfo()
{
Settings settings = Settings.Default;
TimeSpan interval = settings.CleanupInterval;
TimeSpan span = settings.ExpiryTimeSpan;
string url = settings.TeamFoundationServerUrl;
StringBuilder sb = new StringBuilder();
sb.Append(String.Format("CleanupInterval:{0}{1}", interval,Environment.NewLine));
sb.Append(String.Format("ExpiryTimeSpan:{0}{1}", span,Environment.NewLine));
sb.Append(String.Format("TeamFoundationServerUrl:{0}{1}", url,Environment.NewLine));
Trace.TraceInformation(sb.ToString());
}
This needs to be tested. How do I unit test this ?
Is it as simple as removing trace listeners and adding a unit test trace listener ?
Any help will be greatly appreciated.
| 0 | [
2,
302,
17455,
5565,
13891,
106,
1797,
86,
32,
92,
44,
1237,
7631,
800,
3726,
3726,
31,
57,
14,
249,
1797,
45,
932,
12038,
11364,
2757,
13680,
576,
108,
4120,
5,
6,
13,
1,
12410,
12410,
800,
12410,
9,
13862,
9708,
73,
436,
3206,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
OpenSource tools/services for server monitoring
===
I'm looking for an OpenSource server monitoring tool that allows the following:
- Monitor a variety of services on TCP, UDP.
- Supports custom port numbers.
- Supports some basic response checking (beyond initial connection checking).
- Basic dashboard overview of health status.
- Alert notifications via e-mail.
I could roll my own, but want to make sure I don't reinvent the wheel if there's a complete suite out there that does what I want (and maybe more!).
**EDIT**: Preferably software that runs on Windows. | 0 | [
2,
368,
12097,
4672,
118,
11449,
18,
26,
8128,
8984,
800,
3726,
3726,
31,
22,
79,
699,
26,
40,
368,
12097,
8128,
8984,
5607,
30,
2965,
14,
249,
45,
13,
8,
7626,
21,
1747,
16,
687,
27,
13,
38,
7439,
15,
287,
7431,
9,
13,
8,
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... |
Defining Web Services - What is the requirement to make namespace definitions accessible?
===
I am sitting down to define my first web service and have what is probably a basic question about the accessibility requirements of namespace definitions?
When a consumer of these web services identifies message elements as belonging to my namespace, must the URI reference for this namespace be available at the time the message is sent?
I am wondering if any message validation against the namespace definition is done at messaging time. I'm guessing not since a failure of URI reference host shouldn't prevent messaging from occuring.
Can anyone share any thoughts on the requirement here, or perhaps provide direction to a good source of information?
Thanks, M. | 0 | [
2,
14684,
2741,
687,
13,
8,
98,
25,
14,
8981,
20,
233,
204,
5582,
18544,
7342,
60,
800,
3726,
3726,
31,
589,
1805,
125,
20,
9267,
51,
64,
2741,
365,
17,
57,
98,
25,
910,
21,
2125,
1301,
88,
14,
25737,
4786,
16,
204,
5582,
1854... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can you recommend alternative FileUpload web control for asp.net?
===
Currently using System.Web.UI.WebControls.FileUpload wrapped in our own control.
We have licenses for Telerik and can swap in that. I wanted to know if anyone had experience with that or could suggest a better one?
Some criteria to be measured by
- validation
- peformance
- multiple files
- localisation ([browse][1] is difficult)
- security
[1]: http://stackoverflow.com/questions/94316/how-to-change-the-text-of-the-browse-button-in-the-fileupload-control-systemweb | 0 | [
2,
92,
42,
12360,
2676,
3893,
576,
8294,
2741,
569,
26,
28,
306,
9,
2328,
60,
800,
3726,
3726,
871,
568,
329,
9,
14113,
9,
5661,
9,
14113,
12898,
18,
9,
16877,
576,
8294,
3684,
19,
318,
258,
569,
9,
95,
57,
3962,
18,
26,
4338,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 sort nodes in an XmlDocument? (.Net)
===
I was using an XSL style sheet to do the sorting but it seems to be very slow. Is there a more efficient way?
It is a flat list of nodes, if I convert the nodes to an object and sort in a GenericList would it help? | 0 | [
2,
98,
25,
14,
246,
161,
20,
2058,
16272,
19,
40,
23504,
28132,
60,
13,
5,
9,
2328,
6,
800,
3726,
3726,
31,
23,
568,
40,
993,
18,
255,
1034,
6125,
20,
107,
14,
2058,
68,
47,
32,
2206,
20,
44,
253,
2276,
9,
25,
80,
21,
91,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Character User Interfaces have a future?
===
We've got products built both with GUI and CHUI. Going forward, we're looking at redesigning a lot of our software and mainly taking the route of going all GUI. My question to the group is, do we need to account for keeping a CHUI around? What are the advantages of CHUI over GUI? Many times in the past people have said that CHUI is faster because you don't need a mouse. I argue that GUI can be just as fast with the right keyboard shortcuts, hotkeys and/or touch screens.
Is CHUI something we should no longer consider if hardware no longer provides a constraint? | 0 | [
2,
107,
925,
4155,
6573,
18,
57,
21,
1022,
60,
800,
3726,
3726,
95,
22,
195,
330,
1985,
392,
156,
29,
9457,
17,
4834,
49,
9,
228,
917,
15,
95,
22,
99,
699,
35,
23903,
68,
21,
865,
16,
318,
2306,
17,
2011,
741,
14,
858,
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... |
Explanation of Oslo error "M0197: 'Text' cannot be used in a Type context"?
===
In Microsoft Oslo SDK CTP 2008 (using Intellipad) the following code compiles fine:
module M {
type T {
Text : Text;
}
}
while compiling the below code leads to the error "M0197: 'Text' cannot be used in a Type context"
module M {
type T {
Text : Text;
Value : Text; // error
}
}
I do not see the difference between the examples, as in the first case Text is also used in a Type context. Any ideas?
Regards, tamberg | 0 | [
2,
5764,
16,
10111,
7019,
13,
7,
79,
3026,
3643,
45,
13,
22,
11969,
22,
1967,
44,
147,
19,
21,
1001,
4141,
7,
60,
800,
3726,
3726,
19,
7099,
10111,
13,
18,
43,
197,
272,
13726,
570,
13,
5,
12655,
19,
38,
4223,
8240,
6,
14,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best hash method for passwords in ASP Classic
===
What is the slowest (therefore best) hash method for passwords in ASP Classic?
Thanks! | 0 | [
2,
246,
19170,
2109,
26,
20884,
18,
19,
28,
306,
2732,
800,
3726,
3726,
98,
25,
14,
2276,
1430,
13,
5,
1887,
16558,
246,
6,
19170,
2109,
26,
20884,
18,
19,
28,
306,
2732,
60,
3669,
187,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Switching DIV Background Image With jQuery
===
I am making an expand/collapse call rates table for the company I work for. I currently have a table with a button under it to expand it, the button says "Expand". It is functional except I need to button to change to "Collapse" when it is clicked and then ofcourse back to "Expand" when it is clicked again. The writing on the button is a background image.
So basically all I need is to change the background image of a div when it is clicked, except sort of like a toggle. Any help would be greatly appreciated! | 0 | [
2,
13027,
13,
12916,
2395,
1961,
29,
487,
8190,
93,
800,
3726,
3726,
31,
589,
544,
40,
6073,
118,
7771,
17057,
645,
5332,
859,
26,
14,
237,
31,
170,
26,
9,
31,
871,
57,
21,
859,
29,
21,
5167,
131,
32,
20,
6073,
32,
15,
14,
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... |
Creating a derived control
===
I have an abstract base class which inherits from `UserControl` and which is then used to derive a number of classes.
The problem I have is how to elegantly ensure that the generated function `InitializeComponent()` is called for each layer of class.
So the (abstract) base class has a number of controls on it that will be shared for all children. When creating an instance of the child class, the base constructor is called first, but is there any way to elegantly call the derived `InitializeComponent()` without having to build effectively the same Constructor for each derived class
public DerivedClass() {
InitializeComponent();
}
I'm wondering if there's a more efficient way than repeating myself in each Derived class?
| 0 | [
2,
2936,
21,
3981,
569,
800,
3726,
3726,
31,
57,
40,
8502,
1000,
718,
56,
17569,
18,
37,
13,
1,
16704,
12898,
1,
17,
56,
25,
94,
147,
20,
20576,
21,
234,
16,
2684,
9,
14,
1448,
31,
57,
25,
184,
20,
11614,
102,
4062,
30,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Workaround for UpdateSourceTrigger LostFocus on Silverlight Datagrid?
===
I have a Silverlight 2 application that validates data OnTabSelectionChanged. Immediately I began wishing that UpdateSourceTrigger allowed more than just LostFocus because if you click the tab without tabbing off of a control the LINQ object is not updated before validation.
I worked around the issue for TextBoxes by setting focus to another control and then back OnTextChanged:
Private Sub OnTextChanged(ByVal sender As Object, ByVal e As TextChangedEventArgs)
txtSetFocus.Focus()
sender.Focus()
End Sub
Now I am trying to accomplish the same sort of hack within a DataGrid. My DataGrid uses DataTemplates generated at runtime for the CellTemplate and CellEditingTemplate. I tried writing the TextChanged="OnTextChanged" into the TextBox in the DataTemplate, but it is not triggered.
Anyone have any ideas? | 0 | [
2,
170,
10037,
26,
11100,
12097,
3367,
11356,
529,
23371,
27,
1172,
3130,
1054,
16375,
60,
800,
3726,
3726,
31,
57,
21,
1172,
3130,
172,
3010,
30,
7394,
7759,
1054,
27,
15783,
18,
5033,
16229,
43,
9,
1375,
31,
260,
11227,
30,
11100,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 way to store previous search criteria in ASP.NET
===
I have a web application that allows a user to search on some criteria, select an object, edit it and then return to the previous search. All the editing takes place on a separate page linked to the datagrid of returned results. I was wondering what is the best way to store the previous search parameters so that when they return to the grid they have the same search they previously used. The best option I came up with is to use a NameValue collection of each of the selected paramters and store that to Session or a cookie when the user presses the search button. Any other ideas as to a better way to approach this? | 0 | [
2,
246,
161,
20,
1718,
1158,
2122,
9157,
19,
28,
306,
9,
2328,
800,
3726,
3726,
31,
57,
21,
2741,
3010,
30,
2965,
21,
4155,
20,
2122,
27,
109,
9157,
15,
5407,
40,
3095,
15,
9392,
32,
17,
94,
788,
20,
14,
1158,
2122,
9,
65,
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... |
Persist data client-side to look up against dropdowns in ASP.NEt
===
I have a dropdown list that stores name/value pairs. The dropdown appears in each row of a gridview.
The values in the dropdown correspond to a third attribute (data type) not persisted in the dropdown list. I'd like to create a client-side "lookup" table so that when a user chooses a dropdown value, the proper data type populates next to it.
What's the best way to accomplish this in an ASP.NET application? The List of value/attributes could potentially range from 1 to 100 members in a list... | 0 | [
2,
22084,
1054,
6819,
8,
1416,
20,
361,
71,
149,
2804,
2968,
18,
19,
28,
306,
9,
2328,
800,
3726,
3726,
31,
57,
21,
2804,
2968,
968,
30,
4134,
204,
118,
15165,
7473,
9,
14,
2804,
2968,
1780,
19,
206,
3131,
16,
21,
7354,
4725,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Weird #include problem
===
I have a problem with a simple included file.
The file being included is in two MFC programs - one of which is a dll, and it also compiles itself into a non-mfc dll.
Recently I was using the larger dll which wraps around the *source* of the smaller dll when I wanted access to some of the features of the original code that isn't exposed by the larger dll.
Since this was a test I simply added the source to my project and called the functions. I got this error: **syntax error : missing ')' before ';'**
The file is correctly included, and I have both the .cpp and the .h in the source folder, and within the project but it wouldn't compile.
I eventually created a very small test project, main.cpp, spooler.cpp and spooler.h (the spooler is a wrapper around the comms) and tried to compile that. Same issue.
So I ripped out all the dll related stuff just in case there is a weird issue going on with that and it still won't compile.
I can't think of the life of me what is wrong. Does anyone else have any ideas?
p.s. Jeff you really need to add the ability to attach files because the source would fill up too many screens with data. | 2 | [
2,
5455,
6926,
22640,
1448,
800,
3726,
3726,
31,
57,
21,
1448,
29,
21,
1935,
506,
3893,
9,
14,
3893,
142,
506,
25,
19,
81,
307,
7061,
1726,
13,
8,
53,
16,
56,
25,
21,
13,
43,
211,
15,
17,
32,
67,
26561,
18,
1145,
77,
21,
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... |
Supplying an argument at Rails runtime
===
I'm looking for a way to supply an argument to a ruby on rails project at runtime. Essentially, our project uses public key cryptography to encrypt some sensitive client data and we want the ability to supply the password to the private key file at runtime. | 0 | [
2,
20679,
40,
5476,
35,
2240,
18,
485,
891,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
161,
20,
2837,
40,
5476,
20,
21,
10811,
27,
2240,
18,
669,
35,
485,
891,
9,
7398,
15,
318,
669,
2027,
317,
1246,
16277,
15438,
20,
1957,
114... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
vc80.pdb - How do I make it go away and never bother me again?
===
When building static libraries with VS2005 I keep getting linker warnings that VC80.pdb cant be found with my library.lib. Apparently, as a result, the edit and continue feature of the IDE fails to work any project that incorporates library.lib
What magic is needed to tell VS2005 to produce a static lib with edit and continue debug info that does NOT reference or require vs80.pdb when linked into a project? | 0 | [
2,
13,
8990,
2887,
9,
9251,
220,
13,
8,
184,
107,
31,
233,
32,
162,
229,
17,
243,
8006,
55,
188,
60,
800,
3726,
3726,
76,
353,
12038,
8649,
29,
4611,
2835,
31,
643,
1017,
3508,
106,
3590,
18,
30,
13,
8990,
2887,
9,
9251,
220,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Display .RDLC report embedded in a DLL file
===
I have a report that is used by a windows service and a form application. So, I want to put embed the report in a DLL file that can be used by both.
The problem is that if I try to set the ReportEmbeddedResource property of a ReportViewer control in my windows form app, it will search the windows form app for the resource, not the dll file.
e.g.: Code from the windows form app:
rv.LocalReport.ReportEmbeddedResource = "MyReportInMyDLLFile.rdlc"
How can I make the above command look for the embedded resource in my DLL file? | 0 | [
2,
3042,
13,
9,
897,
6109,
1330,
12138,
19,
21,
13,
43,
211,
3893,
800,
3726,
3726,
31,
57,
21,
1330,
30,
25,
147,
34,
21,
1936,
365,
17,
21,
505,
3010,
9,
86,
15,
31,
259,
20,
442,
11911,
69,
14,
1330,
19,
21,
13,
43,
211... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Explanation of Oslo error "M2037: SQL Generation Internal Error: Missing generator for variable"?
===
In Microsoft Oslo SDK CTP 2008 (using Intellipad) the following code compiles fine:
module T {
type A {
Id : Integer32 = AutoNumber();
} where identity Id;
As : A*;
type B {
Id : Integer32 = AutoNumber();
// A : A;
// } where A in As && identity Id;
} where identity Id;
Bs : B*;
type C {
Id : Integer32 = AutoNumber();
B : B;
} where B in Bs && identity Id;
Cs : C*;
}
and results in the following Reach SQL output:
set xact_abort on;
go
begin transaction;
go
set ansi_nulls on;
go
create schema [T];
go
create table [T].[As]
(
[Id] int not null identity,
constraint [PK_As] primary key clustered ([Id])
);
go
create table [T].[Bs]
(
[Id] int not null identity,
constraint [PK_Bs] primary key clustered ([Id])
);
go
create table [T].[Cs]
(
[Id] int not null identity,
[B] int not null,
constraint [PK_Cs] primary key clustered ([Id]),
constraint [FK_Cs_B_T_Bs] foreign key ([B]) references [T].[Bs] ([Id])
);
go
commit transaction;
go
But after changing the commented line in module T as follows
A : A;
} where A in As && identity Id;
// } where identity Id;
the error message "M2037: SQL Generation Internal Error: Missing generator for variable 'A'" is displayed (in Intellipad's Reach SQL Window).
Any Ideas?
Regards, tamberg
| 0 | [
2,
5764,
16,
10111,
7019,
13,
7,
79,
1323,
3555,
45,
4444,
255,
2782,
3117,
7019,
45,
2863,
15286,
26,
7612,
7,
60,
800,
3726,
3726,
19,
7099,
10111,
13,
18,
43,
197,
272,
13726,
570,
13,
5,
12655,
19,
38,
4223,
8240,
6,
14,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Managing data prefetching and dependencies with .NET Typed Datasets
===
I'm using .NET typed datasets on a project, and I often get into situations where I prefetch data from several tables into a dataset and then pass that dataset to several methods for processing. It seems cleaner to let each method decide exactly which data it needs and then load the data itself. However, several of the methods work with the same data, and I want the performance benefit of loading data in the beginning only once.
My problem is that I don't know of a good way or pattern to use for managing dependencies (I want to be sure I load all the data that I'm going to need for each class/method that will use the dataset). Currently, I just end up looking through the code for the various classes that will use the dataset to make sure I'm loading everything appropriately.
What are good approaches or patterns to use in this situation? Am I doing something fundamentally wrong? Although I'm using typed datasets, this seems like it would be a common situation where prefetching data is used.
Thanks! | 0 | [
2,
5616,
1054,
782,
19813,
7192,
17,
29411,
29,
13,
9,
2328,
1001,
43,
1054,
3554,
18,
800,
3726,
3726,
31,
22,
79,
568,
13,
9,
2328,
1001,
43,
1054,
3554,
18,
27,
21,
669,
15,
17,
31,
478,
164,
77,
8329,
113,
31,
782,
410,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the fastest track to learning to build enterprise ASP.NET v3.5 apps?
===
Having not done ASP.NET since v1.1, and now blitzing through the Wrox Pro ASP.NET v3.5 book, what other resources are available to get me developing enterprise ASP.NET apps the fastest?
I've been developing in DotNet since Beta and have been doing Winform & middle-layer architecture/design/dev for 3.5 years now (as this has been my client's desires). But I'm finding my falling behind has hurt me concerning a new client. :(
I'd appreciate any advice on moving forward as fast as possible. I'm looking for anything RAD related or even just great books on the subject that you recommend. Right now, I'm having fun consuming the Wrox book though. Thanx much! | 0 | [
2,
98,
22,
18,
14,
7518,
792,
20,
2477,
20,
1895,
6002,
28,
306,
9,
2328,
566,
240,
9,
264,
4865,
18,
60,
800,
3726,
3726,
452,
52,
677,
28,
306,
9,
2328,
179,
566,
165,
9,
165,
15,
17,
130,
20573,
68,
120,
14,
619,
9419,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 events can't be used in the same way in derived classes as in the base class in C#?
===
In following code, I want to extend the behaviour of a class by deriving/subclassing it, and make use of an event of the base class:
public class A
{
public event EventHandler SomeEvent;
public void someMethod()
{
if(SomeEvent != null) SomeEvent(this, someArgs);
}
}
public class B : A
{
public void someOtherMethod()
{
if(SomeEvent != null) SomeEvent(this, someArgs); // << why is this not possible?
//Error: The event 'SomeEvent' can only appear on the left hand side of += or -=
//(except when used from within the type 'A')
}
}
Why isn't it possible?
And what is the common solution for this kind of situation? | 0 | [
2,
483,
963,
92,
22,
38,
44,
147,
19,
14,
205,
161,
19,
3981,
2684,
28,
19,
14,
1000,
718,
19,
272,
5910,
60,
800,
3726,
3726,
19,
249,
1797,
15,
31,
259,
20,
7206,
14,
7727,
16,
21,
718,
34,
121,
9655,
68,
118,
7563,
1898,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Have you used the Perl 5.10 Backtracking Control Verbs in your Regexes yet?
===
So my question is: Have you used the Perl 5.10 Backtracking Control Verbs in your Regexes yet? And what problems did they help you accomplish?
| 0 | [
2,
57,
42,
147,
14,
416,
255,
331,
9,
1036,
97,
4792,
68,
569,
19363,
19,
154,
7953,
1706,
160,
768,
60,
800,
3726,
3726,
86,
51,
1301,
25,
45,
57,
42,
147,
14,
416,
255,
331,
9,
1036,
97,
4792,
68,
569,
19363,
19,
154,
7953... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
KDTree Implementation in Java
===
I'm looking for a KDTree implementation in Java. I've done a google search and the results seem pretty haphazard. In an ideal world, I'd find a nice well-designed API for spatial data structures, and the KDTree would be just one class in that library.
For this project, I'll only be working in either 2 or 3 dimensions, and I'm mostly just interested in a good nearest-neighbors implementation.
Any tips?
----------
Incidentally, here are the results I've found so far:
* http://www.savarese.com/software/SavaAlgorithms/api/java/
* http://www.koders.com/java/fid7CE62747CE902D3117625B4954D85A9A6400DFDC.aspx
Both of them seem a little dodgy to me. | 0 | [
2,
680,
43,
8101,
6123,
19,
8247,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
680,
43,
8101,
6123,
19,
8247,
9,
31,
22,
195,
677,
21,
8144,
2122,
17,
14,
1736,
2260,
1772,
13,
10463,
22961,
43,
9,
19,
40,
5628,
126,
15,
31,
22... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Porting C++ code from Windows to the Mac
===
I'm a long time Windows developer, and it looks like I'm going to be involved in porting a Windows app to the Mac.
We've decided to use Flex/Air for the gui for both sides, which looks really slick BTW.
My Windows application has a C++ dll that controls network adapters (wired and wireless). This is written using the standard library and Boost, so most of it should work cross platform.
On the Mac, what IDE/complier do most folks use if they want to write C++? Also, can someone provide a pointer to whatever APIs the Mac has that can control wifi adapters (associate, scan, disconnect, etc)? | 0 | [
2,
1295,
68,
272,
20512,
1797,
37,
1936,
20,
14,
1572,
800,
3726,
3726,
31,
22,
79,
21,
175,
85,
1936,
10058,
15,
17,
32,
1879,
101,
31,
22,
79,
228,
20,
44,
1013,
19,
1295,
68,
21,
1936,
4865,
20,
14,
1572,
9,
95,
22,
195,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.