unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
D (and Tango) on PowerPC Linux
===
It's hard to search for D using Google, so I wasn't able to find a good answer:
I have an old iBook G3 and I'd like to install Linux on it and use it to compile (and test) D programs written using Tango on it. Is this possible? Or hasn't anybody tried it, yet? After all the Mac port of GDC + Tango is broken in parts, too. | 0 | [
2,
13,
43,
13,
5,
290,
19434,
6,
27,
414,
5779,
13024,
800,
3726,
3726,
32,
22,
18,
552,
20,
2122,
26,
13,
43,
568,
8144,
15,
86,
31,
526,
22,
38,
777,
20,
477,
21,
254,
1623,
45,
31,
57,
40,
315,
31,
5199,
489,
240,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using database resources in Axiom Safe Request
===
I would like to know how to make use of an Axiom database resource inside a Safe function.
Right now I'm just handling the connection manually but I know it would be better to use the already defined resources. | 0 | [
2,
568,
6018,
2566,
19,
21148,
1834,
3772,
800,
3726,
3726,
31,
83,
101,
20,
143,
184,
20,
233,
275,
16,
40,
21148,
6018,
6577,
572,
21,
1834,
1990,
9,
193,
130,
31,
22,
79,
114,
7988,
14,
2760,
23671,
47,
31,
143,
32,
83,
44,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Boost Range Library: Traversing Two Ranges Sequentially
===
Boost range library (http://www.boost.org/doc/libs/1_35_0/libs/range/index.html) allows us to abstract a pair of iterators into a range. Now I want to combine two ranges into one, viz:
given two ranges r1 and r2, define r which traverses [r1.begin(), r1.end()[ and then [r2.begin(), r2.end()[. Is there some way to define r as a range using r1 and r2? | 0 | [
2,
10419,
978,
1248,
45,
19501,
68,
81,
9230,
1353,
5495,
10107,
102,
800,
3726,
3726,
10419,
978,
1248,
13,
5,
21127,
6903,
6483,
9,
10858,
384,
9,
5583,
118,
13799,
118,
8326,
18,
11698,
1,
2599,
1,
15928,
8326,
18,
118,
8366,
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... |
Looking for a regular expression including aplhanumeric + "&" and ";"
===
Here's the problem:
split=re.compile('\\W*')
works fine when dealing with regular words, but there are occasions where I need the expression to include words like **käyttäj&aml;auml;**.
What should I add to the regex to include the & and ; characters? | 0 | [
2,
699,
26,
21,
1290,
1803,
215,
21,
5727,
1841,
291,
22199,
2754,
13,
7,
1569,
7,
17,
13,
7,
73,
7,
800,
3726,
3726,
235,
22,
18,
14,
1448,
45,
2132,
3726,
99,
9,
11103,
3599,
5,
22,
1,
499,
2483,
22,
6,
693,
1123,
76,
57... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I distribute a WCF Peer to Peer application over the Internet?
===
Can someone point me in the right direction? I wish to distribute a WCF peer to peer cloud over the internet. So far I've seen examples of how it works on the same subnet. I wish to push it a little further.
| 0 | [
2,
184,
92,
31,
14751,
21,
11801,
410,
7617,
20,
7617,
3010,
84,
14,
2620,
60,
800,
3726,
3726,
92,
737,
454,
55,
19,
14,
193,
1400,
60,
31,
2536,
20,
14751,
21,
11801,
410,
7617,
20,
7617,
4005,
84,
14,
2620,
9,
86,
463,
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 a good tool for writing a user manual (help file), which integrates with version control
===
The people writing the user manual are not necessarily programmers, and they need a visual editor. A major issue is the internal format of the authoring tool; it should be readable text/html, so it's easy to compare versions of individual pages checked into version control. | 0 | [
2,
98,
25,
21,
254,
5607,
26,
1174,
21,
4155,
5132,
13,
5,
14593,
3893,
6,
15,
56,
18399,
18,
29,
615,
569,
800,
3726,
3726,
14,
148,
1174,
14,
4155,
5132,
50,
52,
9324,
17968,
18,
15,
17,
59,
376,
21,
3458,
1835,
9,
21,
394... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Transaction encapsulation of multi-process writes
===
I have a database scenario (i'm using Oracle) in which several processes make inserts into a table and a single process selects from it. The table is basically used as a intermediate storage, to which multiple processes (in the following called the Writers) write log events, and from which a single processes (in the following referred to as the Reader) reads the events for further processing. The Reader must read all events inserted into the table.
Currenly, this is done by each inserted record being assigned an id from an ascending sequence. The reader periodically selects a block of entries from the table where
the id is larger than the largest id of the proviously read block. E.g. something like:
SELECT
*
FROM
TRANSACTION_LOG
WHERE
id > (
SELECT
last_id
FROM
READER_STATUS
);
The problem with this approach is that since writers operate concurrently, rows are not always inserted in order according to their assigned id, even though these are assigned in sequentially ascending order. That is, a row with id=100 is sometimes written after a record with id=110, because the process writing the row with id=110 started after the processes writing the record id=100, but commited first. This can result in the Reader missing the row with id=100 if it has already read row with id=110.
Forcing the Writers to exclusive lock on the table would solve the problem as this would force them to insert sequentially and also for the Reader to wait for any outstanding commits. This, however, would probably not be very fast.
It is my thinking, that it would suffice for the Reader to wait for any outstanding Writer
commits before reading. That is, Writers may continue to operate concurrently as longs as the Reader does read until all writers have finished.
My question is this:
How can i instruct my reader process to wait for any outstanding commits of my writer processes? Any alternative suggesting to the above problem is also welcome.
| 0 | [
2,
12799,
1957,
4666,
18,
11123,
16,
1889,
8,
16835,
6215,
800,
3726,
3726,
31,
57,
21,
6018,
12705,
13,
5,
49,
22,
79,
568,
15759,
6,
19,
56,
238,
5102,
233,
14692,
18,
77,
21,
859,
17,
21,
345,
953,
5407,
18,
37,
32,
9,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Debugging a programmatically called function with GDB
===
I am debugging a piece of software for an ARM32. I have been able to programmatically call functions in GDB using `call`, or even `print`. The problem is that I cannot seem to be able to set a breakpoint on a function, and then call it programmatically. For example, if I do:
break test_function
call test_function()
then I get the error message
> The program being debugged stopped while in a function called from
> GDB. Evaluation of the expression containing the function. When the
> function is done executing, GDB will silently stop.
Is there a way to programmatically call a function using GDB *and* step through it? | 0 | [
2,
121,
16254,
2762,
21,
625,
6732,
1326,
227,
1990,
29,
489,
9007,
800,
3726,
3726,
31,
589,
121,
16254,
2762,
21,
1855,
16,
2306,
26,
40,
813,
3125,
9,
31,
57,
74,
777,
20,
625,
6732,
1326,
645,
3719,
19,
489,
9007,
568,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to send a FB request with Javascript sdk entering a page?
===
I would send a request with FB.ui when the user enter to a particular .php page.
I use this script to async loading the javascript SDK:
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR_APP_ID', // App ID
channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
function sendRequestToRecipients(user_id) {
FB.ui({method: 'apprequests',
message: 'My Great Request',
to: user_id,
}, requestCallback);
}
</script>
Then, I try to call the function sendRequestToRecipients() inside the <body> tag with onLoad function:
<body onLoad="sendRequestToRecipients('0000'); return false;">
But I receive 2 errors "Unexpected identifier", and nothing happens.
Also, if I delete the onload from body and I manually call the sendRequestToRecipients function with a button
<input type="button"
onclick="sendRequestToRecipients('0000'); return false;"
value="Send"
/>
Everything goes perfectly!
Any help?? | 0 | [
2,
184,
20,
2660,
21,
13,
13478,
3772,
29,
8247,
8741,
13,
18,
43,
197,
4604,
21,
2478,
60,
800,
3726,
3726,
31,
83,
2660,
21,
3772,
29,
13,
13478,
9,
5661,
76,
14,
4155,
2830,
20,
21,
1498,
13,
9,
26120,
2478,
9,
31,
275,
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... |
EF WillCascadeOnUpdate
===
Is there a way in ef migrations to set the Foreign GUID key to cascade on update?
If I have two db's with a user table and the same user with different primary keys, I would like to set the primary GUID key of one to the other.
Basically I'm trying to avoid having to create another column between them to check for syncing. | 0 | [
2,
11599,
129,
5949,
7257,
218,
576,
8209,
800,
3726,
3726,
25,
80,
21,
161,
19,
11599,
8443,
18,
20,
309,
14,
1228,
9457,
43,
1246,
20,
13542,
27,
11100,
60,
100,
31,
57,
81,
13,
9007,
22,
18,
29,
21,
4155,
859,
17,
14,
205,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
get the room by id
===
I am working on a hotel Reservation Project in MVC 3
Here I display the rooms:
![enter image description here][1]
When i click to reserve a romm i get here :
![enter image description here][2]
[1]: http://i.stack.imgur.com/gNebK.png
[2]: http://i.stack.imgur.com/B80Fo.png
But what i want to do is to get the number of the room i selected directly in the Reservation form room box.
Here is my Create view for reservation:
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Reservation</legend>
<div class="editor-label">
@Html.LabelFor(model => model.Room_ID, "Room")
</div>
<div class="editor-field">
@Html.DropDownList("Room_ID", String.Empty)
@Html.ValidationMessageFor(model => model.Room_ID)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Guest_ID, "Client")
</div>
<div class="editor-field">
@Html.DropDownList("Guest_ID", String.Empty)
@Html.ValidationMessageFor(model => model.Guest_ID)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Data_Check_in)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Data_Check_in)
@Html.ValidationMessageFor(model => model.Data_Check_in)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Data_Check_out)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Data_Check_out)
@Html.ValidationMessageFor(model => model.Data_Check_out)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Preference_ID, "Preferinte")
</div>
<div class="editor-field">
@Html.DropDownList("Preference_ID", String.Empty)
@Html.ValidationMessageFor(model => model.Preference_ID)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Price)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Price)
@Html.ValidationMessageFor(model => model.Price)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Card_ID, "Card_de_credit")
</div>
<div class="editor-field">
@Html.DropDownList("Card_ID", String.Empty)
@Html.ValidationMessageFor(model => model.Card_ID)
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
} | 0 | [
2,
164,
14,
337,
34,
4924,
800,
3726,
3726,
31,
589,
638,
27,
21,
1454,
8733,
669,
19,
307,
8990,
203,
235,
31,
3042,
14,
3662,
45,
13,
187,
2558,
13679,
1961,
5318,
235,
500,
2558,
165,
500,
76,
31,
10840,
20,
2126,
21,
8421,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 open source survey engine to use for loads of automation?
===
I need to create a survey system for a school which has one survey per-subject-per-year to ask the students their opinions. It needs to be able to:
- create surveys using scripts
- use LDAP for accounts
- use an external database to fetch user entitlements to the surveys
- be fully themeable
I am not looking for something which offers these features out of the box, but rather the scope to fairly easily build them in. I have had a look around and one of the most popular survey engines seems to be lime survey, but this doesn't seem to be geared towards the user account side of things.
Does anyone know of a good survey engine for me to use?
Thanks | 4 | [
2,
56,
368,
1267,
3431,
1406,
20,
275,
26,
19069,
16,
23217,
60,
800,
3726,
3726,
31,
376,
20,
1600,
21,
3431,
329,
26,
21,
116,
56,
63,
53,
3431,
416,
8,
28743,
8,
1432,
8,
731,
20,
1349,
14,
573,
66,
11900,
9,
32,
2274,
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... |
Access Excel Programmatically
===
I am given a huge excel file with a great deal of data and formulas and I need to access the functionality implemented therein to create a web service running on MacOSX. I tried at first to use POI to access its functionality from Java but unfortunately POI does not support some functions like MINVERSE, TRANSPOSE, MMULT and others and I found it particularly difficult to implement them (also see [this question][1]).
Is there a programmatic way to access the excel sheet? I found RCOMClient for R but it seems it works onl on Windows. Perl, Python, R, Octave, C++, Java or anything if fine provided that it provided full functionality over Excel formulas.
[1]: http://stackoverflow.com/questions/10298512/apache-poi-how-to-register-a-function/10306350 | 0 | [
2,
1381,
20700,
625,
6732,
1326,
800,
3726,
3726,
31,
589,
504,
21,
2329,
20700,
3893,
29,
21,
374,
1183,
16,
1054,
17,
3729,
18,
17,
31,
376,
20,
1381,
14,
18548,
6807,
80,
108,
20,
1600,
21,
2741,
365,
946,
27,
1572,
759,
396,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a way to have an <xsl:element> tag render *only* if its content template has either children or raw data i.e. complex or simple types?
===
Folks,
**Is there a way to have an <xsl:element> tag render *only* if its content template has either children or raw data i.e. complex or simple types?**
Assume my XML Data looks like this:
## Data ##
<Root>
<Data>stringdata</Data>
</Root>
and my XSLT looks like this:
## XSLT ##
<xsl:template match="/Root">
<xsl:element name="Empty">
<xsl:choose>
<xsl:when test="Data = 'stringdata'">
<xsl:value-of select="Data"/>
</xsl:when>
</xsl:choose>
</xsl:element>
</xsl:template>
When the <Data> does NOT contain "stringdata", then an empty element named <Empty> will be displayed. Short of wrapping <Empty> with a choose or an if statement, or designing a second transform to match on only those elements produced in the first transform that have data within them, how can I prevent <Empty> from being produced?
| 0 | [
2,
25,
80,
21,
161,
20,
57,
40,
13,
1,
396,
18,
255,
45,
27567,
1,
3383,
16535,
1637,
4965,
2483,
100,
82,
2331,
22894,
63,
694,
391,
54,
4333,
1054,
31,
9,
62,
9,
1502,
54,
1935,
2551,
60,
800,
3726,
3726,
14563,
15,
13,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How To Accept a File POST - ASP.Net MVC 4 WebAPI
===
I'm using asp.net mvc 4 webapi beta to build a rest service. I need to be able to accept POSTed images/files from client applications. Is this possible using the webapi? Below is how action I am currently using. Does anyone know of an example how this should work?
[HttpPost]
public string ProfileImagePost(HttpPostedFile profileImage)
{
string[] extensions = { ".jpg", ".jpeg", ".gif", ".bmp", ".png" };
if (!extensions.Any(x => x.Equals(Path.GetExtension(profileImage.FileName.ToLower()), StringComparison.OrdinalIgnoreCase)))
{
throw new HttpResponseException("Invalid file type.", HttpStatusCode.BadRequest);
}
// Other code goes here
return "/path/to/image.png";
} | 0 | [
2,
184,
20,
3440,
21,
3893,
678,
13,
8,
28,
306,
9,
2328,
307,
8990,
268,
95,
969,
2159,
800,
3726,
3726,
31,
22,
79,
568,
28,
306,
9,
2328,
307,
8990,
268,
95,
969,
2159,
8434,
20,
1895,
21,
760,
365,
9,
31,
376,
20,
44,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I use HTTP Basic Authentication with Django?
===
We have a website running on Apache, access to which has a number of static pages protected via HTTP Basic authentication.
I've written a new part of the site with Django using Django's built in support for user management.
The problem I have is that users have to log in once via the HTTP Basic authentication and then again using a Django login form. This both clumsy and very confusing for users.
I was wondering if anyone had found a way to make Django log a user in using the HTTP Basic authentication information.
I not expecting to pass a password to Django, but rather if a user `dave` has been authenticated by Apache then they should be automatically logged into Django as `dave` too.
(One option would be to make Apache and Django share a user store to ensure common usernames and passwords but this would still involve two login prompts which is what I'm trying to avoid.)
| 0 | [
2,
92,
31,
275,
7775,
2125,
27963,
29,
3857,
14541,
60,
800,
3726,
3726,
95,
57,
21,
2271,
946,
27,
17140,
15,
1381,
20,
56,
63,
21,
234,
16,
12038,
4434,
3803,
1197,
7775,
2125,
27963,
9,
31,
22,
195,
642,
21,
78,
141,
16,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best way to search a MySQL database with PHP?
===
Say if I had a table of books in a MySQL database and I wanted to search the 'title' field for keywords (input by the user in a search field); what's the best way of doing this in PHP? Is the MySQL `LIKE` command the most efficient way to search? | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
2122,
21,
51,
18,
22402,
6018,
29,
13,
26120,
60,
800,
3726,
3726,
395,
100,
31,
41,
21,
859,
16,
964,
19,
21,
51,
18,
22402,
6018,
17,
31,
417,
20,
2122,
14,
13,
22,
22235,
22,
575,
26,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
tStringList passing in C# to Delphi DLL
===
I have a Delphi DLL with a function defined as:
function SubmitJobStringList(joblist: tStringList; var jobno: Integer): Integer;
I am calling this from C#. How do I declare the first parameter as a tStringList does not exist in C#. I currently have the declaration as:
[DllImport("opt7bja.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
public static extern int SubmitJobStringList(string[] tStringList, ref int jobno);
But when I call it I get a memory access violation exception.
Anyone know how to pass to a tStringList correctly from C#? | 0 | [
2,
13,
38,
11130,
5739,
2848,
19,
272,
5910,
20,
23030,
13,
43,
211,
800,
3726,
3726,
31,
57,
21,
23030,
13,
43,
211,
29,
21,
1990,
2811,
28,
45,
1990,
12298,
1636,
220,
11130,
5739,
5,
1636,
220,
5739,
45,
13,
38,
11130,
5739,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
middle click (new tabs) and javascript links
===
I am in charge of a website at work and recently I have added ajaxy requests to make it faster and more responsive. But it has raised an issue.
On my pages, there is an index table on the left, like a menu. Once you have clicked on it, it makes a request that fills the rest of the page. At anytime you can click on another item of the index to load a different page.
Before adding javascript, it was possible to middle click (open new tabs) for each item of the index, which allowed to have other pages loading while I was dealing with one of them.
But since I have changed all the links to be ajax requests, they now execute some javascript instead of being real links. So they are only opening empty tabs when I middle click on them.
Is there a way to combine both functionalities: links firing javascript when left clicked or new tabs when middle clicked?
Does it have to be some ugly javascript that catches every clicks and deal with them accordingly?
Thanks. | 0 | [
2,
772,
10840,
13,
5,
2681,
6523,
18,
6,
17,
8247,
8741,
6271,
800,
3726,
3726,
31,
589,
19,
1906,
16,
21,
2271,
35,
170,
17,
1989,
31,
57,
905,
20624,
93,
12279,
20,
233,
32,
4233,
17,
91,
13,
22153,
9,
47,
32,
63,
1127,
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... |
Microsoft JScript runtime error: 'this._postBackSettings.async' is null or not an object
===
I have report on my asp page and every time I change a filter and click view report, I get this error:
Microsoft JScript runtime error: 'this._postBackSettings.async' is null or not an object
I tried change the EnablePartialRendering="true" to EnablePartialRendering="false" but then people can't login on the site | 0 | [
2,
7099,
487,
8741,
485,
891,
7019,
45,
13,
22,
1565,
9,
1,
6962,
1958,
19831,
18,
9,
58,
9507,
150,
22,
25,
16203,
54,
52,
40,
3095,
800,
3726,
3726,
31,
57,
1330,
27,
51,
28,
306,
2478,
17,
352,
85,
31,
753,
21,
11945,
17,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Loading UTF-8 encoded dump into MySQL
===
I've been pulling my hear out over this problem for a few hours yesterday:
I've a database on MySQL 4.1.22 server with encoding set to "UTF-8 Unicode (utf8)" (as reported by phpMyAdmin). Tables in this database have default charset set to <b>latin2</b>. But, the web application (CMS Made Simple written in PHP) using it displays pages in <b>utf8</b>...
However screwed up this may be, it actually works. The web app displays characters correctly (mostly Czech and Polish are used).
I run: "mysqldump -u xxx -p -h yyy dbname > dump.sql". This gives me an SQL script which:
- looks perfect in any editor (like Notepad+) when displaying in <b>UTF-8</b> - all characters display properly
- all tables in the script have default charset set to <b>latin2</b>
- it has "/*!40101 SET NAMES latin2 */;" line at the beginning (among other settings)
Now, I want to export this database to another server running on MySQL 5.0.67, also with server encoding set to "UTF-8 Unicode (utf8)". I copied the whole CMS Made Simple installation over, copied the dump.sql script and ran "mysql -h ddd -u zzz -p dbname < dump.sql". After that, all the characters are scrambled when displaying CMSMS web pages.
I tried setting:
SET character\_set\_client = utf8;
SET character\_set\_connection = latin2;
And all combinations (just to be safe, even if it doesn't make any sense to me): latin2/utf8, latin2/latin2, utf8/utf8, etc. - doesn't help. All characters still scrambled, however sometimes in a different way :).
I also tried replacing all latin2 settings with utf8 in the script (set names and default charsets for tables). Nothing.
Are there any MySQL experts here who could explain in just a few words (I'm sure it's simple after all) how this whole encoding stuff really works? I read [9.1.4. Connection Character Sets and Collations](http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html) but found nothing helpful there.
Thanks,
Matt | 0 | [
2,
12797,
287,
11720,
8,
457,
13665,
11424,
77,
51,
18,
22402,
800,
3726,
3726,
31,
22,
195,
74,
3303,
51,
990,
70,
84,
48,
1448,
26,
21,
310,
974,
7124,
45,
31,
22,
195,
21,
6018,
27,
51,
18,
22402,
268,
9,
165,
9,
2287,
81... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
svn + repostiory location
===
I am about to set up a subversion server to be accessed via svn+ssh. I was wondering, where the *default* repository location is (on a unix box).
Do you put it in
/opt/svn
or
/home/svn
or
/usr/subversion
or even
/svn
or somewhere else? | 0 | [
2,
13,
18,
16578,
2754,
302,
6962,
49,
7159,
1474,
800,
3726,
3726,
31,
589,
88,
20,
309,
71,
21,
972,
10898,
8128,
20,
44,
12904,
1197,
13,
18,
16578,
2430,
18,
1635,
9,
31,
23,
5712,
15,
113,
14,
1637,
13862,
9708,
2483,
24869... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 happened to NUnit?
===
Why isn't this project maintained anymore? I love this app, however not updating it seems like a crime against all .Net developers. There are several items that I would love to add to it given the chance of a future release.
Can anyone share somthing I don't know? | 0 | [
2,
98,
1190,
20,
10210,
242,
60,
800,
3726,
3726,
483,
2532,
22,
38,
48,
669,
3926,
3375,
60,
31,
339,
48,
4865,
15,
207,
52,
71,
43,
1880,
32,
2206,
101,
21,
2237,
149,
65,
13,
9,
2328,
10168,
9,
80,
50,
238,
3755,
30,
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... |
Google 404 and .Net Custom Error Pages
===
This question has two parts really so even if you can help with just one part that will help me out a bit!
I've got an asp.net 2.0 website with a custom 404 page. When content is not found the site serves the custom 404 page with a query string addition of aspxerrorpath=/mauro.aspx. The 404 page itself is served with an http status of 200. To try to resolve this I've added
protected void Page_Load(object sender, EventArgs e)
{
Response.StatusCode = 404;
}
I added the google widget and have two issues with it. In IE7 it does not display where it should, if I add it to the content I get an "unknown error" on char 79 line 226 or thereabouts; if I add it to the head section the search boxes appear above the content. in Firefox it works fine.
So my issues are:
1. How do I make the widget appear
inline?
2. How do I make the error page
render as a 404 with the original
name and path of the file being
requested so that when I request
mauro.aspx I get the content for the
404 page but with the url of
mauro.aspx? (I assume that I will
have to do some URL Rewriting in the
begin_request global.asax file but
would like this confirmed before I
do anything silly) | 0 | [
2,
8144,
13,
23397,
17,
13,
9,
2328,
5816,
7019,
4434,
800,
3726,
3726,
48,
1301,
63,
81,
1341,
510,
86,
166,
100,
42,
92,
448,
29,
114,
53,
141,
30,
129,
448,
55,
70,
21,
1142,
187,
31,
22,
195,
330,
40,
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... |
XML Attributes vs Elements
===
When should you use XML attributes and when should you use XML elements?
e.g.
<customData>
<records>
<record name="foo" description="bar" />
</records>
</customData>
or
<customData>
<records>
<record>
<name>foo</name>
<description>bar</description>
</record>
</records>
</customData> | 0 | [
2,
23504,
13422,
4611,
2065,
800,
3726,
3726,
76,
378,
42,
275,
23504,
13422,
17,
76,
378,
42,
275,
23504,
2065,
60,
13,
62,
9,
263,
9,
13,
1,
4636,
6015,
18768,
1,
13,
1,
14953,
18,
1,
13,
1,
14953,
204,
3726,
7,
4120,
111,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to capture the "Print" button from the menu bar in a macro
===
I have a sheet with a custom button on it from where I control the printing process.
Now the user clicks on the menu bar's print icon and this produces an "undefined" output.
How can I intercept this menu bar button?
- Thanks | 0 | [
2,
184,
20,
3683,
14,
13,
7,
10299,
7,
5167,
37,
14,
11379,
748,
19,
21,
9069,
800,
3726,
3726,
31,
57,
21,
6125,
29,
21,
5816,
5167,
27,
32,
37,
113,
31,
569,
14,
7312,
953,
9,
130,
14,
4155,
10840,
18,
27,
14,
11379,
748,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Learning C++ Templates
===
Can anyone recommend any good resources for learning C++ Templates?
Many thanks. | 0 | [
2,
2477,
272,
20512,
22894,
18,
800,
3726,
3726,
92,
1276,
12360,
186,
254,
2566,
26,
2477,
272,
20512,
22894,
18,
60,
151,
3669,
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,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
VBA array sort function?
===
I'm looking for a decent sort implementation for arrays in VBA. A Quicksort would be preferred. Or any other [sort algorithm][1] other than bubble or merge would suffice.
Please note that this is to work with MS Project 2003, so should avoid any of the Excel native functions and anything .net related.
[1]: http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html | 0 | [
2,
566,
969,
7718,
2058,
1990,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
12238,
2058,
6123,
26,
7718,
18,
19,
566,
969,
9,
21,
2231,
22843,
83,
44,
5981,
9,
54,
186,
89,
636,
22843,
9083,
500,
2558,
165,
500,
89,
119,
1093... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Send mail from a Windows script
===
I would like to send mail from a script on a Windows Server 2003 Standard Edition. I think the server setup is pretty much out of the box.
The mail server is an Exchange one, and when you're on the internal network you can use plain old SMTP. I have done it from my machine with Perl, but unfortunately Perl is not available on the server.
Is there an easy way of doing this from a .bat-file or any other way that doesn't require installing some additional software? | 0 | [
2,
2660,
4216,
37,
21,
1936,
3884,
800,
3726,
3726,
31,
83,
101,
20,
2660,
4216,
37,
21,
3884,
27,
21,
1936,
8128,
973,
1236,
1322,
9,
31,
277,
14,
8128,
18161,
25,
1772,
212,
70,
16,
14,
1649,
9,
14,
4216,
8128,
25,
40,
1950,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 structure your SVN repository?
===
What is better?
**A:**
server:1080/repo/projectA/trunk/...
branches/branch1
branches/branch2
branches/branch3
tags/tag1/...
tags/tag2/...
server:1080/repo/projectB/trunk/...
branches/branch1
branches/branch2
branches/branch3
tags/tag1/...
tags/tag2/...
**B:**
server:1080/repo/trunk/projectA/...
branches/projectA/branch1
branches/projectA/branch2
branches/projectA/branch3
tags/projectA/tag1/...
tags/projectA/tag2/...
server:1080/repo/trunk/projectB/trunk/...
branches/projectB/branch1
branches/projectB/branch2
branches/projectB/branch3
tags/projectB/tag1/...
tags/projectB/tag2/...
What repository structure do you use and WHY? | 0 | [
2,
184,
107,
42,
1411,
154,
13,
18,
16578,
24869,
60,
800,
3726,
3726,
98,
25,
574,
60,
13,
1409,
58,
45,
1409,
8128,
6608,
2887,
118,
99,
1638,
118,
21011,
58,
118,
8989,
5719,
118,
9,
9,
9,
4395,
118,
23014,
165,
4395,
118,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
System.Diagnostics.Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName) and Windows Server 2003 scheduled task
===
Does anybody know what user privileges are needed for the following code needs to successfully execute as a scheduled task on Windows Server 2003:
**System.Diagnostics.Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName)**
When NOT running as scheduled task i.e. under a logged in user, as long as the user is a member of "Performance Monitor Users", this code will not throw an exception.
When running as a scheduled task under the same user account, it fails.
The only way I can get it to work is to run it as a member of the Local Administrator group.
Any ideas? | 0 | [
2,
329,
9,
4286,
21944,
18,
9,
16835,
9,
3060,
16835,
160,
779,
7259,
5,
16835,
9,
3060,
17657,
16835,
5,
6,
9,
16835,
7259,
6,
17,
1936,
8128,
973,
3758,
3005,
800,
3726,
3726,
630,
11181,
143,
98,
4155,
15977,
50,
851,
26,
14,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WCF Unit Test
===
How to unit test WCF services? Any 3rd Party tools available? | 0 | [
2,
11801,
410,
1237,
1289,
800,
3726,
3726,
184,
20,
1237,
1289,
11801,
410,
687,
60,
186,
203,
897,
346,
4672,
904,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
In Java, do I need to declare my collection synchronized if it's read-only ?
===
I fill a collection one single time when my J2EE webapp starts.
Then, several thread may access it at same time but only to read it.
I know using a synchronized collection is mandatory for parallels write but do I still need it for parallels read ? | 0 | [
2,
19,
8247,
15,
107,
31,
376,
20,
10123,
51,
1206,
27202,
100,
32,
22,
18,
1302,
8,
4965,
13,
60,
800,
3726,
3726,
31,
3509,
21,
1206,
53,
345,
85,
76,
51,
487,
135,
2851,
2741,
7753,
3244,
9,
94,
15,
238,
9322,
123,
1381,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NSWIndow launched from statusItem menuItem does not appear as active window
===
I have a statusItem application written in PyObjC. The statusItem has a menuItem which is supposed to launch a new window when it is clicked:
# Create statusItem
statusItem = NSStatusBar.systemStatusBar().statusItemWithLength_(NSVariableStatusItemLength)
statusItem.setHighlightMode_(TRUE)
statusItem.setEnabled_(TRUE)
statusItem.retain()
# Create menuItem
menu = NSMenu.alloc().init()
menuitem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_('Preferences', 'launchPreferences:', '')
menu.addItem_(menuitem)
statusItem.setMenu_(menu)
The launchPreferences: method is:
def launchPreferences_(self, notification):
preferences = Preferences.alloc().initWithWindowNibName_('Preferences')
preferences.showWindow_(self)
Preferences is an NSWindowController class:
class Preferences(NSWindowController):
When I run the application in XCode (Build & Go), this works fine. However, when I run the built .app file externally from XCode, the statusItem and menuItem appear as expected but when I click on the Preferences menuItem the window does not appear. I have verified that the launchPreferences code is running by checking console output.
Further, if I then double click the .app file again, the window appears but if I change the active window away by clicking, for example, on a Finder window, the preferences window disappears. This seems to me to be something to do with the active window. | 0 | [
2,
13,
2172,
27508,
1601,
37,
1782,
2119,
79,
11379,
2119,
79,
630,
52,
1893,
28,
1348,
1463,
800,
3726,
3726,
31,
57,
21,
1782,
2119,
79,
3010,
642,
19,
7103,
4995,
15864,
9,
14,
1782,
2119,
79,
63,
21,
11379,
2119,
79,
56,
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... |
Dynamically setting background colour of a Silverlight control (Listbox)
===
How do I set the background colour of items in a list box dynamically? i.e. there is some property on my business object that I'm binding too, so based on some business rules I want the background colour to be different?
<ListBox x:Name="people"
Margin="640,0,50,50"
Grid.Row="1"
Width="570"
HorizontalAlignment="Left"
VerticalAlignment="Stretch"
ItemsSource="{Binding }"
>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal"
Margin="5">
<TextBlock VerticalAlignment="Bottom"
FontFamily="Comic Sans MS"
FontSize="12"
Width="70"
Text="{Binding Name}" />
<TextBlock VerticalAlignment="Bottom"
FontFamily="Comic Sans MS"
FontSize="12"
Width="70"
Text="{Binding Age}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox> | 0 | [
2,
7782,
1326,
2697,
2395,
4609,
16,
21,
1172,
3130,
569,
13,
5,
5739,
5309,
6,
800,
3726,
3726,
184,
107,
31,
309,
14,
2395,
4609,
16,
3755,
19,
21,
968,
1649,
7782,
1326,
60,
31,
9,
62,
9,
80,
25,
109,
1354,
27,
51,
508,
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... |
Credential Caching Fail on SVN 1.5.2
===
We recently installed SVN 1.5.2 (with VisualSVN) on some of our servers / virtual machines, and now when I send a commandline command with username/password they don't get cached anymore.
Before, we were running SVN 1.5.0 or 1.4.x and the credentials were cached after the first command.
So far, I'm finding difficulties in troubleshooting this. My situation is:
- SERVER_A (SVN 1.5.0)
- SERVER_B (SVN 1.5.2)
Command from commandline to SERVER_A: credentials cached fine
Same command to SERVER_B: credentials are not cached
So, it seems like a server problem... BUT, from Tortoise the credentials are cached to both servers, so it also seems a client problem. I'm running out of ideas Smile
A sample command sequence I use:
<pre><code>
svn ls c:\mylocalsvnfolder --username foo --password bar
svn ls c:\mylocalsvnfolder
</code></pre>
On 1.5.0, it works fine. On 1.5.2 the second command stops and asks for authentication.
Did credentials caching change with the new release, or did we miss something in the server configuration?
Thanks in advance for any suggestion. | 0 | [
2,
5059,
43,
10107,
1658,
7192,
7476,
27,
13,
18,
16578,
137,
9,
264,
9,
135,
800,
3726,
3726,
95,
1989,
4066,
13,
18,
16578,
137,
9,
264,
9,
135,
13,
5,
1410,
3458,
18,
16578,
6,
27,
109,
16,
318,
17595,
13,
118,
6599,
6035,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Define a one-to-one relationship with LinqToSQL
===
I'm playing around with LinqToSQL using an existing multi-lingual database, but I'm running into issues mapping a fairly important one-to-one relationship, so I suspect I am using the feature incorrectly for my database design.
Assume two tables, Category and CategoryDetail. Category contains the CategoryId (PK), ParentId and TemplateId. CategoryDetail contains the CategoryId (FK), LanguageId, Title and Description (in the appropriate language).
If I drag-and-drop these tables into the LinqToSQL designer, the resultant object model has Category with a collection of CategoryDetail objects, which should never be the case. I'd like to be able to filter on LanguageId at the DataContext level, meaning that the whole Category is encapsulated within Category.CategoryDetail, not all language version encapsulated within Category.CategoryDetails.
This database worked fine on my old object library (an old-school custom BOL and DAL), but I fear that LinqToSQL would require this to change in order to give me the required result.
What is the best way to make this relationship (and language filtering) as seamless as possible? | 0 | [
2,
9267,
21,
53,
8,
262,
8,
849,
1429,
29,
6294,
1251,
262,
18,
22402,
800,
3726,
3726,
31,
22,
79,
791,
140,
29,
6294,
1251,
262,
18,
22402,
568,
40,
3149,
1889,
8,
23427,
6018,
15,
47,
31,
22,
79,
946,
77,
1549,
13305,
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... |
What technologies do C++ programmers need to know?
===
C++ was the first programming language I really got into, but the majority of my work on it was academic or for game programming. Most of the programming jobs where I live require Java or .NET programmers and I have a fairly good idea of what technologies they require aside from the basic language. For example, a Java programmer might be required to know EJB, Servlets, Hibernate, Spring, and other technologies, libraries, and frameworks.
I'm not sure about C++, however. In real life situations, for general business programming, what are C++ programmers required to know beyond the language features? Stuff like Win32 API, certain libraries, frameworks, technologies, tools, etc. | 4 | [
2,
98,
5740,
107,
272,
20512,
17968,
18,
376,
20,
143,
60,
800,
3726,
3726,
272,
20512,
23,
14,
64,
3143,
816,
31,
510,
330,
77,
15,
47,
14,
1698,
16,
51,
170,
27,
32,
23,
1810,
54,
26,
250,
3143,
9,
127,
16,
14,
3143,
4844,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 write a (simple) variable "toggle"?
===
Given the following idioms:
<p>1)</p>
<p><pre><code>variable = value1
if condition
variable = value2</code></pre></p>
<p>2)</p>
<p><pre><code>variable = value2
if not condition
variable = value1</pre></code></p>
<p>3)</p>
<p><pre><code>if condition
variable = value2
else
variable = value1</pre></code></p>
<p>4)</p>
<p><pre><code>if not condition
variable = value1
else
variable = value2</pre></code></p>
<p>Which do you prefer, and why?</p>
<p>We assume the most common execution path to be that of <code>condition</code> being false.</p>
<p>I tend to learn towards using 1), although I'm not exactly sure why I like it more.</p>
<p><em>Note: The following examples may be simpler—and thus possibly more readable—but not all languages provide such syntax, and they are not suitable for extending the variable assignment to include more than one statement in the future.</em></p>
<pre><code>variable = condition ? value2 : value1
...
variable = value2 if condition else value1</code></pre> | 0 | [
2,
184,
107,
42,
2757,
21,
13,
5,
24629,
6,
7612,
13,
7,
262,
263,
4875,
7,
60,
800,
3726,
3726,
504,
14,
249,
28380,
18,
45,
13,
1,
306,
1,
165,
6,
1,
118,
306,
1,
13,
1,
306,
1,
3515,
1,
9375,
1,
8220,
579,
800,
1923,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Caching the sessionfactory
===
As far as I've gathered (read: measured), building the configuration and the sessionfactory by far takes the most time in executing a query using nhibernate. Is there anything against making the sessionfactory static, so it will only be configured once per appDomain?
I know there are locking and racing issues when using this approach, but personally I don't see where this would break my application when using this approach on the sessionfactory.
The reason I am asking this is because it's really hard to test for possible threading issues, as it doesn't occur all the time. | 0 | [
2,
1658,
7192,
14,
3723,
17455,
93,
800,
3726,
3726,
28,
463,
28,
31,
22,
195,
4744,
13,
5,
10647,
45,
7160,
6,
15,
353,
14,
8091,
17,
14,
3723,
17455,
93,
34,
463,
1384,
14,
127,
85,
19,
25836,
21,
25597,
568,
12109,
15191,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Code coverage for PL/SQL
===
Does anyone have tools or experience with code coverage for PL/SQL. I believe this is possible using DBMS_PROFILER?
| 0 | [
2,
1797,
5245,
26,
12443,
118,
18,
22402,
800,
3726,
3726,
630,
1276,
57,
4672,
54,
1496,
29,
1797,
5245,
26,
12443,
118,
18,
22402,
9,
31,
985,
48,
25,
938,
568,
13,
43,
13178,
18,
1,
14503,
139,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Do you recommend Native C++ to C++\CLI shift?
===
I have been working as a native C++ programmer for last few years. Now we are starting a new project from the scratch. So what is your thoughts on shifting to C++\CLI. | 0 | [
2,
107,
42,
12360,
1275,
272,
20512,
20,
272,
20512,
1,
150,
1210,
4471,
60,
800,
3726,
3726,
31,
57,
74,
638,
28,
21,
1275,
272,
20512,
17968,
26,
236,
310,
122,
9,
130,
95,
50,
1422,
21,
78,
669,
37,
14,
12395,
9,
86,
98,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... |
Unit testing for PL/SQL
===
Anyone have any experience or tools for unit testing PL/SQL. The best looking tool I've seen for this seems to be Quests Code Tester, but i'm not sure how well that would integration with continuous integration tools or command line testing? | 4 | [
2,
1237,
4431,
26,
12443,
118,
18,
22402,
800,
3726,
3726,
1276,
57,
186,
1496,
54,
4672,
26,
1237,
4431,
12443,
118,
18,
22402,
9,
14,
246,
699,
5607,
31,
22,
195,
541,
26,
48,
2206,
20,
44,
7769,
18,
1797,
1289,
106,
15,
47,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a SQL script that I can use to determine the progress of a SQL Server backup or restore process?
===
When I backup or restore a database using MS SQL Server Management Studio, I get a visual indication of how far the process has progressed, and thus how much longer I still need to wait for it to finish. If I kick of the backup or restore with a script, is there a way to monitor the progress, or do I just sit back and wait for it to finish (hoping that nothing has gone wrong?) | 0 | [
2,
25,
80,
21,
4444,
255,
3884,
30,
31,
92,
275,
20,
3746,
14,
3455,
16,
21,
4444,
255,
8128,
10119,
54,
8454,
953,
60,
800,
3726,
3726,
76,
31,
10119,
54,
8454,
21,
6018,
568,
4235,
4444,
255,
8128,
1097,
1120,
15,
31,
164,
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 is the difference between a port and a socket?
===
This was a question raised by one of the software engineers in my organisation. I'm interested in the broadest definition. | 0 | [
2,
98,
25,
14,
2841,
128,
21,
1295,
17,
21,
18482,
60,
800,
3726,
3726,
48,
23,
21,
1301,
1127,
34,
53,
16,
14,
2306,
5379,
19,
51,
4080,
9,
31,
22,
79,
3158,
19,
14,
2748,
1430,
5465,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Running a J6SE app on an NT box
===
I need to run a Java application, which we are trying to port to Java 6, on an NT box.
I manage to run java 5 on it (although not officially supported), but when I try to run java 6 I get the following error:
`Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.6.0_05\bin\awt.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.EventQueue.<clinit>(Unknown Source)
at javax.swing.SwingUtilities.invokeLater(Unknown Source)
at ui.sequencer.test.WindowTest.main(WindowTest.java:136)
Anybody has any idea how to solve this?
This persists even when I move the java executables to another directory with no spaces in its name.
Thanks in advance,
Michael
p.s.
I know, I should upgrade, but it's not up to me or my company - this is a very very bug huge gigantic company we work with, and they intend to keep NT for another 5 years. | 0 | [
2,
946,
21,
487,
379,
870,
4865,
27,
40,
13,
2877,
1649,
800,
3726,
3726,
31,
376,
20,
485,
21,
8247,
3010,
15,
56,
95,
50,
749,
20,
1295,
20,
8247,
400,
15,
27,
40,
13,
2877,
1649,
9,
31,
4705,
20,
485,
8247,
331,
27,
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 is the best way to change a user-password remotely in Unix?
===
What is the best way to change a user-password remotely in Unix?
This must be performed by the user, in a Web-app or Windows-App, without using SSH or any direct connection between the client and the server.
Thanks
| 0 | [
2,
98,
25,
14,
246,
161,
20,
753,
21,
4155,
8,
6201,
9587,
23288,
19,
22540,
60,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
753,
21,
4155,
8,
6201,
9587,
23288,
19,
22540,
60,
48,
491,
44,
986,
34,
14,
4155,
15,
19,
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... |
ASP.NET user login best practises
===
I want to make a login system using ASP.NET (MVC). The last one I did was in PHP and it was 4 years ago.
I have looked a bit on the internet, and found some bad examples that involved SQL in Click events. Other information pointed to the ASP.NET built-in membership provider.
However, I want to roll my own. I don't want to use the built-in membership provider, as it only seems to work on MS SQL, and I don't like the idea of having a few foreign tables in my database.
I could probably think of something, but I need a few pointers in the right direction. It does not have to be high-security, but just regular common-sense security.
And I have a few direct questions:
1. A lot of systems seem to have the Session ID stored in a user table. I guess this is to tie a session to a user to prevent hijacking. Do check this everytime a user enters a page? And what do I do if the session expires?
2. Hashing, salting, what does it do? I know of MD5 hashing and I have used it before. But not salting.
3. Best practises for cookies?
| 0 | [
2,
28,
306,
9,
2328,
4155,
6738,
108,
246,
27954,
18,
800,
3726,
3726,
31,
259,
20,
233,
21,
6738,
108,
329,
568,
28,
306,
9,
2328,
13,
5,
79,
8990,
6,
9,
14,
236,
53,
31,
144,
23,
19,
13,
26120,
17,
32,
23,
268,
122,
1464... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Python blogs that you regularly follow?
===
Someone asked this for C++ blogs and got a lot of great answers but I am much more interested in Python blogs. So, what Python blogs do you subscribe to?
One URL per answer please? | 4 | [
2,
20059,
8146,
18,
30,
42,
4217,
1740,
60,
800,
3726,
3726,
737,
411,
48,
26,
272,
20512,
8146,
18,
17,
330,
21,
865,
16,
374,
6709,
47,
31,
589,
212,
91,
3158,
19,
20059,
8146,
18,
9,
86,
15,
98,
20059,
8146,
18,
107,
42,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Is there a way to print all methods of an object in javascript?
===
Is there a way to print all methods of an object in javascript? | 0 | [
2,
25,
80,
21,
161,
20,
4793,
65,
3195,
16,
40,
3095,
19,
8247,
8741,
60,
800,
3726,
3726,
25,
80,
21,
161,
20,
4793,
65,
3195,
16,
40,
3095,
19,
8247,
8741,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
MSBuild: How to obtain number of warnings raised?
===
There is a MSBuild script, that includes number if Delphi and C# projects, unit tests etc.
The problem is: how to mark build failed if warnings were raised (for testing purposes, not for release builds)? Using LogError instead of LogWarning in custom tasks seems to be not a good option, because the build should test as much as it's able (until real error) to report as much warnings as possible in a time (build project is using in CruiseControl.NET).
May be, the solution is to create my own logger that would store warnings flag inside, but I cannot find if there is a way to read this flag in the end of build? | 0 | [
2,
4235,
29361,
45,
184,
20,
5545,
234,
16,
3590,
18,
1127,
60,
800,
3726,
3726,
80,
25,
21,
4235,
29361,
3884,
15,
30,
1103,
234,
100,
23030,
17,
272,
5910,
2314,
15,
1237,
4894,
2722,
9,
14,
1448,
25,
45,
184,
20,
943,
1895,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What does this do? tasklist /m "mscor*"
===
Saw this question here : [What Great .NET Developers Ought To Know (More .NET Interview Questions)][1]
[1]: http://www.hanselman.com/blog/WhatGreatNETDevelopersOughtToKnowMoreNETInterviewQuestions.aspx | 0 | [
2,
98,
630,
48,
107,
60,
3005,
5739,
13,
118,
79,
13,
7,
79,
18,
4966,
2483,
7,
800,
3726,
3726,
441,
48,
1301,
235,
13,
45,
636,
608,
374,
13,
9,
2328,
10168,
11869,
20,
143,
13,
5,
1995,
13,
9,
2328,
2421,
2346,
6,
500,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 rename all folders and files to lowercase on Linux?
===
I have to rename a complete folder tree recursively so that no uppercase letter appears anywhere (it's C++ sourcecode, but that shouldn't matter). Bonus points for ignoring CVS and SVN control files/folders. Preferred way would be a shell script, since shell should be available at any Linux box. | 0 | [
2,
184,
20,
302,
7259,
65,
19294,
18,
17,
6488,
20,
987,
10325,
27,
13024,
60,
800,
3726,
3726,
31,
57,
20,
302,
7259,
21,
1279,
19294,
1541,
302,
24244,
102,
86,
30,
90,
1508,
10325,
1748,
1780,
4922,
13,
5,
242,
22,
18,
272,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are there guidelines for updating C++Builder applications for C++Builder 2009?
===
I have a range of Win32 VCL applications developed with C++Builder from BCB5 onwards, and want to port them to ECB2009 or whatever it's now called.
Some of my applications use the old TNT/TMS unicode components, so I have a good mix of AnsiStrings and WideStrings throughout the code. The new version introduces UnicodeString, and a bunch of #defines that change the way functions like c_str behave.
I want to modify my code in a way that is as backwards-compatible as possible, so that the same code base can still be compiled and run (in a non-unicode fashion) on BCB2007 if necessary.
Particular areas of concern are:
- Passing strings to/from Win32 API
functions
- Interop with TXMLDocument
- 'Raw' strings used for RS232 comms, etc.
Rather than knife-and-fork the changes, I'm looking for guidelines that I can apply to ease the migration, while keeping backwards compatibility wherever possible.
If no such guidelines already exist, maybe we can formulate some here?
| 0 | [
2,
50,
80,
12629,
26,
71,
43,
1880,
272,
20512,
20904,
3767,
26,
272,
20512,
20904,
588,
60,
800,
3726,
3726,
31,
57,
21,
978,
16,
628,
3125,
566,
5316,
3767,
885,
29,
272,
20512,
20904,
37,
2726,
220,
264,
10195,
15,
17,
259,
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 is the best way to select string fields based on character ranges?
===
I need to add the ability for users of my software to select records by character ranges.
How can I write a query that returns all widgets from a table whose name falls in the range Ba-Bi for example?
Currently I'm using greater than and less than operators, so the above example would become:
select * from widget
where name >= 'ba' and name < 'bj'
Notice how I have "incremented" the last character of the upper bound from i to j so that "bike" would not be left out.
Is there a generic way to find the next character after a given character based on the field's collation or would it be safer to create a second condition?
select * from widget
where name >= 'ba'
and (name < 'bi' or name like 'bi%')
My application needs to support localization. How sensitive is this kind of query to different character sets?
I also need to support both MSSQL and Oracle. What are my options for ensuring that character casing is ignored no matter what language appears in the data? | 0 | [
2,
98,
25,
14,
246,
161,
20,
5407,
3724,
2861,
432,
27,
925,
9230,
60,
800,
3726,
3726,
31,
376,
20,
3547,
14,
2165,
26,
3878,
16,
51,
2306,
20,
5407,
742,
34,
925,
9230,
9,
184,
92,
31,
2757,
21,
25597,
30,
4815,
65,
4807,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Stored procedure parameter activating additional where clause
===
I have a stored procedure that looks like:
CREATE PROCEDURE dbo.usp_TestFilter
@AdditionalFilter BIT = 1
AS
SELECT *
FROM dbo.SomeTable T
WHERE
T.Column1 IS NOT NULL
AND CASE WHEN @AdditionalFilter = 1 THEN
T.Column2 IS NOT NULL
Needless to say, this doesn't work. How can I activate the additional where clause that checks for the @AdditionalFilter parameter? Thanks for any help.
| 0 | [
2,
8214,
7004,
18906,
13,
27939,
1351,
113,
9040,
800,
3726,
3726,
31,
57,
21,
8214,
7004,
30,
1879,
101,
45,
1600,
7004,
13,
43,
1192,
9,
267,
306,
1,
10543,
11924,
815,
13,
1,
14854,
9861,
192,
11924,
815,
1142,
800,
137,
28,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
*.h or *.hpp for your class definitions
===
I've always used a *.h file for my class definitions, but after reading some boost library code, I realised they all use *.hpp. I've always had an aversion to that file extension, I think mainly because I'm not used to it.
What do you use and why?
**Edit:** I realise both are ok, I'm just talking about personal preference. | 0 | [
2,
1637,
9,
252,
54,
1637,
9,
252,
3421,
26,
154,
718,
18544,
800,
3726,
3726,
31,
22,
195,
550,
147,
21,
1637,
9,
252,
3893,
26,
51,
718,
18544,
15,
47,
75,
1876,
109,
10419,
1248,
1797,
15,
31,
12514,
59,
65,
275,
1637,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you handle TDD in the continuous integration?
===
Imagine you are implementing the user story containing various new features and adding complexity to the code base. The existing code is quite well covered and you have just decided upon interfaces. You are starting to implement the functionality starting with tests.
Now you have fairly complex test cases based on the requirements but the implementation is nowhere near the point when you are able to commit to the SCM fully working code and many test are failing (as they should).
There is an assumption that in continuous integration all builds should be green if possible and thus you shouldn't commit as you would break the build. But you also shouldn't ["Go dark"][1] and keep such amount of code for yourself...
What is the suggested procedure in such situation?
[1]: http://www.codinghorror.com/blog/archives/001134.html | 0 | [
2,
184,
107,
42,
3053,
15596,
43,
19,
14,
6357,
8078,
60,
800,
3726,
3726,
4382,
42,
50,
17333,
14,
4155,
609,
3503,
617,
78,
967,
17,
4721,
12745,
20,
14,
1797,
1000,
9,
14,
3149,
1797,
25,
1450,
134,
1363,
17,
42,
57,
114,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the canonical way to check for type in python?
===
What is the best way to check if a given object is of a given type. How about checking if the object inherits from a given type.
Let's say I have an object `o`. How do I check if it's an `str`? | 0 | [
2,
98,
22,
18,
14,
5742,
4272,
161,
20,
2631,
26,
1001,
19,
20059,
60,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
2631,
100,
21,
504,
3095,
25,
16,
21,
504,
1001,
9,
184,
88,
9886,
100,
14,
3095,
17569,
18,
37,
21,
504,
1001... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 an application
===
I have recently come across a situation where code is dynamically loading some libraries, wiring them up, then calling what is termed the "application entry point".
Is this a valid use of the term application? I would always have considered the application entry point to be before the loading of the libraries. | 0 | [
2,
98,
25,
40,
3010,
800,
3726,
3726,
31,
57,
1989,
340,
464,
21,
1858,
113,
1797,
25,
7782,
1326,
12797,
109,
8649,
15,
12701,
68,
105,
71,
15,
94,
2555,
98,
25,
13776,
14,
13,
7,
2552,
20669,
2792,
454,
7,
9,
25,
48,
21,
7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Identify GET and POST paramaters in Ruby on Rails
===
What is the simplest way to identify and separate GET and POST variables from a controller in Ruby on Rails?
Going a little more verbose: I have a form whose action has some GET params, when I submit the form it will send POST params to the respective controller's action along with the GET params. Now, params[:<name>] would give me value of any parameter but the question is how to identify whether is it get param or a post param?
| 0 | [
2,
5808,
164,
17,
678,
2258,
5146,
445,
19,
10811,
27,
2240,
18,
800,
3726,
3726,
98,
25,
14,
24384,
161,
20,
5808,
17,
1725,
164,
17,
678,
12157,
37,
21,
9919,
19,
10811,
27,
2240,
18,
60,
228,
21,
265,
91,
9504,
6641,
45,
31... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to initialize ConnectionStrings collection in NUnit
===
I want to test ASP.NET application using NUnit, but it seems WebConfigurationManager.ConnectionStrings collection is empty when running from NUnit GUI.
Could you tell me how to initialize this collection (probably in [SetUp] function of [TestFixture])? Should I copy Web.config somethere?
Thank you! | 0 | [
2,
184,
20,
2104,
2952,
2760,
11130,
18,
1206,
19,
10210,
242,
800,
3726,
3726,
31,
259,
20,
1289,
28,
306,
9,
2328,
3010,
568,
10210,
242,
15,
47,
32,
2206,
2741,
1126,
13549,
857,
22256,
9,
25996,
872,
11130,
18,
1206,
25,
2424,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
F# style - prefer () or <|
===
Which of theese two alternatives do you find yourself using most often, and which is more "ideomatic"?
1. f arg (obj.DoStuff())
2. f arg <| obj.DoStuff() | 0 | [
2,
398,
5910,
1034,
13,
8,
6369,
13,
5,
6,
54,
13,
1,
800,
3726,
3726,
56,
16,
14,
4635,
81,
2676,
18,
107,
42,
477,
2834,
568,
127,
478,
15,
17,
56,
25,
91,
13,
7,
3448,
111,
6732,
7,
60,
137,
9,
398,
13,
10663,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C#: Getting maximum and minimum values of arbitrary properties of all items in a list
===
I have a specialized list that holds items of type `IThing`:
public class ThingList : IList<IThing>
{...}
public interface IThing
{
Decimal Weight { get; set; }
Decimal Velocity { get; set; }
Decimal Distance { get; set; }
Decimal Age { get; set; }
Decimal AnotherValue { get; set; }
[...even more properties and methods...]
}
Sometimes I need to know the maximum or minimum of a certain property of all the things in the list. Because of "Tell don't ask" we let the List figure it out:
public class ThingList : IList<IThing>
{
public Decimal GetMaximumWeight()
{
Decimal result = 0;
foreach (IThing thing in this) {
result = Math.Max(result, thing.Weight);
}
return result;
}
}
Thats very nice. But sometimes I need the minimum weight, sometimes the maximum velocity and so on. I don't want a `GetMaximum*()/GetMinimum*()` pair for every single property.
One solution would be reflection. Something like (hold your nose, strong code smell!):
Decimal GetMaximum(String propertyName);
Decimal GetMinimum(String propertyName);
Are there any better, less smelly ways to accomplish this?
Thanks,
Eric
| 0 | [
2,
272,
5910,
45,
1017,
2979,
17,
5187,
4070,
16,
17237,
3704,
16,
65,
3755,
19,
21,
968,
800,
3726,
3726,
31,
57,
21,
7119,
968,
30,
2763,
3755,
16,
1001,
13,
1,
49,
96,
68,
1,
45,
317,
718,
584,
5739,
13,
45,
31,
5739,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to know client side when the HTTP handler is done prosessing
===
Probably a long question for a simple solution, but here goes...
I have a custom made silverlight control for selecting multiple files and sending them to the server. It sends files to a general handler (FileReciever.ashx) using the OpenWriteAsync method of a WebCLient control.
Basically, the silverlight code does something like this for each file:
WebClient client = new WebClient();
client.OpenWriteCompleted += (sender, e) =>
{
PushData(data, e.Result);
e.Result.Close();
data.Close();
};
client.OpenWriteAsync(handlerUri);
The server side handler simply reads the incoming stream, and then does some more processing with the resulting byte array.
THE PROBLEM is that client side OpenWriteCompleted is done as soon as all the data has been sent over the wire. My code will then contine with the next file. What I really want is to wait until the ASHX handler has finished with all it's processing of that request. How do I do that? Any wait mechanism on WebClient? Any callback I can do on the HttpContext in the handler? Should I use some other kind of transfer technique? Please advice! | 0 | [
2,
184,
20,
143,
6819,
270,
76,
14,
7775,
24641,
25,
677,
11811,
18,
18,
68,
800,
3726,
3726,
910,
21,
175,
1301,
26,
21,
1935,
4295,
15,
47,
235,
1852,
9,
9,
9,
31,
57,
21,
5816,
117,
1172,
3130,
569,
26,
20764,
1886,
6488,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Wordpress Site Monitoring software / service
===
What do you use to monitor the uptime / performance of your websites, specifically those based on a PHP/MySQL platform like Wordpress?
I'm looking for something that alerts me if the site is down, or performing too slowly, and has some useful (not volumeous!) charts showing me any potential problems, and what to do about them.
Thanks! | 0 | [
2,
833,
5890,
689,
8984,
2306,
13,
118,
365,
800,
3726,
3726,
98,
107,
42,
275,
20,
7626,
14,
71,
891,
13,
118,
956,
16,
154,
13931,
15,
3524,
273,
432,
27,
21,
13,
26120,
118,
915,
18,
22402,
2452,
101,
833,
5890,
60,
31,
22,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Idiomatic C++ for reading from a const map
===
For an `std::map<std::string, std::string> variables`, I'd like to do this:
BOOST_CHECK_EQUAL(variables["a"], "b");
The only problem is, in this context `variables` is `const`, so `operator[]` won't work :(
Now, there are several workarounds to this; casting away the `const`, using `variables.count("a") ? variables.find("a")->second : std::string()` or even making a function wrapping that. None of these seem to me to be as nice as `operator[]`. What should I do? Is there a standard way of doing this (beautifully)? | 0 | [
2,
28380,
12479,
272,
20512,
26,
1876,
37,
21,
11608,
38,
2942,
800,
3726,
3726,
26,
40,
13,
1,
384,
43,
45,
45,
15022,
1,
384,
43,
45,
45,
11130,
15,
354,
43,
45,
45,
11130,
1,
12157,
1,
15,
31,
22,
43,
101,
20,
107,
48,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Windows Command Line Reference
===
Can you recommend a referecne for the windows command line?
I would like an exhaustive reference.
Perhaps something along the lines of _Unix in a Nutshell_?
I see that there is a _Windows XP in a Nutshell_ - is that the same sort of thing?
| 0 | [
2,
1936,
1202,
293,
2801,
800,
3726,
3726,
92,
42,
12360,
21,
5017,
3319,
556,
26,
14,
1936,
1202,
293,
60,
31,
83,
101,
40,
12179,
1284,
2801,
9,
1774,
301,
303,
14,
1560,
16,
13,
1,
1020,
4028,
19,
21,
8619,
15984,
1,
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... |
Different item template for each item in a WPF List?
===
I have many items inside a list control. I want each item to have a different item template depending on the type of the item. So the first item in the list is a ObjectA type and so I want it to be rendered with ItemTemplateA. Second item is a ObjectB type and so I want it to have ItemTemplateB for rendering. At the moment I can only use the ItemTemplate setting to define one template for them all. Any way to achieve this? | 0 | [
2,
421,
9101,
22894,
26,
206,
9101,
19,
21,
619,
7721,
968,
60,
800,
3726,
3726,
31,
57,
151,
3755,
572,
21,
968,
569,
9,
31,
259,
206,
9101,
20,
57,
21,
421,
9101,
22894,
4758,
27,
14,
1001,
16,
14,
9101,
9,
86,
14,
64,
910... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to stop the Access 2007 Configuration Progress when switching versions
===
Like many developers I need to run more than 1 version of MS Access. I have just installed Access 2007. If I open Access 2003 and then open Access 2007 I have to wait 3mins for the 'Configuring Microsoft Enterprise 2007..." dialog. Then if I open Access 2003 again it takes another 30secs or so to configure that.
Does anyone have a solution to avoid this? | 0 | [
2,
184,
20,
747,
14,
1381,
624,
8091,
3455,
76,
13027,
3281,
800,
3726,
3726,
101,
151,
10168,
31,
376,
20,
485,
91,
119,
137,
615,
16,
4235,
1381,
9,
31,
57,
114,
4066,
1381,
624,
9,
100,
31,
368,
1381,
973,
17,
94,
368,
1381... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DataReader within try block causing potential null reference error
===
There is probably is simple fix for this but I currently have code similar to
dim dr as dbDataReader
try
dr = connection.getDataReader(sql_str)
Catch ex as sqlClientException
log.error(ex)
finally
if not IsNothing(dr) then
dr.close
end if
end try
However Visual Studio still warns me that the
if not IsNothing(dr) then
dr.close
end if
Can cause a NullReferenceException. What is the best way to mitigate this? I can't move the declaration into the try block.
| 0 | [
2,
1054,
10647,
106,
363,
1131,
1921,
3242,
2222,
16203,
2801,
7019,
800,
3726,
3726,
80,
25,
910,
25,
1935,
6098,
26,
48,
47,
31,
871,
57,
1797,
835,
20,
5937,
744,
28,
13,
9007,
18768,
10647,
106,
1131,
744,
800,
2760,
9,
3060,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WinForms printing: how can I access the progress dialog?
===
When printing in Windows forms, or doing a print preview, a dialog is displayed with text like
Page [P] of [DOC]
where [P] is page number and [DOC] is the name of the document. The dialog also contains a button to allow the user to cancel the print job.
How can I change the text displayed? What I would prefer is text like
Page [P] of [Pages]
where [Pages] is the total number of pages, to give the user an indication how long it will take to print all pages. If possible I would also like to show a progress bar, because when a print job is started, I know exactly how many pages will be printed.
| 0 | [
2,
628,
4190,
18,
7312,
45,
184,
92,
31,
1381,
14,
3455,
28223,
60,
800,
3726,
3726,
76,
7312,
19,
1936,
1997,
15,
54,
845,
21,
4793,
16121,
15,
21,
28223,
25,
6115,
29,
1854,
101,
2478,
636,
306,
500,
16,
636,
13799,
500,
113,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 scan an image with X++
===
Does anyone know how to scan an image with X++? | 0 | [
2,
184,
92,
42,
8313,
40,
1961,
29,
993,
20512,
800,
3726,
3726,
630,
1276,
143,
184,
20,
8313,
40,
1961,
29,
993,
20512,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Avoid throwing a new exception
===
I have an if condition which checks for value and the it throws new Numberfromatexception
Is there any other way to code this
if(foo){
throw new NumberFormatException
}
..
Catch(NumberFormatException exc){
some msg...
} | 0 | [
2,
2658,
6033,
21,
78,
5391,
800,
3726,
3726,
31,
57,
40,
100,
2874,
56,
16602,
26,
1923,
17,
14,
32,
13566,
78,
234,
2665,
721,
10066,
872,
25,
80,
186,
89,
161,
20,
1797,
48,
100,
5,
4120,
111,
6,
1,
3814,
78,
234,
23588,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CruiseControl.net : Using SvnLabeller / SvnRevisionLabeller
===
I'm setting up a new project using CruiseControl.net 1.4.
I see from [ccnet contributions][1]
that there are two options for a subversion repository number labeller - a
feature that I would really like to make use of.
1) SVNLabeller available from [jcxsoftware][2]
and
2) Svnrevisionlabeller available from [google code][3]
My problem is that (1) claims support for ccnet 1.4 but I can't find
any documentation on how to configure it.
(2) comes with documentation but does not claim to support ccnet 1.4
Can anyone help me with either how to configure SVNLabeller or tell me
if Svnrevisionlabeller works with 1.4?
[1]: http://confluence.public.thoughtworks.org/display/CCNETCOMM/Contributions
[2]: http://www.jcxsoftware.com/jcx/ccnet-dev
[3]: http://code.google.com/p/svnrevisionlabeller/ | 0 | [
2,
6581,
12898,
9,
2328,
13,
45,
568,
13,
18,
16578,
21018,
1252,
13,
118,
13,
18,
16578,
99,
10732,
21018,
1252,
800,
3726,
3726,
31,
22,
79,
2697,
71,
21,
78,
669,
568,
6581,
12898,
9,
2328,
137,
9,
300,
9,
31,
196,
37,
636,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Open the default browser in Ruby
===
In Python, you can do this:
import webbrowser
webbrowser.open_new("http://example.com/")
It will open the passed in url in the default browser
Is there a ruby equivalent? | 0 | [
2,
368,
14,
12838,
16495,
19,
10811,
800,
3726,
3726,
19,
20059,
15,
42,
92,
107,
48,
45,
9010,
10192,
5417,
4104,
10192,
5417,
4104,
9,
10157,
1,
2681,
5,
7,
21127,
6903,
29041,
9,
960,
118,
7,
6,
32,
129,
368,
14,
1100,
19,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... |
How can I search for a multiline pattern in a file ? Use pcregrep
===
I needed to find all the files that contained a specific string pattern. The first solution that comes to mind is using *find* piped with *xargs grep*:
find . -iname '*.py' | xargs grep -e 'YOUR_PATTERN'
But if I need to find patterns that spans on more than one line, I'm stuck because vanilla grep can't find multiline patterns. | 0 | [
2,
184,
92,
31,
2122,
26,
21,
1889,
1143,
3732,
19,
21,
3893,
13,
60,
275,
5168,
99,
6879,
306,
800,
3726,
3726,
31,
851,
20,
477,
65,
14,
6488,
30,
3437,
21,
1903,
3724,
3732,
9,
14,
64,
4295,
30,
1624,
20,
594,
25,
568,
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... |
Could I get in legal trouble for copying a website's stylesheet?
===
I like the simplistic look and design of some of the Microsoft blogs. Alas, I can't join the Microsoft dev party and create my own development blog on the blogs.msdn.com page because I don't work at Microsoft, and I already have my own wordpress blog.
I was looking to have my blog styled to one of the default looking themes shown here: http://blogs.msdn.com/jmeier/default.aspx
Could Microsoft take legal action against me if I used a stylesheet from their page? If I made my page 'based' off their stylesheet, e.g. written from the ground up, would that be copyright infringement? | 0 | [
2,
110,
31,
164,
19,
1517,
2572,
26,
4344,
68,
21,
2271,
22,
18,
1034,
17627,
60,
800,
3726,
3726,
31,
101,
14,
22862,
255,
3771,
361,
17,
704,
16,
109,
16,
14,
7099,
8146,
18,
9,
21,
4830,
15,
31,
92,
22,
38,
1865,
14,
7099... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Multiple correct results with Hamcrest (is there a or-matcher?)
===
I am relatively new to matchers. I am toying around with [hamcrest][1] in combination with JUnit and I kinda like it.
Is there a way, to state that one of multiple choices is correct?
Something like
assertThat( result, is( either( 1, or( 2, or( 3 ) ) ) ) ) //does not work in hamcrest
The method I am testing returns one element of a collection. The list may contain multiple candidates. My current implementation returns the first hit, but that is not a requirement. I would like my testcase to succeed, if any of the possible candidates is returned. How would you express this in Java?
(I am open to hamcrest-alternatives)
[1]: http://code.google.com/p/hamcrest/ | 0 | [
2,
1886,
4456,
1736,
29,
4111,
21140,
13,
5,
403,
80,
21,
54,
8,
12280,
106,
60,
6,
800,
3726,
3726,
31,
589,
3109,
78,
20,
730,
445,
9,
31,
589,
20,
8173,
140,
29,
636,
1225,
21140,
500,
2558,
165,
500,
19,
3733,
29,
7446,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Referece to learn OOP independent of languages?
===
I am looking for a good reference, which describes how to design and implement OO objects irrespective of OO language used. The things that programmer should consider in the initial stages of designing and implementing objects. things like, when to use inheritance/polymorphism and when to use composition. Please note, i am not looking for design pattern books.
I had come across quite a few useful books like,
[1] Object oriented programming by Grady booch.
and C++ related [1] Effective c++ series by Scott mayers [2] C++ Coding standards by Herb sutter
Any other good reference?
| 0 | [
2,
246,
5017,
62,
1105,
20,
2484,
13,
21709,
1124,
16,
2556,
60,
800,
3726,
3726,
31,
589,
699,
26,
21,
254,
2801,
15,
56,
4359,
184,
20,
704,
17,
8713,
13,
4328,
3916,
13810,
7350,
1284,
16,
13,
4328,
816,
147,
9,
14,
564,
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... |
What online resources are there to learn about VxWorks?
===
What are some of the online resources you have found useful to learn about VxWorks? | 0 | [
2,
98,
2087,
2566,
50,
80,
20,
2484,
88,
566,
396,
7684,
60,
800,
3726,
3726,
98,
50,
109,
16,
14,
2087,
2566,
42,
57,
216,
4811,
20,
2484,
88,
566,
396,
7684,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
GDI+ / C#: How to save an image as EMF?
===
If you use Image.Save Method to save an image to a EMF/WMF, you got an exceptoin (http://msdn.microsoft.com/en-us/library/ktx83wah.aspx)
Is there another way to save the image to an EMF/WMF?
Are there any encoders available?
Thanks
Eric | 0 | [
2,
489,
1115,
2430,
13,
118,
272,
5910,
45,
184,
20,
2079,
40,
1961,
28,
3579,
410,
60,
800,
3726,
3726,
100,
42,
275,
1961,
9,
19863,
2109,
20,
2079,
40,
1961,
20,
21,
3579,
410,
118,
499,
13235,
15,
42,
330,
40,
1613,
111,
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... |
Should a client handling process be added to the supervisor tree?
===
in Erlang I have a supervisor-tree of processes, containing one that accepts tcp/ip connections. For each incoming connection I spawn a new process. Should this process be added to the supervisor tree or not?
Regards,
Steve | 0 | [
2,
378,
21,
6819,
7988,
953,
44,
905,
20,
14,
9248,
1541,
60,
800,
3726,
3726,
19,
13,
106,
9949,
31,
57,
21,
9248,
8,
8101,
16,
5102,
15,
3503,
53,
30,
16548,
13,
38,
7439,
118,
4307,
6760,
9,
26,
206,
17126,
2760,
31,
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... |
Optimising C++ 2-D arrays
===
I need a way to represent a 2-D array (a dense matrix) of doubles in C++, with absolute minimum accessing overhead.
I've done some timing on various linux/unix machines and gcc versions. An STL vector of vectors, declared as:
vector<vector<double> > matrix(n,vector<double>(n));
and accessed through `matrix[i][j]` is between 5% and 100% slower to access than an array declared as:
double *matrix = new double[n*n];
accessed through an inlined index function `matrix[index(i,j)]`, where `index(i,j)` evaluates to i+n*j. Other ways of arranging a 2-D array without STL - an array of n pointers to the start of each row, or defining the whole thing on the stack as a constant size `matrix[n][n]` - run at almost exactly the same speed as the index function method.
Recent GCC versions (> 4.0) seem to be able to compile the STL vector-of-vectors to nearly the same efficiency as the non-STL code when optimisations are turned on, but this is somewhat machine-dependent.
I'd like to use STL if possible, but will have to choose the fastest solution. Does anyone have any experience in optimising STL with GCC? | 0 | [
2,
19259,
7552,
272,
20512,
172,
8,
43,
7718,
18,
800,
3726,
3726,
31,
376,
21,
161,
20,
3501,
21,
172,
8,
43,
7718,
13,
5,
58,
8943,
8187,
6,
16,
7784,
19,
272,
20512,
15,
29,
7070,
5187,
1381,
68,
8860,
9,
31,
22,
195,
677... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Transpose a set of rows as columns in SQL Server 2000
===
Is there any facility of transposing rows to columns in SQL Server (it is possible in MS-Access)?
I was befuddled because this facility is available in MS-Access but not in SQL Server. Is it by design that this feature has not been included in SQL Server? | 0 | [
2,
2982,
15690,
21,
309,
16,
11295,
28,
7498,
19,
4444,
255,
8128,
824,
800,
3726,
3726,
25,
80,
186,
2646,
16,
2982,
14717,
11295,
20,
7498,
19,
4444,
255,
8128,
13,
5,
242,
25,
938,
19,
4235,
8,
20604,
6,
60,
31,
23,
44,
409... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a better way to trim a DateTime to a specific precision?
===
What's the best way to trim a DateTime object to a specific precision? For instance, if I have a DateTime with a value of '2008-09-29 09:41:43' and but I only want it's precision to be to the minute, is there are a better way to do it than this?
private static DateTime TrimDateToMinute(DateTime date)
{
return new DateTime(
date.Year,
date.Month,
date.Day,
date.Hour,
date.Minute,
0);
}
What I would really want is to make it variable so that I could set its precision to the second, minute, hour, or day. | 0 | [
2,
25,
80,
21,
574,
161,
20,
8971,
21,
1231,
891,
20,
21,
1903,
13133,
60,
800,
3726,
3726,
98,
22,
18,
14,
246,
161,
20,
8971,
21,
1231,
891,
3095,
20,
21,
1903,
13133,
60,
26,
4851,
15,
100,
31,
57,
21,
1231,
891,
29,
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... |
"Firefighter" consulting, getting a project released
===
I am about to start working for a new customer who asked for a "firefighter" to help his only developer finish a product due at the end of the month.
While I am confident I will do fine from a technical point of view, I could use some advice regarding the best way to "educate" this developer without sounding too pedantic.
Have you ever been hired for such a task? What are the do and don't? | 0 | [
2,
13,
7,
5929,
15857,
7,
11146,
15,
1017,
21,
669,
261,
800,
3726,
3726,
31,
589,
88,
20,
799,
638,
26,
21,
78,
7705,
72,
411,
26,
21,
13,
7,
5929,
15857,
7,
20,
448,
33,
104,
10058,
2106,
21,
2374,
397,
35,
14,
241,
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... |
what is wrong with this _popen / select example
===
I'm trying to capture the output from tail (as an example) so i can pass it along to another application later on. In order not to block the second application when no new data is passed i tried myself with select() so i can react whenever new data arrives from tail. Here is the code i have:
int loop = 0;
FILE *output
int main()
{
output = _popen("tail -f test.txt","r");
int filePointer = _fileno(output);
fd_set fd;
fd_set exceptfds;
FD_ZERO(&fd);
FD_ZERO(&exceptfds);
FD_SET(filePointer,&fd);
FD_SET(filePointer,&exceptfds);
struct timeval timeout;
timeout.tv_sec = (long) 1;
timeout.tv_usec = (long) 0;
while(loop == 0)
{
select(NULL,&fd,NULL,&exceptfds,NULL);
if(FD_ISSET(filePointer,&exceptfds))
{
printf("i have data\n");
}
else if(FD_ISSET(filePointer,&exceptfds) != 0)
{
printf("encountered error\n");
}
else
{
printf(".");
}
Sleep(200);
}
return 0;
}
The result is that "i have data" happens everytime it goes through this loop, which shouldn't happen since tail does not throw out anything new aslong as test.txt is not edited/saved with new data. What am i doing wrong? Am i using select the wrong way? I'm quite new to C so i'm at a total loss here. Thanks for the help already! | 0 | [
2,
98,
25,
1389,
29,
48,
13,
1,
6057,
219,
13,
118,
5407,
823,
800,
3726,
3726,
31,
22,
79,
749,
20,
3683,
14,
5196,
37,
3424,
13,
5,
472,
40,
823,
6,
86,
31,
92,
1477,
32,
303,
20,
226,
3010,
138,
27,
9,
19,
389,
52,
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... |
Best way to get data from a DataReader into a Farpoint Spreadsheet?
===
I need to move data from a datareader into a [Farpoint Spreadsheet][1] component in a Windows form. The DataSource of an fps sheet [can't be set to a datareader][2]. I don't want to change my app to use ADO just for this purpose.
Right now I'm looping through the query data and pushing it into the sheet cell-by-cell. That's ugly, and I am sure performance will suffer for large datasets (though I haven't tried it yet).
Does anyone here know a better way to get a datareader into one of these components? I'm using VB.NET, but a C# example would be fine.
[1]: http://www.fpoint.com/products/spread/spread.aspx
[2]: http://www.clubfarpoint.com/Forums/forums/thread/68432.aspx | 0 | [
2,
246,
161,
20,
164,
1054,
37,
21,
1054,
10647,
106,
77,
21,
463,
3132,
1789,
17627,
60,
800,
3726,
3726,
31,
376,
20,
780,
1054,
37,
21,
1054,
10647,
106,
77,
21,
636,
3700,
3132,
1789,
17627,
500,
2558,
165,
500,
5912,
19,
21... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
"Class does not support automation" error when i call Request.ServerVariables("remote_host")
===
I'm in the process of writing a basic cookie for an ecommerce site which is going to store the user's IP among other details.
We'll then record the pages they view in the database and pull out a list of recently viewed pages.
However i'm having an issue with the following code.
dim caller
caller = Response.Cookies("caller")
if caller = "" then
caller = Request.ServerVariables("remote_host")
end if
On running this, i get the following error message.
"Sun ONE ASP VBScript runtime (0x800A01AE)
Class does not support automation"
Any ideas? Google has nothing obvious. | 0 | [
2,
13,
7,
1898,
630,
52,
555,
23217,
7,
7019,
76,
31,
645,
3772,
9,
10321,
106,
8220,
579,
18,
5,
7,
99,
20209,
1,
11694,
7,
6,
800,
3726,
3726,
31,
22,
79,
19,
14,
953,
16,
1174,
21,
2125,
19980,
26,
40,
13,
62,
26470,
68... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 declare a user-defined function returning node-set?
===
I want something like this:
<msxsl:script language="C#">
??? getNodes() { ... return ... }
</msxsl:script>
<xsl:for-each select="user:getNodes()">
...
</xsl:for-each>
What return type should i use for `getNodes()` and what should i put in it's body?
| 0 | [
2,
184,
20,
10123,
21,
4155,
8,
13439,
1990,
2485,
15421,
8,
3554,
60,
800,
3726,
3726,
31,
259,
301,
101,
48,
45,
13,
1,
79,
18,
396,
18,
255,
45,
8741,
816,
3726,
7,
150,
5910,
7,
1,
13,
60,
60,
60,
164,
251,
3196,
5,
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... |
Apache/php guru needed! htaccess files, php, includes directories, and windows XAMPP configuration nightmare!
===
XAMPP makes configuring a local LAMP stack for windows a breeze. So it's quite disappointing that enabling htaccess files is such a nightmare.
My problem:
I've got a PHP application that requires apache/php to search for an /includes/ directory contained within the application. To do this, htaccess files must be allowed in apache and the htaccess file must specify exactly where the includes directory is.
Problem is, I can't get my apache config to view these htaccess files. I had major hassles installing this app at uni and getting the admins there to help with the setup. This shouldn't be so hard but for some reason I just can't get apache to play nice.
This is my setup:
c:\xampp
c:\xampp\htdocs
c:\xampp\apache\conf\httpd.conf - where I've made the changes listed below
c:\xampp\apache\bin\php.ini - where changes to this file affect the php installation
It is interesting to note that c:\xampp\php\php.ini changes mean nothing - this is NOT the ini that affects the php installation.
The following lines are additions I've made to the httpd.conf file
#AccessFileName .htaccess
AccessFileName htaccess.txt
#
# The following lines prevent .htaccess and .htpasswd
# files from being viewed by Web clients.
#
#<Files ~ "^\.ht">
<Files ~ "^htaccess\.">
Order allow,deny
Deny from all
</Files>
<Directory "F:/Apache2/htdocs">
#
# AllowOverride controls what directives may be placed in
# .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
The following is the entire htaccess file contained in:
c:\xampp\htdocs\application\htaccess.txt
<Files ~ "\.inc$">
Order deny,allow
Deny from all
</Files>
php_value default_charset "UTF-8"
php_value include_path ".;c:\xampp\htdocs\application\includes"
php_value register_globals 0
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value session.use_cookies 1
php_value session.use_only_cookies 0
php_value session.use_trans_sid 1
php_value session.gc_maxlifetime 3600
php_value arg_separator.output "&"
php_value url_rewriter.tags "a=href,area=href,frame=src,input=src,fieldset="
The includes directory exists at the location specified.
When I try to access the application I receive the following error:
Warning: require(include.general.inc) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\application\menu\logon.php on line 21
Fatal error: require() [function.require]: Failed opening required 'include.general.inc' (include_path='.;C:\xampp\php\pear\random') in C:\xampp\htdocs\application\menu\logon.php on line 21
The include path c..\random\ is specified in the php.ini file listed above. The xampp install fails to allow another include path as specified in the htaccess.txt file.
Please help! I'm guessing there's probably an error with the httpd.conf OR the htaccess.txt file.. but it doesn't seem to be reading the htaccess file. I've tried to be as thorough as possible so forgive the verbosity of the post.
Now I know a workaround could be to simply add the include_path to the php file, but I'm not going to have access to the php.ini file on the location I plan to deploy my app. I will, however, be able to request the server admin allows htaccess files. | 0 | [
2,
17140,
118,
26120,
10334,
851,
187,
13,
9020,
20604,
6488,
15,
13,
26120,
15,
1103,
559,
1596,
15,
17,
1936,
993,
765,
3421,
8091,
10586,
187,
800,
3726,
3726,
993,
765,
3421,
1364,
1065,
13549,
68,
21,
375,
6792,
7566,
26,
1936,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 analyse 'noisiness' of an array of points
===
Have done fft (see earlier posting if you are interested!) and got a result, which helps me. Would like to analyse the noisiness / spikiness of an array (actually a vb.nre collection of single). Um, how to explain ...
When signal is good, fft power results is 512 data points (frequency buckets) with low values in all but maybe 2 or 3 array entries, and a decent range (i.e. the peak is high, relative to the noise value in the nearly empty buckets. So when graphed, we have a nice big spike in the values in those few buckets.
When signal is poor/noisy, data values spread (max to min) is low, and there's proportionally higher noise in many more buckets.
What's a good, computationally non-intensive was of analysing the noisiness of this data set? Would some kind of statistical method, standard deviations or something help ? | 0 | [
2,
184,
20,
13,
21702,
13,
22,
251,
403,
8776,
22,
16,
40,
7718,
16,
819,
800,
3726,
3726,
57,
677,
13,
2460,
38,
13,
5,
1798,
1201,
15669,
100,
42,
50,
3158,
187,
6,
17,
330,
21,
829,
15,
56,
7778,
55,
9,
83,
101,
20,
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... |
Default port for SQL Server
===
I need to know the default port settings for the following services
1. SQL Server
2. SQL Browser
3. SQL Reporting services
4. SQL Analysis services
I neeed to know the port settings for these services for different versions of SQL Server (2000,2005,2008)
Also let me know whether the default port setting will change based on sql server versions
Thanks in advance. | 0 | [
2,
12838,
1295,
26,
4444,
255,
8128,
800,
3726,
3726,
31,
376,
20,
143,
14,
12838,
1295,
12410,
26,
14,
249,
687,
137,
9,
4444,
255,
8128,
172,
9,
4444,
255,
16495,
203,
9,
4444,
255,
6670,
687,
268,
9,
4444,
255,
2495,
687,
31,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to insert a string which contains an "&"
===
How can I write an insert statement which includes the & character? For example, if I wanted to insert "J&J Construction" into a column in the database.
I'm not sure if it makes a difference, but I'm using Oracle 9i. | 0 | [
2,
184,
20,
14692,
21,
3724,
56,
1588,
40,
13,
7,
1569,
7,
800,
3726,
3726,
184,
92,
31,
2757,
40,
14692,
3331,
56,
1103,
14,
279,
925,
60,
26,
823,
15,
100,
31,
417,
20,
14692,
13,
7,
728,
1569,
728,
900,
7,
77,
21,
4698,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 features distinguish Flex from DHTML?
===
I just got started using Adobe Flex SDK. I was very excited because it's the first time I've found a good, **free** way to create Flash applications. But then I noticed something: Flex doesn't seem to be much about making animations or designs. It seems more like an application to build forms and menus and the like... which I can already do in (D)HTML.
What features does Flex have that make it better than HTML in some cases?
Also, are there any techniques/software programs that would allow me to add the flash/design components that I mentioned earlier?
Thanks! | 0 | [
2,
98,
967,
9705,
14409,
37,
13,
43,
15895,
60,
800,
3726,
3726,
31,
114,
330,
373,
568,
20299,
14409,
13,
18,
43,
197,
9,
31,
23,
253,
7178,
185,
32,
22,
18,
14,
64,
85,
31,
22,
195,
216,
21,
254,
15,
13,
1409,
4639,
1409,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can you use "external" configuration files (i.e. with configSource) with an MSTest unit test project?
===
For simplicity, I generally split a lot of my configuration (i.e. the contents of app.config and web.config) out into separate .config files, and then reference them from the main config file using the 'configSource' attribute. For example:
<appSettings configSource="appSettings.config"/>
and then placing all of the key/value pairs in that appSettings.config file instead of having this in-line in the main config file:
<appSettings>
<add key="FirstKey" value="FirstValue"/>
<add key="SecondKey" value="SecondValue"/>
...
</appSettings>
This typically works great with the application itself, but I run into problems when attempting to write unit tests that, for whatever reason, need to get at some value from a configuration section that is stored in one of these external files. (I understand that most of these would likley be considered "integration tests", as they are relying on the Configuration system, and I do have "pure unit tests" as well, but those are the not the problem. I'm really looking to test that these configuration values are retrieved correctly and impact behavior in the correct way).
Due to how MSTest compiles and copies the output to obfuscated-looking folders that are different from every test run (rather than to the 'bin' folder like you might think), it never seems to be able to find those external files while the tests are executing. I've tried messing around with post build actions to make this work but with no luck. Is there a way to have these external files copied over into the correct output folder at run time? | 0 | [
2,
184,
92,
42,
275,
13,
7,
1706,
8766,
192,
7,
8091,
6488,
13,
5,
49,
9,
62,
9,
29,
13,
14093,
2816,
12097,
6,
29,
40,
4235,
10543,
1237,
1289,
669,
60,
800,
3726,
3726,
26,
20595,
15,
31,
1469,
2132,
21,
865,
16,
51,
8091,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using jQuery to Highlight Selected ASP.NET DataGrid Row
===
It is easy to highlight a selected datagrid row, by for example using toggleClass in the tr's click event. But how best to later remove the highlight after a different row has been selected? Iterating over all the rows to unhighlight them could become expensive for larger datagrids. I'd be interested in the simplest solution, as well as the most performant.
Thanks,
Mike | 0 | [
2,
568,
487,
8190,
93,
20,
14373,
1704,
28,
306,
9,
2328,
1054,
16375,
3131,
800,
3726,
3726,
32,
25,
2010,
20,
14373,
21,
1704,
1054,
16375,
3131,
15,
34,
26,
823,
568,
20,
263,
4875,
1898,
19,
14,
9235,
22,
18,
10840,
807,
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... |
Isn't resource-oriented really object-oriented?
===
When you think about it, doesn't the REST paradigm of being resource-oriented boil down to being object-oriented (with constrained functionality, leveraging HTTP as much as possible)?
I'm not necessarily saying it's a bad thing, but rather that if they are essentially the same then it becomes much easier to understand REST and the implications that such an architecture entails. | 0 | [
2,
2532,
22,
38,
6577,
8,
6800,
510,
3095,
8,
6800,
60,
800,
3726,
3726,
76,
42,
277,
88,
32,
15,
1437,
22,
38,
14,
760,
20234,
16,
142,
6577,
8,
6800,
22941,
125,
20,
142,
3095,
8,
6800,
13,
5,
1410,
28751,
18548,
15,
12785,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 resolve a merge conflict with SVN properties?
===
This has been bugging me for a long time -- how do I properly resolve a merge conflict within the SVN properties set on a directory? Say for instance there are two developers working on a project where svn:ignore is set on some directory. If both developers make changes to this property, when the second one updates, they will see a merge conflict.
Unlike file merge conflicts, a single file is generated in the directory called "dir\_conflicts.prej", which the second developer must read and manually correct. Usually, what I end up doing is reverting all my changes to the local copy, then re-setting these properties manually with the info in dir\_conflicts.prej. However, this is rather cumbersome when dealing with a big list of URLs in an svn:externals property, as many of our projects use.
There has got to be a better way to do this -- does anybody know how? | 0 | [
2,
184,
107,
31,
9854,
21,
12666,
2930,
29,
13,
18,
16578,
3704,
60,
800,
3726,
3726,
48,
63,
74,
6256,
2762,
55,
26,
21,
175,
85,
13,
8,
8,
184,
107,
31,
7428,
9854,
21,
12666,
2930,
363,
14,
13,
18,
16578,
3704,
309,
27,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.