unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Looking for visual CSS generator
===
Looking for some sort of tool that would allow me to layout my page visually using some sort of GUI, then generate the necessary CSS that would allow a web page to look like that.
I am new to this sort of thing, so please tell me if this is even possible! | 0 | [
2,
699,
26,
3458,
272,
18,
18,
15286,
800,
3726,
3726,
699,
26,
109,
2058,
16,
5607,
30,
83,
1655,
55,
20,
9106,
51,
2478,
20747,
568,
109,
2058,
16,
9457,
15,
94,
7920,
14,
2378,
272,
18,
18,
30,
83,
1655,
21,
2741,
2478,
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... |
Good tool to generate dependency diagram?
===
Any good tool to generate dependency diagram?
Input: any simple format to describe dependency relation of several items. E.g. A depends on B, C; C depends on D, E ...
Output: nicely organized dependency diagram. | 0 | [
2,
254,
5607,
20,
7920,
26835,
14161,
60,
800,
3726,
3726,
186,
254,
5607,
20,
7920,
26835,
14161,
60,
6367,
45,
186,
1935,
2595,
20,
4996,
26835,
5827,
16,
238,
3755,
9,
13,
62,
9,
263,
9,
21,
9597,
27,
334,
15,
272,
73,
272,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to do picture overlay in HTML (something like marker on top of google map)?
===
Anyone know how to do picture overlay or appear on top of each other in HTML? The effect will be something like the marker/icon appear on Google Map where the user can specify the coordinate of the second picture appear on the first picture.
Thanks. | 0 | [
2,
184,
20,
107,
2151,
84,
4414,
19,
13,
15895,
13,
5,
9099,
101,
13289,
27,
371,
16,
8144,
2942,
6,
60,
800,
3726,
3726,
1276,
143,
184,
20,
107,
2151,
84,
4414,
54,
1893,
27,
371,
16,
206,
89,
19,
13,
15895,
60,
14,
1590,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tabs and spaces conversion
===
I would like to automatically convert between tabs and spaces for indentation when I commit/update code to/from our repository. I have found the AnyEdit plugin for eclipse, which can convert directories of files. Not bad for a start, but does anybody have more expierience on how to handle this? Or maybe know of an Ant script or something else? | 0 | [
2,
6523,
18,
17,
7644,
6263,
800,
3726,
3726,
31,
83,
101,
20,
7499,
8406,
128,
6523,
18,
17,
7644,
26,
19,
817,
8593,
76,
31,
9686,
118,
576,
8209,
1797,
20,
118,
2665,
318,
24869,
9,
31,
57,
216,
14,
186,
69,
242,
10922,
108... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Hiding a queryString in an ASP.NET Webapplication
===
I have two webapplication, one is a simple authenticationsite which can authenticate the logged in user and **redirects** him then to another site.
Therefore I have to pass ther userId (GUID) to the second application. Currently this is done via the URL but i would like to hide this id.
Has anybody an idea how to do this properly?
[EDIT]: I can't use the Session because of the ApplicationBoundaries (2 different Servers) | 0 | [
2,
5314,
21,
25597,
11130,
19,
40,
28,
306,
9,
2328,
2741,
2552,
20669,
800,
3726,
3726,
31,
57,
81,
2741,
2552,
20669,
15,
53,
25,
21,
1935,
27963,
9097,
56,
92,
14351,
1373,
14,
13,
19287,
19,
4155,
17,
13,
1409,
99,
14706,
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... |
open source syntax highter tool
===
I'm looking for an open source, cross platform 9windows & linux at least) command line tool to take some code (C++, but multiple languages would be sweet), and spit out valid a XHTML representation of that code, with syntax highlighting included.
Ideally the XHTML should just wrap the code with `<span>` and `<div>` tags with different classes so I can supply the CSS code and change the colouration, but that's an optional extra.
Does anyone know of such an application? | 0 | [
2,
368,
1267,
22649,
183,
815,
5607,
800,
3726,
3726,
31,
22,
79,
699,
26,
40,
368,
1267,
15,
919,
2452,
561,
27508,
18,
279,
13024,
35,
639,
6,
1202,
293,
5607,
20,
247,
109,
1797,
13,
5,
150,
20512,
15,
47,
1886,
2556,
83,
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... |
Force default value when adding column to table - MSSQL
===
In MSSQL 2000/2005,
is it possible to force the default value to be written to already existing rows when adding a new column to a table **without** using NOT NULL on the new column? | 0 | [
2,
558,
12838,
1923,
76,
4721,
4698,
20,
859,
13,
8,
4235,
18,
22402,
800,
3726,
3726,
19,
4235,
18,
22402,
824,
118,
2835,
15,
25,
32,
938,
20,
558,
14,
12838,
1923,
20,
44,
642,
20,
614,
3149,
11295,
76,
4721,
21,
78,
4698,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... |
Hidden Features of Visual Studio (2005-2008)?
===
VS is such a massively big product that even after years of working with it I sometimes stumble upon a new/better way to do things or things I didn't even know possible.
For instance-
- Crtl-R,Ctrl-W - show white spaces. essential for editing python build scripts.
- Under `"HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Text Editor"`
Create a String called "Guides" with the value "RBG(255,0,0), 80" to have a red line at column 80 in the text editor.
What other hidden feature have you stumble upon? | 0 | [
2,
3689,
967,
16,
3458,
1120,
13,
5,
2835,
8,
2753,
6,
60,
800,
3726,
3726,
4611,
25,
145,
21,
3787,
102,
580,
2374,
30,
166,
75,
122,
16,
638,
29,
32,
31,
1030,
19436,
685,
21,
78,
118,
16252,
161,
20,
107,
564,
54,
564,
31... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I use multiple sitemap file without multiple root nodes
===
I'm using a ASP.NET menu control. I'd like the menu to look like this, where link 1 through 10 are in one sitemap file and link 11 through 20 in another.
root
--link 1
(...)
--link 10
--link 11
(...)
--link 20
However, sitemap file MUST have a root <siteMapNode> which I cannot seem to suppress.
Any thoughts?
-Edoode | 0 | [
2,
184,
92,
31,
275,
1886,
689,
15022,
3893,
366,
1886,
5900,
16272,
800,
3726,
3726,
31,
22,
79,
568,
21,
28,
306,
9,
2328,
11379,
569,
9,
31,
22,
43,
101,
14,
11379,
20,
361,
101,
48,
15,
113,
3508,
137,
120,
332,
50,
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... |
gdb: how to set breakpoints on future shared libraries with a --command flag
===
I'm trying to automate a gdb session using the --command flag. I'm trying to set a breakpoint on a function in a shared library (the Unix equivalent of a DLL) . My cmds.gdb looks like this:
set args /home/shlomi/conf/bugs/kde/font-break.txt
b IA__FcFontMatch
r
However, I'm getting the following:
<pre>
shlomi:~/progs/bugs-external/kde/font-breaking$ gdb --command=cmds.gdb...
GNU gdb 6.8-2mdv2009.0 (Mandriva Linux release 2009.0)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-mandriva-linux-gnu"...
(no debugging symbols found)
Function "IA__FcFontMatch" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
</pre>
So it doesn't set the breakpoint after all. How can I make it default to answer "y" to set breakpoints on pending future shared library load?
I recall that I was able to do something, but cannot recall what.
| 0 | [
2,
489,
9007,
45,
184,
20,
309,
1442,
3132,
18,
27,
1022,
2592,
8649,
29,
21,
13,
8,
8,
16239,
3157,
800,
3726,
3726,
31,
22,
79,
749,
20,
3108,
5281,
21,
489,
9007,
3723,
568,
14,
13,
8,
8,
16239,
3157,
9,
31,
22,
79,
749,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 the DataSourceSelectArguments sealed?
===
Does anybody know the logic behind making DataSourceSelectArguments sealed?
I've implemented a custom DataSource (and related classes) for some custom business objects and custom WebControls. When thinking in filters (like in a grid) I discovered that the DataSourceSelectArguments is sealed. Surely, I'm missing something. (Maybe the logic is related to the fact that is nonsense to ask the DB again, just for filtering?, just a guess.) | 0 | [
2,
483,
25,
14,
1054,
12097,
18,
16964,
512,
3073,
6601,
10854,
60,
800,
3726,
3726,
630,
11181,
143,
14,
7085,
439,
544,
1054,
12097,
18,
16964,
512,
3073,
6601,
10854,
60,
31,
22,
195,
6807,
21,
5816,
1054,
12097,
13,
5,
290,
15... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Alternatives to Live/GamerServices for XNA projects?
===
Using the GamerServices component for XNA to access Xbox/GfW Live for networking purposes requires developers and players each to have a US$100/year subscription to Microsoft's Creators Club. That's not much of an issue for Xbox360 XNA projects as you need the subscription anyway to be able to put your game on the 360.
But for PC games using XNA, requiring developers and players to put that much up each year is pretty crazy just for the access to a player's gamer card. Are there any solutions already created that provide similar benefits to GamerServices, or are the only options to pay the Microsoft tax or do your own simple networking code? | 0 | [
2,
2676,
18,
20,
515,
118,
5128,
139,
11449,
18,
26,
993,
325,
2314,
60,
800,
3726,
3726,
568,
14,
250,
139,
11449,
18,
5912,
26,
993,
325,
20,
1381,
13800,
118,
263,
18651,
515,
26,
16230,
4612,
4781,
10168,
17,
1007,
206,
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... |
SSO in webpages
===
I would like to know what's the best technique to do single sign-on in web sites. It means that if you enter in more than one website, you will be authenticated in a "transparent" way. I'm using php + curl to set the cookies for the different sites, but i really would like to know if does exist a standard way to do it. | 0 | [
2,
13,
18,
656,
19,
2741,
6486,
18,
800,
3726,
3726,
31,
83,
101,
20,
143,
98,
22,
18,
14,
246,
4873,
20,
107,
345,
1676,
8,
218,
19,
2741,
3259,
9,
32,
1108,
30,
100,
42,
2830,
19,
91,
119,
53,
2271,
15,
42,
129,
44,
1435... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are good open source projects in .NET that I can work on
===
I am looking for some useful open source projects that I wish to participate. Please provide the websites and the projects. | 0 | [
2,
98,
50,
254,
368,
1267,
2314,
19,
13,
9,
2328,
30,
31,
92,
170,
27,
800,
3726,
3726,
31,
589,
699,
26,
109,
4811,
368,
1267,
2314,
30,
31,
2536,
20,
3705,
9,
2247,
1181,
14,
13931,
17,
14,
2314,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to pause / resume any external process under Windows ?
===
i am looking for different ways to pause and resume programmatically a particular process via his process ID under Windows XP.
http://www.codeproject.com/KB/threads/pausep.aspx does it with SuspendThread / ResumeThread but warns about multithreaded programs and deadlocks problem.
PsSuspend looks ok : http://technet.microsoft.com/en-us/sysinternals/bb897540.aspx
I wonder if it does anything special about deadlocks or use another method ?
Prefered languages : C++ / Python
| 0 | [
2,
184,
20,
6911,
13,
118,
13113,
186,
4886,
953,
131,
1936,
13,
60,
800,
3726,
3726,
31,
589,
699,
26,
421,
2847,
20,
6911,
17,
13113,
625,
6732,
1326,
21,
1498,
953,
1197,
33,
953,
4924,
131,
1936,
23045,
9,
7775,
6903,
6483,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 you experience with a matrix organization?
===
My site will be moving from a typical project based management system to a matrix organization. I will now be reporting to the project lead, who has been my boss, and a cross-product lead, who I don't know very well and doesn't know me. The troubling part is that the new boss will be doing my formal performance reviews.
Have you had any experience with this management structure? How can I make sure my performance is evaluated on how well I actually do my job for the customer rather than what the cross-product manager thinks I should be doing? | 0 | [
2,
98,
25,
42,
1496,
29,
21,
8187,
1165,
60,
800,
3726,
3726,
51,
689,
129,
44,
1219,
37,
21,
3874,
669,
432,
1097,
329,
20,
21,
8187,
1165,
9,
31,
129,
130,
44,
6670,
20,
14,
669,
672,
15,
72,
63,
74,
51,
4054,
15,
17,
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 do you bind in xaml to a dynamic xpath?
===
I have a list box that displays items based on an xpath.
This xpath changes depending on user selection elsewhere in the gui.
At the moment i use some c# code behind to change the binding of the control to a new xpath expression.
I'd like instead to bind in xaml to an xpath and then change the value of that xpath as required.
How would i do that? | 0 | [
2,
184,
107,
42,
10193,
19,
13,
6791,
8184,
20,
21,
7782,
993,
8353,
60,
800,
3726,
3726,
31,
57,
21,
968,
1649,
30,
9412,
3755,
432,
27,
40,
993,
8353,
9,
48,
993,
8353,
1693,
4758,
27,
4155,
3155,
6040,
19,
14,
9457,
9,
35,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 SQL command to return the field names of a table?
===
Say I have a table called myTable. What is the SQL command to return all of the field names of this table? If the answer is database specific then I need SQL Server right now but would be interested in the mySQL answer also. | 0 | [
2,
98,
25,
14,
4444,
255,
1202,
20,
788,
14,
575,
1817,
16,
21,
859,
60,
800,
3726,
3726,
395,
31,
57,
21,
859,
227,
51,
5924,
9,
98,
25,
14,
4444,
255,
1202,
20,
788,
65,
16,
14,
575,
1817,
16,
48,
859,
60,
100,
14,
1623,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are the quickest and easiest ways to ensure existing web pages display well on mobile platforms?
===
The pages in question contain a lot of javascript and CSS. How well are these supported by mobile platforms generally?
Is there a browser emulator (or equivalent tool) to assist testing? | 0 | [
2,
98,
50,
14,
2231,
1430,
17,
27237,
2847,
20,
4062,
3149,
2741,
4434,
3042,
134,
27,
3241,
6843,
60,
800,
3726,
3726,
14,
4434,
19,
1301,
3717,
21,
865,
16,
8247,
8741,
17,
272,
18,
18,
9,
184,
134,
50,
158,
1827,
34,
3241,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I set specific environment variables when debugging in Visual Studio?
===
On a class library project, I set the "Start Action" on the Debug tab of the project properties to "Start external program" (NUnit in this case). I want to set an environment variable in the environment this program is started in. How do I do that? (Is it even possible?) | 0 | [
2,
184,
107,
31,
309,
1903,
2307,
12157,
76,
121,
16254,
2762,
19,
3458,
1120,
60,
800,
3726,
3726,
27,
21,
718,
1248,
669,
15,
31,
309,
14,
13,
7,
13680,
1028,
7,
27,
14,
121,
16254,
6523,
16,
14,
669,
3704,
20,
13,
7,
13680,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 perform a Google search on different Google datacentres?
===
I would like to get up-to-date information on Google's index of a website, and it seems
that results vary depending on which datacentre happens to process your search query. | 0 | [
2,
184,
92,
31,
2985,
21,
8144,
2122,
27,
421,
8144,
1054,
20830,
18,
60,
800,
3726,
3726,
31,
83,
101,
20,
164,
71,
8,
262,
8,
8209,
676,
27,
8144,
22,
18,
4348,
16,
21,
2271,
15,
17,
32,
2206,
30,
1736,
7392,
4758,
27,
56,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... |
Which free and open source frameworks would you recommend for replacing which aspect of ATG
===
ATG (http://www.atg.com) is a frameowrk, a platform and a solution for content presentation and management, personalisation, e-commerce and customer relationship management.
Which free and open source frameworks or products would you recommend to replace the basic functionality it provides?
In the spirit of Stack Overflow, can you answer with one item in each answer and use the voting rather than duplicating someone else's answer.
I have started with some answers | 0 | [
2,
56,
551,
17,
368,
1267,
6596,
18,
83,
42,
12360,
26,
5496,
56,
7289,
16,
35,
263,
800,
3726,
3726,
35,
263,
13,
5,
21127,
6903,
6483,
9,
721,
263,
9,
960,
6,
25,
21,
3523,
3581,
7005,
15,
21,
2452,
17,
21,
4295,
26,
2331,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best automation or scripting tool to automate repetitive tasks with applications?
===
I realise you can script Microsoft Office apps, but I'm looking for something more general that I can apply to other apps, such as Adobe Acrobat, web browsers and other apps with no scripting ability.
I've used [AutoIt][1] but it's a bit clunky, especially when trying to debug why a script fails or stalls. Also, getting the timing of actions, such as clicking a button, or selecting a menu item correctly can be a pain.
Are there build tools that could be used for this purpose?
[1]: http://www.autoitscript.com/autoit3/ | 0 | [
2,
98,
22,
18,
14,
246,
23217,
54,
3884,
68,
5607,
20,
3108,
5281,
24935,
8674,
29,
3767,
60,
800,
3726,
3726,
31,
16794,
42,
92,
3884,
7099,
488,
4865,
18,
15,
47,
31,
22,
79,
699,
26,
301,
91,
297,
30,
31,
92,
5645,
20,
89... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 resources for converting C/C++ dll headers to Delphi?
===
A rather comprehensive site explaining the difficulties and solutions involved in using a dll written in c/c++ and the conversion of the .h header file to delphi/pascal was posted to a mailing list I was on recently, so I thought I'd share it, and invite others to post other useful resources for this, whether they be links, conversion tools, or book/paper titles.
One resource per answer please, so we'll end up with the most popular/best resources bubbling to the top. | 0 | [
2,
246,
2566,
26,
19583,
272,
118,
150,
20512,
13,
43,
211,
157,
445,
20,
23030,
60,
800,
3726,
3726,
21,
864,
7041,
689,
10225,
14,
8075,
17,
6776,
1013,
19,
568,
21,
13,
43,
211,
642,
19,
272,
118,
150,
20512,
17,
14,
6263,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can you turn off Visual Studio 2008 Query formatting?
===
Is it possible to turn off the query re-formatting that happens when you edit a query for a database in Visual Studio? (i.e. r-click a data source and select New Query)
This is happening when we are writing sql queries against a sql compact 3.5 database.
Its rather irritating when your carefully indented and formatted query is munged into visual studio's formatting (which is illegible!). I cannot find any setting in the options dialog. | 0 | [
2,
92,
42,
805,
168,
3458,
1120,
570,
25597,
2595,
1203,
60,
800,
3726,
3726,
25,
32,
938,
20,
805,
168,
14,
25597,
302,
8,
23588,
1203,
30,
5531,
76,
42,
9392,
21,
25597,
26,
21,
6018,
19,
3458,
1120,
60,
13,
5,
49,
9,
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... |
Flash should open window in new tab, but instead it opens a new pop up on mac
===
using target="_blank" in the navigateToUrl
with firefox on windows it opens in new tab, with firefox on mac it opens a 'popup',
anyway how to make the window popup in a new tab on ff on mac as well? | 0 | [
2,
4433,
378,
368,
1463,
19,
78,
6523,
15,
47,
700,
32,
8965,
21,
78,
1675,
71,
27,
1572,
800,
3726,
3726,
568,
2935,
3726,
7,
1,
10754,
5719,
7,
19,
14,
20782,
11648,
255,
29,
535,
18219,
27,
1936,
32,
8965,
19,
78,
6523,
15,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Python on Windows - how to wait for multiple child processes?
===
How to wait for multiple child processes in Python on Windows, without active wait (polling)? Something like this _almost_ works for me:
proc1 = subprocess.Popen(['python','mytest.py'])
proc2 = subprocess.Popen(['python','mytest.py'])
proc1.wait()
print "1 finished"
proc2.wait()
print "2 finished"
The problem is that when `proc2` finishes before `proc1`, the parent process will still wait for `proc1`. On Unix one would use `waitpid(0)` in a loop to get the child processes' return codes as they finish - how to achieve something like this in Python on Windows? | 0 | [
2,
20059,
27,
1936,
13,
8,
184,
20,
1760,
26,
1886,
850,
5102,
60,
800,
3726,
3726,
184,
20,
1760,
26,
1886,
850,
5102,
19,
20059,
27,
1936,
15,
366,
1348,
1760,
13,
5,
7332,
802,
6,
60,
301,
101,
48,
13,
1,
18135,
1,
693,
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... |
Licensing Websites - How does it work?
===
I've been looking at several sites that offer a form of "linkware" license where you get the website for free but need to keep all links to the developers site in place. Purchasing a license key and adding it to the site (either in a database or some form of config file) removes these links.
I was wondering if anyone has had any experience of running a system like this, specifically how do you generate and check the license keys? I'm thinking of applying a similar model to something I'm working on so any examples in "Classic" ASP would be most appreciated.
Thanks in advance
| 0 | [
2,
15038,
13931,
13,
8,
184,
630,
32,
170,
60,
800,
3726,
3726,
31,
22,
195,
74,
699,
35,
238,
3259,
30,
1994,
21,
505,
16,
13,
7,
6258,
5011,
7,
3962,
113,
42,
164,
14,
2271,
26,
551,
47,
376,
20,
643,
65,
6271,
20,
14,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
"Mysql server has gone away" with Rails
===
After our rails app has run for a while, it starts throwing 500s with "Mysql server has gone away". Often this happens overnight. It's started doing this recently, with no obvious change in our server configuration.
Mysql::Error: MySQL server has gone away: SELECT * FROM `widgets`
Restarting the mongrels (not the mysql server) fixes it.
Any hints? | 0 | [
2,
13,
7,
915,
18,
22402,
8128,
63,
1042,
229,
7,
29,
2240,
18,
800,
3726,
3726,
75,
318,
2240,
18,
4865,
63,
485,
26,
21,
133,
15,
32,
3244,
6033,
3033,
18,
29,
13,
7,
915,
18,
22402,
8128,
63,
1042,
229,
7,
9,
478,
48,
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... |
Why do you not declare several variables of the same type on the same line?
===
Why is it bad practice to declare variables on one line?
e.g.
private String var1, var2, var3
instead of:
private String var1;
private String var2;
private String var3; | 0 | [
2,
483,
107,
42,
52,
10123,
238,
12157,
16,
14,
205,
1001,
27,
14,
205,
293,
60,
800,
3726,
3726,
483,
25,
32,
896,
1345,
20,
10123,
12157,
27,
53,
293,
60,
13,
62,
9,
263,
9,
932,
3724,
4033,
165,
15,
4033,
135,
15,
4033,
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... |
Calculate Cyclomatic Complexity for Javascript
===
Are there any tools available for calculating Cyclomatic Complexity in Javascript?
I've found it a very helpful metric in the past while working on server side code, and would like to be able to use it for the client side Javascript I write. | 0 | [
2,
18469,
12833,
6732,
12745,
26,
8247,
8741,
800,
3726,
3726,
50,
80,
186,
4672,
904,
26,
22937,
12833,
6732,
12745,
19,
8247,
8741,
60,
31,
22,
195,
216,
32,
21,
253,
15600,
11544,
19,
14,
640,
133,
638,
27,
8128,
270,
1797,
15,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... |
Calculate Lines of Code per Method for Javascript
===
Are there any tools available for calculating the number of lines of code per method?
I want to calculate this as part of my continuous integration system, and use the results to monitor code quality. | 0 | [
2,
18469,
1560,
16,
1797,
416,
2109,
26,
8247,
8741,
800,
3726,
3726,
50,
80,
186,
4672,
904,
26,
22937,
14,
234,
16,
1560,
16,
1797,
416,
2109,
60,
31,
259,
20,
18469,
48,
28,
141,
16,
51,
6357,
8078,
329,
15,
17,
275,
14,
17... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Menu Control: How to Make Whole Item Clickable, not Just Text
===
I have a problem that confuses my users, being that although an item is highlighted (by the hover style) when the user mouses over it, they have to mouse over the actual item text, sometimes quite small compared to the item. Is there a way to make the whole item clickable? | 0 | [
2,
11379,
569,
45,
184,
20,
233,
979,
9101,
10840,
579,
15,
52,
114,
1854,
800,
3726,
3726,
31,
57,
21,
1448,
30,
26465,
18,
51,
3878,
15,
142,
30,
419,
40,
9101,
25,
12528,
13,
5,
779,
14,
21350,
1034,
6,
76,
14,
4155,
7567,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 to ASP.NET - VB or C#?
===
We have a large ASP classic code base but I'm looking to do future development in ASP.NET (and potentially in the future port across what we have). The natural choice of language seems to be VB (existing code is VBScript) but am I being too hasty? Does the choice of language, in the long run, even make a difference? | 0 | [
2,
1219,
20,
28,
306,
9,
2328,
13,
8,
13,
20468,
54,
272,
5910,
60,
800,
3726,
3726,
95,
57,
21,
370,
28,
306,
2732,
1797,
1000,
47,
31,
22,
79,
699,
20,
107,
1022,
522,
19,
28,
306,
9,
2328,
13,
5,
290,
9465,
19,
14,
1022... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 much resources does consume sleeping thread?
===
I'm wondering, how expensive it is to have many threads in waiting state in java 1.6 x64.
To be more specific, I'm writing application which runs across many computers and sends/receives data from one to another. I feel more comfortable to have separate thread for each connected machine and task, like 1) sending data, 2) receiving data, 3) reestablishing connection when it is dropped. So, given that there are N nodes in cluster, each machine is going to have 3 threads for each of N-1 neighbours. Typically there will be 12 machines, which comes to 33 communication threads.
Most of those threads will be sleeping most of the time, so for optimization purposes I could reduce number of threads and give more job to each of them. Like, for example. reestablishing connection is responsibility of receiving thread. Or sending to all connected machines is done by single thread.
So is there any significant perfomance impact on having many sleeping threads? | 0 | [
2,
184,
212,
2566,
630,
16447,
4777,
9322,
60,
800,
3726,
3726,
31,
22,
79,
5712,
15,
184,
5381,
32,
25,
20,
57,
151,
20396,
19,
1672,
146,
19,
8247,
137,
9,
379,
993,
3470,
9,
20,
44,
91,
1903,
15,
31,
22,
79,
1174,
3010,
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... |
Determine when application cache item will timeout?
===
In ASP.NET, when storing a value in the application cache with absolute expiry is there a method to retrieve the date/time when the item will expire? | 0 | [
2,
3746,
76,
3010,
16522,
9101,
129,
85,
1320,
60,
800,
3726,
3726,
19,
28,
306,
9,
2328,
15,
76,
25615,
21,
1923,
19,
14,
3010,
16522,
29,
7070,
1396,
2159,
622,
25,
80,
21,
2109,
20,
11917,
14,
1231,
118,
891,
76,
14,
9101,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Why is if not someobj: better than if someobj == None: in Python?
===
I seen several examples of code like this:
if not someobj:
#do something
But I'm wondering why not do:
if someobj == None:
#do something
Is there any difference? Does one have an advantage over the other? | 0 | [
2,
483,
25,
100,
52,
109,
111,
11741,
45,
574,
119,
100,
109,
111,
11741,
800,
3726,
2369,
45,
19,
20059,
60,
800,
3726,
3726,
31,
541,
238,
3770,
16,
1797,
101,
48,
45,
100,
52,
109,
111,
11741,
45,
6926,
537,
301,
47,
31,
22... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I access the classes loaded by Java Web Start when dynamically compiling code?
===
I am dynamically compiling code in my client application. When I start the application with Java Web Start I get an exception. The exception only occurs when it is run through Java Web Start.
//The exception
evolver.core.model.change.execution.ExecutionException: Compilation failed!
DynamicComparator.java:2: package evolver.core.model.i does not exist
import evolver.core.model.i.IDefaultObject;
^
DynamicComparator.java:9: cannot find symbol
symbol : class PropertyBag
location: class DynamicComparator
PropertyBag b2 = new PropertyBag(dob2);
^
The PropertyBag above should have been provided by the JNLPClassloader as
it is part of one of the files that are downloaded by JWS
The code that causes the problem looks like this.
public static int compile(String javaFileName) {
ByteArrayOutputStream os = new ByteArrayOutputStream();
PrintWriter w = new PrintWriter(os);
int res = com.sun.tools.javac.Main.compile(new String[]{"-d", "./", javaFileName}, w);
if (res != 0)
throw new ExecutionException("Compilation failed!" + "\n\n" + os.toString());
return res;
}
Any help will be very appreciated!
| 0 | [
2,
184,
92,
31,
1381,
14,
2684,
8572,
34,
8247,
2741,
799,
76,
7782,
1326,
24378,
1797,
60,
800,
3726,
3726,
31,
589,
7782,
1326,
24378,
1797,
19,
51,
6819,
3010,
9,
76,
31,
799,
14,
3010,
29,
8247,
2741,
799,
31,
164,
40,
5391,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Organic growth with Lindenmayer Systems
===
I'm looking for a good way to represent organic growth - especially trees and flowers - using code.
I've found Lindenmayer Systems as a reasonable way to portray this, but need a good place to start programming this.
Any good suggestions?
| 0 | [
2,
6976,
2232,
29,
20692,
3904,
106,
1242,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
254,
161,
20,
3501,
6976,
2232,
13,
8,
1118,
1913,
17,
3353,
13,
8,
568,
1797,
9,
31,
22,
195,
216,
20692,
3904,
106,
1242,
28,
21,
9954,
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... |
Communication Gap: User vs Analyst-Designer
===
Normal practice is to use case studies, construct work- and data-flows, etc. But this does not necessarily create a shared vocabulary between the user/sponsor and the analyst-designer: one or the other, both normally, will have to acquire terms and views of the "internals" of the others area of expertise, and this usually leads to misunderstandings and meetings-to-clarify (enter RAD-techniques like Evolutionary Prototyping), etc.
What works for you, when you are faced with a user who wants a software solution?
| 0 | [
2,
3291,
4127,
45,
4155,
4611,
13943,
8,
19862,
106,
800,
3726,
3726,
1826,
1345,
25,
20,
275,
610,
1011,
15,
6960,
170,
8,
17,
1054,
8,
9990,
18,
15,
2722,
9,
47,
48,
630,
52,
9324,
1600,
21,
2592,
18630,
128,
14,
4155,
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... |
C# Training videos
===
Hi were can I find training videos for C# ? | 4 | [
2,
272,
5910,
838,
6610,
800,
3726,
3726,
4148,
46,
92,
31,
477,
838,
6610,
26,
272,
5910,
13,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
javascript XSLTProcessor occasionally not working
===
The following javascript supposes to read the popular tags from an XML file and applies the XSL Stylesheet and output to the browser as HTML.
<pre>
function ShowPopularTags()
{
xml=XMLDocLoad("http://localhost/xml/tags/popular.xml?s=94987898");
xsl=XMLDocLoad("http://localhost/xml/xsl/popular-tags.xsl");
if (window.ActiveXObject){
// code for IE
ex=xml.transformNode(xsl);
ex = ex.replace(/\\/g, "");
document.getElementById("popularTags").innerHTML=ex;
}
else if (document.implementation && document.implementation.createDocument){
// code for Mozilla, Firefox, Opera, etc.
xsltProcessor=new XSLTProcessor();
xsltProcessor.importStylesheet(xsl);
resultDocument = xsltProcessor.transformToFragment(xml,document);
document.getElementById("popularTags").appendChild(resultDocument);
var ihtml = document.getElementById("popularTags").innerHTML;
ihtml = ihtml.replace(/\\/g, "");
document.getElementById("popularTags").innerHTML = ihtml;
}
}
ShowPopularTags();
</pre>
The issue with this script is sometime it manages to output the resulting HTML code, sometime it doesn't. Anyone knows where is going wrong? | 0 | [
2,
8247,
8741,
993,
18,
255,
38,
16835,
248,
4533,
52,
638,
800,
3726,
3726,
14,
249,
8247,
8741,
5787,
18,
20,
1302,
14,
844,
3383,
18,
37,
40,
23504,
3893,
17,
13169,
14,
993,
18,
255,
1034,
17627,
17,
5196,
20,
14,
16495,
28,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SQL/MySQL Training videos
===
Hi were can I find training videos for MySQL ? | 0 | [
2,
4444,
255,
118,
915,
18,
22402,
838,
6610,
800,
3726,
3726,
4148,
46,
92,
31,
477,
838,
6610,
26,
51,
18,
22402,
13,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Which Java API would you recommend for dealing with Bluetooth?
===
Can you recommend a Java API to use with a desktop application (i.e. J2SE not J2ME) that will, perhaps, work with the underlying operating system's Bluetooth stack to give access to Bluetooth functionality and devices? | 0 | [
2,
56,
8247,
21,
2159,
83,
42,
12360,
26,
5746,
29,
705,
15808,
60,
800,
3726,
3726,
92,
42,
12360,
21,
8247,
21,
2159,
20,
275,
29,
21,
17404,
3010,
13,
5,
49,
9,
62,
9,
487,
135,
870,
52,
487,
135,
790,
6,
30,
129,
15,
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 locks explained
===
Below is a list of locks that SQL Server 2000 is meant to support. I am a bit confused as to what the "intent" locks actually mean. I've looked around on the Web and the answers seem to be a bit cryptic.
Further to getting an answer to my specific question, I am hoping to use this question as a Wiki for what each lock means and under what circumstances that type of lock will be acquired.
* Shared (S)
* Update (U)
* Exclusive (X)
* Intent
* intent shared (IS)
* intent exclusive (IX)
* shared with intent exclusive (SIX)
* intent update (IU)
* update intent exclusive (UIX)
* shared intent update (SIU)
* Schema
* schema modification (Sch-M)
* schema stability (Sch-S)
* Bulk Update (BU)
* Key-Range
* Shared Key-Range and Shared Resource lock (RangeS_S)
* Shared Key-Range and Update Resource lock (RangeS_U)
* Insert Key-Range and Null Resource lock (RangeI_N)
* Exclusive Key-Range and Exclusive Resource lock (RangeX_X)
* Conversion Locks (RangeI_S, RangeI_U, RangeI_X, RangeX_S, RangeX_U)
| 0 | [
2,
4444,
255,
8128,
12941,
2897,
800,
3726,
3726,
1021,
25,
21,
968,
16,
12941,
30,
4444,
255,
8128,
824,
25,
1380,
20,
555,
9,
31,
589,
21,
1142,
4230,
28,
20,
98,
14,
13,
7,
6391,
2291,
7,
12941,
1121,
884,
9,
31,
22,
195,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to unit-test inheritance?
===
When you use composition, then you can mock the other objects
from which your class-under-test depends, but when you use
inheritance, you can't mock the base class. (Or can you?)
I generally try to [prefer composition over inheritance](http://stackoverflow.com/questions/49002/prefer-composition-over-inheritance),
but sometimes inheritance really seems like the best tool
for the job - well, at least until it comes to unit-testing.
So, how do you test inheritance? Or do you just trash it as
untestable and use composition instead?
**Note:** I mostly use PHP and PHPUnit, so help on that side
is most appreciated. But it would also be interesting to know
if there are solutions to this problem in other languages. | 0 | [
2,
184,
20,
1237,
8,
10543,
13852,
60,
800,
3726,
3726,
76,
42,
275,
4046,
15,
94,
42,
92,
10506,
14,
89,
3916,
37,
56,
154,
718,
8,
4579,
8,
10543,
9597,
15,
47,
76,
42,
275,
13852,
15,
42,
92,
22,
38,
10506,
14,
1000,
718,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Controlled set of technical interview questions
===
When answering [this question][1] about interview questions I answered with the following:
As a suggeston, make up a developer interview document that contains your set of questions. For each question allow:
* a section to write their responses,
* a section containing crib notes to remind you of the answer, or points that should be covered in their answer, and
* a section to score their answer.
By building up such a document you will:
* have a permanent record of the questions you want to ask which will be refined over time.
* be comparing different interviewees(?) on a like for like basis,
* have a record of the interview should the interviewee question any decision on your part.
This suggestion has been voted down and I don't understand that as I can only see advantages to having this technique.
Any ideas?
[1]: http://stackoverflow.com/questions/95774/interview-questions-what-should-be-asked | 0 | [
2,
3959,
309,
16,
2447,
2421,
2346,
800,
3726,
3726,
76,
11777,
636,
1565,
1301,
500,
2558,
165,
500,
88,
2421,
2346,
31,
3094,
29,
14,
249,
45,
28,
21,
5601,
218,
15,
233,
71,
21,
10058,
2421,
4492,
30,
1588,
154,
309,
16,
2346... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 undo "svn switch" on a subdirectory?
===
Not for the first time, I've accidentally done "svn switch" from somewhere below the root of my project. This switches that subdirectory only, but how do I undo this?
If I try switching the subdirectory back to the original branch I get:
"svn: Directory 'subdir\_svn' containing working copy admin area is missing" | 0 | [
2,
184,
107,
31,
367,
537,
13,
7,
18,
16578,
5521,
7,
27,
21,
972,
10197,
93,
60,
800,
3726,
3726,
52,
26,
14,
64,
85,
15,
31,
22,
195,
9746,
677,
13,
7,
18,
16578,
5521,
7,
37,
3493,
1021,
14,
5900,
16,
51,
669,
9,
48,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JSF how do I retrieve the selected rows of a woodstock table
===
I have a JSF woodstock table with checkboxes. When a row is selected I want to do some processing with those items. I managed to get a selection of RowKey objects but can't find out how to get the original objects I put in back. The table is populated by an ObjectListDataProvider. | 0 | [
2,
487,
18,
410,
184,
107,
31,
11917,
14,
1704,
11295,
16,
21,
23224,
859,
800,
3726,
3726,
31,
57,
21,
487,
18,
410,
23224,
859,
29,
2631,
5309,
160,
9,
76,
21,
3131,
25,
1704,
31,
259,
20,
107,
109,
5511,
29,
273,
3755,
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 there a better way to explain the behaviour differences between structs and classes in .net?
===
The code below shows a sample that I've used recently to explain the different behaviour of structs and classes to someone brand new to development. Is there a better way of doing so? (Yes - the code uses public fields - that's purely for brevity)
namespace StructsVsClasses
{
class Program
{
static void Main(string[] args)
{
sampleStruct struct1 = new sampleStruct();
struct1.IntegerValue = 3;
Console.WriteLine("struct1.IntegerValue: {0}", struct1.IntegerValue);
sampleStruct struct2 = struct1;
Console.WriteLine();
Console.WriteLine("struct1.IntegerValue: {0}", struct1.IntegerValue);
Console.WriteLine("struct2.IntegerValue: {0}", struct2.IntegerValue);
struct1.IntegerValue = 5;
Console.WriteLine();
Console.WriteLine("struct1.IntegerValue: {0}", struct1.IntegerValue);
Console.WriteLine("struct2.IntegerValue: {0}", struct2.IntegerValue);
sampleClass class1 = new sampleClass();
class1.IntegerValue = 3;
Console.WriteLine();
Console.WriteLine("class1.IntegerValue: {0}", class1.IntegerValue);
sampleClass class2 = class1;
Console.WriteLine();
Console.WriteLine("class1.IntegerValue: {0}", class1.IntegerValue);
Console.WriteLine("class2.IntegerValue: {0}", class2.IntegerValue);
class1.IntegerValue = 5;
Console.WriteLine();
Console.WriteLine("class1.IntegerValue: {0}", class1.IntegerValue);
Console.WriteLine("class2.IntegerValue: {0}", class2.IntegerValue);
Console.ReadKey();
}
}
struct sampleStruct
{
public int IntegerValue;
}
class sampleClass
{
public int IntegerValue;
}
} | 0 | [
2,
25,
80,
21,
574,
161,
20,
3271,
14,
7727,
4921,
128,
13,
10346,
18,
17,
2684,
19,
13,
9,
2328,
60,
800,
3726,
3726,
14,
1797,
1021,
1285,
21,
5717,
30,
31,
22,
195,
147,
1989,
20,
3271,
14,
421,
7727,
16,
13,
10346,
18,
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... |
Spawning an interactive telnet session from a shell script
===
I'm trying to write a script to allow me to log in to a console servers 48 ports so that I can quickly determine what devices are connected to each serial line.
Essentially I want to be able to have a script that, given a list of hosts/ports, telnets to the first device in the list and leaves me in interactive mode so that I can log in and confirm the device, then when I close the telnet session, connects to the next session in the list.
The problem I'm facing is that if I start a telnet session from within an executable bash script, the session terminates immediately, rather than waiting for input.
For example, given the following code:
$ cat ./telnetTest.sh
#!/bin/bash
while read line
do
telnet $line
done
$
When I run the command 'echo "hostname" | testscript.sh' I receive the following output:
$ echo "testhost" | ./telnetTest.sh
Trying 192.168.1.1...
Connected to testhost (192.168.1.1).
Escape character is '^]'.
Connection closed by foreign host.
$
Does anyone know of a way to stop the telnet session being closed automatically? | 0 | [
2,
27487,
40,
9194,
6757,
2328,
3723,
37,
21,
3593,
3884,
800,
3726,
3726,
31,
22,
79,
749,
20,
2757,
21,
3884,
20,
1655,
55,
20,
6738,
19,
20,
21,
8650,
17595,
4564,
9551,
86,
30,
31,
92,
976,
3746,
98,
4690,
50,
2587,
20,
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... |
Can you record audio with a Java Midlet on a Nokia phone (N80/N95) without the JVM leaking memory?
===
I would like to repeatedly capture snippets of audio on a Nokia mobile phone with a Java Midlet. My current experience is that using the code in Sun's documentation (see: <http://java.sun.com/javame/reference/apis/jsr135/javax/microedition/media/control/RecordControl.html>) and wrapping this in a "while(true)" loop works, but the application slowly consumes all the memory on the phone and the program eventually throws an exception and fails to initiate further recordings.
The consumed memory isn't Java heap memory---my example program (below) shows that Java memory stays roughly static at around 185,000 bytes---but there is some kind of memory leak in the underlying supporting library provided by Nokia; I believe the memory leak occurs because if you try and start another (non-Java) application (e.g. web browser) after running the Java application for a while, the phone kills that application with a warning about lack of memory.
I've tried several different approaches from that taken by Sun's canonical example in the documentation (initialize everything each time round the loop, initialize as much as possible only once, call as many of the deallocate-style functions which shouldn't be strictly necessary etc.). None appear to be successful. Below is a simple example program which I believe should work, but crashes after running for 15 minutes or so on both the N80 (despite a firmware update) and N95. Other forums report this problem too, but the solutions presented there do not appear to work (for example, see: <http://discussion.forum.nokia.com/forum/showthread.php?t=129876>).
import javax.microedition.media.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.io.*;
public class Standalone extends MIDlet {
protected void startApp() {
final Form form = new Form("Test audio recording");
final StringItem status = new StringItem("Status","");
form.append(status);
final Command exit = new Command("Exit", Command.EXIT, 1);
form.addCommand(exit);
form.setCommandListener(new CommandListener() {
public void commandAction(Command cmd, Displayable disp) {
if (cmd == exit) {
destroyApp(false);
notifyDestroyed();
}
}
});
Thread t = new Thread(){
public void run() {
int counter = 0;
while(true) {
//Code cut 'n' paste from Sun JSR135 javadocs for RecordControl:
try {
Player p = Manager.createPlayer("capture://audio");
p.realize();
RecordControl rc = (RecordControl)p.getControl("RecordControl");
ByteArrayOutputStream output = new ByteArrayOutputStream();
rc.setRecordStream(output);
rc.startRecord();
p.start();
Thread.currentThread().sleep(5000);
rc.commit();
p.close();
} catch (Exception e) {
status.setText("completed "+counter+
" T="+Runtime.getRuntime().totalMemory()+
" F="+Runtime.getRuntime().freeMemory()+
": Error: "+e);
break;
}
counter++;
status.setText("completed "+counter+
" T="+Runtime.getRuntime().totalMemory()+
" F="+Runtime.getRuntime().freeMemory());
System.gc(); //One forum post suggests this, but doesn't help
this.yield();
}
}
};
t.start();
final Display display = Display.getDisplay(this);
display.setCurrent(form);
}
protected void pauseApp() {}
protected void destroyApp(boolean bool) {}
}
| 0 | [
2,
92,
42,
571,
4023,
29,
21,
8247,
907,
1336,
27,
21,
24294,
1132,
13,
5,
103,
2887,
118,
103,
3836,
6,
366,
14,
487,
20147,
26334,
1912,
60,
800,
3726,
3726,
31,
83,
101,
20,
8081,
3683,
13,
29061,
18,
16,
4023,
27,
21,
2429... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Artificially create a connection timeout error
===
I've had a bug in our software that occurs when I receive a connection timeout. These errors are very rare (usually when my connection gets dropped by our internal network). How can I generate this kind of effect artificially so I can test our software?
If it matters the app is written in C++/MFC using CAsyncSocket classes. | 0 | [
2,
6809,
102,
1600,
21,
2760,
85,
1320,
7019,
800,
3726,
3726,
31,
22,
195,
41,
21,
6256,
19,
318,
2306,
30,
3690,
76,
31,
2588,
21,
2760,
85,
1320,
9,
158,
11908,
50,
253,
2890,
13,
5,
13075,
76,
51,
2760,
3049,
1539,
34,
318... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 cast an IEnumerable<t> or IQueryable<t> to an EntitySet<t> ?
===
In this situation I am trying to perform a data import from an XML file to a database using LINQ to XML and LINQ to SQL.
Here's my LINQ data model:
public struct Page
{
public string Name;
public char Status;
public EntitySet<PageContent> PageContents;
}
public struct PageContent
{
public string Content;
public string Username;
public DateTime DateTime;
}
Basically what I'm trying to do is write a query that will give me a data structure that I can just submit to my LINQ Data Context.
IEnumerable<Page> pages = from el in doc.Descendants()
where el.Name.LocalName == "page"
select new Page()
{
Name = el.Elements().Where(e => e.Name.LocalName == "title").First().Value,
Status = 'N',
PageContents = (from pc in el.Elements()
where pc.Name.LocalName == "revision"
select new PageContent()
{
Content = pc.Elements().Where(e => e.Name.LocalName=="text").First().Value,
Username = pc.Elements().Where(e => e.Name.LocalName == "contributor").First().Elements().Where(e => e.Name.LocalName == "username").First().Value,
DateTime = DateTime.Parse(pc.Elements().Where(e => e.Name.LocalName == "timestamp").First().Value)
}).ToList()
};
The problem is in the sub-query. I have to somehow get my object collection into the EntitySet<t> container. I can't cast it (oh lord how I've tried) and there's no EntitySet() constructor that would seem to help.
So, can I write a LINQ query that will populate the EntitySet<PageContent> data with my IEnumerable<Page> data? | 0 | [
2,
184,
107,
42,
1325,
40,
13,
660,
6336,
106,
579,
1,
38,
1,
54,
13,
5312,
622,
579,
1,
38,
1,
20,
40,
9252,
3554,
1,
38,
1,
13,
60,
800,
3726,
3726,
19,
48,
1858,
31,
589,
749,
20,
2985,
21,
1054,
9010,
37,
40,
23504,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the difference between the <%# and <%= opening tags?
===
While editing an aspx file I found both these opening tags used for seemingly the same thing. Is there a difference and if yes, what is it? | 0 | [
2,
98,
25,
14,
2841,
128,
14,
13,
1,
11881,
5910,
17,
13,
1,
11881,
3726,
1214,
3383,
18,
60,
800,
3726,
3726,
133,
9510,
40,
28,
306,
396,
3893,
31,
216,
156,
158,
1214,
3383,
18,
147,
26,
9688,
14,
205,
584,
9,
25,
80,
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,
0,
0,
0,
0,
0,
0,
0... |
Reuse define statement from .h file in C# code
===
I have C++ project (VS2005) which includes header file with version number in #define directive. Now I need to include exactly the same number in twin C# project. What is the best way to do it?
I'm thinking about including this file as a resource, then parse it at a runtime with regex to recover version number, but maybe there's a better way, what do you think?
I cannot move version outside .h file, also build system depends on it and the C# project is one which should be adapted. | 0 | [
2,
302,
3699,
9267,
3331,
37,
13,
9,
252,
3893,
19,
272,
5910,
1797,
800,
3726,
3726,
31,
57,
272,
20512,
669,
13,
5,
710,
18,
2835,
6,
56,
1103,
157,
106,
3893,
29,
615,
234,
19,
6926,
546,
7509,
15626,
9,
130,
31,
376,
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... |
How do you refactor your old PHP code?
===
I have recently gotten involved in a project where a web-based game uses an engine written in PHP. The game works fine but could be more robust and have some more features - and the code is both old and fairly ugly.
The issue with this code (and much PHP code in general I suspect) is that it has evolved to where it is and isn't structured very nicely, has a lot of almost-identical cut/pasted pieces of code, and makes heavy use of globals even where functions are involved. Not a single unit test anywhere, of course, and the code is hard coded to use a particular DB and relies on $_REQUEST strings from the web page that calls the code.
The right thing to do would be to pull out pieces of the code as sub-functions, tidy them up and add some unit tests to make sure it continues to work, adding a few mock objects along the way. However, doing this entirely by hand is tedious and error-prone and I wonder how you do this - is there an IDE or tool that can help, for example? I would like to have a tool that can help produce a function from a defined piece of code, suggest which variables should be parameters, by value or reference, automatically add $this-> references, etc.
Is this too much to ask, or is there a good solution?
Thanks!
| 0 | [
2,
184,
107,
42,
302,
17455,
154,
315,
13,
26120,
1797,
60,
800,
3726,
3726,
31,
57,
1989,
4094,
1013,
19,
21,
669,
113,
21,
2741,
8,
1281,
250,
2027,
40,
1406,
642,
19,
13,
26120,
9,
14,
250,
693,
1123,
47,
110,
44,
91,
15313... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Browser Detection
===
What's the best / simplest / most accurate way to detect the browser of a user?
Ease of extendability and implementation is a plus.
The less technologies used, the better. | 0 | [
2,
16495,
11643,
800,
3726,
3726,
98,
22,
18,
14,
246,
13,
118,
24384,
13,
118,
127,
8137,
161,
20,
9092,
14,
16495,
16,
21,
4155,
60,
6378,
16,
7206,
4091,
17,
6123,
25,
21,
3123,
9,
14,
787,
5740,
147,
15,
14,
574,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How can I overcome inconsistent behaviour of snprintf in different UNIX-like operating systems??
===
Per man pages, snprintf is returning number of bytes written from glibc version 2.2 onwards. But on lower versions of libc2.2 and HP-UX, it returns a positive integer, which could lead to a buffer overflow.
How can one overcome this and write portable code? | 0 | [
2,
184,
92,
31,
9059,
22380,
7727,
16,
8912,
10299,
410,
19,
421,
22540,
8,
1403,
2455,
1242,
60,
60,
800,
3726,
3726,
416,
169,
4434,
15,
8912,
10299,
410,
25,
2485,
234,
16,
34,
3231,
642,
37,
13,
6441,
7229,
615,
172,
9,
135,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.NET: Syncing client and server-side validation rules
===
Are there any easy, smart ways to keep your client and server-side validation-rules synchronized?
On the client side we have JavaScript, maybe some kind of framework like jQuery or YUI.
On the server-side we have ASP.NET WebForms or ASP.NET MVC.
Puzzle it together :) | 0 | [
2,
28,
306,
9,
2328,
45,
6063,
6302,
6819,
17,
8128,
8,
1416,
27999,
1761,
800,
3726,
3726,
50,
80,
186,
2010,
15,
3978,
2847,
20,
643,
154,
6819,
17,
8128,
8,
1416,
27999,
8,
16154,
18,
27202,
60,
27,
14,
6819,
270,
95,
57,
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... |
Default constructor vs IOC container
===
Can someone explain to me the advantages of using an IOC container over simply hardcoding the default implementation into a default constructor?
In other words, what is wrong about this code?
public class MyClass
{
private IMyInterface _myInterface;
public MyClass()
{
_myInterface = new DefaultMyInterface();
}
public MyClass(IMyInterface myInterface)
{
_myInterface = myInterface;
}
}
As far as I can tell, this class supports constructor injection enough so unit testing and mocking is easily done. In addition to which, the default constructor removes the computational overhead of the IOC container (not to mention the whole process is a lot more transparent).
The only benefits i can see to using an IOC container is if you need to switch out the implementation of your interfaces frequently. Am I missing something?
| 0 | [
2,
12838,
6960,
248,
4611,
31,
2499,
12147,
800,
3726,
3726,
92,
737,
3271,
20,
55,
14,
14683,
16,
568,
40,
31,
2499,
12147,
84,
1659,
552,
15458,
14,
12838,
6123,
77,
21,
12838,
6960,
248,
60,
19,
89,
715,
15,
98,
25,
1389,
88,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 stop mysql on a Mac OS install
===
I installed it it via mac ports, what is the command I need to stop the server (i need to test how my app behave when MySQL is dead) | 0 | [
2,
184,
107,
747,
51,
18,
22402,
27,
21,
1572,
13,
759,
16146,
800,
3726,
3726,
31,
4066,
32,
32,
1197,
1572,
9551,
15,
98,
25,
14,
1202,
31,
376,
20,
747,
14,
8128,
13,
5,
49,
376,
20,
1289,
184,
51,
4865,
14149,
76,
51,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Mac SQLite editor
===
I am aware of [CocoaMySQL][1] but I have not seen a Mac GUI for SQLite, is there one?
My Google search didn't turn up any Mac related GUI's which is why I'm asking here rather than Google.
[1]: http://cocoamysql.sourceforge.net/ | 0 | [
2,
1572,
4444,
10601,
1835,
800,
3726,
3726,
31,
589,
3854,
16,
636,
716,
716,
58,
915,
18,
22402,
500,
2558,
165,
500,
47,
31,
57,
52,
541,
21,
1572,
9457,
26,
4444,
10601,
15,
25,
80,
53,
60,
51,
8144,
2122,
223,
22,
38,
805... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AMD 64 bit Dual Core Optimization
===
We have a graphics intensive application that seems to be experiencing problems on AMD 64 bit Dual Core platforms that are not apparent on Intel platforms.
Running the application causes the CPU to run at 100%, in particular when using code for shadows and lighting (Open GL).
Does anyone know of specific issues with AMD processors that could cause this or know where to track down the problem, and/or ways to optimize the code base to avoid these issues?
| 0 | [
2,
589,
43,
4384,
1142,
5747,
2884,
21597,
800,
3726,
3726,
95,
57,
21,
8351,
13633,
3010,
30,
2206,
20,
44,
15138,
1716,
27,
589,
43,
4384,
1142,
5747,
2884,
6843,
30,
50,
52,
5982,
27,
14635,
6843,
9,
946,
14,
3010,
4047,
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... |
spring & web service client - Fault Detail
===
How could I get the Fault Detail sent by a SoapFaultClientException ?
I use a WebServiceTemplate as shown below :
WebServiceTemplate ws = new WebServiceTemplate();
ws.setMarshaller(client.getMarshaller());
ws.setUnmarshaller(client.getUnMarshaller());
try {
MyResponse resp = (MyResponse) = ws.marshalSendAndReceive(WS_URI, req);
} catch (SoapFaultClientException e) {
SoapFault fault = e.getSoapFault();
SoapFaultDetail details = e.getSoapFault().getFaultDetail();
//details always NULL ? Bug?
}
The Web Service Fault sent seems correct :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>Validation error</faultstring>
<faultactor/>
<detail>
<ws:ValidationError xmlns:ws="http://ws.x.y.com">ERR_UNKNOWN</ws:ValidationError>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Thanks
Willome
| 0 | [
2,
1573,
279,
2741,
365,
6819,
13,
8,
4173,
6110,
800,
3726,
3726,
184,
110,
31,
164,
14,
4173,
6110,
795,
34,
21,
6447,
410,
9708,
150,
18513,
38,
10066,
872,
13,
60,
31,
275,
21,
2741,
11449,
9577,
6554,
28,
1721,
1021,
13,
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... |
RMI vs. Web Services. What's best for Java2Java remoting?
===
I'm new to both Web Services and RMI and I wonder which is the better way to do remoting between different web applications, when these applications are all written in Java, that is when different programming languages don't matter (which would be the advantage of WS).
While on the one hand I would guess that there's a performance overhead when using web services (does anyone have some numbers to prove that?), on the other hand it seems to me that web services are much more loosely coupled and can be used to implement a more service-oriented architecture (SOA) (which isn't possible with RMI, right?).
Although this is quite a general question, what's your opinion?
Thanks | 0 | [
2,
761,
1435,
4611,
9,
2741,
687,
9,
98,
22,
18,
246,
26,
8247,
135,
1004,
1385,
302,
7662,
68,
60,
800,
3726,
3726,
31,
22,
79,
78,
20,
156,
2741,
687,
17,
761,
1435,
17,
31,
2666,
56,
25,
14,
574,
161,
20,
107,
302,
7662,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 domain driven design?
===
So I got this question from one of the developers in my team: What is domain driven design? I could of course point to the book from Evans but is that actually an answer?
How would you explain DDD in a few sentences to junior software engineers in your team? | 0 | [
2,
98,
25,
4603,
5355,
704,
60,
800,
3726,
3726,
86,
31,
330,
48,
1301,
37,
53,
16,
14,
10168,
19,
51,
173,
45,
98,
25,
4603,
5355,
704,
60,
31,
110,
16,
674,
454,
20,
14,
360,
37,
5161,
47,
25,
30,
1121,
40,
1623,
60,
184... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Delphi 7 and Windows Vista
===
I have a simple software that is made in Delphi 7, and it crashes on Vista after a while. These are totally random crashes, nothing is written in any crash log, just stops working and then Vista tries to find a solution.
Does anyone have any ideas ? | 0 | [
2,
23030,
453,
17,
1936,
13520,
800,
3726,
3726,
31,
57,
21,
1935,
2306,
30,
25,
117,
19,
23030,
453,
15,
17,
32,
21563,
27,
13520,
75,
21,
133,
9,
158,
50,
5139,
5477,
21563,
15,
626,
25,
642,
19,
186,
4597,
6738,
15,
114,
66... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Choosing xpath version for .net IIS apps
===
We've got a .net CMS running on IIS 6 which uses xslt templates. It seems to be running xpath 1.0 (as we can't use any 2.0 functionality).
How do we go about installing or specifying that IIS should use xpath 2.0? Is it installed per server, or can we specify which version to use on a per-application pool or per-site basis?
Thanks a lot! | 0 | [
2,
10883,
993,
8353,
615,
26,
13,
9,
2328,
595,
18,
4865,
18,
800,
3726,
3726,
95,
22,
195,
330,
21,
13,
9,
2328,
2390,
18,
946,
27,
595,
18,
400,
56,
2027,
993,
18,
255,
38,
22894,
18,
9,
32,
2206,
20,
44,
946,
993,
8353,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 notified of Windows process maximizing CPU?
===
Is there a tool for Windows XP and Vista (built-in or otherwise ideally freeware/[OSS][1]) that can notify the user when the CPU is above a (configurable) threshold for some (configurable) duration?
I am particularly interested in a _minimalist_ tool that fits the following bill and in order of importance (which a lot of the built-in Windows facilities like [Performance/Resource Monitor][2] do not):
1. Does not require administrative privileges
1. Has a *low working set* so it has no observable cost if left running forever
1. Monitors silently in the system tray
1. Uses a subtle (not in-your-face) notification method like showing a balloon tip with the name of the offending process that has been maximizing the CPU
1. Can be configured to start automatically when a user logs on interactively
[1]: http://en.wikipedia.org/wiki/Open_source_software
[2]: http://technet.microsoft.com/en-us/library/cc749249.aspx | 0 | [
2,
184,
20,
164,
22904,
16,
1936,
953,
10584,
3335,
17578,
60,
800,
3726,
3726,
25,
80,
21,
5607,
26,
1936,
23045,
17,
13520,
13,
5,
8607,
8,
108,
54,
3190,
5628,
102,
551,
5011,
118,
2558,
759,
18,
500,
2558,
165,
500,
6,
30,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to choose the max thread count for an HTTP servlet container?
===
I'm developing a restful Web service that runs as a servlet (using blocking IO) in Jetty. Figuring out the optimal setting for max threads seems hard.
Is there a researched formula for deciding the max number of threads from some easily measurable characteristics of the rest of the setup? | 0 | [
2,
184,
20,
3538,
14,
2049,
9322,
2468,
26,
40,
7775,
13,
10321,
1336,
12147,
60,
800,
3726,
3726,
31,
22,
79,
3561,
21,
760,
1566,
2741,
365,
30,
1461,
28,
21,
13,
10321,
1336,
13,
5,
12655,
11828,
13,
1963,
6,
19,
17341,
93,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
One-click compilers
===
Do you know of any compilers that only requires one or two clicks on the source code to compile? Having to configure it to do it doesn't count, nor does having to go to a terminal and write a word or two.
And it should compile into a executable, not start the program!
Extra points are given if you can give your own view as to why so few compilers have a gui included, or just a send to compiler listing in explorer! | 0 | [
2,
53,
8,
150,
10129,
21486,
18,
800,
3726,
3726,
107,
42,
143,
16,
186,
21486,
18,
30,
104,
4781,
53,
54,
81,
10840,
18,
27,
14,
1267,
1797,
20,
26561,
60,
452,
20,
1065,
15951,
32,
20,
107,
32,
1437,
22,
38,
2468,
15,
2127,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Technology Plan - Which tools should I use?
===
Soon, I'll start my own software company.
My primary product/solution will be a Billing/Invoice Software. In a near future, I pretend to expand this first module to an ERP.
My app should be able to run as a stand-alone application and as a Web-based application (so there will be, probably two GUI for the same Database).
My problem, now, is to choose the right tools; I'm talking about what programming language(s) should I use, what kind of database should I choose, and stuff like that.
I'm primarily a VB6 programmer, so probably I'll choose the .net framework (vb/c#).
But I'm seriously thinking about Java. Java has 2 "pros" that I really like: write once, run anywhere and it is free (I think...).
I've been thinking about RIAs too, but I just don't have any substantial feedback about them...
Then, I'll need a report tool. Crystal Reports? HTML based Reports? Other?
Databases: I'm not sure if I should use SQL-Server Express or PostgreSQL (or other).
I'd be happy to hear any comments and advices
Thanks | 0 | [
2,
1099,
944,
13,
8,
56,
4672,
378,
31,
275,
60,
800,
3726,
3726,
651,
15,
31,
22,
211,
799,
51,
258,
2306,
237,
9,
51,
1256,
2374,
118,
18,
18687,
3309,
129,
44,
21,
1071,
68,
118,
108,
13379,
2306,
9,
19,
21,
424,
1022,
15... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Oracle OCI array fetch of simple data types?
===
I cannot understand the Oracle documentation. :-(
Does anybody have any pointers to an example how to fetch multiple rows of simple data from Oracle via OCI?
I currently use OCIDefineByPos to define single variables (I only need to do this for simple integers -- SQLT_INT/4-byte ints) and then fetch a single row at a time with OCIStmtExecute/OCIStmtFetch2.
This is ok for small amounts of data but it takes around .5ms per row so when reading a few ten thousand rows this is too slow.
I just don't understand the documentation for OCIBindArrayOfStruct etc. and cannot find any example code that just fetches data a few thousand rows at a time. | 0 | [
2,
15759,
13,
16325,
7718,
18312,
16,
1935,
1054,
2551,
60,
800,
3726,
3726,
31,
1967,
1369,
14,
15759,
13945,
9,
13,
45,
8,
5,
630,
11181,
57,
186,
454,
445,
20,
40,
823,
184,
20,
18312,
1886,
11295,
16,
1935,
1054,
37,
15759,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 is something considered a scripting language?
===
What makes a language a scripting language? I've heard some people say "when it gets interpreted instead of compiled". That would make PHP (for example) a scripting language. It that true? or are there other criteria? | 0 | [
2,
76,
25,
301,
724,
21,
3884,
68,
816,
60,
800,
3726,
3726,
98,
1364,
21,
816,
21,
3884,
68,
816,
60,
31,
22,
195,
752,
109,
148,
395,
13,
7,
3185,
32,
3049,
10394,
700,
16,
9316,
7,
9,
30,
83,
233,
13,
26120,
13,
5,
1106... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Building Python C extension modules for Windows
===
I have a C extension module and it would be nice to distribute built binaries. Setuptools makes it easy to build extensions modules on OS X and GNU/Linux, since they come with GCC, but I don't know how to do it in Windows.
Would I need to buy a copy of Visual Studio, or does Visual Studio Express work? Can I just use Cygwin or MinGW? | 0 | [
2,
353,
20059,
272,
3896,
17113,
26,
1936,
800,
3726,
3726,
31,
57,
21,
272,
3896,
12613,
17,
32,
83,
44,
2210,
20,
14751,
392,
4511,
11301,
9,
18161,
20799,
18,
1364,
32,
2010,
20,
1895,
17529,
17113,
27,
13,
759,
993,
17,
26092,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 little things do I need to do before deploying a rails application
===
What small things which are too easy to overlook do I need to do before deploying a rails application?
So far I can think of
- Set the secret key for creating session hashes to something non-default
- set the logging to not echo users passwords in the log file
But I am sure there are several others... | 0 | [
2,
98,
265,
564,
107,
31,
376,
20,
107,
115,
17617,
68,
21,
2240,
18,
3010,
800,
3726,
3726,
98,
284,
564,
56,
50,
266,
2010,
20,
20930,
107,
31,
376,
20,
107,
115,
17617,
68,
21,
2240,
18,
3010,
60,
86,
463,
31,
92,
277,
16... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
what is an ideal variable naming convention for loop variables?
===
if you are writing a simple little loop, what do you name the counter?
| 0 | [
2,
98,
25,
40,
5628,
7612,
10929,
3087,
26,
5293,
12157,
60,
800,
3726,
3726,
100,
42,
50,
1174,
21,
1935,
265,
5293,
15,
98,
107,
42,
204,
14,
2105,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Peave: Why aren't NullPointerExceptions > NullReferenceExceptions in Java ?
===
Was this an oversight? Or is it to do with the JVM? | 0 | [
2,
13,
7081,
195,
45,
483,
4847,
22,
38,
16203,
3132,
106,
10066,
5757,
13,
1,
16203,
28018,
10066,
5757,
19,
8247,
13,
60,
800,
3726,
3726,
23,
48,
40,
18241,
60,
54,
25,
32,
20,
107,
29,
14,
487,
20147,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
SQL Server Management Studio – tips for efficiently writing TSQL code
===
I used to work in a place where a common practice was to use Pair Programming. I remember how many small things we could learn from each other when working together on the code. Picking up new shortcuts, code snippets etc. with time significantly improved our efficiency of writing code.
Since I started working with SQL Server I have been left on my own. The best habits I would normally pick from working together with other people which I cannot do now.
So here is the question:
- What are you tips on efficiently
writing TSQL code using SQL Server
Management Studio?
- Please keep the
tips to 2 – 3 things/shortcuts that
you think improve you speed of
coding
- Please stay within the scope
of TSQL and SQL Server Management
Studio 2005/2008 If the feature is
specific to the version of
Management Studio please indicate:
e.g. “Works with SQL Server 2008
only"
Thanks
| 0 | [
2,
4444,
255,
8128,
1097,
1120,
13,
10,
11034,
26,
20519,
1174,
13,
38,
18,
22402,
1797,
800,
3726,
3726,
31,
147,
20,
170,
19,
21,
209,
113,
21,
757,
1345,
23,
20,
275,
2146,
3143,
9,
31,
1518,
184,
151,
284,
564,
95,
110,
24... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 you setup a greenfield project
===
I'm setting yup a Greenfield (yeeea!) web application just now was wondering how other people first setup their project with regards to automated/CI build?
I generally follow this:
1. Create SVN Repository with basic layout (trunk, braches, lib, etc.)
2. Create basic solution structure (core, ui, tests)
3. Create a basic test that fails
4. Copy NAnt scripts, update and tweak, make sure the failing test breaks the build locally
5. Commit
6. Setup default debug build on CI server (TeamCity) making sure the build fails
7. Fix text
8. Commit
9 Make sure build passes on CI
10. Done.... | 0 | [
2,
184,
42,
18161,
21,
647,
1109,
669,
800,
3726,
3726,
31,
22,
79,
2697,
13,
93,
576,
21,
647,
1109,
13,
5,
3616,
2851,
58,
187,
6,
2741,
3010,
114,
130,
23,
5712,
184,
89,
148,
64,
18161,
66,
669,
29,
14179,
20,
14904,
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... |
csv api for java
===
Can anyone recommend a simple API that will allow me to use read a csv input file, do some simple transformations, and then write it.
A quick google has found http://flatpack.sourceforge.net/ which looks promising.
I just wanted to check what others are using before I couple myself to this api.
thanks,
David. | 0 | [
2,
272,
18,
710,
21,
2159,
26,
8247,
800,
3726,
3726,
92,
1276,
12360,
21,
1935,
21,
2159,
30,
129,
1655,
55,
20,
275,
1302,
21,
272,
18,
710,
6367,
3893,
15,
107,
109,
1935,
6978,
18,
15,
17,
94,
2757,
32,
9,
21,
2231,
8144,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 text from the (windows) clipboard from python?
===
How do I read text from the (windows) clipboard from python? | 0 | [
2,
184,
107,
31,
1302,
1854,
37,
14,
13,
5,
27508,
18,
6,
12229,
2806,
37,
20059,
60,
800,
3726,
3726,
184,
107,
31,
1302,
1854,
37,
14,
13,
5,
27508,
18,
6,
12229,
2806,
37,
20059,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How do I go about using Microsoft Access (2003/2007) to interface with an Oracle (10g) DB to produce reports?
===
I've got no idea how to go about this or what would be involved.
I've also got no budget, so would be looking to use freely available software for this purpose.
| 0 | [
2,
184,
107,
31,
162,
88,
568,
7099,
1381,
13,
5,
3325,
118,
2727,
6,
20,
6573,
29,
40,
15759,
13,
5,
1036,
263,
6,
13,
9007,
20,
2213,
2813,
60,
800,
3726,
3726,
31,
22,
195,
330,
90,
882,
184,
20,
162,
88,
48,
54,
98,
83... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Anything better than PHPDoc out there?
===
Does anybody use anything else to document their PHP code than PHPDoc?
Are there any tools that read the same documentation syntax but give richer output? | 0 | [
2,
602,
574,
119,
13,
26120,
13799,
70,
80,
60,
800,
3726,
3726,
630,
11181,
275,
602,
962,
20,
4492,
66,
13,
26120,
1797,
119,
13,
26120,
13799,
60,
50,
80,
186,
4672,
30,
1302,
14,
205,
13945,
22649,
47,
590,
2042,
106,
5196,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What would you use to write end user documentation for a WPF application
===
We're working on a WPF-based application and we would like to have user documentation included in the application.
Our requirements:
- Must support multiple output formats (CHM,HTML,PDF)
- Be able to load the text into a WPF application
- Be familiar for a windows user
- Preferrable possible to give us context sensitive help within the application
- Nice predefined template so we only need to adjust to our colours
I've been considering basing this on [MAML][1] which is Vista's documentation format, but I am a bit unsure about the tooling support and the [lack of commitment for a public API][2] by Microsoft. Does anyone have any experience with MAML?
[1]: http://en.wikipedia.org/wiki/Microsoft_Assistance_Markup_Language
[2]: http://en.wikipedia.org/wiki/Online_help | 0 | [
2,
98,
83,
42,
275,
20,
2757,
241,
4155,
13945,
26,
21,
619,
7721,
3010,
800,
3726,
3726,
95,
22,
99,
638,
27,
21,
619,
7721,
8,
1281,
3010,
17,
95,
83,
101,
20,
57,
4155,
13945,
506,
19,
14,
3010,
9,
318,
4786,
45,
13,
8,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the unit testing strategy for method call forwarding?
===
I have the following scenario:
<pre>
public long AddCar(Car car)
{
try
{
string username = _authorizationManager.GetUsername();
...
long id = _carAccessor.AddCar(username, car.Id, car.Name, ....);
if(id == 0)
{
throw new Exception("Car was not added");
}
return id;
} catch (Exception ex) {
throw new AddCarException(ex);
}
}
public List<long> AddCars(List<Car> cars)
{
List<long> ids = new List<long>();
foreach(Car car in cars)
{
AddCar(car);
}
return ids;
}
</pre>
I am mocking out _reportAccessor, _authorizationManager etc.<p />
Should I have multiple tests for AddCar() such as
<pre>
AddCarTest()
AddCarTestAuthorizationManagerException()
AddCarTestCarAccessorNoId()
AddCarTestCarAccessorException()
</pre>
For AddCars() should I repeat all previous tests as AddCars() calls AddCar() - it seems like repeating oneself? Should I perhaps not be calling AddCar() from AddCars() but through something I could mock? < p/>
Please help. | 0 | [
2,
98,
25,
14,
1237,
4431,
4427,
26,
2109,
645,
917,
68,
60,
800,
3726,
3726,
31,
57,
14,
249,
12705,
45,
13,
1,
3515,
1,
317,
175,
3547,
1367,
5,
1367,
349,
6,
13,
1,
1131,
13,
1,
3724,
4155,
7259,
800,
13,
1,
10007,
1829,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Count images in some folder on WEB server (ASP.NET)
===
I need to count and check how much of some images is placed in folder od web server.
Example- images get names from user_id, and on example I have user_id 27, and my images are:
27_1.jpg, 27_2.jpg, 27_3.jpg...
How to check and write to database this thing?
Thanks | 0 | [
2,
2468,
3502,
19,
109,
19294,
27,
2741,
8128,
13,
5,
472,
306,
9,
2328,
6,
800,
3726,
3726,
31,
376,
20,
2468,
17,
2631,
184,
212,
16,
109,
3502,
25,
1037,
19,
19294,
12340,
2741,
8128,
9,
823,
8,
3502,
164,
1817,
37,
4155,
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 2005 Fulltext indexing prevents backups
===
Whenever I try to backup a database it goes until 90% and gets stuck there until I manually kill (because it doesn't stop if I try to stop it) the msftesql process.
That clearly means that something makes a conflict between the fulltext indexing and the backup process.
So, have you seen anything like this? If not, how would you go about debugging this problem? | 0 | [
2,
4444,
255,
8128,
812,
503,
11969,
4348,
68,
2501,
18,
10119,
18,
800,
3726,
3726,
6634,
31,
1131,
20,
10119,
21,
6018,
32,
1852,
163,
16370,
17,
3049,
4549,
80,
163,
31,
23671,
1177,
13,
5,
4451,
32,
1437,
22,
38,
747,
100,
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... |
Is there a zip-like method in .Net?
===
In Python there is a really neat function called `zip` which can be used to iterate through two lists at the same time:
list1 = [1, 2, 3]
list2 = ["a", "b", "c"]
for v1, v2 in zip(list1, list2):
print v1 + " " + v2
The above code shoul produce the following:
<pre>1 a
2 b
3 c</pre>
I wonder if there is a method like it available in .Net? I'm thinking about writing it myself, but there is no point if it's already available. | 0 | [
2,
25,
80,
21,
12133,
8,
1403,
2109,
19,
13,
9,
2328,
60,
800,
3726,
3726,
19,
20059,
80,
25,
21,
510,
15956,
1990,
227,
13,
1,
2553,
306,
1,
56,
92,
44,
147,
20,
32,
106,
1373,
120,
81,
7227,
35,
14,
205,
85,
45,
968,
165... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which is the best .Net XML-RPC library?
===
I need to communicate with an XML-RPC server from a .NET 2.0 client. Can you recommend any libraries? | 0 | [
2,
56,
25,
14,
246,
13,
9,
2328,
23504,
8,
139,
5779,
1248,
60,
800,
3726,
3726,
31,
376,
20,
8709,
29,
40,
23504,
8,
139,
5779,
8128,
37,
21,
13,
9,
2328,
172,
9,
387,
6819,
9,
92,
42,
12360,
186,
8649,
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... |
MOSS 2007 Crawl
===
I'm trying to get crawl to work on two separate farms I have but can't get it to work on either one. They both have two WFE's with an additional WFE configured as an Index server. There is one more server dedicated for Query and two clustered SQL 2005 back end servers for the database. I have unsuccessfully tried at least 50 different websites that I found with solutions from a search engine. I have configured my Web App to use http://servername:12345 as the default zone and http://abc.companyname.com as the custom and intranet zones. When I enter each of those into the content source and then try to run a crawl, I get a couple of errors in the crawl log:
http://servername:12345 returns:<br>
"Could not connect to the server. Please make sure the site is accessible."
http://abc.companyname.com returns:<br>
"Deleted by the gatherer. (The start address or content source that contained this item was deleted and hence this item was deleted.)"
However, I can click both URL's and the page is accessible.
Any ideas? | 0 | [
2,
8188,
624,
12392,
800,
3726,
3726,
31,
22,
79,
749,
20,
164,
12392,
20,
170,
27,
81,
1725,
9003,
31,
57,
47,
92,
22,
38,
164,
32,
20,
170,
27,
694,
53,
9,
59,
156,
57,
81,
619,
3739,
22,
18,
29,
40,
1351,
619,
3739,
288... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 confirm a database is Oracle & what version it is using SQL?
===
I'm building an installer for an application. The user gets to select a datasource they have configured and nominate what type of database it is. I want to confirm that the database type is indeed Oracle, and if possible, what version of Oracle they are running by sending a SQL statement to the datasource. | 0 | [
2,
184,
92,
31,
10265,
21,
6018,
25,
15759,
279,
98,
615,
32,
25,
568,
4444,
255,
60,
800,
3726,
3726,
31,
22,
79,
353,
40,
16146,
106,
26,
40,
3010,
9,
14,
4155,
3049,
20,
5407,
21,
1054,
12097,
59,
57,
28895,
17,
24818,
98,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Triggering a .net garbage collection externally
===
Is there a way to trigger a garbage collection in a .net process from another process or from inside WinDBG?
There are the Managed Debugging Assistants that force a collection as you move across a native/managed boundary, and AQTime seems to have button that suggests it does this but I can't find any documentation on how to do it. | 0 | [
2,
7286,
68,
21,
13,
9,
2328,
15024,
1206,
4886,
102,
800,
3726,
3726,
25,
80,
21,
161,
20,
7286,
21,
15024,
1206,
19,
21,
13,
9,
2328,
953,
37,
226,
953,
54,
37,
572,
1511,
19924,
60,
80,
50,
14,
1471,
121,
16254,
2762,
1482,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 confirm a database is Postgres & what version it is using SQL?
===
I'm building an installer for an application. The user gets to select a datasource they have configured and nominate what type of database it is. I want to confirm that the database type is indeed Postgres, and if possible, what version of Postgres they are running by sending a SQL statement to the datasource. | 0 | [
2,
184,
92,
31,
10265,
21,
6018,
25,
678,
6879,
18,
279,
98,
615,
32,
25,
568,
4444,
255,
60,
800,
3726,
3726,
31,
22,
79,
353,
40,
16146,
106,
26,
40,
3010,
9,
14,
4155,
3049,
20,
5407,
21,
1054,
12097,
59,
57,
28895,
17,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a more user friendly alternative to Net::HTTP for interacting with REST APIs?
===
Net::HTTP can be rather cumbersome for the standard use case! | 0 | [
2,
25,
80,
21,
91,
4155,
4753,
2676,
20,
4275,
45,
45,
21127,
26,
24747,
29,
760,
21,
8954,
60,
800,
3726,
3726,
4275,
45,
45,
21127,
92,
44,
864,
10611,
2102,
3220,
26,
14,
1236,
275,
610,
187,
3,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Programmatically exclude page items in olap pivot
===
I have a pivot table on an olap cube. I can go into a page field and manually deselect multiple items. How can I do this in VBA based on a list of items I need excluded? (n.b. I do not have a corrresponding list of items I need included) | 0 | [
2,
625,
6732,
1326,
21077,
2478,
3755,
19,
13,
2268,
306,
20670,
800,
3726,
3726,
31,
57,
21,
20670,
859,
27,
40,
13,
2268,
306,
13682,
9,
31,
92,
162,
77,
21,
2478,
575,
17,
23671,
1746,
16964,
1886,
3755,
9,
184,
92,
31,
107,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Letting several assemblies access the same text file
===
I've got many assemblies/projects in the same c#/.net solution. A setting needs to be saved by people using the web application gui, and then a console app and some test projects need to access the same file. Where should I put the file and how to access it?
I've tried using "AppDomain.CurrentDomain.BaseDirectory" but that ends up being different for my assemblies. Also the "System.Reflection.Assembly.Get*Assembly.Location" fail to give me what I need.
Maybe this isn't something I should but in a file, but rather the database? But it feels so complicated doing that for a few lines of configuration. | 0 | [
2,
4252,
238,
21066,
1381,
14,
205,
1854,
3893,
800,
3726,
3726,
31,
22,
195,
330,
151,
21066,
118,
21011,
18,
19,
14,
205,
272,
5910,
118,
9,
2328,
4295,
9,
21,
2697,
2274,
20,
44,
4377,
34,
148,
568,
14,
2741,
3010,
9457,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Nice book on SQL Server Analysis Services?
===
I wonder if anyone can recommend a good book on SQL Server Analysis Services.
I'm expecting to get very much involved with that technology, so 'For dummies' series won't work for me.
Is [Microsoft SQL Server 2005 Analysis Services][1] good?
Is [Professional SQL Server Analysis Services 2005 with MDX][2] better?
[1]: http://www.amazon.com/Microsoft-Server-2005-Analysis-Services/dp/0672327821/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1221823900&sr=8-1
[2]: http://www.amazon.com/Professional-Server-Analysis-Services-Programmer/dp/0764579185/ref=pd_bbs_sr_3?ie=UTF8&s=books&qid=1221823900&sr=8-3 | 0 | [
2,
2210,
360,
27,
4444,
255,
8128,
2495,
687,
60,
800,
3726,
3726,
31,
2666,
100,
1276,
92,
12360,
21,
254,
360,
27,
4444,
255,
8128,
2495,
687,
9,
31,
22,
79,
7752,
20,
164,
253,
212,
1013,
29,
30,
1099,
15,
86,
13,
22,
1106,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 command(s) control the behavior of /etc/rc*.d on Redhat/CentOS?
===
/etc/init.d/*
/etc/rc{1-5}.d/* | 0 | [
2,
98,
1202,
5,
18,
6,
569,
14,
3257,
16,
13,
118,
1198,
150,
118,
5453,
2483,
9,
43,
27,
402,
6775,
118,
5089,
759,
60,
800,
3726,
3726,
13,
118,
1198,
150,
118,
108,
242,
9,
43,
118,
2483,
13,
118,
1198,
150,
118,
5453,
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,
0,
0,
0,
0,
0,
0,
0,
0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.