unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Should I provide a deep clone when implementing ICloneable?
===
It is unclear to me from the [MSDN documentation][1] if I should provide a deep or a shallow clone when implementing ICloneable. What is the preferred option?
[1]: http://msdn.microsoft.com/en-us/library/system.icloneable.aspx | 0 | [
2,
378,
31,
1181,
21,
855,
13871,
76,
17333,
13,
596,
16285,
579,
60,
800,
3726,
3726,
32,
25,
11293,
20,
55,
37,
14,
636,
79,
18,
43,
103,
13945,
500,
2558,
165,
500,
100,
31,
378,
1181,
21,
855,
54,
21,
7258,
13871,
76,
1733... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Linq to XML for KML?
===
I'm a LINQ to XML newbie, and a KML newbie as well; so bear with me.
My goal is to extract individual Placemarks from a KML file. My KML begins thusly:
<?xml version="1.0" encoding="utf-8"?>
<Document xmlns="http://earth.google.com/kml/2.0">
<name>Concessions</name>
<visibility>1</visibility>
<Folder>
<visibility>1</visibility>
<Placemark>
<name>IN920211</name>
<Style>
<PolyStyle>
<color>80000000</color>
</PolyStyle>
</Style>
<Polygon>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>
<LinearRing>
<coordinates>11.728374,1.976421,0 11.732967,1.965322,0 11.737225,1.953161,0 11.635858,1.940812,0 11.658102,1.976874,0 11.728374,1.976421,0 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
<Placemark>
...
This is as far as I've gotten:
Dim Kml As XDocument = XDocument.Load(Server.MapPath("../kmlimport/ga.kml"))
Dim Placemarks = From Placemark In Kml.Descendants("Placemark") _
Select Name = Placemark.Element("Name").Value
So far no good - Kml.Descendants("Placemark") gives me an empty enumeration. The document is loaded properly - because KML.Descendants contains every node. For what it's worth these queries come up empty as well:
Dim foo = Kml.Descendants("Document")
Dim foo = Kml.Descendants("Folder")
Can someone point me in the right direction? Bonus points for links to good Linq to XML tutorials - the ones I've found online stop at very simple scenarios.
| 0 | [
2,
6294,
1251,
20,
23504,
26,
401,
255,
60,
800,
3726,
3726,
31,
22,
79,
21,
6294,
1251,
20,
23504,
78,
5893,
15,
17,
21,
401,
255,
78,
5893,
28,
134,
73,
86,
2746,
29,
55,
9,
51,
1195,
25,
20,
10962,
1359,
209,
4527,
18,
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... |
totally lost -- textarea in IE7 disappears when i mouse over
===
i'm just going to toss this question up in a rough form now, while i'm thinking of it, and come back to flesh out the details. it's terribly vexing. maybe someone here will know wtf is going on.
i have this big data-entry sort of page, a table-kind of layout using divs. each row has subrows which can be toggled open/closed. the toggling is triggered using css visibility settings. each "cell" of the table has a little image in it's corner, you click on the image, and a popup window opens that allows you to put notes on the entry.
this popup window has a textarea and a set of checkboxes, along with a button (input type=submit, i think). the popup is an iframe nested inside a hidden div.
on IE7, once you've popped open this notes iframe and scrolled the page down, mousing over the popup's textarea makes it DISAPPEAR and show the page content beneath it. wtf? the checkboxes also show the page below when you mouse over.
so, i've tried a few different fixes. z-index was what i was hoping could be used to fix this. no such luck. i might try replacing the textarea with a plain input type=text, but since the checkboxes also exhibit this bug, i suspect the one-line text input will also cause the bug. | 0 | [
2,
5139,
529,
13,
8,
8,
1854,
17760,
19,
13,
660,
465,
20341,
76,
31,
7567,
84,
800,
3726,
3726,
31,
22,
79,
114,
228,
20,
20,
18,
18,
48,
1301,
71,
19,
21,
4182,
505,
130,
15,
133,
31,
22,
79,
1440,
16,
32,
15,
17,
340,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 detect that the client is scrolled to the top or bottom of a webpage
===
I'm looking for a cross-browser method of detecting that a client web browser is scrolled all the way to the bottom (or top) of the screen.
Really, the top is fairly easy, as
`scrY = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop`
is zero if you're at the top. The problem is that scrY seems to return the top of the scroll bar, and not the bottom, so instead of getting something equivalent to the height of the document (in pixels) I what is presumably the height of the document less the size of the scroll bar.
Is there an easy, cross-browser way to find out if the user has scrolled down to the bottom of the document/window? | 0 | [
2,
184,
20,
9092,
30,
14,
6819,
25,
12159,
69,
20,
14,
371,
54,
2129,
16,
21,
2741,
6486,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
919,
8,
25699,
4104,
2109,
16,
9092,
68,
30,
21,
6819,
2741,
16495,
25,
12159,
69,
65,
14,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I get the FQDN of the current host in Ruby?
===
I need to get the fully expanded hostname of the host that my Ruby script is running on. In Perl I've used Sys::Hostname::Long with good results. Google seems to suggest I should use Socket.hostname in ruby, but that's returning just the nodename, not the full hostname. | 0 | [
2,
184,
92,
31,
164,
14,
398,
1251,
43,
103,
16,
14,
866,
2015,
19,
10811,
60,
800,
3726,
3726,
31,
376,
20,
164,
14,
2337,
2766,
2015,
7259,
16,
14,
2015,
30,
51,
10811,
3884,
25,
946,
27,
9,
19,
416,
255,
31,
22,
195,
147,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Calling document javascript from Firefox extension
===
I'm creating a Firefox extension for demo purposes.
I to call a specific javascript function in the document from the extension.
I wrote this in my HTML document (not inside extension, but a page that is loaded by Firefox):
document.funcToBeCalled = function() {
// function body
};
Then, the extension will run this on some event:
var document = Application.activeWindow.activeTab.document;
document.funcToBeCalled();
However it raises an error saying that `funcToBeCalled` is not defined.
Note: I could get an element on the document by calling `document.getElementById(id);`
| 0 | [
2,
2555,
4492,
8247,
8741,
37,
535,
18219,
3896,
800,
3726,
3726,
31,
22,
79,
2936,
21,
535,
18219,
3896,
26,
8376,
4612,
9,
31,
20,
645,
21,
1903,
8247,
8741,
1990,
19,
14,
4492,
37,
14,
3896,
9,
31,
738,
48,
19,
51,
13,
1589... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What tools are avaialble for TDDD (Test Driven Database Development)?
===
About a year ago, I picked up Scott Ambler's [Refactoring Databases: Evolutionary Database Design][1]. I was won over to the idea that just as you can develop your code with TDD, you probably should be covering your databases with unit tests (at least) or even writing database tests before you make a change to the schema so you do database work in a TDD style as well.
I really like the idea, and I have been doing this (OK, sometimes I do it) by hand for a while now, just writing regular unit tests that happen to connect to the database and check its structure against a given schema file. But I haven't found any good database change management tool-kits that might help automate this process. Does anyone know any?
[1]: http://www.amazon.com/Refactoring-Databases-Evolutionary-Addison-Wesley-Signature/dp/0321293533 | 0 | [
2,
98,
4672,
50,
13656,
2815,
2854,
26,
15596,
8096,
13,
5,
10543,
5355,
6018,
522,
6,
60,
800,
3726,
3726,
88,
21,
159,
1464,
15,
31,
2114,
71,
1824,
589,
18896,
22,
18,
636,
99,
17455,
68,
6018,
18,
45,
13918,
6018,
704,
500,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I disable Tortoise BZR?
===
I'm a huge fan of bzr and I'm glad they're working on tortoise for it, but currently it's WAY too slow to be useful. The icons are almost always incorrect and when I load a directory in explorer with a lot of branches it locks up my entire system for anywhere from 10 seconds to 2 minutes. I look forward to trying it again in the future, but for now I'd like to disable it.
Unforutantely I don't see it in add/remove programs and I can't find a way to disable it in the bazaar config directory. When I right click the icon in the task panel (by the clock) and choose "Exit Program" it just restarts moments later. I don't see it in the Services panel either. Is there any way to disable it?
I'm running Windows XP on the system in question. | 0 | [
2,
184,
107,
31,
1460,
579,
25691,
334,
380,
139,
60,
800,
3726,
3726,
31,
22,
79,
21,
2329,
2514,
16,
334,
380,
139,
17,
31,
22,
79,
3539,
59,
22,
99,
638,
27,
25691,
26,
32,
15,
47,
871,
32,
22,
18,
161,
266,
2276,
20,
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... |
Java: How do detect a remote side socket close?
===
How do you detect if `Socket#close()` has been called on a socket on the remote side? | 0 | [
2,
8247,
45,
184,
107,
9092,
21,
5388,
270,
18482,
543,
60,
800,
3726,
3726,
184,
107,
42,
9092,
100,
13,
1,
18,
5668,
1198,
5910,
14330,
5,
6,
1,
63,
74,
227,
27,
21,
18482,
27,
14,
5388,
270,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Scope of Function Variables
===
Whats a good naming convention for large scope function variables?
For example, you have different naming convention for normal member fields of classes.structs members names.
eg..<br>
_member<br>
m_member<br>
or in java case, the useage of <b>this</b>.member<br>
Is there any good technique or naming convention for function variables scope.
void MyFunction()<br>
{<br>
int functionScopeVariable;<br>
<br>
if(true)<br>
{<br>
//no need for function variable scope naming convention<br>
}<br>
}<br> | 0 | [
2,
9914,
16,
1990,
12157,
800,
3726,
3726,
98,
18,
21,
254,
10929,
3087,
26,
370,
9914,
1990,
12157,
60,
26,
823,
15,
42,
57,
421,
10929,
3087,
26,
1826,
322,
2861,
16,
2684,
9,
10346,
18,
443,
1817,
9,
12369,
9,
9,
1,
5145,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Looking to try out JRuby and JRuby on Rails
===
I'm looking to try out JRuby and JRuby on Rails. I'm having trouble finding information on what's different between JRuby on Rails and Ruby on Rails.
What's the differences I need to look out for? | 0 | [
2,
699,
20,
1131,
70,
2000,
291,
779,
17,
2000,
291,
779,
27,
2240,
18,
800,
3726,
3726,
31,
22,
79,
699,
20,
1131,
70,
2000,
291,
779,
17,
2000,
291,
779,
27,
2240,
18,
9,
31,
22,
79,
452,
2572,
3007,
676,
27,
98,
22,
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... |
Yasnippet and pabbrev working together in Emacs
===
I am trying to get the yasnippet and pabbrev packages working together with emacs, but I cannot seem to get any love. How can I get them to play nicely together? | 0 | [
2,
2167,
29061,
17,
1562,
3490,
14587,
638,
429,
19,
13,
62,
6893,
18,
800,
3726,
3726,
31,
589,
749,
20,
164,
14,
2167,
29061,
17,
1562,
3490,
14587,
16875,
638,
429,
29,
13,
62,
6893,
18,
15,
47,
31,
1967,
2260,
20,
164,
186,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Flex Popup Button Question
===
Banging my head against the wall here. I don't want to reinvent the wheel.
The default Flex 3 classs for PopupButton is a combination of two buttons. One is a normal button with label and/or icon, and the second is the arrow which opens the popup.
My struggle here is that I just want a button with an icon that opens the popup directly, without having to write all the popup handling code all over again. The plan was to override the PopupButton class with, say, a new class called SimplePopupButton. This class would just hide the arrow, and point the button click handler to open the popup.
Seems simple, but I don't see an easy way to do this. Suggestions? Alternatives? | 0 | [
2,
14409,
1675,
576,
5167,
1301,
800,
3726,
3726,
24472,
51,
157,
149,
14,
769,
235,
9,
31,
221,
22,
38,
259,
20,
7102,
6645,
14,
3556,
9,
14,
12838,
14409,
203,
718,
18,
26,
1675,
576,
811,
444,
25,
21,
3733,
16,
81,
12861,
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... |
Does anyone use GoogleData?
===
I was recently considering using GoogleData for a hobby project to store my service's old data, (say 24+hours old), while I keep the fresh data on my servers (hobby project==cheap home server).
However I haven't really heard of anyone using GoogleData, so I was wondering about what other's experiences have been.
Thanks | 0 | [
2,
630,
1276,
275,
8144,
18768,
60,
800,
3726,
3726,
31,
23,
1989,
5154,
568,
8144,
18768,
26,
21,
18229,
669,
20,
1718,
51,
365,
22,
18,
315,
1054,
15,
13,
5,
6366,
937,
2430,
4754,
18,
315,
6,
15,
133,
31,
643,
14,
3180,
105... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 system wide vista keyboard shortcuts and macros
===
This question might not seem programming related at first, but let me explain.
I'm stuck with using a keyboard that doesn't have "home" "end" "page up" and "page down" buttons. I need those functions for programming.
So the question is: what's a good/free utility to define system wide shortcuts and macros in vista? Mapping for example "ctrl/left arrow" to "home", "ctrl/right arrow" to "end" would solve my problem.
| 0 | [
2,
2936,
329,
1051,
13520,
8896,
502,
4118,
18,
17,
9069,
18,
800,
3726,
3726,
48,
1301,
530,
52,
2260,
3143,
1597,
35,
64,
15,
47,
408,
55,
3271,
9,
31,
22,
79,
4549,
29,
568,
21,
8896,
30,
1437,
22,
38,
57,
13,
7,
8167,
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... |
PHP __destruct() method
===
In PHP5, is the __destruct() method guaranteed to be called for each object instance? Can exceptions in the program prevent this from happening? | 0 | [
2,
13,
26120,
13,
1,
20137,
5,
6,
2109,
800,
3726,
3726,
19,
13,
26120,
264,
15,
25,
14,
13,
1,
20137,
5,
6,
2109,
13572,
20,
44,
227,
26,
206,
3095,
4851,
60,
92,
13392,
19,
14,
625,
2501,
48,
37,
4942,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Tool for adding license headers to source files?
===
I'm looking for a tool that will, in bulk, add a license header to some source files, some of which already have the header. Is there a tool out there that will insert a header, if it is not already present? | 0 | [
2,
5607,
26,
4721,
3962,
157,
445,
20,
1267,
6488,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
5607,
30,
129,
15,
19,
7238,
15,
3547,
21,
3962,
157,
106,
20,
109,
1267,
6488,
15,
109,
16,
56,
614,
57,
14,
157,
106,
9,
25,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Dynamically setting the Header text of a Silverlight DataGrid Column
===
<my:DataGridTemplateColumn CanUserResize="False" Width="150" Header="{Binding MeetingName, Source={StaticResource LocStrings}}" SortMemberPath="MeetingName > </my:DataGridTemplateColumn>");
I have the above column in a Silverlight grid control. But it is giving me a XamlParser error because of how I am trying to set the Header property. Has anyone done this before? I want to do this for multiple languages.
Also my syntax for the binding to a resouce is correct because I tried it in a lable outside of the grid.
| 0 | [
2,
7782,
1326,
2697,
14,
157,
106,
1854,
16,
21,
1172,
3130,
1054,
16375,
4698,
800,
3726,
3726,
13,
1,
915,
45,
18768,
16375,
9577,
6554,
716,
4404,
103,
92,
16704,
99,
10454,
3726,
7,
13192,
870,
7,
9456,
3726,
7,
9839,
7,
157,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Asynchrnonous WPF Commands
===
___Note__: The code in this question is part of [deSleeper](www.codeplex.com/desleeper) if you want the full source._
One of the things I wanted out of commands was a baked design for asynchronous operations. I wanted the button pressed to disable while the command was executing, and come back when complete. I wanted the actual work to be performed in a ThreadPool work item. And lastly, I wanted a way to handle any errors that occurred during the asynchronous processing.
My solution was an AsyncCommand:
public abstract class AsyncCommand : ICommand
{
public event EventHandler CanExecuteChanged;
public event EventHandler ExecutionStarting;
public event EventHandler<AsyncCommandCompleteEventArgs> ExecutionComplete;
public abstract string Text { get; }
private bool _isExecuting;
public bool IsExecuting
{
get { return _isExecuting; }
private set
{
_isExecuting = value;
if (CanExecuteChanged != null)
CanExecuteChanged(this, EventArgs.Empty);
}
}
protected abstract void OnExecute(object parameter);
public void Execute(object parameter)
{
try
{
IsExecuting = true;
if (ExecutionStarting != null)
ExecutionStarting(this, EventArgs.Empty);
var dispatcher = Dispatcher.CurrentDispatcher;
ThreadPool.QueueUserWorkItem(
obj =>
{
try
{
OnExecute(parameter);
if (ExecutionComplete != null)
dispatcher.Invoke(DispatcherPriority.Normal,
ExecutionComplete, this,
new AsyncCommandCompleteEventArgs(null));
}
catch (Exception ex)
{
if (ExecutionComplete != null)
dispatcher.Invoke(DispatcherPriority.Normal,
ExecutionComplete, this,
new AsyncCommandCompleteEventArgs(ex));
}
finally
{
dispatcher.Invoke(DispatcherPriority.Normal,
new Action(() => IsExecuting = false));
}
});
}
catch (Exception ex)
{
IsExecuting = false;
if (ExecutionComplete != null)
ExecutionComplete(this, new AsyncCommandCompleteEventArgs(ex));
}
}
public virtual bool CanExecute(object parameter)
{
return !IsExecuting;
}
}
so the question is: Is all this necessary? I've noticed built in asynchronous support for data-binding, so why not command execution? Perhaps it's related to the parameter question, which is my next question. | 0 | [
2,
28,
93,
14976,
139,
3951,
1291,
619,
7721,
14294,
800,
3726,
3726,
13,
1,
10280,
1,
45,
14,
1797,
19,
48,
1301,
25,
141,
16,
636,
546,
21092,
106,
500,
5,
6483,
9,
9375,
11326,
9,
960,
118,
546,
21092,
106,
6,
100,
42,
259,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C# Custom Applications that Access TFS
===
We have built a custom application, for internal use, that accesses TFS. We use the Microsoft libraries for this (e.g Microsoft.TeamFoundation.dll).
When this application is deployed to PCs that already have Team Explorer or VS installed, everything is fine. When it’s deployed to PCs that don’t have this installed, it fails.
We include all the required DLLs, but the error we get is “Common Language Runtime detected and invalid program”. The error occurs on the moderately innocuous line:
TeamFoundationServer myServer = new TeamFoundationServer(“ourserver.ourdomain.com”);
Interestingly the popular TFSAdmin tool (when you drop in the required DLLs to the exe directory) gives the same error.
I also note that many other custom applications that access TFS (e.g. [http://hinshelwood.com/tfsstickybuddy.aspx][1]) also require Team Explorer or VS to be installed to work.
Clearly the DLLs are not enough and there is some magic that happens when these installs occur. Anyone know what it is? Anyone know how to make the magic happen?
[1]: http://hinshelwood.com/tfsstickybuddy.aspx | 0 | [
2,
272,
5910,
5816,
3767,
30,
1381,
13,
11720,
18,
800,
3726,
3726,
95,
57,
392,
21,
5816,
3010,
15,
26,
3117,
275,
15,
30,
1381,
160,
13,
11720,
18,
9,
95,
275,
14,
7099,
8649,
26,
48,
13,
5,
62,
9,
263,
7099,
9,
6575,
1223... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Infragistics V7.3 vs. V8.1
===
We are using the Infragistics controls for .net (both ASP.Net and WinForms) for a few years. We want to upgrade our current version (v6.3) and are in a pickle. We can upgrade to v7.3 or v8.1 but not to a later one due to licensing limitations, and we don't want to spend more money on licenses unless it is really necessary. Rumor has it that the x.1 version is often less stable than the previous (x-1).3 version because there are more changes. This is only a rumor and I don't know if it is true or not, nor do I claim it to be true.
What I want to find out is which option is preferred and why:
1. Upgrade to v7.3
2. Upgrade to v8.1
3. Buy more licenses and upgrade to the latest and greatest (must be really good reason).
Any recommendations? Do you have experience with both versions and can compare their stability?
Thank you | 0 | [
2,
19,
22133,
3771,
18,
566,
465,
9,
240,
4611,
9,
566,
457,
9,
165,
800,
3726,
3726,
95,
50,
568,
14,
19,
22133,
3771,
18,
8671,
26,
13,
9,
2328,
13,
5,
8110,
28,
306,
9,
2328,
17,
628,
4190,
18,
6,
26,
21,
310,
122,
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... |
WPF Commands and Parameters
===
I'm finding the WPF command parameters to be a limitation. Perhaps that's a sign that I'm using them for the wrong purpose, but I'm still giving it a try before I scrap and take a different tack.
I put together a system for [executing commands asynchronously](http://stackoverflow.com/questions/151686/asynchrnonous-wpf-commands), but it's hard to use anything that requires data input. I know one common pattern with WPF commands is to pass in <code>this</code>. But <code>this</code> will not work at all for asynchronous commands because all the dependency properties are them inaccessible.
I end up with code like this:
<Button Command="{Binding ElementName=servicePage, Path=InstallServiceCommand}">
<Button.CommandParameter>
<MultiBinding Converter="{StaticResource InstallServiceParameterConverter}">
<MultiBinding.Bindings>
<Binding ElementName="servicePage" Path="IsInstalled"/>
<Binding ElementName="localURI" Path="Text"/>
<Binding ElementName="meshURI" Path="Text"/>
<Binding ElementName="registerWithMesh" Path="IsChecked"/>
</MultiBinding.Bindings>
</MultiBinding>
</Button.CommandParameter>
</Button>
and also need the InstallServiceParametersConverter class (plus InstallServiceParameters).
Anyone see an obvious way to improve upon this? | 0 | [
2,
619,
7721,
14294,
17,
12905,
800,
3726,
3726,
31,
22,
79,
3007,
14,
619,
7721,
1202,
12905,
20,
44,
21,
24943,
9,
1774,
30,
22,
18,
21,
1676,
30,
31,
22,
79,
568,
105,
26,
14,
1389,
2131,
15,
47,
31,
22,
79,
174,
1438,
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... |
Running Google Analytics in iframe?
===
Our company runs a web site (oursite.com) with affiliate partners who send us traffic. In some cases, we set up our affiliates with their own subdomain (affiliate.oursite.com), and they display selected content from our site on their site (affiliate.com) using an iframe.
Example of a page on their site:
<html>
<head></head>
<body>
<iframe src="affiliate.example.com/example_page.html">
...content...
[google analytics code for affiliate.oursite.com]
</iframe>
[google analytics code for affiliate.com]
</body>
</html>
Now, there are security implications in that Javascript doesn't like accessing information about a page in a different domain, and IE doesn't like setting cookies for a different domain.
Does anyone have a solution to this? Will we need to CNAME the affiliate.oursite.com to cname.oursite.com, or is there a cleaner solution?
| 0 | [
2,
946,
8144,
26320,
19,
31,
8361,
60,
800,
3726,
3726,
318,
237,
1461,
21,
2741,
689,
13,
5,
4110,
9097,
9,
960,
6,
29,
6772,
4724,
72,
2660,
182,
2227,
9,
19,
109,
1871,
15,
95,
309,
71,
318,
6772,
18,
29,
66,
258,
972,
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... |
Carbon vs Cocoa, is Carbon a dead end with OS X?
===
What are the trade-offs for using Carbon vs. Cocoa considering a developer with about 15 years of programming experience already in C/C++.
Is Carbon a dead end with OS X? | 0 | [
2,
4778,
4611,
24507,
15,
25,
4778,
21,
828,
241,
29,
13,
759,
993,
60,
800,
3726,
3726,
98,
50,
14,
1238,
8,
13328,
26,
568,
4778,
4611,
9,
24507,
5154,
21,
10058,
29,
88,
357,
122,
16,
3143,
1496,
614,
19,
272,
118,
150,
205... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... |
Code Promotion: Build or Binary?
===
Given a pretty basic source tree structure like the following:
<pre>
trunk -------
QA |--------
Stage |-------
Prod |------
</pre>
And an environment which mirrors that (Dev, QA, Staging and Production servers) - how do you all manage automated or manual code promotion? Do you use a CI server to build and promote at all stages? CI at Dev to build the binaries which are used throughout? Some other hybrid?
I've been kicking around a couple of thoughts. The first being that each promotion would do a get latest, build, and then push the output of the build to the correct server. The second being that at some point - QA or Staging - the binaries that were promoted would be the exact same ones copied to the other stages. The third is keeping a secondary source tree for deployed binaries which would automatically move in lockstep with the code promotion. Any other thoughts or ideas? | 0 | [
2,
1797,
2733,
45,
1895,
54,
14171,
60,
800,
3726,
3726,
504,
21,
1772,
2125,
1267,
1541,
1411,
101,
14,
249,
45,
13,
1,
3515,
1,
6436,
13,
8,
8,
8,
8,
8,
8,
8,
7234,
13,
1,
8,
8,
8,
8,
8,
8,
8,
8,
876,
13,
1,
8,
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... |
developing cross platform individually, does anyone recommend it?
===
I know it is easy to recommend several cross platform libraries; however, is there benefits to treating each platform individually for your product?
I have no restriction that the product must be 100% exactly alike on each platform.
Mac, Linux, and Windows are the target platforms.
Heavy win32 API, MFC is already used for the windows portion.
The reason I'm not fully for cross platform libraries, is because I feel that the end product will suffer a little in trying to generalize it for all platforms. | 0 | [
2,
3561,
919,
2452,
16579,
15,
630,
1276,
12360,
32,
60,
800,
3726,
3726,
31,
143,
32,
25,
2010,
20,
12360,
238,
919,
2452,
8649,
73,
207,
15,
25,
80,
5800,
20,
13749,
206,
2452,
16579,
26,
154,
2374,
60,
31,
57,
90,
18732,
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... |
Custom Sorting of a DataSet Column
===
I have a DataSet that contains a few columns. One of these columns is a number - most of the time. Because it's sometimes a string, it's a varchar(10).
However, when you sort a varchar column, it sorts it like a string. What I want to do instead is to try and override this somehow so that it sorts the integers like integers; this isn't all that hard, and I've already got a function that does this elsewhere in my code. However, I don't think it's possible to give a typed DataSet like I have a custom type with its own sorting implementation, and from what I can see BindingSource doesn't think about columns at all, which makes it awful hard to sort on them. I can easily do it using the ListView/DataGridView sorting functionality -- but I'd like the display to be in virtual mode because of the quantity of data I have, and for that I need to provide my own sorting anyway.
Is there any way to do what I want to do? | 0 | [
2,
5816,
2058,
68,
16,
21,
1054,
3554,
4698,
800,
3726,
3726,
31,
57,
21,
1054,
3554,
30,
1588,
21,
310,
7498,
9,
53,
16,
158,
7498,
25,
21,
234,
13,
8,
127,
16,
14,
85,
9,
185,
32,
22,
18,
1030,
21,
3724,
15,
32,
22,
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... |
Ext.form.FormPanel and form submission
===
I've been trying to submit a form with the FormPanel using the Action class Ext defaults to. However, I'd like it to consider the response as a script, not JSON-encoded.
Has anyone had any experience on this? | 0 | [
2,
1396,
38,
9,
4190,
9,
4190,
3206,
532,
17,
505,
10923,
800,
3726,
3726,
31,
22,
195,
74,
749,
20,
12298,
21,
505,
29,
14,
505,
3206,
532,
568,
14,
1028,
718,
1396,
38,
12838,
18,
20,
9,
207,
15,
31,
22,
43,
101,
32,
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... |
Parameterized singleton patterns
===
<p>The link over here lists ([http://www.yoda.arachsys.com/csharp/singleton.html][1]) some singleton patterns in C#. The article also describes the obvious that a singleton is not meant to accept parameters which “as otherwise a second request for an instance but with a different parameter could be problematic”. This means that any parameters you need to get the class working should be induced as a property. </p>
<p>
I am curious to know if there are any parameterized singleton design patterns out there. Accepting values as a property does not enforce anything to the consumer.
</p>
[1]: http://www.yoda.arachsys.com/csharp/singleton.html | 0 | [
2,
18906,
1333,
345,
444,
6282,
800,
3726,
3726,
13,
1,
306,
1,
124,
3508,
84,
235,
7227,
13,
5,
2558,
21127,
6903,
6483,
9,
93,
7716,
9,
58,
9676,
4980,
18,
9,
960,
118,
150,
23646,
118,
14031,
444,
9,
15895,
500,
2558,
165,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
iPhone tab bar Item image resolution?
===
what is the resolution of the image for tab bar item?
and also please provide some other usefull information regarding that tab item image.
Thanks in advance. | 0 | [
2,
21024,
6523,
748,
9101,
1961,
4302,
60,
800,
3726,
3726,
98,
25,
14,
4302,
16,
14,
1961,
26,
6523,
748,
9101,
60,
17,
67,
2247,
1181,
109,
89,
4811,
255,
676,
3467,
30,
6523,
9101,
1961,
9,
3669,
19,
3612,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Can't Execute Storyboards from Code.
===
I've created some fairly simple XAML, and it works perfectly (at least in KAXML). The storyboards run perfectly when called from within the XAML, but when I try to access them from outside I get 'buttonGlow' name cannot be found int he name scope of 'System.Windows.Controls.Button'. I am loading the button with
Button x = (Button)XamlReader.Load(stream);
And trying to run the Storyboard with
Storyboard pressedButtonStoryboard =
Storyboard)_xamlButton.Template.Resources["ButtonPressed"];
pressedButtonStoryboard.Begin(_xamlButton);
Here is the XAML:
<Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:customControls="clr-namespace:pk_rodoment.SkinningEngine;assembly=pk_rodoment"
Width="150" Height="55">
<Button.Resources>
<Style TargetType="Button">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid Background="#00FFFFFF">
<Grid.BitmapEffect>
<BitmapEffectGroup>
<OuterGlowBitmapEffect x:Name="buttonGlow" GlowColor="#A0FEDF00" GlowSize="0"/>
</BitmapEffectGroup>
</Grid.BitmapEffect>
<Border x:Name="background" Margin="1,1,1,1" CornerRadius="15">
<Border.Background>
<SolidColorBrush Color="#FF0062B6"/>
</Border.Background>
</Border>
<ContentPresenter HorizontalAlignment="Center"
Margin="{TemplateBinding Control.Padding}"
VerticalAlignment="Center"
Content="{TemplateBinding ContentControl.Content}"
ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"/>
</Grid>
<ControlTemplate.Resources>
<Storyboard x:Key="ButtonPressed">
<Storyboard.Children>
<DoubleAnimation Duration="0:0:0.4"
FillBehavior="HoldEnd"
Storyboard.TargetName="buttonGlow"
Storyboard.TargetProperty="GlowSize" To="4"/>
<ColorAnimation Duration="0:0:0.6"
FillBehavior="HoldEnd"
Storyboard.TargetName="background"
Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)"
To="#FF844800"/>
</Storyboard.Children>
</Storyboard>
<Storyboard x:Key="ButtonReleased">
<Storyboard.Children>
<DoubleAnimation Duration="0:0:0.2"
FillBehavior="HoldEnd"
Storyboard.TargetName="buttonGlow"
Storyboard.TargetProperty="GlowSize" To="0"/>
<ColorAnimation Duration="0:0:0.2"
FillBehavior="Stop"
Storyboard.TargetName="background"
Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)"
To="#FF0062B6"/>
</Storyboard.Children>
</Storyboard>
</ControlTemplate.Resources>
<ControlTemplate.Triggers>
<Trigger Property="ButtonBase.IsPressed" Value="True">
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource ButtonPressed}"/>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource ButtonReleased}"/>
</Trigger.ExitActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Button.Resources>
<DockPanel>
<TextBlock x:Name="TextContent" FontSize="28" Foreground="White" >Test</TextBlock>
</DockPanel>
</Button>
Any suggestions from anyone who understands WPF and XAML a lot better than me?
| 0 | [
2,
92,
22,
38,
15644,
609,
2806,
18,
37,
1797,
9,
800,
3726,
3726,
31,
22,
195,
679,
109,
6647,
1935,
13,
6791,
8184,
15,
17,
32,
693,
5759,
13,
5,
721,
639,
19,
1332,
396,
8184,
6,
9,
14,
609,
2806,
18,
485,
5759,
76,
227,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Identifying the device requesting a response
===
Is it possible for a web server to know which ^type^ of device request has been received from?
For example, can a create a website which shows different contents if request came from a computer (firefox) and something different if it came from iPhone? | 0 | [
2,
13785,
14,
3646,
20033,
21,
1627,
800,
3726,
3726,
25,
32,
938,
26,
21,
2741,
8128,
20,
143,
56,
13,
1,
4474,
1,
16,
3646,
3772,
63,
74,
420,
37,
60,
26,
823,
15,
92,
21,
1600,
21,
2271,
56,
1285,
421,
8478,
100,
3772,
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... |
Is the .Net framework deployed with any versions of windows?
===
Is the .Net framework deployed with any versions of windows? If so which version is deployed?
Will it be in the future?
Why doens't Microsoft force an update down to all of it's users of windows-update? Is it for legal reasons?
| 0 | [
2,
25,
14,
13,
9,
2328,
6596,
6698,
29,
186,
3281,
16,
1936,
60,
800,
3726,
3726,
25,
14,
13,
9,
2328,
6596,
6698,
29,
186,
3281,
16,
1936,
60,
100,
86,
56,
615,
25,
6698,
60,
129,
32,
44,
19,
14,
1022,
60,
483,
107,
3474,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 common way for OOP Patern design (Data Access)
===
Originally there was the DAL object which my BO's called for info and then passed to UI. Then I started noticing reduced code in UI and there were Controller classes. What's the decent recomendation.
I currently structure mine
Public Class OrderDAL
Private _id Integer
Privare _order as Order
Public Fucnction GetOrder(id as Integer) as Order
...return Order
End Funcion
End Class
then I have controller classes (recently implemented this style)
Public Class OrderController
Private Shared _orderDAL as new OrderDAL
Public Shared Function GetOrder(id) As Order
Return _orderDAL.GetOrder(id)
End Function
End Class
Then in my application
My app Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
msgbox(OrderController.GetOrder(12345).Customer.Name)
End Sub
End app
I originally found that with the Shared Class I didn't have to keep creating a new instance of the DAL whenever I need to fetch data
Dim _orderDAL as New OrderDal
_orderDAL.GetOrder(1234)
.....
What's your take?
Thanks
| 0 | [
2,
98,
22,
18,
14,
757,
161,
26,
13,
21709,
24928,
103,
704,
13,
5,
18768,
1381,
6,
800,
3726,
3726,
912,
80,
23,
14,
6868,
3095,
56,
51,
1607,
22,
18,
227,
26,
15404,
17,
94,
1100,
20,
13,
5661,
9,
94,
31,
373,
18130,
2736,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 good tools for converting Managed C++ to C++/CLI?
===
We have an old project written using Managed C++ syntax. I would like to propose a reasonably pain-free (I don't mind some level of human interaction, I think I'm realistic in my expectations) method of updating the existing code to C++/CLI syntax so that we can also add XML documentation (the project is a library into other projects and having documentation would be immensely useful).
So, are there any good tools out there to help with this? Or is it just a case of switching to the new C++/CLI syntax compiler and fixing errors as we go? | 0 | [
2,
50,
80,
186,
254,
4672,
26,
19583,
1471,
272,
20512,
20,
272,
20512,
118,
150,
1210,
60,
800,
3726,
3726,
95,
57,
40,
315,
669,
642,
568,
1471,
272,
20512,
22649,
9,
31,
83,
101,
20,
17873,
21,
19531,
1257,
8,
4639,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I save an Android application's state?
===
I've been playing around with the Android SDK, and I am a little unclear on saving an applications state. So given this minor re-tooling of the 'Hello, Android' example:
package com.android.hello;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mTextView = new TextView(this);
if (savedInstanceState == null) {
mTextView.setText("Welcome to HelloAndroid!");
} else {
mTextView.setText("Welcome back.");
}
setContentView(mTextView);
}
private TextView mTextView = null;
}
I thought that might be all one needed to do for the simplest case, but it always gives me the first message, no matter how I navigate away from the app. I'm sure it's probably something simple like overriding onPause or something like that, but I've been poking away in the docs for 30 minutes or so and haven't found anything obvious, so would appreciate any help.
_Cue me looking a fool in three, two, one..._
Thanks. | 0 | [
2,
184,
107,
31,
2079,
40,
13005,
3010,
22,
18,
146,
60,
800,
3726,
3726,
31,
22,
195,
74,
791,
140,
29,
14,
13005,
13,
18,
43,
197,
15,
17,
31,
589,
21,
265,
11293,
27,
7599,
40,
3767,
146,
9,
86,
504,
48,
1689,
302,
8,
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... |
Alternatives to static methods in java
===
Im making a mini ORM for a java program im writing... there is a class for each table in my db, all inheriting from ModelBase.
ModelBase is abstract & provides a bunch of static methods for finding & binding objects from the db, for example:
public static ArrayList findAll(Class cast_to_class) {
//build the sql query & execute it
}
So you can do things like ModelBase.findAll(Albums.class) to get a list of all persisted albums.
My problem is that in this static context, I need to get the appropriate sql string from the concrete class Album. I cant have a static method like
public class Album extends ModelBase {
public static String getSelectSQL() { return "select * from albums.....";}
}
because there is no polymorphism for static methods in java. But I dont want to make getSelectSQL() an instance method in Album because then I need to create an instance of it just to get a string that is really static in behavour.
At the moment, findAll() uses reflection to get the appropriate sql for the class in question:
select_sql = (String)cast_to_class.getDeclaredMethod("getSelectSql", new Class[]{} ).invoke(null, null);
But thats pretty gross.
So any ideas? Its a general problem im having time and time again - the inability to specify abstract static methods in classes or interfaces. I know *why* static method polymorhism dosent and cant work, but that dosent stop me from wanting to use it time again!
Is there any pattern/construct that allows me to ensure that concrete subclasses X and Y implement a class method(or failing that, a class constant!)? | 0 | [
2,
2676,
18,
20,
12038,
3195,
19,
8247,
800,
3726,
3726,
797,
544,
21,
4236,
54,
79,
26,
21,
8247,
625,
797,
1174,
9,
9,
9,
80,
25,
21,
718,
26,
206,
859,
19,
51,
13,
9007,
15,
65,
17569,
68,
37,
1061,
8436,
9,
1061,
8436,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Enable local scripts and flash in ie7
===
I'm running an old little app which runs in the browser from local files, and I keep getting the, "To help protect your security, Internet Explorer has restricted this webpage from running scripts or Activex controls that could access your computer" message.
Is there a registry setting or something I can tweak to allow it to run automatically?
I'm aware of [Mark of the Web][1] but it is not practical in this case (neither is running in Firefox, unfortunately).
[1]: http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx | 0 | [
2,
9240,
375,
17505,
17,
4433,
19,
13,
660,
465,
800,
3726,
3726,
31,
22,
79,
946,
40,
315,
265,
4865,
56,
1461,
19,
14,
16495,
37,
375,
6488,
15,
17,
31,
643,
1017,
14,
15,
13,
7,
262,
448,
2196,
154,
1221,
15,
2620,
8520,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 it matter to developers that the current, and newer versions of .Net don't support windows 2000?
===
Does it matter to developers that the current, and newer versions of .Net don't support windows 2000?
It scares me to think that several of my clients still use Windows 2000 and although I may decide to stop supporting Windows 2000 one day, I don't like that Microsoft is pushing it on people's products.
Could anyone see Microsoft doing this with XP in the future to spur sales of Vista and later? | 4 | [
2,
630,
32,
1161,
20,
10168,
30,
14,
866,
15,
17,
12372,
3281,
16,
13,
9,
2328,
221,
22,
38,
555,
1936,
824,
60,
800,
3726,
3726,
630,
32,
1161,
20,
10168,
30,
14,
866,
15,
17,
12372,
3281,
16,
13,
9,
2328,
221,
22,
38,
555,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which CPU architectures support Compare And Swap (CAS)?
===
just curious to know which CPU architectures support compare and swap atomic primitives? | 0 | [
2,
56,
17578,
2607,
18,
555,
11590,
17,
17150,
13,
5,
5949,
6,
60,
800,
3726,
3726,
114,
7686,
20,
143,
56,
17578,
2607,
18,
555,
11590,
17,
17150,
9692,
11473,
18,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Which programming languages are friendly to both web-development and Unicode?
===
I've been using PHP for a while, but I'm growing tired of the sloppy/awkward Unicode support (among other things). Baked-in Unicode support is very important to me, since I *despise* debugging character encoding issues, especially between the database and scripting layers.
What languages work well with both Unicode and web development? Here are my criteria:
## Unicode-friendly ##
- Strings and their operations are multi-byte friendly by default
- Unicode is the default representation
## Web-friendly ##
- Runs reliably in Apache or similar
- Available on decent hosting providers
- Can either be intermingled with HTML or is easy to template with
I suspect Python fits this description. Are there any others that are worth looking into? | 0 | [
2,
56,
3143,
2556,
50,
4753,
20,
156,
2741,
8,
26119,
17,
28010,
60,
800,
3726,
3726,
31,
22,
195,
74,
568,
13,
26120,
26,
21,
133,
15,
47,
31,
22,
79,
1991,
4117,
16,
14,
28582,
118,
3885,
197,
2826,
28010,
555,
13,
5,
21068,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Unit Testing the Views?
===
Any idea on how to unit test the views in ASP.NET MVC?
I am sick of encountering the yellow screen of death when I launch my MVC project just because I don't update the views when my controller one of the action methods changes name.
| 0 | [
2,
1237,
4431,
14,
4146,
60,
800,
3726,
3726,
186,
882,
27,
184,
20,
1237,
1289,
14,
4146,
19,
28,
306,
9,
2328,
307,
8990,
60,
31,
589,
3352,
16,
7007,
68,
14,
2019,
2324,
16,
372,
76,
31,
3394,
51,
307,
8990,
669,
114,
185,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Horizontal lines when clicking the button in Firefox
===
I've some CSS problem in Firefox 3. I have several image buttons on my page and when I'm clicking on them I've seen to horizontal lines across the screen at top and bottom button border. I saw such issue on other web sites, so I think it's something known. | 0 | [
2,
10095,
1560,
76,
25590,
14,
5167,
19,
535,
18219,
800,
3726,
3726,
31,
22,
195,
109,
272,
18,
18,
1448,
19,
535,
18219,
203,
9,
31,
57,
238,
1961,
12861,
27,
51,
2478,
17,
76,
31,
22,
79,
25590,
27,
105,
31,
22,
195,
541,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sqlite update field if it contains
===
Given a database field named "widget_ids", containing data like "67/797/124/" or "45/", where the numbers are slash seperated widget_ids... how would you make an update statement with SQL that would say:
"if the widget_ids of the row with id X contains the text "somenumber/" do nothing, otherwise append "somenumber/" to it's current value"
Can you do something like that with SQL, or more specifically, sqlite? Is that something that is better done in the program for some reason or is there support for "if-then" like syntax in SQL? | 0 | [
2,
4444,
10601,
11100,
575,
100,
32,
1588,
800,
3726,
3726,
504,
21,
6018,
575,
377,
13,
7,
3976,
43,
3060,
1,
9178,
7,
15,
3503,
1054,
101,
13,
7,
4167,
118,
3399,
9816,
918,
12918,
7,
54,
13,
7,
2520,
118,
7,
15,
113,
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... |
System.IO.FileSystemWatcher to monitor a network-server folder - Performance considerations
===
I want to watch a folder tree on a network server for changes. The files all have a specific extension. There are about 200 folders in the tree and about 1200 files with the extension I am watching.
I can't write a service to run on the server (off-limits!) so the solution has to be local to the client. Timeliness is not particularly important. I can live with a minute or more delay in notifications. I am watching for Create, Delete, Rename and Changes.
Would using the .NET System.IO.fileSystemWatcher create much of a load on the server?
How about 10 separate watchers to cut down the number of folders/files being watched? (down to 200 from 700 folders, 1200 from 5500 files in total) More network traffic instead of less? My thoughts are a reshuffle on the server to put the watched files under 1 tree. I may not always have this option hence the team of watchers.
I suppose the other solution is a periodic check if the FSW creates an undue load on the server, or if it doesn't work for a whole bunch of SysAdmin type reasons.
Is there a better way to do this? | 0 | [
2,
329,
9,
1963,
9,
16877,
10724,
9054,
106,
20,
7626,
21,
982,
8,
10321,
106,
19294,
13,
8,
956,
20478,
800,
3726,
3726,
31,
259,
20,
1455,
21,
19294,
1541,
27,
21,
982,
8128,
26,
1693,
9,
14,
6488,
65,
57,
21,
1903,
3896,
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... |
Search for information on building large enterprise systems.
===
How do you organize DB layer, business logic and cross-platform API of your information management system, if uploading and processing 500000 data records in one session is a normal operation (C# .NET 3.5 + MS SQL 2005)?
I’m specifically interested in production-proven paging patterns that behave well with the concurrency, scalability and reliability.
Does anybody have any ideas, in what direction to dig?
- Open Source Projects (don’t care about the language or platform, as long as it is not Ook)
- books
- articles
- Google keywords
- forums or newsgroups
Any help would greatly appreciated!
| 0 | [
2,
2122,
26,
676,
27,
353,
370,
6002,
1242,
9,
800,
3726,
3726,
184,
107,
42,
9213,
13,
9007,
5385,
15,
508,
7085,
17,
919,
8,
27035,
21,
2159,
16,
154,
676,
1097,
329,
15,
100,
71,
16866,
17,
5511,
3033,
3993,
1054,
742,
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... |
High-level Compare And Swap (CAS) functions?
===
I'd like to document what high-level (i.e. C++ not inline assembler ) functions or macros are available for Compare And Swap (CAS) atomic primitives...
E.g., WIN32 on x86 has a family of functions _InterlockedCompareExchange in the <_intrin.h> header. | 0 | [
2,
183,
8,
3906,
11590,
17,
17150,
13,
5,
5949,
6,
3719,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
4492,
98,
183,
8,
3906,
13,
5,
49,
9,
62,
9,
272,
20512,
52,
19,
1143,
13,
13736,
139,
13,
6,
3719,
54,
9069,
18,
50,
904,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Unicode Characters that can be used to trick a string sorter?
===
Since Unicode lacks a series of zero width sorting characters, I need to determine equivalent characters that will allow me to force a certain order on a list that is automatically sorted by character values. Unfortunately the list items are not in an alphabetical order, nor is it acceptable to prefix them with visible characters to ensure the result of the sort matches the wanted outcome.
What Unicode characters can be thrown in front of regular Latin alphabet text, and will not appear, but still allow me to "spike" the sort in the way I require?
(BTW this is being done with Drupal 5 with a user profile list field. Don't bother suggesting changing that to a vocabulary/category.) | 0 | [
2,
28010,
1766,
30,
92,
44,
147,
20,
5514,
21,
3724,
2058,
106,
60,
800,
3726,
3726,
179,
28010,
1792,
18,
21,
231,
16,
4606,
9456,
2058,
68,
1766,
15,
31,
376,
20,
3746,
4602,
1766,
30,
129,
1655,
55,
20,
558,
21,
1200,
389,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Get other running processes window sizes in Python
===
This isn't as malicious as it sounds, I want to get the current size of their windows, not look at what is in them. The purpose is to figure out that if every other window is fullscreen then I should start up like that too. Or if all the other processes are only 800x600 despite there being a huge resolution then that is probably what the user wants. Why make them waste time and energy resizing my window to match all the others they have? I am primarily a Windows devoloper but it wouldn't upset me in the least if there was a cross platform way to do this. | 0 | [
2,
164,
89,
946,
5102,
1463,
13403,
19,
20059,
800,
3726,
3726,
48,
2532,
22,
38,
28,
24231,
28,
32,
2795,
15,
31,
259,
20,
164,
14,
866,
1072,
16,
66,
1936,
15,
52,
361,
35,
98,
25,
19,
105,
9,
14,
2131,
25,
20,
1465,
70,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
assignment in condition
===
In many languages assignments are legal in conditions. I never understood the reason behind this. Why would you write:
if (var1 = var2) {
...
}
instead of:
var1 = var2;
if (var1) {
...
}
| 0 | [
2,
8427,
19,
2874,
800,
3726,
3726,
19,
151,
2556,
16898,
50,
1517,
19,
2039,
9,
31,
243,
4014,
14,
1215,
439,
48,
9,
483,
83,
42,
2757,
45,
100,
13,
5,
3311,
165,
800,
4033,
135,
6,
13,
1,
13,
9,
9,
9,
13,
1,
700,
16,
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... |
What is a good extendable blogging application for asp.net?
===
Hi I tried a search for: "best asp.net blog”, “good asp.net blog" and went thru the blag and blogging tags and got nothing really what I am asking, so if it’s been asked before, I apologize and please point me the way.
I am looking for a relatively good and well supported, and preferably open source blog application that runs on asp.net/mssql. It doesn’t need to be packed full of features, it just needs the basics, such as tagging, comments, etc. Extra features are a bonus.
I would also like it to be either open source or have an extendable framework for customization of not only the look, but the functionality; preferably written in C# if its open source, as that is my language of choice.
Good performance, etc, the usual stuff when looking for applications.
Even if its a CMS with a blog in it, that would be benificial to point out as well.
Any input is appreciated. If you do have input, please give the name, a link, and some of the the things you find good about it. Even if someone has posted what you were going to post, but you have other things you like about it, please add those things anyways.
Thanks | 0 | [
2,
98,
25,
21,
254,
7206,
579,
334,
13919,
3010,
26,
28,
306,
9,
2328,
60,
800,
3726,
3726,
4148,
31,
794,
21,
2122,
26,
45,
13,
7,
4936,
28,
306,
9,
2328,
8146,
1,
15,
13,
1,
3264,
28,
306,
9,
2328,
8146,
7,
17,
296,
1963... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
saslpasswd2: generic failure on Windows
===
I get a generic failure when I try to run:
saslpasswd2 username
This was installed by Collanet's Subversion 1.5.2. | 0 | [
2,
9233,
255,
6201,
14733,
135,
45,
12733,
2990,
27,
1936,
800,
3726,
3726,
31,
164,
21,
12733,
2990,
76,
31,
1131,
20,
485,
45,
9233,
255,
6201,
14733,
135,
4155,
7259,
48,
23,
4066,
34,
3313,
7437,
38,
22,
18,
972,
10898,
137,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Best way to make double insert
===
What's the best way of inserting information in table A and using the index from table A to relate to table B.
The "solution" I tried is inserting the info in table A, then, select the last index and insert it in table B. This may not be very useful, as the last index may change between the inserts. | 0 | [
2,
246,
161,
20,
233,
1494,
14692,
800,
3726,
3726,
98,
22,
18,
14,
246,
161,
16,
14692,
68,
676,
19,
859,
21,
17,
568,
14,
4348,
37,
859,
21,
20,
16464,
20,
859,
334,
9,
14,
13,
7,
18,
18687,
3309,
7,
31,
794,
25,
14692,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AutoLock in Java - how to ?
===
What is the best way to free resources (in this case unlock the ReadWriteLock) when leaving the scope ? How to cover all possible ways (return, break, exceptions etc)? | 0 | [
2,
3108,
3966,
19,
8247,
13,
8,
184,
20,
13,
60,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
551,
2566,
13,
5,
108,
48,
610,
16497,
14,
1302,
23716,
3966,
6,
76,
1107,
14,
9914,
13,
60,
184,
20,
1227,
65,
938,
2847,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... |
When should I use __forceinline instead of inline?
===
Visual Studio includes support for __forceinline. The Microsoft Visual Studio 2005 documentation states:
> The __forceinline keyword overrides
> the cost/benefit analysis and relies
> on the judgment of the programmer
> instead.
This begs the question: When is the compiler's cost/benefit analysis wrong? And, how am I supposed to know that it's wrong?
In what scenario is it assumed that I know better than my compiler on this issue? | 0 | [
2,
76,
378,
31,
275,
13,
1,
8774,
108,
1143,
700,
16,
19,
1143,
60,
800,
3726,
3726,
3458,
1120,
1103,
555,
26,
13,
1,
8774,
108,
1143,
9,
14,
7099,
3458,
1120,
812,
13945,
202,
45,
13,
1,
14,
13,
1,
8774,
108,
1143,
1246,
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... |
Errors with Python's mechanize module
===
I'm using the `mechanize` module to execute some web queries from Python. I want my program to be error-resilient and handle all kinds of errors (wrong URLs, 403/404 responsese) gracefully. However, I can't find in mechanize's documentation the errors / exceptions it throws for various errors.
I just call it with:
self.browser = mechanize.Browser()
self.browser.addheaders = [('User-agent', browser_header)]
self.browser.open(query_url)
self.result_page = self.browser.response().read()
How can I know what errors / exceptions can be thrown here and handle them ?
| 0 | [
2,
11908,
29,
20059,
22,
18,
55,
3606,
2952,
12613,
800,
3726,
3726,
31,
22,
79,
568,
14,
13,
1,
790,
3606,
2952,
1,
12613,
20,
15644,
109,
2741,
9386,
2829,
37,
20059,
9,
31,
259,
51,
625,
20,
44,
7019,
8,
99,
18,
7502,
2291,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 an empty array in .NET use any space?
===
I have some code where I'm returning an array of objects.
Here's a simplified example:
string[] GetTheStuff() {
List<string> s = null;
if( somePredicate() ) {
s = new List<string>(); // imagine we load some data or something
}
return (s == null) ?
new string[0] :
s.ToArray();
}
The question is, how expensive is the `new string[0]` ?
Should I just return null and make the caller accept null as a valid way of indicating "nothing was found"?
NB: This is being called in a loop which gets run hundreds and hundreds of times, so it's one of the few cases where I think this kind of optimiziation is not actually 'premature'.
PS: And even if it was premature, I'd still like to know how it works :-) | 0 | [
2,
630,
40,
2424,
7718,
19,
13,
9,
2328,
275,
186,
726,
60,
800,
3726,
3726,
31,
57,
109,
1797,
113,
31,
22,
79,
2485,
40,
7718,
16,
3916,
9,
235,
22,
18,
21,
13,
11268,
823,
45,
3724,
2558,
500,
164,
124,
384,
5386,
5,
6,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I stop Emacs from making backup files?
===
Emacs puts backup files named `foo~` everywhere and I don't like having to remember to delete them. Also, if I edit a file that has a hard link somewhere else in the file system, the hard link points to the backup when I'm done editing, and that's confusing and awful. How can I either eliminate these backup files, or have them go somewhere other than the same directory?
| 0 | [
2,
184,
107,
31,
747,
13,
62,
6893,
18,
37,
544,
10119,
6488,
60,
800,
3726,
3726,
13,
62,
6893,
18,
11179,
10119,
6488,
377,
13,
1,
4120,
111,
1,
6417,
17,
31,
221,
22,
38,
101,
452,
20,
1518,
20,
27448,
105,
9,
67,
15,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Native Code?
===
The Project's Web section (under project properties in VS2008) has a list of debuggers: ASP.NET, Native Code, SQL Server. What is Native Code? | 0 | [
2,
98,
25,
1275,
1797,
60,
800,
3726,
3726,
14,
669,
22,
18,
2741,
1050,
13,
5,
4579,
669,
3704,
19,
4611,
2753,
6,
63,
21,
968,
16,
121,
16254,
11896,
45,
28,
306,
9,
2328,
15,
1275,
1797,
15,
4444,
255,
8128,
9,
98,
25,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Good database design for recall and comparison of 2D data arrays?
===
I am looking to store 2D arrays of 900x100 elements in a database. Efficient recall and comparison of the arrays is important. I could use a table with a schema like [A, x, y, A(x,y)] such that a single array would compromise 90,000 records. This seems like an ~ok~ table design to store the array, and would provide for efficient recall of single elements, but inefficient recall of a whole array and would make for very inefficient array comparisons.
Should I leave the table design this way and build and compare my arrays in code? Or is there a better way to structure the table such that I can get efficient array comparisons using database only operations?
thanks | 0 | [
2,
254,
6018,
704,
26,
7111,
17,
6050,
16,
172,
43,
1054,
7718,
18,
60,
800,
3726,
3726,
31,
589,
699,
20,
1718,
172,
43,
7718,
18,
16,
12659,
396,
4031,
2065,
19,
21,
6018,
9,
8243,
7111,
17,
6050,
16,
14,
7718,
18,
25,
681,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Date Conversion with SQL Server/Reporting Services
===
I have 2 fields in the database month (numeric) and year (numeric) and I want to combine them in a report that combines those 2 fields and format them with MMM-YYYY. e.g 7-2008 becomes Jul-2008. How do I do that? | 0 | [
2,
1231,
6263,
29,
4444,
255,
8128,
118,
17437,
68,
687,
800,
3726,
3726,
31,
57,
172,
2861,
19,
14,
6018,
1617,
13,
5,
6336,
14744,
6,
17,
159,
13,
5,
6336,
14744,
6,
17,
31,
259,
20,
12287,
105,
19,
21,
1330,
30,
15339,
273,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 MVC: How do I get virtual url for the current controller/view?
===
Is it possible to get the route/virtual url associated with a controller action or on a view? I saw that Preview 4 added LinkBuilder.BuildUrlFromExpression helper, but it's not very useful if you want to use it on the master, since the controller type can be different. Any thoughts are appreciated. | 0 | [
2,
28,
306,
9,
2328,
307,
8990,
45,
184,
107,
31,
164,
6599,
287,
6362,
26,
14,
866,
9919,
118,
4725,
60,
800,
3726,
3726,
25,
32,
938,
20,
164,
14,
858,
118,
8145,
38,
6948,
287,
6362,
1598,
29,
21,
9919,
1028,
54,
27,
21,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
No Symbols loaded when remote debugging
===
I hope someone can help me with my problem.
I want to use remote debugging. The Program, that I want to debug runs on machine b. Visual Studio runs on machine a.
On machine b I have a folder with the following files
msvcr72.dll
msvsmon.exe
NatDbgDE.dll
NatDbgDEUI.dll
NatDbgEE.dll
NatDbgEEUI.dll
If you think, there are files missing, could you also describe, where I find them usually? In the next step I start the msvsmon.exe and my program on machine b. On machine a I start Visual Studio 2008 and my solution in which the program was written. Then I choose Debug - Attach to Process. I take Remote Transport (Native Only with no authentication). I use the correct IP as qualifier and take the right process (program.exe). After a while the following message occurs in a popup-window
"Unhandled exception at 0x7c812a7b in program.exe: 0xE0434F4D: 0xe0434f4d"
I have the possibility to continue or break, when continuing the exception-message occurs again and again and again. So I pressed break and then the following message occurs
"No symbols are loaded for any call stack frame. The source code cannot be displayed.
I hope someone can help me. Thanks for any effort.
Greets
Sebastian
| 0 | [
2,
90,
9794,
8572,
76,
5388,
121,
16254,
2762,
800,
3726,
3726,
31,
1376,
737,
92,
448,
55,
29,
51,
1448,
9,
31,
259,
20,
275,
5388,
121,
16254,
2762,
9,
14,
625,
15,
30,
31,
259,
20,
121,
16254,
1461,
27,
1940,
334,
9,
3458,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PHP: self vs this
===
In PHP5, what is the difference between using $self and $this? When is each appropriate? | 0 | [
2,
13,
26120,
45,
1119,
4611,
48,
800,
3726,
3726,
19,
13,
26120,
264,
15,
98,
25,
14,
2841,
128,
568,
5579,
8411,
17,
5579,
1565,
60,
76,
25,
206,
4593,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
c++ blogs that you regularly follow?
===
What are all the c++ blogs that you follow
***Please add one url for one posting.*** | 4 | [
2,
272,
20512,
8146,
18,
30,
42,
4217,
1740,
60,
800,
3726,
3726,
98,
50,
65,
14,
272,
20512,
8146,
18,
30,
42,
1740,
8980,
6744,
3547,
53,
287,
6362,
26,
53,
15669,
9,
2483,
1409,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Does the GroupBox Header in WPF swallow mouse-clicks?
===
Have a look at this very simple example WPF program:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<GroupBox>
<GroupBox.Header>
<CheckBox Content="Click Here"/>
</GroupBox.Header>
</GroupBox>
</Window>
So I have a GroupBox whose header is a CheckBox. We've all done something like this - typically you bind the content of the GroupBox in such a way that it's disabled when the CheckBox is unchecked.
However, when I run this application and click on the CheckBox, I've found that sometimes my mouse clicks are swallowed and the CheckBox's status doesn't change. If I'm right, it's when I click on the exact row of pixels that the GroupBox's top border sits on.
Can someone duplicate this? Why would this occur, and is there a way around it? | 0 | [
2,
630,
14,
214,
5309,
157,
106,
19,
619,
7721,
9185,
7567,
8,
150,
10129,
18,
60,
800,
3726,
3726,
57,
21,
361,
35,
48,
253,
1935,
823,
619,
7721,
625,
45,
13,
1,
27508,
993,
45,
1898,
3726,
7,
13790,
1473,
306,
20669,
165,
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... |
Server side virus scanning
===
I need to scan uploaded files for viruses on a Linux server, but I'm not sure how to go about it.
What are my options, if any? I'm also interested in how the scanners perform when multiple users send multiple files at the same time. | 0 | [
2,
8128,
270,
6231,
15863,
800,
3726,
3726,
31,
376,
20,
8313,
23782,
6488,
26,
6231,
160,
27,
21,
13024,
8128,
15,
47,
31,
22,
79,
52,
562,
184,
20,
162,
88,
32,
9,
98,
50,
51,
6368,
15,
100,
186,
60,
31,
22,
79,
67,
3158,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Currying in Functional programming?
===
How currying can be done in c++?Please Explain binders in STL container? | 0 | [
2,
98,
25,
18239,
68,
19,
7652,
3143,
60,
800,
3726,
3726,
184,
18239,
68,
92,
44,
677,
19,
272,
20512,
60,
6744,
3271,
13,
24200,
18,
19,
354,
255,
12147,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
change mime type of output in php
===
I've got a php script. Most of the time the script returns html, which is working fine, but on one occasion (parameter ?Format=XML) the script returns XML instead of HTML.
Is there any way to change the returned mime type of the php output on the fly from text/html to text/xml? | 0 | [
2,
753,
26193,
1001,
16,
5196,
19,
13,
26120,
800,
3726,
3726,
31,
22,
195,
330,
21,
13,
26120,
3884,
9,
127,
16,
14,
85,
14,
3884,
4815,
13,
15895,
15,
56,
25,
638,
1123,
15,
47,
27,
53,
5434,
13,
5,
6351,
7307,
13,
60,
235... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Micro Framework on a ARM Cortex-M3 Core
===
I have a [RDK-IDM][1] from [Luminary Micro][2]. This board has a 32-bit ARM® [Cortex™-M3 core][3]. Has anybody tried to run a .NET Micro Framework application on such a device?
[1]: http://www.luminarymicro.com/products/rdk-idm.html
[2]: http://www.luminarymicro.com/
[3]: http://www.arm.com/products/CPUs/ARM_Cortex-M3.html | 0 | [
2,
13,
9,
2328,
2899,
6596,
27,
21,
813,
19685,
8,
79,
240,
2884,
800,
3726,
3726,
31,
57,
21,
636,
897,
197,
8,
1340,
79,
500,
2558,
165,
500,
37,
636,
23471,
622,
2899,
500,
2558,
135,
500,
9,
48,
686,
63,
21,
2512,
8,
332... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Detecting CPU architecture compile-time
===
What is the most reliable way to find out CPU architecture when compiling C or C++ code? As far as I can tell, different compilers have their own set of non-standard preprocessor definitions (`_M_X86` in MSVS, `__i386__`, `__arm__` in GCC, etc).
Is there a *standard* way to detect the architecture I'm building for? If not, is there a source for a comprehensive list of such definitions for various compilers, such as a header with all the boilerplate `#ifdef`s? | 0 | [
2,
9092,
68,
17578,
2607,
26561,
8,
891,
800,
3726,
3726,
98,
25,
14,
127,
11398,
161,
20,
477,
70,
17578,
2607,
76,
24378,
272,
54,
272,
20512,
1797,
60,
28,
463,
28,
31,
92,
494,
15,
421,
21486,
18,
57,
66,
258,
309,
16,
538... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Tuples in C#
===
.Net 3.5 doesn't support tuples. Too bad, But not sure whether the future version of .net will support tuples or not? | 0 | [
2,
2289,
18534,
19,
272,
5910,
800,
3726,
3726,
13,
9,
2328,
203,
9,
264,
1437,
22,
38,
555,
2289,
18534,
9,
266,
896,
15,
47,
52,
562,
1472,
14,
1022,
615,
16,
13,
9,
2328,
129,
555,
2289,
18534,
54,
52,
60,
3,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Deploying Websphere Portals onto a 6.1 Server
===
Any time I try to publish my Portal project on a Websphere Portal 6.1 Server, I get the following error message:
Portal project publishing is not supported on WebSphere Portal v6.1 Server
Is that really true or have I done something wrong? | 0 | [
2,
17617,
68,
2741,
14079,
8281,
18,
1204,
21,
400,
9,
165,
8128,
800,
3726,
3726,
186,
85,
31,
1131,
20,
10824,
51,
8281,
669,
27,
21,
2741,
14079,
8281,
400,
9,
165,
8128,
15,
31,
164,
14,
249,
7019,
2802,
45,
8281,
669,
3107,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WSDL validator
===
Is there any online service available to validate Web Service WSDL file? | 0 | [
2,
619,
18,
8643,
7394,
3457,
800,
3726,
3726,
25,
80,
186,
2087,
365,
904,
20,
7394,
1373,
2741,
365,
619,
18,
8643,
3893,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to select all users who made more than 10 submissions.
===
I have a submission table that is very simple: userId, submissionGuid
I want to select the username of all the users who have more than 10 submissions in the table.
I would do this with embedded queries and a group by to count submissions... but is there a better way of doing it? | 0 | [
2,
184,
20,
5407,
65,
3878,
72,
117,
91,
119,
332,
10923,
18,
9,
800,
3726,
3726,
31,
57,
21,
10923,
859,
30,
25,
253,
1935,
45,
275,
5175,
15,
10923,
7215,
43,
31,
259,
20,
5407,
14,
4155,
7259,
16,
65,
14,
3878,
72,
57,
91... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 their any 'ok' Image Recognition libraries for .NET?
===
I want to be able to compare an image taken from a webcam to an image stored on my computer.
The library doesn't need to be one hundred percent accurate as it won't be used in anything mission critical (e.g. Police investigation), I just want something 'ok' I can work with.
I have tried a demonstration project for [Image Recognition from CodeProject][1], and it only works with small images / doesn't work at all when I compare an exact same image 120x90 pixels (this is not classified as 'ok' :P ).
Has anybody here had success with image recognition before?
If so, would you be able to provide a link to a library I could use in either C# or VB.NET?
Thanks in advance. :)
[1]: http://www.codeproject.com/KB/cs/BackPropagationNeuralNet.aspx | 0 | [
2,
50,
66,
186,
13,
22,
3085,
22,
1961,
3514,
8649,
26,
13,
9,
2328,
60,
800,
3726,
3726,
31,
259,
20,
44,
777,
20,
11590,
40,
1961,
658,
37,
21,
2741,
8760,
20,
40,
1961,
8214,
27,
51,
1428,
9,
14,
1248,
1437,
22,
38,
376,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Structuring projects & dependencies of large winforms applications in C#
===
How do you structure a very large application?
- Multiple smallish projects/assemblies in one big solution?
- A few big projects?
- One solution per project?
And how do you manage dependencies in the case where you don't have one solution.
Note: I'm looking for advice based on experience, not answers you found on Google (I can do that myself).
I'm currently working on an application which has upward of 80 dlls, each in its own solution. Managing the dependencies is almost a full time job. There is a custom in-house 'source control' with added functionality for copying dependency dlls all over the place. Seems like a sub-optimum solution to me, but is there a better way? Working on a solution with 80 projects would be pretty rough in practice, I fear.
(Context: winforms, not web) | 0 | [
2,
13,
10346,
10450,
2314,
279,
29411,
16,
370,
628,
4190,
18,
3767,
19,
272,
5910,
800,
3726,
3726,
184,
107,
42,
1411,
21,
253,
370,
3010,
60,
13,
8,
1886,
284,
1595,
2314,
118,
9790,
5024,
7712,
19,
53,
580,
4295,
60,
13,
8,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to measure performance in a C++ (MFC) application?
===
What good profilers do you know?
What is a good way to measure and tweak the performance of a C++ MFC application?
Is Analysis of algorithms really neccesary? [http://en.wikipedia.org/wiki/Algorithm_analysis][1]
[1]: http://en.wikipedia.org/wiki/Algorithm_analysis | 0 | [
2,
184,
20,
4058,
956,
19,
21,
272,
20512,
13,
5,
79,
7061,
6,
3010,
60,
800,
3726,
3726,
98,
254,
5296,
1224,
107,
42,
143,
60,
98,
25,
21,
254,
161,
20,
4058,
17,
28769,
14,
956,
16,
21,
272,
20512,
307,
7061,
3010,
60,
25... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it OK to inspect properties beginning with underscore?
===
I've been working on a very simple crud generator for pylons. I came up with something that inspects
SomeClass._sa_class_manager.mapper.c
Is it ok to inspect this (or to call methods begining with underscore)? I always kind of assumed this is legal though frowned upon as it relies heavily on the internal structure of a class/object. But hey, since python does not really have interfaces in the Java sense maybe it is OK. | 0 | [
2,
25,
32,
5854,
20,
19,
7350,
3704,
997,
29,
131,
15077,
60,
800,
3726,
3726,
31,
22,
195,
74,
638,
27,
21,
253,
1935,
11498,
43,
15286,
26,
29262,
18,
9,
31,
281,
71,
29,
301,
30,
19,
7350,
18,
109,
1898,
9,
1,
1229,
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... |
RightToLeft, ShowInTaskbar properties change ends Form.ShowDialog()
===
Dialog closes with Cancel result, no exceptions, as if you have pressed its close button.
The only safe place to set RightToLeft property is in the form constructor.
It occured to me that this information might save somebody else's time.
If you are able to elaborate on the issue: if there is an official bug confirmation, what else might cause ShowDialog to end unexpectedly, please, do.
[Re: close to tray - MSDN Forums](http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=651441&SiteID=1)
[change Form RightToLeft property at runtime](http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=651441&SiteID=1)
----
Quote from the second link:
>I have found a second bug in less than two days . This new bug is very critical .
>
>I have Normal Form with RightToLeft property set to its default value ( RightToLeft=False) .
Let us show this form with Show Function ( Form1.Show(me) )
>At this Form there is a Button which change Form RightToLeft to Yes instead of No:
>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.RightToLeft = Windows.Forms.RightToLeft.Yes
End Sub
>The Form will change its Title successfully to Right Side.
>Up To This there is no problem.
>Problem Occure as following
>If we Display this Form to the user using ShowDialog(Me) Function instead of display it using Show(Me) . Then Click Button which will change Form RightToLeft to Yes instead of No , Form will Close Suddenly with no reasons , and even not throw any exceptions .
> This is the new problem & it's exist also in .NET 3.0 ( Orcase ) Too .
| 0 | [
2,
193,
262,
9742,
15,
298,
6391,
20310,
1850,
3704,
753,
3451,
505,
9,
9303,
4286,
5567,
5,
6,
800,
3726,
3726,
28223,
543,
18,
29,
14815,
829,
15,
90,
13392,
15,
28,
100,
42,
57,
2931,
82,
543,
5167,
9,
14,
104,
1834,
209,
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... |
Display Boolean Field in Visual Studio Report Designer
===
I'm trying to display a boolean field in Report Designer in Visual Studio 2008. When I try to run it, an error occured:
"An error has occurred during report processing.
String was not recognized as a valid Boolean."
I tried to convert it using CBool() but didn't work.
Regards,
Jen | 0 | [
2,
3042,
9827,
413,
210,
575,
19,
3458,
1120,
1330,
4742,
800,
3726,
3726,
31,
22,
79,
749,
20,
3042,
21,
9827,
413,
210,
575,
19,
1330,
4742,
19,
3458,
1120,
570,
9,
76,
31,
1131,
20,
485,
32,
15,
40,
7019,
3744,
69,
45,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SQL schema to hold history of employee actions when employees come/go/get promoted, etc
===
I'm writing an app that contains the following tables: (1) employee\_type, (2) employee and (3) employee\_action.
Employee_action is foreign-keyed to employee, and contains a description of what happened and the date of the event, just as you might expect.
However, employees can change their type over time (promotion, demotion, relocation, etc). If my schema was just as simple as this, then you might generate a historical report that says that John was the CEO of the company when he was out delivering pizzas 10 years ago.
What would be the best way for me to save the fact that employees had a certain set of characteristics at the time that they performed an action, which are not necessarily their characteristics at the present time?
I'm stating my problem simply here. I have a lot more tables than 3, and the employees position is not the only characteristic that i'm worried about. It's not an option for me to just denormalize everything and make a history table with every possible employee field in it.
Thanks, I hope this is clear. | 0 | [
2,
4444,
255,
23874,
20,
1027,
447,
16,
7362,
3078,
76,
3716,
340,
118,
839,
118,
3060,
2033,
15,
2722,
800,
3726,
3726,
31,
22,
79,
1174,
40,
4865,
30,
1588,
14,
249,
7484,
45,
13,
5,
165,
6,
7362,
1,
4474,
15,
13,
5,
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... |
Programming against interfaces: Do you write interfaces for all your domain classes?
===
I agree, that programming against interfaces is a good practice. In most cases in Java "interface" in this sense means the language construct interface, so that you write an interface and an implementation class and that you use the interface instead of the implementation class most of the time.
I wonder if this is a good practice for writing domain models as well. So, for example if you've got a domain class Customer and each customer may have a list of Orders, would you *generally* also write an Interface ICustomer and IOrder. And also would Customer have a list of IOrders instead of Orders? Or would you use interfaces in the domain model only if it is really driven by the domain, e.g. you've got at least two different types of Orders? In other words, would you use interfaces because of only technical needs in the domain model, or only when it is really appropriate with respect to the actual domain. | 0 | [
2,
3143,
149,
6573,
18,
45,
107,
42,
2757,
6573,
18,
26,
65,
154,
4603,
2684,
60,
800,
3726,
3726,
31,
4524,
15,
30,
3143,
149,
6573,
18,
25,
21,
254,
1345,
9,
19,
127,
1871,
19,
8247,
13,
7,
6280,
6413,
7,
19,
48,
1259,
110... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Single Login - Is distributing session the answer
===
We have 5 balanced web servers with various websites.
What I am trying to achieve is to ensure a single login.
i.e. the same user account cannot login to the same website more than once at any given time.
The method i'm considering for solving this, is to share session amongst the servers so I can control which session is assigned to which account. I can then have control over my logins. If a user logs in and there is already a session assigned to their user account, I can just expire the first session or reject the login.
I don't want to lose the benefit of the balanced servers, so using a single Sql Server as my session state server, or a single server to handle login is not an option.
Is distributed session (something like [Scaleout Sofware][1]) the correct approach to achieve this?
Or is there another mechanism to handle single login that i'm blissfully unaware of?
[1]: http://www.scaleoutsoftware.com/ | 0 | [
2,
28,
306,
9,
2328,
345,
6738,
108,
13,
8,
25,
23125,
3723,
14,
1623,
800,
3726,
3726,
95,
57,
331,
13966,
2741,
17595,
29,
617,
13931,
9,
98,
31,
589,
749,
20,
4689,
25,
20,
4062,
21,
345,
6738,
108,
9,
31,
9,
62,
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... |
I want to prevent ASP.NET GridView from reacting to the enter button
===
I have an ASP.NET page with a gridview control on it with a CommandButton column with delete and select commands active.
Pressing the enter key causes the first command button in the gridview to fire, which deletes a row. I don't want this to happen. Can I change the gridview control in a way that it does not react anymore to pressing the enter key?
There is a textbox and button on the screen as well. They don't need to be responsive to hitting enter, but you must be able to fill in the textbox. Currently we popup a confirmation dialog to prevent accidental deletes, but we need something better than this. | 0 | [
2,
31,
259,
20,
2501,
28,
306,
9,
2328,
7354,
4725,
37,
7749,
68,
20,
14,
2830,
5167,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
2478,
29,
21,
7354,
4725,
569,
27,
32,
29,
21,
1202,
811,
444,
4698,
29,
27448,
17,
5407,
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... |
MVC tutorial that doesn't rely on a framework?
===
I want to learn MVC "architecture pattern" but I don't want to jump into a framework like Rails or Django just yet. I want to understand the concept first and write some simple code in my currently familiar environment, which happens to be php/html/css/mysql. I don't need a tutorial that is based on php, as I do understand a lot of different languages. And I don't want to have to install any frameworks or APIs or libraries. I just want to learn how to think in MVC and apply it to my projects. Any suggestions? | 0 | [
2,
307,
8990,
29724,
30,
1437,
22,
38,
12139,
27,
21,
6596,
60,
800,
3726,
3726,
31,
259,
20,
2484,
307,
8990,
13,
7,
27452,
4221,
3732,
7,
47,
31,
221,
22,
38,
259,
20,
3936,
77,
21,
6596,
101,
2240,
18,
54,
3857,
14541,
114,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Problems using jeditable and autogrow
===
I work on a Webproject using [jQuery][1] and CakePHP. I use [jeditable][2] as an inplace edit plugin. For textareas I extend it using the [autogrow plugin][3].
Well, I have two problems with this:
- First, autogrow does only work on Firefox, not on IE, Safari, Opera and Chrome.
- Second, I need a callback event for jeditable, when its finished showing the edit-component, to recalculate the [scrollbar][4]
Im not so familiar with Javascript, so i can't extend/correct this two libraries by my own. Has anyone used another js-library for inplace edit with auto growing textareas (no complete editors like TinyMCE, I need a solution for plain text)?
I also found [Growfield][5], it would work for other browsers, but there's no jeditable integration...
*(sorry for my english)*
[1]: http://jquery.com/
[2]: http://www.appelsiini.net/projects/jeditable
[3]: http://www.appelsiini.net/2008/4/autogrow-textarea-for-jeditable
[4]: http://kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html
[5]: http://plugins.jquery.com/project/Growfield | 0 | [
2,
1716,
568,
12671,
242,
579,
17,
3108,
263,
5417,
800,
3726,
3726,
31,
170,
27,
21,
2741,
21011,
568,
636,
728,
8190,
93,
500,
2558,
165,
500,
17,
8390,
26120,
9,
31,
275,
636,
1969,
1115,
5924,
500,
2558,
135,
500,
28,
40,
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... |
Gaussian distributions with PHP on a 24h time period
===
How can I set points on a 24h period spreaded by the Gaussian distributions? For example to have the peak at 10 o'clock? | 0 | [
2,
6540,
18,
10760,
2523,
18,
29,
13,
26120,
27,
21,
937,
252,
85,
620,
800,
3726,
3726,
184,
92,
31,
309,
819,
27,
21,
937,
252,
620,
1789,
69,
34,
14,
6540,
18,
10760,
2523,
18,
60,
26,
823,
20,
57,
14,
3059,
35,
332,
635,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Are there any open source projects using DDD (Domain Driven Design)?
===
I'm trying to understand the concepts behind DDD, but I find it hard to understand just by reading books as they tend to discuss the topic in a rather abstract way. I would like to see some good implementations of DDD in code, preferably in C#.
Are there any good examples of projects practicing DDD in the open source world? | 4 | [
2,
50,
80,
186,
368,
1267,
2314,
568,
13,
43,
8096,
13,
5,
537,
6232,
5355,
704,
6,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
1369,
14,
8700,
439,
13,
43,
8096,
15,
47,
31,
477,
32,
552,
20,
1369,
114,
34,
1876,
964,
28,
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... |
Animation in C++
===
What are ways to draw animations in C++? GDI+? OpenGL? Would you recommend a class pattern in particular to get the drawing and redrawing done?
Do you know of any open source project where animations are made so I can take a peek at the code?
Where would you start if you wanted to code geometrical animations? Do you know of any good libraries? Post links to tutorials and any other interesting information... | 0 | [
2,
6236,
19,
272,
20512,
800,
3726,
3726,
98,
50,
2847,
20,
2003,
6236,
18,
19,
272,
20512,
60,
489,
1115,
2430,
60,
368,
8430,
60,
83,
42,
12360,
21,
718,
3732,
19,
1498,
20,
164,
14,
3533,
17,
402,
12404,
68,
677,
60,
107,
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... |
Animated Gifs in Flex 3
===
Believe it or not I need a way of displaying animated gifs in Flex 3. This guy has a component for sale but it's Flex 2 only: http://dougmccune.com/blog/2007/01/19/how-to-load-animated-gifs-using-adobe-flex-20/.
And I’ve implemented this example: http://www.bytearray.org/?p=95, but for larger gifs it’s very CPU intensive and causes the UI to hang.
Does anyone know of any alternative solutions? Failing that, I may have to look at re-factoring the second example to use pseudo-threading. Eugh.
| 0 | [
2,
5784,
489,
821,
18,
19,
14409,
203,
800,
3726,
3726,
985,
32,
54,
52,
31,
376,
21,
161,
16,
17418,
5784,
489,
821,
18,
19,
14409,
203,
9,
48,
1244,
63,
21,
5912,
26,
3299,
47,
32,
22,
18,
14409,
172,
104,
45,
7775,
6903,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ActionUrl in ASP.NET MVC Preview 5
===
I don't need a Link but rather only the href= part of the ActionLink.
But if I call Html.ActionLink(...) I get a <a> back.
Is there a way to just return the URL of the Action while not getting the <a>? | 0 | [
2,
1028,
911,
255,
19,
28,
306,
9,
2328,
307,
8990,
16121,
331,
800,
3726,
3726,
31,
221,
22,
38,
376,
21,
3508,
47,
864,
104,
14,
746,
14057,
3726,
141,
16,
14,
1028,
6258,
9,
47,
100,
31,
645,
13,
15895,
9,
8645,
6258,
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... |
Java 1.4 synchronization
===
I have a class proposing translations utilities. The translations themselves should be reloaded every 30 minutes. I use Spring Timer support for that. Basically, my class looks like :
public interface Translator {
public void loadTranslations();
public String getTranslation(String key);
}
loadTranslations() can be pretty long to run, so while it is running the old translations are still available. This is done by loading the translations in a local Map and just changing the reference when all translations are loaded.
My problem is : how do I make sure that when a thread is already loading translations, is a second one also tries to run, it detects that and returns immediately, without starting a second update.
A synchronized method will only queue the loads ... I'm still on Java 1.4, so no java.util.concurrent.
Thanks for your help ! | 0 | [
2,
8247,
137,
9,
300,
13,
16023,
1829,
800,
3726,
3726,
31,
57,
21,
718,
24360,
13610,
19817,
9,
14,
13610,
1366,
378,
44,
27339,
69,
352,
712,
902,
9,
31,
275,
1573,
85,
139,
555,
26,
30,
9,
11374,
15,
51,
718,
1879,
101,
13,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Setup wxWidget in Netbeans 6.1 C++ On MS Windows?
===
Im running Netbeans 6.1 with C++ Plugin and cygwin (gcc compiler) how do I setup wxWidget to work with it? | 0 | [
2,
18161,
619,
396,
3976,
43,
3060,
19,
4275,
863,
5950,
400,
9,
165,
272,
20512,
27,
4235,
1936,
60,
800,
3726,
3726,
797,
946,
4275,
863,
5950,
400,
9,
165,
29,
272,
20512,
10922,
108,
17,
6728,
263,
4181,
13,
5,
263,
3384,
21... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... |
Using noweb on a large Java project
===
Has anyone used the [noweb][1] literate programming tool on a large Java project, where several source code files must be generated in different subdirectories? How did you manage this with noweb? Are there any resources and/or best practices out there?
[1]: http://www.cs.tufts.edu/~nr/noweb/ | 0 | [
2,
568,
130,
7665,
27,
21,
370,
8247,
669,
800,
3726,
3726,
63,
1276,
147,
14,
636,
251,
14113,
500,
2558,
165,
500,
27146,
3143,
5607,
27,
21,
370,
8247,
669,
15,
113,
238,
1267,
1797,
6488,
491,
44,
6756,
19,
421,
972,
10197,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 authentication to pick for the cross-platform WCF service?
===
What type of authentication would you suggest for the service that is:
- implemented as WCF and exposed via
varios enpoints (including XML-RPC)
- has to be consumed easily by various cross-platform clients
Why?
Options that I'm aware of are:
- Forms-based authentication for IIS-hosted WCF (easy to implement, but has horrible cross-platform support, plus it is not REST)
- Sending plain-text username/pwd with every call (easy to use on any platform, but totally unsecure)
- Using ticket-based authentication, when username&pwd are used to create a ticket that is valid for some time and is passed with every request (can be consumed by any client easily, but the API model is bound to this type of security)
Thanks for your time! | 0 | [
2,
98,
27963,
20,
2036,
26,
14,
919,
8,
27035,
11801,
410,
365,
60,
800,
3726,
3726,
98,
1001,
16,
27963,
83,
42,
5601,
26,
14,
365,
30,
25,
45,
13,
8,
6807,
28,
11801,
410,
17,
5043,
1197,
4033,
7760,
1957,
3132,
18,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I create a desktop icon for a ClickOnce application?
===
I have read in some of the ClickOnce posts that ClickOnce does not allow you to create a desktop icon for you application. Is there any way around this? | 0 | [
2,
92,
31,
1600,
21,
17404,
9801,
26,
21,
10840,
13120,
3010,
60,
800,
3726,
3726,
31,
57,
1302,
19,
109,
16,
14,
10840,
13120,
9868,
30,
10840,
13120,
630,
52,
1655,
42,
20,
1600,
21,
17404,
9801,
26,
42,
3010,
9,
25,
80,
186,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Java: StringBuffer & Concatenation
===
I'm using StringBuffer in Java to concat strings together, like so:
StringBuffer str = new StringBuffer();
str.append("string value");
I would like to know if there's a method (although I didn't find anything from a quick glance at the documentation) or some other way to add "padding".
Let me explain; every time I append something to the string, I want to add a space in the end, like so:
String foo = "string value";
str.append(foo + " ");
and I have several calls to append.. and every time, I want to add a space. Is there a way to set the object so that it will add a space automatically after each append? | 0 | [
2,
8247,
45,
3724,
2345,
6866,
279,
1065,
9530,
7914,
800,
3726,
3726,
31,
22,
79,
568,
3724,
2345,
6866,
19,
8247,
20,
1065,
5782,
7887,
429,
15,
101,
86,
45,
3724,
2345,
6866,
13,
9729,
800,
78,
3724,
2345,
6866,
5,
6,
73,
13,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Composite Oriented Programming (COP), .NET 4.0, MEF, and the Oslo Repository
===
There seems to have been some interest over the past year around COP within the .NET community (ala [Qi4j][1]). A few folks have rolled there own COP frameworks and it would appear .NET 4.0's Dynamic Dispatch and MEF might have a potential role in any .NET COP framework.
On one hand a lot of this would appear to hark back to ideas from System/38 days (*yes, I'm an old guy*), but it would also seem to be a pretty good fit with Oslo (*Modeling and Repository*). Can anyone comment on the whether Microsoft is doing any work on COP?
[1]: http://www.qi4j.org/ | 0 | [
2,
12639,
13,
6800,
3143,
13,
5,
9734,
6,
15,
13,
9,
2328,
268,
9,
387,
15,
55,
410,
15,
17,
14,
10111,
24869,
800,
3726,
3726,
80,
2206,
20,
57,
74,
109,
1163,
84,
14,
640,
159,
140,
5326,
363,
14,
13,
9,
2328,
514,
13,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to handle functions deprecation in library?
===
I'm working on a Java library and would like to remove some functions from it. My reasons for this is public API and design cleanup. Some objects have setters, but should be immutable, some functionality has been implemented better/cleaner in different methods, etc.
I have marked these methods 'deprecated', and would like to remove them eventually. At the moment I'm thinking about removing these after few sprints (two week development cycles).
Are there any 'best practices' about removing redundant public code?
/JaanusSiim | 0 | [
2,
184,
20,
3053,
3719,
121,
3515,
16893,
19,
1248,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
8247,
1248,
17,
83,
101,
20,
4681,
109,
3719,
37,
32,
9,
51,
2932,
26,
48,
25,
317,
21,
2159,
17,
704,
26862,
9,
109,
3916,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.