unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
How can I send an HTTP POST request to a server from Excel using VBA?
===
What VBA code is required to peform an HTTP POST from an Excel spreadsheet? | 0 | [
2,
184,
92,
31,
2660,
40,
7775,
678,
3772,
20,
21,
8128,
37,
20700,
568,
566,
969,
60,
800,
3726,
3726,
98,
566,
969,
1797,
25,
1390,
20,
3560,
4190,
40,
7775,
678,
37,
40,
20700,
1789,
17627,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Doing a Cast Within a LINQ Query
===
Is it possible to do a cast within a LINQ query (for the compiler's sake)?
The following code isn't terrible, but it would be nice to make it into one query:
Content content = dataStore.RootControl as Controls.Content;
List<TabSection> tabList = (from t in content.ChildControls
select t).OfType<TabSection>().ToList();
List<Paragraph> paragraphList = (from t in tabList
from p in t.ChildControls
select p).OfType<Paragraph>().ToList();
List<Line> parentLineList = (from p in paragraphList
from pl in p.ChildControls
select pl).OfType<Line>().ToList();
The code continues on with a a few more queries, but the gist is I have to create a List out of each query in order for the compiler to know that all of the objects in content.ChildControls are of type TabSection and all of the objects in t.ChildControls are of type Paragraph...and so and and so forth.
Is there a way within the LINQ query to tell the compiler that "t" in "from t in content.ChildControls" is a TabSection? | 0 | [
2,
845,
21,
1325,
363,
21,
6294,
1251,
25597,
800,
3726,
3726,
25,
32,
938,
20,
107,
21,
1325,
363,
21,
6294,
1251,
25597,
13,
5,
1106,
14,
21486,
22,
18,
8132,
6,
60,
14,
249,
1797,
2532,
22,
38,
5803,
15,
47,
32,
83,
44,
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... |
Do you always use nouns for class names?
===
I was inspired to ask this here based on this [blog post.][1] Do you always try to use nouns for class names?
[1]: http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html | 0 | [
2,
107,
42,
550,
275,
12072,
18,
26,
718,
1817,
60,
800,
3726,
3726,
31,
23,
3054,
20,
1349,
48,
235,
432,
27,
48,
636,
220,
5567,
678,
9,
500,
2558,
165,
500,
107,
42,
550,
1131,
20,
275,
12072,
18,
26,
718,
1817,
60,
636,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Same Presenter working with different Repositories
===
You do you manage the same presenter working with different repositories using the MVP pattern?
I just have multiple constructor overloads and the presenter simply uses the one that is suitable for the scenario.
AddCustomerPresenter presenter = new AddCustomerPresenter(this,customerRepository);
presenter.AddCustomer();
presenter = new AddCustomerPresenter(this,archiveRepository);
presenter.Archive();
| 0 | [
2,
205,
9391,
638,
29,
421,
302,
14882,
262,
2829,
800,
3726,
3726,
42,
107,
42,
4705,
14,
205,
9391,
638,
29,
421,
302,
14882,
262,
2829,
568,
14,
13552,
3732,
60,
31,
114,
57,
1886,
6960,
248,
84,
8294,
18,
17,
14,
9391,
1659,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What to do when 'svn cleanup' fails?
===
I have a lot of changes in a working folder, and something screwed up trying to do an update.
Now when I issue an 'svn cleanup' I get:
>svn cleanup .
svn: In directory '.'
svn: Error processing command 'modify-wcprop' in '.'
svn: 'MemPoolTests.cpp' is not under version control
MemPoolTests.cpp is a new file another developer added and was brought down in the update. It did not exist in my working folder before.
Is there anything I can do to try and move forward **without** having to checkout a fresh copy of the repository? | 0 | [
2,
98,
20,
107,
76,
13,
22,
18,
16578,
26862,
22,
13614,
60,
800,
3726,
3726,
31,
57,
21,
865,
16,
1693,
19,
21,
638,
19294,
15,
17,
301,
16456,
71,
749,
20,
107,
40,
11100,
9,
130,
76,
31,
1513,
40,
13,
22,
18,
16578,
26862... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 delete a dirset of directories with Ant?
===
I want to delete all directories and subdirectories under a root directory that are contain "tmp" in their names. My first guess is to use
<delete>
<dirset dir="${root}">
<include name="**/*tmp*" />
</dirset>
</delete>
This does not seem to work as you can't nest a ``dirset`` in a ``delete`` tag.
Is this a correct approach, or should I be doing something else?
* ant version == 1.6.5.
* java version == 1.6.0_04
| 0 | [
2,
184,
107,
31,
27448,
21,
13,
9035,
3554,
16,
559,
1596,
29,
40,
38,
60,
800,
3726,
3726,
31,
259,
20,
27448,
65,
559,
1596,
17,
972,
10197,
1596,
131,
21,
5900,
16755,
30,
50,
3717,
13,
7,
38,
2554,
7,
19,
66,
1817,
9,
51... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
onbeforeunload support detection
===
I'd like to check if the current browser supports the onbeforeunload event.
The common javascript way to do this does not seem to work:
if (window.onbeforeunload) {
alert('yes');
}
else {
alert('no');
}
Actually, it only checks whether some handler has been attached to the event.
Is there a way to detect if onbeforeunload is supported without detecting the particular browser name? | 0 | [
2,
27,
12750,
1020,
8294,
555,
11643,
800,
3726,
3726,
31,
22,
43,
101,
20,
2631,
100,
14,
866,
16495,
6747,
14,
27,
12750,
1020,
8294,
807,
9,
14,
757,
8247,
8741,
161,
20,
107,
48,
630,
52,
2260,
20,
170,
45,
100,
13,
5,
275... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
TCP Connection Life
===
How long can I expect a client/server TCP connection to last in the wild?
I want it to stay permanently connected, but things happen, so the client will have to reconnect. At what point do I say that there's a problem in the code rather than there's a problem with some external equipment? | 0 | [
2,
13,
38,
7439,
2760,
201,
800,
3726,
3726,
184,
175,
92,
31,
4186,
21,
6819,
118,
10321,
106,
13,
38,
7439,
2760,
20,
236,
19,
14,
1808,
60,
31,
259,
32,
20,
1179,
8384,
2587,
15,
47,
564,
2384,
15,
86,
14,
6819,
129,
57,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Spreadsheet Like Functionality In WebApp
===
I have a webapp for commercial property management that needs spreadsheet like functionality. We need the spreadsheet like functionality for doing budgets. I don't want to use Google spreadsheet because my users won't necessarily have a Google account.
So is there anything out there that I could use? I looked and could only find [SocialCalc](http://www.socialcalc.org/) which wasn't quite good enough for me. | 0 | [
2,
1789,
17627,
101,
18548,
19,
2741,
7753,
800,
3726,
3726,
31,
57,
21,
2741,
7753,
26,
1439,
1354,
1097,
30,
2274,
1789,
17627,
101,
18548,
9,
95,
376,
14,
1789,
17627,
101,
18548,
26,
845,
3391,
18,
9,
31,
221,
22,
38,
259,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it OK to use HttpRuntime.Cache outside ASP.NET applications?
===
Scott Hanselman [says yes][1].
> Adding System.Web to your non-web project is a good way to get folks to panic. Another is adding a reference to Microsoft.VisualBasic in a C# application. Both are reasonable and darned useful things to do, though.
MSDN [says no][2].
>The Cache class is not intended for use outside of ASP.NET applications. It was designed and tested for use in ASP.NET to provide caching for Web applications. In other types of applications, such as console applications or Windows Forms applications, ASP.NET caching might not work correctly.
So what should I think?
[1]: http://www.hanselman.com/blog/UsingTheASPNETCacheOutsideOfASPNET.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.web.caching.cache.aspx | 0 | [
2,
25,
32,
5854,
20,
275,
7775,
3169,
891,
9,
793,
2569,
719,
28,
306,
9,
2328,
3767,
60,
800,
3726,
3726,
1824,
4800,
19965,
636,
6366,
18,
1643,
500,
2558,
165,
500,
9,
13,
1,
4721,
329,
9,
14113,
20,
154,
538,
8,
14113,
669... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to properly clean up Excel interop objects in C#
===
I'm using the Excel interop in C# (ApplicationClass) and have placed the following code in my finally clause:
while (System.Runtime.InteropServices.Marshal.ReleaseComObject(excelSheet) != 0) { }
excelSheet = null;
GC.Collect();
GC.WaitForPendingFinalizers();
Although, this kind of works the Excel.exe process is still in the background even after I close Excel. It is only released once my application is manually closed.
Anyone realise what i am doing wrong, or has an alternative to ensure interop objects are properly disposed of.
Thanks. | 0 | [
2,
184,
20,
7428,
2745,
71,
20700,
1480,
2594,
3916,
19,
272,
5910,
800,
3726,
3726,
31,
22,
79,
568,
14,
20700,
1480,
2594,
19,
272,
5910,
13,
5,
2552,
20669,
1898,
6,
17,
57,
1037,
14,
249,
1797,
19,
51,
722,
9040,
45,
133,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 find the largest font size that won't break a given text?
===
I'm trying to use CSS (under `@media print`) and JavaScript to print a one-page document with a given piece of text made as large as possible while still fitting inside a given width. The length of the text is not known beforehand, so simply using a fixed-width font is not an option.
To put it another way, I'm looking for proper resizing, so that, for example, "IIIII" would come out in a much larger font size than "WWWWW" because "I" is much skinnier than "W" in a variable-width font.
The closest I've been able to get with this is using JavaScript to try various font sizes until the `clientWidth` is small enough. While this works well enough for screen media, when you switch to print media, is there any guarantee that the 90 DPI I appear to get on my system (i.e., I put the margins to 0.5in either side, and for a text resized so that it fits just within that, I get about 675 for `clientWidth`) will be the same anywhere else? How does a browser decide what DPI to use when converting from pixel measurements? Is there any way I can access this information using JavaScript?
I would love it if this were just a CSS3 feature (`font-size:max-for-width(7.5in)`) but if it is, I haven't been able to find it. | 0 | [
2,
184,
107,
42,
477,
14,
1075,
9978,
1072,
30,
230,
22,
38,
1442,
21,
504,
1854,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
275,
272,
18,
18,
13,
5,
4579,
13,
1,
8260,
4793,
1,
6,
17,
8247,
8741,
20,
4793,
21,
53,
8,
6486,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 efficiently generate a list of K non-repeating integers between 0 and an upper bound N
===
The question gives all necessary data: what is an efficient algorithm to generate a sequence of K non-repeating integers within a given interval. The trivial algorithm (generating random numbers and, before adding them to the sequence, looking them up to see if they were already there) is very expensive if K is large and near enough to N.
The algorithm provided [here][1] seems more complicated than necessary, and requires some implementation. I've just found another algorithm that seems to do the job fine, as long as you know all the relevant parameters, in a single pass.
[1]: http://stackoverflow.com/questions/54059/efficiently-selecting-a-set-of-random-elements-from-a-linked-list | 0 | [
2,
184,
107,
42,
20519,
7920,
21,
968,
16,
680,
538,
8,
99,
1664,
1880,
13820,
18,
128,
713,
17,
40,
1508,
4138,
13,
103,
800,
3726,
3726,
14,
1301,
2352,
65,
2378,
1054,
45,
98,
25,
40,
8243,
9083,
20,
7920,
21,
4030,
16,
680... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 information has been release regarding the .net Framework 4.0?
===
As Microsoft seem to have started their trickle-feed of information regarding .net 4.0, I thought I'd ask the question as I'm sure there's more out there than I've spotted!
Hopefully this will be considered a valid question, and as more information is released people on here will add more reference links... | 0 | [
2,
98,
676,
63,
74,
830,
3467,
14,
13,
9,
2328,
6596,
268,
9,
387,
60,
800,
3726,
3726,
28,
7099,
2260,
20,
57,
373,
66,
19640,
8,
20954,
16,
676,
3467,
13,
9,
2328,
268,
9,
387,
15,
31,
289,
31,
22,
43,
1349,
14,
1301,
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... |
How would you migrate a multi-site ClearCase/ClearQuest environment to all Open Source?
===
I work in an multi-site environment that's currently using Rational ClearCase for source control and Rational ClearQuest for issue tracking (I accept your condolences ahead of time). As a rough estimate I would say this is supporting 200 engineers.
How would you effectively migrate this SCM methodology to a comparative, all Open Source tool suite? Not only would this save literally hundreds of thousands of dollars but I also believe it would improve developer productivity and very little downtime compared to the current system.
Platforms in use include Windows, Linux, UNIX and Solaris. | 0 | [
2,
184,
83,
42,
22985,
21,
1889,
8,
9097,
1207,
10325,
118,
18600,
10351,
2307,
20,
65,
368,
1267,
60,
800,
3726,
3726,
31,
170,
19,
40,
1889,
8,
9097,
2307,
30,
22,
18,
871,
568,
7511,
1207,
10325,
26,
1267,
569,
17,
7511,
1207... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 appropriate use for ASP.NET's MultiView control?
===
What are some scenarios where MultiView would be a good choice? The MultiView control along with its View controls simply seem to extend the notion of Panels.
Both Panels and MultiViews seem prone to abuse. If your UI concerns and biz logic concerns are properly separated, why lump views together in a single ASPX?
| 0 | [
2,
98,
25,
40,
4593,
275,
26,
28,
306,
9,
2328,
22,
18,
1889,
4725,
569,
60,
800,
3726,
3726,
98,
50,
109,
19611,
113,
1889,
4725,
83,
44,
21,
254,
1837,
60,
14,
1889,
4725,
569,
303,
29,
82,
1418,
8671,
1659,
2260,
20,
7206,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 combine multipl images into a single one using javascript?
===
I am wondering if there is a way to combine multiple images into a single image using only javascript. Is this something that Canvas will be able to do. The effect can be done with positing, but can you combine them into a single image for download? | 0 | [
2,
92,
42,
12287,
1889,
5727,
3502,
77,
21,
345,
53,
568,
8247,
8741,
60,
800,
3726,
3726,
31,
589,
5712,
100,
80,
25,
21,
161,
20,
12287,
1886,
3502,
77,
21,
345,
1961,
568,
104,
8247,
8741,
9,
25,
48,
301,
30,
9696,
129,
44,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best image manipulation library?
===
I would love find out which is the best image manipulation library for which platforms and languages. Likely you could use a library under multiple platforms with the right API or Plugin capabilities. I'm specifically looking for web based applications, but please answer for desktop apps as well if you like.
By Language:
- **Asp.Net:** [System.Drawing][1] | [Cairo][2]
- **PHP:** [GD][3] | [ImageMagic][4]
By Library:
- [Cairo][2] : C++, Lisp, Haskell, Java, Mono, .Net, Perl, PHP, Python, Ruby, Scheme
- [GD][3] : PHP
- [ImageMagic][4] : C, C++, Java, Lisp, .NET, Pascal, Perl, PHP, Python, Ruby
- [System.Drawing][1] : .Net
[1]: http://msdn.microsoft.com/en-us/library/system.drawing.aspx
[2]: http://cairographics.org/
[3]: http://us3.php.net/gd
[4]: http://www.imagemagick.org/script/index.php | 4 | [
2,
98,
25,
14,
246,
1961,
17561,
1248,
60,
800,
3726,
3726,
31,
83,
339,
477,
70,
56,
25,
14,
246,
1961,
17561,
1248,
26,
56,
6843,
17,
2556,
9,
1720,
42,
110,
275,
21,
1248,
131,
1886,
6843,
29,
14,
193,
21,
2159,
54,
10922,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using Linq with WCF
===
I am looking for any examples or guides to using Linq over WCF (n-tier application). Please specify if you are showing something for Linq-to-SQL or Linq-to-entities. I would like to see usage examples for both.
I am wondering how things like deffered execution works over WCF (if it works at all)? Cyclic references support and so on...
Any information to make this a quick start guide to using Linq with WCF is helpful. | 0 | [
2,
568,
6294,
1251,
29,
11801,
410,
800,
3726,
3726,
31,
589,
699,
26,
186,
3770,
54,
14838,
20,
568,
6294,
1251,
84,
11801,
410,
13,
5,
103,
8,
5259,
3010,
6,
9,
2247,
19077,
100,
42,
50,
3187,
301,
26,
6294,
1251,
8,
262,
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... |
Amazon - EC2 costing?
===
1 am thinking of hosting a python based app on Amazon EC2. It will be really helpful to know the costing of EC2 and S3 combo.
Does typical ($7/month) shared hosting compare to the bandwidth cost + EC2 1 instance + S3 storage? (will the cost difference be minimal?)
I understand that all this varies, Can you share your cost/month and your experiences with Amazon cloud in general.
PS: I am not looking for the comments on the unexpected downtime and closed SLA etc. | 0 | [
2,
8059,
13,
8,
6695,
135,
1516,
68,
60,
800,
3726,
3726,
137,
589,
1440,
16,
10637,
21,
20059,
432,
4865,
27,
8059,
6695,
135,
9,
32,
129,
44,
510,
15600,
20,
143,
14,
1516,
68,
16,
6695,
135,
17,
13,
18,
240,
22621,
9,
630,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 books to learn about design
===
What books do you recommend for a programmer who wants to learn about design?
I'm interested both in graphic design (use of whitespace, fonts and colors) and human-computer interaction (usability, accessibility and user experience). | 4 | [
2,
246,
964,
20,
2484,
88,
704,
800,
3726,
3726,
98,
964,
107,
42,
12360,
26,
21,
17968,
72,
2846,
20,
2484,
88,
704,
60,
31,
22,
79,
3158,
156,
19,
8479,
704,
13,
5,
3699,
16,
359,
5582,
15,
9978,
18,
17,
5268,
6,
17,
585,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
C# Windows Service - Handle Exception on Startup
===
I'm writing a series of Windows services. I want them to fail if errors are thrown during startup (OnStart). I had assumed that merely throwing an error in OnStart would do this, but I'm finding that instead it "Starts" and presents me with a message stating "The service has started, but is inactive. Is this correct?" (Paraphrase). How do I handle the error so it actually fails to start the service? | 0 | [
2,
272,
5910,
1936,
365,
13,
8,
3053,
5391,
27,
20205,
800,
3726,
3726,
31,
22,
79,
1174,
21,
231,
16,
1936,
687,
9,
31,
259,
105,
20,
7476,
100,
11908,
50,
6027,
112,
20205,
13,
5,
218,
13680,
6,
9,
31,
41,
3632,
30,
5494,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are there any data warehouse frameworks?
===
I've got a lot of mysql data that I need to generate reports from. It's mostly historic data so it won't be changing much, but it weighs in at 20-30 gigabytes easily and is expected to grow. I currently have a collection of php scripts that will do some complex queries and output csv and excel files. I also use phpMyAdmin with bookmarked queries. I manually edit them to change the parameters. The amount of data is growing and the number of people who need access to it is also growing, so I'm making the time to improve this situation.
I started reading about data warehousing the other day and it seems that this an area that relates to what I need to do. I've read [some][1] [good][2] [articles][3] and am even waiting on a book. I think I'm getting a handle on what these sorts of systems do and what's possible.
Creating a reporting system for my data has always been on a todo list, but until recently I figured it would be a highly niche programing venture. Since I now know data warehousing is a common thing, I figure there must be some sort of reporting/warehousing frames available to ease in the development. I'd gladly skip writing interfaces and scripts to schedule and email reports and the like and stick to writing queries and setting up relations.
I've mostly been a lamp guy, but I'm not above switching languages or platforms. I just need a more robust solution as my one off scripts don't scale well.
So where's a good place to get started?
[1]: http://philip.greenspun.com/wtr/data-warehousing.html
[2]: http://www.meansandends.com/mysql-data-warehouse/?link_body/body={incl:Aggregation}
[3]: http://en.wikipedia.org/wiki/Data_warehouse | 0 | [
2,
50,
80,
186,
1054,
8308,
6596,
18,
60,
800,
3726,
3726,
31,
22,
195,
330,
21,
865,
16,
51,
18,
22402,
1054,
30,
31,
376,
20,
7920,
2813,
37,
9,
32,
22,
18,
1555,
1310,
1054,
86,
32,
230,
22,
38,
44,
4226,
212,
15,
47,
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... |
Implementation Patterns: a function returns a Date, but it is reasonable that a date won't be found, return null or try to apply the NULL object pattern?
===
So let's say you have a function that returns a date
Date myFunc(paramA, paramB){
//conditionally return a date?
}
So is it appropriate to return null from this function? This seems ugly because it forces clients to check for null.
The "null object" pattern is an implementation pattern that addresses this concern.
I'm not a huge fan of the null object pattern, but yes it makes sense to always return a list, even if is empty than to return a null....
However, say in Java, a null date would be one that is cleared and has the year 1970.
So what does everyone think is the best implementation pattern here?
| 0 | [
2,
6123,
6282,
45,
21,
1990,
4815,
21,
1231,
15,
47,
32,
25,
9954,
30,
21,
1231,
230,
22,
38,
44,
216,
15,
788,
16203,
54,
1131,
20,
5645,
14,
16203,
3095,
3732,
60,
800,
3726,
3726,
86,
408,
22,
18,
395,
42,
57,
21,
1990,
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... |
Update fonts recursively on a Delphi form
===
I'm trying to iterate all the controls on a form and enable ClearType font smoothing. Something like this:
procedure TForm4.UpdateControls(AParent: TWinControl);
var
I: Integer;
ACtrl: TControl;
tagLOGFONT: TLogFont;
begin
for I := 0 to AParent.ControlCount-1 do
begin
ACtrl:= AParent.Controls[I];
// if ParentFont=False, update the font here...
if ACtrl is TWinControl then
UpdateControls(Ctrl as TWinControl);
end;
end;
Now, is there a easy way to check if `ACtrl` have a `Font` property so i can pass the `Font.Handle` to somethink like:
GetObject(ACtrl.Font.Handle, SizeOf(TLogFont), @tagLOGFONT);
tagLOGFONT.lfQuality := 5;
ACtrl.Font.Handle := CreateFontIndirect(tagLOGFONT);
Thank you in advance. | 0 | [
2,
11100,
9978,
18,
302,
24244,
102,
27,
21,
23030,
505,
800,
3726,
3726,
31,
22,
79,
749,
20,
32,
106,
1373,
65,
14,
8671,
27,
21,
505,
17,
9240,
1207,
4474,
9978,
3905,
68,
9,
301,
101,
48,
45,
7004,
13,
38,
4190,
300,
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 way to override ConfigurationManager.AppSettings?
===
I really want to be able to have a way to take an app that currently gets its settings using **ConfigurationManager.AppSettings["mysettingkey"]** to actually have those settings come from a centralized database instead of the app.config file. I can make a custom config section for handling this sort of thing, but I really don't want other developers on my team to have to change their code to use my new DbConfiguration custom section. I just want them to be able to call AppSettings the way they always have but have it be loaded from a central database.
Any ideas? | 0 | [
2,
25,
80,
21,
161,
20,
84,
11891,
8091,
22256,
9,
7753,
19831,
18,
60,
800,
3726,
3726,
31,
510,
259,
20,
44,
777,
20,
57,
21,
161,
20,
247,
40,
4865,
30,
871,
3049,
82,
12410,
568,
13,
1409,
1126,
13549,
857,
22256,
9,
7753,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Change .NET Framework version of application pool to 3.5?
===
I've installed .NET Framework 3.5 SP1 on web server (Server 2008 Enterprise), so running IIS 7.0.
I want to change the version of .NET Framework used by an existing site. So I right-click on appropriate Application Pool and selected Edit Application Pool. The .NET Framework dropdown does not include an explicit entry for framework 3.5, but just 2.0.50727.
Does anyone know off the top of their head--is this just because the version of the core RTL in 3.5 is still 2.0? Or do I need to do something additional to get IIS to see version 3.5? (Did try restarting IIS).
Thanks! | 0 | [
2,
753,
13,
9,
2328,
6596,
615,
16,
3010,
3067,
20,
203,
9,
264,
60,
800,
3726,
3726,
31,
22,
195,
4066,
13,
9,
2328,
6596,
203,
9,
264,
3782,
165,
27,
2741,
8128,
13,
5,
10321,
106,
570,
6002,
6,
15,
86,
946,
595,
18,
453,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jEditable - problem with input-box styling.
===
First time i try out this service. Looks promising :D
I am trying to style an input-box that is being rendered by the jQuery-plugin jEditable.
What I basically want is to only change the color of the table-cell when the text is double-clicked and made editable. Like this:
![alt text][1]
This is where I am at the moment: [jEditable CSS Problem][2] ( double-click the text in the table-cells )
HTML snippet:
<tr class="odd">
<td class="dblclick" headers="customer-name">Drogo Shankara</td>
<td class="dblclick" headers="mail">dshan@gmail.com</td>
<td class="dblclick" headers="type">Web</td>
<td class="dblclick" headers="status">Pending mail</td>
</tr>
Here is my jQuery-code:
$(function() {
$(".dblclick").editable("#", {
tooltip : "Doubleclick to edit...",
event : "dblclick",
css : 'inherit'
});
});
And the corresponding CSS:
.dblclick form {
height: inherit !important;
width: inherit !important;
border: 0;
margin: 0;
padding: 0;
background: red;
}
.dblclick input {
height: inherit !important;
width: inherit !important;
border: 0;
margin: 0;
padding: 0;
font: inherit;
color: inherit;
}
I want the input-box to inherit the height & width from the parent table-cell, but when I look at the input-box in Firebug it has an inline css height & width already set, causing the table-cell to scale when the td-text is pressed. I try to override the inline css with `inherit !important`, but it doesn't work.
Obviously there is some concept in play here, that I haven't fully understood. I am a Javascript & jQuery n00b so it could be something totally banal.
*Any ideas what could be wrong?*
[1]: http://www.hongaijitsu.com/temp/foobar/public/Picture-2.png
[2]: http://www.hongaijitsu.com/temp/foobar/public/dashboard.html | 0 | [
2,
12671,
242,
579,
13,
8,
1448,
29,
6367,
8,
5309,
23020,
9,
800,
3726,
3726,
64,
85,
31,
1131,
70,
48,
365,
9,
1879,
10466,
13,
45,
43,
31,
589,
749,
20,
1034,
40,
6367,
8,
5309,
30,
25,
142,
10877,
34,
14,
487,
8190,
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... |
How hard is it to migrate a web app from localhost to a hosting platform?
===
Since I'm not a huge fan of any of the current solutions for managing the resources and knowledge that I have, I was thinking about making my own solution, which will involve custom code as well as possible integration of FOSS solutions. I would start development on my local machine, but if I like it, how difficult would it be to migrate over to a public server and let others also use this tool? What kinds of challenges might I be facing? | 0 | [
2,
184,
552,
25,
32,
20,
22985,
21,
2741,
4865,
37,
375,
11694,
20,
21,
10637,
2452,
60,
800,
3726,
3726,
179,
31,
22,
79,
52,
21,
2329,
2514,
16,
186,
16,
14,
866,
6776,
26,
5616,
14,
2566,
17,
1918,
30,
31,
57,
15,
31,
23,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Create JSON with .net
===
First off, let me start off that I am not a .net developer. The reason why I am asking this question is that we rolled out our REST-API and one of our first integration partners is a .net shop.
So basically we **ass**umed that .net would provide some sort of wrapper to create JSON, but the developer in question created the *string* by hand. I've researched this topic a bit and I couldn't really find anything, though I believe .net provides something. :)
'current code
Dim data As String
data = "[hello, world]"
In PHP I would do the following (assuming ext/json is available ;):
<?php
$json = array('hello', 'world');
$json = json_encode($json);
I am also interested in what you use to decode the json into an array/object structure.
Help is very appreciated. | 0 | [
2,
1600,
487,
528,
29,
13,
9,
2328,
800,
3726,
3726,
64,
168,
15,
408,
55,
799,
168,
30,
31,
589,
52,
21,
13,
9,
2328,
10058,
9,
14,
1215,
483,
31,
589,
3379,
48,
1301,
25,
30,
95,
2958,
70,
318,
760,
8,
2552,
49,
17,
53,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Managed C++ Assembly Attributes
===
Is there a way to add assembly attributes to a Managed C++ assembly? IE, specifically in C# in the AssemblyInfo.cs file, you'd typically have something like this:
<code>[assembly: AssemblyTitle("Some Assembly")]</code>
I have a private assembly attribute that I want to add (not one of the version attributes that could be added through a resource file), and am not sure if its possible.
| 0 | [
2,
1471,
272,
20512,
1475,
13422,
800,
3726,
3726,
25,
80,
21,
161,
20,
3547,
1475,
13422,
20,
21,
1471,
272,
20512,
1475,
60,
13,
660,
15,
3524,
19,
272,
5910,
19,
14,
1475,
108,
4120,
9,
6824,
3893,
15,
42,
22,
43,
2442,
57,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Random element in a map
===
what is a good way to select a random element from a map? C++. It is my understanding that maps don't have random access iterators. The key is a long long and the map is sparsely populated. | 0 | [
2,
5477,
4520,
19,
21,
2942,
800,
3726,
3726,
98,
25,
21,
254,
161,
20,
5407,
21,
5477,
4520,
37,
21,
2942,
60,
272,
20512,
9,
32,
25,
51,
3260,
30,
6867,
221,
22,
38,
57,
5477,
1381,
32,
106,
9922,
9,
14,
1246,
25,
21,
175,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... |
Whats the best pop-up dialog box for Ruby on Rails
===
I want to use modal pop-up windows in our web app in Ruby on Rails. Note that I don't want to create a new browser window, but a sub-window inside the existing webpage. We've tried things like TinyBox, but there are issues with returning error information from inside the controller. Any good method or tool that works well in ruby? | 0 | [
2,
98,
18,
14,
246,
1675,
8,
576,
28223,
1649,
26,
10811,
27,
2240,
18,
800,
3726,
3726,
31,
259,
20,
275,
13,
20756,
1675,
8,
576,
1936,
19,
318,
2741,
4865,
19,
10811,
27,
2240,
18,
9,
1945,
30,
31,
221,
22,
38,
259,
20,
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... |
creating a file progress bar in php
===
Does anyone know of any methods to create a file upload progress bar in PHP? I have often heard that it's impossible.
I have one idea, but not sure if it would work: have a normal file upload, but instead submit to an iframe. When this is submitted, store the file information (size and temp location) in the session. At the same time, start an AJAX call to every say 10 seconds to check the size of the file compared to the size stored in the session. This would return the size to the AJAX and then a progress bar would be sized and maybe display the uploaded size to the user.
Thoughts? | 0 | [
2,
2936,
21,
3893,
3455,
748,
19,
13,
26120,
800,
3726,
3726,
630,
1276,
143,
16,
186,
3195,
20,
1600,
21,
3893,
71,
8294,
3455,
748,
19,
13,
26120,
60,
31,
57,
478,
752,
30,
32,
22,
18,
3992,
9,
31,
57,
53,
882,
15,
47,
52,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Knowing whether SubVersion working copy has been updated
===
Is there a way to have a file that is modified / touched whenever the WC is updated to a new revision? Or, as the second-best option, whenever `svn update` is executed?
Here's the motivation: I want to have the SVN revision number inside my executable. So I have to run SubWCRev as part of the build. The output file of SubWCRev is re-created every time, even if the revision number has not changed. This means that the exe is linked on every build, even if nothing has changed. I want it to be linked only as needed. | 0 | [
2,
2506,
1472,
972,
10898,
638,
4344,
63,
74,
6372,
800,
3726,
3726,
25,
80,
21,
161,
20,
57,
21,
3893,
30,
25,
5372,
13,
118,
3491,
6634,
14,
11801,
25,
6372,
20,
21,
78,
11323,
60,
54,
15,
28,
14,
153,
8,
4936,
4255,
15,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Am I subscribe to YUI Menu events improperly?
===
I've read and followed [YUI's tutorial](http://developer.yahoo.com/yui/menu/) for subscribing to Menu events. I also looked through the API and bits of the code for Menu, MenuBar, and Custom Events, but the following *refuses* to work
// oMenuBar is a MenuBar instance with submenus
var buyMenu = oMenuBar.getSubmenus()[1];
// this works
buyMenu.subscribe('show', onShow, {foo: 'bar'}, false);
// using the subscribe method doesn't work
buyMenu.subscribe('mouseOver', onMouseOver, {foo: 'bar'}, false);
// manually attaching a listener doesn't work
YAHOO.util.Event.addListener(buyMenu, 'mouseOver', onMouseOver);
// http://developer.yahoo.com/yui/docs/YAHOO.widget.Menu.html#event_keyPressEvent
// there is a keyPress Event, but no spelling of it will trigger the handler
buyMenu.subscribe('keypress', onShow, {foo: 'bar'}, false);
buyMenu.subscribe('keypressed', onShow, {foo: 'bar'}, false);
buyMenu.subscribe('keyPressed', onShow, {foo: 'bar'}, false);
buyMenu.subscribe('keyPress', onShow, {foo: 'bar'}, false);
Functionally, I'm trying to attach a keyPress listener for each submenu of the MenuBar. I do not want to add Bubbling library as a dependency. | 0 | [
2,
589,
31,
13,
20330,
20,
2600,
49,
11379,
963,
22243,
102,
60,
800,
3726,
3726,
31,
22,
195,
1302,
17,
709,
636,
4703,
49,
22,
18,
29724,
500,
5,
21127,
6903,
26051,
106,
9,
1046,
8884,
9,
960,
118,
4703,
49,
118,
755,
291,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are doubles faster than floats in c#?
===
I'm writing an application which reads large arrays of floats and performs some simple operations with them. I'm using floats because I thought it'd be faster than doubles, but after doing some research I've found that there's some confusion about this topic. Can anyone elaborate on this?
Thanks. | 0 | [
2,
50,
7784,
4233,
119,
11510,
18,
19,
272,
5910,
60,
800,
3726,
3726,
31,
22,
79,
1174,
40,
3010,
56,
11137,
370,
7718,
18,
16,
11510,
18,
17,
11563,
109,
1935,
1311,
29,
105,
9,
31,
22,
79,
568,
11510,
18,
185,
31,
289,
32,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Limiting HTML Input into Text Box
===
How do I limit the types of HTML that a user can input into a textbox? I'm running a small forum using some custom software that I'm beta testing, but I need to know how to limit the HTML input. Any suggestions? | 0 | [
2,
17567,
13,
15895,
6367,
77,
1854,
1649,
800,
3726,
3726,
184,
107,
31,
4496,
14,
2551,
16,
13,
15895,
30,
21,
4155,
92,
6367,
77,
21,
1854,
5309,
60,
31,
22,
79,
946,
21,
284,
5691,
568,
109,
5816,
2306,
30,
31,
22,
79,
843... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 make a Windows Forms .NET application display as tray icon?
===
What needs to be done to have your .NET application show up in Window's system tray as icon?
And how do you handle mousebutton clicks on said icon?
| 0 | [
2,
184,
20,
233,
21,
1936,
1997,
13,
9,
2328,
3010,
3042,
28,
10121,
9801,
60,
800,
3726,
3726,
98,
2274,
20,
44,
677,
20,
57,
154,
13,
9,
2328,
3010,
298,
71,
19,
1463,
22,
18,
329,
10121,
28,
9801,
60,
17,
184,
107,
42,
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,
0,
0,
0,
0,
0,
0,
0... |
MFC File upload
===
How would I upload a file to a webserver using c++ and MFC. We are not using .Net. Would I need to open a socket and do everything myself? If so, where is a good reference to follow? | 0 | [
2,
307,
7061,
3893,
71,
8294,
800,
3726,
3726,
184,
83,
31,
71,
8294,
21,
3893,
20,
21,
2741,
10321,
106,
568,
272,
20512,
17,
307,
7061,
9,
95,
50,
52,
568,
13,
9,
2328,
9,
83,
31,
376,
20,
368,
21,
18482,
17,
107,
796,
992... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Cropping a UIImage
===
I've got some code that resizes an image so I can get a scaled chunk of the center of the image - I use this to take a `UIImage` and return a small, square representation of an image, similar to what's seen in the album view of the Photos app. (I know I could use a `UIImageView` and adjust the crop mode to achieve the same results, but these images are sometimes displayed in `UIWebViews`).
I've started to notice some crashes in this code and I'm a bit stumped. I've got two different theories and I'm wondering if either is on-base.
Theory 1) I achieve the cropping by drawing into an offscreen image context of my target size. Since I want the center portion of the image, I set the `CGRect` argument passed to `drawInRect` to something that's larger than the bounds of my image context. I was hoping this was Kosher, but am I instead attempting to draw over other memory that I shouldn't be touching?
Theory 2) I'm doing all of this in a background thread. I know there are portions of UIKit that are restricted to the main thread. I was assuming / hoping that drawing to an offscreen view wasn't one of these. Am I wrong?
(Oh, how I miss `NSImage's drawInRect:fromRect:operation:fraction:` method.) | 0 | [
2,
4880,
5574,
21,
13,
5661,
22039,
800,
3726,
3726,
31,
22,
195,
330,
109,
1797,
30,
10719,
13569,
40,
1961,
86,
31,
92,
164,
21,
22960,
15009,
16,
14,
459,
16,
14,
1961,
13,
8,
31,
275,
48,
20,
247,
21,
13,
1,
5661,
22039,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Easiest way to migrate Word 2003 custom macro toolbars into Word 2007?
===
I have a series of macros and toolbars that I developed for Word 2003. Now that my office is upgrading to Word 2007, I need to migrate them. The macros themselves migrate with zero effort, but the toolbars are a different issue. A random subset of the toolbars show up in the "Add-Ins" ribbon tab, but I haven't found a way to control which ones.
Something that may be a complication is that I deploy the macros by placing a template into a user's Word STARTUP folder (C:\Documents and Settings\username\Application Data\Microsoft\Word\STARTUP). While I can add macros from normal.dot into the Quick Access Toolbar, I cannot add macros from this startup template. I'd like a better, more structured layout anyway.
So, what's the easiest way to replicate my custom macro toolbars in Word 2007? | 0 | [
2,
27237,
161,
20,
22985,
833,
973,
5816,
9069,
5607,
1850,
18,
77,
833,
624,
60,
800,
3726,
3726,
31,
57,
21,
231,
16,
9069,
18,
17,
5607,
1850,
18,
30,
31,
885,
26,
833,
973,
9,
130,
30,
51,
488,
25,
26939,
20,
833,
624,
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... |
Why I can't parse a SimpleDateFormat with pattern "MMMMM dd" in Java?
===
I need to parse a string like "February 12, 1981" as a Date. I use [SimpleDateFormat][1]. But if I do:
new SimpleDateFormat("MMMMM dd, yyyy").parse("February 12, 1981")
I get java.text.ParseException.
I tried to reduce it to see where the problem is. First:
new SimpleDateFormat("MMMMM").parse("February")
works. Then:
new SimpleDateFormat("MMMMM dd").parse("February 12")
doesn't work anymore. Anyone know why? I also tried `new SimpleDateFormat("MMMMM' 'dd")`.
[1]: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html | 0 | [
2,
483,
31,
92,
22,
38,
2017,
870,
21,
1935,
8209,
23588,
29,
3732,
13,
7,
3363,
21798,
13,
8096,
7,
19,
8247,
60,
800,
3726,
3726,
31,
376,
20,
2017,
870,
21,
3724,
101,
13,
7,
9513,
390,
15,
2229,
7,
28,
21,
1231,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Resetting Buffers in Vim
===
Is it possible to reset the alternate buffer in a vim session to what it was previously?
By alternate buffer, I mean the one that is referred to by #, i.e. the one that is displayed when you enter cntl-^.
Say I've got two files open main.c and other.c and :ls gives me:
1 %a "main.c" lines 27
2 # "other.c" lines 56
Say I open another file, e.g. refer.c, :ls will now give me:
1 %a "main.c" lines 27
2 "other.c" lines 56
3 # "refer.c" lines 125
If I delete the buffer containing refer.c, :ls now shows:
1 %a "main.c" lines 27
2 "other.c" lines 56
and if I do a cntl-^, refer.c will be opened again!
Is there some way to get vim to reset the alternate buffer back to what it last was?
Or is there a good reason for this behaviour?
| 0 | [
2,
302,
19831,
17497,
18,
19,
1790,
79,
800,
3726,
3726,
25,
32,
938,
20,
23422,
14,
4912,
17497,
19,
21,
1790,
79,
3723,
20,
98,
32,
23,
1343,
60,
34,
4912,
17497,
15,
31,
884,
14,
53,
30,
25,
1870,
20,
34,
6926,
15,
31,
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... |
TFS checkin RSS feed
===
How can I to generate an RSS feed of Team Foundation Server commit messages?
In Visual Studio's Source Control Explorer, the "View History" option produces a nice GUI view. Likewise, the command line
tf history /recursive /stopafter:40 .
produces a nice *GUI* view. I'd like an RSS feed that would supply the same, or similar, information -- or even a way to wring some text out of TFS that I can reconstitute into RSS.
This is similar to the question, [Sending SVN commits to an RSS feed](http://stackoverflow.com/questions/125028/sending-svn-commits-to-an-rss-feed), but I do have control over the private TFS repository.
| 0 | [
2,
13,
11720,
18,
2631,
108,
13,
1224,
18,
4063,
800,
3726,
3726,
184,
92,
31,
20,
7920,
40,
13,
1224,
18,
4063,
16,
173,
1304,
8128,
9686,
7561,
60,
19,
3458,
1120,
22,
18,
1267,
569,
8520,
15,
14,
13,
7,
4725,
447,
7,
4255,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 legalities of repackaging other's RSS feeds into a new presentation?
===
I know that services like my.yahoo.com allow you to add content from RSS feeds to your personal page, but in general they are links which draw the user to the site which provided the feed. What are the legalities and implications of using RSS feeds as a data source for a site which repackages the data so as to be unrecognizable that it came from said source. Does credit need to be given? It is a copyright violation? What is ethical? | 0 | [
2,
98,
50,
14,
1517,
3808,
16,
302,
8573,
7426,
89,
22,
18,
13,
1224,
18,
17058,
77,
21,
78,
6364,
60,
800,
3726,
3726,
31,
143,
30,
687,
101,
51,
9,
1046,
8884,
9,
960,
1655,
42,
20,
3547,
2331,
37,
13,
1224,
18,
17058,
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... |
What types should I use to represent percentages in C# and SQL Server?
===
I'm thinking floats. For the record I'm also using NHibernate. | 0 | [
2,
98,
2551,
378,
31,
275,
20,
3501,
5780,
18,
19,
272,
5910,
17,
4444,
255,
8128,
60,
800,
3726,
3726,
31,
22,
79,
1440,
11510,
18,
9,
26,
14,
571,
31,
22,
79,
67,
568,
12109,
15191,
8820,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Changing Vim indentation behavior by file type
===
I have done some googling and I'm surprised that I haven't found this. COuld someone explain to me simply the easiest way to change the indentation behavior of vim based on the file type? For instance if I open a python file it would indent with 2 spaces, but if I open powershell it would use 4 spaces. | 0 | [
2,
4226,
1790,
79,
19,
817,
8593,
3257,
34,
3893,
1001,
800,
3726,
3726,
31,
57,
677,
109,
162,
5598,
802,
17,
31,
22,
79,
2948,
30,
31,
2933,
22,
38,
216,
48,
9,
110,
737,
3271,
20,
55,
1659,
14,
27237,
161,
20,
753,
14,
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... |
ASP.NET UpdatePanel Time Out
===
I'm making a request from an UpdatePanel that takes more then 90 seconds. I'm getting this timeout error.
"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out."
Does anyone know if there is a way to increase the amount of time before the the call times out? | 0 | [
2,
28,
306,
9,
2328,
11100,
3206,
532,
85,
70,
800,
3726,
3726,
31,
22,
79,
544,
21,
3772,
37,
40,
11100,
3206,
532,
30,
1384,
91,
94,
3151,
2582,
9,
31,
22,
79,
1017,
48,
85,
1320,
7019,
9,
13,
7,
22019,
12980,
487,
8741,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to relate objects from multiple contexts using the Entity Framework
===
I am **very** new to the entity framework, so please bear with me...
How can I relate two objects from different contexts together?
The example below throws the following exception:
> System.InvalidOperationException: The
> relationship between the two objects
> cannot be defined because they are
> attached to different ObjectContext
> objects.
void MyFunction()
{
using (TCPSEntities model = new TCPSEntities())
{
EmployeeRoles er = model.EmployeeRoles.First(p=>p.EmployeeId == 123);
er.Roles = GetDefaultRole();
model.SaveChanges();
}
}
private static Roles GetDefaultRole()
{
Roles r = null;
using (TCPSEntities model = new TCPSEntities())
{
r = model.Roles.First(p => p.RoleId == 1);
}
return r;
}
Using one context is not an option because we are using the EF in an ASP.NET application. | 0 | [
2,
184,
20,
16464,
3916,
37,
1886,
4141,
18,
568,
14,
9252,
6596,
800,
3726,
3726,
31,
589,
13,
1409,
7864,
1409,
78,
20,
14,
9252,
6596,
15,
86,
2247,
2746,
29,
55,
9,
9,
9,
184,
92,
31,
16464,
81,
3916,
37,
421,
4141,
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... |
Flex CSS swf throwing a supressed runtime error on the web only
===
I have a CSS swf that is working fine in a local application, but when it is loaded by a web-based application, the CSS fails silently. After running it through the debugger, I found this was being traced out.
A quick Google and leafing through Adobe's documentation hasn't turned up a single mention of this error.
<pre>
method not implemented mx.core::IFlexDisplayObject/mx.core:IFlexDisplayObject::setActualSize()
over-binding 0 in GlobalStyle__embed_css__319796825
accessor not implemented mx.core:IFlexDisplayObject::measuredHeight
over-binding 0 in GlobalStyle__embed_css__319796825
accessor not implemented mx.core:IFlexDisplayObject::measuredWidth
over-binding 0 in GlobalStyle__embed_css__319796825
method not implemented mx.core::IFlexDisplayObject/mx.core:IFlexDisplayObject::move()
over-binding 0 in GlobalStyle__embed_css__319796825
</pre>
So far nothing I've tried has resolved this. Has anyone encountered this issue before? | 0 | [
2,
14409,
272,
18,
18,
13,
18,
15263,
6033,
21,
2538,
5890,
69,
485,
891,
7019,
27,
14,
2741,
104,
800,
3726,
3726,
31,
57,
21,
272,
18,
18,
13,
18,
15263,
30,
25,
638,
1123,
19,
21,
375,
3010,
15,
47,
76,
32,
25,
8572,
34,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Max and min values in a C++ enum
===
Is there a way to find the maximum and minimum defined values of an enum in c++? | 0 | [
2,
2049,
17,
4232,
4070,
19,
21,
272,
20512,
1957,
723,
800,
3726,
3726,
25,
80,
21,
161,
20,
477,
14,
2979,
17,
5187,
2811,
4070,
16,
40,
1957,
723,
19,
272,
20512,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
generate HTML document server-side with jquery and classic asp
===
Here is my question,
Would it be possible, knowing that classic asp support server-side javascript, to be able to generate "server side HTML" to send to the client like
Response.write $(page).html()
Of course it would be great to use jQuery to do it because it's easy to parse complicated structure and manipulate them.
The only problem I can think of that would prevent me from doing this would be that classic asp exposes only 3 objects (response, server, request) and none of them provide "dom building facilities" like the one jQuery uses all the time. How could we possibly create a blank document object? | 0 | [
2,
7920,
13,
15895,
4492,
8128,
8,
1416,
29,
487,
8190,
93,
17,
2732,
28,
306,
800,
3726,
3726,
235,
25,
51,
1301,
15,
83,
32,
44,
938,
15,
2506,
30,
2732,
28,
306,
555,
8128,
8,
1416,
8247,
8741,
15,
20,
44,
777,
20,
7920,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 use of a Dispatcher Object in WPF?
===
What is the use of a Dispatcher Object in WPF? | 0 | [
2,
98,
25,
14,
275,
16,
21,
14226,
106,
3095,
19,
619,
7721,
60,
800,
3726,
3726,
98,
25,
14,
275,
16,
21,
14226,
106,
3095,
19,
619,
7721,
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... | [
1,
1,
1,
1,
1,
1,
1,
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... |
Named string formatting in C#
===
Is there any way to format a string by name rather than position in C#?
In python, I can do something like this example (shamelessly stolen from [here][1]):
>>> print '%(language)s has %(#)03d quote types.' % \
{'language': "Python", "#": 2}
Python has 002 quote types.
Is there any way to do this in C#? Say for instance:
String.Format("{some_variable}: {some_other_variable}", ...);
Being able to do this using a variable name would be nice, but a dictionary is acceptable too.
[1]: http://docs.python.org/lib/typesseq-strings.html | 0 | [
2,
377,
3724,
2595,
1203,
19,
272,
5910,
800,
3726,
3726,
25,
80,
186,
161,
20,
2595,
21,
3724,
34,
204,
864,
119,
649,
19,
272,
5910,
60,
19,
20059,
15,
31,
92,
107,
301,
101,
48,
823,
13,
5,
9582,
62,
9687,
6746,
37,
636,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jQuery Grid Recommendations
===
What are the most recommended jQuery grid plugins out there? I've been messing around with Flexigrid which seems to be fairly decent. Are there any other noteworthy ones out there I should be looking at? | 4 | [
2,
487,
8190,
93,
7354,
12121,
800,
3726,
3726,
98,
50,
14,
127,
5773,
487,
8190,
93,
7354,
10922,
108,
18,
70,
80,
60,
31,
22,
195,
74,
3957,
68,
140,
29,
14409,
49,
16375,
56,
2206,
20,
44,
6647,
12238,
9,
50,
80,
186,
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,
0,
0,
0,
0,
0,
0... |
Are C++ enums signed or unsigned?
===
Are C++ enums signed or unsigned? And by extension is it safe to validate an input by checking that it is <= your max value, and leave out >= your min value (assuming you started at 0 and incremented by 1)? | 0 | [
2,
50,
272,
20512,
1957,
723,
18,
908,
54,
28839,
60,
800,
3726,
3726,
50,
272,
20512,
1957,
723,
18,
908,
54,
28839,
60,
17,
34,
3896,
25,
32,
1834,
20,
7394,
1373,
40,
6367,
34,
9886,
30,
32,
25,
13,
1,
3726,
154,
2049,
1923... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the correct term for the documentation that we put just above a method declaration?
===
I'm writing a whitepaper and realized that I am not sure what the official term is for the kind of internal documentation that we put as a comment block before a declaration of definition.
The same thing that eventually becomes JavaDoc member documentation.
It's not simply internal documentation, and I'm not sure "header documentation" would be a good term.
| 0 | [
2,
98,
25,
14,
4456,
981,
26,
14,
13945,
30,
95,
442,
114,
784,
21,
2109,
7098,
60,
800,
3726,
3726,
31,
22,
79,
1174,
21,
359,
17945,
17,
1896,
30,
31,
589,
52,
562,
98,
14,
989,
981,
25,
26,
14,
825,
16,
3117,
13945,
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... |
Windows services with windows forms in the same process
===
I have a c# application that runs as a windows service controlling socket connections and other things.
Also, there is another windows forms application to control and configure this service (systray with start, stop, show form with configuration parameters).
I'm using .net remoting to do the IPC and that was fine, but now I want to show some real traffic and other reports and remoting will not meet my performance requirements. So I want to combine both applications in one.
Here is the problem:
When I started the form from the windows service, nothing happened. Googling around I've found that I have to right click the service, go to Log on and check the "Allow service to interact with desktop" option. Since I don't want to ask my users to do that, I got some code googling again to set this option in the user's regedit during installation time. The problem is that even setting this option, it doesn't work. I have to open the Log On options of the service (it is checked), uncheck and check again.
So, how to solve that? How is the best way to have a windows service with a systray control in the same process, available to any user logging in?
| 0 | [
2,
1936,
687,
29,
1936,
1997,
19,
14,
205,
953,
800,
3726,
3726,
31,
57,
21,
272,
5910,
3010,
30,
1461,
28,
21,
1936,
365,
10106,
18482,
6760,
17,
89,
564,
9,
67,
15,
80,
25,
226,
1936,
1997,
3010,
20,
569,
17,
1065,
15951,
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... |
Composite primary keys versus unique object ID field
===
I inherited a database built with the idea that composite keys are much more ideal than using a unique object ID field and that when building a database, a single unique ID should <b><em>never</em></b> be used as a primary key. Because I was building a Rails from end for this database, I ran into difficulties getting it to conform to the Rails conventions (though it was possible using custom views and a few additional gems to handle composite keys).
The reasoning behind this specific schema design from the person who wrote it had to do with how the database handles ID fields in a non-efficient manner and when it's building indexes, tree sorts are flawed. This explanation lacked any depth and I'm still trying to wrap my head around the concept (I'm familiar with using composite keys, but not 100% of the time).
Can anyone offer opinions or add any greater depth to this topic? | 0 | [
2,
12639,
1256,
5534,
5706,
2619,
3095,
4924,
575,
800,
3726,
3726,
31,
7179,
21,
6018,
392,
29,
14,
882,
30,
12639,
5534,
50,
212,
91,
5628,
119,
568,
21,
2619,
3095,
4924,
575,
17,
30,
76,
353,
21,
6018,
15,
21,
345,
2619,
492... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DependencyProperty and DataBinding?
===
In WPF:
Can someone please explain the relationship between DependencyProperty and Databinding?
I have a property in my code behind I want to be the source of my databinding.
When does a DependencyProperty (or does it) come into play if I want to bind this object to textboxes on the XAML.
| 0 | [
2,
26835,
10890,
106,
1084,
17,
1054,
22260,
60,
800,
3726,
3726,
19,
619,
7721,
45,
92,
737,
2247,
3271,
14,
1429,
128,
26835,
10890,
106,
1084,
17,
1054,
22260,
60,
31,
57,
21,
1354,
19,
51,
1797,
439,
31,
259,
20,
44,
14,
126... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Issue with XDocument and the BOM (Byte Order Mark)
===
Is there any way to output the contents of an XDocument without the BOM? When reading the output with Flash, it causes errors. | 0 | [
2,
1513,
29,
993,
28132,
17,
14,
1607,
79,
13,
5,
23246,
389,
943,
6,
800,
3726,
3726,
25,
80,
186,
161,
20,
5196,
14,
8478,
16,
40,
993,
28132,
366,
14,
1607,
79,
60,
76,
1876,
14,
5196,
29,
4433,
15,
32,
4047,
11908,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Is it possible to use a C++ .lib file from within a C# program?
===
Is it possible to use a C++ .lib file from within a C# program? | 0 | [
2,
25,
32,
938,
20,
275,
21,
272,
20512,
13,
9,
8326,
3893,
37,
363,
21,
272,
5910,
625,
60,
800,
3726,
3726,
25,
32,
938,
20,
275,
21,
272,
20512,
13,
9,
8326,
3893,
37,
363,
21,
272,
5910,
625,
60,
3,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Which Type of Input is Least Vulnerable?
===
Which Type of Input is Least Vulnerable? PHP, HTML, BBCode, etc. I need to know for a forum I'm helping a friend set up. | 0 | [
2,
56,
1001,
16,
6367,
25,
639,
8107,
60,
800,
3726,
3726,
56,
1001,
16,
6367,
25,
639,
8107,
60,
13,
26120,
15,
13,
15895,
15,
2313,
8355,
15,
2722,
9,
31,
376,
20,
143,
26,
21,
5691,
31,
22,
79,
3713,
21,
860,
309,
71,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I match any character across multiple lines in a regular expression?
===
For example, this regex
(.*)<FooBar>
will match:
abcde<FooBar>
But how do I get it to match across multiple lines?
abcde
fghij<FooBar>
| 0 | [
2,
184,
107,
31,
730,
186,
925,
464,
1886,
1560,
19,
21,
1290,
1803,
60,
800,
3726,
3726,
26,
823,
15,
48,
7953,
1706,
13,
5,
9,
2483,
6,
1,
4120,
111,
1850,
1,
129,
730,
45,
5079,
546,
1,
4120,
111,
1850,
1,
47,
184,
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... |
DLL versions and Visual Studio attach to process
===
I'm trying to use VS's attach to process tool to debug add-ins I'm developing for Sql Server Reporting Services.
I am able to correctly debug it with attach to process when I copy dll's and pdb's in my project debug/bin dir to the ReportServer/bin dir. But, if I use my msbuild script and copy those dlls and pdbs to the ReportServer/bin dir I get the wrong version.
1) **How do I check the current version of a dll/tell if a dll is incompatible with another version?**
2) **And how do I tell what dll's/versions are loaded by the ReportServer process?**
Thanks! | 0 | [
2,
13,
43,
211,
3281,
17,
3458,
1120,
19514,
20,
953,
800,
3726,
3726,
31,
22,
79,
749,
20,
275,
4611,
22,
18,
19514,
20,
953,
5607,
20,
121,
16254,
3547,
8,
108,
18,
31,
22,
79,
3561,
26,
4444,
255,
8128,
6670,
687,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Getting MAC Address
===
I need a cross platform method of determining the MAC address of a computer at run time. For windows the 'wmi' module can be used and the only method under Linux I could find was to run ifconfig and run a regex across its output. I don't like using a package that only works on one OS, and parsing the output of another program doesn't seem very elegant not to mention error prone.
Does anyone know a cross platform method (windows and linux) method to get the MAC address? If not, does anyone know any more elegant methods then those I listed above? | 0 | [
2,
1017,
1572,
3218,
800,
3726,
3726,
31,
376,
21,
919,
2452,
2109,
16,
13521,
14,
1572,
3218,
16,
21,
1428,
35,
485,
85,
9,
26,
1936,
14,
13,
22,
499,
1435,
22,
12613,
92,
44,
147,
17,
14,
104,
2109,
131,
13024,
31,
110,
477,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Branch Current changes then "rollback" in TFS
===
I have a specific changeset that I want to "rollback" my Development branch to, but I want to take all of the the changes after that specific changeset and put them in to a new branch. Is this possible in TFS? If so, how could I do such a thing?
Thanks,
Dave | 0 | [
2,
1686,
866,
1693,
94,
13,
7,
8694,
1958,
7,
19,
13,
11720,
18,
800,
3726,
3726,
31,
57,
21,
1903,
1693,
1198,
30,
31,
259,
20,
13,
7,
8694,
1958,
7,
51,
522,
1686,
20,
15,
47,
31,
259,
20,
247,
65,
16,
14,
14,
1693,
75,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Groovy executing shell commands
===
Groovy adds the execute method to String to make executing shells fairly easy;
println "ls".execute().text
but if an error happens, then there is no resulting output. Is there an easy way to get both the standard error and standard out? (other than creating a bunch of code to; create two threads to read both inputstreams, then using a parent stream to wait for them to complete then convert the strings back to text?)
It would be nice to have something like;
def x = shellDo("ls /tmp/NoFile")
println "out: ${x.out} err:${x.err}"
Thx
-bob
| 0 | [
2,
3452,
2026,
93,
25836,
3593,
14294,
800,
3726,
3726,
3452,
2026,
93,
10621,
14,
15644,
2109,
20,
3724,
20,
233,
25836,
12529,
6647,
2010,
73,
4793,
16600,
13,
7,
7532,
7,
9,
1706,
17194,
591,
5,
6,
9,
11969,
47,
100,
40,
7019,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Check out from a remote SVN repository TO a remote location?
===
Is there a way with SVN to check out from a remote repository to another remote location rather than my local file system? Something like:
svn co http://myrepository/svn/project ssh me@otherlocation.net:/var/www/project | 0 | [
2,
2631,
70,
37,
21,
5388,
13,
18,
16578,
24869,
20,
21,
5388,
1474,
60,
800,
3726,
3726,
25,
80,
21,
161,
29,
13,
18,
16578,
20,
2631,
70,
37,
21,
5388,
24869,
20,
226,
5388,
1474,
864,
119,
51,
375,
3893,
329,
60,
301,
101,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 difference between DTCPing and DTCTester?
===
I've used DTCTester before to diagnose MSDTC problems. However, I just noticed DTCPing seems to do about the same thing. What's the difference between these two?
From what I can tell so far, DTCPing needs to run on both client and server machines, whereas DTCTester only needs to run from the client. Are there any other differences? | 0 | [
2,
98,
22,
18,
14,
2841,
128,
13,
43,
6668,
3181,
17,
13,
43,
38,
4812,
6930,
60,
800,
3726,
3726,
31,
22,
195,
147,
13,
43,
38,
4812,
6930,
115,
20,
28438,
4235,
43,
6668,
1716,
9,
207,
15,
31,
114,
2711,
13,
43,
6668,
3181... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 converting pixels to printed inches in JavaScript?
===
I want to resize the font of a SPAN element's style until it the SPAN's text is 7.5 inches wide when printed out on paper, but JavaScript only reports the SPAN's clientWidth property in pixels.
<span id="test">123456</span>
And then:
#test
{
font-size:1.2in; /* adjust this for yourself until printout measures 7.5in wide */
}
And then:
console.log(document.getElementById('test').clientWidth);
I've determined experimentally on one machine that it uses approximately 90 DPI as a conversion factor, because the above code logs approximately 675, at least under Firefox 3.
1) Is this the same on every machine/browser?
2) If not, how do I find the DPI the browser is using for print previews? | 0 | [
2,
184,
107,
42,
19583,
18146,
18,
20,
5317,
3829,
19,
8247,
8741,
60,
800,
3726,
3726,
31,
259,
20,
302,
10454,
14,
9978,
16,
21,
6289,
4520,
22,
18,
1034,
163,
32,
14,
6289,
22,
18,
1854,
25,
453,
9,
264,
3829,
1051,
76,
531... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Gaining a better understanding of functional programming
===
What would you recommend for an experienced OO programmer who wants to learn more about functional programming?
Since reading Conway's <a href="http://hop.perl.plover.com/">Higher Order Perl</a>, I've begun using more functional techniques in my day-to-day work, such as closures, currying, and lazy evaluation. However, Perl is of course not a purely functional language (it's not purely anything) and I'm curious to learn how functional languages like Haskell accomplish common tasks. However, the last time I tried to learn Haskell via a few web tutorials, I found its rather terse syntax intimidating (and I'm a Perl guy.) Do you have any recommendations for a gentler introduction to Haskell or FP in general, and what are the advantages and disadvantages of other functional systems like Lisp, Erlang and F#? | 0 | [
2,
8299,
21,
574,
3260,
16,
7652,
3143,
800,
3726,
3726,
98,
83,
42,
12360,
26,
40,
3882,
13,
4328,
17968,
72,
2846,
20,
2484,
91,
88,
7652,
3143,
60,
179,
1876,
17413,
22,
18,
13,
1,
58,
746,
14057,
3726,
7,
21127,
6903,
5347,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Eclipse RCP Toolbar buttons with the Eclipse Look
===
In Eclipse, its easy to specify buttons for your toolbar using the ActionSets extension point. However, when I need to specify some items programmatically, I can't get the same look. I don't believe that the framework is using native buttons for these, but so far, I can't find the right recipe to match the Eclipse look. I wanted to see if anyone has found the right snippet to duplicate this functionality in code. | 0 | [
2,
11652,
761,
7439,
5607,
1850,
12861,
29,
14,
11652,
361,
800,
3726,
3726,
19,
11652,
15,
82,
2010,
20,
19077,
12861,
26,
154,
5607,
1850,
568,
14,
3078,
6095,
3896,
454,
9,
207,
15,
76,
31,
376,
20,
19077,
109,
3755,
625,
6732,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 overall consequences of the iPhone NDA going away?
===
Not having pored through the NDA for the iPhone, I'm not quite clear on what was prohibited that is now allowed, post-<a href="http://developer.apple.com/iphone/program/">dropping of the NDA</a>. Is there any idea of the type of question previously closed here, for instance, that would now be re-opened or re-asked? And more broadly across the web, what level of discussion and help can we now hope to become available that was previously redacted? | 0 | [
2,
98,
50,
14,
1677,
8360,
16,
14,
21024,
13,
8245,
228,
229,
60,
800,
3726,
3726,
52,
452,
5156,
69,
120,
14,
13,
8245,
26,
14,
21024,
15,
31,
22,
79,
52,
1450,
1207,
27,
98,
23,
11286,
30,
25,
130,
1159,
15,
678,
8,
1,
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... |
timeout error when on an ad hoc network
===
I am doing an InternetConnect (Wininet) to an FTP server that happens to be running on an iPhone. When the user is on a normal WiFi network it works fine for him. When he has an ad hoc network with his iPhone he gets an ERROR_INTERNET_TIMEOUT. I presume this is some kind of routing problem. I am curious as to why this gets ERROR_INTERNET_TIMEOUT and not ERROR_INTERNET_CANNOT_CONNECT. Most users, if they are blocked by, for example, a firewall, will get ERROR_INTERNET_CANNOT_CONNECT.
I don't understand enough about low-level TCP/IP to understand what kind of situation would cause a timeout error instead of a connect error. I'm really more intellectually curious in understanding this than I am in actually solving the user's problem. ;-) Can anyone explain what is happening with the network packets (the more detailed the better)? | 0 | [
2,
85,
1320,
7019,
76,
27,
40,
21,
43,
21061,
982,
800,
3726,
3726,
31,
589,
845,
40,
2620,
25996,
13,
5,
4181,
1149,
38,
6,
20,
40,
1187,
306,
8128,
30,
5531,
20,
44,
946,
27,
40,
21024,
9,
76,
14,
4155,
25,
27,
21,
1826,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 anyone recommend a good reference for setting up Hibernate3 with Eclipse?
===
I've looked at some of the Eclipse and Hibernate tutorials and the ones for Hibernate2 are pretty good, pretty intuitive. Recently I tried to setup Hibernate3, using the Eclipse plugin, and failed to get the Hibernate tools to work, outside of physically moving the jar files from the plugins directory to my lib directory (I should have to do this!) | 0 | [
2,
92,
1276,
12360,
21,
254,
2801,
26,
2697,
71,
4148,
2102,
8820,
240,
29,
11652,
60,
800,
3726,
3726,
31,
22,
195,
292,
35,
109,
16,
14,
11652,
17,
4148,
2102,
8820,
29724,
18,
17,
14,
53,
18,
26,
4148,
2102,
8820,
135,
50,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Visual Studio 2008: is there any way to turn on the Class Name/Method Name drop downs in C#? (like VB.Net has)
===
I'm working in .Net 3.5sp1 in C# for an ASP.Net solution and I'm wondering if there's any way to turn on the Class Name and Method Name drop-downs in the text editor that VB.Net has at the top. It's one of the few things from VB that I actually miss. | 0 | [
2,
3458,
1120,
15573,
25,
80,
186,
161,
20,
805,
27,
14,
718,
204,
118,
5909,
1807,
43,
204,
2804,
125,
18,
19,
272,
5910,
60,
13,
5,
1403,
13,
20468,
9,
2328,
63,
6,
800,
3726,
3726,
31,
22,
79,
638,
19,
13,
9,
2328,
203,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RAII vs. exceptions
===
The more we use RAII in C++, the more we find ourselves with destructors that do non-trivial deallocation. Now, deallocation (finalization, however you want to call it) can fail, in which case exceptions are really the only way to let anybody upstairs know of our deallocation problem. But then again, throwing dtors are a bad idea because of the possibility of exceptions being thrown during stack unwinding.
One approach is to have no-throw destructors. But in many cases that just hides a real error. Our dtor might be closing some RAII-managed DB connections as a result of some exception being thrown, and those DB connections might fail to close. This doesn't necessarily mean we're ok with the program terminating at this point. OTOH, logging and tracing these errors isn't really a solution for every case; otherwise we would have had no need for exceptions to begin with.
With no-throw destructors we also find ourselves having to create "reset()" functions that are supposed to be called before destruction - but that just defeats the whole purpose of RAII.
Some people suggest chaining exceptions, so that more than one error can be handled at time. But I honestly never actually seen that done and I've no idea how to implement such a thing.
So it's either RAII or exceptions. Isn't it? My leaning toward no-throw dtors; mainly because it keeps things simple(r). But I really hope there's a better solution, because, as I said, the more we use RAII, the more we find ourselves using dtors that do non-trivial things.
| 0 | [
2,
6623,
49,
4611,
9,
13392,
800,
3726,
3726,
14,
91,
95,
275,
6623,
49,
19,
272,
20512,
15,
14,
91,
95,
477,
10021,
29,
13,
20137,
248,
18,
30,
107,
538,
8,
19712,
1183,
19032,
9,
130,
15,
1183,
19032,
13,
5,
4932,
1829,
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... |
.net framework version req'd for MS Sync Framework
===
Can anyone tell me what version of the .NET framework (CLR and BCL) is req'd for the recently-released MS Sync Framework (for support of occasionally-connected-applications)?
Its listed as Sync Framework V1 for ADO.NET v2.0 but none of its listed req'ments say anything about the .NET fx version that is required to support it.
Anyone got any experience with this...? | 0 | [
2,
13,
9,
2328,
6596,
615,
302,
1251,
22,
43,
26,
4235,
6063,
150,
6596,
800,
3726,
3726,
92,
1276,
494,
55,
98,
615,
16,
14,
13,
9,
2328,
6596,
13,
5,
5316,
139,
17,
2726,
255,
6,
25,
302,
1251,
22,
43,
26,
14,
1989,
8,
7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Pitch identification in Linux
===
Is there any free software tool or combination that allows me to identify the pitch of a recorded singing session?
The idea is to display some kind of graph with the current pitch in a time line along with markers for the standard notes (C3, C#3, D, etc). I don't need pitch correction and I don't need it to be done in real time, either.
I know that once there was a plugin for Rosegarden that did that, but it has gone missing.
Cheers,
Luis Fernando | 0 | [
2,
5678,
8575,
19,
13024,
800,
3726,
3726,
25,
80,
186,
551,
2306,
5607,
54,
3733,
30,
2965,
55,
20,
5808,
14,
5678,
16,
21,
801,
3385,
3723,
60,
14,
882,
25,
20,
3042,
109,
825,
16,
7210,
29,
14,
866,
5678,
19,
21,
85,
293,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 perform an action after and update panel updates?
===
When I have a regular textbox in a update panel (not an asp.net control) with some javascript events on it, after the updatepanel updates my events are gone. Is there a way to reattach my events after the update? (Preferably without putting my events inline). | 0 | [
2,
184,
20,
2985,
40,
1028,
75,
17,
11100,
4113,
16779,
60,
800,
3726,
3726,
76,
31,
57,
21,
1290,
1854,
5309,
19,
21,
11100,
4113,
13,
5,
1270,
40,
28,
306,
9,
2328,
569,
6,
29,
109,
8247,
8741,
963,
27,
32,
15,
75,
14,
111... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the ideal data type to use when storing latitude / longitudes in a MySQL database?
===
Bearing in mind that I'll be performing calculations on lat / long pairs, what datatype is best suited for use with a MySQL database? | 0 | [
2,
98,
25,
14,
5628,
1054,
1001,
20,
275,
76,
25615,
16337,
13,
118,
22291,
18,
19,
21,
51,
18,
22402,
6018,
60,
800,
3726,
3726,
7241,
19,
594,
30,
31,
22,
211,
44,
2955,
19186,
27,
14303,
13,
118,
175,
7473,
15,
98,
1054,
44... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... |
Cross Browser Flash Detection in Javascript
===
Does anyone have an example of script that can work reliably well across IE/Firefox to detect if the browser is capable of displaying embedded flash content. I say reliably because I know its not possible 100% of the time. | 0 | [
2,
919,
16495,
4433,
11643,
19,
8247,
8741,
800,
3726,
3726,
630,
1276,
57,
40,
823,
16,
3884,
30,
92,
170,
13,
19003,
4801,
134,
464,
13,
660,
118,
5929,
18219,
20,
9092,
100,
14,
16495,
25,
3868,
16,
17418,
12138,
4433,
2331,
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,
0,
0,
0... |
seeking a way to have a "Hover button" to expand a section
===
i have a flow panel that i'm adding extra items to it at runtime based on whether they have chosen to show all the items. that's all works fine; the expansion is controlled by a toolbar button.
the trouble is we'd like the user to be able to move his mouse over the "+" sign to expand the section.
![alt text][1]
[1]: http://xrw.bc.ca/download/q.gif
initially i looked at TSpeedButton (OnMouseEnter) but even when it's "Flat", the focus rectangle still shows and so the glyph isn't centered. the main problem with this solution is it's appearance.
then i looked at making a descendant of TImage. that's a bit "unconventional" but it'd work. in OnMouseEnter or OnClick, it'd toggle an internal boolean "Expanded" flag and then load the appropriate picture from a resource. i have a dislike for unconventional solutions like that.
i need to add it to a few different screens so it's probably prudent for me to have/build a component for this. i have JVCL but i don't see anything suitable offhand.
thank you for your comments/help! | 0 | [
2,
5246,
21,
161,
20,
57,
21,
13,
7,
252,
2549,
5167,
7,
20,
6073,
21,
1050,
800,
3726,
3726,
31,
57,
21,
3312,
4113,
30,
31,
22,
79,
4721,
2230,
3755,
20,
32,
35,
485,
891,
432,
27,
1472,
59,
57,
2519,
20,
298,
65,
14,
37... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In Flash, how would I run an e4x statement when that statement is stored in a String?
===
So I have something like this:
var xmlStatement:String = "xmlObject.node[3].@thisValue";
What mystery function do I have to use so that I can execute xmlStatement and get thisValue from that xmlObject? Like....
var attribute:String = mysteryFunction(xmlStatement);
P.S. I know eval() works for actionscript2, I need the as3 solution. :)
| 0 | [
2,
19,
4433,
15,
184,
83,
31,
485,
40,
13,
62,
300,
396,
3331,
76,
30,
3331,
25,
8214,
19,
21,
3724,
60,
800,
3726,
3726,
86,
31,
57,
301,
101,
48,
45,
4033,
23504,
3859,
1130,
45,
11130,
800,
13,
7,
396,
8184,
23793,
9,
251... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does OCUnit and OCMock work on the iPhone SDK?
===
I simply could not make it work, and I am wondering if I am wasting my time, or if I am simply stupid!
Sorry I don't have the exact error I have right now. But I just want to know if it work or not!
| 0 | [
2,
630,
13,
2499,
15464,
17,
13,
2499,
79,
5668,
170,
27,
14,
21024,
13,
18,
43,
197,
60,
800,
3726,
3726,
31,
1659,
110,
52,
233,
32,
170,
15,
17,
31,
589,
5712,
100,
31,
589,
23,
1203,
51,
85,
15,
54,
100,
31,
589,
1659,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I create a custom directive for Apache Velocity
===
I am using Apache's Velocity templating engine, and I would like to create a custom Directive. That is, I want to be able to write "#doMyThing()" and have it invoke some java code I wrote in order to generate the text.
I know that I can register a custom directive by adding a line
userdirective=my.package.here.MyDirectiveName
to my velocity.properties file. And I know that I can write such a class by extending the [Directive class][1]. What I don't know is *how* to extend the Directive class -- some sort of documentation for the author of a new Directive. For instance I'd like to know if my getType() method return "BLOCK" or "LINE" and I'd like to know what should my setLocation() method should do?
Is there any documentation out there that is better than just "[Use the source, Luke][2]"?
[1]: http://svn.apache.org/repos/asf/velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Directive.java
[2]: http://www.catb.org/jargon/html/U/UTSL.html | 0 | [
2,
184,
107,
31,
1600,
21,
5816,
15626,
26,
17140,
10700,
800,
3726,
3726,
31,
589,
568,
17140,
22,
18,
10700,
13,
9577,
255,
1880,
1406,
15,
17,
31,
83,
101,
20,
1600,
21,
5816,
15626,
9,
30,
25,
15,
31,
259,
20,
44,
777,
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 can I prevent a base constructor from being called by an inheritor in C#?
===
I've got a (poorly written) base class that I want to wrap in a proxy object. The base class resembles the following:
public class BaseClass : SomeOtherBase
{
public BaseClass() {}
public BaseClass(int someValue) {}
//...more code, not important here
}
and, my proxy resembles:
public BaseClassProxy : BaseClass
{
public BaseClassProxy(bool fakeOut){}
}
Without the "fakeOut" constructor, the base constructor is expected to be called. However, with it, I expected it to not be called. Either way, I either need a way to not call any base class constructors, or some other way to effectively proxy this (evil) class. | 0 | [
2,
184,
92,
31,
2501,
21,
1000,
6960,
248,
37,
142,
227,
34,
40,
17569,
248,
19,
272,
5910,
60,
800,
3726,
3726,
31,
22,
195,
330,
21,
13,
5,
15979,
102,
642,
6,
1000,
718,
30,
31,
259,
20,
8118,
19,
21,
27188,
3095,
9,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you compile pthread-win32 for x64?
===
It looks like some work has been done to make pthread-win32 work with x64, but there are no build instructions. | 0 | [
2,
184,
107,
42,
26561,
351,
96,
10647,
8,
4181,
3125,
26,
993,
3470,
60,
800,
3726,
3726,
32,
1879,
101,
109,
170,
63,
74,
677,
20,
233,
351,
96,
10647,
8,
4181,
3125,
170,
29,
993,
3470,
15,
47,
80,
50,
90,
1895,
7650,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Runtime callable wrapper (RCW) scope - process or application domain?
===
What is the scope of Runtime Callable Wrapper (RCW), when referencing unmanaged COM objects? According to the docs:
> The runtime creates exactly one RCW
> for each COM object, regardless of the
> number of references that exist on
> that object.
If I had to "guess" - this explanation should mean "one per process", but is it really? Any additional documentation will be very welcome.
My application runs in its own application domain (it is Outlook addin), and I would like to know what happens if I use Marshal.ReleaseComObject(x) in a loop until it's count reaches 0 (as recommended). Will it release references from other addins (running in other application domain in the same Outlook process)? | 0 | [
2,
485,
891,
645,
579,
28051,
13,
5,
5453,
499,
6,
9914,
13,
8,
953,
54,
3010,
4603,
60,
800,
3726,
3726,
98,
25,
14,
9914,
16,
485,
891,
645,
579,
28051,
13,
5,
5453,
499,
6,
15,
76,
13,
29254,
367,
177,
8030,
13,
960,
3916... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 should you override OnEvent as opposed to subscribing to the event when inheritting
===
When should one do the following?
class Foo : Control
{
protected override void OnClick(EventArgs e)
{
// new code here
}
}
As opposed to this?
class Foo : Control
{
public Foo()
{
this.Click += new EventHandler(Clicked);
}
private void Clicked(object sender, EventArgs e)
{
// code
}
} | 0 | [
2,
76,
378,
42,
84,
11891,
53,
6645,
28,
3499,
20,
972,
28723,
20,
14,
807,
76,
17569,
1203,
800,
3726,
3726,
76,
378,
53,
107,
14,
249,
60,
718,
4310,
111,
13,
45,
569,
13,
1,
3803,
84,
11891,
11364,
27,
150,
10129,
5,
4943,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Help with array additions in c++
===
I'm not sure if the term's actually "Array Addition".
I'm trying to understand what does the following line do:
int var[2+1] = {2,1}
How is that different from int var[3]?
I've been using Java for several years, so I'd appreciate if explained using Java-friendly words ;-)
Thanks for your time.
-Nushio | 0 | [
2,
448,
29,
7718,
848,
18,
19,
272,
20512,
800,
3726,
3726,
31,
22,
79,
52,
562,
100,
14,
981,
22,
18,
1121,
13,
7,
8576,
93,
848,
7,
9,
31,
22,
79,
749,
20,
1369,
98,
630,
14,
249,
293,
107,
45,
19,
38,
4033,
2558,
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... |
What tasks do you use JavaScript for the most?
===
What types of JavaScript scripts do find most useful in your work? What tasks do you use JavaScript for the most? Are there scripts that you wished were out there but just haven't been able to find? I'm trying to create a library of MooTools plugins and so I'm always looking for inspiration and advice. I'm trying to concentrate on utility more than anything else, but any suggestions are okay. I'm really not looking for code examples but rather descriptions of the tasks that you most often perform or would like to perform with JavaScript. | 0 | [
2,
98,
8674,
107,
42,
275,
8247,
8741,
26,
14,
127,
60,
800,
3726,
3726,
98,
2551,
16,
8247,
8741,
17505,
107,
477,
127,
4811,
19,
154,
170,
60,
98,
8674,
107,
42,
275,
8247,
8741,
26,
14,
127,
60,
50,
80,
17505,
30,
42,
5098,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 F# so special?
===
In the microsoft and .net world, is there an industry trend towards F# and functional programming, moving away from C# and VB.NET?
What is it about F# that is so special? What does it provide that C# does not provide? Does it mean you can code solutions faster and build in more features in the same time frame? Can you code more reliably, with fewer bugs, in F# versus C#? What makes F# better than the current languages available in the .net world? | 0 | [
2,
483,
25,
398,
5910,
86,
621,
60,
800,
3726,
3726,
19,
14,
7099,
17,
13,
9,
2328,
126,
15,
25,
80,
40,
1230,
8703,
1016,
398,
5910,
17,
7652,
3143,
15,
1219,
229,
37,
272,
5910,
17,
13,
20468,
9,
2328,
60,
98,
25,
32,
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... |
why cant we declare var a = new List<string> at class level
===
I know we cannot do this at class level but at method level we can always do this.
var myList=new List<string> // or something else like this
This question came to my mind since wherever we declare variable like this. We always provide the type information at the RHS of the expression. So compiler dont need to do type guessing. (correct me if i m wrionog).
so question remains WHY NOT at class level while its allowed at method level | 0 | [
2,
483,
2973,
95,
10123,
4033,
21,
800,
78,
968,
1,
11130,
1,
35,
718,
662,
800,
3726,
3726,
31,
143,
95,
1967,
107,
48,
35,
718,
662,
47,
35,
2109,
662,
95,
92,
550,
107,
48,
9,
4033,
51,
5739,
3726,
2681,
968,
1,
11130,
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... |
Are standard .Net 2 dlls compatible with the silverlight 2.0 runtime?
===
If I avoid referencing assemblies that don't exist in the silverlight 2.0 runtime, will the.Net 2.0 library dlls I create with VS2008 work with silverlight **without recompilation** or other alteration? | 0 | [
2,
50,
1236,
13,
9,
2328,
172,
13,
43,
211,
18,
14961,
29,
14,
1172,
3130,
172,
9,
387,
485,
891,
60,
800,
3726,
3726,
100,
31,
2658,
13,
29254,
21066,
30,
221,
22,
38,
3182,
19,
14,
1172,
3130,
172,
9,
387,
485,
891,
15,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
[XmlRoot] attribute not included in the generated prox class
===
Using .Net 3.0 and VS2005.
The objects in question are consumed from a WCF service then serialized back into Xml for a legacy API. So rather than serializing the TestObject, it was serializing <service reference>.TestObject which was missing the [XmlRoot] attribute; however, all the [Xml*] attributes for the child elements were in the generated proxy code so they worked just fine. So all the child elements worked just fine, but the enclosing element did not because the [XmlRoot] attribute wasn't included in the generated proxy code. The original object that included the [XmlRoot] attribute serializes fine manually.
**Can I have the proxy code include the [XmlRoot] attribute so the generated proxy class serializes correctly as well?** If I can't do that I suspect I'll have to use [XmlType] but that causes minor havoc requiring me to change other components so I would prefer the former. I also want to avoid having to manually edit the autogenerated proxy class.
Here is some sample code (I have included the client and the service in the same app because this is quick and for test purposes. Comment out the service referencing code and add the service reference while running the app, then uncomment the service code and run.)
using System;
using System.IO;
using System.ServiceModel.Description;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.ServiceModel;
using SerializationTest.localhost;
namespace SerializationTest {
class Program {
static void Main( string[] args ) {
Type serviceType = typeof( TestService );
ServiceHost host = new ServiceHost(
serviceType,
new Uri[] {
new Uri( "http://localhost:8080/" )
}
);
ServiceMetadataBehavior behaviour = new ServiceMetadataBehavior();
behaviour.HttpGetEnabled = true;
host.Description.Behaviors.Add( behaviour );
host.AddServiceEndpoint( serviceType, new BasicHttpBinding(), "TestService" );
host.AddServiceEndpoint( typeof( IMetadataExchange ), new BasicHttpBinding(), "MEX" );
host.Open();
TestServiceClient client = new TestServiceClient();
localhost.TestObject to = client.GetObject();
String XmlizedString = null;
MemoryStream memoryStream = new MemoryStream();
XmlSerializer xs = new XmlSerializer( typeof( localhost.TestObject ) );
XmlTextWriter xmlTextWriter = new XmlTextWriter( memoryStream, Encoding.UTF8 );
xs.Serialize( xmlTextWriter, to );
memoryStream = (MemoryStream)xmlTextWriter.BaseStream;
XmlizedString = Encoding.UTF8.GetString( memoryStream.ToArray() );
Console.WriteLine( XmlizedString );
Console.ReadKey();
}
}
[Serializable]
[XmlRoot( "SomethingElse" )]
public class TestObject {
private bool _worked;
public TestObject() { Worked = true; }
[XmlAttribute( AttributeName = "AttributeWorked" )]
public bool Worked {
get { return _worked; }
set { _worked = value; }
}
}
[ServiceContract]
public class TestService {
[OperationContract]
[XmlSerializerFormat]
public TestObject GetObject() {
return new TestObject();
}
}
}
Here is the Xml this generates.
<?xml version="1.0" encoding="utf-8"?>
<TestObject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" AttributeWorked="true" />
| 0 | [
2,
636,
396,
8184,
14032,
500,
35,
14755,
52,
506,
19,
14,
6756,
895,
396,
718,
800,
3726,
3726,
568,
13,
9,
2328,
203,
9,
387,
17,
4611,
2835,
9,
14,
3916,
19,
1301,
50,
10936,
37,
21,
11801,
410,
365,
94,
27877,
97,
77,
2350... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ReportViewer Control and Ajax UpdatePanel
===
Did anyone of you ever find a way of getting the Microsoft Report Viewer Control (Web) to work from within an Ajax UpdatePanel? | 0 | [
2,
1330,
4725,
106,
569,
17,
20624,
11100,
3206,
532,
800,
3726,
3726,
144,
1276,
16,
42,
462,
477,
21,
161,
16,
1017,
14,
7099,
1330,
16812,
569,
13,
5,
14113,
6,
20,
170,
37,
363,
40,
20624,
11100,
3206,
532,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Making since of apache's error_log file using php
===
I want to create a script that parses or makes since of apache's error log to see what the most recent error was. I was wondering if anyone out there has something that does this or has any ideas where to start? | 0 | [
2,
544,
179,
16,
17140,
22,
18,
7019,
1,
5567,
3893,
568,
13,
26120,
800,
3726,
3726,
31,
259,
20,
1600,
21,
3884,
30,
2017,
7202,
54,
1364,
179,
16,
17140,
22,
18,
7019,
6738,
20,
196,
98,
14,
127,
1764,
7019,
23,
9,
31,
23,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.