unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
C# How to insert 'Empty' field in Combo Box bound to DataTable
===
This is frustrating, as I am sure I have done this before without issue.
I have a combo box on a WinForms app in which an item may be selected, but it is not mandatory. I therefore need an 'Empty' first item to indicate that no value has been set.
The combo box is bound to a DataTable being returned from a stored procedure (I offer no apologies for Hungarian notation on my UI controls :p ):
DataTable hierarchies = _database.GetAvailableHierarchies(cmbDataDefinition.SelectedValue.ToString()).Copy();//Calls SP
cmbHierarchies.DataSource = hierarchies;
cmbHierarchies.ValueMember = "guid";
cmbHierarchies.DisplayMember = "ObjectLogicalName";
How can I insert such an empty item?
I do have access to change the SP, but I would really prefer not to 'pollute' it with UI logic. | 0 | [
2,
272,
5910,
184,
20,
14692,
13,
22,
26542,
22,
575,
19,
22621,
1649,
4138,
20,
1054,
5924,
800,
3726,
3726,
48,
25,
25568,
15,
28,
31,
589,
562,
31,
57,
677,
48,
115,
366,
1513,
9,
31,
57,
21,
22621,
1649,
27,
21,
628,
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... |
JQuery "Any Row" Picker
===
I'm looking for a generic "Row Picker" for JQuery.
We've all seen the cool "Picker" tools like date pickers, color pickers, time pickers, etc, where you click in a text box and a little calendar or color palate or clock or something comes up. You select something (like a date) and the text box is then populated with a value.
I really need an all-purpose "row picker" where you can populate something (a table, divs, etc) with some rows of data (say a list of timezones). This would be linked to a text field and would pop up when the user clicks in the field.
They would click a row (say a timezone), and the timezone id would be passed back to the field.
Anyone know of anything that does this?
Thanks!
| 0 | [
2,
487,
8190,
93,
13,
7,
6001,
3131,
7,
2036,
106,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
12733,
13,
7,
5417,
2036,
106,
7,
26,
487,
8190,
93,
9,
95,
22,
195,
65,
541,
14,
2700,
13,
7,
16855,
106,
7,
4672,
101,
1231,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What Linux shell should I use?
===
I've used bash, csh, and tcsh. But I asked [this question][1], and Jonathan informed me that csh isn't to be trusted. So what Linux shell is good for development. and why?
[1]: http://stackoverflow.com/questions/198723/whats-in-your-cshrc | 0 | [
2,
98,
13024,
3593,
378,
31,
275,
60,
800,
3726,
3726,
31,
22,
195,
147,
13158,
15,
272,
1635,
15,
17,
13,
6668,
1635,
9,
47,
31,
411,
636,
1565,
1301,
500,
2558,
165,
500,
15,
17,
4473,
5855,
55,
30,
272,
1635,
2532,
22,
38,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Ruby SOAP SSL Woes
===
I have a SOAP client in Ruby that I'm trying to get working with a Ruby SOAP server, to no avail. The client works fine over SSL with a Python SOAP server, but not with the Ruby version. Here's what the server looks like:
require 'soap/rpc/standaloneServer'
require 'soap/rpc/driver'
require 'rubygems'
require 'httpclient'
def cert(filename)
OpenSSL::X509::Certificate.new(File.open("path to cert.cert") { |f|
f.read
})
end
def key(filename)
OpenSSL::PKey::RSA.new(File.open("path to rsaprivate.key") { |f|
f.read
})
end
class Server < SOAP::RPC::HTTPServer
~code snipped for readability~
end
server = Server.new(:BindAddress => HelperFunctions.local_ip, :Port => 1234, :SSLCertificate => cert("path to cert"), :SSLPrivateKey => key("path to rsa private key"))
new_thread = Thread.new { server.start }
I've trimmed some of the code out for readability's sake (e.g., I have some methods in there I expose) and it works fine with SSL off. But when the client tries to connect, it sees this:
warning: peer certificate won't be verified in this SSL session
/usr/lib/ruby/1.8/net/http.rb:567: warning: using default DH parameters.
/usr/lib/ruby/1.8/net/http.rb:586:in `connect': unknown protocol (OpenSSL::SSL::SSLError)
I tried taking some advice from [this post][1] and now I see this message:
/usr/lib/ruby/1.8/soap/httpconfigloader.rb:64:in `set_ssl_config': SSL not supported (NotImplementedError)
Any ideas on how to fix this would be greatly appreciated.
[1]: http://stackoverflow.com/questions/128660/how-can-i-make-rubys-soaprpcdriver-work-with-self-signed-certificates | 0 | [
2,
10811,
6447,
13,
18,
18,
255,
4808,
160,
800,
3726,
3726,
31,
57,
21,
6447,
6819,
19,
10811,
30,
31,
22,
79,
749,
20,
164,
638,
29,
21,
10811,
6447,
8128,
15,
20,
90,
24240,
9,
14,
6819,
693,
1123,
84,
13,
18,
18,
255,
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... |
Most Influential CS Class You've Taken
===
What is the most influential CS class that you've taken? This could mean the one which made you a better programmer, the one which changed the way you think about CS... maybe even the one that made you decide not to major in CS, although I doubt we'll see many of those around here.
I have two candidates: One was Computer Systems, where we learned how computers work starting from logic gates leading into designing and simulating our own RISC computer, then creating a compiler for a simple language to compile to that assembly code.
Another is this course about Programming Languages I'm taking. It's teaching me a lot of new concepts like continuations, what mutation really is, etc... | 4 | [
2,
127,
5241,
272,
18,
718,
42,
22,
195,
658,
800,
3726,
3726,
98,
25,
14,
127,
5241,
272,
18,
718,
30,
42,
22,
195,
658,
60,
48,
110,
884,
14,
53,
56,
117,
42,
21,
574,
17968,
15,
14,
53,
56,
1015,
14,
161,
42,
277,
88,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best "beginner" book Assembly Language?
===
What's the best "beginner" book Assembly Language? | 4 | [
2,
98,
22,
18,
14,
246,
13,
7,
17143,
18005,
7,
360,
1475,
816,
60,
800,
3726,
3726,
98,
22,
18,
14,
246,
13,
7,
17143,
18005,
7,
360,
1475,
816,
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,
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... |
Inherit css properties
===
I have only a basic knowledge of css, is it possible to inherit a property from one style into another style. So for instance I could inherit the font size specified in my default paragrah tag settings into my hyperlink tags.
The reason I want to do this is to make it easier to maintain multiple styles.
| 0 | [
2,
17569,
272,
18,
18,
3704,
800,
3726,
3726,
31,
57,
104,
21,
2125,
1918,
16,
272,
18,
18,
15,
25,
32,
938,
20,
17569,
21,
1354,
37,
53,
1034,
77,
226,
1034,
9,
86,
26,
4851,
31,
110,
17569,
14,
9978,
1072,
9931,
19,
51,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Microsoft Unit Testing failure, unable to load DLL to test
===
I've got a .NET 3.5 class lib that I am trying to write some automated tests for but I'm getting the following error when running any tests in the solution:
> Test method Common.Tests.CommonTests.TestMethod1 threw exception: System.IO.FileNotFoundException: Could not load file or assembly 'Library.Common, Version=0.0.1.22004, Culture=en-AU, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.WRN: Assembly binding logging is turned OFF.
> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
> Note: There is some performance penalty associated with assembly bind failure logging.
> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
I'm fairly new to unit testing so I'm stumped.
I've compaired the references between the lib and the tests project and the only difference is that the tests project references the MS unit test DLL. | 0 | [
2,
7099,
1237,
4431,
2990,
15,
2343,
20,
6305,
13,
43,
211,
20,
1289,
800,
3726,
3726,
31,
22,
195,
330,
21,
13,
9,
2328,
203,
9,
264,
718,
13,
8326,
30,
31,
589,
749,
20,
2757,
109,
14904,
4894,
26,
47,
31,
22,
79,
1017,
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... |
Can you Instantiate an Object Instance from JSON in .NET?
===
Since Object Initializers are very similar to JSON, and now there are Anonymous Types in .NET. It would be cool to be able to take a string, such as JSON, and create an Anonymous Object that represents the JSON string.
Use Object Initializers to create an Anonymous Type:
var person = new {
FirstName = "Chris",
LastName = "Johnson"
};
It would be awesome if you could pass in a string representation of the Object Initializer code (preferably something like JSON) to create an instance of an Anonymous Type with that data.
I don't know if it's possible, since C# isn't dynamic, and the compiler actually converts the Object Initializer an[d Anonymous Type into strongly typed code that can run. This is explained in][1] this article.
Maybe functionality to take JSON and create a key/value Dictionary with it would work best.
I know you can serialize/deserializer an object to JSON in .NET, but what I'm look for is a way to create an object that is essentially loosely typed, similarly to how JavaScript works.
Does anyone know the best solution for doing this in .NET?
[1]: http://www.developer.com/net/csharp/article.php/3589916 | 0 | [
2,
92,
42,
6322,
15882,
40,
3095,
4851,
37,
487,
528,
19,
13,
9,
2328,
60,
800,
3726,
3726,
179,
3095,
2104,
11907,
18,
50,
253,
835,
20,
487,
528,
15,
17,
130,
80,
50,
10364,
2551,
19,
13,
9,
2328,
9,
32,
83,
44,
2700,
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... |
.NET's equivilant of Java's MemoryImageSource
===
I found a wonderful open source Java program that I'm translating into C#. The built-in translator in Visual Studio got me started and I've now spent about a month translating the rest manually line by line. I've completed over 15,000 lines of translation and the only thing that remains is trying to figure out how to convert their MemoryImageSource stuff into C#/.NET.
What's the .NET equivilant way of implementing this stuff? Is there a native .NET library already? | 0 | [
2,
13,
9,
2328,
22,
18,
13,
9629,
1755,
10005,
16,
8247,
22,
18,
1912,
22039,
12097,
800,
3726,
3726,
31,
216,
21,
5934,
368,
1267,
8247,
625,
30,
31,
22,
79,
25237,
77,
272,
5910,
9,
14,
392,
8,
108,
10889,
19,
3458,
1120,
33... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 gc.refLogExpire
===
How do I set gc.reflogExpire so that items will never expire?
What other time interval formats does it accept?
The man page says that you can set it to "90 days or 3 months," but doesn't specify what format it expects. | 0 | [
2,
2697,
13,
10362,
9,
14057,
5567,
6899,
7735,
800,
3726,
3726,
184,
107,
31,
309,
13,
10362,
9,
14057,
5567,
6899,
7735,
86,
30,
3755,
129,
243,
25910,
60,
98,
89,
85,
14422,
13767,
630,
32,
3440,
60,
14,
169,
2478,
898,
30,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best practice: How to track outbound links?
===
How do you track outbound links for your web sites, since the request is logged on the destination server, not yours? What method works best for an HTML site, a PHP or ASP.NET site, a template site, or a framework-based site? | 0 | [
2,
246,
1345,
45,
184,
20,
792,
70,
7410,
6271,
60,
800,
3726,
3726,
184,
107,
42,
792,
70,
7410,
6271,
26,
154,
2741,
3259,
15,
179,
14,
3772,
25,
13,
19287,
27,
14,
6970,
8128,
15,
52,
154,
18,
60,
98,
2109,
693,
246,
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... |
Is there an idiom for letting an element scroll with the page only until it hits the top of the browser?
===
Basically I am looking to accomplish something similar to the affect that [yelp][1] uses to have the map follow you down the page on their search results page but I'd rather have it be instantaneous rather than have it catch up a few seconds after you scroll. I also don't want to just set the position to "fixed" because I want it to scroll until it would scroll off the page, and only then become "fixed" (and likewise, if the user later scrolls back up, I want the map to become "unstuck" and scroll back down the page).
I imagine that this could be accomplished with some convoluted javascript (using "watch", etc) that detects when the map is near the top of the page and changes the CSS values appropriately, but I was hoping for a combination of relative/absolute/fixed positioned divs that obviated the need for Javascript at all.
And of course what I'd *really* like is a drop-in library (or jQuery plugin, etc) that does just what I am looking for, if such a thing exists. If no off-the-shelf scripts exist to do this, I'd love to hear from people with first hand experience doing or trying to do the same thing.
[1]: http://www.yelp.com/ | 0 | [
2,
25,
80,
40,
28380,
26,
4252,
40,
4520,
12159,
29,
14,
2478,
104,
163,
32,
3858,
14,
371,
16,
14,
16495,
60,
800,
3726,
3726,
11374,
31,
589,
699,
20,
14570,
301,
835,
20,
14,
6245,
30,
636,
3616,
5478,
500,
2558,
165,
500,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What should the HTTP response be when the resource is forbidden but there's an alternate resource?
===
If I have a resource that a requesting client doesn't have access to but I want to notify them about an alternate resource for which they _do_ have access, should I send them a **`403 Forbidden`** with the alternate resource's URI in the header or content? Or should I just send a **`303 See Other`** redirect to the resource to which they have access? | 0 | [
2,
98,
378,
14,
7775,
1627,
44,
76,
14,
6577,
25,
11369,
47,
80,
22,
18,
40,
4912,
6577,
60,
800,
3726,
3726,
100,
31,
57,
21,
6577,
30,
21,
20033,
6819,
1437,
22,
38,
57,
1381,
20,
47,
31,
259,
20,
52,
8612,
105,
88,
40,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Code review for VS
===
looking for a good code review tool that plugs in nicely to Visual Studio. Would be nice if it could diff from different source control providers, like Source Safe, The Vault, and/or Subversion. | 0 | [
2,
1797,
1487,
26,
4611,
800,
3726,
3726,
699,
26,
21,
254,
1797,
1487,
5607,
30,
10922,
18,
19,
24050,
20,
3458,
1120,
9,
83,
44,
2210,
100,
32,
110,
20811,
37,
421,
1267,
569,
13488,
15,
101,
1267,
1834,
15,
14,
8654,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Loading a video from the local file system...
===
I have a swf that is run from C:/ in the browser instead of a server (long story) and that swf loads a video that it located at ../../videos/video in relation to that swf.
Problem is, When I run it in Flex, everything is cool. Running locally, it can't find the file (not a security error) and is throwing a connectionError.
Any ideas? | 0 | [
2,
12797,
21,
763,
37,
14,
375,
3893,
329,
9,
9,
9,
800,
3726,
3726,
31,
57,
21,
13,
18,
15263,
30,
25,
485,
37,
272,
45,
118,
19,
14,
16495,
700,
16,
21,
8128,
13,
5,
2701,
609,
6,
17,
30,
13,
18,
15263,
19069,
21,
763,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to detect possible / potential stack overflow problems in a c / c++ program?
===
Is there a standard way to see how much stack space your app has and what the highest watermark for stack usage is during a run?
Also in the dreaded case of actual overflow what happens?
Does it crash, trigger an exception or signal? Is there a standard or is it different on all systems and compilers?
I'm looking specifically for Windows, Linux and Macintosh. | 0 | [
2,
184,
20,
9092,
938,
13,
118,
2222,
7566,
20285,
1716,
19,
21,
272,
13,
118,
272,
20512,
625,
60,
800,
3726,
3726,
25,
80,
21,
1236,
161,
20,
196,
184,
212,
7566,
726,
154,
4865,
63,
17,
98,
14,
1554,
308,
4527,
26,
7566,
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... |
How can you use optional parameters in C#?
===
We're building a web API that's programmatically generated from a C# class (the class has method "GetFooBar(int a, int b)" and the API has a method GetFooBar taking query params like &a=foo&b=bar.
The classes needs to support optional parameters, which isn't supported in C# the language. What's the best approach? | 0 | [
2,
184,
92,
42,
275,
12832,
12905,
19,
272,
5910,
60,
800,
3726,
3726,
95,
22,
99,
353,
21,
2741,
21,
2159,
30,
22,
18,
625,
6732,
1326,
6756,
37,
21,
272,
5910,
718,
13,
5,
124,
718,
63,
2109,
13,
7,
3060,
4120,
111,
1850,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 get the terminal within GVim to react to mouse scrolls?
===
I'm on a Hardy Heron Ubuntu build, BTW. | 0 | [
2,
184,
107,
31,
164,
14,
3855,
363,
13,
23896,
1660,
20,
7749,
20,
7567,
12159,
18,
60,
800,
3726,
3726,
31,
22,
79,
27,
21,
9764,
36,
218,
287,
12968,
2473,
1895,
15,
334,
38,
499,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What is the purpose of Installer class in Visual studio 2005
===
I have come to see an Installer class item in Visual studio. Why they have maintain an seperate item for Installer. Do they create any custom installers ? | 0 | [
2,
98,
25,
14,
2131,
16,
16146,
106,
718,
19,
3458,
1120,
812,
800,
3726,
3726,
31,
57,
340,
20,
196,
40,
16146,
106,
718,
9101,
19,
3458,
1120,
9,
483,
59,
57,
4027,
40,
10332,
106,
1373,
9101,
26,
16146,
106,
9,
107,
59,
160... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Postgres JDBC connection in Eclipse Help
===
I'm trying to get a postgres jdbc connection working in eclipse. It would be nice to use the Data Source Explorer, but for now I'm just trying to get a basic connection. What I have done so far is download the postgres JDBC connector. I then tried two different things. First, Preferences-> Data Management, I tried to add the postgres connector. Second, I added the jar to my project and tried to load the driver using Class.forName("org.postgresql.Driver"); but neither worked. Does anyone have any ideas?
Thanks,
Charlie | 0 | [
2,
678,
6879,
18,
487,
43,
7229,
2760,
19,
11652,
448,
800,
3726,
3726,
31,
22,
79,
749,
20,
164,
21,
678,
6879,
18,
487,
43,
7229,
2760,
638,
19,
11652,
9,
32,
83,
44,
2210,
20,
275,
14,
1054,
1267,
8520,
15,
47,
26,
130,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lost use of forward slash
===
I can no longer use / at the windows xp command prompt, and it seems to have started after a botched cygwin installation, e.g. cd /windows won't work, but used to.
Can anyone think of how this might have happened? | 0 | [
2,
529,
275,
16,
917,
14098,
800,
3726,
3726,
31,
92,
90,
1045,
275,
13,
118,
35,
14,
1936,
23045,
1202,
11443,
4417,
15,
17,
32,
2206,
20,
57,
373,
75,
21,
11012,
6261,
6728,
263,
4181,
7758,
15,
13,
62,
9,
263,
9,
1745,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you make GridView load images with a DataSet in ASP.NET 2.0?
===
I have a pictures table that has the following columns:
PICTURE_ID int IDENTITY(1000,1) NOT NULL,
CATEGORY_ID int NOT NULL,
IMGDATA image NOT NULL,
CAPTION1 text COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
MIME_TYPE nchar(20) NOT NULL DEFAULT ('image/jpeg'),
IMGTHDATA image NOT NULL
In my code-behind I have this:
string tableName = "CATPICS";
SqlConnection dbConnection = new SqlConnection(connStr);
SqlDataAdapter daCatPics = new SqlDataAdapter("SELECT TOP(3) * FROM CATEGORY_PICTURES", dbConnection);
DataSet dsPics = new DataSet();
daCatPics.Fill(dsPics, tableName);
gvCatPics.DataSource = dsPics;
gvCatPics.DataMember = tableName;
gvCatPics.DataBind();
On the markup I pretty much have:
<asp:GridView ID="gvCatPics" runat="server"></asp:GridView>
However when the code executes, it simply ignores the two image columns (IMGDATA and IMGTHDATA). For some reason it doesn't recognize that they are image columns. Does anyone know of the simplest way of having it render the image?
| 0 | [
2,
184,
107,
42,
233,
7354,
4725,
6305,
3502,
29,
21,
1054,
3554,
19,
28,
306,
9,
2328,
172,
9,
387,
60,
800,
3726,
3726,
31,
57,
21,
3104,
859,
30,
63,
14,
249,
7498,
45,
2151,
1,
1340,
19,
38,
3270,
5,
19484,
15,
165,
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... |
Can I parameterize a CruiseControl.NET project configuration such that the parameters are exposed by the web interface?
===
I am currently trying to use NAnt and CruiseControl.NET to manage various aspects of my software development. Currently, NAnt handles just about everything, including replacing environment specific settings *(e.g., database connection strings)* based on an input target that I specify on the command line.
CruiseControl.NET is used to build the application for the default environment *(dev)* anytime new code is committed. I also want CruiseControl.NET to invoke a build for my additional environments test and stage, but I do not want these to be automatically invoked every time that a dev build invoked (daily) as test and stage deployments happen far less frequently. Test and stage deployments only occur when the application is ready for QA.
I can easily do this by specifying multiple projects, one for each environment. However, I already have many projects configured, one for each milestone in within my application. If I have to setup 3 projects for each milestone the CruiseControl.NET configuration can get out of hand quickly.
**Here is my question:**
Can I parameterize a CruiseControl.NET project configuration such that the parameters are exposed by the web interface?
*Preferably (I think), I could have checkboxes for each environment (e.g., dev, test, stage) exposed in the web interface. A build would be made for each environment that is checked, whether the build was forced or automatic. It would be even better if I could default the checked state.* | 0 | [
2,
92,
31,
18906,
2952,
21,
6581,
12898,
9,
2328,
669,
8091,
145,
30,
14,
12905,
50,
5043,
34,
14,
2741,
6573,
60,
800,
3726,
3726,
31,
589,
871,
749,
20,
275,
13,
11028,
17,
6581,
12898,
9,
2328,
20,
4705,
617,
4842,
16,
51,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how to SOAP with PHP to a SAP Erecruitment database
===
Our team is working on SAP and getting a website frontend written with PHP and MySQL to connect with the recruitment database on SAP ...
we've tried making SOAP clients and everything but it seems we're missing something.. what are the steps to ensure that they can synchronize with or without a wsdl.. | 0 | [
2,
184,
20,
6447,
29,
13,
26120,
20,
21,
7508,
13,
6345,
13057,
242,
1130,
6018,
800,
3726,
3726,
318,
173,
25,
638,
27,
7508,
17,
1017,
21,
2271,
431,
2451,
642,
29,
13,
26120,
17,
51,
18,
22402,
20,
6379,
29,
14,
18335,
6018,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best practices for assembly naming and versioning?
===
I am looking out for some good practices on naming assemblies and versioning them. How often do you increment the major or minor versions?
In some cases, I have seen releases going straight from version 1.0 to 3.0. In other cases, it seems to be stuck at version 1.0.2.xxxx.
This will be for a shared assembly used in multiple projects across the company. Looking forward to some good inputs. | 0 | [
2,
246,
5242,
26,
1475,
10929,
17,
615,
68,
60,
800,
3726,
3726,
31,
589,
699,
70,
26,
109,
254,
5242,
27,
10929,
21066,
17,
615,
68,
105,
9,
184,
478,
107,
42,
13,
28461,
14,
394,
54,
1689,
3281,
60,
19,
109,
1871,
15,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best language for a beginner to write a blog engine in?
===
Preface: I'm not interested in starting a language war, just want a little feedback on which route I should take.
I have wanted to write a blog engine that I can constantly tweak and adjust for many years now. Something that can do all the major functions needed and once the framework is set up be able to add some of the nicer finer features. I would definitely be considered a beginning programmer, however I don't want that to influence this. I do have experience with small websites in PHP as well as ASP.NET/C#. (Nothing on the scale of what I would like to do). I'm looking to start something as a project that would not only help me to learn programming, but would help in accomplishing the goal of a blog engine.
My question is which language (and really total package) do you recommend? Which language would provide the best all around utility with things like an IDE, a framework (if you even recommend one, and if so which), a foundation to build on, and is easily doable with a tight budget (college student). Any feedback is really appreciated.
Thanks!
| 0 | [
2,
98,
25,
14,
246,
816,
26,
21,
26931,
20,
2757,
21,
8146,
1406,
19,
60,
800,
3726,
3726,
20910,
45,
31,
22,
79,
52,
3158,
19,
1422,
21,
816,
176,
15,
114,
259,
21,
265,
13111,
27,
56,
858,
31,
378,
247,
9,
31,
57,
417,
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... |
Hiding columns in gridview.
===
Is there a way I can control columns from in code. I had a drop drop box with select : Daily and weekend and the gridview column with Monday, Tuesday, Wednesday, Thursday, Friday, Saturday,sunday.
If the user selects Daily i want to show columns only from Monday to Friday.
It is possible to control from the code. Oh i am using this griview in my webpage and coding in done using C#.
Please suggest... | 0 | [
2,
5314,
7498,
19,
7354,
4725,
9,
800,
3726,
3726,
25,
80,
21,
161,
31,
92,
569,
7498,
37,
19,
1797,
9,
31,
41,
21,
2804,
2804,
1649,
29,
5407,
13,
45,
1954,
17,
4010,
17,
14,
7354,
4725,
4698,
29,
5745,
15,
9369,
15,
8885,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
random access file in java
===
Inventory control (16 byte record)
Product ID code (int – 4 bytes)
Quantity in stock (int – 4 bytes)
Price (double – 8 bytes)
How to create fixed length random access file using the above lengths? I tried some examples online, i either get EOF exception or random address values when I try to access them...
Again I did try some examples and couldn't understand the concept very well... I'm trying a project with it and try to explore more on it...
Example data
There might be holes in the data where No. in stock could be 23 == 023
Quantity
ID. No. In Stock Price
------- -------- ------
1001 476 $28.35
1002 240 $32.56
1003 517 $51.27
1004 284 $23.75
1005 165 $32.25
THanks for the help | 0 | [
2,
5477,
1381,
3893,
19,
8247,
800,
3726,
3726,
13875,
569,
13,
5,
1091,
34,
591,
571,
6,
2374,
4924,
1797,
13,
5,
6391,
13,
10,
268,
34,
3231,
6,
12881,
19,
2070,
13,
5,
6391,
13,
10,
268,
34,
3231,
6,
2162,
13,
5,
14368,
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... |
Silverlight ImageButton UserControl
===
I am just starting out with Silverlight (2 RC0) and can’t seem to get the following to work. I want to create a simple image button user control.
My xaml for the user control is as follows:
<Button>
<Button.Template>
<ControlTemplate>
<Image Source="{TemplateBinding Source}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" />
</ControlTemplate>
</Button.Template>
</Button>
The code behind is as follows:
public partial class ImageButtonUserControl : UserControl
{
public ImageButtonUserControl()
{
InitializeComponent();
}
public Image Source
{
get { return base.GetValue(SourceProperty) as Image; }
set { base.SetValue(SourceProperty, value); }
}
public static readonly DependencyProperty SourceProperty =
DependencyProperty.Register("Source", typeof(Image), typeof(ImageButtonUserControl),null);
}
I want to be able to dynamically create the ImageButtons and stuff them in a container like a WrapPanel:
Assume we have an image named “image” already:
ImageButtonUserControl imageButton = new ImageButtonUserControl();
imageButton.Source = image;
this.thumbnailStackPanel.Children.Add(imageButton);
What do I need to do to get the image to display? I'm assuming I need to do something with DataContext, but I'm not quite sure what or where.
Thanks for any help | 0 | [
2,
1172,
3130,
1961,
811,
444,
4155,
12898,
800,
3726,
3726,
31,
589,
114,
1422,
70,
29,
1172,
3130,
13,
5,
135,
16462,
387,
6,
17,
92,
1,
38,
2260,
20,
164,
14,
249,
20,
170,
9,
31,
259,
20,
1600,
21,
1935,
1961,
5167,
4155,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best way to deal with environment specific configuration in java?
===
I have an application running in tomcat that has a bunch of configuration files that are different for each environment it runs in (dev, testing, and production). But not every line in a config file will be different between environments so there's invariably duplicated information that doesn't get updated if something changes.
Is there a good framework/library that collapses the separate files into one with environment specific blocks? Or some other way of dealing with this? | 0 | [
2,
98,
25,
14,
246,
161,
20,
1183,
29,
2307,
1903,
8091,
19,
8247,
60,
800,
3726,
3726,
31,
57,
40,
3010,
946,
19,
2067,
5782,
30,
63,
21,
7653,
16,
8091,
6488,
30,
50,
421,
26,
206,
2307,
32,
1461,
19,
13,
5,
14438,
15,
443... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JavaScript library to create div-style window within page
===
Im trying to find out a good JavaScript library that can create a nice "inner-window" popup within a page on my site.
I would like to not have to worry about screen positioning (i.e. dont have to calcuate if the size of the window will be off screen, etc...), but just make a new pop-up that has content in it.
I'll be using .NET 3.5 ASP.NET (maybe MVC, havent started yet), I know JQuery has great support, but from what I have seen, it doesnt have this type of widget feature.
Please note, I do not want to use "frames" in any way, shape, or form! But rather the floating div style approach (or similar).
Thanks heaps!
Mark | 0 | [
2,
8247,
8741,
1248,
20,
1600,
13,
12916,
8,
4381,
1463,
363,
2478,
800,
3726,
3726,
797,
749,
20,
477,
70,
21,
254,
8247,
8741,
1248,
30,
92,
1600,
21,
2210,
13,
7,
18005,
8,
27508,
7,
1675,
576,
363,
21,
2478,
27,
51,
689,
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... |
Setting Background Color CMDIFrameWnd
===
Is there a way to change the color of the background for a MDIParent windows in MFC (2005)?
I have tried intercepting ON_WM_CTLCOLOR AND ON_WM_ERASEBKGND but neither work. OnEraseBkgnd does work, but then it gets overwritten by the standard WM_CTL color.
Cheers | 0 | [
2,
2697,
2395,
1665,
2390,
1115,
8361,
6156,
43,
800,
3726,
3726,
25,
80,
21,
161,
20,
753,
14,
1665,
16,
14,
2395,
26,
21,
8138,
49,
18908,
1936,
19,
307,
7061,
13,
5,
2835,
6,
60,
31,
57,
794,
18324,
68,
27,
1,
499,
79,
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 ensure a DOM element triggers mouseover when it contains a Flash object
===
I have a div that contains several child elements, one of which is a flash movie.
When rolling over this div, I want it to change style to indicate it is rolled over. My problem is that the mouseover and mouseout javascript events don't always trigger, especially if the user moves the mouse over the flash element too quickly.
Any suggestions for how I can ensure that a mouseover event always get triggered.
I can't add an event to the flash movie itself because it is proprietary code that I don't have the source for.
Also I can't cover the flash movie in a div/image because I need rollover and click events to occur within the flash itself. | 0 | [
2,
184,
20,
4062,
21,
11859,
4520,
7286,
18,
7567,
2549,
76,
32,
1588,
21,
4433,
3095,
800,
3726,
3726,
31,
57,
21,
13,
12916,
30,
1588,
238,
850,
2065,
15,
53,
16,
56,
25,
21,
4433,
1308,
9,
76,
3929,
84,
48,
13,
12916,
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... |
Where can I get a Postgrsql virtual appliance?
===
I need a virgin postgresql virtual appliance. I would prefer it on linux. | 0 | [
2,
113,
92,
31,
164,
21,
678,
8807,
18,
22402,
6599,
18964,
60,
800,
3726,
3726,
31,
376,
21,
4701,
678,
6879,
18,
22402,
6599,
18964,
9,
31,
83,
6369,
32,
27,
13024,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to tell NHibernate always to force quoted identifiers?
===
As the title: How would I tell NHibernate, once and for all, that all table and column names are to be quoted in the SQL it generates? | 0 | [
2,
184,
20,
494,
12109,
15191,
8820,
550,
20,
558,
9591,
25570,
18,
60,
800,
3726,
3726,
28,
14,
581,
45,
184,
83,
31,
494,
12109,
15191,
8820,
15,
382,
17,
26,
65,
15,
30,
65,
859,
17,
4698,
1817,
50,
20,
44,
9591,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
MySQL and comments
===
Is it possible to add comments somehow, somewhere?
I don't pretend to be any sort of expert when using MySQL and certainly don't spend all day in it. More often than I would like I forget how I intend to use a column (usally the bit ones) and would be very excited if I could add a comment to remind me if 1 is good or bad, for example.
I'd be happy if it only showed up in something like 'show create table', but any obscure place within the table structures would be better and easier to find than the current post-it notes on my desk. | 0 | [
2,
51,
18,
22402,
17,
7534,
800,
3726,
3726,
25,
32,
938,
20,
3547,
7534,
3625,
15,
3493,
60,
31,
221,
22,
38,
8019,
20,
44,
186,
2058,
16,
5390,
76,
568,
51,
18,
22402,
17,
3850,
221,
22,
38,
3256,
65,
208,
19,
32,
9,
91,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Becoming a ninja developer
===
My approach with designing a solution is to find the simplest way to achieve the result required. This usually means that I provide what is required and within the time frames requested. And fairly bug free. This is all good, and I have built a good reputation as a result.
The downside is this. I think I have limited my ability to tackle problems that are inherently more complex in nature and require a correspondingly more complex solution. This also means that I expose myself to less of the .NET Framework and to less sophisticated algorithms/data structures than others.
Any recommendations to help me tackle more complex scenarios with fitting solutions?
| 4 | [
2,
1535,
21,
14727,
10058,
800,
3726,
3726,
51,
2141,
29,
15026,
21,
4295,
25,
20,
477,
14,
24384,
161,
20,
4689,
14,
829,
1390,
9,
48,
951,
1108,
30,
31,
1181,
98,
25,
1390,
17,
363,
14,
85,
12809,
6602,
9,
17,
6647,
6256,
55... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are the better ways to protect commercial .NET software from being casually copied?
===
The main focus of the package is developer tools but there is also one component (a DLL) that some small number of developers would like to redistribute with their own application. This is managed code running under .NET 3.5. | 0 | [
2,
98,
50,
14,
574,
2847,
20,
2196,
1439,
13,
9,
2328,
2306,
37,
142,
14964,
18225,
60,
800,
3726,
3726,
14,
407,
1776,
16,
14,
6030,
25,
10058,
4672,
47,
80,
25,
67,
53,
5912,
13,
5,
58,
13,
43,
211,
6,
30,
109,
284,
234,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How would you explain pattern matching vs switch to someone.
===
I have been trying to explain the difference between switch statements and pattern matching(F#) to a couple of people but I haven't really been able to explain it well..most of the time they just look at me and say "so why don't you just use if..then..else".
How would you explain it to them? | 0 | [
2,
184,
83,
42,
3271,
3732,
10120,
4611,
5521,
20,
737,
9,
800,
3726,
3726,
31,
57,
74,
749,
20,
3271,
14,
2841,
128,
5521,
9015,
17,
3732,
10120,
5,
410,
5910,
6,
20,
21,
1335,
16,
148,
47,
31,
2933,
22,
38,
510,
74,
777,
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... |
How to determine whether SqlConnection is enlisted into a System.Transactions' tx or not?
===
When we using a transation from System.Transactions (creating TransationScope for an instance) by default all Sql-connections (System.Data.SqlClient.SqlConnection) (but is't also the true for Oracle.DataAccess.OracleConnection) are enlisted on opening.
That's called auto-enlistment. Nice feature. But it can be turned off throught a connection string's parameter (enlist=false). In that case connection being opened wouldn't be enlisted.
But it can be enlisted manually later.
So my question is: for some given SqlConnection's instance how can I determine whether that connection is enlisted or not (into an System.Transaction).
I can look at connection string for the parameter. But this won't do because as I said connection could be enlisted manually. | 0 | [
2,
184,
20,
3746,
1472,
4444,
255,
25996,
872,
25,
9625,
77,
21,
329,
9,
7028,
8645,
18,
22,
20225,
54,
52,
60,
800,
3726,
3726,
76,
95,
568,
21,
2982,
857,
37,
329,
9,
7028,
8645,
18,
13,
5,
6037,
1880,
2982,
857,
11555,
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... |
Update row status using ajax
===
I am currently trying to program my first ajax interface using Rails.
The application currently shows a table populated with list items. The user has to approve or reject each of the list items. I currently have an edit link at the end of each row that shows a form in which I can approve the list item.
I am thinking on using a checkbox instead of the edit link. When the user clicks the checkbox I want to update the database with the status, user name and date/time without leaving this page.
1. What steps should I follow?
2. Can I use a checkbox or am I
restricted to buttons?
3. What xxx_remote helper should I use?
4. How can I update the checkbox state with the results of the ajax call?
| 0 | [
2,
11100,
3131,
1782,
568,
20624,
800,
3726,
3726,
31,
589,
871,
749,
20,
625,
51,
64,
20624,
6573,
568,
2240,
18,
9,
14,
3010,
871,
1285,
21,
859,
11111,
29,
968,
3755,
9,
14,
4155,
63,
20,
14741,
54,
12170,
206,
16,
14,
968,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 join on the same table, twice, in mysql?
===
I have 2 tables. One (domains) has domain ids, and domain names (dom_id, dom_url).
the other contains actual data, 2 of which columns require a TO and FROM domain names. So I have 2 columns rev_dom_from and rev_dom_for, both of which store the domain name id, from the domains table.
Simple.
Now I need to actually display both domain names on the webpage. I know how to display one or the other, via the LEFT JOIN domains ON reviews.rev_dom_for = domains.dom_url query, and then you echo out the dom_url, which would echo out the domain name in the rev_dom_for column.
But how would I make it echo out the 2nd domain name, in the dom_rev_from column?
| 0 | [
2,
184,
107,
42,
1865,
27,
14,
205,
859,
15,
2088,
15,
19,
51,
18,
22402,
60,
800,
3726,
3726,
31,
57,
172,
7484,
9,
53,
13,
5,
537,
6232,
18,
6,
63,
4603,
13,
9178,
15,
17,
4603,
1817,
13,
5,
5555,
1,
1340,
15,
11859,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the equivalent of Thread.SetApartmentState in C++?
===
In C# there is a method SetApartmentState in the class Thread.
How do I do the same thing in C++? | 0 | [
2,
98,
25,
14,
4602,
16,
9322,
9,
18,
5735,
3091,
1130,
3859,
19,
272,
20512,
60,
800,
3726,
3726,
19,
272,
5910,
80,
25,
21,
2109,
309,
58,
3091,
1130,
3859,
19,
14,
718,
9322,
9,
184,
107,
31,
107,
14,
205,
584,
19,
272,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Getting full path for Windows Service
===
How can I find out the folder where the windows service .exe file is installed dynamically?
Path.GetFullPath(relativePath);
returns a path based on `C:\WINDOWS\system32` directory.
However, the `XmlDocument.Load(string filename)` method appears to be working against relative path inside the directory where the service .exe file is installed to. | 0 | [
2,
1017,
503,
2013,
26,
1936,
365,
800,
3726,
3726,
184,
92,
31,
477,
70,
14,
19294,
113,
14,
1936,
365,
13,
9,
1706,
62,
3893,
25,
4066,
7782,
1326,
60,
2013,
9,
3060,
13727,
8353,
5,
7256,
3366,
8353,
6,
73,
4815,
21,
2013,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
F# - Domain Specific Language
===
Is the F# is the future of programming languages? Is it right time to learn F# ? Any other languages in the market which is equivalent to F#? | 0 | [
2,
398,
5910,
13,
8,
4603,
1903,
816,
800,
3726,
3726,
25,
14,
398,
5910,
25,
14,
1022,
16,
3143,
2556,
60,
25,
32,
193,
85,
20,
2484,
398,
5910,
13,
60,
186,
89,
2556,
19,
14,
1135,
56,
25,
4602,
20,
398,
5910,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do you use gcc to generate assembly code in Intel syntax?
===
The gcc -S option will generate assembly code in AT&T syntax, is there a way to generate files in Intel syntax? Or is there a way to convert between the two? | 0 | [
2,
184,
107,
42,
275,
489,
3384,
20,
7920,
1475,
1797,
19,
14635,
22649,
60,
800,
3726,
3726,
14,
489,
3384,
13,
8,
18,
4255,
129,
7920,
1475,
1797,
19,
35,
1569,
38,
22649,
15,
25,
80,
21,
161,
20,
7920,
6488,
19,
14635,
22649,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
COM: calling from other thread causes crashes, how to make it run on the same thread?
===
I am doing a BHO (extension for IE) that receives events on other thread. When I access the DOM from that other thread, IE crashes. Is it possible to make the DOM accessed from the same thread as the main BHO thread so that it does not crash?
It seems like a general COM multithreading problem, which I don't understand much. | 0 | [
2,
13,
960,
45,
2555,
37,
89,
9322,
4047,
21563,
15,
184,
20,
233,
32,
485,
27,
14,
205,
9322,
60,
800,
3726,
3726,
31,
589,
845,
21,
334,
1807,
13,
5,
1706,
25573,
26,
13,
660,
6,
30,
8359,
963,
27,
89,
9322,
9,
76,
31,
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... |
Is unit testing appropriate for short programs
===
I'm not a newbie since I've been programming on and off since 1983, but I only have real experience with scripting languages like Applescript, ARexx, HyperTalk and Bash.
I write scripts to automate data entry, batch process images and convert file formats. I dabble at Processing, Ruby and Python. <br> <br>Most of the programs I write are under 200 lines with at most 10 functions. I wish to write larger, more capable programs in the future. I want to improve my practices to avoid creating fragile, unmaintainable messes.
*At the scale that I'm working now* and *writing procedural (not OO) code*, **is it appropriate to write unit tests**, which I understand are:
> short programs to test individual
> functions before combining them into a
> fully functioning larger program.
Are **unit tests** worthwhile when making programs at this scale? | 0 | [
2,
25,
1237,
4431,
4593,
26,
502,
1726,
800,
3726,
3726,
31,
22,
79,
52,
21,
78,
5893,
179,
31,
22,
195,
74,
3143,
27,
17,
168,
179,
2082,
15,
47,
31,
104,
57,
683,
1496,
29,
3884,
68,
2556,
101,
4037,
8741,
15,
50,
8962,
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 to add different controls in Gridview?
===
I know it's possible to change some columns in GridView controls to check boxes and when you are editing certain rows, the cells being hi-lited become text boxes, but supposed I want to add other controls in my gridView. For example: in the image below how would I change the entries of CategoryName to be a dropDown box of possible choices?
![alt text][1]
[1]: http://www.codersource.net/images/Gridview_depth_Image2.jpg | 0 | [
2,
184,
20,
3547,
421,
8671,
19,
7354,
4725,
60,
800,
3726,
3726,
31,
143,
32,
22,
18,
938,
20,
753,
109,
7498,
19,
7354,
4725,
8671,
20,
2631,
8120,
17,
76,
42,
50,
9510,
1200,
11295,
15,
14,
2934,
142,
4148,
8,
10601,
43,
53... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How much compatibility do the DB engines have at the SQL level?
===
Let's say I wanted to have an application that could easily switch the DB at the back-end.
I'm mostly thinking of SQL Server as the primary back-end, but with the flexibility to go another DB engine. Firebird and PostGreSQL seem to have (from my brief wikipedia excursion) the most in common w/ SQL Server (plus they are free).
How similar would the DB setup, access, queries, etc.. be for Firebird, PostGreSQL and MS SQL Server?
| 0 | [
2,
184,
212,
13,
21618,
107,
14,
13,
9007,
4016,
57,
35,
14,
4444,
255,
662,
60,
800,
3726,
3726,
408,
22,
18,
395,
31,
417,
20,
57,
40,
3010,
30,
110,
2351,
5521,
14,
13,
9007,
35,
14,
97,
8,
2451,
9,
31,
22,
79,
1555,
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... |
With scons, how do you link to prebuilt libraries?
===
I recently started using scons to build several small cross-platform projects. One of these projects needs to link against pre-built static libraries... how is this done?
In make, I'd just append "link /LIBPATH:wherever libstxxl.lib" on windows, and "stxxl.a" on unix. | 0 | [
2,
29,
13,
18,
12124,
15,
184,
107,
42,
3508,
20,
782,
8607,
8649,
60,
800,
3726,
3726,
31,
1989,
373,
568,
13,
18,
12124,
20,
1895,
238,
284,
919,
8,
27035,
2314,
9,
53,
16,
158,
2314,
2274,
20,
3508,
149,
782,
8,
8607,
12038... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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; get last answer
===
In many symbolic math systems, such as Matlab or Mathematica, you can use a variable like `Ans` or `%` to retrieve the last computed value. Is there a similar facility in the Python shell? | 0 | [
2,
20059,
73,
164,
236,
1623,
800,
3726,
3726,
19,
151,
12882,
5057,
1242,
15,
145,
28,
4277,
9086,
54,
5057,
5996,
12630,
15,
42,
92,
275,
21,
7612,
101,
13,
1,
5950,
1,
54,
13,
1,
11881,
1,
20,
11917,
14,
236,
26331,
1923,
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,
0,
0,
0,
0,
0,
0,
0... |
What C++ meta-templates do you use in production code?
===
In my experience Meta-templates are really fun (when your compilers are compliant), and can give good performance boosts, and luckily I'm surrounded by seasoned C++ programmers that also grok meta-templates, however occasionally a new developer arrives and can't make heads or tails of some of the meta-template tricks we use (mostly Andrei Alenxandrescu stuff), for a few weeks until he gets initiated appropriately.
So I was wondering what's the situation for other C++ programmers out there?
Should meta-template programming be something C++ programmers should be "required" to know (excluding entry level students of course), or not?
Edit: Note my question is related to production code and not little samples or prototypes | 0 | [
2,
98,
272,
20512,
7618,
8,
9577,
6554,
18,
107,
42,
275,
19,
637,
1797,
60,
800,
3726,
3726,
19,
51,
1496,
7618,
8,
9577,
6554,
18,
50,
510,
2414,
13,
5,
3185,
154,
21486,
18,
50,
13,
25509,
6,
15,
17,
92,
590,
254,
956,
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 is a good blog hosting service for programmers?
===
I took a look on wordpress and blogger, and both have terrible support to source code posting. The best one on that aspect is wordpress, which have a 'code' tag that apparently only changes the font, eliminating any identations in the code. I was wondering if there is another blog hosting service with better support to code posting. | 4 | [
2,
98,
25,
21,
254,
8146,
10637,
365,
26,
17968,
18,
60,
800,
3726,
3726,
31,
199,
21,
361,
27,
833,
5890,
17,
24350,
15,
17,
156,
57,
5803,
555,
20,
1267,
1797,
15669,
9,
14,
246,
53,
27,
30,
7289,
25,
833,
5890,
15,
56,
57... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a way I can capture my iPhone screen as a video?
===
I want to be able to capture my iPhone's screen as a video, but I'm not sure the best way to do this.
Can anyone help guide me on how to best do this? | 0 | [
2,
25,
80,
21,
161,
31,
92,
3683,
51,
21024,
2324,
28,
21,
763,
60,
800,
3726,
3726,
31,
259,
20,
44,
777,
20,
3683,
51,
21024,
22,
18,
2324,
28,
21,
763,
15,
47,
31,
22,
79,
52,
562,
14,
246,
161,
20,
107,
48,
9,
92,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... |
So, what is the current state of the art in data quality tools...?
===
Have a project coming up with significant data quality challenges and was curious what the state of art in data quality related tools is today. Any recommendations? | 0 | [
2,
86,
15,
98,
25,
14,
866,
146,
16,
14,
415,
19,
1054,
2190,
4672,
9,
9,
9,
60,
800,
3726,
3726,
57,
21,
669,
880,
71,
29,
1505,
1054,
2190,
7595,
17,
23,
7686,
98,
14,
146,
16,
415,
19,
1054,
2190,
1597,
4672,
25,
786,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Are there any libraries for generating flash swf files or converting svg to swf
===
I was wondering if anyone knows of any libraries for programatically creating flash swf files.
Or for creating swf from svg. | 0 | [
2,
50,
80,
186,
8649,
26,
13500,
4433,
13,
18,
15263,
6488,
54,
19583,
13,
18,
22955,
20,
13,
18,
15263,
800,
3726,
3726,
31,
23,
5712,
100,
1276,
3620,
16,
186,
8649,
26,
625,
721,
8438,
2936,
4433,
13,
18,
15263,
6488,
9,
54,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Inheritance trees and protected constructors in C#
===
Given the following inheritance tree, what would be the best way of implementing it in a way that works?
abstract class Foo
{
public abstract Bar CreateBar();
}
class Bar : Foo
{
protected Bar(Foo base)
{
// snip...
}
}
class Baz : Foo
{
public Bar CreateBar()
{
return new Bar(this);
}
}
This fails with: `'Bar.Bar()' is inaccessible due to its protection level`.
I don't want the constructor being public, only classes that inherit from `Foo` should be able to create `Bar`s. `Bar` is a specialised `Foo`, and any type of `Foo` should be able to create one. Public internal is an 'option' here, as the majority of the predefined extensions to `Foo` will be internal to the DLL, but I consider this a sloppy answer, since anyone who comes along later who wants to create their own type of `Foo` or `Baz` (which is likely to happen) will be stuck with a default `CreateBar()` implementation, which may or may not meet their needs.
Perhaps there is a way of refactoring this to make it work nicely? I'm banging my head on the wall trying to design this so it'll work though. | 0 | [
2,
13852,
1913,
17,
3803,
6960,
248,
18,
19,
272,
5910,
800,
3726,
3726,
504,
14,
249,
13852,
1541,
15,
98,
83,
44,
14,
246,
161,
16,
17333,
32,
19,
21,
161,
30,
693,
60,
8502,
718,
4310,
111,
13,
1,
317,
8502,
748,
1600,
1850... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Suggestions for a Web application for a group project.
===
I am doing 2nd year computer science and we have a software engineering group project. There are 5 people in the group and we would like to build a web application in php. Please suggest some ideas for me | 0 | [
2,
18389,
26,
21,
2741,
3010,
26,
21,
214,
669,
9,
800,
3726,
3726,
31,
589,
845,
172,
706,
159,
1428,
762,
17,
95,
57,
21,
2306,
1552,
214,
669,
9,
80,
50,
331,
148,
19,
14,
214,
17,
95,
83,
101,
20,
1895,
21,
2741,
3010,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... |
UTF usage in C++ code
===
What is the difference between UTF and UTC.
What are the best ways to represent not European character sets (using UTF) in C++ strings. I would like to know your recommendations for:
* Internal representation inside the code
* Best storage representation (<b>i.e.</b> In file)
* Best on wire transport format (Transfer between application that may be on different architectures and have a different standard locale)
| 0 | [
2,
287,
11720,
7514,
19,
272,
20512,
1797,
800,
3726,
3726,
98,
25,
14,
2841,
128,
287,
11720,
17,
13,
11440,
9,
98,
50,
14,
246,
2847,
20,
3501,
52,
733,
925,
3415,
13,
5,
12655,
287,
11720,
6,
19,
272,
20512,
7887,
9,
31,
83... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Java- Changing swing background colour?
===
Ok so ive got a bitchin swing app going using the "System" look and feel.
Now, I want to change the background colour of the main panels to black.
Too easy right?
UIManager.put("Panel.background", Color.BLACK);
Well yeah, except now the controls in the app look stupid, because their 'shadows', for want of a better word, are graduated to fade towards the old system default colour(gross windows grey). So there are light grey 'corners' on all the controls, especially the tabs on JTabbedPane.
I know it can be fixed, because if you change the windowsXP theme to one with a different default application colour, the controls take on this changed colour and their shadows 'fade' towards it.
...But i have no idea what UIManager key it is, or even if you can do it with UIManger.
I dont really want to change the L&F engine, because apart from this it looks good.
Help?
| 0 | [
2,
8247,
8,
4226,
5587,
2395,
4609,
60,
800,
3726,
3726,
5854,
86,
5568,
330,
21,
6643,
108,
5587,
4865,
228,
568,
14,
13,
7,
10724,
7,
361,
17,
583,
9,
130,
15,
31,
259,
20,
753,
14,
2395,
4609,
16,
14,
407,
9449,
20,
319,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 are Visual Studio breakpoints saved?
===
I seem to be getting breakpoints from other programmers when checking out code...
Where is the list of breakpoints saved by Visual Studio? In the vbproj file? vbproj.user file? documents and settings? are they meant to be specific to the solution, the project, the user, the computer they are set on?
Thanks!
| 0 | [
2,
113,
50,
3458,
1120,
1442,
3132,
18,
4377,
60,
800,
3726,
3726,
31,
2260,
20,
44,
1017,
1442,
3132,
18,
37,
89,
17968,
18,
76,
9886,
70,
1797,
9,
9,
9,
113,
25,
14,
968,
16,
1442,
3132,
18,
4377,
34,
3458,
1120,
60,
19,
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 load back a dynamically created settingsproperty next time
===
I created a way to dynamically add settingsproperty to a .net app.config file. It all works nic, but when I am launching my app the next time I can only see the properties that are created in the designer. How can I load back the properties runtime.
My code for creating the settingsproperty looks the following:
internal void CreateProperty<T>(string propertyName)
{
string providerName = "LocalFileSettingsProvider";
System.Configuration.SettingsAttributeDictionary attributes = new SettingsAttributeDictionary();
System.Configuration.UserScopedSettingAttribute attr = new UserScopedSettingAttribute();
attributes.Add(attr.TypeId, attr);
System.Configuration.SettingsProperty prop;
SettingsProvider provider = ApplicationEnvironment.GlobalSettings.Providers[providerName];
prop = new System.Configuration.SettingsProperty(
propertyName,
typeof(T),
provider,
false,
default(T),
System.Configuration.SettingsSerializeAs.String,
attributes,
false,
false
);
ApplicationEnvironment.GlobalSettings.Properties.Add(prop);
ApplicationEnvironment.GlobalSettings.Reload();
}
When the next run I ask for the settings property I could not find any of the proeprties created previosuly. No matter if I call the ApplicationEnvironment.GlobalSettings.Reload(); or not. | 0 | [
2,
184,
20,
6305,
97,
21,
7782,
1326,
679,
12410,
10890,
106,
1084,
328,
85,
800,
3726,
3726,
31,
679,
21,
161,
20,
7782,
1326,
3547,
12410,
10890,
106,
1084,
20,
21,
13,
9,
2328,
4865,
9,
14093,
2816,
3893,
9,
32,
65,
693,
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... |
Apache commons httpclient - disable debugging / lower debuglevel
===
i am using the apache commons httpclient in a lotus notes java agent and it works fine. BUT when establishing a proxy connection the log will be spamed with the following line :
[INFO] AuthChallengeProcessor - basic authentication scheme selected
Do you know how to disable the integrated loging or how to set a lower debug level ?
Its a "feature" from the httpclient itself, so code from my side is not needed :-)
Thanks. | 0 | [
2,
17140,
8322,
7775,
150,
18513,
38,
13,
8,
1460,
579,
121,
16254,
2762,
13,
118,
987,
121,
16254,
3906,
800,
3726,
3726,
31,
589,
568,
14,
17140,
8322,
7775,
150,
18513,
38,
19,
21,
15175,
2434,
8247,
2267,
17,
32,
693,
1123,
9,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Search Object in Gereric List
===
Is it possible to search for an object by one of it's property in a Generic List?
<code>
Public Class Customer
Private _id As Integer
Private _name As String
Public Property ID() As Integer
Get
Return _id
End Get
Set
_id = value
End Set
End Property
Public Property Name() As Integer
Get
Return _name
End Get
Set
_name = value
End Set
End Property
Public Sub New(id As Integer, name As String)
_id = id
_name = name
End Sub
</code>
Then loading and searching
<code>
Dim list as new list(Of Customer)
list.Add(New Customer(1,"A")
list.Add(New Customer(2,"B")
</code>
How can i return customer object with id =1? Does this have to do with the "Predicate" in Generics.
Note: I am doing this in VB.NET
Thanks
| 0 | [
2,
2122,
3095,
19,
5389,
14744,
968,
800,
3726,
3726,
25,
32,
938,
20,
2122,
26,
40,
3095,
34,
53,
16,
32,
22,
18,
1354,
19,
21,
12733,
968,
60,
13,
1,
9375,
1,
317,
718,
7705,
932,
13,
1,
1340,
28,
13820,
932,
13,
1,
7259,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Allow only Copy/Paste Context Menu in System.Windows.Forms.WebBrowser Control
===
The WebBrowser control has a property called "IsWebBrowserContextMenuEnabled" that disables all ability to right-click on a web page and see a context menu. This is very close to what I want (I don't want anyone to be able to right-click and print, hit back, hit properties, view source, etc).
The only problem is this also disables the context menu that appears in TextBoxes for copy/paste, etc.
To make this clearer, this is what I don't want:
<a href="http://www.flickr.com/photos/24262860@N00/2941073716/" title="badcontext by andersonimes, on Flickr"><img src="http://farm4.static.flickr.com/3047/2941073716_0c51ab4b3c_m.jpg" width="124" height="240" alt="badcontext" /></a>
This is what I do want:
<a href="http://www.flickr.com/photos/24262860@N00/2941073720/" title="goodcontext by andersonimes, on Flickr"><img src="http://farm4.static.flickr.com/3024/2941073720_8aedaf9b06_o.png" width="104" height="144" alt="goodcontext" /></a>
I would like to disable the main context menu, but allow the one that appears in TextBoxes. Anyone know how I would do that? The WebBrowser.Document.ContextMenuShowing event looks promising, but doesn't seem to properly identify the element the user is right-clicking on, either through the HtmlElementEventArgs parameter's "FromElement" and "ToElement" properties, nor is the sender anything but the HtmlDocument element.
Thanks in advance!
| 0 | [
2,
1655,
104,
4344,
118,
19802,
62,
4141,
11379,
19,
329,
9,
27508,
18,
9,
4190,
18,
9,
14113,
25699,
4104,
569,
800,
3726,
3726,
14,
10192,
5417,
4104,
569,
63,
21,
1354,
227,
13,
7,
403,
14113,
25699,
4104,
1126,
11969,
755,
193... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Am I Running as a Service
===
I am currently writing a little bootstrap code for a service that can be run in the console. It essentially boils down to calling the OnStart() method instead of using the ServiceBase to start and stop the service (because it doesn't run the application if it isn't installed as a service and makes debugging a nightmare).
Right now I am using Debugger.IsAttached to determine if I should use ServiceBase.Run or [service].OnStart, but I know that isn't the best idea because some times end users want to run the service in a console (to see the output etc. realtime).
Any ideas on how I could determine if the Windows service controller started 'me', or if the user started 'me' in the console? Apparantly [Environment.IsUserInteractive][1] is not the answer. I thought about using commandline args, but that seems 'dirty'.
I could always see about a try-catch statement around ServiceBase.Run, but that seems dirty. Edit: Try catch doesn't work.
[1]: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/99c4594b-e6c9-424f-bfe1-c7261bba24d3/ "forum thread" | 0 | [
2,
589,
31,
946,
28,
21,
365,
800,
3726,
3726,
31,
589,
871,
1174,
21,
265,
5894,
16514,
1797,
26,
21,
365,
30,
92,
44,
485,
19,
14,
8650,
9,
32,
7398,
22941,
18,
125,
20,
2555,
14,
27,
13680,
5,
6,
2109,
700,
16,
568,
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... |
The best way to create a new table in Sqlite using Ruby on Rails 2
===
So what's the best way to create new tables in a Sqlite database in Rails 2. I have created the database using rake db:migrate command. So should I write individual sql scripts to create a database or use rake somehow. I don't scaffolding. | 0 | [
2,
14,
246,
161,
20,
1600,
21,
78,
859,
19,
4444,
10601,
568,
10811,
27,
2240,
18,
172,
800,
3726,
3726,
86,
98,
22,
18,
14,
246,
161,
20,
1600,
78,
7484,
19,
21,
4444,
10601,
6018,
19,
2240,
18,
172,
9,
31,
57,
679,
14,
601... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Job Status in SQL 2005
===
I have a Stored procedure which schedules a job. This Job takes a lot of time to get completed (approx 30 to 40 min). I need to get to know the status of this Job.
Below details would help me
1) How to see the list of all jobs that have got scheduled for a future time and are yet to start
2) How to see the the list of jobs running and the time span from when they are running
3) How to see if the job has completed successfully or has stoped in between because of any error.
| 0 | [
2,
1205,
1782,
19,
4444,
255,
812,
800,
3726,
3726,
31,
57,
21,
8214,
7004,
56,
4345,
18,
21,
1205,
9,
48,
1205,
1384,
21,
865,
16,
85,
20,
164,
1066,
13,
5,
19896,
712,
20,
1417,
4232,
6,
9,
31,
376,
20,
164,
20,
143,
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... |
Can you use an alias in the WHERE clause in mysql?
===
I need to use an alias in the WHERE clause, but It keeps telling me that its an unknown column. Is there any way to get around this issue? I need to select records that have a rating higher than x. Rating is calculated as the following alias:
sum(reviews.rev_rating)/count(reviews.rev_id) as avg_rating | 0 | [
2,
92,
42,
275,
40,
15794,
19,
14,
113,
9040,
19,
51,
18,
22402,
60,
800,
3726,
3726,
31,
376,
20,
275,
40,
15794,
19,
14,
113,
9040,
15,
47,
32,
8968,
2497,
55,
30,
82,
40,
2562,
4698,
9,
25,
80,
186,
161,
20,
164,
140,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Good way to do a "switch" in a Makefile
===
I'm experimenting with an updated build system at work; currently, I'm trying to find a good way to set compiler & flags depending on the target platform.
What I would like to do is something like
switch $(PLATFORM)_$(BUILD_TYPE)
case "Linux_x86_release"
CFLAGS = -O3
case "Linux_x86_debug"
CFLAGS = -O0 -g
case "ARM_release"
CC = armcc
AR = armlink
CFLAGS = -O2 -fx
...
which is not supported by GNU Make. Now, my first thought was to just do
-include $(PLATFORM)_$(BUILD_TYPE)
which is a pretty decent solution, however, it makes it hard to get an overview of what differs between files, not to mention that I'm looking forward to writing & maintaining a good 60-80 files, each containing a set of variable definitions.
Does anyone happen to know a better way to accomplish this? I.e. setting a set of flags and other options based on another variable? | 0 | [
2,
254,
161,
20,
107,
21,
13,
7,
18,
15915,
7,
19,
21,
233,
16877,
800,
3726,
3726,
31,
22,
79,
5737,
68,
29,
40,
6372,
1895,
329,
35,
170,
73,
871,
15,
31,
22,
79,
749,
20,
477,
21,
254,
161,
20,
309,
21486,
279,
9318,
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... |
Richly Formatted excel reports in an ASP.Net application
===
How do I generate excel reports with rich formatting including charts with a ASP.Net application?
As per http://support.microsoft.com/kb/257757 server-side automation of office is advisable and also our admin does not allow installation of office on the server
Customer is not ready to spend a lot on 3rd party components
A must requirement is to retain the formatting used by the end user already and also use ONLY excel 2003.
Thanks
| 0 | [
2,
2042,
102,
13,
29850,
20700,
2813,
19,
40,
28,
306,
9,
2328,
3010,
800,
3726,
3726,
184,
107,
31,
7920,
20700,
2813,
29,
2042,
2595,
1203,
215,
5158,
29,
21,
28,
306,
9,
2328,
3010,
60,
28,
416,
7775,
6903,
24168,
9,
22019,
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... |
Project description file error in git?
===
I've a small project that I want to share with a few others on a machine that we all have access to. I created a bare copy of the local repo with
git clone --bare --no-hardlinks path/to/.git/ repoToShare.git
I then moved repoToShare.git to the server.
I can check it out with the following:
git clone ssh://user@address/opt/gitroot/repoToShare.git/ test
I can then see everything in the local repo and make commits against that. When I try to push changes back to the remote server I get the following error.
*** Project description file hasn't been set
error: hooks/update exited with error code 1
error: hook declined to update refs/heads/master
Any ideas? | 0 | [
2,
669,
5318,
3893,
7019,
19,
13,
10404,
60,
800,
3726,
3726,
31,
22,
195,
21,
284,
669,
30,
31,
259,
20,
1891,
29,
21,
310,
654,
27,
21,
1940,
30,
95,
65,
57,
1381,
20,
9,
31,
679,
21,
4856,
4344,
16,
14,
375,
302,
1638,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Easy IPC on Windows Mobile?
===
In a C++ project (i.e. no .NET) on Windows Mobile, I am looking for a way to easily communicate between two independently running applications. Application A would run a service, whereas application B would provide the user some functionality - for which B has to call some of A's functions. I would rather not go through implementing anything in COM.
In fact, I would prefer not to do any kind of serialization or similar (i.e. this would exclude using sockets/pipes/files), but rather have B pass all parameters and pointers over to A, just like if A were part of B. Also, apps C, D and E should be able to do the same with only one instance of A running.
Is this possible on Windows Mobile and possibly other platforms? | 0 | [
2,
2010,
31,
5779,
27,
1936,
3241,
60,
800,
3726,
3726,
19,
21,
272,
20512,
669,
13,
5,
49,
9,
62,
9,
90,
13,
9,
2328,
6,
27,
1936,
3241,
15,
31,
589,
699,
26,
21,
161,
20,
2351,
8709,
128,
81,
9029,
946,
3767,
9,
3010,
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... |
Eclipse - generated method parapeters final
===
Can Eclipse make parameters for generated methods (overwriting, implementing interface, etc.) final. If yes - how?
If I'm not mistaken, then IntelliJ had an option for it. I could not something similar in Eclipse.
This has become a part of my coding style and I am making parameters final manually, but there has to be a faster way :P
/JaanusSiim | 0 | [
2,
11652,
13,
8,
6756,
2109,
26304,
445,
426,
800,
3726,
3726,
92,
11652,
233,
12905,
26,
6756,
3195,
13,
5,
2549,
12646,
15,
17333,
6573,
15,
2722,
9,
6,
426,
9,
100,
1643,
13,
8,
184,
60,
100,
31,
22,
79,
52,
15088,
15,
94,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best place to learn c++ 0X features?
===
Best place to learn c++ 0X features? | 0 | [
2,
246,
209,
20,
2484,
272,
20512,
713,
396,
967,
60,
800,
3726,
3726,
246,
209,
20,
2484,
272,
20512,
713,
396,
967,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I read strings in J2ME?
===
I just noticed that there is no `StringReader` or even a buffered one in J2ME.
Does anyone know how you are supposed to read Strings from an `InputStream` in a platform independent way (i.e. between two java enabled cell phones of different models)? | 0 | [
2,
184,
107,
31,
1302,
7887,
19,
487,
135,
790,
60,
800,
3726,
3726,
31,
114,
2711,
30,
80,
25,
90,
13,
1,
11130,
10647,
106,
1,
54,
166,
21,
17497,
69,
53,
19,
487,
135,
790,
9,
630,
1276,
143,
184,
42,
50,
2293,
20,
1302,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why does my asp.net page add the prefix 'ctl00_ctl00' to html element IDs and break the design?
===
I don't understand it.
The ids of html elements in the master page are changed by the same id but with a prefix and it's breaking the css design.
In the master page I have:
<div id="container">
<asp:ContentPlaceHolder ...
...
The id of the div in the browser is showing ctl00_ctl00_id
And the CSS styles are gone obviously.
How do I stop it?
Thanks | 0 | [
2,
483,
630,
51,
28,
306,
9,
2328,
2478,
3547,
14,
14315,
13,
22,
4812,
255,
2032,
1,
4812,
255,
2032,
22,
20,
13,
15895,
4520,
13,
9178,
17,
1442,
14,
704,
60,
800,
3726,
3726,
31,
221,
22,
38,
1369,
32,
9,
14,
13,
9178,
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... |
How do I remove a cookie that I've set on someone's computer?
===
I've got a web system where users log in, and it stores a cookie of their session. When they log in as someone else or log out I want to remove that original cookie that I stored. What's the best way to do that?
I'm using Python and Apache, though I suppose the answer will remain the same for most languages. | 0 | [
2,
184,
107,
31,
4681,
21,
19980,
30,
31,
22,
195,
309,
27,
737,
22,
18,
1428,
60,
800,
3726,
3726,
31,
22,
195,
330,
21,
2741,
329,
113,
3878,
6738,
19,
15,
17,
32,
4134,
21,
19980,
16,
66,
3723,
9,
76,
59,
6738,
19,
28,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is asp.net webforms going to be the bastard stepchild to mvc?
===
I've read all the marketing speak about how mvc and webforms are complementary etc... However it seems that all the blogs talk about is mvc and the only news coming out is about mvc.
Is microsoft going to continue to IMPROVE webforms as a first class citizen or will it just be a supported technology as they move all their real efforts, developers and resources to mvc over time?
Is there any real evidence of any new exciting improvements coming to webforms in the near future? | 0 | [
2,
25,
28,
306,
9,
2328,
2741,
4190,
18,
228,
20,
44,
14,
6862,
1424,
11287,
20,
307,
8990,
60,
800,
3726,
3726,
31,
22,
195,
1302,
65,
14,
4743,
1960,
88,
184,
307,
8990,
17,
2741,
4190,
18,
50,
24654,
2722,
9,
9,
9,
207,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how do you know how to design a mysql database when creating an advanced php application?
===
i've never created a shopping cart, or forum in php. aside from viewing and analyzing another persons project or viewing tutorials that display how to make such a project or how to being such a project. how would a person know how to design the database structure to create such a thing? im guessing its probbably through trial and error... | 0 | [
2,
184,
107,
42,
143,
184,
20,
704,
21,
51,
18,
22402,
6018,
76,
2936,
40,
2255,
13,
26120,
3010,
60,
800,
3726,
3726,
31,
22,
195,
243,
679,
21,
4884,
6420,
15,
54,
5691,
19,
13,
26120,
9,
3841,
37,
11244,
17,
23543,
226,
428... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are alternatives to ExtJS?
===
So what I'm looking for is a javascript framework I can use that has several UI controls available as part of the UI. I have taken a look at [jQuery][1] but there controls are very basic comparted to ExtJS. Are there any other competitive alternatives?
[1]: http://ui.jquery.com/home | 4 | [
2,
98,
50,
2676,
18,
20,
1396,
38,
728,
18,
60,
800,
3726,
3726,
86,
98,
31,
22,
79,
699,
26,
25,
21,
8247,
8741,
6596,
31,
92,
275,
30,
63,
238,
13,
5661,
8671,
904,
28,
141,
16,
14,
13,
5661,
9,
31,
57,
658,
21,
361,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Name of method that lists all user groups where the current user is member of
===
we had a heated discussion about a method name. We have a class `User` and its method `XYZ`. The method name is the problem, we can't reach the deal. The method should return all user groups that is the current member 'contained' in.
User u = <get user>;
IList<UserGroup> groups = u.XYZ();
Console.WriteLine("User {0} is member of: ", u);
foreach(UserGroup g in groups)
Console.WriteLine("{0}", g);
My colleagues brought:
u.GetAllGroups(); // what groups?
u.GetMemberOfGroups(); // doesn't make sense
u.GroupsIAmMemberOf(); // long
u.MemberOf(); // short, but the description is wrong
u.GetRolesForUser(); // we don't work with roles, so GetGroupsForUser ?
u.GetOccupiedGroups(); // is the meaning correct?
What name would you propose? | 0 | [
2,
204,
16,
2109,
30,
7227,
65,
4155,
1170,
113,
14,
866,
4155,
25,
322,
16,
800,
3726,
3726,
95,
41,
21,
10264,
5460,
88,
21,
2109,
204,
9,
95,
57,
21,
718,
13,
1,
16704,
1,
17,
82,
2109,
13,
1,
15161,
380,
1,
9,
14,
2109... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Process for reducing the size of a executable
===
I'm producing a hex file to run on an ARM processor which I want to keep below 32K. It's currently a lot larger than that and I wondered if someone might have some advice on what's the best approach to slim it down?
Here's what i've done so far
1. So I've run 'size' on it to determine how big the hex file is.
2. Then 'size' again to see how big each of the object files are that link to create the hex files. It seems the majority of the size comes from external libraries.
3. Then I used 'readelf' to see which functions take up the most memory.
4. I searched through the code to see if I could calls to those functions.
Here's where I get stuck, there's some functions which I don't call directly (e.g. _vfprintf) and I can't find what calls it so I can remove the call (as I think I don't need it).
So what are the next steps?
thanks for your help. | 0 | [
2,
953,
26,
7974,
14,
1072,
16,
21,
1396,
17194,
5924,
800,
3726,
3726,
31,
22,
79,
4081,
21,
24,
396,
3893,
20,
485,
27,
40,
813,
14762,
56,
31,
259,
20,
643,
1021,
2512,
197,
9,
32,
22,
18,
871,
21,
865,
1662,
119,
30,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Easy to extend IDE for C
===
I want an **simple IDE/editor for C** in **Linux** to which I **can add features easily**. For example: I want to add a right click menu item and a related action for the editor. It should be easy to extent and add any desirable functionality. I tried eclipse CDT but its to much of learning(I mean knowing the eclipse plug-in architecture and the CDT extension points and stuff) to do for the small modification/s I want to do.
Thanks,
Sachin | 0 | [
2,
2010,
20,
7206,
13,
3448,
26,
272,
800,
3726,
3726,
31,
259,
40,
13,
1409,
24629,
13,
3448,
118,
13401,
26,
272,
1409,
19,
13,
1409,
1226,
7147,
1409,
20,
56,
31,
13,
1409,
1245,
3547,
967,
2351,
1409,
9,
26,
823,
45,
31,
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... |
sqlite database default time value 'now'
===
Is it possible in a sqlite database to craete a table that has a timestamp column that default to DATETIME('now') ?
Like this:
CREATE TABLE test (id INTEGER PRIMARY KEY AUTOINCREMENT, t TIMESTAMP DEFAULT DATETIME('now'));
This gives an error... How to resolve? | 0 | [
2,
4444,
10601,
6018,
12838,
85,
1923,
13,
22,
1387,
22,
800,
3726,
3726,
25,
32,
938,
19,
21,
4444,
10601,
6018,
20,
6803,
11258,
21,
859,
30,
63,
21,
436,
38,
10158,
4698,
30,
12838,
20,
1231,
891,
5,
22,
1387,
22,
6,
13,
60... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 technical term for C# or Java type languages?
===
This is probably a very simple question, but what is the technical term for this class of language?
They use an "intermediate" assembly type language which is sent through the JVM or CLR. They both are object oriented and they both depend on an intermediary such as the Java Virtual Machine or the Common Language Runtime to compile into native machine laguage.
Unlike Asm/C/C++ they don't compile directly into native machine language and require intensive memory allocation knowledge. They both use garbage collection.
Is there a technical term which seperates Java and C# from C++? | 0 | [
2,
98,
25,
14,
2447,
981,
26,
272,
5910,
54,
8247,
1001,
2556,
60,
800,
3726,
3726,
48,
25,
910,
21,
253,
1935,
1301,
15,
47,
98,
25,
14,
2447,
981,
26,
48,
718,
16,
816,
60,
59,
275,
40,
13,
7,
6280,
8260,
591,
7,
1475,
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... |
help: javascript if statement returns wrong values
===
if ($('status_'+id).getText()=="Active")
anybody knows why JS returns false even if the passed string is "Active"?
i also tried changing the code to
if ($('status_'+id).getText()==String("Active"))
or even
if (String($('status_'+id).getText())=="Active")
and still no luck T_T...
i've also checked `$('status_'+id).getText()` through `console.log` to verify if it really returns "Active"
i wonder why it doesnt work?
any ideas? | 0 | [
2,
448,
45,
8247,
8741,
100,
3331,
4815,
1389,
4070,
800,
3726,
3726,
100,
13,
5,
4403,
5,
22,
10631,
267,
1,
22,
2430,
1340,
6,
9,
3060,
11969,
5,
6,
3726,
3726,
7,
7889,
7,
6,
11181,
3620,
483,
487,
18,
4815,
4997,
166,
100,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Strange cross-threading UI errors
===
I'm writing a WinForms app which has two modes: console or GUI. Three projects within the same solution, one for the console app, one for the UI forms and the third to hold the logic that the two interfaces will both connect too. The Console app runs absolutely smoothly.
A model which holds the user-selections, it has an `IList<T>` where T is a local object, `Step`, which implements `INotifyPropertyChanged`, so in the UI this is mounted on to a DataGridView. All is fine at runtime, the initial state of the objects is reflected on the screen.
Each of the `Step` objects is a task which is performed in turn; some of the properties will change, being reflected back to the IList and passed on to the DataGridView.
This action in the UI versions is done by creating a BackgroundWorker raising events back to the UI. The `Step` does it thing and generates a `StepResult` object which is an enumerated type indicating a result (e.g. Running, NotRun, OK, NotOK, Caveat) and a string to indicate a message (because the step ran but not quite as expected, i.e. with a Caveat). Normally the actions will involve a database interaction, but in debug mode I randomly generate a result.
If the message is null, there's never a problem, but if I generate a response like this:
StepResult returnvalue = new StepResult(stat, "completed with caveat")
I get an error saying that the DataGridView was being accessed from a thread other than the thread it was created on.
Then if I generate a unique response, e.g. using a random number `r`:
StepResult returnvalue = new StepResult(stat, r.ToString());
the actions succeed with no problem, the numbers are written cleanly to the DataGridView.
I'm baffled. I'm assuming it's somehow a string literal problem, but can anyone come up with a clearer explanation?
| 0 | [
2,
2578,
919,
8,
96,
22883,
13,
5661,
11908,
800,
3726,
3726,
31,
22,
79,
1174,
21,
628,
4190,
18,
4865,
56,
63,
81,
12770,
45,
8650,
54,
9457,
9,
132,
2314,
363,
14,
205,
4295,
15,
53,
26,
14,
8650,
4865,
15,
53,
26,
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... |
Storing web content in a JAR file
===
Is it possible to store web content (such as JSPs, HTML, images, CSS etc) in a JAR file?
I've been looking at various options at modularising our web applications and this is one possibility.
We are currently using JSF and Facelets for our view technology - I'm thinking it may be possible to write some form of custom view resolver which would examine the classpath rather than a filesystem directory, but I'm not sure this would work.
Any ideas would be appreciated! :) | 0 | [
2,
25615,
2741,
2331,
19,
21,
5112,
3893,
800,
3726,
3726,
25,
32,
938,
20,
1718,
2741,
2331,
13,
5,
4289,
28,
487,
18,
1919,
15,
13,
15895,
15,
3502,
15,
272,
18,
18,
2722,
6,
19,
21,
5112,
3893,
60,
31,
22,
195,
74,
699,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best way to automatically redirect someone to another page using JavaScript?
===
I've never learnt JavaScript, but I imagine this is quite a simple problem. Just wanted to know which method is most advised these days. | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
7499,
302,
14706,
737,
20,
226,
2478,
568,
8247,
8741,
60,
800,
3726,
3726,
31,
22,
195,
243,
2484,
38,
8247,
8741,
15,
47,
31,
4382,
48,
25,
1450,
21,
1935,
1448,
9,
114,
417,
20,
143,
56,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Is there a memory limit for a single .net (3.5) process
===
We are currently thinking of building a cache-system to hold data pulled out of an SQL database and make it available to a couple of other applications (website, webservice, etc). We imagine the cache to be running as a windows service and basically consist of a smart dictionary which holds the cache entries. My question is, is there a limit to the working set of the application (it will be running under windows server 2003)? Or is the amount of physical memory the limit? | 0 | [
2,
25,
80,
21,
1912,
4496,
26,
21,
345,
13,
9,
2328,
13,
5,
240,
9,
264,
6,
953,
800,
3726,
3726,
95,
50,
871,
1440,
16,
353,
21,
16522,
8,
10724,
20,
1027,
1054,
881,
70,
16,
40,
4444,
255,
6018,
17,
233,
32,
904,
20,
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... |
Unit Test the Routes
===
Let's say I have defined a route:
routes.Add(new Route("Users/{id}", new MvcRouteHandler())
{
Defaults = new RouteValueDictionary(new { controller ="UserInfo", action = "UserInformation",
id = ""}),
});
So, how am I going to create a unit test to ensure that when Users/123 is presented in the URL the action method *UserInformation* is definitely called, with 123 as the parameter? | 0 | [
2,
1237,
1289,
14,
5050,
800,
3726,
3726,
408,
22,
18,
395,
31,
57,
2811,
21,
858,
45,
5050,
9,
14854,
5,
2681,
858,
5,
7,
16704,
18,
118,
1,
1340,
1,
7,
15,
78,
307,
8990,
20179,
3203,
1252,
5,
6,
6,
13,
1,
12838,
18,
800... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Loading Delphi designtime packages on a project base
===
Is there a way to select designtime packages on a project bases?
Packages are very useful in large project to keep the build time acceptable, but they are a real pita in those large projects too. When one developer adds a new package, it breaks to build for all other until they install the new package on their machine. And then there is versioning of the packages ...
So has anyone a proper solution for this? (it has been bothering me for years now) | 0 | [
2,
12797,
23030,
704,
891,
16875,
27,
21,
669,
1000,
800,
3726,
3726,
25,
80,
21,
161,
20,
5407,
704,
891,
16875,
27,
21,
669,
8426,
60,
16875,
50,
253,
4811,
19,
370,
669,
20,
643,
14,
1895,
85,
12513,
15,
47,
59,
50,
21,
683... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best way to implement gmail style "undo" in Rails?
===
I think it important to have an "**undo**" method ala **gmail** when destroying records instead of displaying an annoying popup that says, "*Are you sure?*".
The way that I've implemented this is to have a "deleted_at" timestamp column in the model which gets timestamped when **destroy** method is called
def destroy
@foo = Foo.find(params[:id])
@foo.update_attribute(:deleted_at, Time.now)
...
end
To **revert/undo** I'll just set the same column to nil
def revert
@foo = Foo.find(params[:id])
@foo.update_attribute(:deleted_at, nil)
...
end
I'll just have to add a condition to filter off "deleted" foos when I call the find method. Perhaps set a cron or background task to really destroy "deleted" foos after some time.
Works for me and easy to implement but I'm curious as to if there's a better way to implement this feature? Maybe there's a plugin or gem that provides this that I don't know about? | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
8713,
489,
8079,
1034,
13,
7,
1020,
537,
7,
19,
2240,
18,
60,
800,
3726,
3726,
31,
277,
32,
681,
20,
57,
40,
13,
7,
1409,
1020,
537,
1409,
7,
2109,
21,
531,
13,
1409,
263,
8079,
1409,
76,
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... |
fast filter method in python
===
I want to filter two list with any fastest method in python script. i have used built in filter() method for this purpose. but it is quit slow and taking to much time. because i have very big list, i think more than 5 million item in each list or may be more.
i do not know how i will make it. please if any body have idea or write small function for it. please send me. I am very thankful for it.
Thanks | 0 | [
2,
1512,
11945,
2109,
19,
20059,
800,
3726,
3726,
31,
259,
20,
11945,
81,
968,
29,
186,
7518,
2109,
19,
20059,
3884,
9,
31,
57,
147,
392,
19,
11945,
5,
6,
2109,
26,
48,
2131,
9,
47,
32,
25,
6489,
2276,
17,
741,
20,
212,
85,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Improved CSS syntax highlighting in vim
===
The CSS syntax highlighting in vim is not entirely optimal. For example:
div.special_class
stops the highlighting at the `_`.
Is there an improved highlighter that doesn't bite on an underscore? | 0 | [
2,
3999,
272,
18,
18,
22649,
23102,
19,
1790,
79,
800,
3726,
3726,
14,
272,
18,
18,
22649,
23102,
19,
1790,
79,
25,
52,
2894,
17586,
9,
26,
823,
45,
13,
12916,
9,
11118,
1,
1898,
6604,
14,
23102,
35,
14,
13,
1,
9,
25,
80,
40... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Are there design patterns on modelling a structure containing Teams. Roles and Skills
===
I need to model a system where by there will be a team who will consist of users who perform roles in the team and have skills assigned to them.
*i.e. a team A 5 members, one performs the team leader role, all perform the reply to
email role, but some have an extra skill to answer the phone*
I'm trying to determine how I can best model this.
This problem must have been solved before, are there any good resources on how to model this? | 0 | [
2,
50,
80,
704,
6282,
27,
23089,
21,
1411,
3503,
952,
9,
2954,
17,
3207,
800,
3726,
3726,
31,
376,
20,
1061,
21,
329,
113,
34,
80,
129,
44,
21,
173,
72,
129,
7929,
16,
3878,
72,
2985,
2954,
19,
14,
173,
17,
57,
3207,
2467,
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... |
Constant Amortized Time
===
What is meant by "Constant Amortized Time" when talking about time complexity of an algorithm? | 0 | [
2,
3587,
21,
17523,
1333,
85,
800,
3726,
3726,
98,
25,
1380,
34,
13,
7,
29639,
21,
17523,
1333,
85,
7,
76,
1582,
88,
85,
12745,
16,
40,
9083,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.