unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Redirect in .NET 3.5
===
We have redesigned the structure to a website which has several business units. Now I want to redirect (301) to the new page.
IE: <br />
was www.example.com/abc <br />
now www.example.com/default.aspx?article=abc <br />
I have tried to use Global.asax to do this, and it works properly when I debug through it.
if (Request.RawUrl.Contains("abc"))
{
Response.RedirectLocation = "/default.aspx?article=abc";
Response.StatusCode = 301;
Response.StatusDescription = "Moved";
Response.End();
}
So http://localhost:1234/example/abc redirects properly, but <br/>
http://localhost/example/abc does not redirect, it gives me a 404.
Any ideas? | 0 | [
2,
302,
14706,
19,
13,
9,
2328,
203,
9,
264,
800,
3726,
3726,
95,
57,
19807,
14,
1411,
20,
21,
2271,
56,
63,
238,
508,
1398,
9,
130,
31,
259,
20,
302,
14706,
13,
5,
18979,
6,
20,
14,
78,
2478,
9,
13,
660,
45,
13,
1,
5145,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Replace text inside a DIV element
===
I need to set the text within a DIV element dynamically. What is the best, browser safe approach? I have prototypejs and scriptaculous available.
<div id="panel">
<div id="field_name">TEXT GOES HERE</div>
</div>
Here's what the function will look like:
function showPanel(fieldName) {
var fieldNameElement = document.getElementById('field_name');
//Make replacement here
} | 0 | [
2,
3934,
1854,
572,
21,
13,
12916,
4520,
800,
3726,
3726,
31,
376,
20,
309,
14,
1854,
363,
21,
13,
12916,
4520,
7782,
1326,
9,
98,
25,
14,
246,
15,
16495,
1834,
2141,
60,
31,
57,
7063,
728,
18,
17,
3884,
1738,
22717,
904,
9,
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... |
Setting a key field on a view
===
I am creating an SQL view for a file that strips out the spaces in a particular field. My question is if there is a why to set a key on that new view so a person can still CHAIN the file. We are on V5R3. | 0 | [
2,
2697,
21,
1246,
575,
27,
21,
1418,
800,
3726,
3726,
31,
589,
2936,
40,
4444,
255,
1418,
26,
21,
3893,
30,
15383,
70,
14,
7644,
19,
21,
1498,
575,
9,
51,
1301,
25,
100,
80,
25,
21,
483,
20,
309,
21,
1246,
27,
30,
78,
1418,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Any issues using an IBM DataPower ESB w/ WCF development?
===
I'm looking to implement an ESB and wanted to get thoughts related to "how" my web services might change (WCF) or -- how my client apps that consume these services might "need to be revised" (-- other than a new service ref to the ESB path --)
The device I'm working with specifically is the "WebSphere DataPower XML Security Gateway XS40" | 0 | [
2,
186,
1549,
568,
40,
10233,
1054,
5484,
13,
160,
220,
619,
118,
11801,
410,
522,
60,
800,
3726,
3726,
31,
22,
79,
699,
20,
8713,
40,
13,
160,
220,
17,
417,
20,
164,
3064,
1597,
20,
13,
7,
1544,
7,
51,
2741,
687,
530,
753,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SQL Server 2005: Importing data from SQL Server 2000
===
In SQL Server 2000, you have the "All Tasks... - Export Data" option. Where is this option the SQL Server 2005 Management Studio?
Or, is there a SQL Server 2005 way of doing this?
EDIT: I am using the Express edition. | 0 | [
2,
4444,
255,
8128,
18228,
9010,
68,
1054,
37,
4444,
255,
8128,
824,
800,
3726,
3726,
19,
4444,
255,
8128,
824,
15,
42,
57,
14,
13,
7,
1233,
8674,
9,
9,
9,
13,
8,
7487,
1054,
7,
4255,
9,
113,
25,
48,
4255,
14,
4444,
255,
812... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 software development process do you use?
===
I have always used the agile [Feature Driven Development][1] process for developing software. What does everyone else use, and why do you prefer it? I prefer FDD because that's what I started with fresh out of college. In college, everything was very free-form and my "customer" was typically my professor, who might not have had much industry experience outside of doing research for the university.
Now, my customer(s) are not so forgiving and I do a lot of work in the medical field. Being agile and having a high level of quality is a must!
[1]: http://en.wikipedia.org/wiki/Feature_Driven_Development | 0 | [
2,
98,
2306,
522,
953,
107,
42,
275,
60,
800,
3726,
3726,
31,
57,
550,
147,
14,
27475,
636,
26956,
5355,
522,
500,
2558,
165,
500,
953,
26,
3561,
2306,
9,
98,
630,
1266,
962,
275,
15,
17,
483,
107,
42,
6369,
32,
60,
31,
6369,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Where can I learn about logarithms?
===
I hear logarithms mentioned quite a lot in the programming context. They seem to be the solution to many problems and yet I can't seem to find a real-world way of making use of them. I've read the [Wikipedia entry][1] and that, quite frankly, leaves me none the wiser.
**So, where can I learn about the real-world programming problems that logarithms solve?** Has anyone got any examples of problems they faced that were solved by implementing a logarithm?
[1]: http://en.wikipedia.org/wiki/Logarithms | 0 | [
2,
113,
92,
31,
2484,
88,
13,
29452,
18,
60,
800,
3726,
3726,
31,
990,
13,
29452,
18,
2211,
1450,
21,
865,
19,
14,
3143,
4141,
9,
59,
2260,
20,
44,
14,
4295,
20,
151,
1716,
17,
768,
31,
92,
22,
38,
2260,
20,
477,
21,
683,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Pros and cons of using one file for entire webpage?
===
I'm not sure how I should express this, but I'll give it a try. <br />
I recently started coding my portfolio in object-oriented PHP and I'm wondering if it's according to best practices to use a single page where the content changes depending on SQL data and the $_GET variable?
If so/not, why? | 0 | [
2,
895,
18,
17,
11608,
16,
568,
53,
3893,
26,
1078,
2741,
6486,
60,
800,
3726,
3726,
31,
22,
79,
52,
562,
184,
31,
378,
2999,
48,
15,
47,
31,
22,
211,
590,
32,
21,
1131,
9,
13,
1,
5145,
13,
118,
1,
31,
1989,
373,
13,
15458... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Most efficient T-SQL way to pad a varchar on the left to a certain length?
===
As compared to say: REPLICATE(@padchar, @len - LEN(@str)) + @str | 0 | [
2,
127,
8243,
13,
38,
8,
18,
22402,
161,
20,
4432,
21,
4033,
5433,
27,
14,
225,
20,
21,
1200,
1476,
60,
800,
3726,
3726,
28,
2428,
20,
395,
45,
22156,
5,
1,
8240,
5433,
15,
13,
1,
2284,
13,
8,
10655,
5,
1,
9729,
6,
6,
2754... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Why does Django generate HTTP 500 errors for static media when Debug is set to False?
===
I'm preparing to deploy my Django app and I noticed that when I change the "DEBUG" setting to False, all references to static files (i.e., JavaScript, CSS, etc..) result in HTTP 500 errors.
Any idea what's causing that issue (and how to fix it)? | 0 | [
2,
483,
630,
3857,
14541,
7920,
7775,
3033,
11908,
26,
12038,
941,
76,
121,
16254,
25,
309,
20,
4997,
60,
800,
3726,
3726,
31,
22,
79,
7575,
20,
17617,
51,
3857,
14541,
4865,
17,
31,
2711,
30,
76,
31,
753,
14,
13,
7,
546,
16254,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Automatic casts
===
I am currently suffering a brain fart. I've done this before but I can't remember the exact syntax and I can't look at the code I wrote because I was working at another company at the time. I have this arrangement:
class P
{
// stuff
};
class PW : public P
{
// more stuff
};
class PR : public P
{
// more stuff
};
class C
{
public:
P GetP() const { return p; }
private:
P p;
};
// ...
P p = c.GetP( ); // valid
PW p = c.GetP( ); // invalid
PR p = c.GetP( ); // invalid
// ...
Now I would like to make P interchangeable with PW and PR (and thus PW and PR can be interchanged). I could probably get away with casts but this code change has occurred quite a few times in this module alone. I am pretty sure it is a operator but for the life of me I can't remember what.
**How do I make P interchangeable with PW and PR with minimal amount of code?** | 2 | [
2,
6715,
1325,
18,
800,
3726,
3726,
31,
589,
871,
4957,
21,
1964,
463,
38,
9,
31,
22,
195,
677,
48,
115,
47,
31,
92,
22,
38,
1518,
14,
5340,
22649,
17,
31,
92,
22,
38,
361,
35,
14,
1797,
31,
738,
185,
31,
23,
638,
35,
226,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sharepoint WebPart with AjaxToolkit's Accordion control
===
Do you guys have any resources on creating a Sharepoint webpart that uses the AjaxToolkit controls? I need to create a webpart that uses the Accordion control and I can't find any complete tutorial or walkthrough. I prefer a tutorial/article that doesn't use SmartPart.
TIA! | 0 | [
2,
1891,
3132,
2741,
3091,
29,
20624,
20799,
13703,
22,
18,
20753,
569,
800,
3726,
3726,
107,
42,
2776,
57,
186,
2566,
27,
2936,
21,
1891,
3132,
2741,
3091,
30,
2027,
14,
20624,
20799,
13703,
8671,
60,
31,
376,
20,
1600,
21,
2741,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RSS/ATOM feed reader for windows (or cross-platform)
===
Looking for a good rss/feed reader for windows or if there are any good cross platforms one i would be really amazed, or good web services (dont like the google one).
I want something simplistic and minimalistic. | 0 | [
2,
13,
1224,
18,
118,
58,
6015,
4063,
7765,
26,
1936,
13,
5,
248,
919,
8,
27035,
6,
800,
3726,
3726,
699,
26,
21,
254,
13,
1224,
18,
118,
20954,
7765,
26,
1936,
54,
100,
80,
50,
186,
254,
919,
6843,
53,
31,
83,
44,
510,
1737... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 like your comments? ( Best Practices )
===
What are your best practices for comments. when to use them and what they should contain. Do we even need them ( I think we do ) | 4 | [
2,
184,
107,
42,
101,
154,
7534,
60,
13,
5,
246,
5242,
13,
6,
800,
3726,
3726,
98,
50,
154,
246,
5242,
26,
7534,
9,
76,
20,
275,
105,
17,
98,
59,
378,
3717,
9,
107,
95,
166,
376,
105,
13,
5,
31,
277,
95,
107,
13,
6,
3,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Assembly.GetCallingAssembly() and static constructors?
===
Ok, so I just ran into the following problem that raised an eyebrow.
For various reasons I have a testing setup where Testing classes in a TestingAssembly.dll depend on the TestingBase class in a BaseTestingAssembly.dll.
One of the things the TestBase does in the meantime is look for a certain embedded resource in its own and the calling assembly
So my BaseTestingAssembly contained the following lines...
public class TestBase {
private static Assembly _assembly;
private static Assembly _calling_assembly;
static TestBase() {
_assembly = Assembly.GetExecutingAssembly();
_calling_assembly = Assembly.GetCallingAssembly();
}
}
Static since I figured, these assemblies would be the same over the application's lifetime so why bother recalculating them on every single test.
When running this however I noticed that both _assembly and _calling_assembly were being set to BaseTestingAssembly rather than BaseTestingAssembly and TestingAssembly respectively.
Setting the variables to non-static and having them initialized in a regular constructor fixed this but I am confused why this happened to begin this. I thought static constructors run the first time a static member gets referenced. This could only have been from my TestingAssembly which should then have been the caller. Does anyone know what might have happened? | 0 | [
2,
1475,
9,
3060,
9200,
68,
29432,
5,
6,
17,
12038,
6960,
248,
18,
60,
800,
3726,
3726,
5854,
15,
86,
31,
114,
717,
77,
14,
249,
1448,
30,
1127,
40,
9621,
9,
26,
617,
2932,
31,
57,
21,
4431,
18161,
113,
4431,
2684,
19,
21,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C# .NET 3.5 GUI design
===
I'm looking for some programming guides to C# GUI design. I come from the Java camp (where I can happily hand-code Swing/AWT GUIs) and thus don't have a clue where to start :(
Also, what difference (if any) is there between the Windows Presentation Foundation and WinForms? | 0 | [
2,
272,
5910,
13,
9,
2328,
203,
9,
264,
9457,
704,
800,
3726,
3726,
31,
22,
79,
699,
26,
109,
3143,
14838,
20,
272,
5910,
9457,
704,
9,
31,
340,
37,
14,
8247,
1232,
13,
5,
2798,
31,
92,
12356,
224,
8,
9375,
5587,
118,
3885,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Determine site's root url in asp.net
===
How can I consistently get the root or base url of the site regardless of whether the site is in a virtual directory and regardless of where my code is in the directory structure? I've tried every variable and function I can think of and haven't found a good way.
I want to be able to get the url of the current site, i.e. http://www.mysite.com or if it's a virtual directory, http://www.mysite.com/DNN/
Here's some of the things I've tried and the result. The only one that includes the whole piece that I want (http://localhost:4471/DNN441) is Request.URI.AbsoluteURI:
Request.PhysicalPath: C:\WebSites\DNN441\Default.aspx
Request.ApplicationPath: /DNN441
Request.PhysicalApplicationPath: C:\WebSites\DNN441\
MapPath: C:\WebSites\DNN441\DesktopModules\Articles\Templates\Default.aspx
RawURL: /DNN441/ModuleTesting/Articles/tabid/56/ctl/Details/mid/374/ItemID/1/Default.aspx
Request.Url.AbsoluteUri: http://localhost:4471/DNN441/Default.aspx
Request.Url.AbsolutePath: /DNN441/Default.aspx
Request.Url.LocalPath: /DNN441/Default.aspx
Request.Url.Host: localhost
Request.Url.PathAndQuery: /DNN441/Default.aspx?TabId=56&ctl=Details&mid=374&ItemID=1 | 0 | [
2,
3746,
689,
22,
18,
5900,
287,
6362,
19,
28,
306,
9,
2328,
800,
3726,
3726,
184,
92,
31,
11852,
164,
14,
5900,
54,
1000,
287,
6362,
16,
14,
689,
7148,
16,
1472,
14,
689,
25,
19,
21,
6599,
16755,
17,
7148,
16,
113,
51,
1797,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 detect screen resolution in (classic) ASP
===
I want to detect users' screen size and pass this into a charting application (Chart Director by http://www.advsofteng.com) to control how big an image to display.
I have to use ASP, but I can only think to use JavaScript to detect screen-size and then pass this into the server-side script. Is there an easier way?
Thanks | 0 | [
2,
184,
20,
9092,
2324,
4302,
19,
13,
5,
19824,
6,
28,
306,
800,
3726,
3726,
31,
259,
20,
9092,
3878,
22,
2324,
1072,
17,
1477,
48,
77,
21,
22544,
3010,
13,
5,
5433,
38,
559,
34,
7775,
6903,
6483,
9,
1283,
710,
12980,
4367,
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... |
MMORPG / VR Architecture
===
Could anyone provide a link to the article / blog discussing architecture of the MMORPG or Virtual Reality Server or other system with rich 3D client. | 0 | [
2,
1620,
248,
9623,
13,
118,
13,
6938,
2607,
800,
3726,
3726,
110,
1276,
1181,
21,
3508,
20,
14,
2002,
13,
118,
8146,
10988,
2607,
16,
14,
1620,
248,
9623,
54,
6599,
2902,
8128,
54,
89,
329,
29,
2042,
203,
43,
6819,
9,
3,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How can I add a REGEX match to my J2ME project?
===
The question pretty much sums it up. Just want to run a regular expression match on a string in J2ME. | 0 | [
2,
184,
92,
31,
3547,
21,
7953,
1706,
730,
20,
51,
487,
135,
790,
669,
60,
800,
3726,
3726,
14,
1301,
1772,
212,
3907,
18,
32,
71,
9,
114,
259,
20,
485,
21,
1290,
1803,
730,
27,
21,
3724,
19,
487,
135,
790,
9,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How do I write this in Ruby/Python? Or, can you translate my LINQ to Ruby/Python?
===
Yesterday, I asked [this][1] question and never really got an answer I was really happy with. I really would like to know how to generate a list of N unique random numbers using a functional language such as Ruby without having to be extremely imperative in style.
Since I didn't see anything I really liked, I've written the solution I was looking for in LINQ:
<pre><code>
static void Main(string[] args)
{
var temp = from q in GetRandomNumbers(100).Take(5).Distinct() select q;
}
private static IEnumerable<int> GetRandomNumbers(int max)
{
Random r = new Random();
while (true)
{
yield return r.Next(max);
}
}
</code></pre>
Can you translate my LINQ to Ruby? Python? Any other functional programming language?
**Note:** Please try not to use too many loops and conditionals - otherwise the solution is trivial. Also, I'd rather see a solution where you don't have to generate an array much bigger than N so you can then just remove the duplicates and trim it down to N.
I know I'm being picky, but I'd really like to see some elegant solutions to this problem.
Thanks!
[1]: http://stackoverflow.com/questions/119107/how-do-i-generate-a-list-of-n-unique-random-numbers-in-ruby | 0 | [
2,
184,
107,
31,
2757,
48,
19,
10811,
118,
6448,
11570,
60,
54,
15,
92,
42,
20628,
51,
6294,
1251,
20,
10811,
118,
6448,
11570,
60,
800,
3726,
3726,
7124,
15,
31,
411,
636,
1565,
500,
2558,
165,
500,
1301,
17,
243,
510,
330,
40,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 find GridItem from click on PropertyGrid?
===
I'm trying to do some custom UI behavior on a Windows Forms PropertyGrid control. I'd like to be able to respond to clicks and double-clicks on the GridItems to change the state. For example, to flip a binary or ternary variable through its states.
I can get at the underlying view by looking up a child of typename "PropertyGridView" and can hook its Click event. Only problem is then what do I do? I can't find any functions that map mouse coordinates onto grid items.
There is a SelectedGridItem but this isn't helpful. There are many places you can click on a control that do not update this property, and so responding to a Click assuming SelectedGridItem is updated will get a lot of incorrect results.
Aside from purchasing a commercial property grid control or switching to a gridview of some kind, is there anything I can do here? The PropertyGrid is almost exactly what I need. I'm even considering wandering through with Reflector and doing some very unfriendly things with this control to get the data out that I need. :) | 0 | [
2,
184,
20,
477,
7354,
2119,
79,
37,
10840,
27,
1354,
16375,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
107,
109,
5816,
13,
5661,
3257,
27,
21,
1936,
1997,
1354,
16375,
569,
9,
31,
22,
43,
101,
20,
44,
777,
20,
4590,
20,
10840,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Has anyone already done the work to make STLPort build with VS2008 and/or an x64 build with VS2005?
===
At present it seems that VS2008 still isn't supported either in the 5.1.5 release or in the STLPort CVS repository. If someone has already done this work then it would be useful to share, if possible :)
Likewise it would be useful to know about the changes required for a VS2005 or 2008 x64 build. | 0 | [
2,
63,
1276,
614,
677,
14,
170,
20,
233,
354,
255,
1993,
1895,
29,
4611,
2753,
17,
118,
248,
40,
993,
3470,
1895,
29,
4611,
2835,
60,
800,
3726,
3726,
35,
734,
32,
2206,
30,
4611,
2753,
174,
2532,
22,
38,
1827,
694,
19,
14,
33... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
favicon not working in IE
===
I have a site using a custom favicon.ico. The favicon displays as expected in all browsers except IE. When trying to display the favicon in IE, I get the big red x; when displaying the favicon in another browser, it displays just fine. The page source includes
<link rel="SHORTCUT ICON" href="/images/favicon.ico" /> and it does work in other browsers. Thanks for your thoughts. | 0 | [
2,
1399,
6199,
218,
52,
638,
19,
13,
660,
800,
3726,
3726,
31,
57,
21,
689,
568,
21,
5816,
1399,
6199,
218,
9,
7776,
9,
14,
1399,
6199,
218,
9412,
28,
1727,
19,
65,
16495,
18,
1613,
13,
660,
9,
76,
749,
20,
3042,
14,
1399,
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... |
Any good self-hosted php webmail suggestions?
===
Can anyone suggest a good self-hosted php webmail solution?
I share a server on a commercial collocation site and every now and then I add a domain here and there, mostly for email hosting (family, friends), even though it runs php. (my [blog][1] is hosted there for example).
Right now im running [Open Webmail][2], last released in 28-Feb-2005! I know there's something better "out there".
Would appreciate any tips.
Cheers,
/mp
[1]: http://www.mauriciopastrana.com
[2]: http://openwebmail.org/ | 0 | [
2,
186,
254,
1119,
8,
25219,
13,
26120,
2741,
8079,
18389,
60,
800,
3726,
3726,
92,
1276,
5601,
21,
254,
1119,
8,
25219,
13,
26120,
2741,
8079,
4295,
60,
31,
1891,
21,
8128,
27,
21,
1439,
3313,
19032,
689,
17,
352,
130,
17,
94,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sql query to determine state?
===
I have a table in a MSSQL database that looks like this:
Timestamp (datetime)
Message (varchar(20))
Each day, a particular process inserts the current time and the message 'Started' when it starts. When it is finished it inserts the current time and the message 'Finished'.
What is a good query that, given a particular date, returns:
- 0 if the process never started
- 1 if the process started but did not finish
- 2 if the process started and finished | 0 | [
2,
4444,
255,
25597,
20,
3746,
146,
60,
800,
3726,
3726,
31,
57,
21,
859,
19,
21,
4235,
18,
22402,
6018,
30,
1879,
101,
48,
45,
436,
38,
10158,
13,
5,
8209,
891,
6,
2802,
13,
5,
3311,
5433,
5,
1323,
6,
6,
206,
208,
15,
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... |
xsd to rnc (or rng) conversion (unix command line)
===
A brief search shows that all available (unix command line) tools that convert from xsd (XML Schema) to rng (RelaxNG) or rnc (compact RelaxNG) have problems of some sort.
First, if I use rngconv:
$ wget https://msv.dev.java.net/files/documents/61/31333/rngconv.20060319.zip
$ unzip rngconv.20060319.zip
$ cd rngconv-20060319/
$ java -jar rngconv.jar my.xsd > my.rng
it does not have a way to de-normalize elements so all end up being alternative start elements (it also seems to be a bit buggy).
trang is an alternative, but it doesn't support xsd files on the input only on the output (why?). It supports DTD, however. Converting to DTD first comes to mind, but a solid xsd2dtd is hard to find as well. The one below:
$ xsltproc http://crism.maden.org/consulting/pub/xsl/xsd2dtd.xsl in.xsd > out.dtd
seems to be buggy.
All this is very surprising. For all these years of XML (ab)use, there no decent command line tools for these trivial basic tasks? Are people using only editors? Do those work? I much prefer command line, especially because I'd like to automate these tasks.
Any enlightening comments on this?
| 0 | [
2,
993,
18,
43,
20,
761,
6897,
13,
5,
248,
761,
2723,
6,
6263,
13,
5,
1020,
4028,
1202,
293,
6,
800,
3726,
3726,
21,
2698,
2122,
1285,
30,
65,
904,
13,
5,
1020,
4028,
1202,
293,
6,
4672,
30,
8406,
37,
993,
18,
43,
13,
5,
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... |
Apache Mod-Rewrite Primers?
===
I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start?
My primary interest is learning how to point certain directories to others, and how to use portions of a URL as parameters to a script (i.e. "/some/subdirs/like/this" => "script.php?a=some&b=subdirs&c=like&d=this"). | 0 | [
2,
17140,
7226,
8,
99,
23716,
1621,
1224,
60,
800,
3726,
3726,
31,
589,
5712,
98,
1621,
1224,
118,
17599,
18,
118,
2473,
9819,
192,
18,
118,
1198,
150,
9,
50,
70,
80,
26,
2477,
20,
27891,
13,
911,
7532,
568,
17140,
118,
9,
9020,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best practice for parameterizing GWT app?
===
I have a Google Web Toolkit (GWT) application and when I link to it, I want to pass some arguments/parameters that it can use to dynamically retrieve data. E.g. if it were a stock chart application, I would want my link to contain the symbol and then have the GWT app read that and make a request to some stock service. E.g. http://myapp/gwt/StockChart?symbol=GOOG would be the link to my StockChart GWT app and it would make a request to my stock info web service for the GOOG stock.
So far, I've been using the server-side code to add Javascript variables to the page and then I've read those variables using JSNI (JavaScript Native Interface).
For example:
In the host HTML:
<script type="text/javascript">
var stockSymbol = '<%= request.getParameter("symbol") %>';
</script>
In the GWT code:
public static native String getSymbol() /*-{
return $wnd.stockSymbol;
}-*/;
(Although this code is based on real code that works, I've modified it for this question so I might have goofed somewhere)
However, this doesn't always work well in hosted mode (especially with arrays) and since JSNI wasn't around in version 1.4 and previous, I'm guessing there's another/better way. | 0 | [
2,
246,
1345,
26,
18906,
3335,
14094,
38,
4865,
60,
800,
3726,
3726,
31,
57,
21,
8144,
2741,
5607,
13703,
13,
5,
263,
499,
38,
6,
3010,
17,
76,
31,
3508,
20,
32,
15,
31,
259,
20,
1477,
109,
10553,
118,
6351,
7307,
18,
30,
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... |
What GUI Framework would you recommend
===
Management wants us to switch to Infragistics. But my boss says that any 3rd party is destined to fail, and at that point there won't be anything we can do about it.
Is he right, is he wrong? I don't know.
What are your opinions, is it better to use something developed inside the company, or do you prefer something like DevExpress, Infragistics, Krypton to name a few or is there something else even better that you would recommend instead?
I'd very much appreciate your thoughts, and experience on the matter.
Thank you in advance. | 0 | [
2,
98,
9457,
6596,
83,
42,
12360,
800,
3726,
3726,
1097,
2846,
182,
20,
5521,
20,
19,
22133,
3771,
18,
9,
47,
51,
4054,
898,
30,
186,
203,
897,
346,
25,
18937,
20,
7476,
15,
17,
35,
30,
454,
80,
230,
22,
38,
44,
602,
95,
92,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the most efficent way to clone a Javascript object?
===
What is the most efficent way to clone a Javascript object? I've seen:
obj = eval(uneval(o));
But that's not cross platform (FF only). I've done (in Mootools 1.2) things like this:
obj = JSON.decode(JSON.encode(o));
But question the efficiency. I've also seen recursive copying function, etc. I'm pretty surprised that out-of-the-box Javascript doesn't have a method for doing this. | 0 | [
2,
98,
25,
14,
127,
13,
9039,
49,
5089,
161,
20,
13871,
21,
8247,
8741,
3095,
60,
800,
3726,
3726,
98,
25,
14,
127,
13,
9039,
49,
5089,
161,
20,
13871,
21,
8247,
8741,
3095,
60,
31,
22,
195,
541,
45,
5122,
728,
800,
13,
62,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Java: What is the best way to filter a Collection?
===
I want to filter a `java.util.Collection` based on a predicate. | 0 | [
2,
8247,
45,
98,
25,
14,
246,
161,
20,
11945,
21,
1206,
60,
800,
3726,
3726,
31,
259,
20,
11945,
21,
13,
1,
1004,
1385,
9,
14255,
9,
15015,
872,
1,
432,
27,
21,
28712,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Checkout one file from subversion
===
**"It is not possible to check out a single file. The finest level of checkouts you can do is directory level."**
Any ideas on how to get around this issue when using Subversion?
We have this folder in subversion where we keep all our images.I just want to check out one file(image) from that.This folder is really big and has ton of other stuff which I don't need now.
Thanks | 0 | [
2,
2631,
1320,
53,
3893,
37,
972,
10898,
800,
3726,
3726,
13,
1409,
7,
242,
25,
52,
938,
20,
2631,
70,
21,
345,
3893,
9,
14,
10887,
662,
16,
2631,
12638,
42,
92,
107,
25,
16755,
662,
9,
7,
1409,
186,
3478,
27,
184,
20,
164,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 store the markdown using WMD in asp.net?
===
I have implemented the WMD control that StackOverflow uses into a project of mine, it **almost** works like a charm ... but ... when I save the changes to the database it is saving the HTML version and not the markdown version.
So where I have this in my text box:
**boldtext**
It is really saving this:
<b>boldtext</b>
Any ideas how to make it so the markdown version is saved? | 0 | [
2,
184,
107,
42,
1718,
14,
943,
2968,
568,
19312,
43,
19,
28,
306,
9,
2328,
60,
800,
3726,
3726,
31,
57,
6807,
14,
19312,
43,
569,
30,
7566,
2549,
9990,
2027,
77,
21,
669,
16,
1114,
15,
32,
13,
1409,
18135,
1409,
693,
101,
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... |
How can I split up a PDF file into pages (perferably C#)
===
My client has a multi-page PDF file. They need it split by page. Does anyone know of a way to do this - preferably in C#. | 0 | [
2,
184,
92,
31,
2132,
71,
21,
13,
11124,
3893,
77,
4434,
13,
5,
1432,
2407,
4801,
272,
5910,
6,
800,
3726,
3726,
51,
6819,
63,
21,
1889,
8,
6486,
13,
11124,
3893,
9,
59,
376,
32,
2132,
34,
2478,
9,
630,
1276,
143,
16,
21,
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,
0,
0,
0,
0,
0... |
Is there a way to get jadclipse working with Eclipse 3.4?
===
I'm a big fan of the Jadclipse plugin and I'd really like to upgrade to Eclipse 3.4 but the plugin currently does not work. Are there any other programs out there that let you use jad to view source of code you navigate to from Eclipse? (Very useful when delving into ambiguous code in stack traces). | 0 | [
2,
25,
80,
21,
161,
20,
164,
3009,
7201,
6013,
870,
638,
29,
11652,
203,
9,
300,
60,
800,
3726,
3726,
31,
22,
79,
21,
580,
2514,
16,
14,
3009,
7201,
6013,
870,
10922,
108,
17,
31,
22,
43,
510,
101,
20,
9483,
20,
11652,
203,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 popen equivalent to read and write to a child process in Windows?
===
Ruby's standard popen3 module does not work on Windows. Is there a maintained replacement that allows for separating stdin, stdout, and stderr? | 0 | [
2,
98,
25,
14,
3075,
103,
4602,
20,
1302,
17,
2757,
20,
21,
850,
953,
19,
1936,
60,
800,
3726,
3726,
10811,
22,
18,
1236,
3075,
103,
240,
12613,
630,
52,
170,
27,
1936,
9,
25,
80,
21,
3926,
4610,
30,
2965,
26,
16880,
354,
3653... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How do you get the DataSource that a report uses in SQL Server Reporting Services 2005
===
In order to create the proper queries I need to be able to run a query against the same datasource that the report is using. How do I get that information? Preferably the connection string or pieces of data used to build the connection string. | 0 | [
2,
184,
107,
42,
164,
14,
1054,
12097,
30,
21,
1330,
2027,
19,
4444,
255,
8128,
6670,
687,
812,
800,
3726,
3726,
19,
389,
20,
1600,
14,
4119,
9386,
2829,
31,
376,
20,
44,
777,
20,
485,
21,
25597,
149,
14,
205,
1054,
12097,
30,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Calling WCF Service from Silverlight
===
Im calling a locally hosted wcf service from silverlight and I get the exception below.
Iv created a clientaccesspolicy.xml, which is situated in the route of my host.
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
> An error occurred while trying to make
> a request to URI
> 'http://localhost:8005/Service1.svc'.
> This could be due to a cross domain
> configuration error. Please see the
> inner exception for more details. --->
> {System.Security.SecurityException
> ---> System.Security.SecurityException:
> Security error. at
> MS.Internal.InternalWebRequest.Send()
> at
> System.Net.BrowserHttpWebRequest.BeginGetResponseImplementation()
> at
> System.Net.BrowserHttpWebRequest.InternalBeginGetResponse(AsyncCallback
> callback, Object state) at
> System.Net.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__3(Object sendState) --- End of inner
> exception stack trace --- at
> System.Net.AsyncHelper.BeginOnUI(BeginMethod
> beginMethod, AsyncCallback callback,
> Object state) at
> System.Net.BrowserHttpWebRequest.BeginGetResponse(AsyncCallback
> callback, Object state) at
> System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteSend(IAsyncResult
> result) at
> System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.OnSend(IAsyncResult
> result)}
Any ideas on how to progress? | 0 | [
2,
2555,
11801,
410,
365,
37,
1172,
3130,
800,
3726,
3726,
797,
2555,
21,
6680,
2812,
11801,
410,
365,
37,
1172,
3130,
17,
31,
164,
14,
5391,
1021,
9,
3761,
679,
21,
6819,
20604,
8147,
2731,
9,
396,
8184,
15,
56,
25,
2692,
19,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I disable work item creation at the end of a failed Team Foundation Build?
===
I'm using Team Foundation Build but we aren't yet using TFS for problem tracking, so I would like to disable the work item creation on a failed build. Is there any way to do this? I tried commenting out the work item info in the TFSBuild.proj file for the build type but that didn't do the trick. | 0 | [
2,
184,
92,
31,
1460,
579,
170,
9101,
2502,
35,
14,
241,
16,
21,
1702,
173,
1304,
1895,
60,
800,
3726,
3726,
31,
22,
79,
568,
173,
1304,
1895,
47,
95,
4847,
22,
38,
768,
568,
13,
11720,
18,
26,
1448,
10353,
15,
86,
31,
83,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there an easy way to attach source in Eclipse?
===
I'm a big fan of the way Visual Studio will give you the comment documentation / parameter names when completing code that you have written and ALSO code that you are referencing (various libraries/assemblies).
Is there an easy way to get inline javadoc/parameter names in Eclipse when doing code complete or hovering over methods? Via plugin? Via some setting? It's extremely annoying to use a lot of libraries (as happens often in Java) and then have to go to the website or local javadoc location to lookup information when have it in the source jars right there! | 0 | [
2,
25,
80,
40,
2010,
161,
20,
19514,
1267,
19,
11652,
60,
800,
3726,
3726,
31,
22,
79,
21,
580,
2514,
16,
14,
161,
3458,
1120,
129,
590,
42,
14,
6484,
13945,
13,
118,
18906,
1817,
76,
6869,
1797,
30,
42,
57,
642,
17,
67,
1797,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ASP.Net 3.5 SP1 Routing with SharePoint 2007
===
I'm trying to setup some friendly URLs on a SharePoint website. I know that I can do the ASP.Net 2.0 friendly URLs using RewritePath, but I was wondering if it was possible to make use of the System.Web.Routing that comes with ASP.NET 3.5 SP1.
I think I've figured out how to get my route table loaded, but I'm not clear on what method to use to get the correct IHttpHandler to pass out.
Thanks! | 0 | [
2,
568,
28,
306,
9,
2328,
203,
9,
264,
3782,
165,
19880,
29,
1891,
3132,
624,
800,
3726,
3726,
31,
22,
79,
749,
20,
18161,
109,
4753,
13,
911,
7532,
27,
21,
1891,
3132,
2271,
9,
31,
143,
30,
31,
92,
107,
14,
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... |
What is the best practice for an environment based configuration file in Ruby on Rails
===
I have several properties that are dependent on the environment the application is running. For example, there are links to another application that is being developed concurrantly that get displayed in the header and footer. I want those links to be different depending on what environment they are in.
This is slightly different than the way we use the out of box enviornment configuration files because our system administrator has mongrel running in 'Production' mode even on the development server. I only run mongrel in 'Development' mode on my laptop.
Is there a standard way for handling situations like this? Or should we run mongrel in "Development" mode on the dev server and so on up the line. In that case, what happens if have an extra level in our env hierarchy. (Dev, Test, UAT, Production) | 0 | [
2,
98,
25,
14,
246,
1345,
26,
40,
2307,
432,
8091,
3893,
19,
10811,
27,
2240,
18,
800,
3726,
3726,
31,
57,
238,
3704,
30,
50,
9063,
27,
14,
2307,
14,
3010,
25,
946,
9,
26,
823,
15,
80,
50,
6271,
20,
226,
3010,
30,
25,
142,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 best update a running application on a remote machine.
===
So my build machine spits out a new executable and I would like to update my test machine with the new build. In order to do this I would need to somehow kill the process on the remote machine, copy over the new binary and start it running.
And for some reason pskill and psexec don't work due to some weird IT setup.
What would be a good way to do this? | 0 | [
2,
184,
246,
11100,
21,
946,
3010,
27,
21,
5388,
1940,
9,
800,
3726,
3726,
86,
51,
1895,
1940,
9286,
18,
70,
21,
78,
1396,
17194,
5924,
17,
31,
83,
101,
20,
11100,
51,
1289,
1940,
29,
14,
78,
1895,
9,
19,
389,
20,
107,
48,
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... |
For list controls, should find-as-you-type match at the start of an entry, or anywhere in an entry?
===
I have a list control in GTK+ (a `gtk.TreeView` with one column), with "find-as-you type" enabled (so typing any text will open a small search field for searching through the list entries). Now, if the user enters some search text like "abc", should I search only for entries _starting_ with "abc", or should I search for entries that contain "abc" somewhere in their text?
(links to relevant Human Interface Guidelines appreciated) | 0 | [
2,
26,
968,
8671,
15,
378,
477,
8,
472,
8,
245,
8,
4474,
730,
35,
14,
799,
16,
40,
2792,
15,
54,
4922,
19,
40,
2792,
60,
800,
3726,
3726,
31,
57,
21,
968,
569,
19,
9509,
197,
2430,
13,
5,
58,
13,
1,
263,
38,
197,
9,
8101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Automated Test Framework - Windows CE
===
Looking for a way to drive a Compact Framework app running on a CE device.
All we basically need is to be able to write little scripts that press buttons and click on things. Anyone know of such a tool or it best to just hack one up ourselves? | 0 | [
2,
14904,
1289,
6596,
13,
8,
1936,
4000,
800,
3726,
3726,
699,
26,
21,
161,
20,
1493,
21,
8285,
6596,
4865,
946,
27,
21,
4000,
3646,
9,
65,
95,
11374,
376,
25,
20,
44,
777,
20,
2757,
265,
17505,
30,
901,
12861,
17,
10840,
27,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can you hook a SharePoint 2007 feature into the Application_Start of a site?
===
I was wondering if there is a good way to hook into the Application_Start of a SharePoint 2007 site when developing a feature? I know I can directly edit the Global.asax file in the site root, but is there a way to do this so that it gets deployed with the feature?
Thanks! | 0 | [
2,
184,
92,
42,
5559,
21,
1891,
3132,
624,
1580,
77,
14,
3010,
1,
13680,
16,
21,
689,
60,
800,
3726,
3726,
31,
23,
5712,
100,
80,
25,
21,
254,
161,
20,
5559,
77,
14,
3010,
1,
13680,
16,
21,
1891,
3132,
624,
689,
76,
3561,
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... |
Get the IP Address of local computer
===
In C++, what's the easiest way to get the local computer's IP address and subnet mask? | 0 | [
2,
164,
14,
15735,
3218,
16,
375,
1428,
800,
3726,
3726,
19,
272,
20512,
15,
98,
22,
18,
14,
27237,
161,
20,
164,
14,
375,
1428,
22,
18,
15735,
3218,
17,
972,
2328,
5983,
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... |
System.Data.OracleClient: How can I mock/fake/stub OracleException?
===
In my tests I need to test what happens when an OracleException is thrown (due to a stored procedure failure). I am trying to setup Rhino Mocks to
Expect.Call(....).Throw(new OracleException());
For whatever reason however, OracleException seems to be sealed with no public constructor. What can I do to test this?
| 0 | [
2,
329,
9,
18768,
9,
6055,
5615,
150,
18513,
38,
45,
184,
92,
31,
10506,
118,
1473,
1048,
118,
384,
4502,
15759,
10066,
872,
60,
800,
3726,
3726,
19,
51,
4894,
31,
376,
20,
1289,
98,
5531,
76,
40,
15759,
10066,
872,
25,
6027,
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... |
PHP unserialize keeps throwing same error over 100 times part 2
===
So I have a large 2d array that i serialize, but when I attempt to unserialize the array it just throws the same error to the point of nearly crashing firefox.
The error is:
Warning: unserialize() [function.unserialize]: Node no longer exists in /var/www/dev/wc_paul/inc/analyzerTester.php on line 24
I would include the entire serialized array that I echo out but last time I tried that on this form it crashed my firefox.
Does anyone have any idea why this might be happening?
I'm sure this is an array. However, it was originally an xml response from another server that I then pulled values from to build the array. If it can't be serialized I can accept that I guess.... but how should I go about saving it then? | 0 | [
2,
13,
26120,
367,
4104,
2815,
2952,
8968,
6033,
205,
7019,
84,
808,
436,
141,
172,
800,
3726,
3726,
86,
31,
57,
21,
370,
172,
43,
7718,
30,
31,
5956,
2952,
15,
47,
76,
31,
1735,
20,
367,
4104,
2815,
2952,
14,
7718,
32,
114,
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... |
Invalid file descriptor problem with Git on Windows
===
I've been using Git on Linux for about a year, and everything works fine. Since recently, a colleague has joined development and he's using Windows. Everything works fine there as well, but sometimes when he tries to push changes to a remote repository (bare) on Linux server it bails out with 'Invalid file descriptor' message.
I update the same remote repository using Linux git without any problems. We tried WinGit 0.2 and <a href="http://code.google.com/p/msysgit/">MSysGit</a> (downloaded today, uses Git 1.5.6). Both have the same problem.
Has anyone seen something like this before?
| 0 | [
2,
16671,
3893,
121,
8741,
248,
1448,
29,
13,
10404,
27,
1936,
800,
3726,
3726,
31,
22,
195,
74,
568,
13,
10404,
27,
13024,
26,
88,
21,
159,
15,
17,
796,
693,
1123,
9,
179,
1989,
15,
21,
12321,
63,
670,
522,
17,
24,
22,
18,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
.NET can't find the cookie that I created in classic asp in some cases.
===
I'm the only developer supporting a website that's a mix of classic asp and .NET. I had to add some .net pages to a classic asp application. This application requires users to login. The login page, written in classic asp, creates a cookie that .net pages use to identify the logged in user and stores information in session vars for the other classic asp pages to use. In classic asp the cookie code is as follows:
response.cookies("foo")("value1") = value1
response.cookies("foo")("value2") = value2
response.cookies("foo").Expires = DateAdd("N", 15, Now())
response.cookies("foo").Path = "/"
In the .NET codebehind Page_Load code, I check for the cookie using the code below.
> if(!IsPostBack) {
> if(Request.Cookies["foo"] != null) {
> ... } else { //redirect to cookie creation page, cookiefoo.asp
> } }
The vast majority of the time this works with no problems. However, we have some users that get redirected to a cookie creation page because the Page_Load code can't find the cookie. No matter how many times the user is redirected to the cookie creation page, the referring page still can find the cookie, foo. The problem is happening in IE7 and I've tried modifying the privacy and cookie settings in the browser but can't seem to recreate the problem the user is having.
Does anyone have any ideas why this could be happening with IE7?
Thanks. | 0 | [
2,
13,
9,
2328,
92,
22,
38,
477,
14,
19980,
30,
31,
679,
19,
2732,
28,
306,
19,
109,
1871,
9,
800,
3726,
3726,
31,
22,
79,
14,
104,
10058,
3134,
21,
2271,
30,
22,
18,
21,
2917,
16,
2732,
28,
306,
17,
13,
9,
2328,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the comparative robustness of C++ Builder versions?
===
Our development team work with Borland C++ Builder 6 and CodeGear C++ Builder 2007 (as well as Visual Studio). I hear a lot of comments that the Builder 2007 IDE crashes a lot more than BCB6 does. Does anyone out there have any experience of the C++ Builder 2009 IDE yet, particularly with a decent size application, and if so how does this compare with 6 or 2007 in terms of overall robustness? | 0 | [
2,
98,
25,
14,
14102,
15313,
720,
16,
272,
20512,
14960,
3281,
60,
800,
3726,
3726,
318,
522,
173,
170,
29,
3895,
618,
272,
20512,
14960,
400,
17,
1797,
834,
512,
272,
20512,
14960,
624,
13,
5,
472,
134,
28,
3458,
1120,
6,
9,
31... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Handling a colon in an element ID in a CSS selector
===
JSF is setting the ID of an input field to `search_form:expression`. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to escape the colon or something?
input#search_form:expression {
///...
} | 0 | [
2,
7988,
21,
10766,
19,
40,
4520,
4924,
19,
21,
272,
18,
18,
23946,
800,
3726,
3726,
487,
18,
410,
25,
2697,
14,
4924,
16,
40,
6367,
575,
20,
13,
1,
25136,
1,
4190,
45,
28993,
1,
9,
31,
376,
20,
19077,
109,
23020,
27,
30,
45... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Floated Divs Obeying/Not Obeying Vertical-Align
===
Within a table cell that is vertical-align:bottom, I have one or two divs. Each div is floated right.
Supposedly, the divs should not align to the bottom, but they do (which I don't understand, but is good).
However, when I have two floated divs in the cell, they align themselves to the same top line.
I want the first, smaller, div to sit all the way at the bottom. Another acceptable solution is to make it full height of the table cell.
It's difficult to explain, so[ here's the mockup](http://ritter.vg/misc/stuff/floatProblem.html).
I am testing in IE7 and FF2. Target support is IE6/7, FF2/3. | 0 | [
2,
15400,
13,
12916,
18,
15410,
68,
118,
1270,
15410,
68,
7035,
8,
192,
9693,
800,
3726,
3726,
363,
21,
859,
1667,
30,
25,
7035,
8,
192,
9693,
45,
22389,
15,
31,
57,
53,
54,
81,
13,
12916,
18,
9,
206,
13,
12916,
25,
15400,
193... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
VS2005 "Add New Item..." dialog - default item
===
After installing a third-party SDK, it very discourteously makes one if its templates the default item in "Add New Item..." dialog in Visual Studio 2005. This is also the case for all other similar dialogs - "Add Class...", "Add User Control..." etc.
Is there a way to change this behavior?
| 0 | [
2,
4611,
2835,
13,
7,
14854,
78,
9101,
9,
9,
9,
7,
28223,
13,
8,
12838,
9101,
800,
3726,
3726,
75,
25429,
21,
422,
8,
9635,
13,
18,
43,
197,
15,
32,
253,
1460,
7177,
62,
13985,
1364,
53,
100,
82,
22894,
18,
14,
12838,
9101,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
accessing constants in JSP (without scriptlet)
===
I have a class that defines the names of various session attributes, e.g.
class Constants {
public static final String ATTR_CURRENT_USER = "current.user";
}
I would like to use these constants within a JSP to test for the presence of these attributes, something like:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.example.Constants" %>
<c:if test="${sessionScope[Constants.ATTR_CURRENT_USER] eq null]}">
<%-- Do somthing --%>
</c:if>
But I can't seem to get the sytax correct. Also, to avoid repeating the rather lengthy tests above in multiple places, I'd like to assign the result to a local (page-scoped) variable, and refer to that instead. I believe I can do this with `<c:set>`, but again I'm struggling to find the correct syntax.
Cheers,
Don | 0 | [
2,
1381,
68,
3587,
18,
19,
487,
3401,
13,
5,
14506,
3884,
1336,
6,
800,
3726,
3726,
31,
57,
21,
718,
30,
13110,
14,
1817,
16,
617,
3723,
13422,
15,
13,
62,
9,
263,
9,
718,
3587,
18,
13,
1,
317,
12038,
426,
3724,
35,
6384,
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... |
IMAP: how to move a message from one folder to another
===
(using the IMAP commands, not with the assistance of any other mail package) | 0 | [
2,
31,
15022,
45,
184,
20,
780,
21,
2802,
37,
53,
19294,
20,
226,
800,
3726,
3726,
13,
5,
12655,
14,
31,
15022,
14294,
15,
52,
29,
14,
4067,
16,
186,
89,
4216,
6030,
6,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
WPF hosting windows forms elements inside a ScrollViewer
===
when putting a ScrollViewer inside a window(not keeping all the window's size)
inside the ScrollViewer there's (with other stuff) a WinFormsHost and a control inside (let's say a DateTimePicker). when scrolling, the inner winforms control keeps being visible when there's no longer a reason (it's outside of the scrolling region), so it "floats" above what's outside of the ScrollViewer
any solutions for that? | 0 | [
2,
619,
7721,
10637,
1936,
1997,
2065,
572,
21,
12159,
4725,
106,
800,
3726,
3726,
76,
3873,
21,
12159,
4725,
106,
572,
21,
1463,
5,
1270,
2882,
65,
14,
1463,
22,
18,
1072,
6,
572,
14,
12159,
4725,
106,
80,
22,
18,
13,
5,
1410,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Constructor parameters for controllers without a DI container for ASP.NET MVC
===
Does anyone have any code examples on how to create controllers that have parameters other than using a Dependency Injection Container?
I see plenty of samples with using containers like StructureMap, but nothing if you wanted to pass in the dependency class yourself. | 0 | [
2,
6960,
248,
12905,
26,
9919,
18,
366,
21,
926,
12147,
26,
28,
306,
9,
2328,
307,
8990,
800,
3726,
3726,
630,
1276,
57,
186,
1797,
3770,
27,
184,
20,
1600,
9919,
18,
30,
57,
12905,
89,
119,
568,
21,
26835,
13646,
12147,
60,
31,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Quickly check whether sudo permissions are available
===
I want to be able to quickly check whether I both have sudo access and my password is already authenticated. I'm not worried about having sudo access specifically for the operation I'm about to perform, but that would be a nice bonus.
Specifically what I'm trying to use this for is a script that I want to be runnable by a range of users. Some have sudo access. All know the root password.
When they run my script, I want it to use sudo permissions without prompting for a password if that is possible, and otherwise to fall back to asking for the *root* password (because they might not have sudo access).
My first non-working attempt was to fork off `sudo -S true` with STDIN closed or reading from /dev/null. But that still prompts for the password and waits a couple of seconds.
I've tried several other things, including waiting 0.3sec to see whether it succeeded immediately, but everything I try ends up failing in some situation. (And not because my timeout is too short.) It's difficult to figure out what goes on, because I can't just strace like I normally would.
One thing I *know* doesn't work is to close STDIN or attach it to a pipe before running `sudo -S true`. I was hoping that would make the password prompt immediately fail, but it still prompts and behaves strangely. I think it might want a terminal. | 0 | [
2,
976,
2631,
1472,
13,
18,
18601,
5572,
18,
50,
904,
800,
3726,
3726,
31,
259,
20,
44,
777,
20,
976,
2631,
1472,
31,
156,
57,
13,
18,
18601,
1381,
17,
51,
20884,
25,
614,
14351,
1669,
9,
31,
22,
79,
52,
3681,
88,
452,
13,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you translate this regular-expression idiom from Perl into Python?
===
I switched from Perl to Python about a year ago and haven't looked back. There is only <i>one</i> idiom that I've ever found I can do more easily in Perl than in Python:
if ($var =~ /foo(.+)/) {
# do something with $1
} elif ($var =~ /bar(.+)/) {
# do something with $1
} elif ($var =~ /baz(.+)/) {
# do something with $1
}
The corresponding Python code is not so elegant since the <tt>if</tt> statements keep getting nested:
m = re.search(r'foo(.+)', var)
if m:
# do something with m.group(1)
else:
m = re.search(r'bar(.+)', var)
if m:
# do something with m.group(1)
else:
m = re.search(r'baz(.+)', var)
if m:
# do something with m.group(2)
Does anyone have an elegant way to reproduce this pattern in Python? I've seen anonymous function dispatch tables used, but those seem kind of unwieldy to me for a small number of regular expressions... | 0 | [
2,
184,
107,
42,
20628,
48,
1290,
8,
28993,
28380,
37,
416,
255,
77,
20059,
60,
800,
3726,
3726,
31,
6667,
37,
416,
255,
20,
20059,
88,
21,
159,
1464,
17,
2933,
22,
38,
292,
97,
9,
80,
25,
104,
13,
1,
49,
1,
849,
1,
118,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Silverlight development [Visual Studio 2008 vs Expression Blend]
===
I'm a .Net developer and want to get into developing Silverlight applications. I have VS 2008 but wanted to know if I should/need expression blend. What are pros/cons of having blend along side VS? | 0 | [
2,
1172,
3130,
522,
636,
20893,
1120,
570,
4611,
1803,
11138,
500,
800,
3726,
3726,
31,
22,
79,
21,
13,
9,
2328,
10058,
17,
259,
20,
164,
77,
3561,
1172,
3130,
3767,
9,
31,
57,
4611,
570,
47,
417,
20,
143,
100,
31,
378,
118,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can the Java File method "canWrite()" be trusted?
===
I have a Java application that monitors a folder for incoming XML files. When a new file is detected I need to test the file that it is not currently being updated and is closed. My thought is to use "fileName.canWrite();" to test this. Is there any issue with doing this? Is this a good way to test that a file has been completely written? Other ideas I am throwing around are;
Parse the incoming XML file and test that the closing tag is there.
Check for the EoF character.
I just am not sure that any of these methods will handle all scenario's.
| 0 | [
2,
92,
14,
8247,
3893,
2109,
13,
7,
1245,
23716,
5,
6,
7,
44,
9968,
60,
800,
3726,
3726,
31,
57,
21,
8247,
3010,
30,
18521,
21,
19294,
26,
17126,
23504,
6488,
9,
76,
21,
78,
3893,
25,
11968,
31,
376,
20,
1289,
14,
3893,
30,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you Schedule Index Updates in CouchDB
===
As far as I understand, CouchDB indexes are updated when a view is queried. Assuming there are more reads than writes, isn't this bad for scaling? How would I configure CouchDB to update indexes on writes, or better yet, on a schedule? | 0 | [
2,
184,
107,
42,
4345,
4348,
16779,
19,
4914,
9007,
800,
3726,
3726,
28,
463,
28,
31,
1369,
15,
4914,
9007,
4348,
160,
50,
6372,
76,
21,
1418,
25,
9386,
11942,
9,
11704,
80,
50,
91,
11137,
119,
6215,
15,
2532,
22,
38,
48,
896,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 a summary of my cvs conflicts when doing a cvs update on the command line?
===
Is there an easy way to get a conflict summary after running a `cvs update`?
I work on a large project and after doing some work I need to do an update. The list of changes coming back from the cvs update command is several pages long and I'd like to see only the list of conflicts (starts with 'C') repeated at the end of the cvs update command output.
The solution needs to work from the command line. | 0 | [
2,
184,
92,
31,
164,
21,
14740,
16,
51,
13,
12732,
18,
10344,
76,
845,
21,
13,
12732,
18,
11100,
27,
14,
1202,
293,
60,
800,
3726,
3726,
25,
80,
40,
2010,
161,
20,
164,
21,
2930,
14740,
75,
946,
21,
13,
1,
12732,
18,
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... |
How do you include/exclude a certain type of files under Subversion?
===
I'm getting confused with the include/exclude jargon and my actual SVN client doesn't seem to have (or I've been unable to find it easily) a simple option to add or remove a certain type of files for version control. Let's say for example I've added the entire Visual Studio folder, with its solutions, projects, debug files, et cétera, but I only want to version the actual source files. What would be the simplest way to do that?
Any comment would be much appreciated and thanks a lot in advance, | 0 | [
2,
184,
107,
42,
468,
118,
1706,
150,
17405,
21,
1200,
1001,
16,
6488,
131,
972,
10898,
60,
800,
3726,
3726,
31,
22,
79,
1017,
4230,
29,
14,
468,
118,
1706,
150,
17405,
5112,
4099,
17,
51,
3463,
13,
18,
16578,
6819,
1437,
22,
38... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Template Contraints C++
===
In C# we can define a generic type that imposes constraints on the types that can be used as the generic parameter. The following example illustrates the usage of generic constraints:
interface IFoo
{
}
class Foo<T> where T : IFoo
{
}
class Bar : IFoo
{
}
class Simpson
{
}
class Program
{
static void Main(string[] args)
{
Foo<Bar> a = new Foo<Bar>();
Foo<Simpson> b = new Foo<Simpson>(); // error CS0309
}
}
Is there a way we can impose constraints for template parameters in C++.
----------
C++0x has native support for this but I am talking about current standard C++. | 0 | [
2,
22894,
11805,
6391,
18,
272,
20512,
800,
3726,
3726,
19,
272,
5910,
95,
92,
9267,
21,
12733,
1001,
30,
18009,
18,
16747,
27,
14,
2551,
30,
92,
44,
147,
28,
14,
12733,
18906,
9,
14,
249,
823,
15620,
18,
14,
7514,
16,
12733,
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... |
Why doesn't VB.NET 9 have Automatic Properties like C# 3??
===
Would having a nice little feature that makes it quicker to write code like Automatic Properties fit very nicely with the mantra of VB.NET?
Something like this would work perfect:
Public Property FirstName() As String
Get
Set
End Property | 0 | [
2,
483,
1437,
22,
38,
13,
20468,
9,
2328,
561,
57,
6715,
3704,
101,
272,
5910,
203,
60,
60,
800,
3726,
3726,
83,
452,
21,
2210,
265,
1580,
30,
1364,
32,
21927,
20,
2757,
1797,
101,
6715,
3704,
2742,
253,
24050,
29,
14,
25060,
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... |
How do I find the location of my Python site-packages directory?
===
How do I find the location of my site-packages directory? | 0 | [
2,
184,
107,
31,
477,
14,
1474,
16,
51,
20059,
689,
8,
8573,
14465,
16755,
60,
800,
3726,
3726,
184,
107,
31,
477,
14,
1474,
16,
51,
689,
8,
8573,
14465,
16755,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Scale image down, but not up in latex
===
I have a command which includes an includegraphics command - I can pass an image to my command, and it will do some standard formatting for me before actually including the image. Some of the images that I'm including via this command are smaller than \textwidth, while some are larger. I'd like to scale the larger images down to \textwidth, while not scaling the smaller images up - this means I can't just do
\includegraphics[width=\textwidth]{img}
Is there a way to specify a maxwidth? Or, can I get the width of the image somehow so I can do something like
\ifthenelse{\imagewidth > \textwidth}{%
\includegraphics[width=\textwidth]{img}}{%
\includegraphics{img}}
| 0 | [
2,
3464,
1961,
125,
15,
47,
52,
71,
19,
456,
396,
800,
3726,
3726,
31,
57,
21,
1202,
56,
1103,
40,
468,
12084,
18,
1202,
13,
8,
31,
92,
1477,
40,
1961,
20,
51,
1202,
15,
17,
32,
129,
107,
109,
1236,
2595,
1203,
26,
55,
115,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 an array or list of ASP.NET checkboxlists
===
I know how to use the checkboxlist in ASP.NET to display options retrieved from a database. What I don't know how to do is to make this 2-dimensional. That is, I need a list of checkboxlists where I don't know how long the list is; both dimensions of the checkboxlist will be determined by
list of people (pulled from database)
list of tasks (pulled from database)
and the user of the web page will click in column/row to specify which people will be assigned which tasks.
Right now I'm thinking that my only option is to brute-force it by creating a table and populate each cell with its own checkbox. (yuck)
Is there a more elegant way to create a 2-dimensional array of checkboxes with labels for both rows and columns? | 0 | [
2,
184,
107,
31,
1600,
40,
7718,
54,
968,
16,
28,
306,
9,
2328,
2631,
5309,
5739,
18,
800,
3726,
3726,
31,
143,
184,
20,
275,
14,
2631,
5309,
5739,
19,
28,
306,
9,
2328,
20,
3042,
6368,
3685,
37,
21,
6018,
9,
98,
31,
221,
22... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How would you implement MVC in a WindowsForms application?
===
I don't develop too many desktop / Windows Forms applications, but it had occurred to me that there may be some benefit to using the MVC (Model View Controller) pattern for Windows Forms .NET development.
Has anyone implemented MVC in Windows Forms? If so, do you have any tips on the design? | 0 | [
2,
184,
83,
42,
8713,
307,
8990,
19,
21,
1936,
4190,
18,
3010,
60,
800,
3726,
3726,
31,
221,
22,
38,
2803,
266,
151,
17404,
13,
118,
1936,
1997,
3767,
15,
47,
32,
41,
2437,
20,
55,
30,
80,
123,
44,
109,
4234,
20,
568,
14,
30... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Router to handle multiple public IP addresses.
===
I am presently running several website and a mail server from my home network. I have a business DSL account with 8 public IP addresses (1 by itself, and 7 in a block). To handle routing/firewall/gateway, I am presently using RRAS, DNS, & DHCP from Windows 2003 running on a ancient (circa 2001) PC -- which I suspect is going to fail any time now.
What I would like to do is replace that with a simple router. Have a consumer model LinkSys Wifi-router, which I'm presently just using as an access point (don't have the model number handy, but it's one of their standard models). It seems to be able to handle all the NAT/firewall/DHCP tasks -- except for handling routing the multiple public addresses. (e.g., I need x.x.x.123, port 21 getting to one machine, but port 80 of x.x.x.123 & x.x.x.124 to going to another, and x.x.x.123, port 5000 to still another etc).
So my questions are: <ol>
<li>Can this be done with standard Linksys router, which they just don't explain in the consumer manual?</li>
<li>Can this be done ... if I replace the firmware with a community/OS version (and if so, which one?</li>
<li>If neither of the above, can someone recommend a profession router (preferably with wifi) that does do this, which is close to a consumer level price point.</li>
<li>Alternately, is there a reliable OS/3rd party replacement to RRAS which handles this (since RRAS is the part causing the most trouble)</li>
<li>Alternate-Alternately, can someone point to a VERY simple HOWTO to doing this (ie. follow these steps and forget about it), to installing a LINUX system to do this) (since I assume I can run Linux longer on the old machine)? | 0 | [
2,
858,
139,
20,
3053,
1886,
317,
15735,
12636,
9,
800,
3726,
3726,
31,
589,
14431,
946,
238,
2271,
17,
21,
4216,
8128,
37,
51,
213,
982,
9,
31,
57,
21,
508,
13,
43,
18,
255,
2176,
29,
469,
317,
15735,
12636,
13,
5,
165,
34,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 magic illegal filenames for various platforms?
===
I'm not asking about general syntactic rules for file names. I mean gotchas that jump out of nowhere and bite you. For example, trying to name a file "COM<n>" on Windows? | 0 | [
2,
98,
50,
2154,
5143,
3893,
7259,
18,
26,
617,
6843,
60,
800,
3726,
3726,
31,
22,
79,
52,
3379,
88,
297,
6063,
6981,
1786,
1761,
26,
3893,
1817,
9,
31,
884,
330,
1651,
18,
30,
3936,
70,
16,
7651,
17,
5804,
42,
9,
26,
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... |
Is there an Application to Create Regular Expression Out of Text by Selecting Wanted Area?
===
I hope this is programmer-related question. I'm in the hobby business of C# programming. For my own purposes I need to parse html files and the best idea is..regular expression. As many found out, it's quite time consuming to learn them and thus I'm quite interested if you know about some application that would be able to take **input** (piece of any code), **understand what i need** (by Me selecting a piece of the code I need to "cut out"), and **give me the proper regular expression** for it or more options.
As I've heard, Regex is a little science of itself, so it might not be as easy as I'd imagine. | 0 | [
2,
25,
80,
40,
3010,
20,
1600,
1290,
1803,
70,
16,
1854,
34,
20764,
417,
217,
60,
800,
3726,
3726,
31,
1376,
48,
25,
17968,
8,
6203,
1301,
9,
31,
22,
79,
19,
14,
18229,
508,
16,
272,
5910,
3143,
9,
26,
51,
258,
4612,
31,
376... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 copy and paste code without rich text formatting?
===
I used to often find myself coping a piece of code from a website/Word document etc only to discover that when doing Paste I would end up with the desired code plus some extra html tags/text, basically extra formatting information.
To get rid of that extra ballast I would paste the text to the Notepad and then copy it again and then paste to the desired destination.
Pretty recently I discovered a simple and free tool for Windows called [PureText][1] that allows me to cut the Notepad step. It basically adds an extra keyboard shortcut e.g WinKey + V that will do the Paste action without formatting; just pure text.
I find it very handy.
I was wondering what approach would you use yourselves? Are they any better/easier to use tools around?
[1]: http://www.stevemiller.net/puretext/ | 0 | [
2,
184,
20,
4344,
17,
640,
62,
1797,
366,
2042,
1854,
2595,
1203,
60,
800,
3726,
3726,
31,
147,
20,
478,
477,
992,
5326,
68,
21,
1855,
16,
1797,
37,
21,
2271,
118,
9587,
4492,
2722,
104,
20,
6297,
30,
76,
845,
640,
62,
31,
83,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the nearest substitute for a function pointer in Java?
===
I have a method that's about 10 lines of code. I want to create more methods that do the exact same thing except for a calculation that's going to change one line of code. This is a perfect application for passing in a function pointer to replace that one line, but Java doesn't have function pointers. What's my best alternative? | 0 | [
2,
98,
22,
18,
14,
6557,
6558,
26,
21,
1990,
454,
106,
19,
8247,
60,
800,
3726,
3726,
31,
57,
21,
2109,
30,
22,
18,
88,
332,
1560,
16,
1797,
9,
31,
259,
20,
1600,
91,
3195,
30,
107,
14,
5340,
205,
584,
1613,
26,
21,
19644,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Change datatype when importing Excel file into Access
===
Is there any way to change the defaulted datatype when importing an Excel file into Access? (i'm using Access 2003, by the way)
I know that I sometimes have the freedom to assign any datatype to each column that is being imported, but that could only be when I'm importing non-Excel files.
For example, I just tried importing a large-ish Excel file (12000+ rows, ~200 columns) in Access where column #105 (or something similar) was filled with mostly numbers (codes: 1=foo, 2=bar, etc), though there are a handful of alpha codes in there too (A=boo, B=far, etc). Access assumed it was a Number datatype (even after I changed the Format value in the Excel file itself) and so gave me errors on those alpha codes. If I had been allowed to change the datatype on import, it would have saved me some trouble.
Am I asking for something that Access just won't do, or am I missing something? Thanks. | 0 | [
2,
753,
1054,
4474,
76,
9010,
68,
20700,
3893,
77,
1381,
800,
3726,
3726,
25,
80,
186,
161,
20,
753,
14,
20173,
1054,
4474,
76,
9010,
68,
40,
20700,
3893,
77,
1381,
60,
13,
5,
49,
22,
79,
568,
1381,
973,
15,
34,
14,
161,
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... |
Build sequencing when using distributed version control
===
Right now, we are using Perforce for version control. It has the handy feature of a strictly increasing change number that we can use to refer to builds, eg "you'll get the bugfix if your build is at least 44902".
I'd like to switch over to using a distributed system (probably git) to make it easier to branch and to work from home. (Both of which are perfectly possible with Perforce, but the git workflow has some advantages.) So although "tributary development" would be distributed and not refer to a common revision sequencing, we'd still maintain a master git repo that all changes would need to feed into before a build was created.
What's the best way to preserve strictly increasing build ids? The most straightforward way I can think of is to have some sort of post-commit hook that fires off whenever the master repo gets updated, and it registers (the hash of) the new tree object (or commit object? I'm new to git) with a centralized database that hands out ids. (I say "database", but I'd probably do it with git tags, and just look for the next available tag number or something. So the "database" would really be .git/refs/tags/build-id/.)
This is workable, but I'm wondering if there is an easier, or already-implemented, or standard/"best practice" way of accomplishing this.
| 0 | [
2,
1895,
25673,
76,
568,
4387,
615,
569,
800,
3726,
3726,
193,
130,
15,
95,
50,
568,
416,
8774,
26,
615,
569,
9,
32,
63,
14,
20277,
1580,
16,
21,
10369,
3425,
753,
234,
30,
95,
92,
275,
20,
5017,
20,
1895,
18,
15,
12369,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How does theming for ziya charts work?
===
I'm implementing charts using [The Ziya Charts Gem][1]. Unfortunately, the documentation isn't really helpful or I haven't had enough coffee to figure out theming. I know I can set a theme using
chart.add(:theme, 'whatever')
Problem: I haven't found any predefined themes, nor have I found a reference to the required format.
[1]: http://www.ziya.liquidrail.com/ | 0 | [
2,
184,
630,
14,
3863,
26,
2052,
4269,
5158,
170,
60,
800,
3726,
3726,
31,
22,
79,
17333,
5158,
568,
636,
124,
2052,
4269,
5158,
8551,
500,
2558,
165,
500,
9,
6200,
15,
14,
13945,
2532,
22,
38,
510,
15600,
54,
31,
2933,
22,
38,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Specifying a VC++ Redistributable version for ClickOnce prerequisite
===
My ClickOnce application uses a third party tool that requires the Visual C++ 2005 redistributable. The third party tool will not work if only the VC++ 2008 redistributable is installed. However, in Visual Studio 2008, the ClickOnce prerequisites do not allow a version to be specified for the VC++ redistributable; it will add a VC++ 2008 prerequisite, which makes sense most of the time. However, in this situation, an earlier version is required. ClickOnce is required, so merge modules are out of the question. Any ideas of how to specify the version? | 0 | [
2,
19077,
68,
21,
13,
8990,
20512,
402,
403,
13202,
5924,
615,
26,
10840,
13120,
782,
99,
3003,
9097,
800,
3726,
3726,
51,
10840,
13120,
3010,
2027,
21,
422,
346,
5607,
30,
4781,
14,
3458,
272,
20512,
812,
402,
403,
13202,
5924,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the meaning and impication of one-element-too-large array/queue?
===
just wondering what it is. | 0 | [
2,
98,
25,
14,
1813,
17,
5420,
596,
857,
16,
53,
8,
27567,
8,
8175,
8,
11312,
7718,
118,
2005,
4185,
60,
800,
3726,
3726,
114,
5712,
98,
32,
25,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Handling file paths cross platform
===
Do any C++ GNU standalone classes exist which handle paths cross platform? My applications build on Windows and LInux. Our configuration files refer to another file in a seperate directory. I'd like to be able to read the path for the other configuration file into a class which would work on both Linux or Windows.
Which class would offer the smallest footprint to translate paths to use on either system? Thanks | 0 | [
2,
7988,
3893,
12074,
919,
2452,
800,
3726,
3726,
107,
186,
272,
20512,
26092,
26986,
2684,
3182,
56,
3053,
12074,
919,
2452,
60,
51,
3767,
1895,
27,
1936,
17,
13024,
9,
318,
8091,
6488,
5017,
20,
226,
3893,
19,
21,
10332,
106,
1373... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Advice on buying a LCD monitor for development
===
I still use a 19" CRT monitor for my development (both at home and work), but now I'm looking for a wide-screen LCD monitor as my next purchase.
As much as I look into it, I can't really find one that pleases me. The problem is that the LCD grid (the black lines in-between individual pixels) confuses me. CRT monitor don't have that problem. Current resolutions (1440x900 on 19", 1680x1050 on 22" or 1920x1200 on 24") have large pixel pitch values and make the grid too visible.
Only 20" monitors @ 1680x1050 seem OK, but I would like to have a larger one. The best should be a 22" monitor with the resolution of the current 24" ones. But I only know one like that: It's the Lenovo L220X, on the $355 to $480 range. Pricey.
Apart from the twin-monitor scenario, no perfect match seems to exist for a single-monitor setup.
What is your advice?
| 4 | [
2,
4978,
27,
9459,
21,
26827,
7626,
26,
522,
800,
3726,
3726,
31,
174,
275,
21,
732,
7,
6186,
38,
7626,
26,
51,
522,
13,
5,
8110,
35,
213,
17,
170,
6,
15,
47,
130,
31,
22,
79,
699,
26,
21,
1051,
8,
7187,
26827,
7626,
28,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to retrieve namespaces in XML files using Xpath
===
I have an XML file that starts like this:
<Elements name="Entities" xmlns="XS-GenerationToolElements">
I'll have to open a lot of these files. Each of these have a different namespace but will only have one namespace at a time (I'll never find two namespaces defined in one xml file).
Using XPath I'd like to have an automatic way to add the given namespace to the namespace manager.
So far, i could only get the namespace by parsing the xml file but I have a XPathNavigator instance and it should have a nice and clean way to get the namespaces, right?
-- OR --
Given that i only have one namespace, somehow make XPath use the only one that is present in the xml, thus avoiding cluttering the code by always appending the namespace.
Thank you very much in advance,
I'd be glad to give more details, if necessary,
Best Regards,
Luís | 0 | [
2,
184,
20,
11917,
204,
5582,
18,
19,
23504,
6488,
568,
993,
8353,
800,
3726,
3726,
31,
57,
40,
23504,
3893,
30,
3244,
101,
48,
45,
13,
1,
27567,
18,
204,
3726,
7,
2291,
3808,
7,
23504,
2172,
3726,
7,
396,
18,
8,
12546,
20799,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I configure a project to use latest Derby DB version (10.4)?
===
Every time I try to run a small application that uses a Derby DB I get this error message:
>Message: Database at /path/to/db/TheDB has an incompatible format with the current version of the software. The database was created by or upgraded by version 10.4.
| 0 | [
2,
184,
107,
31,
1065,
15951,
21,
669,
20,
275,
5736,
6473,
13,
9007,
615,
13,
5,
1036,
9,
300,
6,
60,
800,
3726,
3726,
352,
85,
31,
1131,
20,
485,
21,
284,
3010,
30,
2027,
21,
6473,
13,
9007,
31,
164,
48,
7019,
2802,
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... |
Specifying "all odd values" in crontab?
===
In crontab, I can use an asterisk to mean every value, or "*/2" to mean every even value.
Is there a way to specify every **odd** value? (Would something like "1+*/2" work?) | 0 | [
2,
19077,
68,
13,
7,
1233,
4210,
4070,
7,
19,
13,
19587,
15783,
60,
800,
3726,
3726,
19,
13,
19587,
15783,
15,
31,
92,
275,
40,
28,
591,
20989,
20,
884,
352,
1923,
15,
54,
13,
7,
2483,
15718,
7,
20,
884,
352,
166,
1923,
9,
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... |
Is it better working on a single technology or working on different ones??
===
I have always worked on websphere commerce..and recently got an offer to work in a plain J2EE project. I am not sure if I should go ahead or not. **Which is better in the long term??** staying in the technology you always worked on and mastering it or swapping technologies n languages every now and then. | 4 | [
2,
25,
32,
574,
638,
27,
21,
345,
1099,
54,
638,
27,
421,
53,
18,
60,
60,
800,
3726,
3726,
31,
57,
550,
577,
27,
2741,
14079,
5577,
9,
9,
290,
1989,
330,
40,
1994,
20,
170,
19,
21,
3748,
487,
135,
2851,
669,
9,
31,
589,
52... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
which book to follow to improve skills on algorithm analysis?
===
which book to follow to improve skills on algorithm analysis? | 0 | [
2,
56,
360,
20,
1740,
20,
3545,
3207,
27,
9083,
2495,
60,
800,
3726,
3726,
56,
360,
20,
1740,
20,
3545,
3207,
27,
9083,
2495,
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... | [
1,
1,
1,
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... |
C# serialization and event for data binding are lost
===
I have already posted something similar [here][1] but I would like to ask the question more general over here.
Have you try to serialize an object that implement INotifyPropertyChanged and to get it back from serialization and to bind it to a DataGridView? When I do it, I have no refresh from the value that change (I need to minimize the windows and open it back).
Do you have any trick?
[1]: http://stackoverflow.com/questions/118051/c-grid-binding-not-update | 0 | [
2,
272,
5910,
5956,
1829,
17,
807,
26,
1054,
8728,
50,
529,
800,
3726,
3726,
31,
57,
614,
6054,
301,
835,
636,
6836,
500,
2558,
165,
500,
47,
31,
83,
101,
20,
1349,
14,
1301,
91,
297,
84,
235,
9,
57,
42,
1131,
20,
5956,
2952,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why is a SQL float different from a C# float
===
Howdy, I have a DataRow pulled out of a DataTable from a DataSet. I am accessing a column that is defined in SQL as a float datatype. I am trying to assign that value to a local variable (c# float datatype) but am getting an InvalidCastExecption
DataRow exercise = _exerciseDataSet.Exercise.FindByExerciseID(65);
_AccelLimit = (float)exercise["DefaultAccelLimit"];
Now, playing around with this I did make it work but it did not make any sense and it didn't feel right.
_AccelLimit = (float)(double)exercise["DefaultAccelLimit"];
Can anyone explain what I am missing here?
| 0 | [
2,
483,
25,
21,
4444,
255,
11510,
421,
37,
21,
272,
5910,
11510,
800,
3726,
3726,
184,
1851,
15,
31,
57,
21,
1054,
5417,
881,
70,
16,
21,
1054,
5924,
37,
21,
1054,
3554,
9,
31,
589,
1381,
68,
21,
4698,
30,
25,
2811,
19,
4444,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there an Eclipse add-on to build a python executable for distribution?
===
I want to build an executable to distribute to people without python installed on their machines.
Is there an add-on to Eclipse that allows this? I couldn't find one.
If not, do you have a builder that you recommend that would make it easy to go to my python project directory created in Eclipse, and bundle it all up?
Thanks,
Mark | 0 | [
2,
25,
80,
40,
11652,
3547,
8,
218,
20,
1895,
21,
20059,
1396,
17194,
5924,
26,
2523,
60,
800,
3726,
3726,
31,
259,
20,
1895,
40,
1396,
17194,
5924,
20,
14751,
20,
148,
366,
20059,
4066,
27,
66,
6035,
9,
25,
80,
40,
3547,
8,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are some problems old C++ textbooks may have?
===
I've been trying to pick up C++ and I have an old textbook a professor gave me awhile ago. The book was published in 1998 and I've been reading through it.
The first area that I ran into problems was in the graphic section. The textbook says to use the following library.
#include <graphics.h>
This didn't work with the system I'm on so I did some research. I found out that the library is very outdated and not used anymore.
So the problem I'm facing is whether or not to keep trying to learn from the textbook or switch to an online tutorial, or even buy a brand new textbook.
I really prefer to learn from physical media, like textbooks, as opposed to learning from a web page.
Am I going to have many more problems if I continue trying to learn from the textbook? If so, what are they?
Also, what are your opinion on keep the textbook or just tossing it? | 0 | [
2,
98,
50,
109,
1716,
315,
272,
20512,
21926,
123,
57,
60,
800,
3726,
3726,
31,
22,
195,
74,
749,
20,
2036,
71,
272,
20512,
17,
31,
57,
40,
315,
19059,
21,
1032,
492,
55,
21,
10144,
1464,
9,
14,
360,
23,
467,
19,
1315,
17,
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... |
How can I downgrade the format of a Subversion repositiory?
===
Is there any way to down-format a Subversion repository to avoid messages like this:
<pre>
svn: Expected format '3' of repository; found format '5'
</pre>
This happens when you access repositories from more than one machine, and you aren't able to use a consistent version of Subversion across all of those machines.
| 0 | [
2,
184,
92,
31,
125,
8031,
14,
2595,
16,
21,
972,
10898,
302,
14882,
1388,
7159,
60,
800,
3726,
3726,
25,
80,
186,
161,
20,
125,
8,
23588,
21,
972,
10898,
24869,
20,
2658,
7561,
101,
48,
45,
13,
1,
3515,
1,
13,
18,
16578,
45,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can you add additional logic to type resolution at runtime?
===
Is there a generic way, without creating and managing your own CLR host, to take over locating and loading a type if that type is not found?
**The following is just an example. In your rush to be the first answer, don't suggest the new add-in framework or the MEF as a solution to my question.**
An example would be a sample with add-ins. Your app reads a file in that lists the types to use for a particular function. The app attempts to instantiate those types. If they aren't already currently loaded in the appdomain, the method fails. I'm looking for an event I can handle or a component I can provide my own implementation for that will allow me to gracefully handle these situations and provide additional logic for loading these assemblies.
| 0 | [
2,
184,
92,
42,
3547,
1351,
7085,
20,
1001,
4302,
35,
485,
891,
60,
800,
3726,
3726,
25,
80,
21,
12733,
161,
15,
366,
2936,
17,
5616,
154,
258,
10842,
139,
2015,
15,
20,
247,
84,
27917,
17,
12797,
21,
1001,
100,
30,
1001,
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... |
What to do when IE's moveToElementText spits out an Invalid Argument exception
===
We've written a plugin to the Xinha text editor to handle footnotes. You can take a look at:
[http://www.nicholasbs.com/xinha/examples/Newbie.html][1]
In order to handle some problems with the way Webkit and IE handle links at the end of lines (there's no way to use the cursor to get out of the link on the same line) we insert a blank element and move the selection to that, than collapse right. This works fine in Webkit and Gecko, but for some reason moveToElementText is spitting out an Invalid Argument exception. It doesn't matter which element we pass to it, the function seems to be completely broken. In other code paths, however, this function seems to work.
To reproduce the error using the link above, click in the main text input area, type anything, then click on the yellow page icon with the green plus sign, type anything into the lightbox dialog, and click on Insert. An example of the code that causes the problem is below:
if (Xinha.is_ie)
{
var mysel = editor.getSelection();
var myrange = doc.body.createTextRange();
myrange.moveToElementText(newel);
} else
{
editor.selectNodeContents(newel, false);
}
The code in question lives in svn at:
[https://svn.openplans.org/svn/xinha_dev/InsertNote][2]
This plugin is built against a branch of Xinha available from svn at:
[http://svn.xinha.webfactional.com/branches/new-dialogs][3]
[1]: http://www.nicholasbs.com/xinha/examples/Newbie.html
[2]: https://svn.openplans.org/svn/xinha_dev/InsertNote
[3]: http://svn.xinha.webfactional.com/branches/new-dialogs | 0 | [
2,
98,
20,
107,
76,
13,
660,
22,
18,
780,
262,
27567,
11969,
9286,
18,
70,
40,
16671,
5476,
5391,
800,
3726,
3726,
95,
22,
195,
642,
21,
10922,
108,
20,
14,
17466,
994,
1854,
1835,
20,
3053,
29305,
18,
9,
42,
92,
247,
21,
361,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How well does Bugzilla work for managing Scrum projects?
===
We have MS Sharepoint -- which isn't all bad for managing a task list. The data's publicly available, people are notified of changes and assignments.
I think that Bugzilla might be a little easier for management and reporting purposes. While there are some nice Open Source Scrum management tools, I've used up a lot of my political capital and can't ask for too much more than what we've got now. Money isn't the object -- obviously -- it's the idea that my team has too many specialized tools.
Will Bugzilla work out as a more general project management tool -- outside the bug fix use cases?
Will I be bitterly disappointed and wish I'd downloaded something else and made my case for a better project management tool?
| 0 | [
2,
184,
134,
630,
6256,
380,
3247,
170,
26,
5616,
26562,
2314,
60,
800,
3726,
3726,
95,
57,
4235,
1891,
3132,
13,
8,
8,
56,
2532,
22,
38,
65,
896,
26,
5616,
21,
3005,
968,
9,
14,
1054,
22,
18,
6713,
904,
15,
148,
50,
22904,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 to use Hibernate/JPA/Toplink?
===
Right now I'm making an extremely simple website- about 5 pages. Question is if it's overkill and worth the time to integrate some sort of database mapping solution or if it would be better to just use plain old JNDI. I'll have maybe a dozen things I need to read/write from the database. I guess I have a basic understanding of these technologies but it would still take a lot of referring to the documentation. Anyone else faced with the decision before? | 0 | [
2,
76,
20,
275,
4148,
2102,
8820,
118,
728,
1060,
118,
3880,
6258,
60,
800,
3726,
3726,
193,
130,
31,
22,
79,
544,
40,
3898,
1935,
2271,
8,
88,
331,
4434,
9,
1301,
25,
100,
32,
22,
18,
84,
7577,
17,
2715,
14,
85,
20,
18399,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Real (Great Circle) distance in PostGIS with lat/long SRID?
===
I'm using a lat/long SRID in my PostGIS database (-4326). I would like to find the nearest points to a given point in an efficient manner. I tried doing an
ORDER BY ST_Distance(point, ST_GeomFromText(?,-4326))
which gives me ok results in the lower 48 states, but up in Alaska it gives me garbage. Is there a way to do real distance calculations in PostGIS, or am I going to have to give a reasonable sized buffer and then calculate the great circle distances and sort the results in the code afterwards?
| 0 | [
2,
683,
13,
5,
6894,
2775,
6,
1583,
19,
678,
12469,
29,
14303,
118,
2701,
3103,
43,
60,
800,
3726,
3726,
31,
22,
79,
568,
21,
14303,
118,
2701,
3103,
43,
19,
51,
678,
12469,
6018,
13,
5,
8,
4644,
2409,
6,
9,
31,
83,
101,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.