unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
How do I force a serial port write method to wait for the line to clear before sending its data?
===
Here's some background on what I'm trying to do:
1. Open a serial port from a mobile device to a Bluetooth printer.
2. Send an EPL/2 form to the Bluetooth printer, so that it understands how to treat the data it is about to receive.
3. Once the form has been received, send some data to the printer which will be printed on label stock.
4. Repeat step 3 as many times as necessary for each label to be printed.
Step 2 only happens the first time, since the form does not need to precede each label. My issue is that when I send the form, if I send the label data too quickly it will not print. Sometimes I get "Bluetooth Failure: Radio Non-Operational" printed on the label instead of the data I sent.
I have found a way around the issue by doing the following:
for (int attempt = 0; attempt < 3; attempt++)
{
try
{
serialPort.Write(labelData);
break;
}
catch (TimeoutException ex)
{
// Log info or display info based on ex.Message
Thread.Sleep(3000);
}
}
So basically, I can catch a TimeoutException and retry the write method after waiting a certain amount of time (three seconds seems to work all the time, but any less and it seems to throw the exception every attempt). After three attempts I just assume the serial port has something wrong and let the user know.
This way seems to work ok, but I'm sure there's a better way to handle this. There are a few properties in the SerialPort class that I think I need to use, but I can't really find any good documentation or examples of how to use them. I've tried playing around with some of the properties, but none of them seem to do what I'm trying to achieve.
Here's a list of the properties I have played with:
- CDHolding
- CtsHolding
- DsrHolding
- DtrEnable
- Handshake
- RtsEnable
I'm sure some combination of these will handle what I'm trying to do more gracefully.
I'm using C# (2.0 framework), a Zebra QL 220+ Bluetooth printer and a windows Mobile 6 handheld device, if that makes any difference for solutions.
Any suggestions would be appreciated.
TIA
Jason | 0 | [
2,
184,
107,
31,
558,
21,
5956,
1295,
2757,
2109,
20,
1760,
26,
14,
293,
20,
1207,
115,
4907,
82,
1054,
60,
800,
3726,
3726,
235,
22,
18,
109,
2395,
27,
98,
31,
22,
79,
749,
20,
107,
45,
137,
9,
368,
21,
5956,
1295,
37,
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... |
Enable/Disable "Step into" debugging on certain project in visual studio solution
===
I have a Visual Studio solution with four c# projects in it. I want to step into the code of a supporting project in the solution from my main project, but when I use the "Step into" key, it just skips over the call into that other project. I've set breakpoints in the supporting project, and they're ignored, and I can't for the life of me get it to step into any references to that project.
Everything is set to compile as "Debug", and I've seen VS warn me that my breakpoints won't be hit before - it doesn't do that in this case. It's as though it looks as though my code will debug, but then at run-time, there's a setting somewhere that tells VS not to step through the code in that project. All the other projects in my solutions debug without problems.
Please help me figure out what box I checked to cause this behavior! | 0 | [
2,
9240,
118,
2906,
579,
13,
7,
8375,
77,
7,
121,
16254,
2762,
27,
1200,
669,
19,
3458,
1120,
4295,
800,
3726,
3726,
31,
57,
21,
3458,
1120,
4295,
29,
222,
272,
5910,
2314,
19,
32,
9,
31,
259,
20,
1424,
77,
14,
1797,
16,
21,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are there established alternatives to ISomething/ ISomethingable for interfaces?
===
The .NET standard of prefixing an interface name with an I seems to be becoming widespread and isn't just limited to .NET any more. I have come across a lot of Java code that uses this convention (so it wouldn't surprise me if Java used it before C# did). Also Flex uses it, and so on. The placing of an I at the start of the name smacks of Hungarian notation though and so I'm uncomfortable with using it.
So the question is, is there an alternative way of denoting that Something is an interface, rather than a class and is there any need to denote it like this anyway. Or is it a case its become a standard and so I should just accept it and stop trying to stir up "religious wars" by suggesting it be done differently? | 0 | [
2,
50,
80,
613,
2676,
18,
20,
31,
9099,
118,
31,
9099,
579,
26,
6573,
18,
60,
800,
3726,
3726,
14,
13,
9,
2328,
1236,
16,
14315,
68,
40,
6573,
204,
29,
40,
31,
2206,
20,
44,
1535,
6025,
17,
2532,
22,
38,
114,
1317,
20,
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... |
It it possible with Java to Delete to the Recycle Bin?
===
JAVA is the key here. I need to be able to delete but my users expect to be able to "undelete" from the recycle bin. As far as I can tell this isn't possible. Anyone know otherwise? | 0 | [
2,
32,
32,
938,
29,
8247,
20,
27448,
20,
14,
302,
12467,
4511,
60,
800,
3726,
3726,
8247,
25,
14,
1246,
235,
9,
31,
376,
20,
44,
777,
20,
27448,
47,
51,
3878,
4186,
20,
44,
777,
20,
13,
7,
12239,
1336,
62,
7,
37,
14,
302,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 keys with ActiveScaffold in Ruby On Rails
===
I am developing RoR application that works with legacy database and uses ActiveScaffold plugin for fancy CRUD interface.
However one of the tables of my legacy db has composite primary key. I tried using Composite Keys plugin to handle it, but it seems to have conflicts with ACtiveScaffold: I get the following error:
ActionView::TemplateError (Could not find column contact,type) on line #3 of ven
dor/plugins/active_scaffold/frontends/default/views/_form.rhtml:
1: <ol class="form" <%= 'style="display: none;"' if columns.collapsed -%>>
2: <% columns.each :for => @record do |column| -%>
3: <% if is_subsection? column -%>
4: <li class="sub-section">
5: <h5><%= column.label %> (<%= link_to_visibility_toggle(:default_visible =
> !column.collapsed) -%>)</h5>
6: <%= render :partial => 'form', :locals => { :columns => column } %>
vendor/plugins/active_scaffold/lib/data_structures/sorting.rb:16:in `add'
while having in cotroller code smth like:
set_primary_keys :contact, :type
I highly appreciate any idea how I can gey composite keys capability with ActiveScaffold.
| 0 | [
2,
12639,
5534,
29,
1348,
3862,
6752,
1218,
19,
10811,
27,
2240,
18,
800,
3726,
3726,
31,
589,
3561,
761,
248,
3010,
30,
693,
29,
7780,
6018,
17,
2027,
1348,
3862,
6752,
1218,
10922,
108,
26,
12251,
11498,
43,
6573,
9,
207,
53,
16... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Effective copying multiple files
===
I have to copy quite a lot of files from one folder to another. Currently I am doing it in this way:
string[] files = Directory.GetFiles(rootFolder, "*.xml");
foreach (string file in files)
{
string otherFile = Path.Combine(otherFolder, Path.GetFileName(file));
File.Copy(file, otherFile);
}
Is that the most efficient way? Seems to take ages. | 0 | [
2,
3140,
4344,
68,
1886,
6488,
800,
3726,
3726,
31,
57,
20,
4344,
1450,
21,
865,
16,
6488,
37,
53,
19294,
20,
226,
9,
871,
31,
589,
845,
32,
19,
48,
161,
45,
3724,
2558,
500,
6488,
800,
16755,
9,
3060,
16877,
18,
5,
14032,
881... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Setting up a Programming Environment in Linux
===
I recently started using Linux as my primary OS. What are the tools that I will need to set up a complete programming environment in Linux for C/C++? | 0 | [
2,
2697,
71,
21,
3143,
2307,
19,
13024,
800,
3726,
3726,
31,
1989,
373,
568,
13024,
28,
51,
1256,
13,
759,
9,
98,
50,
14,
4672,
30,
31,
129,
376,
20,
309,
71,
21,
1279,
3143,
2307,
19,
13024,
26,
272,
118,
150,
20512,
60,
3,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
ASP.Net tab in IIS missing.
===
Hmm. I'm trying to deploy a web service to a new server and there is no ASP.net tab. I've tried running aspnet_regiis from ASP.Net 2.0 directory but this doesn't seem to work. Any ideas anyone?
| 0 | [
2,
28,
306,
9,
2328,
6523,
19,
595,
18,
2863,
9,
800,
3726,
3726,
13,
15530,
9,
31,
22,
79,
749,
20,
17617,
21,
2741,
365,
20,
21,
78,
8128,
17,
80,
25,
90,
28,
306,
9,
2328,
6523,
9,
31,
22,
195,
794,
946,
28,
306,
2328,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Refactor To Eliminate Repetition In Lamba Expression
===
These two methods exhibit repetition:
public static Expression<Func<Foo, FooEditDto>> EditDtoSelector()
{
return f => new FooEditDto
{
PropertyA = f.PropertyA,
PropertyB = f.PropertyB,
PropertyC = f.PropertyC
PropertyD = f.PropertyD
PropertyE = f.PropertyE
};
}
public static Expression<Func<Foo, FooListDto>> ListDtoSelector()
{
return f => new FooDto
{
PropertyA = f.PropertyA,
PropertyB = f.PropertyB,
PropertyC = f.PropertyC
};
}
How can I refactor to eliminate this repetition? | 0 | [
2,
302,
17455,
20,
10628,
23184,
19,
8624,
58,
1803,
800,
3726,
3726,
158,
81,
3195,
7454,
23184,
45,
317,
12038,
1803,
1,
16638,
150,
1,
4120,
111,
15,
4310,
111,
69,
242,
43,
262,
1,
9392,
43,
262,
3434,
19932,
5,
6,
13,
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 to check for / insert optional fields in CodeIgniter?
===
At the moment my code looks like this:
# Assign values for saving to the db
$data = array(
'table_of_contents' => $_POST['table_of_contents'],
'length' => $_POST['length']
);
# Check for fields that may not be set
if ( isset($_POST['lossless_copy']) )
{
$data = array(
'lossless_copy' => $_POST['lossless_copy']
);
}
// etc.
This would lead to endless if statements though... Even with the ternary syntax it's still messy. Is there a better way? | 0 | [
2,
184,
20,
2631,
26,
13,
118,
14692,
12832,
2861,
19,
1797,
9693,
242,
106,
60,
800,
3726,
3726,
35,
14,
688,
51,
1797,
1879,
101,
48,
45,
6926,
13952,
4070,
26,
7599,
20,
14,
13,
9007,
5579,
18768,
800,
7718,
5,
13,
22,
5924,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Converting a sbyte to char
===
I have C# wrapper of a C Library. It has a method that returns an sbyte that is supposed to represent a char. What is the best practice for converting this sbyte to a char? | 0 | [
2,
19583,
21,
13,
18,
23246,
20,
4892,
800,
3726,
3726,
31,
57,
272,
5910,
28051,
16,
21,
272,
1248,
9,
32,
63,
21,
2109,
30,
4815,
40,
13,
18,
23246,
30,
25,
2293,
20,
3501,
21,
4892,
9,
98,
25,
14,
246,
1345,
26,
19583,
48... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
how to Search multiple columns of a table in MySQL?
===
Given a table named "person" (in a MySQL database/schema), kind of like this one:
code varchar(25)
lastname varchar(25)
firstname varchar(25)
I'm trying to make a stored function to receive "code" or a part of "code" (which of course, is the code that identifies that person) and return a 'list' of suggestions of persons that have a similar code.
What I'm not sure is how to search like in an **auto complete kind of way**, returning all possible results (or just five); and also how to return this "list" of persons from the stored procedure.
Any idea how I could do this?, Thanks!
| 0 | [
2,
184,
20,
2122,
1886,
7498,
16,
21,
859,
19,
51,
18,
22402,
60,
800,
3726,
3726,
504,
21,
859,
377,
13,
7,
7276,
7,
13,
5,
108,
21,
51,
18,
22402,
6018,
118,
7526,
540,
6,
15,
825,
16,
101,
48,
53,
45,
1797,
4033,
5433,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
IEnumerable<string> to SelectList, no value is selected
===
I have something like the following in an ASP.NET MVC application:
IEnumerable<string> list = GetTheValues();
var selectList = new SelectList(list, "SelectedValue");
And even thought the selected value is defined, it is not being selected on the view. I have this feeling I'm missing something here, so if anyone can put me out my misery!
I know I can use an annoymous type to supply the key and value, but I would rather not add the additional code if I didn't have to. | 0 | [
2,
13,
660,
6336,
106,
579,
1,
11130,
1,
20,
5407,
5739,
15,
90,
1923,
25,
1704,
800,
3726,
3726,
31,
57,
301,
101,
14,
249,
19,
40,
28,
306,
9,
2328,
307,
8990,
3010,
45,
13,
660,
6336,
106,
579,
1,
11130,
1,
968,
800,
164,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the meaning of '(?i)password' in python?
===
Pexpect can be used to automate tasks in python (does not need TCL to be installed). One of the simplest routines of this class is the 'run()' routine. It accepts a dictionary of expected question patterns as keys and the responses as values. For example
pexpect.run ('scp foo myname@host.example.com:.', events={'(?i)password': mypassword})
I know that usually '?' is used to indicate 0 or 1 occurrences of previous literal in the string (for regular expressions that is). However, over here, this does not seem to be the meaning.
Can experts comment on what is it? | 0 | [
2,
98,
25,
14,
1813,
16,
13,
22,
5,
60,
49,
6,
6201,
9587,
22,
19,
20059,
60,
800,
3726,
3726,
351,
6899,
11557,
92,
44,
147,
20,
3108,
5281,
8674,
19,
20059,
13,
5,
10739,
52,
376,
13,
38,
5316,
20,
44,
4066,
6,
9,
53,
16... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Other packages with Xdebug-like features (informative PHP errors, formatted var_dump()s, etc.)?
===
When Xdebug is installed/enabled, standard PHP errors (when set to display in the browser) are replaced with more informative messages that include stack traces for each. Also, I've noticed that it also seems to improve output in other areas such as the var_dump() function, formatting/color-coding the output to make it more readable.
Are there any 3rd party packages that offer similar functionality? I tend to prefer using Zend Debugger for debugging and would love to find something like this that doesn't depend on Xdebug. Certainly I could write my own error handler, a custom var_dump() function, etc., but I would love to find something that transparently integrates itself into PHP the way Xdebug's functionality does. | 0 | [
2,
89,
16875,
29,
993,
546,
16254,
8,
1403,
967,
13,
5,
108,
4190,
3366,
13,
26120,
11908,
15,
13,
29850,
4033,
1,
43,
11134,
5,
6,
18,
15,
2722,
9,
6,
60,
800,
3726,
3726,
76,
993,
546,
16254,
25,
4066,
118,
219,
579,
43,
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... |
Forcing Google Analytics Tracking Code to Sleep
===
To use Google Analytics, you put some JavaScript code in your web page which will make an asynchronous request to Google when the page loads.
From what I have read, this shouldn't block or slow down page load times if you include it directly before the end of your HTML Body. To verify this, I want to make the request after some period of time. The user should be able to log into my site regardless of the time it takes for the request to Google or if it comes back at all (the tracking code is on the login page).
There is a 'pageTracker._trackPageview()' function call in the Google Tracking code. Is this where the request is sent to Google?
If so, should I just do:
window.setTimeout(pageTracker._trackPageview(), 5000);
any help is appreciated, especially if you have worked with Google Analytics and have this same problem.
| 0 | [
2,
6135,
8144,
26320,
10353,
1797,
20,
1742,
800,
3726,
3726,
20,
275,
8144,
26320,
15,
42,
442,
109,
8247,
8741,
1797,
19,
154,
2741,
2478,
56,
129,
233,
40,
21,
16023,
1291,
3772,
20,
8144,
76,
14,
2478,
19069,
9,
37,
98,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C++'s "placement new"
===
Has anyone here ever used C++'s "placement new"? If so, what for? It looks to me like it would only be useful on memory-mapped hardware. | 0 | [
2,
272,
20512,
22,
18,
13,
7,
5119,
1130,
78,
7,
800,
3726,
3726,
63,
1276,
235,
462,
147,
272,
20512,
22,
18,
13,
7,
5119,
1130,
78,
7,
60,
100,
86,
15,
98,
26,
60,
32,
1879,
20,
55,
101,
32,
83,
104,
44,
4811,
27,
1912,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Filetype association with application (C#)
===
I have a few questions related:
1) Is possible to make my program change filetype association but only when is running? Do you see anything wrong with this behavior?
2) The other option that I'm seeing is to let users decide to open with my application or restore default association ... something like: "capture all .lala files" or "restore .lala association". How can I do this? What do you think that is the best approach?
Thanks for your time.
Best regards. | 0 | [
2,
3893,
4474,
607,
29,
3010,
13,
5,
150,
5910,
6,
800,
3726,
3726,
31,
57,
21,
310,
2346,
1597,
45,
137,
6,
25,
938,
20,
233,
51,
625,
753,
3893,
4474,
607,
47,
104,
76,
25,
946,
60,
107,
42,
196,
602,
1389,
29,
48,
3257,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
HttpBrowserCapabilities.Crawler property .NET
===
How does the HttpBrowserCapabilities.Crawler property (http://msdn.microsoft.com/en-us/library/aa332775(VS.71).aspx) work? I need to detect a partner's custom crawler and this property is returning false.
Where/How can I add his user agent so that this property will return true? Any other way outside of creating my own user agent detecting mechanism?
| 0 | [
2,
7775,
25699,
4104,
4666,
58,
9168,
3808,
9,
24916,
106,
1354,
13,
9,
2328,
800,
3726,
3726,
184,
630,
14,
7775,
25699,
4104,
4666,
58,
9168,
3808,
9,
24916,
106,
1354,
13,
5,
21127,
6903,
79,
18,
43,
103,
9,
22019,
12980,
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... |
Can you recomend a good MySQL stored procedure debugger?
===
Can you recommend a good MySQL stored procedure debugger?
**Extra points if it is open source, and works in linux :)**
Thanks! | 4 | [
2,
92,
42,
302,
960,
2451,
21,
254,
51,
18,
22402,
8214,
7004,
121,
2345,
11356,
60,
800,
3726,
3726,
92,
42,
12360,
21,
254,
51,
18,
22402,
8214,
7004,
121,
2345,
11356,
60,
13,
1409,
23631,
819,
100,
32,
25,
368,
1267,
15,
17,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Sorting a DropDownList? - C#, ASP.NET
===
I'm curious as to the best route (more looking towards simplicity, not speed or efficiency) to sort a DropDownList in C#/ASP.NET - I've looked at a few recommendations but they aren't clicking well with me. | 0 | [
2,
2058,
68,
21,
2804,
2968,
5739,
60,
13,
8,
272,
5910,
15,
28,
306,
9,
2328,
800,
3726,
3726,
31,
22,
79,
7686,
28,
20,
14,
246,
858,
13,
5,
1995,
699,
1016,
20595,
15,
52,
1362,
54,
7836,
6,
20,
2058,
21,
2804,
2968,
5739... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Python script for minifying CSS?
===
I'm looking for a simple Python script that can minify CSS as part of a web-site deployment process. (Python is the only scripting language supported on the server and full-blown parsers like [CSS Utils](http://cthedot.de/cssutils/) are overkill for this project).
Basically I'd like [jsmin.py](http://www.crockford.com/javascript/jsmin.py.txt) for CSS. A single script with no dependencies.
Any ideas? | 0 | [
2,
20059,
3884,
26,
4232,
10874,
272,
18,
18,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
1935,
20059,
3884,
30,
92,
4232,
8612,
272,
18,
18,
28,
141,
16,
21,
2741,
8,
9097,
10475,
953,
9,
13,
5,
6448,
11570,
25,
14,
104,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
FLASH/FLEXBUILDER: computeSpectrum stops computing the spectrum for no reason
===
I'm using flex builder to compile my SWF. Im using mp3's on my local machine and computeSpectrum() to analyze the mp3.
After playing for 20secs, my computeSpectrum stops returning values, instead, it starts returning this error:
SecurityError: Error #2121: Security sandbox violation: SoundMixer.computeSpectrum: file:///C|/Documents%20and%20Settings/Kasper/My%20Documents/Flex%20Builder%203/Soundanalizer/bin%2Ddebug/Soundanalizer.swf cannot access . This may be worked around by calling Security.allowDomain.
If I compile with flash, it doesn't throw this error :/ | 0 | [
2,
4433,
118,
19752,
20904,
45,
23909,
7350,
4761,
6604,
10626,
14,
8815,
26,
90,
1215,
800,
3726,
3726,
31,
22,
79,
568,
14409,
14960,
20,
26561,
51,
13,
18,
15263,
9,
797,
568,
4628,
240,
22,
18,
27,
51,
375,
1940,
17,
23909,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 clone a generic list in C#?
===
I have a generic list of objects in C#, and wish to clone the list. The items within the list are cloneable, but there doesn't seem to be an option to do list.Clone()
Is there an easy way around this? | 0 | [
2,
184,
107,
31,
13871,
21,
12733,
968,
19,
272,
5910,
60,
800,
3726,
3726,
31,
57,
21,
12733,
968,
16,
3916,
19,
272,
5910,
15,
17,
2536,
20,
13871,
14,
968,
9,
14,
3755,
363,
14,
968,
50,
13871,
579,
15,
47,
80,
1437,
22,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Variable declaration in c# switch statement
===
Why is it that in a c# switch statement, for a variable used in multiple cases, you only declare it in the first case? For example, the following throws the error "A local variable named 'variable' is already defined in this scope".
switch (Type)
{
case Type.A:
string variable = "x";
break;
case Type.B:
string variable = "y";
break;
}
However, per the logic, the initial declaration should not be hit if the type is Type.B. Do all variables within a switch statement exist in a single scope, and are they created/allocated before any logic is processed? | 0 | [
2,
7612,
7098,
19,
272,
5910,
5521,
3331,
800,
3726,
3726,
483,
25,
32,
30,
19,
21,
272,
5910,
5521,
3331,
15,
26,
21,
7612,
147,
19,
1886,
1871,
15,
42,
104,
10123,
32,
19,
14,
64,
610,
60,
26,
823,
15,
14,
249,
13566,
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... |
Adding and AND clause to a regex.
===
I have this simple regex.
[\d]{1,5}
That matches any integer between 0 and 99999.
How would I modify it so that it didn't match 0. But matches 01 and 10, etc.
I know there is a way to do an OR like so...
[\d]{1,5}|[^0]{1} (doesn't make much sense)
There a way to do an AND?
| 0 | [
2,
4721,
17,
17,
9040,
20,
21,
7953,
1706,
9,
800,
3726,
3726,
31,
57,
48,
1935,
7953,
1706,
9,
636,
1,
43,
500,
1,
165,
15,
264,
1,
30,
1717,
186,
13820,
128,
713,
17,
7787,
23170,
9,
184,
83,
31,
17579,
32,
86,
30,
32,
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... |
Should I use multi-byte overloading (mbstring.func_overload)?
===
I'm in the process of making my PHP site Unicode-aware. I'm wondering if anyone has experience with the mbstring.func_overload setting, which replaces the normal string functions (e.g. strlen) with their multi-byte equivalents (mb_strlen). There aren't any comments on the PHP manual page.
Are there any potential problems that I should be aware of? Any cases where calling the multi-byte version is a bad idea?
I suppose one example would be functions that deal with encryption, since they may expect to deal with strings of bytes, rather than strings of characters.
Also, the manual page includes a note: "It is not recommended to use the function overloading option in the per-directory context, because it's not confirmed yet to be stable enough in a production environment and may lead to undefined behaviour."
Does that mean that it's not stable in a per-directory context, or it's generally not stable? The wording is unclear. | 0 | [
2,
378,
31,
275,
1889,
8,
23246,
84,
16866,
13,
5,
5024,
11130,
9,
16638,
150,
1,
2549,
8294,
6,
60,
800,
3726,
3726,
31,
22,
79,
19,
14,
953,
16,
544,
51,
13,
26120,
689,
28010,
8,
58,
5011,
9,
31,
22,
79,
5712,
100,
1276,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Winforms issue - Error creating window handle
===
We are seeing this error in a winforms application. Can anyone help on why you would see this error and more inportantly how to fix it or avoid it happening.
System.ComponentModel.Win32Exception: Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.ButtonBase.OnVisibleChanged(EventArgs e)
| 0 | [
2,
628,
4190,
18,
1513,
13,
8,
7019,
2936,
1463,
3053,
800,
3726,
3726,
95,
50,
2078,
48,
7019,
19,
21,
628,
4190,
18,
3010,
9,
92,
1276,
448,
27,
483,
42,
83,
196,
48,
7019,
17,
91,
19,
1993,
1830,
102,
184,
20,
6098,
32,
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... |
Changing the background color of a UILabel within a UITableViewCell
===
A UITableViewCell comes "pre-built" with a UILabel as its one and only subview after you've init'ed it. I'd *really* like to change the background color of said label, but no matter what I do the color does not change. The code in question:
UILabel* label = (UILabel*)[cell.contentView.subviews objectAtIndex:0];
label.textColor = [UIColor whiteColor];
label.backgroundColor = [UIColor darkGrayColor];
label.opaque = YES;
Any hints as to why this doesn't work? Thanks! | 0 | [
2,
4226,
14,
2395,
1665,
16,
21,
13,
5661,
21018,
363,
21,
13,
11193,
579,
4725,
9725,
800,
3726,
3726,
21,
13,
11193,
579,
4725,
9725,
1624,
13,
7,
3515,
8,
8607,
7,
29,
21,
13,
5661,
21018,
28,
82,
53,
17,
104,
972,
4725,
75... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Embedding assemblies inside another assembly
===
If you create a class library that uses things from other assemblies, is it possible to embed those other assemblies inside the class library as some kind of resource?
i.e.
Instead of having *MyAssembly.dll*, *SomeAssembly1.dll* and *SomeAssembly2.dll* sitting on the file system, those other two files get bundled in to *MyAssembly.dll* and are usable in its code.
----
I'm also a little confused about why .NET assemblies are *.dll* files. Didn't this format exist before .NET? Are all .NET assemblies dlls, but not all dlls are .NET assemblies? Why do they use the same file format and/or file extension?
| 0 | [
2,
11911,
69,
3258,
21066,
572,
226,
1475,
800,
3726,
3726,
100,
42,
1600,
21,
718,
1248,
30,
2027,
564,
37,
89,
21066,
15,
25,
32,
938,
20,
11911,
69,
273,
89,
21066,
572,
14,
718,
1248,
28,
109,
825,
16,
6577,
60,
31,
9,
62,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I return a varchar(max) from a stored procedure?
===
VB.net web system with a SQL Server 2005 backend. I've got a stored procedure that returns a varchar, and we're finally getting values that won't fit in a varchar(8000).
I've changed the return parameter to a varchar(max), but how do I tell the OleDbParameter.Size Property to accept any amount of text?
As a concrete example, the VB code that gor the return parameter from the stored procedure used to look like:
objOutParam1 = objCommand.Parameters.Add("@RStr", OleDbType.varchar)
objOutParam1.Size = 8000
objOutParam1.Direction = ParameterDirection.Output
What can I make .Size to work with a (max)?
| 0 | [
2,
92,
31,
788,
21,
4033,
5433,
5,
8304,
6,
37,
21,
8214,
7004,
60,
800,
3726,
3726,
13,
20468,
9,
2328,
2741,
329,
29,
21,
4444,
255,
8128,
812,
97,
2451,
9,
31,
22,
195,
330,
21,
8214,
7004,
30,
4815,
21,
4033,
5433,
15,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
XML-RPC library for C++
===
What libraries are available for writing xml-rpc clients in native C++ or C? | 0 | [
2,
23504,
8,
139,
5779,
1248,
26,
272,
20512,
800,
3726,
3726,
98,
8649,
50,
904,
26,
1174,
23504,
8,
139,
5779,
7421,
19,
1275,
272,
20512,
54,
272,
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... | [
1,
1,
1,
1,
1,
1,
1,
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... |
Which web service framework?
===
I'm about to get started converting a C# based desktop app to be web based. For a couple of reasons, I would like to cut the GUI from the logic via a web service. Microsoft has asmx files, WCF, and probably something new at PDC next week. Data can be passed via SOAP, REST, JSON, and probably 12 other ways as well.
Could anyone suggest the .NET framework I should get started with? | 0 | [
2,
56,
2741,
365,
6596,
60,
800,
3726,
3726,
31,
22,
79,
88,
20,
164,
373,
19583,
21,
272,
5910,
432,
17404,
4865,
20,
44,
2741,
432,
9,
26,
21,
1335,
16,
2932,
15,
31,
83,
101,
20,
1077,
14,
9457,
37,
14,
7085,
1197,
21,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Distributed Caching Help
===
I am trying to put some distributed caching into play, I'm using this [indeXus.Net Shared Cache ][1].
[1]: http://www.sharedcache.com/cms/homepage.aspx
It Requires that the object being cached is serializable, which it is here is the class object.
[Serializable]
public class Members
{
public Members()
{}
public Members(string aspnetusername, string aspnetpassword,
string emailaddr,string location)
: this(0,0,aspnetusername, aspnetpassword,emailaddr,DateTime.Now, location,
0,0,DateTime.Now,DateTime.Now,DateTime.Now,false)
{ }
public Members(Int64? row,int memberid, string aspnetusername, string aspnetpassword,
string emailaddr,DateTime datecreated, string location, int daimokugoal, int previewimageid,
DateTime lastdaimoku, DateTime lastnotifed, DateTime lastactivitydate, bool isactivated)
{
this.Row = row;
this.MemberID = memberid;
this.Aspnetusername = aspnetusername;
this.Aspnetpassword = aspnetpassword;
this.EmailAddr = emailaddr;
this.DateCreated = datecreated;
this.Location = location;
this.DaimokuGoal = daimokugoal;
this.PreviewImageID = previewimageid;
this.LastDaimoku = lastdaimoku;
this.LastNotefied = lastnotifed;
this.LastActivityDate = lastactivitydate;
this.IsActivated = this.IsActivated;
this.Details = new LazyList<MemberDetails>();
this.Blogs = new LazyList<MemberBlogs>();
this.Daimoku = new LazyList<MemberDaimoku>();
this.Determinations = new LazyList<MemberDeterminations>();
this.Encouragements = new LazyList<MemberEncouragements>();
this.Entries = new LazyList<MemberEntries>();
this.Friends = new LazyList<MemberFriends>();
this.Stats = new LazyList<MemberStats>();
}
public Int64? Row { get; set; }
public int MemberID { get; set; }
public string Aspnetusername { get; set; }
public string Aspnetpassword { get; set; }
public string EmailAddr { get; set; }
public DateTime DateCreated { get; set; }
public string Location { get; set; }
public int DaimokuGoal { get; set; }
public int PreviewImageID { get; set; }
public DateTime LastDaimoku { get; set; }
public DateTime LastNotefied { get; set; }
public DateTime LastActivityDate { get; set; }
public bool IsActivated { get; set; }
public LazyList<MemberDetails> Details { get; set; }
public LazyList<MemberBlogs> Blogs { get; set; }
public LazyList<MemberDaimoku> Daimoku { get; set; }
public LazyList<MemberDeterminations> Determinations { get; set; }
public LazyList<MemberEncouragements> Encouragements { get; set; }
public LazyList<MemberEntries> Entries { get; set; }
public LazyList<MemberFriends> Friends { get; set; }
public LazyList<MemberStats> Stats { get; set; }
}
The LINQtoSql is this that populates this class.
public IQueryable<Members> GetMemberInfo()
{
using (var t = new TransactionScope(TransactionScopeOption.Required,
new TransactionOptions { IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted }))
{
var results = from m in _datacontext.ViewMembers
let details = GetMemberDetails(m.MemberID)
let determinations = GetMemberDeterminations(m.MemberID)
let daimoku = GetMemberDaimoku(m.MemberID)
let entries = GetMemberEntries(m.MemberID)
let blogs = GetMemberBlogs(m.MemberID)
let encouragements = GetMemberEncouragements(m.MemberID)
let friends = GetMemberFriends(m.MemberID)
let points = GetMemberStats(m.MemberID)
select new Members
{
Row = m.Row,
MemberID = m.MemberID,
Aspnetusername = m.Aspnetusername,
Aspnetpassword = m.Aspnetpassword,
EmailAddr = m.EmailAddr,
DateCreated = m.DateCreated,
Location = m.Location,
DaimokuGoal = m.DaimokuGoal,
PreviewImageID = m.PreviewImageID,
LastDaimoku = m.LastDaimoku.Value,
LastNotefied = m.LastNotefied.Value,
LastActivityDate = m.LastActivityDate.Value,
IsActivated = m.IsActivated,
Details = new LazyList<MemberDetails>(details),
Determinations = new LazyList<MemberDeterminations>(determinations),
Daimoku = new LazyList<MemberDaimoku>(daimoku),
Entries = new LazyList<MemberEntries>(entries),
Blogs = new LazyList<MemberBlogs>(blogs),
Encouragements = new LazyList<MemberEncouragements>(encouragements),
Friends = new LazyList<MemberFriends>(friends),
Stats = new LazyList<MemberStats>(points)
};
return results;
}
}
But for some reason I am getting this error
System.Runtime.Serialization.SerializationException: Type 'System.Data.Linq.DataQuery`1[[DaimokuBeta.MVC.Data.MemberDetails, DaimokuBeta.MVC.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' in Assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.
MemberDetails is serializable too..so not sure why it thinks it can't be serialized
Any ideas?
| 0 | [
2,
4387,
1658,
7192,
448,
800,
3726,
3726,
31,
589,
749,
20,
442,
109,
4387,
1658,
7192,
77,
418,
15,
31,
22,
79,
568,
48,
636,
25671,
267,
9,
2328,
2592,
16522,
13,
500,
2558,
165,
500,
9,
636,
165,
500,
45,
7775,
6903,
6483,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What dotnet collection class's items can be enumerated in additionorder and retrieved via a key?
===
I'm lead to believe that I cannot count on the order of items added to a dictionary for enumeration purposes.
**Is there a class (generic if possible) to which items may be added with a key and which can be enumerated in addition order or which can be retrieved by key?**
| 0 | [
2,
98,
14123,
2328,
1206,
718,
22,
18,
3755,
92,
44,
26940,
69,
19,
848,
7861,
17,
3685,
1197,
21,
1246,
60,
800,
3726,
3726,
31,
22,
79,
672,
20,
985,
30,
31,
1967,
2468,
27,
14,
389,
16,
3755,
905,
20,
21,
9186,
26,
26940,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In Silverlight, how to invoke an operation on the Main Dispatch Thread?
===
In a WinForms UserControl, I would pass data to the main GUI thread by calling this.BeginInvoke() from any of the control's methods. What's the equivalent in a Silverlight UserControl?
In other words, how can I take data provided by an arbitrary worker thread and ensure that it gets processed on the main displatch thread?
| 0 | [
2,
19,
1172,
3130,
15,
184,
20,
28371,
40,
1453,
27,
14,
407,
14226,
9322,
60,
800,
3726,
3726,
19,
21,
628,
4190,
18,
4155,
12898,
15,
31,
83,
1477,
1054,
20,
14,
407,
9457,
9322,
34,
2555,
48,
9,
17143,
108,
108,
2625,
1048,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 embedded database to use in a Delphi application?
===
I am creating a desktop app in Delphi and plan to use an embedded database. I've started the project using SQlite3 with the DISQLite3 library. It works but documentation seems a bit light. I recently found Firebird (yes I've been out of Windows for a while) and it seems to have some compelling features and support.
What are some pros and cons of each embedded db? Size is important as well as support and resources. What have you used and why? | 0 | [
2,
56,
12138,
6018,
20,
275,
19,
21,
23030,
3010,
60,
800,
3726,
3726,
31,
589,
2936,
21,
17404,
4865,
19,
23030,
17,
944,
20,
275,
40,
12138,
6018,
9,
31,
22,
195,
373,
14,
669,
568,
4444,
10601,
240,
29,
14,
1460,
1251,
10601,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there any generalities in the cost of executing an instruction in javascript?
===
I was wondering, if there is any generalities (among all the javascript engines out there) in the cost related to execute a given instruction vs another.
For instance, eval() is slower than calling a function that already has been declared.
I would like to get a table with several instructions/function calls vs an absolute cost, maybe a cost per engine.
Does such a document exists? | 0 | [
2,
25,
80,
186,
297,
3808,
19,
14,
1516,
16,
25836,
40,
7304,
19,
8247,
8741,
60,
800,
3726,
3726,
31,
23,
5712,
15,
100,
80,
25,
186,
297,
3808,
13,
5,
21068,
65,
14,
8247,
8741,
4016,
70,
80,
6,
19,
14,
1516,
1597,
20,
156... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.NET PasswordRecovery Control with Localized content
===
I am working on a simple portal application using the ASP.NET membership and login controls. I would like to use the PasswordRecovery control to send emails containing forgotten passwords, however my portal requires localization. I have an existing Content Management System that I am pulling the localized strings out of and I would like to link the PasswordRecovery control to that system.
But, it appears that the PasswordRecovery control will ONLY accept a .txt file for the email body...the property is PasswordRecovery1.MailDefinition.BodyFileName
I do not want to use a file on disk, I would like to use the localized content in my CMS.
Is there any way to do this? It occurred to me that I might be able to use the SendingMail event to send my OWN email through the normal System.Net namespace, but that seems sorta cludgy...
Any thoughts?
Thanks,
Max | 0 | [
2,
28,
306,
9,
2328,
20884,
99,
14069,
93,
569,
29,
24821,
2331,
800,
3726,
3726,
31,
589,
638,
27,
21,
1935,
8281,
3010,
568,
14,
28,
306,
9,
2328,
4363,
17,
6738,
108,
8671,
9,
31,
83,
101,
20,
275,
14,
20884,
99,
14069,
93,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What would be the best way to render a Shapefile (map data) with polylines in .Net?
===
I am interested in writing some simplistic map-navigation software in C# as a pet project. After searching around for free map-data I have settled on the [US Census Bureau TIGER][1] 2007 Line/Shapefile map data. The data is split up into zip files for individual counties and I've downloaded a single counties map-data for my area.
To start out I want to write the rendering portion of my application. **What would be the best way to render this map-data in my application, while still being fast and in a way that I can easily transform the lines that I draw (rotate, scale in or out, etc).** As far as I know the data contains a set of longitude and latitude point for each node of the data. A line (road) is made up of a bunch of nodes that connect with eachother. Will I be converting longitude/latitude into my own x/y coordinate system for on screen display? What library should I use to draw the map data? Should it be broken up into "tiles" and if so.. how would I go about implementing something like that.
If you want to see an example of this TIGER data rendered into a displayed map, here is an example: [TIGER Map Image Example][2]
Anyone with some experience and insight into what the best way for me to render and manipulate this map-data on screen would be appreciated. I've never done much on-screen rendering of graphics (never written any games or such).. so those of you who have might be able to help me.
[1]: http://www.census.gov/geo/www/tiger/tgrshp2007/tgrshp2007.html
[2]: http://tiger.census.gov/cgi-bin/mapbrowse-tbl?lat=38.766695&lon=-93.727341&wid=.1&ht=.1&mlat=38.766695&mlon=-93.727341&msym=redpin&mlabel=64093+(Warrensburg) | 0 | [
2,
98,
83,
44,
14,
246,
161,
20,
16535,
21,
2539,
16877,
13,
5,
15022,
1054,
6,
29,
3446,
7939,
19,
13,
9,
2328,
60,
800,
3726,
3726,
31,
589,
3158,
19,
1174,
109,
22862,
255,
3771,
2942,
8,
325,
13227,
857,
2306,
19,
272,
591... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Changing (Enable/Disable) GroupStyle in ListView for different category items
===
How can I switch between GroupStyles for ListView based on some conditions at run time. For instance I need to use Default for items that that have GroupStyle Header name null, and if it is not null then use custom GroupStyle them? I tried GroupStyleSelector, and it doesn't work, because it works for multi level grouping, and in my case I have only one level grouping.
If yes, then how?
Custom GroupStyle:
<Style x:Key="grouping"
TargetType="{x:Type GroupStyle}">
<Setter Property="ContainerStyle">
<Setter.Value>
<Style TargetType="{x:Type GroupItem}">
<Setter Property="Margin"
Value="0,0,0,5" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupItem}">
<Expander IsExpanded="False"
BorderBrush="#FFA4B97F"
BorderThickness="0,0,0,1">
<Expander.Header>
<DockPanel>
<TextBlock FontWeight="Bold"
Text="{Binding Name}"
Margin="0"
Width="250" />
<TextBlock FontWeight="Bold"
Text="{Binding Path=Items[0].StartTime, StringFormat=T}" />
</DockPanel>
</Expander.Header>
<Expander.Content>
<ItemsPresenter />
</Expander.Content>
</Expander>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
</Style>
Thanks a lot.
Sincerely,
Vlad. | 0 | [
2,
4226,
13,
5,
219,
579,
118,
2906,
579,
6,
214,
4381,
19,
968,
4725,
26,
421,
3230,
3755,
800,
3726,
3726,
184,
92,
31,
5521,
128,
214,
4381,
18,
26,
968,
4725,
432,
27,
109,
2039,
35,
485,
85,
9,
26,
4851,
31,
376,
20,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
cherrypy not closing the sockets
===
I am using cherrypy as a webserver. It gives good performance for my application but there is a very big problem with it. cherrypy crashes after couple of hours stating that it could not create a socket as there are too many files open:
[21/Oct/2008:12:44:25] ENGINE HTTP Server
cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
[21/Oct/2008:12:44:25] ENGINE Stopped thread '_TimeoutMonitor'.
[21/Oct/2008:12:44:25] ENGINE Stopped thread 'Autoreloader'.
[21/Oct/2008:12:44:25] ENGINE Bus STOPPED
[21/Oct/2008:12:44:25] ENGINE Bus EXITING
[21/Oct/2008:12:44:25] ENGINE Bus EXITED
Exception in thread HTTPServer Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.3/threading.py", line 436, in __bootstrap
self.run()
File "/usr/lib/python2.3/threading.py", line 416, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.3/site-packages/cherrypy/process/servers.py", line 73, in
_start_http_thread
self.httpserver.start()
File "/usr/lib/python2.3/site-packages/cherrypy/wsgiserver/__init__.py", line 1388, in
start
self.tick()
File "/usr/lib/python2.3/site-packages/cherrypy/wsgiserver/__init__.py", line 1417, in tick
s, addr = self.socket.accept()
File "/usr/lib/python2.3/socket.py", line 167, in accept
sock, addr = self._sock.accept()
error: (24, 'Too many open files')
[21/Oct/2008:12:44:25] ENGINE Waiting for child threads to terminate..
I tried to figure out what was happening. My application does not open any file or any socket etc. My file only opens couple of berkeley dbs. I investigated this issue further. I saw the file descriptors used by my cherrypy process with id 4536 in /proc/4536/fd/
Initially there were new sockets created and cleaned up properly but after an hour I found that it had about 509 sockets that were not cleaned. All the sockets were in CLOSE_WAIT state. I got this information using the following command:
netstat -ap | grep "4536" | grep CLOSE_WAIT | wc -l
CLOSE_WAIT state means that the remote client has closed the connection. Why is cherrypy then not closing the socket and free the file descriptors? What can I do to resolve the problem?
I tried to play with the following:
cherrypy.config.update({'server.socketQueueSize': '10'})
I thought that this would restrict the number of sockets open at any time to 10 but it was not effective at all. This is the only config I have set, so , rest of the configs hold their default values.
Could somebody throw light on this? Do you think its a bug in cherrypy? How can I resolve it?
Thanks in advance!
| 0 | [
2,
9257,
6448,
52,
4239,
14,
18482,
18,
800,
3726,
3726,
31,
589,
568,
9257,
6448,
28,
21,
2741,
10321,
106,
9,
32,
2352,
254,
956,
26,
51,
3010,
47,
80,
25,
21,
253,
580,
1448,
29,
32,
9,
9257,
6448,
21563,
75,
1335,
16,
974,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get the new value of an HTML input after a keypress has modified it?
===
I have an HTML input box
<input type="text" id="foo" value="bar">
I've attached a handler for the '*keyup*' event, but if I retrieve the current value of the input box during the event handler, I get the value as it was, and not as it will be!
I've tried picking up '*keypress*' and '*change*' events, same problem.
I'm sure this is simple to solve, but at present I think the only solution is for me to use a short timeout to trigger some code a few milliseconds in the future!
*Is there anyway to obtain the current value during those events?* | 0 | [
2,
184,
20,
164,
14,
78,
1923,
16,
40,
13,
15895,
6367,
75,
21,
1246,
5890,
63,
5372,
32,
60,
800,
3726,
3726,
31,
57,
40,
13,
15895,
6367,
1649,
13,
1,
108,
4881,
1001,
3726,
7,
11969,
7,
4924,
3726,
7,
4120,
111,
7,
1923,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
No Report Items in toolbox (VS 2008 SP1)
===
I am using Visual Studio 2008 SP1 (version 9.0.30729.1). My problem is that the only reporting-related toolbox items I see are 3 "Textbox" controls. Where are the other stuff? Do I need to add a reference to a different assembly?
Here are the steps I take:<br>
1) Open Visual Studio<br>
2) Add new project --> "Reports Application"<br>
3) Open Report1.rdlc<br>
4) Open the toolbox and no controls are available (except the repeating 3 Textbox controls)<br>
Thanks for your help. | 0 | [
2,
90,
1330,
3755,
19,
5607,
5309,
13,
5,
710,
18,
570,
3782,
165,
6,
800,
3726,
3726,
31,
589,
568,
3458,
1120,
570,
3782,
165,
13,
5,
10898,
561,
9,
387,
9,
23630,
2738,
9,
165,
6,
9,
51,
1448,
25,
30,
14,
104,
6670,
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... |
Sorting a tuple that contains tuples
===
I have the following tuple, which contains tuples:
MY_TUPLE = (
('A','Apple'),
('C','Carrot'),
('B','Banana'),
)
I'd like to sort this tuple based upon the **second** value contained in inner-tuples (i.e., sort Apple, Carrot, Banana rather than A, B, C).
Any thoughts? | 0 | [
2,
2058,
68,
21,
2289,
5106,
30,
1588,
2289,
18534,
800,
3726,
3726,
31,
57,
14,
249,
2289,
5106,
15,
56,
1588,
2289,
18534,
45,
51,
1,
2473,
5106,
800,
13,
5,
13,
5,
22,
58,
22,
15,
22,
24212,
22,
6,
15,
13,
5,
22,
150,
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... |
Open" the csv file format into Excel from internet explorer 6
===
Firstly I hope that this is the correct place for my question... :) I hope
that you can help me.
The error message I get when I try to open a file from Internet Explorer is
"C:\Documents and Settings\USERNAME\Local Settings\Temporary Internet
Files\Content.IE5\QXJ0P436\btbillsdfjlsfjk.csv' could not be found"
I am trying to "Open" the csv file format into Excel. It allows me to
"Save" the file to which ever directory I want but I don't want to do that,
I would just like to open the file. This has always worked in the past so
I'm now wondering why the file is 'missing'.
Any ideas?
Thanks in advance. | 0 | [
2,
368,
7,
14,
272,
18,
710,
3893,
2595,
77,
20700,
37,
2620,
8520,
400,
800,
3726,
3726,
64,
102,
31,
1376,
30,
48,
25,
14,
4456,
209,
26,
51,
1301,
9,
9,
9,
13,
45,
6,
31,
1376,
30,
42,
92,
448,
55,
9,
14,
7019,
2802,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Insert cell comments in excel programmaticaly.
===
What's the better way to insert cell comments in excel 2007 files programmaticaly using c# and .net 3.5? | 0 | [
2,
14692,
1667,
7534,
19,
20700,
625,
6732,
58,
102,
9,
800,
3726,
3726,
98,
22,
18,
14,
574,
161,
20,
14692,
1667,
7534,
19,
20700,
624,
6488,
625,
6732,
58,
102,
568,
272,
5910,
17,
13,
9,
2328,
203,
9,
264,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Boost.Thread seems to cause dependency on MSVCP90.dll in Debug build
===
I have an annoying problem which I might be able to somehow circumvent, but on the other hand would much rather be on top of it and understand what exactly is going on, since it looks like this stuff is really here to stay.
Here's the story: I have a simple OpenGL app which works fine: never a major problem in compiling, linking, or running it. Now I decided to try to move some of the more intensive calculations into a worker thread, in order to possibly make the GUI even more responsive — using Boost.Thread, of course.
In short, if I add the following fragment in the beginning of my .cpp file:
#include <boost/thread/thread.hpp>
void dummyThreadFun() { while (1); }
boost::thread p(dummyThreadFun);
, then I start getting "This application has failed to start because MSVCP90.dll was not found" when trying to launch the Debug build. (Release mode works ok.)
Now looking at the executable using the Dependency Walker, who also does not find this DLL (which is expected I guess), I could see that we are looking for it in order to be able to call the following functions:
?max@?$numeric_limits@K@std@@SAKXZ
?max@?$numeric_limits@_J@std@@SA_JXZ
?min@?$numeric_limits@K@std@@SAKXZ
?min@?$numeric_limits@_J@std@@SA_JXZ
Next, I tried to convert every instance of `min` and `max` to use macros instead, but probably couldn't find all references to them, as this did not help. (I'm using some external libraries for which I don't have the source code available. But even if I could do this — I don't think it's the right way really.)
So, my questions — I guess — are:
1. Why do we look for a non-debug DLL even though working with the debug build?
2. What is the correct way to fix the problem? Or even a quick-and-dirty one?
I had this first in a pretty much vanilla installation of Visual Studio 2008. Then tried installing the Feature Pack and SP1, but they didn't help either. Of course also tried to Rebuild several times.
I am using prebuilt binaries for Boost (v1.36.0). This is not the first time I use Boost in this project, but it may be the first time that I use a part that is based on a separate source.
Disabling incremental linking doesn't help. The fact that the program is OpenGL doesn't seem to be relevant either — I got a similar issue when adding the same three lines of code into a simple console program (but there it was complaining about MSVCR90.dll and `_mkdir`, and when I replaced the latter with `boost::create_directory`, the problem went away!!). And it's really just removing or adding those three lines that makes the program run ok, or not run at all, respectively.
I can't say I understand Side-by-Side (don't even know if this is related but that's what I assume for now), and to be honest, I am not super-interested either — as long as I can just build, debug and deploy my app...
| 0 | [
2,
10419,
9,
96,
10647,
2206,
20,
1679,
26835,
27,
4235,
8990,
306,
3165,
9,
43,
211,
19,
121,
16254,
1895,
800,
3726,
3726,
31,
57,
40,
17610,
1448,
56,
31,
530,
44,
777,
20,
3625,
28986,
15,
47,
27,
14,
89,
224,
83,
212,
864... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
GIT vs. Perforce- Two VCS will enter... one will leave.
===
So I'm in the process of getting GIT sold at work. First thing I need is to convince everyone that GIT is better at what they're already used to doing. We currently use Perforce. Anybody else go through a similar sale? Any good links/advice? | 0 | [
2,
13,
10404,
4611,
9,
416,
8774,
8,
81,
13,
8990,
18,
129,
2830,
9,
9,
9,
53,
129,
767,
9,
800,
3726,
3726,
86,
31,
22,
79,
19,
14,
953,
16,
1017,
13,
10404,
945,
35,
170,
9,
64,
584,
31,
376,
25,
20,
6218,
1266,
30,
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... |
What is the quickest way to get the absolute uri for the root of the app in asp.net?
===
What is the simplest way to get: **http://www.[Domain].com** in asp.net?
There doesn't seem to be one method which can do this, the only way I know is to do some string acrobatics on server variables or Request.Url. Anyone?
| 0 | [
2,
98,
25,
14,
2231,
1430,
161,
20,
164,
14,
7070,
13,
3594,
26,
14,
5900,
16,
14,
4865,
19,
28,
306,
9,
2328,
60,
800,
3726,
3726,
98,
25,
14,
24384,
161,
20,
164,
45,
13,
1409,
21127,
6903,
6483,
9,
2558,
537,
6232,
500,
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... |
Class will compile for Tests/Console but not in Asp.net application
===
I have a simple interface:
public interface IVisitorsLogController
{
List<VisitorsLog> GetVisitorsLog();
int GetUniqueSubscribersCount();
int GetVisitorsCount();
string GetVisitorsSummary();
}
the class VisitorsLogController implements this interface.
From a console application or a TestFixture - no problem - the console/test fixture compile perfectly.
However, from an Asp.Net web site (not application) in the same solution with this code in the code behind
private IVisitorsLogController ctl;
protected int GetUniqueMembersCount()
{
ctl = new VisitorsLogController();
return ctl.GetUniqueSubscribersCount();
}
the compiler throws this exception:
> Error 1 'WebSiteBusinessRules.Interfaces.IVisitorsLogController'
> does not contain a definition for
> 'GetUniqueSubscribersCount' and no
> extension method
> 'GetUniqueSubscribersCount' accepting
> a first argument of type
> 'WebSiteBusinessRules.Interfaces.IVisitorsLogController'
> could be found (are you missing a
> using directive or an assembly
> reference?)
yet for this code in the same file:
protected static int GetVisitorsCount()
{
return VisitorsLogController.Instance.GetVisitorsCount(DateTime.Today);
}
the compiler compiles these lines without complaining. In fact if I add anything new to the Interface the compiler now complains when trying to compile the asp.net page.
It can't be a missing using directive or assembly reference otherwise both methods would fail.
This is driving me nuts!
Any thoughts please?
Thanks
Jeremy
| 0 | [
2,
718,
129,
26561,
26,
4894,
118,
12124,
6069,
47,
52,
19,
28,
306,
9,
2328,
3010,
800,
3726,
3726,
31,
57,
21,
1935,
6573,
45,
317,
6573,
31,
3762,
49,
10778,
5567,
12898,
1252,
13,
1,
968,
1,
3762,
49,
10778,
5567,
1,
164,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Audit Revoke Operations
===
How can **`REVOKE`** operations on a table be audited in Oracle? Grants can be audited with...
AUDIT GRANT ON *schema.table*;
Both grants and revokes on system privileges and rolls can be audited with...
AUDIT SYSTEM GRANT;
Neither of these statements will audit object level revokes. My database is 10g. I am interested in auditing revokes done by SYS, but that is not my primary concern so the answer need not work for the SYS user.
*A trigger could catch these, but I would prefer to use the built in auditing, so if a trigger is the only way to do this, then vote up the "This can't be done" answer. | 0 | [
2,
13471,
3867,
8416,
1311,
800,
3726,
3726,
184,
92,
13,
1409,
1,
14587,
8416,
1,
1409,
1311,
27,
21,
859,
44,
13471,
69,
19,
15759,
60,
8886,
92,
44,
13471,
69,
29,
9,
9,
9,
13471,
2048,
27,
1637,
7526,
540,
9,
5924,
2483,
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... |
Are keyboard/mouse wrist pads effective against RSI?
===
**Back Story**: I have no control over the desk at my workplace: a single flat surface, sits too high, and is an inflexible part of the cubicle itself. I am doing a *lot* of typing and, although I try to take breaks, I would like to help keep my wrists and arms in a more comfortable position for the frequently common programming marathons.
My question is whether or not those gel wrist pads which sit in front of keyboards, or are a part of some mouse pads, are effective at all? Would I be better off just investing in a [better keyboard][1]? It seems like they'd make it easier to keep your wrist relatively straight rather than bent upwards from the desk surface.
[1]: http://stackoverflow.com/questions/96944/what-is-the-best-keyboardmouse-for-ergonomics-or-to-prevent-wrist-pain | 0 | [
2,
50,
8896,
118,
14002,
62,
6144,
4432,
18,
3140,
149,
13,
1224,
49,
60,
800,
3726,
3726,
13,
1409,
1958,
609,
1409,
45,
31,
57,
90,
569,
84,
14,
2911,
35,
51,
16932,
45,
21,
345,
1844,
1490,
15,
7550,
266,
183,
15,
17,
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... |
Numbered Lists
===
How do you keep numbered lists indented? I have a page where the digits are not indented and it does not look good.
Thanks! | 0 | [
2,
9824,
7227,
800,
3726,
3726,
184,
107,
42,
643,
9824,
7227,
19,
817,
1427,
60,
31,
57,
21,
2478,
113,
14,
19076,
50,
52,
19,
817,
1427,
17,
32,
630,
52,
361,
254,
9,
3669,
187,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
silverlight keydown event doesn't fire for arrow keys
===
I have a canvas inside a scrollview. I attached a keydown event handler to the scrollview. For most keys, the handler gets called.
However, for the arrow keys, the handler does not get called. Instead, the scrollview gets scrolled in the appropriate direction.
I also attached a keyup handler to the scrollview and the keyup does get called for the arrow keys.
Is there any way to get the arrow key down event here? | 0 | [
2,
1172,
3130,
1246,
2968,
807,
1437,
22,
38,
535,
26,
7409,
5534,
800,
3726,
3726,
31,
57,
21,
9696,
572,
21,
12159,
4725,
9,
31,
3638,
21,
1246,
2968,
807,
24641,
20,
14,
12159,
4725,
9,
26,
127,
5534,
15,
14,
24641,
3049,
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... |
How do you organize your version control repository?
===
First, I know about this: http://stackoverflow.com/questions/51217/how-would-you-organize-a-subversion-repository-for-in-house-software-projects
Next, the actual question:
My team is restructuring our reposotory and I'm looking for hints on how to organize it. (SVN in this case).
Here's what we came up with. We have one repository, multiple projects and multiple svn:externals crossreferences
\commonTools /*tools used in all projects. Referenced in each project with svn:externals*/
\NUnit.v2.4.8
\NCover.v.1.5.8
\<other similar tools>
\commonFiles /*settings strong name keys etc.*/
\ReSharper.settings
\VisualStudio.settings
\thrash /*each member of the team has thrash for samples, experiments etc*/
\user1
\user2
\projects
\Solution1 /*Single actual project (Visual Studio Solution)*/
\trunk
\src
\Project1 /*Each sub-project resulting in single .dll or .exe*/
\Project2
\lib
\tools
\tests
\Solution1.sln
\tags
\branches
\Solution2
\trunk
\src
\Project3 /*Each sub-project resulting in single .dll or .exe*/
\Project1 /*Project1 from Solution1 references with svn:externals*/
\lib
\tools
\tests
\Solution2.sln
\tags
\branches
To clear the vocabulary: Solution means single product, Project is a Visual Studio Project (that results in a single .dll or single .exe)
That's how we plan to lay out the repository. The main issue is, that we have multiple Solutions, but we want to share Projects among Solutions.
We thought that there is no point really in moving those shared Projects to their own Solutions, and instead we decided to use svn:externals to share Projects among Solutions. We also want to keep common set of tools and 3rd party libraries in one place in the repository, and them reference them in each Solution with svn:externals.
What do you think about this layout? Especially about the use of svn:externals. It's not an ideal solution, but considering all pros and cons, it's the best we could think of. How would YOU do it? | 0 | [
2,
184,
107,
42,
9213,
154,
615,
569,
24869,
60,
800,
3726,
3726,
64,
15,
31,
143,
88,
48,
45,
7775,
6903,
25325,
2549,
9990,
9,
960,
118,
24652,
18,
18133,
12586,
9816,
1544,
8,
8264,
8,
245,
8,
6826,
2952,
8,
58,
8,
7563,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 a more concise way of finding text in a set of files?
===
I currently use the following command, but it's a little unwieldy to type. What's a shorter alternative?
find . -name '*.txt' -exec grep 'sometext' '{}' \; -print
Here are my requirements:
- limit to a file extension (I use SVN and don't want to be searching through all those .svn directories)
- can default to the current directory, but it's nice to be able to specify a different directory
- must be recursive
| 0 | [
2,
98,
22,
18,
21,
91,
29455,
161,
16,
3007,
1854,
19,
21,
309,
16,
6488,
60,
800,
3726,
3726,
31,
871,
275,
14,
249,
1202,
15,
47,
32,
22,
18,
21,
265,
367,
3976,
532,
1851,
20,
1001,
9,
98,
22,
18,
21,
7622,
2676,
60,
47... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
handling dbnull data in vb.net
===
I want to generate some formatted output of data retrieved from an MS-Access database and stored in a _DataTable_ object/variable, myDataTable. However, some of the fields in myDataTable cotain _dbNull_ data. So, the following VB.net code snippet will give errors if the value of any of the fields _lastname_, _intials_, or _sID_ is _dbNull_.
dim myDataTable as DataTable
dim tmpStr as String
dim sID as Integer = 1
...
myDataTable = myTableAdapter.GetData() // Reads the data from MS-Access table
...
For Each myItem As DataRow In myDataTable.Rows
tmpStr = nameItem("lastname") + " " + nameItem("initials")
If myItem("sID")==sID Then
// Do something
End If
// print tmpStr
Next
So, how do i get the above code to work when the fields may contain _dbNull_ without having to check each time if the data is dbNull as in [this question](http://stackoverflow.com/questions/105671/any-systemdbnullvalue-vs-any-is-systemdbnull)? | 0 | [
2,
7988,
13,
9007,
4215,
211,
1054,
19,
13,
20468,
9,
2328,
800,
3726,
3726,
31,
259,
20,
7920,
109,
13,
29850,
5196,
16,
1054,
3685,
37,
40,
4235,
8,
20604,
6018,
17,
8214,
19,
21,
13,
1,
18768,
5924,
1,
3095,
118,
8220,
579,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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: Changes to textbox with focus aren't committed until after the Closing event fires.
===
I have a WPF window for editing database information, which is represented using an entity framwork object. When the user closes the window, I'd like to notice in the Closing event whether the information has changed and show a message box offering to save the changes to the database.
Unfortunately, changes to the currently focused edit aren't assigned to the binding source until the edit loses focus, which happens at some point after the Closing event has been processed.
Ideally, there would be a routine which commits all changes in the view hierarchy that I could call before checking to see if my entity has been modified. I've also looked for information on programmatically clearing the focus in the control with focus, but can't figure out how to do it.
My question is, how is this typically handled? Thanks for any comments.
| 0 | [
2,
619,
7721,
45,
1693,
20,
1854,
5309,
29,
1776,
4847,
22,
38,
4164,
163,
75,
14,
4239,
807,
11327,
9,
800,
3726,
3726,
31,
57,
21,
619,
7721,
1463,
26,
9510,
6018,
676,
15,
56,
25,
1622,
568,
40,
9252,
8345,
79,
3783,
3095,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Most efficient way to convert an HTMLCollection to an Array
===
Is there a more efficient way to convert an HTMLCollection to an Array, other than iterating through the contents of said collection and manually pushing each item into an array? | 0 | [
2,
127,
8243,
161,
20,
8406,
40,
13,
15895,
15015,
872,
20,
40,
7718,
800,
3726,
3726,
25,
80,
21,
91,
8243,
161,
20,
8406,
40,
13,
15895,
15015,
872,
20,
40,
7718,
15,
89,
119,
32,
106,
1880,
120,
14,
8478,
16,
87,
1206,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Notepad replacement for viewing very large text files
===
I have a program that creates daily log files that are 30-60MBs in size. I often need to open these files and search for various events. Notepad.exe takes a very long time to open a file that large. I've tried various shareware programs, some are better than notepad, but they all take a while to load these log files. I'm guessing part of the problem is these programs are designed as text-editors. If a program was designed strictly as a text viewer, it could probably handle large files more gracefully (i.e. not have to load the whole file on startup).
Does anybody have any recommendations for a notepad replacement that will allow me to view these files quickly? | 0 | [
2,
1945,
8240,
4610,
26,
11244,
253,
370,
1854,
6488,
800,
3726,
3726,
31,
57,
21,
625,
30,
9695,
1954,
6738,
6488,
30,
50,
712,
8,
3374,
5024,
18,
19,
1072,
9,
31,
478,
376,
20,
368,
158,
6488,
17,
2122,
26,
617,
963,
9,
1945... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Corel draw 13 mysql query
===
Is there a way to do a mysql database query in Corel Draw 13(X3)? | 0 | [
2,
2884,
255,
2003,
539,
51,
18,
22402,
25597,
800,
3726,
3726,
25,
80,
21,
161,
20,
107,
21,
51,
18,
22402,
6018,
25597,
19,
2884,
255,
2003,
539,
5,
396,
240,
6,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to assign null to sql entity columns
===
I have generated linq to sql entites but cannot figure out how to assign null to a nullable column. whenever i try to assign null to it it says "there is no implicit type conversion between int and <null>" | 0 | [
2,
184,
20,
13952,
16203,
20,
4444,
255,
9252,
7498,
800,
3726,
3726,
31,
57,
6756,
6294,
1251,
20,
4444,
255,
13,
2291,
6359,
47,
1967,
1465,
70,
184,
20,
13952,
16203,
20,
21,
16203,
579,
4698,
9,
6634,
31,
1131,
20,
13952,
1620... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how to use 'super' ?
===
I was wondering if anyone could explain to me the difference between doing
class Child(SomeBaseClass):
def __init__(self):
super(base, self).__init__()
and this
class Child(SomeBaseClass):
def __init__(self):
base.__init__(self)
I've seen 'super' being used quite alot in classes with only single inheritance. I can see why you'd use it in multiple inheritance but am unclear as to what the advantages are of using it in this kind of situation ?
Any thoughts on this would be greatly appreciated.
thanks
babak | 0 | [
2,
184,
20,
275,
13,
22,
8542,
22,
13,
60,
800,
3726,
3726,
31,
23,
5712,
100,
1276,
110,
3271,
20,
55,
14,
2841,
128,
845,
718,
850,
5,
3220,
8436,
1898,
6,
45,
6312,
13,
1,
108,
242,
1,
5,
8411,
6,
45,
1026,
5,
8436,
15,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can LINQ to SQL generated objects be decoupled?
===
I like LINQ to SQL, but it seems like the classes it generates are tightly coupled to the database they are stored in, which seems like a Bad Thing.
For example, using ye olde Northwind database, if I create the dbml with the Products table, a `Product` class is generated. I can use this class in any other tier, which is all well and good, but if I decide I'd rather use plain old ADO.NET (or switch databases), I'll have to recreate the `Product` class, along with every other "model."
Is there a way around this? Or to create your object models separately, and then have the tables mapped to them? I've played around with the various mapping classes provided, but haven't found a satisfactory answer yet. | 0 | [
2,
92,
6294,
1251,
20,
4444,
255,
6756,
3916,
44,
121,
17856,
1294,
60,
800,
3726,
3726,
31,
101,
6294,
1251,
20,
4444,
255,
15,
47,
32,
2206,
101,
14,
2684,
32,
7920,
18,
50,
6556,
13420,
20,
14,
6018,
59,
50,
8214,
19,
15,
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... |
Extend a LINQ entity-class with constructor methods and make that entity-class inherit from it's DataContext class
===
Is it possible to extend LINQ-to-SQL entity-classes with constructor-methods and in the same go; make that entity-class inherit from it's data-context class?--In essence converting the entity-class into a business object.
This is the pattern I am currently using:
namespace Xxx
{
public class User : Xxx.DataContext
{
public enum SiteAccessRights
{
NotRegistered = 0,
Registered = 1,
Administrator = 3
}
private Xxx.Entities.User _user;
public Int32 ID
{
get
{
return this._user.UsersID;
}
}
public Xxx.User.SiteAccessRights AccessRights
{
get
{
return (Xxx.User.SiteAccessRights)this._user.UsersAccessRights;
}
set
{
this._user.UsersAccessRights = (Int32)value;
}
}
public String Alias
{
get
{
return this._user.UsersAlias;
}
set
{
this._user.UsersAlias = value;
}
}
public User(Int32 userID)
{
var user = (from u in base.Users
where u.UsersID == userID
select u).FirstOrDefault();
if (user != null)
{
this._user = user;
}
else
{
this._user = new Xxx.Entities.User();
base.Users.InsertOnSubmit(this._user);
}
}
public User(Xxx.User.SiteAccessRights accessRights, String alias)
{
var user = (from u in base.Users
where u.UsersAccessRights == (Int32)accessRights && u.UsersAlias == alias
select u).FirstOrDefault();
if (user != null)
{
this._user = user;
}
else
{
this._user = new Xxx.Entities.User
{
UsersAccessRights = (Int32)accessRights,
UsersAlias = alias
};
base.Users.InsertOnSubmit(this._user);
}
}
public void DeleteOnSubmit()
{
base.Users.DeleteOnSubmit(this._user);
}
}
} | 0 | [
2,
7206,
21,
6294,
1251,
9252,
8,
1898,
29,
6960,
248,
3195,
17,
233,
30,
9252,
8,
1898,
17569,
37,
32,
22,
18,
1054,
1126,
11969,
718,
800,
3726,
3726,
25,
32,
938,
20,
7206,
6294,
1251,
8,
262,
8,
18,
22402,
9252,
8,
1898,
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... |
intelligent database search
===
The issue is there is a database with around 20k customer records and I want to make a best effort to avoid duplicate entries. The database is Microsoft SQL Server 2005, the application that maintains that database is Microsoft Dynamics/SL. I am creating an ASP.NET webservice that interacts with that database. My service can insert customer records into the database, read records from it, or modify those records. Either in my webservice, or through MS Dynamics, or in Sql Server, I would like to give a list of possible matches before a user confirms a new record add.
So the user would submit a record, if it seems to be unique, the record will save and return a new ID. If there are possible duplications, the user can then resubmit with a confirmation saying, "yes, I see the possible duplicates, this is a new record, and I want to submit it".
This is easy if it is just a punctuation or space thing (such as if you are entering "Company, Inc." and there is a "Company Inc" in the database, But what if there is slight changes such as "Company Corp." instead of "Company Inc" or if there is a fat fingered misspelling, such as "Cmpany, Inc." Is it even possible to return records like that in the list? If it's absolutely not possible, I'll deal with what I have. It just causes more work later on, if records need to be merged due to duplications.
| 0 | [
2,
9214,
6018,
2122,
800,
3726,
3726,
14,
1513,
25,
80,
25,
21,
6018,
29,
140,
434,
197,
7705,
742,
17,
31,
259,
20,
233,
21,
246,
2150,
20,
2658,
19429,
11399,
9,
14,
6018,
25,
7099,
4444,
255,
8128,
812,
15,
14,
3010,
30,
97... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In a multi-threaded C++ app, do I need a mutex to protect a simple boolean?
===
I have a multi-threaded C++ app which does 3D rendering with the OpenSceneGraph library. I'm planning to kick off OSG's render loop as a separate thread using boost::threads, passing a data structure containing shared state in to the thread. I'm trying to avoid anything too heavyweight (like mutexes) for synchronization, as the render loop needs to be pretty tight, and OSG itself tries to avoid having to ever lock. Most of the shared state is set before the thread is started, and never changed. I do have some data that does need to be changed, which I am planning to double-buffer. However, I have a simple boolean for signaling the thread to suspend rendering, and later resume rendering, and another to kill it. In both cases the app thread sets the bool, and the render thread only reads it. Do I need to synchronize access to these bools? As far as I can tell, the worse thing that could happen is the the render loop continues on for an extra frame before suspending or quitting. | 0 | [
2,
19,
21,
1889,
8,
96,
10647,
69,
272,
20512,
4865,
15,
107,
31,
376,
21,
20562,
396,
20,
2196,
21,
1935,
9827,
413,
210,
60,
800,
3726,
3726,
31,
57,
21,
1889,
8,
96,
10647,
69,
272,
20512,
4865,
56,
630,
203,
43,
15307,
29,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Want to host WCF Webservice as WIndows Service as against to Hosting in IIS
===
I want to expose few web services but thinking of hosting those as Windows Service as against hosting in IIS.
Is it a good practice?
If yes? How do I make it secured?
I want to authenticate the users who are accessing it (against our custom security database and also want to make sure that the request is originating from our business partner (X.509 certificates???? not worked much with this).
appreciate your pointers in this regards.
Thanks & Regards,
Ajay | 0 | [
2,
259,
20,
2015,
11801,
410,
2741,
11449,
28,
1936,
365,
28,
149,
20,
10637,
19,
595,
18,
800,
3726,
3726,
31,
259,
20,
13833,
310,
2741,
687,
47,
1440,
16,
10637,
273,
28,
1936,
365,
28,
149,
10637,
19,
595,
18,
9,
25,
32,
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... |
In PHP, is there a way to capture the output of a PHP file into a variable without using output buffering?
===
In PHP, I want to read a file into a variable and process the PHP in the file at the same time without using output buffering. Is this possible?
Essentially I want to be able to accomplish this without using `ob_start()`:
<?php
ob_start();
include 'myfile.php';
$xhtml = ob_get_clean();
?>
Is this possible in PHP? | 0 | [
2,
19,
13,
26120,
15,
25,
80,
21,
161,
20,
3683,
14,
5196,
16,
21,
13,
26120,
3893,
77,
21,
7612,
366,
568,
5196,
17497,
68,
60,
800,
3726,
3726,
19,
13,
26120,
15,
31,
259,
20,
1302,
21,
3893,
77,
21,
7612,
17,
953,
14,
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... |
Computer Science for Crotechy old Dogs.
===
I learn't C++ when it was C with classes. I find myself increasingly disliking new technologies like XML and Garbage collection.
On the other hand, iv'e discovered scripting languages like Lua and Python. And I find myself rather liking a hybrid environment of c++, with deterministic memory control, with an embedded script language, with garbage collection and all that entails.
My problem is, when attempting to learn these languages I find myself confronted with terminology that I just don't grok: lambdas, closures, etc.
What online resources are there for an old fogey to get current with this stuff? | 0 | [
2,
1428,
762,
26,
4880,
6524,
93,
315,
5091,
9,
800,
3726,
3726,
31,
2484,
22,
38,
272,
20512,
76,
32,
23,
272,
29,
2684,
9,
31,
477,
992,
5054,
1460,
8841,
68,
78,
5740,
101,
23504,
17,
15024,
1206,
9,
27,
14,
89,
224,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How Do You Get the Height of the Titlebar Using Java (Swing)?
===
I am getting a <code>MouseEvent</code> in Java. the <code>getPoint()</code> method is adding the height of the title bar into the y portion of the coordinate.
I was wondering how I can find the height of the title bar of the current window in order to offset the y value by the correct amount. | 0 | [
2,
184,
107,
42,
164,
14,
2947,
16,
14,
581,
1850,
568,
8247,
13,
5,
18,
3546,
6,
60,
800,
3726,
3726,
31,
589,
1017,
21,
13,
1,
9375,
1,
18926,
1798,
6645,
1,
118,
9375,
1,
19,
8247,
9,
14,
13,
1,
9375,
1,
3060,
3132,
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... |
Using a UITableViewController with a small-sized table?
===
When using a UITableViewController, the initWithStyle: method automatically creates the underlying UITableView with - according to the documentation - "the correct dimensions".
My problem is that these "correct dimensions" seem 320x460 (the iPhone's screen size), but I'm pushing this TableView/Controller pair into a UINavigationController which is itself contained in a UIView, which itself is about half the height of the screen.
No frame or bounds wrangling I can come up with seems to correctly reset the table's size, and as such it's "too long", meaning there are a collection of rows that are pushed off the bottom of the screen and are not visible nor reachable by scrolling.
So my question comes down to: what is the proper way to tell a UITableViewController to resize its component UITableView to a specified rectangle?
Thanks! | 0 | [
2,
568,
21,
13,
11193,
579,
4725,
12898,
1252,
29,
21,
284,
8,
6560,
859,
60,
800,
3726,
3726,
76,
568,
21,
13,
11193,
579,
4725,
12898,
1252,
15,
14,
19,
242,
1410,
4381,
45,
2109,
7499,
9695,
14,
10974,
13,
11193,
579,
4725,
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... |
Safe, universal, way to use addEventHandler in Javascript?
===
Before I get into the details of this problem, I'd like to make the situation clear. Our web analytics company works as a consultant for large sites, and (other than adding a single SCRIPT tag) we have no control over the pages themselves.
Our existing script installs handlers using "old" way (a fancy version of element.onclick = blah; that also executes the original handler) which is completely unaware of "new" (addEventListener or attachEvent) handlers on the page. We'd like to fix this to make our script able to run on more sites without requiring as much custom development.
The initial thought here was to have our own script use addEventListener/attachEvent, but this presents a problem: of the client's site sets a handler using the "old" way, it would wipe out the handler we installed the "new" way. Quick and dirty testing shows this happens in both IE7 and FF3, although I didn't test the whole range of browsers. There's also a risk that if we use the "new" way after the page's event handlers are already set, we could erase their handlers.
So my question is: what safe technique can I use to add an event handler in Javascript using addEventListener/attachEvent that works regardless of how other event handlers on the page are installed?
Please remember: we have no way of modifying the site that our script is installed on. (I have to emphasize that because the default answer to questions like this is always, "just rewrite the page to do everything the same way.") | 0 | [
2,
1834,
15,
4172,
15,
161,
20,
275,
3547,
4943,
96,
290,
1252,
19,
8247,
8741,
60,
800,
3726,
3726,
115,
31,
164,
77,
14,
3289,
16,
48,
1448,
15,
31,
22,
43,
101,
20,
233,
14,
1858,
1207,
9,
318,
2741,
26320,
237,
693,
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... |
My images ask for a password to the local network (Under ASP/IIS)
===
Not quite sure how to troubleshoot this. I'm maintaining an ASP site, its mostly static, but there's this one include page which brings the menu.
Just recently I replaced some images, but now when I try the site, I get a prompt for a password as if It were looking for something on the local network!
I checked, all image paths are written up correctly, all images are unblocked (a W2k3 safety feature) and all images are set to allow-all on all users ... yet still, I get a password prompt!
Here's a sample page where it happens: http://www.iossolution.com/company/aboutus.asp
Thanks.
/mp | 0 | [
2,
51,
3502,
1349,
26,
21,
20884,
20,
14,
375,
982,
13,
5,
4579,
28,
306,
118,
2865,
18,
6,
800,
3726,
3726,
52,
1450,
562,
184,
20,
2572,
12511,
48,
9,
31,
22,
79,
8215,
40,
28,
306,
689,
15,
82,
1555,
12038,
15,
47,
80,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Scalaibility on the web
===
I've been arguing with some friends on the university, and we can't get to a point to which is the framework with more scalability for web applications (and still very fast).
One calls for jsp, the other one for ruby other for php and so on. Could i ask you to clarify us on what as more scalability potential?
Tks, hope I'm not duplicating anything I've searched but didn't found any previous question like this. | 0 | [
2,
25975,
14264,
27,
14,
2741,
800,
3726,
3726,
31,
22,
195,
74,
9000,
29,
109,
954,
27,
14,
155,
15,
17,
95,
92,
22,
38,
164,
20,
21,
454,
20,
56,
25,
14,
6596,
29,
91,
18957,
4091,
26,
2741,
3767,
13,
5,
290,
174,
253,
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... |
WCF Error Logging at Service Boundary
===
I'm trying to implement an IErrorHandler in my WCF service in order to log every exception that hits the service boundary before it's passed to the client. I already use IErrorHandlers for translating Exceptions to typed FaultExceptions, which has been very useful. According to the MSDN for IErrorHandler.HandleError(), it's also intended to be used for logging at the boundary.
The problem is, the HandleError function isn't guaranteed to be called on the operation thread, so I can't figure out how to get information about what operation triggered the exception. I can get the TargetSite out of the exception itself, but that gives me the interior method instead of the operation. I could also parse through the StackTrace string to figure out where it was thrown, but this seems a little fragile and hokey. Is there any consistent, supported way to get any state information (messages, operationdescription, anything) while in the HandleError function? Or any other ways to automatically log exceptions for service calls?
Thanks. | 0 | [
2,
11801,
410,
7019,
13,
13919,
35,
365,
5067,
800,
3726,
3726,
31,
22,
79,
749,
20,
8713,
40,
31,
29992,
3203,
1252,
19,
51,
11801,
410,
365,
19,
389,
20,
6738,
352,
5391,
30,
3858,
14,
365,
5067,
115,
32,
22,
18,
1100,
20,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
More DIV Positioning
===
Here is another site I am working on: http://www.freesecustomhomes.com/dev/index.html
You'll notice the div "form" is dropping down.
The css for the layout is:
/********************************************
LAYOUT
********************************************/
}
#wrapper {
margin: 0px auto;
position: relative;
width: 980px;
}
#logo {
float: left;
height: 336px;
width: 468px;
border-right: 1px solid #FFFFFF;
border-bottom: 1px solid #FFFFFF;
position: relative;
}
#topnav {
background: url(images/topnav.jpg) no-repeat;
float: left;
height: 171px;
width: 460px;
position: relative;
text-align: right;
padding-right: 50px;
padding-top: 20px;
}
#nav {
background: #990000;
float: left;
height: 145px;
width: 237px;
position: relative;
border-bottom: 1px solid #FFFFFF;
background-color: #990000;
}
#gallery {
background: #FFFFFF;
float: left;
height: 145px;
width: 273px;
position: relative;
border-bottom: 1px solid #FFFFFF;
}
#lnav {
background: #980000;
float: left;
height: 329px;
width: 235px;
position: relative;
border-right: 1px solid #FFFFFF;
}
#main {
background: #FFFFFF url(images/maincontent.jpg) no-repeat;
float: left;
width: 651px;
position: relative;
padding-top: 20px;
padding-left: 40px;
padding-right: 50px;
margin: 0px;
}
#footer {
background: #FFFFFF url(images/footerbknd.jpg) repeat-x;
clear: both;
float: left;
height: 104px;
width: 980px;
font: 10px Arial, Helvetica, sans-serif;
text-transform: uppercase;
color: #666666;
padding-top: 20px;
padding-left: 0px;
text-align: center;
border-top: 1px solid #FFFFFF;
}
#btm {
float: left;
height: 54px;
width: 980px;
position: relative;
text-align: right;
clear: both;
}
| 0 | [
2,
91,
13,
12916,
649,
68,
800,
3726,
3726,
235,
25,
226,
689,
31,
589,
638,
27,
45,
7775,
6903,
6483,
9,
4639,
870,
4636,
6015,
8167,
18,
9,
960,
118,
14438,
118,
25671,
9,
15895,
42,
22,
211,
3551,
14,
13,
12916,
13,
7,
4190... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Persist Variable on Postback
===
I created a single page (with code behind .vb) and created Public intFileID As Integer
in the Page load I check for the querystring and assign it if available or set intFileID = 0.
Public intFileID As Integer = 0
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
If Not Request.QueryString("fileid") Is Nothing Then
intFileID = CInt(Request.QueryString("fileid"))
End If
If intFileID > 0 Then
GetFile(intFileID)
End If
End If
End Sub
Private Sub GetFile()
'uses intFileID to retrieve the specific record from database and set's the various textbox.text
End Sub
There is a click event for the Submit button that inserts or updates a record based on the value of the intFileID variable. I need to be able to persist that value on postback for it all to work.
The page simply inserts or updates a record in a SQL database. I'm not using a gridview,formview,detailsview, or any other rad type object which persists the key value by itself and I don't want to use any of them.
How can I persist the value set in intFileID without creating something in the HTML which could possibly be changed.
| 0 | [
2,
184,
20,
22084,
7612,
27,
678,
1958,
800,
3726,
3726,
31,
679,
21,
345,
2478,
13,
5,
1410,
1797,
439,
13,
9,
20468,
6,
17,
679,
317,
19,
38,
16877,
1340,
28,
13820,
19,
14,
2478,
6305,
31,
2631,
26,
14,
25597,
11130,
17,
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... |
Using IP Addresses or Host Headers in IIS
===
I was wondering about the best practices regarding this? I know there are two ways to use IIS and host multiple websites.
The first is to have an IP for every website
The second is to use host headers, and a single IP Address for IIS
I was wondering which was the best practice, and why one should be preferred over the other?
Thanks!
| 0 | [
2,
568,
15735,
12636,
54,
2015,
157,
445,
19,
595,
18,
800,
3726,
3726,
31,
23,
5712,
88,
14,
246,
5242,
3467,
48,
60,
31,
143,
80,
50,
81,
2847,
20,
275,
595,
18,
17,
2015,
1886,
13931,
9,
14,
64,
25,
20,
57,
40,
15735,
26,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
String Manipulation in MS SQL
===
Can anyone give me a complete list of string manipulation function in Microsoft SQL (2000 or 2005)?
(I don't need a lecture about doing all my string processing in the presentation layer. And, I don't need a list of MySQL string functions.)
Thanks!
| 0 | [
2,
3724,
17561,
19,
4235,
4444,
255,
800,
3726,
3726,
92,
1276,
590,
55,
21,
1279,
968,
16,
3724,
17561,
1990,
19,
7099,
4444,
255,
13,
5,
3050,
54,
812,
6,
60,
13,
5,
49,
221,
22,
38,
376,
21,
8143,
88,
845,
65,
51,
3724,
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... |
Is there a type-safe Java implementation of 'reduce'?
===
I often need to run reduce (also called foldl / foldr, depending on your contexts) in java to aggregate elements of an Itterable.
Reduce takes a collection/iterable/etc, a function of two parameters, and an optional start value (depending on the implementation details). The function is successively applied to an element of the collection and the output of the previous invocation of reduce until all elements have been processed, and returns the final value.
Is there a type-safe implementation of reduce in any common java api? [Google Collections][goog] *seems* like it should have one, but I haven't been able to find it. (possibly because I don't know what other names it would use.)
[goog]: http://google-collections.googlecode.com | 0 | [
2,
25,
80,
21,
1001,
8,
18166,
8247,
6123,
16,
13,
22,
99,
16041,
22,
60,
800,
3726,
3726,
31,
478,
376,
20,
485,
4136,
13,
5,
2573,
227,
14629,
255,
13,
118,
14629,
139,
15,
4758,
27,
154,
4141,
18,
6,
19,
8247,
20,
8544,
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... |
Flex Builder 3: Debugger traces error, when fixing the as file, keeps throwing same error, stuck in past
===
I'm running my first project that I'm compiling with flex builder. Before I used to compile with flash or flash develop.
For a while it worked pretty neatly. But as soon as it start throwing typeerrors, I can't seem to compile the updated and saved actionscript files. It seems as if it keeps stuck in time and compiles the actionscript file from when the error was still there.
Perhaps any options I missed regarding configuring the debugger ? | 0 | [
2,
14409,
14960,
2635,
121,
2345,
11356,
10738,
7019,
15,
76,
20047,
14,
28,
3893,
15,
8968,
6033,
205,
7019,
15,
4549,
19,
640,
800,
3726,
3726,
31,
22,
79,
946,
51,
64,
669,
30,
31,
22,
79,
24378,
29,
14409,
14960,
9,
115,
31,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the scope of the "using" declaration in C++?
===
I'm using the 'using' declaration in C++ to add std::string and std::vector to the local namespace (to save typing unnecessary 'std::'s).
using std::string;
using std::vector;
class Foo { /*...*/ };
What is the scope on this declaration? If I do this in a header, will it inject these 'using' declarations into every cpp file that includes the header? | 0 | [
2,
98,
22,
18,
14,
9914,
16,
14,
13,
7,
12655,
7,
7098,
19,
272,
20512,
60,
800,
3726,
3726,
31,
22,
79,
568,
14,
13,
22,
12655,
22,
7098,
19,
272,
20512,
20,
3547,
354,
43,
45,
45,
11130,
17,
354,
43,
45,
45,
28033,
20,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Open source web grid control with copy/paste support to excel spreadsheets
===
I am looking for a web datagrid control to integrate in ASP.NET app.
The most important feature required is the ability to copy-paste from and to excel spreadsheet right from the grid on the web page.
Other than Google spreadsheets I found this product ( not open source ) - http://www.editgrid.com/
looks like the closest match to my requirement but is not open source.
| 0 | [
2,
368,
1267,
2741,
7354,
569,
29,
4344,
118,
19802,
62,
555,
20,
20700,
1789,
17627,
18,
800,
3726,
3726,
31,
589,
699,
26,
21,
2741,
1054,
16375,
569,
20,
18399,
19,
28,
306,
9,
2328,
4865,
9,
14,
127,
681,
1580,
1390,
25,
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... |
Using a CYMK PSD without Photoshop
===
I have run into a common, yet difficult problem. I do not use Photoshop for image manipulation. Since all my work is web-based, GIMP does what I need in 99% of the situations. The *problem* is that I occasionally receive PSD files with CYMK encoding rather than RGB encoding. These files will not open in GIMP, nor will they convert in ImageMagik.
Has anyone found a good solution for converting CYMK files to RGB files (either PSD format or a flat format like PNG) that does **not** involve the use of Photoshop? Say plugin for GIMP or a standalone utility? | 0 | [
2,
568,
21,
6728,
79,
197,
8613,
43,
366,
7064,
5347,
800,
3726,
3726,
31,
57,
485,
77,
21,
757,
15,
768,
1956,
1448,
9,
31,
107,
52,
275,
7064,
5347,
26,
1961,
17561,
9,
179,
65,
51,
170,
25,
2741,
8,
1281,
15,
489,
8983,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What methods do wikis use for merging concurrent edits?
===
If two users edit the same wiki topic, what methods have been used in wikis (or in similar collaborative editing software) to merge the second user's edits with the first?
I'd like a solution that:
* doesn't require locking
* doesn't lose any additions to the page.
* It may add extra "boilerplate" text to indicate where differing changes were made.
(I'm interested in a solution that could be used to implement [this uservoice idea][1] for stack overflow.)
[1]: http://stackoverflow.uservoice.com/pages/general/suggestions/28245 | 0 | [
2,
98,
3195,
107,
13,
17375,
18,
275,
26,
18842,
19513,
9392,
18,
60,
800,
3726,
3726,
100,
81,
3878,
9392,
14,
205,
13,
17375,
8303,
15,
98,
3195,
57,
74,
147,
19,
13,
17375,
18,
13,
5,
248,
19,
835,
12937,
9510,
2306,
6,
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... |
Dealing with SEC_I_RENEGOTIATE and TLS1_ALERT_NO_RENEGOTIATION in SChannel
===
I'm working with SChannel at the moment for an async (IOCP) based server and I've got most things working fine but I'm having a problem with renegotiation. Specifically, when peer A sends peer B a request to renegotiate and peer B responds with an TLS1 'NO RENEGOTIATION' alert how does peer A continue? I seem to have an invalid context at the point where I get the <code>SEC I NO RENEGOTIATION</code> response and this prevents me from being able to continue to use the stream...
| 0 | [
2,
5746,
29,
9265,
1,
49,
1,
17796,
7597,
15882,
17,
13,
7786,
18,
165,
1,
192,
6767,
1,
251,
1,
17796,
7597,
49,
857,
19,
13,
18,
10928,
800,
3726,
3726,
31,
22,
79,
638,
29,
13,
18,
10928,
35,
14,
688,
26,
40,
21,
9507,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Find corel draw web links.
===
Does anyone know how to get the web links in a Corel draw document? I am using Corel draw 13 X3 on Windows, and it comes with a Link manager and VBA. | 0 | [
2,
477,
2884,
255,
2003,
2741,
6271,
9,
800,
3726,
3726,
630,
1276,
143,
184,
20,
164,
14,
2741,
6271,
19,
21,
2884,
255,
2003,
4492,
60,
31,
589,
568,
2884,
255,
2003,
539,
993,
240,
27,
1936,
15,
17,
32,
1624,
29,
21,
3508,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
C#: How to inherit constructors?
===
Image a base class with many constructors and a virtual method
public class Foo
{
...
public Foo() {...}
public Foo(int i) {...}
public Foo(int i, int i) {...}
public Foo(int i, int i, int i) {...}
...
public Foo(int i, int i, ..., int i) {...}
...
public virtual void Lick() {...}
...
}
and now i want to create a descendant class that overrides the virtual method:
public class Bar : Foo
{
public override void Lick() {...}
}
and another descendant that does some more stuff
public class Bah : Bar
{
public void Suck() {...}
}
Do i really have to copy all 387 constructors from Foo into Bar and Bah? And then if i change a constructor signature in Foo, i have to update it in Bar and Bah?
Is there no way to inherit constructors? Is there no way to encourage code-reuse? | 0 | [
2,
272,
5910,
45,
184,
20,
17569,
6960,
248,
18,
60,
800,
3726,
3726,
1961,
21,
1000,
718,
29,
151,
6960,
248,
18,
17,
21,
6599,
2109,
317,
718,
4310,
111,
13,
1,
13,
9,
9,
9,
317,
4310,
111,
5,
6,
13,
1,
9,
9,
9,
1,
317... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 find the Vertical size of a window displaying a web page.
===
I have an ASP.NET Site that has a single Master Page. On one of my pages in this site I display a PDF file as the content of the page.
I need a way to know the size that I can make the PDF control so that I do not create a scroll bar for the webpage (the PDF control has it's own scroll bar).
I was able to solve this horizontally by setting the width of the control to 100%. Sadly this does not work for the Vertical size.
Any help is appreciated.
Vaccano | 0 | [
2,
184,
20,
477,
14,
7035,
1072,
16,
21,
1463,
17418,
21,
2741,
2478,
9,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
689,
30,
63,
21,
345,
1129,
2478,
9,
27,
53,
16,
51,
4434,
19,
48,
689,
31,
3042,
21,
13,
11124,
3893,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Database of Software
===
I'm looking for a database of common software. At minimum I need the name of the software and the executable name, but it'd also be nice to have the publisher and the common installation path, etc. I came across an effort to create such a database a long time ago, but can't seem to find it now. Maybe it fizzled out. Any help would be greatly appreciated. Thanks. | 0 | [
2,
6018,
16,
2306,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
6018,
16,
757,
2306,
9,
35,
5187,
31,
376,
14,
204,
16,
14,
2306,
17,
14,
1396,
17194,
5924,
204,
15,
47,
32,
22,
43,
67,
44,
2210,
20,
57,
14,
5916,
17,
14,
757... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Disable Debugging Output
===
I'd like to sprinkle some print statements in my code to show where I am and print important values to a console window.
How do I do that, but then be able to turn it off for the release version? | 0 | [
2,
1460,
579,
121,
16254,
2762,
5196,
800,
3726,
3726,
31,
22,
43,
101,
20,
22114,
109,
4793,
9015,
19,
51,
1797,
20,
298,
113,
31,
589,
17,
4793,
681,
4070,
20,
21,
8650,
1463,
9,
184,
107,
31,
107,
30,
15,
47,
94,
44,
777,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Creating a client editable events calendar in html or php
===
A prospective client wants to have a calendar feature on their website. They want the option to go edit this calendar to update the events. Does Word Press offer something like this? | 0 | [
2,
2936,
21,
6819,
9392,
579,
963,
7036,
19,
13,
15895,
54,
13,
26120,
800,
3726,
3726,
21,
20499,
6819,
2846,
20,
57,
21,
7036,
1580,
27,
66,
2271,
9,
59,
259,
14,
4255,
20,
162,
9392,
48,
7036,
20,
11100,
14,
963,
9,
630,
83... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to export SSRS charts to PDF at high resolution?
===
I have a simple SQL Server 2005 Reporting Services report with a bar chart. When I print directly from the preview window in Visual Studio everything looks good, but if I export the report to a PDF file and print it then the labels and even some of the vertical lines come out pixelated. How can I increase the resolution of the PDF export? | 0 | [
2,
184,
20,
7487,
22118,
18,
5158,
20,
13,
11124,
35,
183,
4302,
60,
800,
3726,
3726,
31,
57,
21,
1935,
4444,
255,
8128,
812,
6670,
687,
1330,
29,
21,
748,
1795,
9,
76,
31,
4793,
1703,
37,
14,
16121,
1463,
19,
3458,
1120,
796,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Converting between oracle.sql.TIMESTAMPTZ and standard JDBC classes for DbUnit
===
I'm running Oracle 10g and have columns with Type_Name
<pre>TIMESTAMP(6) WITH TIME ZONE</pre>
When inflated into java classes they come out as
<pre>oracle.sql.TIMESTAMPTZ </pre>
But DbUnit can't handle converting Oracle specific classes to Strings for writing to XML. I'm wondering if there's any easy way for me to convert (say, in my SELECT statement somehow) from these Oracle specific timestamps to something in java.sql.
| 0 | [
2,
19583,
128,
15759,
9,
18,
22402,
9,
891,
384,
10158,
2796,
17,
1236,
487,
43,
7229,
2684,
26,
13,
9007,
15464,
800,
3726,
3726,
31,
22,
79,
946,
15759,
332,
263,
17,
57,
7498,
29,
1001,
1,
7259,
13,
1,
3515,
1,
891,
384,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Where do you validate form data in a web application?
===
Say you have a web form with some fields that you want to validate to be only some subset of alphanumeric, a minimum or maximum length etc.
You can validate in the client with javascript, you can post the data back to the server and report back to the user, either via ajax or not. You could have the validation rules in the database and push back error messages to the user that way.
Or any combination of all of the above.
If you want a single place to keep validation rules for web application user data that persist to a database, what are some best practices, patterns or general good advice for doing so? | 0 | [
2,
113,
107,
42,
7394,
1373,
505,
1054,
19,
21,
2741,
3010,
60,
800,
3726,
3726,
395,
42,
57,
21,
2741,
505,
29,
109,
2861,
30,
42,
259,
20,
7394,
1373,
20,
44,
104,
109,
16622,
16,
5705,
6336,
14744,
15,
21,
5187,
54,
2979,
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 do you handle the output of a dynamically generated form in ASP.NET MVC?
===
Say you create a form using ASP.NET MVC that has a dynamic number of form elements.
For instance, you need a checkbox for each product, and the number of products changes day by day.
How would you handle that form data being posted back to the controller? You can't set up parameters on the action method because you don't know how many form values are going to be coming back.
Thanks.
| 0 | [
2,
184,
107,
42,
3053,
14,
5196,
16,
21,
7782,
1326,
6756,
505,
19,
28,
306,
9,
2328,
307,
8990,
60,
800,
3726,
3726,
395,
42,
1600,
21,
505,
568,
28,
306,
9,
2328,
307,
8990,
30,
63,
21,
7782,
234,
16,
505,
2065,
9,
26,
485... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 write a hook that gets called when a RubyGem is installed?
===
I'd like to write a Ruby snippet that gets run when my Gem is first installed via `[sudo ]gem install mygem`. Can it be done? | 0 | [
2,
184,
92,
31,
2757,
21,
5559,
30,
3049,
227,
76,
21,
10811,
20231,
25,
4066,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
2757,
21,
10811,
13,
29061,
30,
3049,
485,
76,
51,
8551,
25,
64,
4066,
1197,
13,
1,
2558,
18,
18601,
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,
0,
0,
0,
0,
0... |
How to call COM function from PHP with OLE_COLOR as an argument?
===
I am trying to call a COM object from PHP using the COM interop extension. One function requires an OLE_COLOR as an argument? Is there any way to pass this kind of value from PHP?
I have tried passing a simple integer value with no sucess.
`$this->oBuilder->Font->Color = 255;` | 0 | [
2,
184,
20,
645,
13,
960,
1990,
37,
13,
26120,
29,
12116,
1,
11282,
28,
40,
5476,
60,
800,
3726,
3726,
31,
589,
749,
20,
645,
21,
13,
960,
3095,
37,
13,
26120,
568,
14,
13,
960,
1480,
2594,
3896,
9,
53,
1990,
4781,
40,
12116,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.