unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Recovering from exceptions using CPPUnit
===
I have been using CPPUnit as a unit testing framework and am now trying to use it in an automated build and package system. However a problem holding me back is that if a crash occurs during the running of the unit tests, e.g. a null pointer dereferencing, it halts the remainder of the automation.
Is there any way for CPPUnit to recover from the exception, record the test failure and then exist gracefully rather than terminating the unit test process? Even an approach specific to null pointer dereferencing would be useful as that makes up about 90% of the issues I have had. | 0 | [
2,
15135,
37,
13392,
568,
272,
3421,
15464,
800,
3726,
3726,
31,
57,
74,
568,
272,
3421,
15464,
28,
21,
1237,
4431,
6596,
17,
589,
130,
749,
20,
275,
32,
19,
40,
14904,
1895,
17,
6030,
329,
9,
207,
21,
1448,
1337,
55,
97,
25,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best datatype to use for storing moderate amounts of text in SQL Server (2005)?
===
What is the best datatype to use for storing moderate amounts of text in SQL Server (2005)?
For example, imagine a table, storing information on downloads available on a website.
I want a title for the download which is brief, say varchar(20). A path, say varchar(255) then I want to store some user friendly text about the download - a description. In some cases it could be as short as the title, other times you may need a few of paragraphs of explanation.
What's best? A varchar with a size of say 4000, or a varchar(max) or something else? | 0 | [
2,
98,
25,
14,
246,
1054,
4474,
20,
275,
26,
25615,
8063,
8545,
16,
1854,
19,
4444,
255,
8128,
13,
5,
2835,
6,
60,
800,
3726,
3726,
98,
25,
14,
246,
1054,
4474,
20,
275,
26,
25615,
8063,
8545,
16,
1854,
19,
4444,
255,
8128,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is Wireframing Overplanning?
===
37 Signal's *Getting Real* convinced me that wireframing and writing functional specification documents are a middleman steps unnecessary for building web applications and dynamic websites.
Is the overhead for these steps worth its weight? Is prototyping in HTML/CSS or even PhotoShop documents (so designers can work on them directly) a better option? Personally, I am swaying towards the latter but am not sure. | 0 | [
2,
25,
6511,
8691,
3863,
84,
9863,
2981,
60,
800,
3726,
3726,
4294,
2800,
22,
18,
1637,
27380,
683,
2483,
5329,
55,
30,
6511,
8691,
3863,
17,
1174,
7652,
14177,
4374,
50,
21,
772,
177,
2382,
16435,
26,
353,
2741,
3767,
17,
7782,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I check if one game object can see another?
===
I have an object, that is facing a particular direction with (for instance) a 45 degree field of view, and a limit view range. I have done all the initial checks (Quadtree node, and distance), but now I need to check if a particular object is within that view cone, (In this case to decide only to follow that object if we can see it).
Apart from casting a ray for each degree from `Direction - (FieldOfView / 2)` to `Direction + (FieldOfView / 2)` (I am doing that at the moment and it is horrible), what is the best way to do this visibility check? | 0 | [
2,
184,
92,
31,
2631,
100,
53,
250,
3095,
92,
196,
226,
60,
800,
3726,
3726,
31,
57,
40,
3095,
15,
30,
25,
4325,
21,
1498,
1400,
29,
13,
5,
1106,
4851,
6,
21,
2487,
1168,
575,
16,
1418,
15,
17,
21,
4496,
1418,
978,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
csv date format [VBA]
===
I have a VB application which extracts data a creates 3 csv files (a.csv, b.csv, c.csv).. Then I use another excel spreadsheet (import.xls) to import all the datya from the above csv files to import.xls file.
import.cls file has a macro which open the csv files one by one and copies the data. The problem I am facing is when the Macro opens the csv files the dates in the csv files are displayed as mm/dd/yyyy and this is copied to the excel sheet. But I want the date in dd/mm/yyy format.
When I open any of the csv files manually the dates are displayed in the correct format (mm/dd/yyyy). Any idea how I can solve this issue? | 0 | [
2,
272,
18,
710,
1231,
2595,
636,
710,
969,
500,
800,
3726,
3726,
31,
57,
21,
13,
20468,
3010,
56,
10962,
18,
1054,
21,
9695,
203,
272,
18,
710,
6488,
13,
5,
58,
9,
6824,
710,
15,
334,
9,
6824,
710,
15,
272,
9,
6824,
710,
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... |
How would I write this 3 level deep mysql query?
===
This might be a little hard to explain, but I will try.
I want to display a list of categories (stored in 1 table), and number of domains associated with each category (stored in another table).
The monkey wrench in this case is that each domain has a set of records associated with it (which are stored in a 3rd table). I only want to show the categories that have domains associated with them, and the count of domains should reflect only the domains that have records associated with them (from the 3rd table). | 0 | [
2,
184,
83,
31,
2757,
48,
203,
662,
855,
51,
18,
22402,
25597,
60,
800,
3726,
3726,
48,
530,
44,
21,
265,
552,
20,
3271,
15,
47,
31,
129,
1131,
9,
31,
259,
20,
3042,
21,
968,
16,
6422,
13,
5,
16828,
43,
19,
137,
859,
6,
15... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C++ headers - separation between interface and implementation details
===
One of classes in my program uses some third-party library. Library object is a private member of my class:
// My.h
#include <3pheader.h>
class My
{
...
private:
3pObject m_object;
}
The problem with this - any other unit in my program that uses My class should be configured to include 3p headers. Moving to another kind of 3p will jeopardize the whole build...
I see two ways to fix this - one is to is to make 3pObject extern and turn m_Object into a pointer, being initialized in constructor; second is to create an "interface" and "factory" classes and export them...
Could you suggest another ways to solve that ?
| 0 | [
2,
272,
20512,
157,
445,
13,
8,
8312,
128,
6573,
17,
6123,
3289,
800,
3726,
3726,
53,
16,
2684,
19,
51,
625,
2027,
109,
422,
8,
9635,
1248,
9,
1248,
3095,
25,
21,
932,
322,
16,
51,
718,
45,
12894,
51,
9,
252,
6926,
22640,
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... |
Can I simply 'read' a file that is in use?
===
I am trying to use a StreamReader to read a file, but it is always in use by another process so I get this error:
> The process cannot access the file
> '\\arfjwknasgmed17\C$\FLAG
> CONDITION\CP-ARFJN-FLAG.XLS' because
> it is being used by another process.
Is there a way I can read this without copying it? Or is that my only option? | 0 | [
2,
92,
31,
1659,
13,
22,
10647,
22,
21,
3893,
30,
25,
19,
275,
60,
800,
3726,
3726,
31,
589,
749,
20,
275,
21,
3766,
10647,
106,
20,
1302,
21,
3893,
15,
47,
32,
25,
550,
19,
275,
34,
226,
953,
86,
31,
164,
48,
7019,
45,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jQuery Validation plugin: disable validation for specified submit buttons
===
I have a form with multiple fields that I'm validating (some with methods added for custom validation) with Jörn Zaeffere's excellent jQuery Validation plugin. How do you circumvent validation with specified submit controls (in other words, fire validation with some submit inputs, but do not fire validation with others)? This would be similar to ValidationGroups with standard ASP.NET validator controls.
My situation:
It's with ASP.NET WebForms, but you can ignore that if you wish. However, I am using the validation more as a "recommendation": in other words, when the form is submitted, validation fires but instead of a "required" message displaying, a "recommendation" shows that says something along the line of "you missed the following fields.... do you wish to proceed anyways?" At that point in the error container there's another submit button now visible that can be pressed which would ignore the validation and submit anyways. How to circumvent the forms .validate() for this button control and still post?
The Buy and Sell a House sample at http://jquery.bassistance.de/validate/demo/multipart/ allows for this in order to hit the previous links, but it does so through creating custom methods and adding it to the validator. I would prefer to not have to create custom methods duplicating functionality already in the validation plugin.
The following is a shortened version of the immediately applicable script that I've got right now:
var container = $("#<%= Form.ClientID %> div.validationSuggestion");
$('#<%= Form.ClientID %>').validate({
errorContainer: container,
errorLabelContainer: $("ul",container),
rules: {
<%= YesNo.UniqueID %>: { required: true },
<%= ShortText.UniqueID %>: { required: true } // etc.
},
messages: {
<%= YesNo.UniqueID %>: 'A message.',
<%= ShortText.UniqueID %>: 'Another message.' // etc.
},
highlight: function(element, errorClass) {
$(element).addClass(errorClass);
$(element.form).find("label[for=" + element.id + "]").addClass(errorClass);
$(element.form).find("label[for=" + element.id + "]").removeClass("valid");
},
unhighlight: function(element, errorClass) {
$(element).removeClass(errorClass);
$(element.form).find("label[for=" + element.id + "]").removeClass(errorClass);
$(element.form).find("label[for=" + element.id + "]").addClass("valid");
},
wrapper: 'li'
});
Much thanks in advance for helpful pointers. | 0 | [
2,
487,
8190,
93,
27999,
10922,
108,
45,
1460,
579,
27999,
26,
9931,
12298,
12861,
800,
3726,
3726,
31,
57,
21,
505,
29,
1886,
2861,
30,
31,
22,
79,
7394,
1880,
13,
5,
3220,
29,
3195,
905,
26,
5816,
27999,
6,
29,
487,
8771,
2236... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Fast library to replace CDC vector graphics
===
I have a mature MFC C++ application that displays on screen and prints using CDC wrappings on the Win32 GDI. While it has been optimized over the years, I would like to replace it with something a bit faster. The graphics included rendered triangular surface models, complex polylines and polygons, and lots of text. It needs to meet the following criteria;
- The number of vectors displayed is likely to be very large. For example a single surface triangle is likely to generate a number lines and solid fills when rendered. At present this information is not stored anywhere, it is generated and drawn on the fly. The SDK should support limit the total number of buffered vectors, or it is liable to run out of memory.
- The SDK should be able to render to any CWnd derived class including CView and ScrollView classes.
- The SDK should support printing to any Windows print device,
- The SDK should be low level enough to make the port from low level CDC / GDI calls relatively straightforward.
- Open source is always nice, but a one off cost of up to say $2k, with optional upgrades/support would also be ok. A license cost per user is not acceptable,
- Access to source code would be a big bonus, specifically with the idea of running portions of the SDK on Windows CE / Mobile.
- I currenly handle my own 3d to 2d viewport management. If a decent low level SDK is not available, a higher level SDK must handle 3d well, and work with millions of triangles, polygons and text entities on a 32 bit windows platform.
Any suggestions? Listing the specific pros and cons in your proposed suggestion would be greatly appreciated.
| 0 | [
2,
1512,
1248,
20,
3934,
1745,
150,
7497,
8351,
800,
3726,
3726,
31,
57,
21,
8615,
307,
7061,
272,
20512,
3010,
30,
9412,
27,
2324,
17,
12202,
568,
1745,
150,
13437,
18,
27,
14,
628,
3125,
489,
1115,
9,
133,
32,
63,
74,
22864,
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... |
Revoking an open source licence.
===
I have been considering suggesting to my managers that certain software (and material) that we have developed in house could be released as Open Source. Convincing management types to give away our stuff for free is a little hard, however, it might be looked upon more favourably if there's an "exit clause", if you like.
Is it possible to change the licence for something back from open source? Can something be released under a licence only for a certain period of time (ie: this is GPL at least for 12 months, and will be reviewed afterwards)? As you can probably tell, I'm very sketchy on these things. | 0 | [
2,
3867,
111,
1581,
40,
368,
1267,
10899,
9,
800,
3726,
3726,
31,
57,
74,
5154,
8946,
20,
51,
12657,
30,
1200,
2306,
13,
5,
290,
1492,
6,
30,
95,
57,
885,
19,
191,
110,
44,
261,
28,
368,
1267,
9,
13650,
1097,
2551,
20,
590,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 get the Nth digit of an integer with bit-wise operations?
===
Example. 123456, and we want the third from the right ('4') out.
The idea in practise is to access each digit seperately (ie. 6 5 4 3 2 1).
C/C++/C# preferred. | 0 | [
2,
184,
20,
164,
14,
13,
103,
96,
15611,
16,
40,
13820,
29,
1142,
8,
10474,
1311,
60,
800,
3726,
3726,
823,
9,
390,
3965,
3776,
15,
17,
95,
259,
14,
422,
37,
14,
193,
13,
5,
22,
300,
22,
6,
70,
9,
14,
882,
19,
27954,
25,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get python-markdown to additionally "urlify" links when formatting plain text?
===
Markdown is a great tool for formatting plain text into pretty html, but it doesn't turn plain-text links into URLs automatically. Like this one:
http://www.google.com/
How do I get markdown to add <a> tags to URLs when I format a block of text? | 0 | [
2,
184,
107,
31,
164,
20059,
8,
4527,
2968,
20,
4351,
13,
7,
911,
255,
8612,
7,
6271,
76,
2595,
1203,
3748,
1854,
60,
800,
3726,
3726,
943,
2968,
25,
21,
374,
5607,
26,
2595,
1203,
3748,
1854,
77,
1772,
13,
15895,
15,
47,
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... |
Why should I learn Python?
===
I currently program internet applications in php and mysql. I would like to broaden my horizons to new languages. What kind of things can be done with Python? | 0 | [
2,
483,
378,
31,
2484,
20059,
60,
800,
3726,
3726,
31,
871,
625,
2620,
3767,
19,
13,
26120,
17,
51,
18,
22402,
9,
31,
83,
101,
20,
23356,
51,
7530,
18,
20,
78,
2556,
9,
98,
825,
16,
564,
92,
44,
677,
29,
20059,
60,
3,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Internationalisation in Visual Studio
===
I'm fairly new to Visual Studio and am wondering how best to plan for translation in a new project I'm starting. I need to provide English, German and French.
I have used eclipse a lot in the past and there I just developed a new app and when it was complete I could just start a wizard to externalise strings into a resource file. The strings would be given to someone for translation.
What is your experience with VS? (I'm currently using VS2005 Express) What is your best advice for planning for translation? | 0 | [
2,
294,
4330,
19,
3458,
1120,
800,
3726,
3726,
31,
22,
79,
6647,
78,
20,
3458,
1120,
17,
589,
5712,
184,
246,
20,
944,
26,
4064,
19,
21,
78,
669,
31,
22,
79,
1422,
9,
31,
376,
20,
1181,
486,
15,
548,
17,
484,
9,
31,
57,
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... |
Creating sine or square wave in C#
===
How do a I generate an audio sine or square wave of a given frequency.
I am hoping to do this to calibrate equipment, so how precise would these waves be? | 0 | [
2,
2936,
13,
18,
1149,
54,
735,
2367,
19,
272,
5910,
800,
3726,
3726,
184,
107,
21,
31,
7920,
40,
4023,
13,
18,
1149,
54,
735,
2367,
16,
21,
504,
5328,
9,
31,
589,
3935,
20,
107,
48,
20,
10352,
220,
5487,
2181,
15,
86,
184,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Use Compiler/Linker for C++ Code Clean-up
===
I'm using VS2008 for a C++ project. The code is quite old and has passed through many hands. There are several classes hierarchies, functions, enums and so on which are no longer being used.
Is there a way to get the compiler/linker to list out identifiers which have been declared or defined but are not being referred to anywhere? | 0 | [
2,
275,
21486,
118,
6258,
106,
26,
272,
20512,
1797,
2745,
8,
576,
800,
3726,
3726,
31,
22,
79,
568,
4611,
2753,
26,
21,
272,
20512,
669,
9,
14,
1797,
25,
1450,
315,
17,
63,
1100,
120,
151,
473,
9,
80,
50,
238,
2684,
21376,
15... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
XPath condition for printing xml block
===
I am uisng java api and using xpath to parse my xml.
I have a xml likethis -
<animals>
<dog>
<looks>dangerous </looks>
<bites> hard </bites>
<growls> yes </growls>
</dog>
<cat>
nothing special
</cat>
</animals>
I would like a xpath condition to print
<dog>
<looks>dangerous </looks>
<bites> hard </bites>
<growls> yes </growls>
</dog>
But I am not able to now.If i use /animal/dog/text() it gives dangerous.But I guess it is used print text alone.Is there a way using xpath condition to fetch a block of xml?
Thanks,
Vivek
| 0 | [
2,
993,
8353,
2874,
26,
7312,
23504,
1921,
800,
3726,
3726,
31,
589,
287,
403,
2723,
8247,
21,
2159,
17,
568,
993,
8353,
20,
2017,
870,
51,
23504,
9,
31,
57,
21,
23504,
101,
1565,
13,
8,
13,
1,
25480,
18,
1,
13,
1,
8462,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does python support multiprocessor/muliticore programming?
===
What is the difference between multiprocessor programming and multicore programming?
preferably show examples in python how to write a small program for multiprogramming & multicore programming | 0 | [
2,
630,
20059,
555,
1889,
16835,
248,
118,
10965,
14652,
5377,
3143,
60,
800,
3726,
3726,
98,
25,
14,
2841,
128,
1889,
16835,
248,
3143,
17,
1889,
10375,
3143,
60,
6369,
4801,
298,
3770,
19,
20059,
184,
20,
2757,
21,
284,
625,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Debug .NET Setup Project
===
How can I debug a .NET setup project? | 0 | [
2,
121,
16254,
13,
9,
2328,
18161,
669,
800,
3726,
3726,
184,
92,
31,
121,
16254,
21,
13,
9,
2328,
18161,
669,
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,
0... | [
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... |
C# streaming sockets, how to separate messages?
===
Kinda long title, but anyways...
I've been looking at these examples, specifically on the parts on writing and reading the size of the message to the byte streams
<http://doc.trolltech.com/4.4/network-fortuneclient-client-cpp.html>
<http://doc.trolltech.com/4.4/network-fortuneserver-server-cpp.html>
But I can't seem to figure it out in C#.
StreamWriter writer = new StreamWriter(tcpClient.GetStream());
writer.Write(data.Length + data);
This doesn't work very well at all. Could someone give me a nudge in the right direction? | 0 | [
2,
272,
5910,
11920,
18482,
18,
15,
184,
20,
1725,
7561,
60,
800,
3726,
3726,
21096,
175,
581,
15,
47,
2774,
18,
9,
9,
9,
31,
22,
195,
74,
699,
35,
158,
3770,
15,
3524,
27,
14,
1341,
27,
1174,
17,
1876,
14,
1072,
16,
14,
280... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Safely kill a process from .bat file
===
I have a VB6 application that needs to update it's self. For this purpose, the PM has recommended using a batch file that is to be launched from the application. The batch file should kill the process, download the new version from a local server, overwrite the old files and launch the application again.<br />
My problem with this is that I am not sure that taskkill returns control the the parent only after the process has been killed and all the used resources have been released; in particular, we were wondering what happens to the process' .exe file. Is there any guarantee that it will be unlocked after taskkill returns? - of course, theoretically it shouldn't be locked by any other process, this is the only case we're interested in. | 0 | [
2,
9817,
1177,
21,
953,
37,
13,
9,
4900,
3893,
800,
3726,
3726,
31,
57,
21,
13,
20468,
379,
3010,
30,
2274,
20,
11100,
32,
22,
18,
1119,
9,
26,
48,
2131,
15,
14,
6736,
63,
5773,
568,
21,
13064,
3893,
30,
25,
20,
44,
1601,
37... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the maximum length of textbox in SSRS
===
I need to kkow the maximum length of an textbox in an ssrs. How much data it can accomdate.
| 0 | [
2,
98,
25,
14,
2979,
1476,
16,
1854,
5309,
19,
22118,
18,
800,
3726,
3726,
31,
376,
20,
680,
11247,
14,
2979,
1476,
16,
40,
1854,
5309,
19,
40,
22118,
18,
9,
184,
212,
1054,
32,
92,
21,
150,
960,
8209,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Python Forums
===
Are there any good Python forums where one can get help?
I have tried http://www.python-forum.org/ but I never seem to get any responses. | 0 | [
2,
20059,
5691,
18,
800,
3726,
3726,
50,
80,
186,
254,
20059,
5691,
18,
113,
53,
92,
164,
448,
60,
31,
57,
794,
7775,
6903,
6483,
9,
6448,
11570,
8,
1106,
723,
9,
5583,
118,
47,
31,
243,
2260,
20,
164,
186,
13231,
9,
3,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How does Databinding work with Structured Software
===
I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been quite happy with the results. Databinding Webforms works mostly the way I need it and I spared myself tons of code.
One thing that still feels weird is that I have application logic and database logic mixed throughout the application. Datasources query directly to the database..
Also, there is no way (I could think of) that would enable me to unit-test this system. By having the DA logic everywhere I can't really momck out database calls and provide fake data. (Although I am still learning how to do that on normal projects as well).
So, how was this meant to work initially? How do I use databinding without sacrificing structure and testability? | 0 | [
2,
184,
630,
1054,
22260,
170,
29,
17784,
2306,
800,
3726,
3726,
31,
22,
195,
74,
845,
109,
2741,
8,
21011,
18,
10434,
30,
12139,
27,
1278,
1054,
8,
22260,
17,
57,
74,
1450,
1700,
29,
14,
1736,
9,
1054,
22260,
2741,
4190,
18,
69... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I hide extra component span tags in Tapestry?
===
If I use a span tag to render a component like <span jwcid="@If" .../>, my HTML ends up with a bunch of useless span tags. Most of the time, that's ok, but in some cases, it's interfering with my CSS or making the page invalid. Is there a way to tell Tapestry to process the tag, but not actually render it? | 0 | [
2,
184,
92,
31,
3077,
2230,
5912,
6289,
3383,
18,
19,
27144,
60,
800,
3726,
3726,
100,
31,
275,
21,
6289,
3383,
20,
16535,
21,
5912,
101,
279,
255,
38,
73,
18,
3206,
487,
499,
10220,
3726,
7,
1,
821,
7,
13,
9,
9,
9,
118,
156... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get from an instance of a class to a Class object in ActionScript 3?
===
How do you get an instance of the actionscript class `Class` from an instance of that class?
In Python, this would be `x.__class__`; in Java, `x.getClass();`.
I'm aware that [certain terrible hacks][1] exist to do this, but I'm looking for a built-in language facility, or at least a library routine built on something reliable.
[1]: http://actionscript.org/forums/showthread.php3?t=120135#td_post_545693 | 0 | [
2,
184,
107,
31,
164,
37,
40,
4851,
16,
21,
718,
20,
21,
718,
3095,
19,
1028,
8741,
203,
60,
800,
3726,
3726,
184,
107,
42,
164,
40,
4851,
16,
14,
1028,
8741,
718,
13,
1,
1898,
1,
37,
40,
4851,
16,
30,
718,
60,
19,
20059,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Opinions wanted: is it better to connect, or disconnect, the entities in the domain model?
===
I'm starting a new project; I wish to follow a DDD approach. We have talked to the business and achieved some insight into the domain in some detail (internet TV).
The team is five strong and distributed. We have adopted the repository pattern for data-access. We are following a service-based approach overall; services are responsible for performing operations, and we will expose some operations via a REST API, and some via our own client applications.
The people that do not have experience with ORMs (not that I have a massive amount either, at present) wish to model the entities without relationships between them, with the rationale that this forces the developers who use the Repositories to know precisely what effect they are having on the database. I am trying to point out that this will end up with a very chatty set of services, more code to maintain and test, and a domain model that fundamentally misses the point. I don't think this is a good approach, and neither do any of the people I've talked to about it.
Their desire for the implementation of this approach is Linq2SQL under the repository-facade. This requires a second model, a mapping class/layer between it and the domain model, and much duplication in the repositories because it doesn't appear to be possible (that we've seen so far) to write a generic repository. It also isn't possible to map L2S entities that leverage inheritance (which means that EVERY entity must have properties for created-on, created-by, etc)
**1st question:**
Can anyone offer me any advice about how to change their minds? I'm in the process of writing a side-project which uses NHibernate, which of course supports the DDD-approach well, on the basis that "Show me the code" is a powerful argument.
**2nd question:**
What sorts of thing should I attempt to demonstrate in my NHibernate-using on-my-own-time side-project? I am new to it; one of their dislikes for NHibernate is the learning curve and the requirement for XML; my counter-argument is that it's a powerful tool, and Fluent NHibernate eliminates the need for XML. They still don't like it. | 0 | [
2,
11900,
417,
45,
25,
32,
574,
20,
6379,
15,
54,
29363,
15,
14,
12549,
19,
14,
4603,
1061,
60,
800,
3726,
3726,
31,
22,
79,
1422,
21,
78,
669,
73,
31,
2536,
20,
1740,
21,
13,
43,
8096,
2141,
9,
95,
57,
4599,
20,
14,
508,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 remove repeated elements from ArrayList
===
I have arrylist of string
And i want to remove repeated string from it.
| 0 | [
2,
184,
20,
4681,
4251,
2065,
37,
7718,
5739,
800,
3726,
3726,
31,
57,
13,
512,
622,
5739,
16,
3724,
17,
31,
259,
20,
4681,
4251,
3724,
37,
32,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to manage a simple PHP session using cURL (libcurl)
===
I'm writing a C++ client which is using libcurl for communicating with a PHP script.
The communication should be session based, and thus the first task is to login and make the PHP script set up a session.
I'm not used to working with sessions either from C++ or PHP. I basically know that it has to do with cookies and communicating session id.
I can't find any example on the curl homepage which demonstrates a simple session management use case.
I'm assuming it has something to do with one or many of the following options in curl:
CURLOPT_COOKIE
CURLOPT_COOKIEFILE
CURLOPT_COOKIEJAR
CURLOPT_COOKIESESSION
CURLOPT_COOKIELIST
But I can't really see the big picture just from the documentation of CURLOPT_COOKIESESSION for instance.
I have read this post also:
Anybody who has done this, please share a simple piece of code which shows the concept.
Regards
Robert
| 0 | [
2,
184,
20,
4705,
21,
1935,
13,
26120,
3723,
568,
14320,
13,
5,
8326,
4734,
255,
6,
800,
3726,
3726,
31,
22,
79,
1174,
21,
272,
20512,
6819,
56,
25,
568,
13,
8326,
4734,
255,
26,
23284,
29,
21,
13,
26120,
3884,
9,
14,
3291,
37... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What tool to use for javascript developement
===
So far I've used Dreamweaver and Eclipse to develop my js and tried a bunch of others. And let me say I'm not impressed.
I'd like to think there are better tools out there. Tools that could for example give me a
hint that something is wrong when I type document.geElementsById before I "build" and test my project. Maybe it could even have a autocomplete/suggestion system so I don't have to type everything myself (Eclipse has this but it doesn't work for functions you've defined, only for the built in features)
Let me know your favorites and why you think they're better than the rest.
| 0 | [
2,
98,
5607,
20,
275,
26,
8247,
8741,
2803,
9632,
800,
3726,
3726,
86,
463,
31,
22,
195,
147,
1868,
458,
11937,
17,
11652,
20,
2803,
51,
487,
18,
17,
794,
21,
7653,
16,
654,
9,
17,
408,
55,
395,
31,
22,
79,
52,
7059,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Strange MySQL syntax error
===
I get this error:-
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' at line 1
whenever I tried something like this:-
mysql> source /home/user1/sql/ddl.sql
mysql> source /home/user1/sql/insert.sql
mysql> source /home/user1/sql/cleanup.sql
The intresting thing is, this happen to each and every one of the sql scripts but only the first statement is corrupted. The rest of the statements in the script will run fine. I have worked around this by putting a dummy statement in every script.
Anyone had this problem before? I am completely stumped and checking Google hadn't helped yet. Thanks in advance. | 0 | [
2,
2578,
51,
18,
22402,
22649,
7019,
800,
3726,
3726,
31,
164,
48,
7019,
45,
8,
42,
57,
40,
7019,
19,
154,
4444,
255,
22649,
73,
2631,
14,
5132,
30,
17016,
20,
154,
51,
18,
22402,
8128,
615,
26,
14,
193,
22649,
20,
275,
424,
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... |
barcode image to Code39 conversion in C#?
===
I have barcode images in jpg format and want to extract barcode # from those. Please help! | 0 | [
2,
748,
9375,
1961,
20,
1797,
3412,
6263,
19,
272,
5910,
60,
800,
3726,
3726,
31,
57,
748,
9375,
3502,
19,
487,
9623,
2595,
17,
259,
20,
10962,
748,
9375,
6926,
37,
273,
9,
2247,
448,
187,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
getting the last modified date of a html file
===
how can i figure out the last modified date of a html file im importing into my web app?
The html file is on another server and different users can make updates, when i retrieve the page i want to be able see when it was last updated so i can label the updated date on my homepage. I | 0 | [
2,
1017,
14,
236,
5372,
1231,
16,
21,
13,
15895,
3893,
800,
3726,
3726,
184,
92,
31,
1465,
70,
14,
236,
5372,
1231,
16,
21,
13,
15895,
3893,
797,
9010,
68,
77,
51,
2741,
4865,
60,
14,
13,
15895,
3893,
25,
27,
226,
8128,
17,
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,
1,
1,
1,
1,
1,
1... |
How do I execute a program from python? os.system fails due to spaces in path
===
I have a python script that needs to execute an external program, but for some reason fails.
If I have the following script:
import os;
os.system("C:\\Temp\\a b c\\Notepad.exe");
raw_input();
Then it fails with the following error:
'C:\Temp\a' is not recognized as an internal or external command, operable program or batch file.
If I escape the program with quotes:
import os;
os.system('"C:\\Temp\\a b c\\Notepad.exe"');
raw_input();
Then it works. However, if I add a parameter, it stops working again:
import os;
os.system('"C:\\Temp\\a b c\\Notepad.exe" "C:\\test.txt"');
raw_input();
What is the right way to execute a program and wait for it to complete? I do not need to read output from it, as it is a visual program that does a job and then just exits, but I need to wait for it to complete.
Also note, moving the program to a non-spaced path is not an option either.
---
**Edit** This does not work either:
import os;
os.system("'C:\\Temp\\a b c\\Notepad.exe'");
raw_input();
Note the swapped single/double quotes.
with or without a parameter to notepad here, it fails. | 0 | [
2,
184,
107,
31,
15644,
21,
625,
37,
20059,
60,
13,
759,
9,
10724,
13614,
397,
20,
7644,
19,
2013,
800,
3726,
3726,
31,
57,
21,
20059,
3884,
30,
2274,
20,
15644,
40,
4886,
625,
15,
47,
26,
109,
1215,
13614,
9,
100,
31,
57,
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... |
Database design for database-agnostic applications
===
What do I have to consider **in database design** for a new application which should be able to support the most common relational database systems (SQL Server, MySQL, Oracle, PostgreSQL ...)?
Is it even worth the effort? What are the pitfalls?
| 0 | [
2,
6018,
704,
26,
6018,
8,
58,
21944,
3767,
800,
3726,
3726,
98,
107,
31,
57,
20,
3563,
13,
1409,
108,
6018,
704,
1409,
26,
21,
78,
3010,
56,
378,
44,
777,
20,
555,
14,
127,
757,
5827,
192,
6018,
1242,
13,
5,
18,
22402,
8128,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Complex types in WCF?
===
I've run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, 'connection forcibly closed by host'.
Is there any way to make this work? I currently have a structure resembling this:
pseudo code:
Person:
IEnumerable<Order>
Order:
IEnumberable<OrderLine>
All three objects have the DataContract attribute and all public properties i want exposed (including the IEnumerable's) have the DataMember attribute.
I have multiple OperationContract's on my service and all the methods returning a single object OR an IEnumerable of an object works perfectly. It's only when i try to nest IEnumerable that it turns bad. Also in my client service reference i picked the generic list as my collection type. | 0 | [
2,
1502,
2551,
19,
11801,
410,
60,
800,
3726,
3726,
31,
22,
195,
485,
77,
21,
1448,
749,
20,
788,
40,
3095,
30,
2763,
21,
1206,
16,
850,
23793,
18,
30,
188,
92,
1027,
21,
1206,
16,
920,
11287,
3916,
9,
31,
164,
40,
7019,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
TcpClient field of abstract base class constantly being disposed
===
I have an abstract base class with a TcpClient field:
public abstract class ControllerBase
{
internal protected TcpClient tcpClient;
It has a method to setup a connection:
private void setupConnection(IPAddress EthernetAddress, ushort TcpPort)
{
if (this.tcpClient == null || !this.tcpClient.Connected)
{
this.tcpClient = new TcpClient();
try
{
this.tcpClient.Connect(EthernetAddress, TcpPort);
}
catch(Exception ex)
{
throw new TimeoutException("The device did not respond.\n" + ex.Message);
}
}
}
And than methods to request data:
internal protected virtual byte[] requestData(IPAddress EthernetAddress, ushort TcpPort, byte[] data, bool IgnoreResponse)
{
setupConnection(EthernetAddress, TcpPort);
//The rest of the code uses this.tcpClient
There are a few others, such as requestRawData, etc... they are required for very specific hardware communication protocols, but that's not part of this question in any way.
I then have classes that derive from this class and they override the base class methods:
public class Controller : ControllerBase
{
internal virtual byte[] requestData(byte[] data, bool IgnoreResponse)
{
return base.requestData(this.eth0.EthernetAddress, this.eth0.TcpPort, data, IgnoreResponse);
}
The code works without any exceptions, but everytime the setupConnection method is called,
the TcpClient instance (tcpClient) seems to be disposed, so a new one is created and the connect method is called again, really slowing down the communication process.
Note: Public methods of the child class call the requestData method,
abstracting many details from the developer using this library.
Such as SetDevicePower(byte PowerLevel), QueryDeviceName() etc...
Code such as this:
Controller controller = new Controller("172.17.0.3",34000);
string name = controller.QueryDeviceName();
controller.SetDevicePower(200);
causes the connect method to be called twice... why is it being disposed between calls?
| 0 | [
2,
13,
6668,
5779,
18513,
38,
575,
16,
8502,
1000,
718,
7545,
142,
17913,
43,
800,
3726,
3726,
31,
57,
40,
8502,
1000,
718,
29,
21,
13,
6668,
5779,
18513,
38,
575,
45,
317,
8502,
718,
9919,
8436,
13,
1,
3117,
3803,
13,
6668,
577... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 should I call a REBOL function that does list comprehensions?
===
REBOL has no built-in way to perform list comprehensions. However, REBOL has a powerful facility (known as `parse`) that can be used to create domain-specific languages (DSLs). I've used `parse` to create such a mini-DSL for list comprehensions. In order to interpret the expression, the block containing the comprehension is passed to a function, which for lack of a better term I've called `comprehend`.
**Example:**
comprehend [(a * b) for a in 1x100 for b in 4x10 where (all [odd? a odd? b])]
For some reason, `comprehend` doesn't sound right to me, but something like `eval` is too general.
Any suggestions before I publish my code to the world? What should I call this function? | 0 | [
2,
98,
378,
31,
645,
21,
302,
6966,
1990,
30,
630,
968,
27300,
18,
60,
800,
3726,
3726,
302,
6966,
63,
90,
392,
8,
108,
161,
20,
2985,
968,
27300,
18,
9,
207,
15,
302,
6966,
63,
21,
2177,
2646,
13,
5,
2929,
28,
13,
1,
3574,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
url as parameter gets intercepted asp.net mvc
===
In my asp.net mvc app I want to check if a certain url returns a valid response.
Therefor I send the url to a method that tests the HttpWebRequest.GetResponse()
On my dev server (vs2008) it works just fine.
When deployed on production server however, it returns a Bad Request.
The method is never hit and my asp.net custom error pages are not used.
any ideas?
| 0 | [
2,
287,
6362,
28,
18906,
3049,
18990,
28,
306,
9,
2328,
307,
8990,
800,
3726,
3726,
19,
51,
28,
306,
9,
2328,
307,
8990,
4865,
31,
259,
20,
2631,
100,
21,
1200,
287,
6362,
4815,
21,
7394,
1627,
9,
80,
1106,
31,
2660,
14,
287,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why is my debugger so slow?
===
Since some time, my Delphi debugger became much slower than I was used to before.
I noticed this in both Delphi 2007 and 2009, so it seems it's something outside of Delphi itself...
What causes this behaviour, and how can I prevent this?
| 0 | [
2,
483,
25,
51,
121,
2345,
11356,
86,
2276,
60,
800,
3726,
3726,
179,
109,
85,
15,
51,
23030,
121,
2345,
11356,
178,
212,
14085,
119,
31,
23,
147,
20,
115,
9,
31,
2711,
48,
19,
156,
23030,
624,
17,
588,
15,
86,
32,
2206,
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... |
MSSQL2000: get list of role members
===
I know a role name and want to find all users in this role.
How do I acheive this in SQL Server 2000? | 0 | [
2,
4235,
18,
22402,
3050,
45,
164,
968,
16,
597,
443,
800,
3726,
3726,
31,
143,
21,
597,
204,
17,
259,
20,
477,
65,
3878,
19,
48,
597,
9,
184,
107,
31,
14187,
1284,
48,
19,
4444,
255,
8128,
824,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Alert Popups from service in Python
===
I have been using win32api.MessageBox to do alerts, and this works for apps running from the interactive prompt and normally executed code, however when I built a Python service when a MessageBox is triggered I can hear the 'beep' but the box does not display. Is it possible to display alerts from services? | 0 | [
2,
7863,
1675,
15699,
37,
365,
19,
20059,
800,
3726,
3726,
31,
57,
74,
568,
628,
3125,
2552,
49,
9,
3845,
18,
1303,
5309,
20,
107,
7863,
18,
15,
17,
48,
693,
26,
4865,
18,
946,
37,
14,
9194,
11443,
4417,
17,
4147,
5557,
1797,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Someone can look at the syntax of my rakefile?
===
I'm trying to write an import rakefile for Redmine. It uses ruby on rails. I'm not a rails developer but we do like using redmine for project and issues management.
require 'csv'
# csv issues import for redmine
# Will convert a csv into a issues bulkloader into redmine
# Column names
# row[0]=Nb Number,row[1]=Product,row[2]=Element,row[3]=Type,row[4]=Queue,
# row[5]=KeyWord,row[6]=Responsible,row[7]=Case Descriptions,row[8]=Days,
# row[9]=Planned Delivery,row[10]=Version
#
desc <<-END_DESC
Bulk loading of issues from a CSV file.
Available options:
* filepath => path to the text file.
* project => id or identifier of project
Example:
rake redmine:csv_import filepath="~/import.csv" project="askiavista"
END_DESC
namespace :redmine do
task :csv_import => :environment do
@firstrow = true
@count = 1
CSV.Open(ENV['filepath'],'r') do |row|
if not firstrow
@i = Issue.new
@i.project = Project.find_by_name(ENV['project'])
# If not a feature it's a bug
if row[3].contains("SUG")
@i.tracker = Tracker.find_by_id(2)
else
@i.tracker = Tracker.find_by_id(1)
end
if row[4].contains("TOP PRIORITY")
@i.priority = Enumeration.find_by_id(7)
elseif row[4].contains("HIGH PRIORITY")
@i.priority = Enumeration.find_by_id(5)
elseif row[4].contains("MEDIUM PRIORITY")
@i.priority = Enumeration.find_by_id(4)
else
@i.priority = Enumeration.find_by_id(3)
end
@i.author = Users.find(5)
@i.subject = truncate(row[4], 50)
@i.description = row[4]
@i.status = IssuesStatus.find_by_id(1)
@i.save
count += 1
end
firstrow = nil
end
end
When I ran it I get this error:
rake aborted!
/var/lib/redmine-0.7-dev/lib/tasks/csv_import.rake:60: syntax error, unexpected $end, expecting kEND
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load'
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/tasks/rails.rb:7
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/tasks/rails.rb:7:in `each'
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/tasks/rails.rb:7
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/var/lib/redmine-0.7-dev/Rakefile:10
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in `raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1897:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1896:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1880:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
I've looked around and I see other users with this problem but no solution is found. This is supposed to be a quick script to import a few hundred bugs and features into redmine. | 0 | [
2,
737,
92,
361,
35,
14,
22649,
16,
51,
21009,
16877,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
2757,
40,
9010,
21009,
16877,
26,
402,
7640,
9,
32,
2027,
10811,
27,
2240,
18,
9,
31,
22,
79,
52,
21,
2240,
18,
10058,
47,
95,
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... |
Many people don't know how to multi-select items in a HTML <select> control, so...?
===
I know many people who use computers every day, who do not know how to select multiple items in a HTML select box/list. I don't want to use this control in my pages any more:
Please pick 3 options:
<select name="categories" size="10" multiple="yes">
So what user-friendly alternatives do you suggest? Perhaps have 10 tickboxes...or maybe just have each option in a coloured block which changes colour when they click to choose it? This gets messier when I consider my current list of 20 options might grow to 50 eventually.
Whatever way I pick it's gonna be a pain to validate it (using Javascript), to make sure the person picks at least 1 item and not more than 3. It's not about detecting how many options they have picked, the problem is more about how to convey this to the user in a friendly way! | 0 | [
2,
151,
148,
221,
22,
38,
143,
184,
20,
1889,
8,
18,
16964,
3755,
19,
21,
13,
15895,
13,
1,
18,
16964,
1,
569,
15,
86,
9,
9,
9,
60,
800,
3726,
3726,
31,
143,
151,
148,
72,
275,
7774,
352,
208,
15,
72,
107,
52,
143,
184,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Application Architecture - How would you design this process
===
I have an application that is made up of the following:
A central database containing 100k+ records
A number of "client" databases each containing around 10-20k records
The client databases contain details of contacts that each have a unique ID (contactID).<BR>
The central database contains some of these contacts identified by the same contactID.
Overnight we need to iterate through the client databases querying the central database for updates to each contact then bring it into the client database. <BR>
The central database is held by a third party so we cannot change anything. <BR>
The company holding the central database want to do this over web services iterating through each contact. <BR>
My concerns are this would be very slow to do over web services given the number of records.
Currently I am thinking of generating a file on each client which contains a list of all the contacts for that client. This would then be sent to the central database. The central database would then process this file and send back another file containing all updates.
How would you create this so it runs as quick as possible?
| 0 | [
2,
3010,
2607,
13,
8,
184,
83,
42,
704,
48,
953,
800,
3726,
3726,
31,
57,
40,
3010,
30,
25,
117,
71,
16,
14,
249,
45,
21,
521,
6018,
3503,
808,
197,
2430,
742,
21,
234,
16,
13,
7,
150,
18513,
38,
7,
6018,
18,
206,
3503,
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... |
Table with several TBODY tags in ASP.NET
===
I would like to create (in code) tree of controls that would render as a table with several TBODY tags, i.e.:
<TABLE>
<TBODY>
<TR>
<TD></TD>
</TR>
<TR>
<TD></TD>
</TR>
</TBODY>
<TBODY>
<TR>
<TD></TD>
</TR>
<TR>
<TD></TD>
</TR>
</TBODY>
</TABLE>
I tried both Table and HtmlTable controls but had no success. Any clues? | 0 | [
2,
859,
29,
238,
13,
38,
9760,
3383,
18,
19,
28,
306,
9,
2328,
800,
3726,
3726,
31,
83,
101,
20,
1600,
13,
5,
108,
1797,
6,
1541,
16,
8671,
30,
83,
16535,
28,
21,
859,
29,
238,
13,
38,
9760,
3383,
18,
15,
31,
9,
62,
9,
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... |
64-bit JVM on Server, 32-bit JVM on Client, combination possible?
===
I'm having a JBoss EJB3 Application and a Swing client, running in 32-bit Java 6 VM's. We now have to change the Server JVM to 64 bit. May this combination of JVM's cause any trouble (do I need to use 64-bit JVM on the client, too)?
Greetings,
buzztee | 0 | [
2,
4384,
8,
3326,
487,
20147,
27,
8128,
15,
2512,
8,
3326,
487,
20147,
27,
6819,
15,
3733,
938,
60,
800,
3726,
3726,
31,
22,
79,
452,
21,
487,
10349,
18,
13,
10022,
220,
240,
3010,
17,
21,
5587,
6819,
15,
946,
19,
2512,
8,
332... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Make: $(wildcard) holding a directory open
===
So there seems to be this problem with GNU Make's $(wildcard) function keeping a directory open on Windows. See (unasnwered) post "[make is holding a directory open][1]".
In short: the Makefile uses the $(wildcard) function at some point, and keeps a directory open, which typically prevents the "make clean" rule to do its work correctly. Re-running "make clean" a second time usually solves it.
I'm using GNU Make version 3.81 under a standard DOS-Box. The author of the post linked to above is using Cygwin.
Has anyone found a fix for this?
[1]: http://www.cygwin.com/ml/cygwin/2003-06/msg01182.html | 0 | [
2,
233,
45,
5579,
5,
14324,
6648,
6,
1337,
21,
16755,
368,
800,
3726,
3726,
86,
80,
2206,
20,
44,
48,
1448,
29,
26092,
233,
22,
18,
5579,
5,
14324,
6648,
6,
1990,
2882,
21,
16755,
368,
27,
1936,
9,
196,
13,
5,
4140,
18,
103,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Showing newly added table row using .show("slow")
===
I am cloning a hidden table row then populating it and after validation I want to show the row using a jquery effect ... say .show("slow")
var baseRow = $("#tasks tr#baseTaskLine");
var newRow = baseRow.clone();
var lastRow = $("#tasks tr[id^='TaskLine_']" + dayClass + ":last");
var newRowId;
if (lastRow.length == 0) {
newRowId = "TaskLine_new0";
}
else {
newRowId = "TaskLine_new" + lastRow[0].rowIndex;
}
newRow.attr("id", newRowId);
:
[populate new row]
:
if (lastRow.length == 0) {
baseRow.after(newRow);
}
else {
lastRow.after(newRow);
}
newRow.hide();
:
:
[validate via webservice call]
:
newRow.show("slow");
This does show the row but it appears instantly. I have tried hiding all the `<td>` elements of the row then showing those and that does seem to work but some strange styles get added to each `<td>` which interfere with the formatting i.e. `style="display: block;"` | 0 | [
2,
3187,
2771,
905,
859,
3131,
568,
13,
9,
9303,
5,
7,
15680,
7,
6,
800,
3726,
3726,
31,
589,
19226,
68,
21,
3689,
859,
3131,
94,
1675,
10038,
32,
17,
75,
27999,
31,
259,
20,
298,
14,
3131,
568,
21,
487,
8190,
93,
1590,
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... |
Implementing a KVO/Bindings-Compliant Bridge-Pattern in Cocoa
===
I'm trying to implement a simple object bridge in cocoa where the bridge object acts as a kvo/bindings-compliant drop in for some arbitrary other NSObject-instance.
Here is my problem (more details in the code below):
A bridge object acts as a drop in for a Person-Object, with an NSString* property called *name* and an Address* property *address*. Binding to the keyPath "name" or "address" of the Bridge works nicely. Trouble starts when binding some object to the keyPath "address.street" of the bridge and a new Address-Object is set for Person's *address* property. That results in KVO-related exceptions that look like this:
> Cannot remove an observer <NSKeyValueObservance 0x126b00> for the key path "street" from <Address 0x12f1d0> because it is not registered as an observer
This happens even though the bridge notices the change in the "address"-Property and emits a willChangeValueForKeyPath/didChangeValueForKeyPath tuple.
The code below produces the the problem. It's self-contained objective-c code that can be saved in a file "BridgeDemo.m" and compiled run with
gcc -o test BridgeDemo.m -framework AppKit -framework Foundation; ./test
If you know a solution to this problem or can offer me a better approach solving the same problem you make me a **very** happy programmer!
BridgeDemo.m:
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
/* --- Address ----------------------------------------- */
@interface Address : NSObject {
NSString* street;
NSNumber* zipCode;
NSString* city;
}
@property(retain) NSString* street;
@property(retain) NSNumber* zipCode;
@property(retain) NSString* city;
@end
@implementation Address
@synthesize street, zipCode, city;
-(id)init {
if( !( self = [super init] ) ) { return nil; }
self.street = @"Elm Street";
self.zipCode = @"12345";
self.city = @"Crashington";
return self;
}
-(void) modifyStreet {
self.street = @"Main Street";
}
-(void)dealloc {
[street release]; [zipCode release]; [city release];
[super dealloc];
}
@end
/* --- Person ----------------------------------------- */
@interface Person : NSObject {
NSString* name;
Address* address;
}
@property(retain) NSString* name;
@property(retain) Address* address;
@end
@implementation Person
@synthesize address, name;
-(id)init {
if( !( self = [super init] ) ) { return nil; }
self.name = @"Tom";
self.address = [[Address new] autorelease];
return self;
}
- (void)modifyAddress {
Address* a = [[Address new] autorelease];
a.street = @"Jump Street";
a.zipCode = @"54321";
a.city = @"Memleakville";
self.address = a;
}
- (void)dealloc { [address release]; [name release]; [super dealloc]; }
@end
/* --- Bridge ----------------------------------------- */
@interface Bridge : NSObject {
NSMutableDictionary* observedKeys;
NSObject* obj;
}
@property(retain) NSObject* obj;
@end
@implementation Bridge
@synthesize obj;
- (id)init {
if( !( self = [super init] ) ) { return nil; }
observedKeys = [NSMutableDictionary new];
return self;
}
- (void)forwardInvocation:(NSInvocation*)inv {
[inv invokeWithTarget:obj];
}
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
return [obj methodSignatureForSelector:aSelector];
}
- (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
NSLog( @">>>> Detected Change in keyPath: %@", keyPath );
[self willChangeValueForKey:keyPath];
[self didChangeValueForKey:keyPath];
}
-(id)valueForUndefinedKey:(NSString*)key {
/* Register an observer for the key, if not already done */
if( ![observedKeys objectForKey:key] ) {
[observedKeys setObject:[NSNumber numberWithBool:YES] forKey:key];
[obj addObserver:self forKeyPath:key options:NSKeyValueObservingOptionNew context:nil];
}
return [obj valueForKey:key];
}
- (void)dealloc {
for( NSString* key in [observedKeys allKeys] ) {
[obj removeObserver:self forKeyPath:key];
}
[obj release];
[observedKeys release];
[super dealloc];
}
@end
/* --- MyObserver ------------------------------------ */
@interface MyObserver : NSObject {
Address* address;
NSString* street;
}
@property(retain) Address* address;
@property(retain) NSString* street;
@end
@implementation MyObserver
@synthesize street, address;
-(void)dealloc { [street release]; [super dealloc]; }
@end
/* This works fine */
void testBindingToAddress() {
NSLog( @"Testing Binding to 'address' --------------" );
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
Bridge* b = [[Bridge new] autorelease];
b.obj = [Person new];
MyObserver* o = [[MyObserver new] autorelease];
[o bind:@"address" toObject:b withKeyPath:@"address"
options:nil];
NSLog( @"Before modifyStreet: %@", o.address.street );
[[b valueForKey:@"address"] performSelector:@selector(modifyStreet)];
NSLog( @"After modifyStreet: %@", o.address.street );
[b performSelector:@selector(modifyAddress)];
NSLog( @"After modifyAdress: %@", o.address.street );
[pool drain];
}
/* This produces an exception */
void testBindingToStreet() {
NSLog( @"Testing Binding to 'address.street' --------------" );
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
Bridge* b = [[Bridge new] autorelease];
b.obj = [Person new];
MyObserver* o = [[MyObserver new] autorelease];
[o bind:@"street" toObject:b withKeyPath:@"address.street"
options:nil];
NSLog( @"Before modifyStreet: %@", o.street );
[[b valueForKey:@"address"] performSelector:@selector(modifyStreet)];
NSLog( @"After modifyStreet: %@", o.street );
[b performSelector:@selector(modifyAddress)];
NSLog( @"After modifyAdress: %@", o.street );
[pool drain];
}
/* --- main() ------------------------------------ */
int main (int argc, const char * argv[]) {
testBindingToAddress();
testBindingToStreet();
return 0;
}
| 0 | [
2,
17333,
21,
680,
2625,
118,
22260,
18,
8,
25509,
955,
8,
5972,
8766,
19,
24507,
800,
3726,
3726,
31,
22,
79,
749,
20,
8713,
21,
1935,
3095,
955,
19,
24507,
113,
14,
955,
3095,
3167,
28,
21,
680,
2625,
118,
22260,
18,
8,
25509,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Problem checking out (from VSS) and building maven project in Hudson
===
I am new to Hudson, perhaps someone knows the solution:
I am trying to checkout the parent pom from the VSS in Hudson (vss plugin installed) and now I get class cast exception:
FATAL: hudson.maven.MavenModuleSetBuild cannot be cast to hudson.model.Build
java.lang.ClassCastException: hudson.maven.MavenModuleSetBuild cannot be cast to hudson.model.Build
at scm.vss.VSSSCM.checkout(VSSSCM.java:227)
at hudson.model.AbstractProject.checkout(AbstractProject.java:664)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:260)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:234)
at hudson.model.Run.run(Run.java:793)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:205)
at hudson.model.ResourceController.execute(ResourceController.java:70)
at hudson.model.Executor.run(Executor.java:88)
The line in question is here:
Build lastBuild = (Build)build.getPreviousBuild();
Has the interface changed? Anyone knows the solution? | 0 | [
2,
1448,
9886,
70,
13,
5,
2665,
4611,
18,
6,
17,
353,
1216,
3124,
669,
19,
6195,
800,
3726,
3726,
31,
589,
78,
20,
6195,
15,
1774,
737,
3620,
14,
4295,
45,
31,
589,
749,
20,
2631,
1320,
14,
4766,
16214,
37,
14,
4611,
18,
19,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Accessing a remote file with a SharePoint Web Part
===
I recently built a program that parses a remote file from **\\some_server\c$\directory\file.xls** and it works fine on my local machine as just a normal aspx page.
> Then I put the program into web part
> form on my VM SharePoint server and I
> get this error: Access to the path
> '\\some_server\c$\directory\file.xls'
> is denied.
The file is shared to **Domain\Authenticated Users** so I am not sure why it would be denied? Is it possible my SharePoint is trying to call it with a local or network service account? How can I get it to read? Thank you. | 0 | [
2,
1381,
68,
21,
5388,
3893,
29,
21,
1891,
3132,
2741,
141,
800,
3726,
3726,
31,
1989,
392,
21,
625,
30,
2017,
7202,
21,
5388,
3893,
37,
13,
1409,
1,
3220,
1,
10321,
106,
1,
150,
4403,
1,
10197,
93,
1,
16877,
9,
396,
7532,
140... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get the C# Query component to recognise columns returned data from a temporary table in a sql stored procedure
===
I've created a stored procedure similar to the one below (I'm using this cut down version to try and figure our the problem).
CREATE PROCEDURE bsp_testStoredProc
AS
BEGIN
CREATE TABLE #tmpFiles
(
AuthorName NVARCHAR(50),
PercentageHigh INT
)
-- Insert data into temp table
SELECT AuthorName, PercentageHigh FROM #tmpFiles
ORDER BY PercentageHigh DESC
DROP TABLE #tmpFiles
RETURN 0
END
From my C# code in VS2008, I'm trying to use the Query component with the *Use Existing Stored Procedure* option to connect this up to a DataTable / DataGridView to display the results.
However, because I'm selecting from a temporary table, in the Query component properties Visual Studio does not display any columns being returned from the stored procedure. I assume that it has trouble determining the data types being used since the SP is not based on a real schema.
Connecting to different stored procedures that select from real tables do show the columns correctly.
Does anyone know away around this? Is there some sort of hint I can add somewhere to explicitly state what sort of data will be returned?
Thanks in advance.
| 0 | [
2,
184,
107,
31,
164,
14,
272,
5910,
25597,
5912,
20,
16945,
7498,
587,
1054,
37,
21,
4700,
859,
19,
21,
4444,
255,
8214,
7004,
800,
3726,
3726,
31,
22,
195,
679,
21,
8214,
7004,
835,
20,
14,
53,
1021,
13,
5,
49,
22,
79,
568,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why can't Indy 10 initialize?
===
I have a problem with a Delphi 2009 project : It can't initialize Indy 10 !
This code worked fine before in Delphi 2007 (although we might have been using an older revision of Indy, but I suspect that has not much to do with it);
The initial call to IdWinsock2.InitializeWinSock(), raises this exception (with error code 998) :
Project EAServer.exe raised exception class EIdWinsockStubError with message
'Error on loading Winsock2 library (WS2\_32.DLL): Invalid access to memory location'.
But ws2\_32.dll is in C:\Windows\System32 allright, with these version details :
File Version : 5.1.2600.5512 (xpsp.080413-0852)
Description : Windows Socket 2.0 32-Bit DLL
Copyright : © Microsoft Corporation. All rights reserved.
(this shows I'm on WinXP btw).
The silly thing is, that when I look at the process itself (using "Process Explorer"), I can see the process already has this DLL open. The reason "WS2\_32.DLL" is already loaded, seems to be because we use the RTL unit Winsock.pas in this project too.
This unit is statically linked to "wsock32.dll", which has a dependancy on WS2\_32.DLL, so there.
Does anyone know why this code worked fine before (in Delphi 2007), and now (in Delphi 2009) it suddenly breaks?
And is this inability to re-open the ws2\_32 dll common knowledge, or is there really something wrong here? (I did check : I only have 1 version of these DLL's present on my system).
Better yet : Can anyone help me fixing this?
| 2 | [
2,
483,
92,
22,
38,
19,
1851,
332,
2104,
2952,
60,
800,
3726,
3726,
31,
57,
21,
1448,
29,
21,
23030,
588,
669,
13,
45,
32,
92,
22,
38,
2104,
2952,
19,
1851,
332,
13,
187,
48,
1797,
577,
1123,
115,
19,
23030,
624,
13,
5,
8655... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 get folder sharing on Windows Mobile emulator to work
===
I am developing an application using Windows Mobile 5.0, under embedded VC++ 4.0, and using the emulator for debugging. I need to copy some files onto the emulator and planned on using the option to map a directory to the emulator storage card. Problem is, this option is greyed out when I run the emulator. From the emulator help i get
*'On the Emulator, run a Windows CE OS that supports the ability to connect to a directory on the development workstation. '*
How do I accomplish this? I have seen the command line option */sharedfolder <path>* but can't get at this from platform manager under EVC++ 4.0. All comments welcome. | 0 | [
2,
184,
20,
164,
19294,
6126,
27,
1936,
3241,
3579,
14868,
20,
170,
800,
3726,
3726,
31,
589,
3561,
40,
3010,
568,
1936,
3241,
331,
9,
387,
15,
131,
12138,
13,
8990,
20512,
268,
9,
387,
15,
17,
568,
14,
3579,
14868,
26,
121,
162... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 turn off certificate revocation for a WCF service's client?
===
How can I turn off certificate revocation for a WCF service's client?
The client proxy was generated by wsdl.exe and inherits SoapHttpClientProtocol.
| 0 | [
2,
184,
20,
805,
168,
6259,
3867,
2499,
857,
26,
21,
11801,
410,
365,
22,
18,
6819,
60,
800,
3726,
3726,
184,
92,
31,
805,
168,
6259,
3867,
2499,
857,
26,
21,
11801,
410,
365,
22,
18,
6819,
60,
14,
6819,
27188,
23,
6756,
34,
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... |
Don't understand how Axis works if I haven't installed it?
===
Forgive my ignorance - still learning here.
I am using Eclipse Ganymede (Java 1.5) and have been experimenting with web services - I have mangaged to get a simple web service up and running and the nice wizard you get in Eclipse generates all the necessary bits and pieces e.g. wsdl file etc - and you can test the service and everthing else.
Now it seems to use axis.jar and all other axis related stuff and when I run the web service, everything is good - but how is this even working in Tomcat, if I haven't even installed Axis? I can't find anything in my Apache installation or Ganymede about anything to do with Axis??
| 0 | [
2,
221,
22,
38,
1369,
184,
8577,
693,
100,
31,
2933,
22,
38,
4066,
32,
60,
800,
3726,
3726,
8591,
51,
20949,
13,
8,
174,
2477,
235,
9,
31,
589,
568,
11652,
7890,
93,
4688,
62,
13,
5,
1004,
1385,
137,
9,
264,
6,
17,
57,
74,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Need to bring application to foreground on Windows
===
I've got two applications I'm developing using Qt on windows. I want the user to be able to press a button in one application which makes the other application come to the foreground. (The programs communicate using QLocalSocket / named pipes)
Currently I'm using Qt's QWidget::activateWindow() which occasionally brings the application to the foreground but most of the time it just highlights the program on the taskbar.
Can someone please tell me how to do this, preferebly using Qt although failing that using the WIN32 API would be fine. | 0 | [
2,
376,
20,
1499,
3010,
20,
26,
62,
8810,
27,
1936,
800,
3726,
3726,
31,
22,
195,
330,
81,
3767,
31,
22,
79,
3561,
568,
2593,
38,
27,
1936,
9,
31,
259,
14,
4155,
20,
44,
777,
20,
901,
21,
5167,
19,
53,
3010,
56,
1364,
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 'smooth' data and calculate line gradient?
===
I'm reading data from a device which measures distance. My sample rate is high so that I can measure large changes in distance (i.e. velocity) but this means that, when the velocity is low, the device delivers a number of measurements which are identical (due to the granularity of the device). This results in a 'stepped' curve.
What I need to do is to smooth the curve in order to calculate the velocity. Following that I then need to calculate the acceleration.
How to best go about this?
(Sample rate up to 1000Hz, calculation rate of 10Hz would be ok)
| 0 | [
2,
184,
20,
13,
22,
18,
8765,
96,
22,
1054,
17,
18469,
293,
17442,
60,
800,
3726,
3726,
31,
22,
79,
1876,
1054,
37,
21,
3646,
56,
4699,
1583,
9,
51,
5717,
1684,
25,
183,
86,
30,
31,
92,
4058,
370,
1693,
19,
1583,
13,
5,
49,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Java NIO select() returns without selected keys - why?
===
In writing some test code I have found that Selector.select() can return without Selector.selectedKeys() containing any keys to process. This is happening in a tight loop when I register an accept()ed channel with
<pre>SelectionKey.OP_READ | SelectionKey.OP_CONNECT</pre>
as the operations of interest.
According to the docs, select() should return when:
1) There are channels that can be acted upon.
2) You explicitly call Selector.wakeup() - no keys are selected.
3) You explicitly Thread.interrupt() the thread doing the select() - no keys are selected.
If I get no keys after the select() I must be in cases (2) and (3). However, my code is not calling wakeup() or interrupt() to initiate these returns.
Any ideas as to what is causing this behaviour?
| 0 | [
2,
8247,
13,
15042,
5407,
5,
6,
4815,
366,
1704,
5534,
13,
8,
483,
60,
800,
3726,
3726,
19,
1174,
109,
1289,
1797,
31,
57,
216,
30,
23946,
9,
18,
16964,
5,
6,
92,
788,
366,
23946,
9,
18,
7138,
4237,
18,
5,
6,
3503,
186,
5534... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Large JSP response is truncated :(
===
I have a JSP accessed through JBoss. It renders a list (a search result).
If the response gets big, approximately larger than 200k the response is truncated. I can see how the page just ends in the middle of a tag in Firefox. IE totally freaks out an so does Fiddler.
Responses smaller than 200k are no problem.
Anyone has experienced this?
I don't know where to look for the problem... any suggestions are welcome.
| 0 | [
2,
370,
487,
3401,
1627,
25,
22328,
69,
13,
45,
5,
800,
3726,
3726,
31,
57,
21,
487,
3401,
12904,
120,
487,
10349,
18,
9,
32,
16535,
18,
21,
968,
13,
5,
58,
2122,
829,
6,
9,
100,
14,
1627,
3049,
580,
15,
1357,
1662,
119,
232... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 'ls' command works in linux/Unix?
===
I like to know the exact answer of this. As far as I know, ls forks & exec to the linux/unix shell and then get the output(of the current file tree. eg./home/ankit/ ). I need more detail explanation as I am not sure about what happen after fork. could any one please explain this in detail, the functionality of 'ls' commmand. | 0 | [
2,
184,
13,
22,
7532,
22,
1202,
693,
19,
13024,
118,
1020,
4028,
60,
800,
3726,
3726,
31,
101,
20,
143,
14,
5340,
1623,
16,
48,
9,
28,
463,
28,
31,
143,
15,
644,
18,
8777,
18,
279,
1396,
3319,
20,
14,
13024,
118,
1020,
4028,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Automatically delete the parent object row when all the children are gone
===
In PostgreSQL 8.3 database I have "bookings" table referencing "booking_transactions" table by ID. So that each booking belongs to a single transaction. It's possible to delete bookings from the database.
How can I make sure that a "booking_transactions" row is automatically deleted when all the "bookings" referencing it are gone?
I suspect an ON DELETE "bookings" trigger won't work, as it must query the other rows of the "bookings" table. | 0 | [
2,
7499,
27448,
14,
4766,
3095,
3131,
76,
65,
14,
391,
50,
1042,
800,
3726,
3726,
19,
678,
6879,
18,
22402,
469,
9,
240,
6018,
31,
57,
13,
7,
5199,
68,
18,
7,
859,
13,
29254,
13,
7,
5199,
68,
1,
7028,
8645,
18,
7,
859,
34,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why do I get 401 errors connecting to the Dynamics CRM Metadata service?
===
I am connecting to CRM with the intention of retrieving a list of picklist values. On my development machine I am working under my own login name and all works fine. On the test server, the code executes under the NETWORK SERVICE account. When it connects to the CRM web service everything is great. When it connects to the metadata service I get 401 Unauthorised messages.
This is the first time I have used the metadata service so I am hoping someone can tell me why I get the error. The connection is configured using the code below and the failure happens when you try to retrieve the picklist data.
CrmAuthenticationToken token = new CrmAuthenticationToken();
token.OrganizationName = config.AppSettings.Settings["CrmTargetOrganisation"].Value;
token.AuthenticationType = 0;
MetadataService service = new MetadataService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
service.Url = config.AppSettings.Settings["CrmMetadataServiceUrl"].Value;
service.CrmAuthenticationTokenValue = token;
service.UnsafeAuthenticatedConnectionSharing = true; | 0 | [
2,
483,
107,
31,
164,
13,
20658,
11908,
6440,
20,
14,
12289,
6186,
79,
28057,
365,
60,
800,
3726,
3726,
31,
589,
6440,
20,
6186,
79,
29,
14,
5140,
16,
13,
6239,
3272,
8397,
21,
968,
16,
2036,
5739,
4070,
9,
27,
51,
522,
1940,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why use boolean instead of char?
===
This is a silly question but why does a Boolean take up 4 bytes and a char take up 2 in the .NET framework?
It makes me wonder if I should start using chars like a boolean to save memory in large apps.
| 0 | [
2,
483,
275,
9827,
413,
210,
700,
16,
4892,
60,
800,
3726,
3726,
48,
25,
21,
10752,
1301,
47,
483,
630,
21,
9827,
413,
210,
247,
71,
268,
34,
3231,
17,
21,
4892,
247,
71,
172,
19,
14,
13,
9,
2328,
6596,
60,
32,
1364,
55,
266... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why does Eclipse CDT ignores the breakpoints?
===
My problem is that I set some breakpoints in my code and some of then aren't working. In some places it complains about "Unresolved Breakpoint".
Does anyone have any clue why this is happening?? I am using gdb, by the way.
EDIT: Yes, of course is compiled with debug information. | 0 | [
2,
483,
630,
11652,
1745,
38,
7174,
18,
14,
1442,
3132,
18,
60,
800,
3726,
3726,
51,
1448,
25,
30,
31,
309,
109,
1442,
3132,
18,
19,
51,
1797,
17,
109,
16,
94,
4847,
22,
38,
638,
9,
19,
109,
1489,
32,
15310,
18,
88,
13,
7,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
A working Drag&Drop enabled ListView implementation for WPF?
===
Been trying to find a working implementation of a WPF listview (or listbox) where
you can order items by dragging them up or down.
I have found a few, but none really works,
for example this one
http://www.codeproject.com/KB/WPF/ListViewDragDropManager.aspx?msg=2765618#xx2765618xx
stops working once you have list where you need to scroll down to get to the last items.
Why is Drag&Drop so hard in WPF?
Does anybody know a working control? | 0 | [
2,
21,
638,
5501,
1569,
12361,
9338,
968,
4725,
6123,
26,
619,
7721,
60,
800,
3726,
3726,
74,
749,
20,
477,
21,
638,
6123,
16,
21,
619,
7721,
968,
4725,
13,
5,
248,
968,
5309,
6,
113,
42,
92,
389,
3755,
34,
13052,
105,
71,
54,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does anyone know where I can find a memory editing user control for .net?
===
I am developing a small application which lists the contents from files of a given format. The file format acts as a template for describing binary data (think binary xml). This allows the clients that produces these files to store data in any way they want, so the interpretion of **all types** contained **are not known**. What I would like to do is to browse through these types, interpret the common types, and expose a sort of memory editor for unknown types.
The basic rundown is that I have a byte buffer which I am going to manipulate through a user interface.
I am looking for some user controls for .net which hopefully has done this already. If not, I suppose I'll have to write my own. Please send me links to existing assemblies | 0 | [
2,
630,
1276,
143,
113,
31,
92,
477,
21,
1912,
9510,
4155,
569,
26,
13,
9,
2328,
60,
800,
3726,
3726,
31,
589,
3561,
21,
284,
3010,
56,
7227,
14,
8478,
37,
6488,
16,
21,
504,
2595,
9,
14,
3893,
2595,
3167,
28,
21,
22894,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I use templates inside a T4 ClassBlock method?
===
I'm starting to investigate T4 for Code Generation.
I get that you have a basic template in which you can embed little chunks of c#/vb which can perform clever stuff...
<#@ template language="VB" debug="True" hostspecific="True" #>
<#@ output extension=".vb" debug="True" hostspecific="True" #>
Imports System
<#For Each Table as String in New String(0 {"Table1","Table2"}#>
Public Class <#=Table#>DA
Public Sub New
<#= WriteConstructorBody() #>
End Sub
End Class
<#Next#>
<#+
Public Function WriteConstructorBody() as String
return "' Some comment"
End function
#>
This is great.. However I would like to be able to write my main block thus...
<#@ template language="VB" debug="True" hostspecific="True" #>
<#@ output extension=".vb" debug="True" hostspecific="True" #>
Imports System
<#
For Each BaseTableName as String in New String(){"Table1","Table2"}
WriteRecDataInterface(BaseTableName)
WriteRecDataClass(BaseTableName)
WriteDAInterface(BaseTableName)
WriteDAClass(BaseTableName)
Next
#>
Then I would like to be able to have the WriteX methods exist in a Class Block but themselves be writable using code by example ie escaped Code blocks.
How can I achieve this?
| 0 | [
2,
184,
107,
31,
275,
22894,
18,
572,
21,
13,
38,
300,
718,
12048,
2109,
60,
800,
3726,
3726,
31,
22,
79,
1422,
20,
7375,
13,
38,
300,
26,
1797,
2782,
9,
31,
164,
30,
42,
57,
21,
2125,
22894,
19,
56,
42,
92,
11911,
69,
265,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Java-FX compilation error
===
Im using Java-FX pre-release SDK, and Im getting a compilation error:
D:\...\src\javafxapplicationmousetest\Main.fx:38: cannot find symbol
symbol : method get$nodesList()
location: interface javafxapplicationmousetest.Main$Intf
var nodesList:Node[] = [
1 error
BUILD FAILED (total time: 0 seconds)
var nodesList:Node[] = [
Rectangle { x: 0, y: 0, width: width, height: height, fill: Color.WHITE }
]on replace oldValues[lo..hi] = newValues{
java.lang.System.out.println("replaced");
};
Any ideas why this might be? If I remove the "on replace" trigger, it compiles... Im sure its just something small but I cant figure it out. | 2 | [
2,
8247,
8,
16488,
4868,
7019,
800,
3726,
3726,
797,
568,
8247,
8,
16488,
782,
8,
15202,
13,
18,
43,
197,
15,
17,
797,
1017,
21,
4868,
7019,
45,
13,
43,
45,
1,
9,
9,
9,
1,
18,
5453,
1,
1004,
1385,
16488,
2552,
20669,
14002,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 server control same event handling order on server-side/client-side
===
I have an asp.net server control (with the asp: in its definition). The button has been set to do post back.
On the server side, I have the on click event handler
e.g btnSave_click()
On the client side, I have a javascript function to be invoked on the click event
e.g btnSave.Attributes.Add("onclick","javascript: return CheckIsDirty();")
Am not sure which order these two will be executed. Because I want first on the client side to warn of any data entry fields that are not yet filled-out before actually saving any data.
Any help?
| 0 | [
2,
28,
306,
9,
2328,
8128,
569,
205,
807,
7988,
389,
27,
8128,
8,
1416,
118,
150,
18513,
38,
8,
1416,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
8128,
569,
13,
5,
1410,
14,
28,
306,
45,
19,
82,
5465,
6,
9,
14,
5167,
63... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Checking for member existence in Python
===
I regularly want to check if an object has a member or not. An example is the creation of a singleton in a function. For that purpose, you can use `hasattr` like this:
class Foo(object):
def singleton(self):
if not hasattr(self, 'instance'):
self.instance = Foo()
return self.instance
But you can also do this:
class Foo(object):
def singleton(self):
try:
return self.instance
except AttributeError:
self.instance = Foo()
return self.instance
Is one method better of the other? | 0 | [
2,
9886,
26,
322,
3012,
19,
20059,
800,
3726,
3726,
31,
4217,
259,
20,
2631,
100,
40,
3095,
63,
21,
322,
54,
52,
9,
40,
823,
25,
14,
2502,
16,
21,
345,
444,
19,
21,
1990,
9,
26,
30,
2131,
15,
42,
92,
275,
13,
1,
6482,
1030... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Spreadsheet-like control for a web application?
===
A client of mine is looking to convert a critical 'application' based on multiple (very complex) spreadsheets into a web app. As part of this they'd like some of the web pages they use to enter/model data to resemble a spreadsheet as much as possible.
I'd be interested to know if anyone has any experience/recommendations for embeddable controls that could do this better than standard html/javascript/ajax code - although suggestions for Javascript frameworks that could do this are welcome too. I'm thinking mainly of ActiveX, Flex, Java or similar controls, commercial or open source are fine.
The coding languages to be used and platform is still open to debate, so ASP.NET against IE or PHP/Flex against Firefox, or some other combination is fine - this will be driven by the business requirement not the platform.
Functionality is of course the main driving force, but it's always useful to have nice looking eye candy so skinable and cool is a plus. With reference to Javascript frameworks I''ve previously used Dojo and Mootools, but I'd prefer something with a bit more snap.
| 3 | [
2,
1789,
17627,
8,
1403,
569,
26,
21,
2741,
3010,
60,
800,
3726,
3726,
21,
6819,
16,
1114,
25,
699,
20,
8406,
21,
2507,
13,
22,
2552,
20669,
22,
432,
27,
1886,
13,
5,
7864,
1502,
6,
1789,
17627,
18,
77,
21,
2741,
4865,
9,
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... |
Why shouldn't I use UNIVERSAL::isa?
===
According to this
http://perldoc.perl.org/UNIVERSAL.html
I shouldn't use UNIVERSAL::isa() and should instead use $obj->isa() or CLASS->isa().
This means that to find out if something is a reference in the first place and then is reference to this class I have to do
eval { $poss->isa("Class") }
and check $@ and all that gumph, or else
use Scalar::Util 'blessed';
blessed $ref && $ref->isa($class);
My question is why? What's wrong with UNIVERSAL::isa called like that? It's much cleaner for things like:
my $self = shift if UNIVERSAL::isa($_[0], __PACKAGE__)
To see whether this function is being called on the object or not. And is there a nice clean alternative that doesn't get cumbersome with ampersands and potentially long lines? | 0 | [
2,
483,
5714,
22,
38,
31,
275,
4172,
45,
45,
8164,
60,
800,
3726,
3726,
496,
20,
48,
7775,
6903,
1432,
255,
13799,
9,
1432,
255,
9,
5583,
118,
20748,
9,
15895,
31,
5714,
22,
38,
275,
4172,
45,
45,
8164,
5,
6,
17,
378,
700,
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... |
Initialising a struct variable to Nullable<int>
===
Is there a way to declare a variable as Nullable in c#?
struct MyStruct {
int _yer, _ner;
public MyStruct() {
_yer = Nullable<int>; //This does not work.
_ner = 0;
}
} | 0 | [
2,
2104,
7552,
21,
13,
10346,
7612,
20,
16203,
579,
1,
6391,
1,
800,
3726,
3726,
25,
80,
21,
161,
20,
10123,
21,
7612,
28,
16203,
579,
19,
272,
5910,
60,
13,
10346,
51,
10346,
13,
1,
19,
38,
13,
1,
4366,
15,
13,
1,
1031,
73,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 manipulate DLGTEMPLATE programmatically?
===
**What?**
I have a DLGTEMPLATE loaded from a resource DLL, how can I change the strings assigned to the controls at runtime programmatically?
I want to be able to do this before the dialog is created, such that I can tell that the strings on display came from the resource DLL, and not from calls to SetWindowText when the dialog is initialized.
Google has found examples of creating DLGTEMPLATE in code, or twiddling simple style bits but nothing on editing the strings in memory.
**How?**
I am doing this by hooking the Dialog/Property Sheet creation API's. Which gives me access to the DLGTEMPLATE before the actual dialog is created and before it has a HWND.
**Why?**
I want to be able to do runtime localization, and localization testing. I already have this implemented for loading string (including the MFC 7.0 wrapper), menus and accelerator tables, but I am struggling to handle dialog/property sheet creation.
Code examples would be the perfect answer, ideally a class to wrap around the DLGTEMPLATE, if I work out my own solution I will post it. | 0 | [
2,
184,
20,
18468,
13,
43,
10641,
9577,
6554,
625,
6732,
1326,
60,
800,
3726,
3726,
13,
1409,
608,
60,
1409,
31,
57,
21,
13,
43,
10641,
9577,
6554,
8572,
37,
21,
6577,
13,
43,
211,
15,
184,
92,
31,
753,
14,
7887,
2467,
20,
14,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why does running a script from SQLPlus not require a password?
===
I noticed its possible to run SQL scripts with Oracle's SQLPlus by providing only a username and no password. Isn't this like a horrible breach of any form of security for Oracle?
Or am I missing something? | 0 | [
2,
483,
630,
946,
21,
3884,
37,
4444,
255,
13349,
52,
4077,
21,
20884,
60,
800,
3726,
3726,
31,
2711,
82,
938,
20,
485,
4444,
255,
17505,
29,
15759,
22,
18,
4444,
255,
13349,
34,
2674,
104,
21,
4155,
7259,
17,
90,
20884,
9,
2532... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
.net reflection and the "params" keyword
===
In .net, is there a way using reflection to determine if a parameter on a method is marked with the "params" keyword? | 0 | [
2,
13,
9,
2328,
9138,
17,
14,
13,
7,
6351,
79,
18,
7,
1246,
9587,
800,
3726,
3726,
19,
13,
9,
2328,
15,
25,
80,
21,
161,
568,
9138,
20,
3746,
100,
21,
18906,
27,
21,
2109,
25,
2739,
29,
14,
13,
7,
6351,
79,
18,
7,
1246,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What is the best open source SNMP monitoring tool?
===
I am currently working on software that must emit SNMP traps for SNMP versions 1 & 2 and possibly v3 in the future. I have downloaded several and found them to be either too complex or too simplistic. All I want is to view traps and analyze the data structures within them, and the ability to import my custom MIB's. The best I have found so far is ireasonings MIB Browser, but would be greatful for any nice alternatives. | 4 | [
2,
98,
25,
14,
246,
368,
1267,
8912,
2554,
8984,
5607,
60,
800,
3726,
3726,
31,
589,
871,
638,
27,
2306,
30,
491,
8468,
38,
8912,
2554,
5585,
18,
26,
8912,
2554,
3281,
137,
279,
172,
17,
2879,
566,
240,
19,
14,
1022,
9,
31,
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 to setup a linux C++ project in Eclipse?
===
I have an existing C++ project on a linux environment, and would like to import it into the Eclipse IDE.
Not sure if I should start a new Eclipse C++ project, or if there was some way to import the source files? | 0 | [
2,
184,
20,
18161,
21,
13024,
272,
20512,
669,
19,
11652,
60,
800,
3726,
3726,
31,
57,
40,
3149,
272,
20512,
669,
27,
21,
13024,
2307,
15,
17,
83,
101,
20,
9010,
32,
77,
14,
11652,
13,
3448,
9,
52,
562,
100,
31,
378,
799,
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... |
Best practice to realize a long-term history-mode for a O/RM system(Hibernate)?
===
I have mapped several java classes like Customer, Assessment, Rating, ... to a database with Hibernate.
Now i am thinking about a history-mode for all changes to the persistent data. The application is a web application. In case of deleting (or editing) data another user should have the possibility to see the changes and undo it. Since the changes are out of the scope of the current session, i don't know how to solve this in something like the Command pattern, which is recommended for undo functionality.
For single value editing an approach like in this [question][1] sounds OK. But what about the deletion of a whole persistent entity? The simplest way is to create a flag in the table if this customer is deleted or not. The complexest way is to create a table for each class where deleted entities are stored. Is there anything in between? And how can i integrate these two things in a O/RM system (in my case Hibernate) comfortably, without messing around to much with SQL (which i want to avoid because of portability) and still have enough flexibility?
Is there a best practice?
[1]: http://stackoverflow.com/questions/141612/database-structure-to-track-change-history | 0 | [
2,
246,
1345,
20,
4007,
21,
175,
8,
3964,
447,
8,
15570,
26,
21,
635,
118,
6538,
329,
5,
8630,
106,
8820,
6,
60,
800,
3726,
3726,
31,
57,
20877,
238,
8247,
2684,
101,
7705,
15,
6008,
15,
4647,
15,
13,
9,
9,
9,
20,
21,
6018,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the term for this? [found, fluent interface]
===
What's the term for this design?
object.method1().method2().method3()
..when all methods return *this?
I found the term for this a while ago, but lost it meanwhile.
I have no clue how to search for this on google :)
Also if anyone can think of a better title for the question, feel free to change it.
Thanks | 0 | [
2,
98,
22,
18,
14,
981,
26,
48,
60,
636,
12235,
15,
19252,
6573,
500,
800,
3726,
3726,
98,
22,
18,
14,
981,
26,
48,
704,
60,
3095,
9,
5909,
1807,
43,
165,
5,
6,
9,
5909,
1807,
43,
135,
5,
6,
9,
5909,
1807,
43,
240,
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... |
Is there a way to import a 3D model into Android?
===
To all 4 Android developers out there :)
Is it possible to create a simple 3D model (for example in 3DS MAX) and then import it to Android somehow? I work in Eclipse with Android plugin, if that's of any importance.
If so, do you know any tutorials/resources explaining how to do it? | 0 | [
2,
25,
80,
21,
161,
20,
9010,
21,
203,
43,
1061,
77,
13005,
60,
800,
3726,
3726,
20,
65,
268,
13005,
10168,
70,
80,
13,
45,
6,
25,
32,
938,
20,
1600,
21,
1935,
203,
43,
1061,
13,
5,
1106,
823,
19,
203,
43,
18,
2049,
6,
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... |
Seeking clarifications about structuring code to reduce cyclomatic complexity
===
Recently our company has started measuring the cyclomatic complexity (CC) of the functions in our code on a weekly basis, and reporting which functions have improved or worsened. So we have started paying a lot more attention to the CC of functions.
I've read that CC could be informally calculated as 1 + the number of decision points in a function (e.g. if statement, for loop, select etc), or also the number of paths through a function...
I understand that the easiest way of reducing CC is to use the Extract Method refactoring repeatedly...
There are somethings I am unsure about, e.g. what is the CC of the following code fragments?
1)
for (int i = 0; i < 3; i++)
Console.WriteLine("Hello");
And
Console.WriteLine("Hello");
Console.WriteLine("Hello");
Console.WriteLine("Hello");
They both do the same thing, but does the first version have a higher CC because of the for statement?
2)
if (condition1)
if (condition2)
if (condition 3)
Console.WriteLine("wibble");
And
if (condition1 && condition2 && condition3)
Console.WriteLine("wibble");
Assuming the language does short-circuit evaluation, such as C#, then these two code fragments have the same effect... but is the CC of the first fragment higher because it has 3 decision points/if statements?
3)
if (condition1)
{
Console.WriteLine("one");
if (condition2)
Console.WriteLine("one and two");
}
And
if (condition3)
Console.WriteLine("fizz");
if (condition4)
Console.WriteLine("buzz");
These two code fragments do different things, but do they have the same CC? Or does the nested if statement in the first fragment have a higher CC? i.e. nested if statements are mentally more complex to understand, but is that reflected in the CC? | 0 | [
2,
5246,
13,
12078,
4634,
18,
88,
13,
10346,
10450,
1797,
20,
4136,
12833,
6732,
12745,
800,
3726,
3726,
1989,
318,
237,
63,
373,
9937,
14,
12833,
6732,
12745,
13,
5,
3384,
6,
16,
14,
3719,
19,
318,
1797,
27,
21,
3481,
2239,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Directory of APIs/WebServices - where do I find one?
===
Where do I find a directory where a lot of APIs or Webservices are collected? I'd like to generate a Web Site getting its content from different services, but I assume that spidering together the content is not legal (e.g. getting the latest financial data from finance.yahoo.com).
So I would like to have a list of APIs and WebServices (not only financially related) where I can search for such services. It would also help to generate 'new' ideas, while reading through the list => I'm sure there are a lot of services I do not even think of. | 0 | [
2,
16755,
16,
21,
8954,
118,
14113,
11449,
18,
13,
8,
113,
107,
31,
477,
53,
60,
800,
3726,
3726,
113,
107,
31,
477,
21,
16755,
113,
21,
865,
16,
21,
8954,
54,
2741,
11449,
18,
50,
3674,
60,
31,
22,
43,
101,
20,
7920,
21,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
InstallShield: Darwin descriptors
===
My InstallShield installer doesn't appear to register several of its COM DLLs correctly, even though I have refreshed the COM information for them in the installer. If I manually run regsvr32 after installation, everything is fine.
I notice that after installation, I have InprocServer32 values in the registry for my components containing random-looking strings, which I believe are *Darwin descriptors*, which I understand will override the cleartext path location if present. When I manually run regsvr32 these Darwin descriptors disappear. My current hypothesis is that the information encoded in these descriptors is incorrect, and so when my program tries to instantiate the COM components, it uses the incorrect Darwin descriptor information and fails, even though the cleartext path to the DLLs is correct.
Can anyone shed any light on how I can see if this is the case, decode these descriptors, stop InstallShield from generating Darwin Descriptors, or otherwise fix my installer?
Thankyou in advance! | 0 | [
2,
16146,
29026,
45,
11210,
121,
8741,
248,
18,
800,
3726,
3726,
51,
16146,
29026,
16146,
106,
1437,
22,
38,
1893,
20,
2243,
238,
16,
82,
13,
960,
13,
43,
211,
18,
12044,
15,
166,
362,
31,
57,
24905,
69,
14,
13,
960,
676,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
The best way of storing an image/sound inside a class?
===
I'm developing a kind of an exchange format between instances of an application so that user could save information to file and restore it later. The whole 'exchange format' is a single class that gets serialized and written to disk.
How would you suggest to store graphical/sound information inside that class? I'd like to avoid just putting the files into it a .jar. | 0 | [
2,
14,
246,
161,
16,
25615,
40,
1961,
118,
8489,
572,
21,
718,
60,
800,
3726,
3726,
31,
22,
79,
3561,
21,
825,
16,
40,
1950,
2595,
128,
13946,
16,
40,
3010,
86,
30,
4155,
110,
2079,
676,
20,
3893,
17,
8454,
32,
138,
9,
14,
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... |
Returning Objects in C++
===
When returning objects from a class, when is the right time to release the memory?
Example,
class AnimalLister
{
public:
Animal* getNewAnimal()
{
Animal* animal1 = new Animal();
return animal1;
}
}
If i create an instance of Animal Lister and get Animal reference from it, then where am i supposed to delete it?
int main() {
AnimalLister al;
Animal a1, a2;
a1 = al.getNewAnimal();
a2 = al.getNewAnimal();
}
The problem here is AnimalLister doesnot have a way to track the list of Animals Created, so how do i change the logic of such code to have a way to delete the objects created. | 0 | [
2,
2485,
3916,
19,
272,
20512,
800,
3726,
3726,
76,
2485,
3916,
37,
21,
718,
15,
76,
25,
14,
193,
85,
20,
830,
14,
1912,
60,
823,
15,
718,
2383,
5739,
106,
13,
1,
317,
45,
2383,
2483,
164,
2681,
25480,
5,
6,
13,
1,
2383,
248... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it possible to unimplement an interface in derived class in Java?
===
Let's have the following class hierarchy:
public class ParentClass implements SomeInterface {
}
public class ChildClass extends ParentClass {
}
Then let's have these two instances:
ParentClass parent;
ChildClass child;
Then we have the following TRUE statements
(parent instanceof SomeInterface) == true
(child instanceof SomeInterface) == true
Is it possible to unimplement the SomeInterface in the ChildClass, so when we check with the instanceof operator it returns false?
If not possible, is there a workaround?
| 0 | [
2,
25,
32,
938,
20,
367,
8983,
413,
1130,
40,
6573,
19,
3981,
718,
19,
8247,
60,
800,
3726,
3726,
408,
22,
18,
57,
14,
249,
718,
14417,
45,
317,
718,
4766,
1898,
8713,
18,
109,
6280,
6413,
13,
1,
13,
1,
317,
718,
850,
1898,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to delete message from MSMQ using Computer Management tools. WinXP
===
Computer Management -> Services and Applications -> Message Queues
How to delete some message from specific queue?
It seams to me there was some way ... cant find it right now. | 0 | [
2,
184,
20,
27448,
2802,
37,
4235,
79,
1251,
568,
1428,
1097,
4672,
9,
628,
396,
306,
800,
3726,
3726,
1428,
1097,
13,
8,
1,
687,
17,
3767,
13,
8,
1,
2802,
22521,
18,
184,
20,
27448,
109,
2802,
37,
1903,
22521,
60,
32,
13927,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Exception when starting EPiServer website
===
We're developing an EPiServer-based website and trying to deploy our latest build onto a WinXP IIS6 box.
When browsing to site, we're getting the following stack trace
[ClassFactoryException: ClassFactory not initialized]
EPiServer.BaseLibrary.ClassFactory.get_Instance() +123
EPiServer.BaseLibrary.Context.get_Repository() +14
EPiServer.WorkflowFoundation.StorageProviders.ObjectStoreStorageProvider.VerifyCommonSchemas() +15
EPiServer.WorkflowFoundation.AspNetWorkflowManager.get_StorageProvider() +44
EPiServer.WorkflowFoundation.AspNetWorkflowManager.Initialize(Boolean lazyLoading) +589
EPiServer.WorkflowFoundation.AspNetWorkflowManager.get_InstanceHandler() +16
EPiServer.WorkflowFoundation.Workflows.ApprovalService..ctor() +93
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
EPiServer.WorkflowFoundation.WorkflowSystem.RegisterServices(IWorkflowManager manager, WorkflowSettingsElement configuration) +338
EPiServer.WorkflowFoundation.WorkflowSystem.Init(HttpApplication context) +240
System.Web.HttpApplication.InitModules() +267
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1251
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +243
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +106
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +214
I've googled it, and visited the EPiServer forums, but I've not found any concrete suggestions or solutions. Has anyone else out there run into this?
Ross | 0 | [
2,
5391,
76,
1422,
5971,
10321,
106,
2271,
800,
3726,
3726,
95,
22,
99,
3561,
40,
5971,
10321,
106,
8,
1281,
2271,
17,
749,
20,
17617,
318,
5736,
1895,
1204,
21,
628,
396,
306,
595,
18,
379,
1649,
9,
76,
10175,
68,
20,
689,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
[c#] Setting value of an item in a DataRow does not work
===
I am trying to convert all DateTime values in a DataTable to strings. Here is the method I use:
private static void ConvertDateTimesToStrings(DataTable dataTable)
{
if (dataTable == null)
{
return;
}
for (int rowIndex = 0; rowIndex < dataTable.Rows.Count; rowIndex++ )
{
for (int i = 0; i < dataTable.Columns.Count; i++)
{
DateTime dateTime;
try
{
dateTime = (DateTime)dataTable.Rows[rowIndex][i];
}
catch (InvalidCastException)
{
continue;
}
dataTable.Rows[rowIndex][i] = dateTime.ToString("dd.MM.yyyy hh:mm:ss");
}
}
}
After this line works:
dataTable.Rows[rowIndex][i] = dateTime.ToString("dd.MM.yyyy hh:mm:ss");
I check the value of dataTable.Rows[rowIndex][i] and see it is still a DateTime, not a string. Why does this happen and how can I solve this? | 0 | [
2,
636,
150,
5910,
500,
2697,
1923,
16,
40,
9101,
19,
21,
1054,
5417,
630,
52,
170,
800,
3726,
3726,
31,
589,
749,
20,
8406,
65,
1231,
891,
4070,
19,
21,
1054,
5924,
20,
7887,
9,
235,
25,
14,
2109,
31,
275,
45,
932,
12038,
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 do I increase information in ASP.NET Trace
===
I've made some performance improvements to my application's backend, and to show the benefit to the end users of the GUI, we've been using the Trace.axd page to take timings. (The frontend is .Net 1.1 and the backend is Java, connected via Web services.)
However, these timings show no difference between the old and the new backends.
By putting a breakpoint in the backend and holding a request there for 30 seconds, I can see from Trace.axd that the POST is taking 3ms, and the GET is taking 4s. I'm missing about 26s...
The POST is where the performance improvement should be, but the timing on the Trace page seems to only include the time it takes to send the request, not the time it takes to return.
Is there a way to inrease the granularity of the information in the trace to include the whole of the request? Or is there another way to take the measurements I need?
| 0 | [
2,
184,
107,
31,
1839,
676,
19,
28,
306,
9,
2328,
5565,
800,
3726,
3726,
31,
22,
195,
117,
109,
956,
7951,
20,
51,
3010,
22,
18,
97,
2451,
15,
17,
20,
298,
14,
4234,
20,
14,
241,
3878,
16,
14,
9457,
15,
95,
22,
195,
74,
56... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Failed to get separate instances of a class under mod_python
===
I'm trying to run some python code under Apache 2.2 / mod_python 3.2.8. Eventually the code does os.fork() and spawns 2 separate long-run processes. Each of those processes has to create a separate instance of a class in order to avoid any possible collision in the parallel flow.
class Foo(object):
pass
kidprocs = []
for kid in ('kid1', 'kid2'):
pid = os.fork()
if pid:
# parent
kidprocs.append(pid)
time.sleep(5)
else:
# child
fooobj = Foo()
print "Starting %s in sub-process %s" % (kid, os.getpid())
print "Kid fooobj: %s" % repr(fooobj)
os._exit(0)
for kidproc in kidprocs:
os.waitpid(kidproc, 0)
Those print outputs look like this:
Starting kid1 in sub-process 20906
foo obj: <__main__.Foo instance at 0xb7da5fec>
Starting kid2 in sub-process 20909
foo obj: <__main__.Foo instance at 0xb7da5fec>
As you can see I got the same object for both sub-processes.
Do you have an idea why it's going like this under mod_python and is there a way to get separate instances anyway?
Thanks a lot.
| 0 | [
2,
1702,
20,
164,
1725,
13946,
16,
21,
718,
131,
7226,
1,
6448,
11570,
800,
3726,
3726,
31,
22,
79,
749,
20,
485,
109,
20059,
1797,
131,
17140,
172,
9,
135,
13,
118,
7226,
1,
6448,
11570,
203,
9,
135,
9,
457,
9,
878,
14,
1797,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are there any tools to transform SVG data to Canvas friendly input?
===
Are there any tools to transform SVG (XML) data to Canvas friendly input? | 4 | [
2,
50,
80,
186,
4672,
20,
8007,
13,
18,
22955,
1054,
20,
9696,
4753,
6367,
60,
800,
3726,
3726,
50,
80,
186,
4672,
20,
8007,
13,
18,
22955,
13,
5,
396,
8184,
6,
1054,
20,
9696,
4753,
6367,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I automatically re-establish a duplex channel if it gets faulted?
===
I'm developing a client/server application in .Net 3.5 using WCF. Basically, a long running client service (on several machines) establish a duplex connection to the server over a netTcpBinding. The server then uses the callback contract of the client to perform certain on-demand oparations, to which the client responds in an asynchronous fashion (fairly standard stuff I think). I subclass the DuplexClientBase<T> class to handle most of the communication.
Unfortunately, when something goes wrong on either end (such as a network failure, unexpected exception, etc), the channel gets faulted/aborted and all subsequent operations fail. I've gotten around this limitation in non-duplex channels by creating a RecoveringClientBase<T> class that automatically picks up when the client has faulted and retries the operation.
So my question is, is there an established way of determining when a duplex channel has faulted? Where should I check this, on the server or the client? Failing that, what options do I have to ensure that the connection gets re-established? | 0 | [
2,
184,
107,
31,
7499,
302,
8,
22842,
21,
1052,
11326,
1318,
100,
32,
3049,
4173,
69,
60,
800,
3726,
3726,
31,
22,
79,
3561,
21,
6819,
118,
10321,
106,
3010,
19,
13,
9,
2328,
203,
9,
264,
568,
11801,
410,
9,
11374,
15,
21,
175... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Cakephp redirect
===
Does anybody knows how to redirect parent page from an ajax call. I made an ajax call to the server and from controller function that handles the call I whant to go to another page. Usually this function updates an element from current page , but in some cases I want to redirect browser to another page... | 0 | [
2,
8390,
26120,
302,
14706,
800,
3726,
3726,
630,
11181,
3620,
184,
20,
302,
14706,
4766,
2478,
37,
40,
20624,
645,
9,
31,
117,
40,
20624,
645,
20,
14,
8128,
17,
37,
9919,
1990,
30,
3053,
18,
14,
645,
31,
11153,
1830,
20,
162,
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... |
Encrypt on iSeries
===
What tools are available to encrypt or password-protect a file stored on the IFS?
*integrated file-system, accessible from Windows | 0 | [
2,
1957,
11435,
27,
31,
8231,
800,
3726,
3726,
98,
4672,
50,
904,
20,
1957,
11435,
54,
20884,
8,
16265,
21,
3893,
8214,
27,
14,
100,
18,
60,
1637,
12370,
1669,
3893,
8,
10724,
15,
7342,
37,
1936,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Destructuring assignment in Javascript
===
As can be seen in the Mozilla changlog for javascript 1.7 they have added destructering assignment. Sadly I'm not very fond of the syntax (why write a and b twice?):
var a, b;
[a, b] = f();
Something like this would have been a lot better:
var [a, b] = f();
That would still be backwards compatible. Python like destructering would not be backwards compatible.
Anyway the best solution for javascript 1.5 that I have been able to come up with is:
function assign(array, map) {
var o = Object();
var i = 0;
$.each(map, function(e, _) {
o[e] = array[i++];
});
return o;
}
Which works like:
var array = [1,2];
var _ = assign[array, { var1: null, var2: null });
_.var1; // prints 1
_.var2; // prints 2
But this really sucks because _ has no meaning. It's just an empty shell to store the names. But sadly its needed because javascript doesn't have pointers. | 0 | [
2,
13,
20137,
10450,
8427,
19,
8247,
8741,
800,
3726,
3726,
28,
92,
44,
541,
19,
14,
13,
18057,
3247,
7955,
5567,
26,
8247,
8741,
137,
9,
465,
59,
57,
905,
13,
20137,
7882,
8427,
9,
16382,
31,
22,
79,
52,
253,
7625,
16,
14,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.