unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
EEFileLoadException when using C# classes in C++(win32 app)
===
For deployment reasons, I am trying to use IJW to wrap a C# assembly in C++ instead of using a COM Callable Wrapper.
I've done it on other projects, but on this one, I am getting an EEFileLoadException. Any help would be appreciated!
Managed C++ wrapper code (this is in a DLL):
extern "C" __declspec(dllexport) IMyObject* CreateMyObject(void)
{
//this class references c# in the constructor
return new CMyWrapper( );
}
extern "C" __declspec(dllexport) void DeleteMyObject(IMyObject* pConfigFile)
{
delete pConfigFile;
}
extern "C" __declspec(dllexport) void TestFunction(void)
{
::MessageBox(NULL, _T("My Message Box"), _T("Test"), MB_OK);
}
Test Code (this is an EXE):
typedef void* (*CreateObjectPtr)();
typedef void (*TestFunctionPtr)();
int _tmain testwrapper(int argc, TCHAR* argv[], TCHAR* envp[])
{
HMODULE hModule = ::LoadLibrary(_T("MyWrapper"));
_ASSERT(hModule != NULL);
PVOID pFunc1 = ::GetProcAddress(hModule, "TestFunction");
_ASSERT(pFunc1 != NULL);
TestFunctionPtr pTest = (TestFunctionPtr)pFunc1;
PVOID pFunc2 = ::GetProcAddress(hModule, "CreateMyObject");
_ASSERT(pFunc2 != NULL);
CreateObjectPtr pCreateObjectFunc = (CreateObjectPtr)pFunc2;
(*pTest)(); //this successfully pops up a message box
(*pCreateObjectFunc)(); //this tosses an EEFileLoadException
return 0;
}
| 0 | [
2,
13,
2851,
16877,
8294,
10066,
872,
76,
568,
272,
5910,
2684,
19,
272,
20512,
5,
4181,
3125,
4865,
6,
800,
3726,
3726,
26,
10475,
2932,
15,
31,
589,
749,
20,
275,
13,
9999,
499,
20,
8118,
21,
272,
5910,
1475,
19,
272,
20512,
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... |
Why is my programmatically created user missing from the Welcome screen?
===
I have a program that creates a Windows user account using the [NetUserAdd()][1] API which is [suggested by Microsoft][2]. The user is created successfully, and I can log in as that user.
However, on Windows XP, the newly-created user is missing from the Welcome screen. If I disable the Welcome screen, I can log in as the new user by typing the user name in direcly.
What property of the account I create causes it to be omitted from the Welcome screen?
[1]: http://msdn.microsoft.com/en-us/library/aa370649(VS.85).aspx
[2]: http://support.microsoft.com/kb/119671win32 | 0 | [
2,
483,
25,
51,
625,
6732,
1326,
679,
4155,
2863,
37,
14,
5575,
2324,
60,
800,
3726,
3726,
31,
57,
21,
625,
30,
9695,
21,
1936,
4155,
2176,
568,
14,
636,
2328,
16704,
14854,
5,
6,
500,
2558,
165,
500,
21,
2159,
56,
25,
636,
18... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DataMapper uses the ActiveRecord pattern, right?
===
[DataMapper][1] uses the ActiveRecord ORM pattern, right? I'm trying to understand the differences between it and the ActiveRecord software for Rails.
If so, the pros/cons for the ActiveRecord pattern would then mostly apply to DataMapper, right?
[1]: http://datamapper.org/ | 0 | [
2,
1054,
540,
8763,
2027,
14,
1348,
14953,
3732,
15,
193,
60,
800,
3726,
3726,
636,
18768,
540,
8763,
500,
2558,
165,
500,
2027,
14,
1348,
14953,
54,
79,
3732,
15,
193,
60,
31,
22,
79,
749,
20,
1369,
14,
4921,
128,
32,
17,
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... |
MySQL Trigger & Stored Procedure Replication
===
Ok,I'm running a setup with a single master and a number of slaves. All writes go through the master and are replicated down to the slaves which are used strictly for reads.
Now I have a stored procedure (not function) which is called by a trigger on an insert. According to the MySQL docs, for replication triggers log the call to the trigger while stored procedures actually log the result of the stored procedure.
So my question is, when my trigger gets fired, will it replicate both the trigger and the results of the procedure that the trigger calls (resulting in the procedure effectively being run twice)? Or will it simply replicate the trigger have the slaves re-run the stored procedure on their own?
Thanks | 0 | [
2,
51,
18,
22402,
7286,
279,
8214,
7004,
23841,
800,
3726,
3726,
5854,
15,
49,
22,
79,
946,
21,
18161,
29,
21,
345,
1129,
17,
21,
234,
16,
6476,
9,
65,
6215,
162,
120,
14,
1129,
17,
50,
22156,
43,
125,
20,
14,
6476,
56,
50,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are there m?any users of PRADO out there?
===
After making some comments [here][1], I've been inspired to get some feedback on the PHP MVC framework [PRADO][2]. I've been using it for over a year now and I've very much enjoyed working with it, however I notice that throughout stackoverflow, it doesn't seem to rate a mention when [symfony][3] or [CakePHP][4] are being talked about as potential candidates for a framework.
Is anybody using stackoverflow using PRADO now? If so, how do you find it? Has anyone used it in the past but left it behind, and if so, why? Can anybody appraise its strengths and weaknesses against Cake or symfony?
[1]: http://stackoverflow.com/questions/75882/what-in-your-mind-is-the-best-php-mvc-framework#89095
[2]: http://pradosoft.com/
[3]: http://www.symfony-project.org/
[4]: http://cakephp.org/ | 0 | [
2,
50,
80,
307,
60,
6001,
3878,
16,
3865,
537,
70,
80,
60,
800,
3726,
3726,
75,
544,
109,
7534,
636,
6836,
500,
2558,
165,
500,
15,
31,
22,
195,
74,
3054,
20,
164,
109,
13111,
27,
14,
13,
26120,
307,
8990,
6596,
636,
7310,
537... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Infragistics WebTextEdit - Setting value in Javascript function
===
I'm currently using the Infragistics component set for .Net 2.0, Visual Studio 2005 and C#. I have the following chunk of javascript code (text and other variables are declared elsewhere):
> ***alert(box[select].value);
> text.value(box[select].value);
> alert(text.value);***
'text' is an Infragistics webTextEdit, while box is just a standard listbox. The two alerts seem to be working fine. Before I set the value, the listBox's selected value might be 'hello', and the alert box which pops up after I've assigned this value to 'text' is also 'hello'.
However, the value shown in the box on my form never appears to get updated. Anybody have some suggestions as to where I'm going wrong, gotchas in how Infragistics handles this kind of thing or anything else? I'm aware there may not be enough info here to diagnose the problem. | 0 | [
2,
19,
22133,
3771,
18,
2741,
11969,
69,
242,
13,
8,
2697,
1923,
19,
8247,
8741,
1990,
800,
3726,
3726,
31,
22,
79,
871,
568,
14,
19,
22133,
3771,
18,
5912,
309,
26,
13,
9,
2328,
172,
9,
387,
15,
3458,
1120,
812,
17,
272,
5910... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 maintain consistent DB schema accross 18 databases (sql server)?
===
We have 18 databases that should have identical schemas, but don't. In certain scenarios, a table was added to one, but not the rest. Or, certain stored procedures were required in a handful of databases, but not the others. Or, our DBA forgot to run a script to add views on all of the databases.
What is the best way to keep database schemas in sync? | 0 | [
2,
184,
92,
31,
4027,
8224,
13,
9007,
23874,
21,
150,
7703,
474,
6018,
18,
13,
5,
18,
22402,
8128,
6,
60,
800,
3726,
3726,
95,
57,
474,
6018,
18,
30,
378,
57,
6323,
23874,
18,
15,
47,
221,
22,
38,
9,
19,
1200,
19611,
15,
21,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WinForm - draw resizing frame using a single-pixel border
===
In a Windows Form with a Resizing Frame, the frame border draws with a raised 3-D look. I'd like it to draw with a flat single pixel border in a color of my choosing.
Is this possible without having to owner draw the whole form? | 0 | [
2,
628,
4190,
13,
8,
2003,
10719,
3335,
3523,
568,
21,
345,
8,
18321,
532,
1862,
800,
3726,
3726,
19,
21,
1936,
505,
29,
21,
10719,
3335,
3523,
15,
14,
3523,
1862,
10802,
29,
21,
1127,
203,
8,
43,
361,
9,
31,
22,
43,
101,
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... |
Do you chat online for work purposes?
===
I've worked with folks who are chatting online with their peers, constantly batting around ideas. I've also worked with folks who adamantly refuse and think it's a waste of time.
Are online live chatting forums of particular use to you? Why or why not?
Internal to your company, or external and world-wide?
Does your employer encourage or discourage their use?
| 0 | [
2,
107,
42,
6615,
2087,
26,
170,
4612,
60,
800,
3726,
3726,
31,
22,
195,
577,
29,
14563,
72,
50,
25169,
2087,
29,
66,
14491,
15,
7545,
9792,
140,
3478,
9,
31,
22,
195,
67,
577,
29,
14563,
72,
23626,
102,
10198,
17,
277,
32,
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... |
.NET Framework method to quickly build directories
===
Is there a quick way to join paths like the Join-Path function in Powershell? For example, I have two parts of a path "C:\foo" and a subdirectory "bar". Join-Path will join these and take care of the backslash delimiters. Is there a built-in method for this in .NET, or do I need to handle this myself? | 0 | [
2,
13,
9,
2328,
6596,
2109,
20,
976,
1895,
559,
1596,
800,
3726,
3726,
25,
80,
21,
2231,
161,
20,
1865,
12074,
101,
14,
1865,
8,
8353,
1990,
19,
414,
15984,
60,
26,
823,
15,
31,
57,
81,
1341,
16,
21,
2013,
13,
7,
150,
45,
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 does one load a URL from a .NET client application
===
What is the preferred way to open a URL from a thick client application on Windows using C# and the .NET framework? I want it to use the default browser. | 0 | [
2,
184,
630,
53,
6305,
21,
287,
6362,
37,
21,
13,
9,
2328,
6819,
3010,
800,
3726,
3726,
98,
25,
14,
5981,
161,
20,
368,
21,
287,
6362,
37,
21,
2318,
6819,
3010,
27,
1936,
568,
272,
5910,
17,
14,
13,
9,
2328,
6596,
60,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
When is multi-threading not a good idea?
===
I was recently working on an application that sent and received messages over Ethernet and Serial. I was then tasked to **add** the monitoring of DIO discretes. I throught,
> "No reason to interrupt the main
> thread which is involved in message
> processing, I'll just create
> ***another thread*** that monitors DIO."
This decision, however, proved to be **poor**. Sometimes the main thread would be interrupted between a Send and a Receive serial message. This interruption would disrupt the timing and alas, messages would be lost (forever).
I found another way to monitor the DIO *without using another thread* and Ethernet and Serial communication were restored to their correct functionality.
The whole fiasco, however, got me thinking. **Are their any general guidelines about when *not* to use multiple-threads and/or does anyone have anymore examples of situations when using multiple-threads is not a good idea?** | 0 | [
2,
76,
25,
1889,
8,
96,
22883,
52,
21,
254,
882,
60,
800,
3726,
3726,
31,
23,
1989,
638,
27,
40,
3010,
30,
795,
17,
420,
7561,
84,
27820,
17,
5956,
9,
31,
23,
94,
14605,
20,
13,
1409,
14854,
1409,
14,
8984,
16,
13,
6921,
185... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Bit manipulation and output in Java
===
If you have binary strings (literally String objects that contain only 1's and 0's), how would you output them as bits into a file?
This is for a text compressor I was working on; it's still bugging me, and it'd be nice to finally get it working. Thanks! | 0 | [
2,
1142,
17561,
17,
5196,
19,
8247,
800,
3726,
3726,
100,
42,
57,
14171,
7887,
13,
5,
19760,
3724,
3916,
30,
3717,
104,
137,
22,
18,
17,
713,
22,
18,
6,
15,
184,
83,
42,
5196,
105,
28,
10181,
77,
21,
3893,
60,
48,
25,
26,
21... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to use system_user in audit trigger but still use connection pooling?
===
I would like to do both of the following things:
1. use audit triggers on my database tables to identify which user updated what;
2. use connection pooling to improve performance
For #1, I use 'system_user' in the database trigger to identify the user making the change, but this prevent me from doing #2 which requires a generic connection string.
Is there a way that I can get the best of both of these worlds?
ASP.NET/SQL Server 2005 | 0 | [
2,
184,
20,
275,
329,
1,
16704,
19,
13471,
7286,
47,
174,
275,
2760,
3067,
68,
60,
800,
3726,
3726,
31,
83,
101,
20,
107,
156,
16,
14,
249,
564,
45,
137,
9,
275,
13471,
7286,
18,
27,
51,
6018,
7484,
20,
5808,
56,
4155,
6372,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 explicitly set asp.net session to expire on closing the browser?
===
By default the session expiry seems to be 20 minutes. | 0 | [
2,
184,
107,
31,
13108,
309,
28,
306,
9,
2328,
3723,
20,
25910,
27,
4239,
14,
16495,
60,
800,
3726,
3726,
34,
12838,
14,
3723,
1396,
2159,
622,
2206,
20,
44,
434,
902,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Which language to choose and when?
===
Sorry if the title is misleading!
Take 3 web dev languages php, java and .net.
When will you choose php or java or .net for a project? Forget the cost factor! Does it depend on the complexity or does it depend on security or does it depend on the development process??
Do you have any set of questions or guidelines which you cross check before choosing a language for a project?
Update (after 1st anwswer) : Leave the exp part too! Think you have people with exp in all 3 languages :)
| 4 | [
2,
56,
816,
20,
3538,
17,
76,
60,
800,
3726,
3726,
1875,
100,
14,
581,
25,
23938,
187,
247,
203,
2741,
9664,
2556,
13,
26120,
15,
8247,
17,
13,
9,
2328,
9,
76,
129,
42,
3538,
13,
26120,
54,
8247,
54,
13,
9,
2328,
26,
21,
669... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Run downloaded workspace on server in Eclipse J2EE
===
I have this Eclipse workspace downloaded off the web and I try running it on a tomcat server. When I select Tomcat v6.0 I get a message
> Cannot create a server using the selected type
Older tomcat versions are available, though.
I guess I have to recreate some configuration setting. The question is which one? | 0 | [
2,
485,
23887,
170,
5582,
27,
8128,
19,
11652,
487,
135,
2851,
800,
3726,
3726,
31,
57,
48,
11652,
170,
5582,
23887,
168,
14,
2741,
17,
31,
1131,
946,
32,
27,
21,
2067,
5782,
8128,
9,
76,
31,
5407,
2067,
5782,
566,
379,
9,
387,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can you run Javascript using Rhino for Java in a sandbox?
===
Part of our java application needs to run javascript that is written by non-developers. These non-developers are using javascript for data formatting. (Simple logic and string concatenation mostly).
My question is how can I setup the execution of these scripts to make sure scripting errors don't have a major negative impact on the rest of the application.
- Need to guard against infinite loops
- Guard against spawning new threads.
- Limit access to services and environment
- File system (Example: If a disgruntled script writer decided to delete files)
- Database (Same thing delete database records)
Basically I need to setup the javascript scope to only include exactly what they need and no more.
| 0 | [
2,
184,
92,
42,
485,
8247,
8741,
568,
18642,
26,
8247,
19,
21,
1965,
5309,
60,
800,
3726,
3726,
141,
16,
318,
8247,
3010,
2274,
20,
485,
8247,
8741,
30,
25,
642,
34,
538,
8,
26051,
445,
9,
158,
538,
8,
26051,
445,
50,
568,
824... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
conferences that offer videos for downloading
===
One thing I love about ruby is that all of the conference's videos are posted online , so that people that could not attent to it can watch them . I'm sure most of you know about [Confreaks][1] , which offers them for download . Are there sites alike for other programming languages ( or is google video the best shot to ever see some ) ?
[1]: http://www.confreaks.com | 0 | [
2,
10462,
30,
1994,
6610,
26,
7121,
68,
800,
3726,
3726,
53,
584,
31,
339,
88,
10811,
25,
30,
65,
16,
14,
1199,
22,
18,
6610,
50,
6054,
2087,
13,
15,
86,
30,
148,
30,
110,
52,
35,
1316,
38,
20,
32,
92,
1455,
105,
13,
9,
31... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What Python GUI APIs Are Out There?
===
Simple question:
- What Python GUI API's are out there and what are the advantages of any given API?
I'm not looking for a religious war here, I'm just wanting to get a good handle on all that is out there in terms of Python GUI APIs. | 0 | [
2,
98,
20059,
9457,
21,
8954,
50,
70,
80,
60,
800,
3726,
3726,
1935,
1301,
45,
13,
8,
98,
20059,
9457,
21,
2159,
22,
18,
50,
70,
80,
17,
98,
50,
14,
14683,
16,
186,
504,
21,
2159,
60,
31,
22,
79,
52,
699,
26,
21,
1631,
176... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Out of String Space in Visual Basic 6
===
We are getting an error in a VB6 application that sends data back and forth over TCP sockets. We get a runtime error "out of string space". Has anyone seen this or have any thoughts on why this would happen? It seems like we are hitting some VB6 threshhold so any other thoughts would be helpful as well.
thks,
ak | 0 | [
2,
70,
16,
3724,
726,
19,
3458,
2125,
400,
800,
3726,
3726,
95,
50,
1017,
40,
7019,
19,
21,
13,
20468,
379,
3010,
30,
11350,
1054,
97,
17,
5882,
84,
13,
38,
7439,
18482,
18,
9,
95,
164,
21,
485,
891,
7019,
13,
7,
1320,
16,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you maintain java webapps in different staging environments?
===
You might have a set of properties that is used on the developer machine, which varies from developer to developer, another set for a staging environment, and yet another for the production environment.
In a Spring application you may also have beans that you want to load in a local environment but not in a production environment, and vice versa.
How do you handle this? Do you use separate files, ant/maven resource filtering or other approaches?
| 0 | [
2,
184,
107,
42,
4027,
8247,
2741,
7753,
18,
19,
421,
16824,
11246,
60,
800,
3726,
3726,
42,
530,
57,
21,
309,
16,
3704,
30,
25,
147,
27,
14,
10058,
1940,
15,
56,
9803,
37,
10058,
20,
10058,
15,
226,
309,
26,
21,
16824,
2307,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 programatically create videos ?
===
Is there a freely available library to create a MPEG (or any other simple video format) out of an image sequence ?
It must run on Linux too, and ideally have Python bindings. | 0 | [
2,
184,
20,
625,
721,
8438,
1600,
6610,
13,
60,
800,
3726,
3726,
25,
80,
21,
11298,
904,
1248,
20,
1600,
21,
307,
20427,
13,
5,
248,
186,
89,
1935,
763,
2595,
6,
70,
16,
40,
1961,
4030,
13,
60,
32,
491,
485,
27,
13024,
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,
0,
0,
0,
0,
0,
0,
0,
0... |
What conferences do you attend?
===
What conferences do any of you attend? I'm personally interested in both Linux/System Administration and Java conferences, but experiences about any conference are welcome as well.
If you have been to any to any, what was your opinion, and were they worth the money? | 4 | [
2,
98,
10462,
107,
42,
3702,
60,
800,
3726,
3726,
98,
10462,
107,
186,
16,
42,
3702,
60,
31,
22,
79,
7200,
3158,
19,
156,
13024,
118,
10724,
1603,
17,
8247,
10462,
15,
47,
5513,
88,
186,
1199,
50,
5575,
28,
134,
9,
100,
42,
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 is the Page File available calculated in Windows Task Manager?
===
In Vista Task Manager, I understand the available page file is listed like this:
Page File inUse M / available M
In XP it's listed as the Commit Charge Limit.
I had thought that:
Available Virtual Memory = Physical Memory Total + Sum of Page Files
But on my machine I've got Physical Memory = 2038M, Page Files = 4096M, Page File Available = 6051. There's 83M unaccounted for here. What's that used for. I thought it might be something to do with the Kernel memory, but the number doesn't seem to match up?
Info I've found so far:
- See http://msdn.microsoft.com/en-us/library/aa965225(VS.85).aspx for more info.
- Page file size can be found here: Computer Properties, advanced, performance settings, advanced.
| 0 | [
2,
184,
25,
14,
2478,
3893,
904,
10785,
19,
1936,
3005,
1382,
60,
800,
3726,
3726,
19,
13520,
3005,
1382,
15,
31,
1369,
14,
904,
2478,
3893,
25,
1510,
101,
48,
45,
2478,
3893,
19,
3699,
307,
13,
118,
904,
307,
19,
23045,
32,
22,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to determine whether a character is a letter in Java?
===
How do you check if a one-character String is a letter - including any letters with accents?
I had to work this out recently, so I'll answer it myself, after the recent VB6 question reminded me.
| 0 | [
2,
184,
20,
3746,
1472,
21,
925,
25,
21,
1748,
19,
8247,
60,
800,
3726,
3726,
184,
107,
42,
2631,
100,
21,
53,
8,
24589,
3724,
25,
21,
1748,
13,
8,
215,
186,
2516,
29,
7980,
18,
60,
31,
41,
20,
170,
48,
70,
1989,
15,
86,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the correct way to design/implement two (or more classes) that have "has a" relationships with the same object?
===
I apologize in advance for asking a noob OO question but...
Suppose I have a design like this:
Object GUI has two objects: object aManager and object bManager, which don't ever talk to each other.
Both aManager and bManager have object cManager as an attribute (or rather a pointer to cManager). So when aManager modifies its cManager, it's affecting bManager's cManager as well.
My question is what is the correct way to design/implement this?
I was thinking of making cManager as an attribute of GUI, and GUI passes a pointer to cManager when constructing aManager and bManager. But IMHO, GUI has nothing to do with cManager, so why should GUI have it as an attribute?
Is there a specific design pattern I should be using here? | 0 | [
2,
98,
25,
14,
4456,
161,
20,
704,
118,
8983,
413,
1130,
81,
13,
5,
248,
91,
2684,
6,
30,
57,
13,
7,
6482,
21,
7,
5833,
29,
14,
205,
3095,
60,
800,
3726,
3726,
31,
12059,
19,
3612,
26,
3379,
21,
90,
4995,
13,
4328,
1301,
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... |
How can I split a string using regex to return a list of values?
===
How can I take the string “foo[]=1&foo[]=5&foo[]=2” and return a collection with the values 1,5,2 in that order. I am looking for an answer using regex in C#. Thanks | 0 | [
2,
184,
92,
31,
2132,
21,
3724,
568,
7953,
1706,
20,
788,
21,
968,
16,
4070,
60,
800,
3726,
3726,
184,
92,
31,
247,
14,
3724,
13,
1,
4120,
111,
2558,
500,
3726,
165,
1569,
4120,
111,
2558,
500,
3726,
264,
1569,
4120,
111,
2558,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Prevent multiple instances of a given app in .NET?
===
In .NET, what's the best way to prevent multiple instances of an app from running at the same time? And if there's no "best" technique, what are some of the caveats to consider with each solution? | 0 | [
2,
2501,
1886,
13946,
16,
21,
504,
4865,
19,
13,
9,
2328,
60,
800,
3726,
3726,
19,
13,
9,
2328,
15,
98,
22,
18,
14,
246,
161,
20,
2501,
1886,
13946,
16,
40,
4865,
37,
946,
35,
14,
205,
85,
60,
17,
100,
80,
22,
18,
90,
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... |
Adobe ExtendScript development - How different than regular JavaScript?
===
Overview
--------
I'm working on a media database (or a so-called "multimedia library") project and it is based on XMP (the eXtensible Metadata Platform). The logical tool for administering the metadata and keywording seems to be Adobe Bridge, however I need to contract out the development of a couple of scripts to add a few key functions to Bridge, mainly for interfacing with a server-stored controlled keyword vocabulary.
Upper management, in their infinite wisdom, has decided that putting a software alpha/beta tester and Adobe heavy-lifter [me] in charge of developing the project discovery is the best way to go about this. Whilst I know what I need done, I'm unsure who can actually do it.
Regrettably, my programming knowledge is limited to C++, XML, Apple Script and web languages (unfortunately not including JavaScript), so I'm way out in the weeds when it comes to questions about JavaScript.
I'm wondering how different ExtendScript is from JavaScript? Could I theoretically hire a web developer who has JavaScript savvy to develop it without demanding an excessive amount of learning on their part?
[Bridge Developer Center][1]
Adobe has a handy SDK out there on the subject, but I can't really make much sense of the overall picture. Much of the Adobe user-to-user forum content is old or unrelated.
**Project description**
-----------------------
I need a menu added to the menu bar with three options. The three options would all use "Clear and Import" function possible in Bridge's Keywords panel to import 1 of 3 different tab-delimited text files from the database server using either the FTP or HTTP object.
The reading I've done in the Bridge SDK and JavaScript guide suggests that menu items can be added as I've shown in the image below for clarity. Additionally, I've managed to get a very rough version of the "Clear and Import" method to work as a startup script, however I'd like to be able to call them on the fly by clicking on the appropriate menu entry.
![Diagram of Menu][2]
For a larger view of the image, click [here][3]
[1]: http://www.adobe.com/devnet/bridge/
[2]: http://farm4.static.flickr.com/3138/2868284584_ee00bb9563.jpg
[3]: http://farm4.static.flickr.com/3138/2868284584_8fb0577be2_o.jpg | 0 | [
2,
20299,
7206,
8741,
522,
13,
8,
184,
421,
119,
1290,
8247,
8741,
60,
800,
3726,
3726,
21598,
13,
8,
8,
8,
8,
8,
8,
8,
8,
31,
22,
79,
638,
27,
21,
941,
6018,
13,
5,
248,
21,
86,
8,
4580,
13,
7,
21531,
8260,
1248,
7,
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 to abort a thread in a fast and clean way in java?
===
Here is my problem: I've got a dialog with some parameters that the user can change (via a spinner for example). Each time one of these parameters is changed, I launch a thread to update a 3D view according to the new parameter value.
If the user changes another value (or the same value again by clicking many times on the spinner arrow) while the first thread is working, I would like to abort the first thread (and the update of the 3D view) and launch a new one with the latest parameter value.
How can I do something like that? | 0 | [
2,
184,
20,
21557,
21,
9322,
19,
21,
1512,
17,
2745,
161,
19,
8247,
60,
800,
3726,
3726,
235,
25,
51,
1448,
45,
31,
22,
195,
330,
21,
28223,
29,
109,
12905,
30,
14,
4155,
92,
753,
13,
5,
5034,
21,
3310,
1031,
26,
823,
6,
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... |
Specifying model in controller?
===
I came across a controller in an older set of code (Rails 1.2.3) that had the following in a controller:
class GenericController > ApplicationController
# filters and such
model :some_model
Although the name of the model does not match the name of the model, is there any reason to specify this? Or is this something that has disappeared from later versions of Rails? | 0 | [
2,
19077,
68,
1061,
19,
9919,
60,
800,
3726,
3726,
31,
281,
464,
21,
9919,
19,
40,
1234,
309,
16,
1797,
13,
5,
7301,
18,
137,
9,
135,
9,
240,
6,
30,
41,
14,
249,
19,
21,
9919,
45,
718,
12733,
12898,
1252,
13,
1,
3010,
12898,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Inheriting a base class
===
I am trying to use forms authentication with Active Directory but I need roles (memberOf) from AD. I am trying to override members of RoleProvider to make this possible (unless someone knows of a better way). I am stuck on an error in the new class that is inheriting from RoleProvider.
The error is:
ADAuth.ActiveDirectoryRoleProvider' does not implement inherited abstract member 'System.Web.Security.RoleProvider.ApplicationName.get'
How do I set up all the other members that I am not overriding? Do I have to create them all in my inherited class or is there a way to tell it to just use the ones from the base class?
| 0 | [
2,
17569,
68,
21,
1000,
718,
800,
3726,
3726,
31,
589,
749,
20,
275,
1997,
27963,
29,
1348,
16755,
47,
31,
376,
2954,
13,
5,
6990,
1041,
6,
37,
21,
43,
9,
31,
589,
749,
20,
84,
11891,
443,
16,
597,
26735,
139,
20,
233,
48,
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... |
Convert character to ASCII code in Javascript
===
How can I convert a character to its ASCII code using Javascript?
For example, to get 10 from "\n". | 0 | [
2,
8406,
925,
20,
28,
1892,
49,
1797,
19,
8247,
8741,
800,
3726,
3726,
184,
92,
31,
8406,
21,
925,
20,
82,
28,
1892,
49,
1797,
568,
8247,
8741,
60,
26,
823,
15,
20,
164,
332,
37,
13,
7,
1,
103,
7,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What can cause an ASP.NET session state to be lost?
===
I have a difficult-to-reproduce problem that occurs in my ASP.NET web application. The application has one main .aspx page that is loaded and initializes a number of session variables. This page uses the ASP.NET Ajax `Sys.Net.WebRequest` class to repeatedly access another .aspx page, which uses the session variables to make database queries and update the main page (the main page is never re-requested).
Occasionally, after a period of time using the page, causing successful HTTP requests where the session created in the main page properly carries over to the subpage, one of the requests seems to cause a new ASP.NET session to be created—all the session variables are lost (causing an exception to be thrown in my code), and a new session id is reported in the dynamically requested page. That means that suddenly, the main page is disconnected from the server—as far as the server is concerned, the user is no longer logged in.
I'm nearly positive it's not a session timeout—the timeout time is set to something ridiculous, the amount of time it takes to get this to happen is variable but is never long enough to cause the session to time out, *and* the constant `Sys.Net.WebRequests` *should* refresh the session timer.
So, what else could be happening that would cause the HTTP requests to lose contact with the ASP.NET session? I unfortunately haven't been sniffing network traffic when this has happened to me, or I would've checked if the ASP.NET session cookie has stuck around or not. | 0 | [
2,
98,
92,
1679,
40,
28,
306,
9,
2328,
3723,
146,
20,
44,
529,
60,
800,
3726,
3726,
31,
57,
21,
1956,
8,
262,
8,
99,
2740,
16041,
1448,
30,
3690,
19,
51,
28,
306,
9,
2328,
2741,
3010,
9,
14,
3010,
63,
53,
407,
13,
9,
472,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 are you using the Machine.config, or are you?
===
For ASP.Net application deployment what type of information (if any) are you storing in the machine.config?
If you're not using it, how are you managing environment specific configuration settings that may change for each environment?
I'm looking for some "best practices" and the benefits/pitfalls of each. We're about to deploy a brand new application to production in two months and I've got some latitude in these types of decisions. I want to make sure that I'm approaching things in the best way possible and attempting to avoid shooting myself in the foot at a later date.
FYI We're using it (machine.config) currently for just the DB connection information and storing all other variables that might change in a config table in the database.
Thanks in advance for input/insight. | 0 | [
2,
184,
50,
42,
568,
14,
1940,
9,
14093,
2816,
15,
54,
50,
42,
60,
800,
3726,
3726,
26,
28,
306,
9,
2328,
3010,
10475,
98,
1001,
16,
676,
13,
5,
821,
186,
6,
50,
42,
25615,
19,
14,
1940,
9,
14093,
2816,
60,
100,
42,
22,
99... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using Resharper Unit Test Runner for MSTest via Gallio
===
I am attempting to get the <a href="http://www.jetbrains.com/resharper/">Resharper</a> test runner to recognize my MSTest unit tests via <a href="http://www.gallio.org/">Gallio</a>.
I have the following installed:
VSTS 2005 8.0.50727.762
Resharper 4.1
Gallio 3.0.0.285
I am also running Windows XP x64.
The unit test options only shows NUnit as being available. I am thinking that I must have some versioning wrong. Can someone point me in the right direction? Am I barking up the wrong tree and this is only works in VS2k8?
Thanks | 0 | [
2,
568,
302,
23646,
106,
1237,
1289,
4510,
26,
4235,
10543,
1197,
15212,
111,
800,
3726,
3726,
31,
589,
6314,
20,
164,
14,
13,
1,
58,
746,
14057,
3726,
7,
21127,
6903,
6483,
9,
10307,
20128,
18,
9,
960,
118,
99,
23646,
106,
118,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Moving from VSS to SVN
===
I need to write a script to make a source safe project ready to be moved to subversion, what do I need to do so far I can think of:
- remove .scc files
- remove .vspcc files
Do I need to remove the "read-only" attribute of all the files as well, or will that not matter?
What language would you write this script in, I was planning to do it in python (os.walk is great), but maybe powershell would be more appropriate to chnage file attributes on windows (if I need to)?
Is there anything else you can think of that needs to be done before I move the project to SVN? | 0 | [
2,
1219,
37,
4611,
18,
20,
13,
18,
16578,
800,
3726,
3726,
31,
376,
20,
2757,
21,
3884,
20,
233,
21,
1267,
1834,
669,
1451,
20,
44,
385,
20,
972,
10898,
15,
98,
107,
31,
376,
20,
107,
86,
463,
31,
92,
277,
16,
45,
13,
8,
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... |
Number of Classes in a Visual Studio Solution
===
Is there an easy way to find the number of classes contained within a visual studio solution? Other than writing a funky find script, I couldn't find a way to do it within the code metrics piece of VS.
I am running Visual Studio 2008 and this is a VB.Net project through and through.
thanks! | 0 | [
2,
234,
16,
2684,
19,
21,
3458,
1120,
4295,
800,
3726,
3726,
25,
80,
40,
2010,
161,
20,
477,
14,
234,
16,
2684,
3437,
363,
21,
3458,
1120,
4295,
60,
89,
119,
1174,
21,
11275,
93,
477,
3884,
15,
31,
711,
22,
38,
477,
21,
161,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 type faster
===
I've typed around 75wpm for the last few years but I've always wondered how people type +100wpm. Are there exercises or tips to help break through the 75wpm wall? I've searched but I primarily find typing tutors that teach you to type.. not teach you to type faster. So far the only tip I've come across is to learn dvorak. | 2 | [
2,
184,
20,
1001,
4233,
800,
3726,
3726,
31,
22,
195,
1001,
43,
140,
4715,
13790,
79,
26,
14,
236,
310,
122,
47,
31,
22,
195,
550,
3519,
184,
148,
1001,
2754,
4031,
13790,
79,
9,
50,
80,
12612,
54,
11034,
20,
448,
1442,
120,
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... |
Sql server triggers - order of execution
===
Does anyone know how Sql server determines the order triggers (of same type, i.e. before triggers) are executed. And is there anyway of changing this so that I can specify the order I want. If not, why not.
Thanks.
| 0 | [
2,
4444,
255,
8128,
7286,
18,
13,
8,
389,
16,
5769,
800,
3726,
3726,
630,
1276,
143,
184,
4444,
255,
8128,
3746,
18,
14,
389,
7286,
18,
13,
5,
1041,
205,
1001,
15,
31,
9,
62,
9,
115,
7286,
18,
6,
50,
5557,
9,
17,
25,
80,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the simplest way to stub a complex interface in Java?
===
My code takes an interface as input but only excercises a couple of the interface's methods (often, just getters).
When testing the code, I'd love to define an anonymous inner class that returns the test data. But what do I do about all the other methods that the interface requires?
I could use my IDE to auto-generate a stub for the interface but that seems fairly code-heavy.
What is the easiest way to stub the two methods I care about and none of the methods I don't?
| 0 | [
2,
98,
25,
14,
24384,
161,
20,
21354,
21,
1502,
6573,
19,
8247,
60,
800,
3726,
3726,
51,
1797,
1384,
40,
6573,
28,
6367,
47,
104,
1396,
5482,
7654,
160,
21,
1335,
16,
14,
6573,
22,
18,
3195,
13,
5,
14855,
15,
114,
164,
6052,
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... |
What might cause CSS to fail to load occassionally on all browsers?
===
I'm working on a webapp, and every so often we run into situations where pages will load without applying CSS. This problem has shown up in IE6, IE7, Safari 3, and FF3.
A page refresh will always fix the problem.
There are 3 CSS files loaded, all within the same style block using @import:
<STYLE type="text/css">
@import url([base css file]);
@import url([skin css file]);
@import url([generated css path]);
</STYLE>
In any situation when we take the time to examine the html source, nothing is out of the ordinary. Access logs seem normal as well - we're getting HTTP 304 responses for the static CSS files whenever they are requested, and an HTTP 200 response for our generated CSS.
The mimetype is text/css for the css files and the generated css. We're using an iPlanet server, which forwards requests to a Tomcat server. | 0 | [
2,
98,
530,
1679,
272,
18,
18,
20,
7476,
20,
6305,
13,
2499,
5949,
5991,
1326,
27,
65,
16495,
18,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
2741,
7753,
15,
17,
352,
86,
478,
95,
485,
77,
8329,
113,
4434,
129,
6305,
366,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JavaScript's document.write Inline Script Execution Order
===
I have the following script, where the first and third `document.writeline` are static and **the second is generated**:
<script language="javascript" type="text/javascript">
document.write("<script language='javascript' type='text/javascript' src='before.js'><\/sc" + "ript>");
document.write("<script language='javascript' type='text/javascript'>alert('during');<\/sc" + "ript>");
document.write("<script language='javascript' type='text/javascript' src='after.js'><\/sc" + "ript>");
</script>
Firefox and Chrome will display *before*, *during* and *after*, while Internet Explorer first shows *during* and only then does it show *before* and *after*.
I've come across [an article that states][1] that I'm not the first to encounter this, but that hardly makes me feel any better.
**Does anyone know how I can set the order to be deterministic in all browsers, or hack IE to work like all the other, sane browsers do?**
[1]: http://www.elctech.com/blog/nesting-document-write | 0 | [
2,
8247,
8741,
22,
18,
4492,
9,
23716,
19,
1143,
3884,
5769,
389,
800,
3726,
3726,
31,
57,
14,
249,
3884,
15,
113,
14,
64,
17,
422,
13,
1,
28132,
9,
23716,
1143,
1,
50,
12038,
17,
13,
1409,
124,
153,
25,
6756,
1409,
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... |
How do I break down barriers between developement and QA on an agile project?
===
I've been applying [agile][1] for a few months now on my project. However we are seeing a steady problem with our iteration burndowns. We aren't hitting zero each iteration.
The tasks remaining are QA tasks. Things like writing tests, testing, etc.
Now, there is some organizational resistance to the "cross-functional team" idea of agile. Dev's develop for single projects but Testers are shared for multiple projects. Which is quite contrary to the agile idea of Dev's and QA working together.
The fact that my tester's time is split across so many other projects is the cause of our slowdowns. The developers are testing to pick up as much slack as they can, but some tasks are still not getting done.
From what I see, I can do two things:
1. Persuade the organization to move
towards "each project having a
dedicated QA person"
2. Change my definition of "Done" to
not include QA/Testing work. Things
would still be unit tested though.
I'd much rather avoid doing #2, since I value the testing collaboration we're doing.
What advice do you have for my predicament?
[1]: http://www.amazon.com/User-Stories-Applied-Development-Addison-Wesley/dp/0321205685 | 0 | [
2,
184,
107,
31,
1442,
125,
15641,
128,
2803,
9632,
17,
7234,
27,
40,
27475,
669,
60,
800,
3726,
3726,
31,
22,
195,
74,
11989,
636,
14482,
413,
500,
2558,
165,
500,
26,
21,
310,
818,
130,
27,
51,
669,
9,
207,
95,
50,
2078,
21,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the appropriate design pattern
===
Working on a project that parses a log of events, and then updates a model based on properties of those events. I've been pretty lazy about "getting it done" and more concerned about upfront optimization, lean code, and proper design patterns. Mostly a self-teaching experiment. I am interested in what patterns more experienced designers think are relevant, or what type of pseudocoded object architecture would be the best, easiest to maintain and so on.
There can be 500,000 events in a single log, and there are about 60 types of events, all of which share about 7 base properties and then have 0 to 15 additional properties depending on the event type. The type of event is the 2nd property in the log file in each line.
So for I've tried a really ugly imperative parser that walks through the log line by line and then processes events line by line. Then I tried a lexical specification that uses a "nextEvent" pattern, which is called in a loop and processed. Then I tried a plain old "parse" method that never returns and just fires events to registered listener callbacks. I've tried both a single callback regardless of event type, and a callback method specific to each event type.
I've tried a base "event" class with a union of all possible properties. I've tried to avoid the "new Event" call (since there can be a huge number of events and the event objects are generally short lived) and having the callback methods per type with primitive property arguments. I've tried having a subclass for each of the 60 event types with an abstract Event parent with the 7 common base properties.
I recently tried taking that further and using a Command pattern to put event handling code per event type. I am not sure I like this and its really similar to the callbacks per type approach, just code is inside an execute function in the type subclasses versus the callback methods per type.
The problem is that alot of the model updating logic is shared, and alot of it is specific to the subclass, and I am just starting to get confused about the whole thing. I am hoping someone can at least point me in a direction to consider! | 0 | [
2,
98,
22,
18,
14,
4593,
704,
3732,
800,
3726,
3726,
638,
27,
21,
669,
30,
2017,
7202,
21,
6738,
16,
963,
15,
17,
94,
16779,
21,
1061,
432,
27,
3704,
16,
273,
963,
9,
31,
22,
195,
74,
1772,
16792,
88,
13,
7,
27380,
32,
677,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I persist to disk a temporary file using Python?
===
I am attempting to use the 'tempfile' module for manipulating and creating text files. Once the file is ready I want to save it to disk. I thought it would be as simple as using 'shutil.copy'. However, I get a 'permission denied' IOError:
>>> import tempfile, shutil
>>> f = tempfile.TemporaryFile(mode ='w+t')
>>> f.write('foo')
>>> shutil.copy(f.name, 'bar.txt')
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
shutil.copy(f.name, 'bar.txt')
File "C:\Python25\lib\shutil.py", line 80, in copy
copyfile(src, dst)
File "C:\Python25\lib\shutil.py", line 46, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 13] Permission denied: 'c:\\docume~1\\me\\locals~1\\temp\\tmpvqq3go'
>>>
Is this not intended when using the 'tempfile' library? Is there a better way to do this? (Maybe I am overlooking something very trivial) | 0 | [
2,
184,
107,
31,
22084,
20,
8582,
21,
4700,
3893,
568,
20059,
60,
800,
3726,
3726,
31,
589,
6314,
20,
275,
14,
13,
22,
9577,
16877,
22,
12613,
26,
27799,
17,
2936,
1854,
6488,
9,
382,
14,
3893,
25,
1451,
31,
259,
20,
2079,
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... |
Inconsistent display behavior for Quick Launch menu in MOSS 2007
===
I'm trying to configure the Quick Launch menu to only display the ancestors and descendant nodes of the currently select node. The menu also needs to display all the childern of the root node. More simply:
Given a site map of:
**RootSite**
---**SubSite1** = navigation set at "Display the current site, the navigation items below the current site, and the current site's siblings"
-----**Heading1** = navigation set at "Display the same navigation items as the parent site"
-------**Page1** = navigation set at "Display the same navigation items as the parent site"
-------**Page2** = navigation set at "Display the same navigation items as the parent site"
-----**Heading2** = navigation set at "Display the same navigation items as the parent site"
---**SubSite2** = navigation set at "Display the current site, the navigation items below the current site, and the current site's siblings"
-----**Heading1** = navigation set at "Display the same navigation items as the parent site"
SiteMapProvider configuration:
<PublishingNavigation:PortalSiteMapDataSource ID="SiteMapDS" Runat="server"
SiteMapProvider="CurrentNavSiteMapProvider" EnableViewState="true"
StartFromCurrentNode="true" ShowStartingNode="false"/>
The expected and actual behavior of the Quick Launch menu displayed at SubSite1 is:
---SubSite1
-----Heading1
-------Page1
-------Page2
-----Heading2
---SubSite2
The expected behavior of the menu after navigating to Heading1 of SubSite2:
---SubSite1
---SubSite2
-----Heading1
What I actually see after navigating to Heading1 of SubSite2:
---SubSite1
-----Heading1
-------Page1
-------Page2
-----Heading2
---SubSite2
-----Heading1
This does not match what I expect to see if I set the Heading1 navigation to "Display the
same navigation items as the parent site" and SubSite2 is set to "Display the current site, the navigation items below the current site, and the current site's siblings". I expect
Heading1 to inherit the navigation item of SubSite2 with the SubSite1 items collapsed from view. I've also played with the various
Trim... attributes without success. Any help will be greatly appreciated! | 0 | [
2,
22380,
3042,
3257,
26,
2231,
3394,
11379,
19,
8188,
624,
800,
3726,
3726,
31,
22,
79,
749,
20,
1065,
15951,
14,
2231,
3394,
11379,
20,
104,
3042,
14,
11575,
17,
13783,
16272,
16,
14,
871,
5407,
15421,
9,
14,
11379,
67,
2274,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Where to put helper-scripts with GNU autoconf/automake?
===
I'm working on a project that will be distributed with GNU autoconf/automake, and I have a set of bash scripts which call awk scripts. I would like the bash scripts to end up in the $PATH, but not the awk scripts. How should I insert these into the project? Should they be put in with other binaries?
Also, is there a way to determine the final location of the file after installation? I presume that /usr/local/bin isn't *always* where the executables end up... | 0 | [
2,
113,
20,
442,
448,
106,
8,
8741,
18,
29,
26092,
3108,
14093,
118,
18042,
11115,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
669,
30,
129,
44,
4387,
29,
26092,
3108,
14093,
118,
18042,
11115,
15,
17,
31,
57,
21,
309,
16,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
what is the best way to display a 'loading' indicator on a WPF control
===
In C#.Net WPF During UserControl.Load ->
What is the best way of showing a whirling circle / 'Loading' Indicator on the UserControl until it has finished gathering data and rendering it's contents?
| 0 | [
2,
98,
25,
14,
246,
161,
20,
3042,
21,
13,
22,
16866,
22,
13310,
27,
21,
619,
7721,
569,
800,
3726,
3726,
19,
272,
5910,
9,
2328,
619,
7721,
112,
4155,
12898,
9,
8294,
13,
8,
1,
98,
25,
14,
246,
161,
16,
3187,
21,
29984,
277... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NAnt best practicies
===
I have here 300 lines long NAnt file and it is quite a messy. I am wondering if there is a any style guide for writing NAnt scripts and what are the best practices for doing so.
Any tips? | 4 | [
2,
13,
11028,
246,
3865,
14468,
10807,
800,
3726,
3726,
31,
57,
235,
3565,
1560,
175,
13,
11028,
3893,
17,
32,
25,
1450,
21,
21503,
9,
31,
589,
5712,
100,
80,
25,
21,
186,
1034,
3378,
26,
1174,
13,
11028,
17505,
17,
98,
50,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
WPF Datatrigger problem
===
I have the following XAML:
<TextBlock Text="{Binding ElementName=EditListBox, Path=SelectedItems.Count}" Margin="0,0,5,0"/>
<TextBlock Text="items selected">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Style.Triggers>
<DataTrigger Binding="{Binding ElementName=EditListBox, Path=SelectedItems.Count}" Value="1">
<Setter Property="TextBlock.Text" Value="item selected"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
The first text block happily changes with SelectedItems.Count, showing 0,1,2, etc. The datatrigger on the second block never seems to fire to change the text.
Any thoughts?
| 0 | [
2,
619,
7721,
1054,
3367,
11356,
1448,
800,
3726,
3726,
31,
57,
14,
249,
13,
6791,
8184,
45,
13,
1,
11969,
12048,
1854,
3726,
7,
1,
22260,
4520,
7259,
3726,
69,
242,
5739,
5309,
15,
2013,
3726,
18,
7138,
2119,
79,
18,
9,
16549,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 StatSVN fail, claiming the directory is not a working copy?
===
I have a working copy of my project, checked out using Subversion 1.5.1. When I attempt to run [StatSVN](http://www.statsvn.org/) against it, I get the following error:
> Sep 18, 2008 12:25:22 PM net.sf.statsvn.util.JavaUtilTaskLogger info
> INFO: StatSVN - SVN statistics generation
>
> Sep 18, 2008 12:25:22 PM net.sf.statsvn.util.JavaUtilTaskLogger info
> INFO: svn: '.' is not a working copy
> Sep 18, 2008 12:25:22 PM net.sf.statsvn.util.JavaUtilTaskLogger error
> SEVERE: Repository root not available - verify that the project was checked out with svn version 1.3.0 or above.
Has anyone experienced this? I've seen suggestions it might be related to using a locale other than `en_US`, but I *am* using `en_US`. Thanks.
| 0 | [
2,
483,
630,
12819,
18,
16578,
7476,
15,
5865,
14,
16755,
25,
52,
21,
638,
4344,
60,
800,
3726,
3726,
31,
57,
21,
638,
4344,
16,
51,
669,
15,
6505,
70,
568,
972,
10898,
137,
9,
264,
9,
165,
9,
76,
31,
1735,
20,
485,
636,
106... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Testing the UI in an Asp.net Page?
===
What's the best way to test the UI in an Asp.net Page? | 0 | [
2,
4431,
14,
13,
5661,
19,
40,
28,
306,
9,
2328,
2478,
60,
800,
3726,
3726,
98,
22,
18,
14,
246,
161,
20,
1289,
14,
13,
5661,
19,
40,
28,
306,
9,
2328,
2478,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What is the best way to have synchronized a collection of objects between various threads in .Net?
===
What is the best way to have synchronized a collection of objects between various threads in .Net? | 0 | [
2,
98,
25,
14,
246,
161,
20,
57,
27202,
21,
1206,
16,
3916,
128,
617,
20396,
19,
13,
9,
2328,
60,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
57,
27202,
21,
1206,
16,
3916,
128,
617,
20396,
19,
13,
9,
2328,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I stop the "Found new hardware wizard" appearing?
===
As part of our product we use 3rd party hardware and drivers. Unfortunately, these drivers aren't signed so up pops the "Found new hardware wizard" when installing or upgrading our product. Our product is web based and allows the users access to everything they need remotely, apart from this one case.
Is there a registry hack or other OS setting that will stop the wizard appearing?
Can we sign the drivers ourselves?
Could we write a program that would click "Next, Next, Next" on the wizard that will work on all language variants of Windows? | 0 | [
2,
184,
107,
31,
747,
14,
13,
7,
12235,
78,
7610,
10276,
7,
4870,
60,
800,
3726,
3726,
28,
141,
16,
318,
2374,
95,
275,
203,
897,
346,
7610,
17,
5783,
9,
6200,
15,
158,
5783,
4847,
22,
38,
908,
86,
71,
1675,
18,
14,
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... |
How to switch back to a previous version of a file without deleting its subsequent revisions?
===
I have 4 versions of file A.txt in my subversion repository, say: A.txt.r1, A.txt.r2, A.txt.r3 and A.txt.r4. My working copy of the file is r4 and I want to switch back to r2. I don't want to use "*svn update -r 2 A.txt*" because this will delete all the revisions after r2, namely r3 and r4.
So is there any way that I update my working copy to r2 and still having the option to switch to r3 and r4 later? Put it another way, I want to still be able to see all 4 revisions by using "*svn log A.txt*" after doing the update.
Many thanks. | 0 | [
2,
184,
20,
5521,
97,
20,
21,
1158,
615,
16,
21,
3893,
366,
121,
1336,
68,
82,
3147,
11323,
18,
60,
800,
3726,
3726,
31,
57,
268,
3281,
16,
3893,
21,
9,
38,
396,
38,
19,
51,
972,
10898,
24869,
15,
395,
45,
21,
9,
38,
396,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Smart Pointers: Or who owns you baby
===
C++ is all about memory ownership<br>
Aka "<b>Ownership Semantics</b>"
It is the responsibility of the owner of a chunk of dynamically allocated memory to release that memory. So the question really becomes who owns the memory.<br>
In C++ ownership is documented by the type a RAW pointer is wrapped inside thus in a good (IMO) C++ program it is very rare [RARE not NEVER] to see RAW pointers passed around (as RAW pointers have no inferred ownership thus we can not tell who owns the memory and thus without careful reading of the documentation you can't tell who is responsible for ownership).<br>
Conversely it is rare to see RAW pointers stored in a class each RAW pointer is stored within its own SMART pointer wrapper. (<B>N.B.:</b> If you don't own an object you should not be storing it because you can not know when it will go out of scope and be destroyed.)
So the question:
* What type of Ownership Semantic have people come across.
* What standard classes are used to implement those semantics.
* What situations do you find them useful.
Lets keep 1 type of semantic ownership per answer<br>
So they can be voted up and down individually | 1 | [
2,
3978,
454,
445,
45,
54,
72,
258,
18,
42,
1578,
800,
3726,
3726,
272,
20512,
25,
65,
88,
1912,
5074,
1,
5145,
1,
20892,
13,
7,
1,
220,
1,
10705,
2418,
17220,
18,
1,
118,
220,
1,
7,
32,
25,
14,
4024,
16,
14,
2410,
16,
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... |
Selecting Best Features in a feature vector using Adaboost
===
I've read some documentation on how Adaboost works but have some questions regarding it.
I've read that Adaboost:
1. Tells you what the best "features" are.
2. What the best thresholds are?
3. How do we combine these into a classifier?
I understand that **Adaboost assigns higher weights to data that is wrongly classified** (using weight matrix **D_t** where **t** is weak classifier index) so that next classifier pays more attention while classifying that data.
Assuming we are using **height**, **weight**, **width**, **color** as the **features** in the **feature-vector**.
How does Adaboost **pick best features from a feature vector** (features as in individual features/columns in a single feature vector/row of the data)?
Does this mean, the **length of the feature vector can be changed** (i.e. reduced, as we have individually picked best features from the feature vector)?
Correct me if my understanding of **Adaboost** is wrong! | 0 | [
2,
20764,
246,
967,
19,
21,
1580,
7497,
568,
13,
4405,
10858,
384,
800,
3726,
3726,
31,
22,
195,
1302,
109,
13945,
27,
184,
13,
4405,
10858,
384,
693,
47,
57,
109,
2346,
3467,
32,
9,
31,
22,
195,
1302,
30,
13,
4405,
10858,
384,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Create Excel workbook in asp.net
===
I need to generate an excel file for a user on the fl upon button click. I was using [Netoffice][1] before which worked fine for desktop applications.
But now I want to do the same thing with an asp.net app. This way my server code doesn't have an access to the client's copy of excel. What approach should I take?
[1]: http://netoffice.codeplex.com/ | 0 | [
2,
1600,
20700,
170,
5199,
19,
28,
306,
9,
2328,
800,
3726,
3726,
31,
376,
20,
7920,
40,
20700,
3893,
26,
21,
4155,
27,
14,
8631,
685,
5167,
10840,
9,
31,
23,
568,
636,
2328,
17047,
500,
2558,
165,
500,
115,
56,
577,
1123,
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... |
Regex to extract multiple sentences while discarding a specific one
===
In: `preferences = 'Hello my name is paul. I hate puzzles.'`
I want to extract `Hello my name is paul.`
In: `preferences = 'Salutations my name is richard. I love pizza. I hate rain.'`
I want to extract `Salutations my name is richard. I love pizza.`
In: `preferences = 'Hi my name is bob. I enjoy ice cream.'`
I want to extract `Hi my name is bob. I enjoy ice cream.`
In other words, I would like to
- **always** discard `preferences = '`
- discard **any last** sentence (delimited by `.`) that has the word `hate` in, **if present**.
- discard the final `'`
My problem is that my regex stops at the first `.` and doesn't extract the subsequent sentences.
Thanks. | 0 | [
2,
7953,
1706,
20,
10962,
1886,
13453,
133,
26251,
68,
21,
1903,
53,
800,
3726,
3726,
19,
45,
13,
1,
306,
28018,
18,
800,
13,
22,
11515,
51,
204,
25,
758,
9,
31,
3223,
9164,
18,
9,
22,
1,
31,
259,
20,
10962,
13,
1,
11515,
51... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In a Git cherry-pick merge conflict, how are BASE (aka "the ancestor"), LOCAL, and REMOTE determined?
===
In a normal Git merge conflict, the three versions of a file in play are roughly as follows:
- LOCAL: the version from my branch
- REMOTE: the version from the other branch
- BASE: the version from the common ancestor of the two branches (in particular, the common ancestor of my branch's HEAD and the other branch's HEAD)
When a Git cherry-pick generates a merge conflict, there is no common ancestor, properly speaking, so how are these things determined?
| 0 | [
2,
19,
21,
13,
10404,
9257,
8,
16855,
12666,
2930,
15,
184,
50,
1000,
13,
5,
4176,
13,
7,
124,
14628,
7,
6,
15,
375,
15,
17,
5388,
2734,
60,
800,
3726,
3726,
19,
21,
1826,
13,
10404,
12666,
2930,
15,
14,
132,
3281,
16,
21,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
js.erb is called only on first time
===
in my rails 3 application, there is a **select_tag** with an **onchange** event, which sends an ajax request:
f.select 'forma_id', @collection, {:include_blank => true}, {:onchange => "goAjax('/lancamentos/receber_forma', this.value)", :class => 'btn'}
where, **goAjax** is:
function goAjax(_url, _value) {
$.ajax({url: _url, data: 'value=' + _value, dataType: 'script'})
}
**lancamentos_controller#receber_forma** is (simplified version):
def receber_forma
@lancamento = Lancamento.new(:forma_id => params[:value])
logger.info 'forma_id = ' + @lancamento.forma_id
respond_to do |format|
format.html { render :new }
format.js
end
end
and **receber_forma.js.erb**:
$('div#cartoes').replaceWith("<%= escape_javascript(label_tag(@lancamento.forma_id)) %>");
what is happening, is that when I choose a value on that select, the value rendered on the label is always the value sent on first call. The following value changes simply don't change the label text. The logger in the method receber_forma shows that the new selected value is always sent.
Someone knows what I'm doing wrong here??
p.s.:sorry any errors of English | 0 | [
2,
487,
18,
9,
106,
220,
25,
227,
104,
27,
64,
85,
800,
3726,
3726,
19,
51,
2240,
18,
203,
3010,
15,
80,
25,
21,
13,
1409,
18,
16964,
1,
8628,
1409,
29,
40,
13,
1409,
218,
16229,
1409,
807,
15,
56,
11350,
40,
20624,
3772,
45... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Umbraco - Placing content outside website node?
===
I'm trying to re-create a website using Umbraco. For this website I have _news items_ which I am storing in a node outside the webroot:
- Content
- Website Home
- News
- Newsmessages
- Message 1 (created 10-10-2011)
- Message 2 (created 15-01-2012)
I would like to use URL parameters to filter the list of newsitems to show _or_ to show the actual news item.
1. Shows __news section__:
>www.website.com/news
2. Shows __news list__ for __2011__:
>www.website.com/news/__2011__
3. Shows __news list__ for __October 2011__:
>www.website.com/news/__2011__/__10__
4. Shows __news detail__ for __Message 1__:
>www.website.com/news/2011/10/10/__message-1__
__Can this be done without having to create all content items below /Content/Website Home/News__? | 0 | [
2,
13,
723,
2559,
716,
13,
8,
5861,
2331,
719,
2271,
15421,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
302,
8,
6037,
1373,
21,
2271,
568,
13,
723,
2559,
716,
9,
26,
48,
2271,
31,
57,
13,
1,
14962,
3755,
1,
56,
31,
589,
25615,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 the CSS 'font-size: medium' set font to .Body font size or to the *browser*'s base font size?
===
in "CSS: The missing manual" the author says that font-size: medium (or other size keywords) sets the font relative to the *browser's* base font size.
But what I'm seeing in FF2 and IE6 is that it sets the font size to what I specified in the .CSS HTML or BODY style (which is much preferred).
If it works the latter way, this is very handy if you have nested styles and you know you want some text to be the body font-size (i.e., "normal sized text").
| 0 | [
2,
630,
14,
272,
18,
18,
13,
22,
21931,
8,
10454,
45,
4152,
22,
309,
9978,
20,
13,
9,
9760,
9978,
1072,
54,
20,
14,
1637,
25699,
4104,
2483,
22,
18,
1000,
9978,
1072,
60,
800,
3726,
3726,
19,
13,
7,
6824,
18,
45,
14,
2863,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get a Flex project to load a plugin at runtime?
===
I'm looking to have a couple of plugins in a Flex project I'm working on. I know I can load a SWF using the SWFLoader, but I thought in Flex3 you can now have Runtime Shared Libraries or something. Does anyone have any good documentation on loading a plugin at runtime? Ideally I'd like to be able to load a plugin from a URL, then execute some code from within the plugin (e.g. add a control to the page).
| 0 | [
2,
184,
20,
164,
21,
14409,
669,
20,
6305,
21,
10922,
108,
35,
485,
891,
60,
800,
3726,
3726,
31,
22,
79,
699,
20,
57,
21,
1335,
16,
10922,
108,
18,
19,
21,
14409,
669,
31,
22,
79,
638,
27,
9,
31,
143,
31,
92,
6305,
21,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to programmatically determine param name when constructing an ArgumentException?
===
When constructing an ArgumentException, a couple of the overloads take a string that is the invalid argument's parameter name. I figure it would be nice to not have to remember to update this ctor param whenever I change the method's param name. Is there a simple way to do this using reflection?
Thanks. :) | 0 | [
2,
184,
20,
625,
6732,
1326,
3746,
2258,
79,
204,
76,
18660,
40,
5476,
10066,
872,
60,
800,
3726,
3726,
76,
18660,
40,
5476,
10066,
872,
15,
21,
1335,
16,
14,
84,
8294,
18,
247,
21,
3724,
30,
25,
14,
16671,
5476,
22,
18,
18906,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Return to an already open application when a user tries to open a new instance
===
This has been a problem that I haven't been able to figure out for sometime. Preventing the second instance is trivial and has many methods, however, bringing back the already running process isn't. I would like to:
- Minimized: Undo the minimize and bring the running instance to the front.
- Behind other windows: Bring the application to the front.
| 0 | [
2,
788,
20,
40,
614,
368,
3010,
76,
21,
4155,
3919,
20,
368,
21,
78,
4851,
800,
3726,
3726,
48,
63,
74,
21,
1448,
30,
31,
2933,
22,
38,
74,
777,
20,
1465,
70,
26,
8530,
9,
11520,
14,
153,
4851,
25,
13,
19712,
17,
63,
151,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 quicker, switch on string or elseif on type?
===
Lets say I have the option of identifying a code path to take on the basis of a string comparison or else iffing the type:
Which is quicker and why?
switch(childNode.Name)
{
case "Bob":
break;
case "Jill":
break;
case "Marko":
break;
}
if(childNode is Bob)
{
}
elseif(childNode is Jill)
{
}
else if(childNode is Marko)
{
} | 0 | [
2,
98,
25,
21927,
15,
5521,
27,
3724,
54,
962,
821,
27,
1001,
60,
800,
3726,
3726,
6884,
395,
31,
57,
14,
4255,
16,
13785,
21,
1797,
2013,
20,
247,
27,
14,
2239,
16,
21,
3724,
6050,
54,
962,
13,
6021,
68,
14,
1001,
45,
56,
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... |
Eclipse memory use
===
I use the recent Ganymede release of Eclipse, specifically the distro for Java EE and web developers. I have installed a few additional plugins (e.g. Subclipse, Spring, FindBugs) and removed all the Mylyn plugins.
I don't do anything particularly heavy-duty within Eclipse such as starting an app server or connecting to databases, yet for some reason after several hours use I see that Eclipse is using close to 500MB of memory.
Does anybody know why Eclipse uses so much memory (leaky?), and more importantly, if there's anything I can do to improve this.
Cheers,
Don | 0 | [
2,
11652,
1912,
275,
800,
3726,
3726,
31,
275,
14,
1764,
7890,
93,
4688,
62,
830,
16,
11652,
15,
3524,
14,
1460,
3996,
26,
8247,
13,
2851,
17,
2741,
10168,
9,
31,
57,
4066,
21,
310,
1351,
10922,
108,
18,
13,
5,
62,
9,
263,
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... |
C# string manipulation search and replace
===
I have a string which contain tags in the form < tag >. Is there an easy way for me to programmatically replace instances of these tags with special ascii characters? e.g. replace a tag like "< tab >" with the ascii equivelent of '/t'? | 0 | [
2,
272,
5910,
3724,
17561,
2122,
17,
3934,
800,
3726,
3726,
31,
57,
21,
3724,
56,
3717,
3383,
18,
19,
14,
505,
13,
1,
3383,
13,
1,
9,
25,
80,
40,
2010,
161,
26,
55,
20,
625,
6732,
1326,
3934,
13946,
16,
158,
3383,
18,
29,
62... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I legally Incorporating GPL & LGPL, open-sourced software in a proprietary, closed-source project?
===
The company I work for develop and sell a proprietary, closed-source software application.
Our application uses third party open-source projects licensed under the GPL and LGPL licenses. For instance, we use [Hibernate][1] as an ORM.
Sometimes we modify and build upon these third party projects.
What is required of us to not be in violation of the GPL and LGPL licenses when it comes to selling and distributing our closed-source application?
[1]: http://www.hibernate.org/ | 4 | [
2,
92,
31,
10524,
15239,
489,
5727,
279,
13,
10641,
5727,
15,
368,
8,
12097,
43,
2306,
19,
21,
18856,
15,
827,
8,
12097,
669,
60,
800,
3726,
3726,
14,
237,
31,
170,
26,
2803,
17,
3344,
21,
18856,
15,
827,
8,
12097,
2306,
3010,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
When do you use Java's @Override annotation and why?
===
What are the best practices for using Java's @Override annotation and why?
It seems like it would be overkill to mark every single overridden method with the @Override annotation. Are there certain programming situations that call for using the @Override and others that should never use the @Override?
| 4 | [
2,
76,
107,
42,
275,
8247,
22,
18,
13,
1,
2549,
11891,
40,
1270,
857,
17,
483,
60,
800,
3726,
3726,
98,
50,
14,
246,
5242,
26,
568,
8247,
22,
18,
13,
1,
2549,
11891,
40,
1270,
857,
17,
483,
60,
32,
2206,
101,
32,
83,
44,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
calculate elapsed time in flash
===
I am building a quiz and i need to calculate the total time taken to do the quiz.
and i need to display the time taken in HH::MM::SS..any pointers? | 0 | [
2,
18469,
13,
62,
17057,
43,
85,
19,
4433,
800,
3726,
3726,
31,
589,
353,
21,
17667,
17,
31,
376,
20,
18469,
14,
600,
85,
658,
20,
107,
14,
17667,
9,
17,
31,
376,
20,
3042,
14,
85,
658,
19,
13,
10681,
45,
45,
3363,
45,
45,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... |
Volume (Balance) Control for XP/Vista
===
Is there a method for controlling the Balance of the Wave output that will work on both XP and Vista? | 0 | [
2,
2310,
13,
5,
24140,
6,
569,
26,
23045,
118,
22034,
800,
3726,
3726,
25,
80,
21,
2109,
26,
10106,
14,
4468,
16,
14,
2367,
5196,
30,
129,
170,
27,
156,
23045,
17,
13520,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Windsor Interceptors AOP & Caching
===
I'm considering using Castle Windsor's Interceptors to cache data for helping scale an asp.net site.
Does anyone have any thoughts/experience with doing this? | 0 | [
2,
10784,
13,
24171,
18,
21,
2594,
279,
1658,
7192,
800,
3726,
3726,
31,
22,
79,
5154,
568,
1339,
10784,
22,
18,
13,
24171,
18,
20,
16522,
1054,
26,
3713,
3464,
40,
28,
306,
9,
2328,
689,
9,
630,
1276,
57,
186,
3064,
118,
28083,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Infopath 2007 - Emailed forms not rendering correctly
===
So I have a form that uses infopath services via sharepoint, and after multiple attempts at attempting to fix a rendering problem (tables appear WAY too wide to be readable), I think I have found the problem : date controls.
It seems date controls within Infopath 2007 screw with rendering somehow. To test, I made 2 variations of a VERY simple form - one with a date control, one with a text control - and placed them inside a table.
When emailed, the one with the date control rendered incorrectly.
My question is - has anyone experienced this before? If you have time, test it out. I think it is a bug or something, but not exactly sure.
I am using Infopath 2007, Sharepoint 2003, and Outlook 2007.
| 0 | [
2,
15404,
8353,
624,
13,
8,
8517,
69,
1997,
52,
15307,
12044,
800,
3726,
3726,
86,
31,
57,
21,
505,
30,
2027,
15404,
8353,
687,
1197,
1891,
3132,
15,
17,
75,
1886,
3265,
35,
6314,
20,
6098,
21,
15307,
1448,
13,
5,
5924,
18,
1893... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using openssl what does "unable to write 'random state'" mean?
===
I'm generating a self-signed SSL certificate to protect my server's admin section, and I keep getting this message from openssl:
unable to write 'random state'
What does this mean? A quick Google search yields nothing useful, so I thought I'd try out the new Stack Overflow!
This is on an Ubuntu server. I have upgraded libssl to fix [the recent security vulnerability][1].
[1]: http://www.ubuntu.com/usn/usn-612-1 | 2 | [
2,
568,
8965,
18,
255,
98,
630,
13,
7,
1020,
579,
20,
2757,
13,
22,
2195,
5555,
146,
22,
7,
884,
60,
800,
3726,
3726,
31,
22,
79,
13500,
21,
1119,
8,
13472,
13,
18,
18,
255,
6259,
20,
2196,
51,
8128,
22,
18,
21,
43,
2160,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Load a WPF BitmapImage from a System.Drawing.Bitmap
===
I have an instance of a System.Drawing.Bitmap and would like to make it available to my WPF app in the form of a System.Windows.Media.Imaging.BitmapImage.
What would be the best approach for this? | 0 | [
2,
6305,
21,
619,
7721,
1142,
15022,
22039,
37,
21,
329,
9,
3030,
3546,
9,
3326,
15022,
800,
3726,
3726,
31,
57,
40,
4851,
16,
21,
329,
9,
3030,
3546,
9,
3326,
15022,
17,
83,
101,
20,
233,
32,
904,
20,
51,
619,
7721,
4865,
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... |
What tools are available for a team leader & members to manage tasks (Agile programming)
===
I are working in a small development team of 4 people.
We are trying develop "Agile style" - story points, small tasks, etc...
Unfortunately, we are currently managing our tasks in a (shared) excel table.
We looked at some available tools (Mingle, TFS, Scrum for Team System), but all of these looked like they would be too much overhead and take the fun out of working.
What are you Agile lovers using for managing your tasks? | 4 | [
2,
98,
4672,
50,
904,
26,
21,
173,
1156,
279,
443,
20,
4705,
8674,
13,
5,
14482,
413,
3143,
6,
800,
3726,
3726,
31,
50,
638,
19,
21,
284,
522,
173,
16,
268,
148,
9,
95,
50,
749,
2803,
13,
7,
14482,
413,
1034,
7,
13,
8,
609... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 the Gentoo install CD contain everything for C++ development?
===
I'd like to install Gentoo. I need it to develop GUI C++ applications using wxWidgets, so I need:
- build tools: make, automake, autoconf, etc.
- C++ compiler (GCC)
- X Window System for testing (Fluxbox or something minimal would be enough)
Now, I have two options:
- download the small network installer (57MB) do a network install
- download the 600MB CD
I'd like to download as less as possible and still have all the tools above.
I also don't understand whether the network installer will first prompt me for the packages I want, or it will fetch 600 MB of data anyway?
I might want to install it on other computers later, so I'd go with 'full' install from CD if the network install does not save me anything. | 0 | [
2,
630,
14,
4380,
8175,
16146,
1745,
3717,
796,
26,
272,
20512,
522,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
16146,
4380,
8175,
9,
31,
376,
32,
20,
2803,
9457,
272,
20512,
3767,
568,
619,
396,
3976,
43,
3060,
18,
15,
86,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the correct way to make a custom .NET Exception serializable?
===
More specifically, when the exception contains custom objects which may or may not themselves be serializable.
Take this example:
public class MyException : Exception
{
private readonly string resourceName;
private readonly IList<string> validationErrors;
public MyException(string resourceName, IList<string> validationErrors)
{
this.resourceName = resourceName;
this.validationErrors = validationErrors;
}
public string ResourceName
{
get { return this.resourceName; }
}
public IList<string> ValidationErrors
{
get { return this.validationErrors; }
}
}
If this Exception is serialized and de-serialized, the two custom properties (`ResourceName` and `ValidationErrors`) will not be preserved. The properties will return `null`.
**Is there a common code pattern for implementing serialization for custom exception?** | 0 | [
2,
98,
25,
14,
4456,
161,
20,
233,
21,
5816,
13,
9,
2328,
5391,
5956,
3186,
579,
60,
800,
3726,
3726,
91,
3524,
15,
76,
14,
5391,
1588,
5816,
3916,
56,
123,
54,
123,
52,
1366,
44,
5956,
3186,
579,
9,
247,
48,
823,
45,
317,
7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I read selected files from a remote Zip archive over HTTP using Python?
===
I need to read selected files, matching on the file name, from a remote zip archive using Python. I don't want to save the full zip to a temporary file (it's not that large, so I can handle everything in memory).
I've already written the code and it works, and I'm answering this myself so I can search for it later. But since evidence suggests that I'm one of the dumber participants on Stackoverflow, I'm sure there's room for improvement.
| 0 | [
2,
184,
107,
31,
1302,
1704,
6488,
37,
21,
5388,
12133,
9250,
84,
7775,
568,
20059,
60,
800,
3726,
3726,
31,
376,
20,
1302,
1704,
6488,
15,
10120,
27,
14,
3893,
204,
15,
37,
21,
5388,
12133,
9250,
568,
20059,
9,
31,
221,
22,
38,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
in rails, how to return records as a csv file
===
I have a simple database table called "Entries":
class CreateEntries < ActiveRecord::Migration
def self.up
create_table :entries do |t|
t.string :firstName
t.string :lastName
#etc.
t.timestamps
end
end
def self.down
drop_table :entries
end
end
How do I write a handler that will return the contents of the Entries table as a CSV file (ideally in a way that it will automatically open in Excel)?
class EntriesController < ApplicationController
def getcsv
@entries = Entry.find( :all )
# ??? NOW WHAT ????
end
end
| 0 | [
2,
19,
2240,
18,
15,
184,
20,
788,
742,
28,
21,
272,
18,
710,
3893,
800,
3726,
3726,
31,
57,
21,
1935,
6018,
859,
227,
13,
7,
2291,
2829,
7,
45,
718,
1600,
2291,
2829,
13,
1,
1348,
14953,
45,
45,
10183,
5946,
6312,
1119,
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... |
Is ">" (U+003E GREATER-THAN SIGN) allowed inside an html-element attribute value?
===
In other words may one use `/<tag[^>]*>.*?<\/tag>/` regex to match an html tag?
For example (lt.html):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>greater than sign in attribute value</title>
</head>
<body>
<div>1</div>
<div title=">">2</div>
</body>
</html>
Regex:
$ perl -nE"say $1 if m~<div[^>]*>(.*?)</div>~" lt.html
And screen-scraper:
import sys
import BeautifulSoup
soup = BeautifulSoup.BeautifulSoup(sys.stdin)
for div in soup.findAll('div'):
print div.string
$ python lt.py <lt.html
Both give the same output:
1
">2
Expected output:
1
2
[w3c][1] says:
> Attribute values are a mixture of text
> and character references, except with
> the additional restriction that the
> text cannot contain an ambiguous
> ampersand.
[1]: http://www.w3.org/TR/html5/syntax.html#attributes2 "html attribute syntax" | 0 | [
2,
25,
13,
7,
1,
7,
13,
5,
291,
2430,
2032,
240,
62,
1894,
8,
7230,
1676,
6,
1159,
572,
40,
13,
15895,
8,
27567,
35,
14755,
1923,
60,
800,
3726,
3726,
19,
89,
715,
123,
53,
275,
13,
1,
118,
1,
8628,
2558,
1,
500,
2483,
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... |
Can I compose a Spring Configuration File from smaller ones?
===
I have a handful of projects that all use one project for the data model. Each of these projects has its own applicationContext.xml file with a bunch of repetitive data stuff within it.
I'd like to have a modelContext.xml file and another for my ui.xml, etc.
Can I do this? | 0 | [
2,
92,
31,
18217,
21,
1573,
8091,
3893,
37,
2012,
53,
18,
60,
800,
3726,
3726,
31,
57,
21,
8893,
16,
2314,
30,
65,
275,
53,
669,
26,
14,
1054,
1061,
9,
206,
16,
158,
2314,
63,
82,
258,
3010,
1126,
11969,
9,
396,
8184,
3893,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Maven2 Multiproject Cobertura Reporting Problems During mvn site Build
===
We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the lines of code that were hit by the unit tests. We're using mvn 2.0.8. I've tried running "mvn clean site", "mvn clean site:stage" and "mvn clean package site". I know the tests are running, they show up in the surefire reports (both the txt/xml and site reports). Am I missing something in the configuration? Does Cobertura not work right with multiprojects?
This is in the parent .pom:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<id>clean</id>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<inherited>true</inherited>
</plugin>
</plugins>
</reporting>
I've tried running it with and without the following in the child .poms:
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
I get this in the output of the build:
...
[INFO] [cobertura:instrument]
[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Instrumenting 3 files to C:\workspaces\sandbox\ProbuildCommonJsf\target\generated-classes\cobertura
Cobertura: Saved information on 3 classes.
Instrument time: 186ms
[INFO] Instrumentation was successful.
...
[INFO] Generating "Cobertura Test Coverage" report.
[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 3 classes.
Report time: 481ms
[INFO] Cobertura Report generation was successful.
And the report looks like this:
![cobertura report][1]
[1]: http://trandem.com/images/cobertura.png | 0 | [
2,
1216,
3124,
135,
1889,
21011,
326,
4461,
3031,
6670,
1716,
112,
17967,
103,
689,
1895,
800,
3726,
3726,
95,
22,
195,
330,
21,
1889,
21011,
95,
22,
99,
749,
20,
485,
326,
4461,
3031,
1289,
5245,
2813,
27,
28,
141,
16,
318,
17967... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Profiling #c/.net applications
===
How do you trace/profile your .net applications?
The msdn online help mentions Visual Studio Team (which I do not possess) and there is the Windows Performance Toolkit. But, are there other solutions you can recommend? Preferably (of course) a solution that works without changing the code (manually) and that can be integrated in Visual Studio.
| 0 | [
2,
8721,
49,
802,
6926,
150,
118,
9,
2328,
3767,
800,
3726,
3726,
184,
107,
42,
5565,
118,
14503,
154,
13,
9,
2328,
3767,
60,
14,
4235,
43,
103,
2087,
448,
10292,
3458,
1120,
173,
13,
5,
2140,
31,
107,
52,
10379,
6,
17,
80,
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... |
Using a javax.script package on javascript with an external src attribute
===
Say I have some javascript that looks like...
<script type="text/javascript" src="http://someplace.net/stuff.ashx"></script>
<script type="text/javascript">
var stuff = null;
stuff = new TheStuff('myStuff');
</script>
... and I want to use the javax.script package in java 1.6 to run this code and get the stuff, how do I let the engine know the source of the code?
For instance, given the code...
ScriptEngineManager mgr = new ScriptEngineManager();
ScriptEngine engine = mgr.getEngineByName("JavaScript");
// Now we will read in some Javascript from a file
engine.eval( "stuff = new TheStuff('myStuff');" );
Object obj = engine.get("stuff");
...how do I make it know to use the above src for this?
Thanks!
| 0 | [
2,
568,
21,
8247,
396,
9,
8741,
6030,
27,
8247,
8741,
29,
40,
4886,
13,
18,
5453,
35,
14755,
800,
3726,
3726,
395,
31,
57,
109,
8247,
8741,
30,
1879,
101,
9,
9,
9,
13,
1,
8741,
1001,
3726,
7,
11969,
118,
1004,
1385,
8741,
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... |
What is the maximal value for a int32?
===
I can never remember that number. I need a memory rule. | 0 | [
2,
98,
25,
14,
27899,
1923,
26,
21,
19,
38,
3125,
60,
800,
3726,
3726,
31,
92,
243,
1518,
30,
234,
9,
31,
376,
21,
1912,
1828,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
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... |
How do you visualize logfiles?
===
Sometimes it might be useful, but mostly just looking cool or impressive to visualize log files (anything from http requests and to bandwith usage to cups of coffee drunk per day).
I know about [Visitorville][1] which I think look a bit silly, and then there's [gltail][2].
How do you "visualize" your log files?
[1]: http://www.visitorville.com/
[2]: http://www.fudgie.org/ | 0 | [
2,
184,
107,
42,
3458,
2952,
6738,
16877,
18,
60,
800,
3726,
3726,
1030,
32,
530,
44,
4811,
15,
47,
1555,
114,
699,
2700,
54,
7408,
20,
3458,
2952,
6738,
6488,
13,
5,
20938,
37,
7775,
12279,
17,
20,
323,
1410,
7514,
20,
15737,
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... |
Automated naming of local datagram sockets?
===
I'm implementing a simple service using datagrams over unix sockets. The server is bound to a public address, and it receives requests just fine. Unfortunately, when it comes to answering back, `sendto` fails unless the client is bound too. (the common error is `Transport endpoint is not connected`).
Binding to some random name (filesystem-based or abstract) works. But I'd like to avoid that: who am I to guarantee the names I picked won't collide?
The unix sockets' stream mode documentation tell us that an abstract name will be assigned to them at `connect` time if they don't have one already. Is such a feature available for datagram oriented sockets? | 0 | [
2,
14904,
10929,
16,
375,
1054,
6295,
18482,
18,
60,
800,
3726,
3726,
31,
22,
79,
17333,
21,
1935,
365,
568,
1054,
6295,
18,
84,
22540,
18482,
18,
9,
14,
8128,
25,
4138,
20,
21,
317,
3218,
15,
17,
32,
8359,
12279,
114,
1123,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you handle poor quality code from a third party contractor in another country?
===
Let's just say the boss is addicted to the price of poor code, and will keep on outsourcing chunks of greenfield projects to cheap labour, only to get inhouse devs to fix the bugs. | 2 | [
2,
184,
107,
42,
3053,
1696,
2190,
1797,
37,
21,
422,
346,
15136,
19,
226,
475,
60,
800,
3726,
3726,
408,
22,
18,
114,
395,
14,
4054,
25,
16906,
69,
20,
14,
2162,
16,
1696,
1797,
15,
17,
129,
643,
27,
70,
27028,
15009,
18,
16,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best way to catch a WCF exception in Silverlight?
===
I have a Silverlight 2 application that is consuming a WCF service. As such, it uses asynchronous callbacks for all the calls to the methods of the service. If the service is not running, or it crashes, or the network goes down, etc before or during one of these calls, an exception is generated as you would expect. The problem is, I don't know how to catch this exception.
* Because it is an asynchronous call, I can't wrap my begin call with a try/catch block and have it pick up an exception that happens after the program has moved on from that point.
* Because the service proxy is automatically generated, I can't put a try/catch block on each and every generated function that calls EndInvoke (where the exception actually shows up). These generated functions are also surrounded by External Code in the call stack, so there's nowhere else in the stack to put a try/catch either.
* I can't put the try/catch in my callback functions, because the exception occurs before they would get called.
* There is an Application_UnhandledException function in my App.xaml.cs, which captures all unhandled exceptions. I could use this, but it seems like a messy way to do it. I'd rather reserve this function for the truly unexpected errors (aka bugs) and not end up with code in this function for every circumstance I'd like to deal with in a specific way.
Am I missing an obvious solution? Or am I stuck using Application_UnhandledException?
| 0 | [
2,
246,
161,
20,
2949,
21,
11801,
410,
5391,
19,
1172,
3130,
60,
800,
3726,
3726,
31,
57,
21,
1172,
3130,
172,
3010,
30,
25,
13,
17601,
21,
11801,
410,
365,
9,
28,
145,
15,
32,
2027,
21,
16023,
1291,
645,
1958,
18,
26,
65,
14,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What would be the best algorithm to find an ID that is not used from a table that has the capacity to hold a million rows.
===
To elaborate ..
a) A table (BIGTABLE) has a capacity to hold a million rows with a primary Key as the ID. (random and unique)
b) What algorithm can be used to arrive at an ID that has not been used so far. This number will be used to insert another row into table BIGTABLE.
| 0 | [
2,
98,
83,
44,
14,
246,
9083,
20,
477,
40,
4924,
30,
25,
52,
147,
37,
21,
859,
30,
63,
14,
2301,
20,
1027,
21,
507,
11295,
9,
800,
3726,
3726,
20,
7541,
13,
9,
9,
21,
6,
21,
859,
13,
5,
6407,
5924,
6,
63,
21,
2301,
20,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Parser error when using ScriptManager
===
I have an ASP.NET page which has a script manager on it.
<form id="form1" runat="server">
<div>
<asp:ScriptManager EnablePageMethods="true" ID="scriptManager2" runat="server">
</asp:ScriptManager>
</div>
</form>
The page overrides an abstract property to return the ScriptManager in order to enable the base page to use it:
public partial class ReportWebForm : ReportPageBase
{
protected override ScriptManager ScriptManager
{
get { return scriptManager2; }
}
...
}
And the base page:
public abstract class ReportPageBase : Page
{
protected abstract ScriptManager ScriptManager { get; }
...
}
When I run the project, I get the following parser error:
**Parser Error Message:** The base class includes the field 'scriptManager2', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager).
How can I solve this? | 0 | [
2,
2017,
4104,
7019,
76,
568,
3884,
22256,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
2478,
56,
63,
21,
3884,
1382,
27,
32,
9,
13,
1,
4190,
4924,
3726,
7,
4190,
165,
7,
485,
721,
3726,
7,
10321,
106,
7,
1,
13,
1,
12916,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Anyone knows a good beautifyer for VS2005 / ASP.NET markup?
===
I'm looking for one those to help me in my fight against Visual Studio's propension to bollock up markup code in ASP.NET pages (especially when coming back from design view.)
I might be old-fashioned, but I like be able to tell at a glance which element nests in which.
Or, alternately, is there an option to turn that feature (markup formatting) on and off in VS2005?
Regards
| 0 | [
2,
1276,
3620,
21,
254,
7821,
38,
8612,
106,
26,
4611,
2835,
13,
118,
28,
306,
9,
2328,
943,
576,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
53,
273,
20,
448,
55,
19,
51,
1074,
149,
3458,
1120,
22,
18,
895,
12606,
872,
20,
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... |
Stateful Web Services
===
I'm building a java/spring application, and i may need to incorporate a stateful web service call.
Any opinions if i should totally run away from a statefull services call, or it can be done and is enterprise ready? | 0 | [
2,
146,
1566,
2741,
687,
800,
3726,
3726,
31,
22,
79,
353,
21,
8247,
118,
15827,
3010,
15,
17,
31,
123,
376,
20,
14710,
21,
146,
1566,
2741,
365,
645,
9,
186,
11900,
100,
31,
378,
5139,
485,
229,
37,
21,
146,
13727,
687,
645,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Using array parameters in the Eclipse HibernateTools plugin
===
How can I bind an array parameter in the HQL editor of the HibernateTools plugin?
The query parameter type list does not include arrays or collections. | 0 | [
2,
568,
7718,
12905,
19,
14,
11652,
4148,
2102,
8820,
20799,
18,
10922,
108,
800,
3726,
3726,
184,
92,
31,
10193,
40,
7718,
18906,
19,
14,
746,
22402,
1835,
16,
14,
4148,
2102,
8820,
20799,
18,
10922,
108,
60,
14,
25597,
18906,
1001... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
JQuery create select list options from JSON, not happening as advertised?
===
How come this doesn't work (operating on an empty select list `<select id="requestTypes"></select>`
$(function() {
$.getJSON("/RequestX/GetRequestTypes/", showRequestTypes);
}
);
function showRequestTypes(data, textStatus) {
$.each(data,
function() {
var option = new Option(this.RequestTypeName, this.RequestTypeID);
// Use Jquery to get select list element
var dropdownList = $("#requestTypes");
if ($.browser.msie) {
dropdownList.add(option);
}
else {
dropdownList.add(option, null);
}
}
);
}
But this does:
- Replace:
var dropdownList = $("#requestTypes");
- With plain old javascript:
var dropdownList = document.getElementById("requestTypes");
Any insights greatly appreciated!! | 0 | [
2,
487,
8190,
93,
1600,
5407,
968,
6368,
37,
487,
528,
15,
52,
4942,
28,
19465,
60,
800,
3726,
3726,
184,
340,
48,
1437,
22,
38,
170,
13,
5,
9477,
1880,
27,
40,
2424,
5407,
968,
13,
1,
18,
16964,
4924,
3726,
7,
99,
10351,
4474... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.