unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
What is a stack overflow error?
===
I'm a complete beginner writing Breakout (the game) in Java. All was going well until I started to get a stack overflow error in the late game. Unfortunately I know that without actually putting the code up online I won't really be able to get help with this. So instead I thought I would make this my first Stackoverflow.com question!
What is a "stack overflow" error, what causes it and how do *real* programmers deal with them?
Thanks a lot!
(oh, I'm using the acm libraries (I think), if that's any help?) | 0 | [
2,
98,
25,
21,
7566,
20285,
7019,
60,
800,
3726,
3726,
31,
22,
79,
21,
1279,
26931,
1174,
26581,
13,
5,
124,
250,
6,
19,
8247,
9,
65,
23,
228,
134,
163,
31,
373,
20,
164,
21,
7566,
20285,
7019,
19,
14,
456,
250,
9,
6200,
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... |
Why is new .NET code from Microsoft not Microsoft StyleCop compliant?
===
I just downloaded the ASP.NET MVC beta and the templates are not StyleCop compliant.
**Why is new .NET code coming from Microsoft not StyleCop compliant?** | 0 | [
2,
483,
25,
78,
13,
9,
2328,
1797,
37,
7099,
52,
7099,
1034,
9734,
13,
25509,
60,
800,
3726,
3726,
31,
114,
23887,
14,
28,
306,
9,
2328,
307,
8990,
8434,
17,
14,
22894,
18,
50,
52,
1034,
9734,
13,
25509,
9,
13,
1409,
2256,
25,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... |
Strings or URI in .NET APIs?
===
I am writing an .NET wrapper API for the Netflix API.
At this point I can choose to represent URLs as either strings or URI objects. Seems to me there is a good case for both.
So if you were using an API, which would you prefer? | 0 | [
2,
7887,
54,
13,
3594,
19,
13,
9,
2328,
21,
8954,
60,
800,
3726,
3726,
31,
589,
1174,
40,
13,
9,
2328,
28051,
21,
2159,
26,
14,
23233,
21,
2159,
9,
35,
48,
454,
31,
92,
3538,
20,
3501,
13,
911,
7532,
28,
694,
7887,
54,
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... |
Passing parameters between JSPs
===
Please bear with me here, I'm a student and new to Java Server Pages.
If I'm being a complete idiot, can someone give me a good link to a tutorial on JSP, since I've been unable to find info on this anywhere.
Okay, here goes...
I'm using Netbeans and trying to pass an object that connects to a database between the pages, otherwise I'd have to reconnect to the database every time a new page is displayed.
Using Netbeans, you can view each page as "jsp", in "design" view, or view the Java code. In the Java code is the class that extends an AbstractPageBean. The problem is that I'd like to pass parameters, but there is no object representing the class and so I can't just access the instance variables.
Can anyone tell me how to do this?
| 0 | [
2,
2848,
12905,
128,
487,
18,
1919,
800,
3726,
3726,
2247,
2746,
29,
55,
235,
15,
31,
22,
79,
21,
1209,
17,
78,
20,
8247,
8128,
4434,
9,
100,
31,
22,
79,
142,
21,
1279,
8563,
15,
92,
737,
590,
55,
21,
254,
3508,
20,
21,
2972... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Parrot documentation: where is it?!
===
Parrot documentation exists, but it is scattered all over the web; what aiming-to-be-comprehensive sites there are, are often incomplete with <a href="http://www.perlfoundation.org/parrot/index.cgi?the_pir_language_reference_manual">large sections missing</a> (yes, that was an empty language specification manual outline on the <b>official</b> Parrot wiki)
Are there any decent sources of Parrot documentation in one place?
Note: <a href="http://stackoverflow.com/questions/118141/what-exactly-is-parrot">other</a> <a href="http://www.parrotblog.org/2008/02/what-is-parrot.html">questions</a> notwithstanding, I do not want <a href="http://stackoverflow.com/revisions/147038/list">hastily googled</a> responses linking to sites with massive, gaping <a href="http://www.parrotcode.org/examples/">holes</a>.
| 0 | [
2,
18329,
13945,
45,
113,
25,
32,
60,
187,
800,
3726,
3726,
18329,
13945,
5636,
15,
47,
32,
25,
7471,
65,
84,
14,
2741,
73,
98,
15442,
8,
262,
8,
863,
8,
11103,
99,
6077,
18,
1284,
3259,
80,
50,
15,
50,
478,
14011,
29,
13,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I combine this code into one or two LINQ queries?
===
I'm perhaps being a bit lazy asking this here, but I'm just getting started with LINQ and I have a function that I am sure can be turned into two LINQ queries (or one nested query) rather than a LINQ and a couple of foreach statements. Any LINQ gurus care to refactor this one for me as an example?
The function itself loops through a list of .csproj files and pulls out the paths of all the .cs files included in the project:
static IEnumerable<string> FindFiles(IEnumerable<string> projectPaths)
{
string xmlNamespace = "{http://schemas.microsoft.com/developer/msbuild/2003}";
foreach (string projectPath in projectPaths)
{
XDocument projectXml = XDocument.Load(projectPath);
string projectDir = Path.GetDirectoryName(projectPath);
var csharpFiles = from c in projectXml.Descendants(xmlNamespace + "Compile")
where c.Attribute("Include").Value.EndsWith(".cs")
select Path.Combine(projectDir, c.Attribute("Include").Value);
foreach (string s in csharpFiles)
{
yield return s;
}
}
} | 0 | [
2,
184,
92,
31,
12287,
48,
1797,
77,
53,
54,
81,
6294,
1251,
9386,
2829,
60,
800,
3726,
3726,
31,
22,
79,
1774,
142,
21,
1142,
16792,
3379,
48,
235,
15,
47,
31,
22,
79,
114,
1017,
373,
29,
6294,
1251,
17,
31,
57,
21,
1990,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you convert YYYY-MM-DDTHH:mm:ss.000Z time format to MM/DD/YYYY time format in Python?
===
For example, I'm trying to convert 2008-09-26T01:51:42.000Z to 09/26/2008. What's the simplest way of accomplishing this? | 0 | [
2,
184,
107,
42,
8406,
13,
93,
93,
93,
93,
8,
3363,
8,
8096,
96,
252,
45,
3363,
45,
18,
18,
9,
3993,
380,
85,
2595,
20,
1620,
118,
8096,
118,
93,
93,
93,
93,
85,
2595,
19,
20059,
60,
800,
3726,
3726,
26,
823,
15,
31,
22,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
is code injection bad?
===
There are some fairly powerful tools like [SIMBL](http://www.culater.net/software/SIMBL/SIMBL.php) or [Airfoil/Instant Hijack](http://rogueamoeba.com/airfoil/mac/index.php) which use code injection.
As far as I understand this, these tools inject their own code in other programs. This idea sounds dangerous to me as this seems to have the potential to make perfectly stable software fragile and "buggy". Also this seems to pose security risks.
Should these tools be avoided for stability or security reasons? | 0 | [
2,
25,
1797,
13646,
896,
60,
800,
3726,
3726,
80,
50,
109,
6647,
2177,
4672,
101,
636,
8672,
6287,
500,
5,
21127,
6903,
6483,
9,
15779,
815,
9,
2328,
118,
12980,
5011,
118,
8672,
6287,
118,
8672,
6287,
9,
26120,
6,
54,
636,
2642,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Powerwise: Is it better to use console or windows GUI application in C#(.NET)?
===
If we are writing about power-wise option - is using a console-based application in C#(.NET) better than having Windows GUI and what's the real difference expept few libraries loaded in operational memory?
The issue is about text comparisons and working with strings, connecting to Internet, gathering data, working with database. | 0 | [
2,
414,
10474,
45,
25,
32,
574,
20,
275,
8650,
54,
1936,
9457,
3010,
19,
272,
5910,
5,
9,
2328,
6,
60,
800,
3726,
3726,
100,
95,
50,
1174,
88,
414,
8,
10474,
4255,
13,
8,
25,
568,
21,
8650,
8,
1281,
3010,
19,
272,
5910,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What software to use for virtual machine for Windows development?
===
For my side job as programmer, I need Windows. It will be installed in VMWare Fusion. I will be writnig mostly C-code for Matlab-Mex-files, some DSP-development, some easy command-line tools in C and C++ for a tutorial and hopefully some easy GUIs using Visual Studio.
I will be using VisualDSP++, Bloodshed Dev-Cpp, the Matlab mex-compiler and Visual Studio.
The virtual machine will mainly have to run on a MacBook 2,1 GHz / 4 Gb.
Now here are my questions:
* should I use Vista or XP? I like the first better, but worry about the performance, especially using Visual Studio.
* should I use Visual Studio 2008 Pro or Express? I wouldn't want to waste memory for features I don't use. (== is there useful stuff in the pro version for GUI development?)
Thanks for your opinions! | 0 | [
2,
98,
2306,
20,
275,
26,
6599,
1940,
26,
1936,
522,
60,
800,
3726,
3726,
26,
51,
270,
1205,
28,
17968,
15,
31,
376,
1936,
9,
32,
129,
44,
4066,
19,
13,
20147,
5011,
11117,
9,
31,
129,
44,
20127,
13034,
1555,
272,
8,
9375,
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... |
Schould I agree to ban using statement form my c# projects?
===
My colleague insist on explicitly specifying the namespace in code and to using the *using* directive. In other words he wants to use qualified name for each type every time this type occurs in code. Something like that:
public class MyClass
{
public static void Main()
{
System.Console.WriteLine("Foo");
}
}
instead of
using System;
public class MyClass
{
public static void Main()
{
Console.WriteLine("Foo");
}
}
You can imagine the consequences.
The pros he gives:
1. Its simpler to copy and paste code around.
2. It is more readable (you see the namespaces right away).
My cons:
1. I have to write more and I have too small hands for Alt + F10 is ;-)
2. The code is less readable (I guess de gustibus non disputandum est)
3. No one does it!
What do you thing about this? | 0 | [
2,
10252,
1287,
43,
31,
4524,
20,
2135,
568,
3331,
505,
51,
272,
5910,
2314,
60,
800,
3726,
3726,
51,
12321,
20061,
27,
13108,
19077,
68,
14,
204,
5582,
19,
1797,
17,
20,
568,
14,
1637,
12655,
2483,
15626,
9,
19,
89,
715,
24,
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... |
What's the most unsound program you've had to maintain?
===
I periodically am called upon to do maintenance work on a system that was built by a real rocket surgeon. There's so much wrong with it that it's hard to know where to start.
No, wait, I'll start at the beginning: in the early days of the project, the designer was told that the system would need to scale, and he'd read that a source of scalability problems was traffic between the application and database servers, so he made sure to minimize this traffic. How? By putting all of the application logic in SQL Server stored procedures.
Seriously. The great bulk of the application functions by the HTML front end formulating XML messages. When the middle tier receives an XML message, it uses the document element's tag name as the name of the stored procedure it should call, and calls the SP, passing it the entire XML message as a parameter. It takes the XML message that the SP returns and returns it directly back to the front end. *There is no other logic in the application tier.*
(There *was* some code in the middle tier to validate the incoming XML messages against a library of schemas. But I removed it, after ascertaining that 1) only a small handful of messages had corresponding schemas, 2) the messages didn't actually conform to these schemas, and 3) after validating the messages, if any errors were encountered, the method discarded them. "This fuse box is a real time-saver - it comes from the factory with pennies pre-installed!")
I've seen software that does the wrong thing before. Lots of it. I've written quite a bit. But I've never seen anything *like* the steely-eyed determination to do the wrong thing, at *every possible turn*, that's embodied in the design and programming of this system.
Well, at least he went with what he knew, right? Um. Apparently, what he knew was Access. And he didn't really *understand* Access. Or databases.
Here's a common pattern in this code:
<pre>
SELECT @TestCodeID FROM TestCode WHERE TestCode = @TestCode
SELECT @CountryID FROM Country WHERE CountryAbbr = @CountryAbbr
SELECT Invoice.*, TestCode.*, Country.*
FROM Invoice
JOIN TestCode ON Invoice.TestCodeID = TestCode.ID
JOIN Country ON Invoice.CountryID = Country.ID
WHERE Invoice.TestCodeID = @TestCodeID AND Invoice.CountryID = @CountryID
</pre>
Okay, fine. You don't trust the query optimizer either. But how about this? (Originally, I was going to post this in [What's the best comment in source code you have ever encountered?][1] but I realized that there was so much more to write about than just this one comment, and things just got out of hand.) At the end of many of the utility stored procedures, you'll see code that looks like the following:
<pre>
-- Fix NULLs
SET @TargetValue = ISNULL(@TargetValue, -9999)
</pre>
Yes, that code is doing exactly what you can't allow yourself to believe it's doing lest you be driven mad. If the variable contains a NULL, he's alerting the caller by changing its value to -9999. Here's how this number is commonly used:
<pre>
-- Get target value
EXEC ap_GetTargetValue @Param1, @Param2, OUTPUT @TargetValue
-- Check target value for NULL value
IF @TargetValue = -9999
...
</pre>
Really.
For another dimension of this system, see the article on thedailywtf.com entitled [I Think I'll Call Them "Transactions"][2]. I'm not making any of this up. I swear.
I'm often reminded, when I work on this system, of Wolfgang Pauli's famous response to a student: "That isn't right. It isn't even wrong."
This can't really be the very worst program ever. It's definitely the worst one I've worked on in my entire 30-year (yikes) career. But I haven't seen everything. What have you seen?
[1]: http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered
[2]: http://thedailywtf.com/Articles/I_Think_I_0x27_ll_Call_Them__0x26_quot_0x3b_Transactions_0x26_quot_0x3b_.aspx | 0 | [
2,
98,
22,
18,
14,
127,
367,
8489,
625,
42,
22,
195,
41,
20,
4027,
60,
800,
3726,
3726,
31,
19886,
589,
227,
685,
20,
107,
5010,
170,
27,
21,
329,
30,
23,
392,
34,
21,
683,
6598,
9561,
9,
80,
22,
18,
86,
212,
1389,
29,
32,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Virus scanners locking and deleting temporary files - best way to cope with them?
===
My application deals with e-mails coming from different sources, e.g. Outlook and IMAP mailboxes. Before parsing them, I write them to the temporary directory (keeping them in memory is not an option). While parsing, I might be writing attachments to the temp directory (for example, if they are too large to keep in memory or for full-text extraction).
But in the wild, two things happen that seemed very strange in the first place but could all be traced back to virus scanner behaviour:
* I'm sometimes unable to open files which I've written myself a few milliseconds ago. They are obviously locked by virus scanners to ensure that they are clean. I get an Exception.
* If files are considered dangerous by the virus scanner, it deletes them at some point of time.
To cope with this behaviour, I've written a few methods that try again if open fails or do some checks if files exist, but I'm unable to use them in every part of the application (3rd party code, for example filters), so things got better, but not 100% perfect and my source code looks ugle in parts because of this.
How do you cope with virus scanners? | 0 | [
2,
6231,
23195,
18,
17538,
17,
121,
1336,
68,
4700,
6488,
13,
8,
246,
161,
20,
11624,
29,
105,
60,
800,
3726,
3726,
51,
3010,
10342,
29,
13,
62,
8,
8079,
18,
880,
37,
421,
2662,
15,
13,
62,
9,
263,
9,
19837,
17,
31,
15022,
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... |
Sanitize output in rails
===
What is the best solution to sanitize output html in rails (to avoid XSS attacks)?
I have two options: white_list plugin or sanitize method from Sanitize Helper http://api.rubyonrails.com/classes/ActionView/Helpers/SanitizeHelper.html? For me until today the white_list plugin worked better and in the past, Santize was very buggy, but as part of the Core, probably it will be under development and be supported for a while. | 0 | [
2,
523,
242,
2952,
5196,
19,
2240,
18,
800,
3726,
3726,
98,
25,
14,
246,
4295,
20,
523,
242,
2952,
5196,
13,
15895,
19,
2240,
18,
13,
5,
262,
2658,
993,
18,
18,
3080,
6,
60,
31,
57,
81,
6368,
45,
359,
1,
5739,
10922,
108,
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,
1,
1,
1,
1,
1,
1,
1,
1... |
python module dlls
===
Is there a way to make a python module load a dll in my application directory rather than the version that came with the python installation, without making changes to the python installation (which would then require I made an installer, and be careful I didn't break other apps for people by overwrting python modules and changing dll versions globaly...)?
Percificaly I would like python to use my version of the sqlite3.dll, rather than the version that came with python (which is older and doesn't appear to have the fts3 module).
| 0 | [
2,
20059,
12613,
13,
43,
211,
18,
800,
3726,
3726,
25,
80,
21,
161,
20,
233,
21,
20059,
12613,
6305,
21,
13,
43,
211,
19,
51,
3010,
16755,
864,
119,
14,
615,
30,
281,
29,
14,
20059,
7758,
15,
366,
544,
1693,
20,
14,
20059,
775... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Equivalent of Firebug's "Copy Xpath" in Internet Explorer?
===
I have an internet-explorer only web application.
I'm exploring what we can do to automate the testing.
Selenium looks like a good tool, but to be able to activate links etc I need to tell selenium where they are. The application wasn't built with this kind of testing in mind, so there generally aren't id attributes on the key elements.
No problem, I think, I can use Xpath expressions. But finding the correct Xpath for say, a button, is a royal pain if done by inspecting the source of the page.
With Firefox / Firebug, I can select the element then use "Copy Xpath" to get the expression. Is there any way of doing this with IE?
(I have the IE Developer Toolbar and it's frustratingly close - I can click to select the element of interest, display all sorts of information about it... but I can't see any convenient way of determining the Xpath for it) | 0 | [
2,
4602,
16,
535,
16254,
22,
18,
13,
7,
19625,
993,
8353,
7,
19,
2620,
8520,
60,
800,
3726,
3726,
31,
57,
40,
2620,
8,
6899,
7386,
106,
104,
2741,
3010,
9,
31,
22,
79,
11748,
98,
95,
92,
107,
20,
3108,
5281,
14,
4431,
9,
230... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 add new statements to Python's syntax?
===
Can you add new statements (like `print`, `raise`, `with`) to Python's syntax?
Say, to allow..
mystatement "Something"
Or,
new_if True:
print "example"
Not so much if you *should*, but rather if it's possible (short of modifying the python interpreters code) | 0 | [
2,
92,
42,
3547,
78,
9015,
20,
20059,
22,
18,
22649,
60,
800,
3726,
3726,
92,
42,
3547,
78,
9015,
13,
5,
1403,
13,
1,
10299,
1,
15,
13,
1,
525,
2628,
1,
15,
13,
1,
1410,
1,
6,
20,
20059,
22,
18,
22649,
60,
395,
15,
20,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a pattern for adding "options" to a class?
===
I have a class on which I want to allow several (~20+) configuration options.
Each option turns on or off a piece of functionality, or otherwise alters operations.
To facilitate this, I coded a separate options class with default values. However, I had to litter my code with guard conditions to determine how methods should behave. I am almost done, but now the code seems to smell.
Is there a preferred method/pattern to implement a class like this?
| 0 | [
2,
25,
80,
21,
3732,
26,
4721,
13,
7,
25458,
4710,
7,
20,
21,
718,
60,
800,
3726,
3726,
31,
57,
21,
718,
27,
56,
31,
259,
20,
1655,
238,
13,
5,
1,
1323,
2430,
6,
8091,
6368,
9,
206,
4255,
2844,
27,
54,
168,
21,
1855,
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 hide directories in Apache, specifically source-control?
===
I want to keep my website/s in version control (Subversion specifically) and use `svn co` to update it when there are stable versions to update, but I'm concerned about the security of doing so, as all the `.svn` folders will be public, and these include all sorts of private data, not least of which is complete source code to my website!
Is there anything I can I do to prevent this? | 0 | [
2,
184,
107,
31,
3077,
559,
1596,
19,
17140,
15,
3524,
1267,
8,
12898,
60,
800,
3726,
3726,
31,
259,
20,
643,
51,
2271,
118,
18,
19,
615,
569,
13,
5,
7563,
10898,
3524,
6,
17,
275,
13,
1,
18,
16578,
326,
1,
20,
11100,
32,
76... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how to handle 100mb uploads for users.
===
i've been approached to create a bespoke ftp app that users will download in order to be able to upload video files ( up to 100mb).
- they want it to be idiot proof ( ie easy for non-computer literate people ). I'm assuming that setting up an ftp app like FileZilla with their username and password would be too much of a stretch for most users.
- cross platform ( ouch )
Surely i'm not the first person that has approached the problem of how to enable users to upload huge files. Wondering if anyone can give me any tips. | 0 | [
2,
184,
20,
3053,
808,
5024,
71,
8294,
18,
26,
3878,
9,
800,
3726,
3726,
31,
22,
195,
74,
4132,
20,
1600,
21,
44,
3401,
8416,
1187,
306,
4865,
30,
3878,
129,
7121,
19,
389,
20,
44,
777,
20,
71,
8294,
763,
6488,
13,
5,
71,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you determine html clicked on with javascript?
===
Is it possible, with Javascript or some other technology to determine which hyperlink a user has clicked on, without changing the hyperlink source code.
For example:
Can you click on a 'tag' button, then click on a hyperlink hosted in a different iframe, and be able to calculate which hyperlink the user clicked on, without changing any of the source code in that iframe? | 0 | [
2,
184,
107,
42,
3746,
13,
15895,
15802,
27,
29,
8247,
8741,
60,
800,
3726,
3726,
25,
32,
938,
15,
29,
8247,
8741,
54,
109,
89,
1099,
20,
3746,
56,
5443,
6258,
21,
4155,
63,
15802,
27,
15,
366,
4226,
14,
5443,
6258,
1267,
1797,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 prevent crash when a referenced assembly isn't found?
===
I have a small command line program that uses the Team System API. When the correct Team System isn't installed on the machine, the program prints a traceback with System.IO.FileNotFoundException, but it also **crashes** and shows the standard error messasge:
> XXX has encountered a problem and
> needs to close. We are sorry for the
> inconvenience.
I just want my program to print a "The program requires Team System 2008" message to the console and quit without crashing.
From what I understand this whole loading process is happening before the first line of my C# code is run. Is there any way to control this? | 0 | [
2,
184,
20,
2501,
4597,
76,
21,
17571,
1475,
2532,
22,
38,
216,
60,
800,
3726,
3726,
31,
57,
21,
284,
1202,
293,
625,
30,
2027,
14,
173,
329,
21,
2159,
9,
76,
14,
4456,
173,
329,
2532,
22,
38,
4066,
27,
14,
1940,
15,
14,
625... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Defining point of functional programming
===
I can enumerate many features of functional programming, but when my friend asked me Could you define functional programming for me? I couldn't. | 0 | [
2,
14684,
454,
16,
7652,
3143,
800,
3726,
3726,
31,
92,
26940,
62,
151,
967,
16,
7652,
3143,
15,
47,
76,
51,
860,
411,
55,
110,
42,
9267,
7652,
3143,
26,
55,
60,
31,
711,
22,
38,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
I'm getting a NullPointerException when accessing static constraints
===
The code
${personRequest.constraints.requestStatus.inList}
in my gsp file throws a NullPointerException, but "new PersonRequest().constraints..." works. Why? Isn't constraints static?
| 0 | [
2,
31,
22,
79,
1017,
21,
16203,
3132,
106,
10066,
872,
76,
1381,
68,
12038,
16747,
800,
3726,
3726,
14,
1797,
5579,
1,
7276,
99,
10351,
9,
12124,
11809,
38,
18,
9,
99,
10351,
10631,
267,
9,
108,
5739,
1,
19,
51,
489,
3401,
3893,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Do you prefer explicit namespaces or 'using' in C++?
===
When using C++ namespaces, do you prefer to explicitly name them, like this:
std::cout << "Hello, world!\n";
Or do you prefer `using namespace`:
using namespace std;
cout << "Hello, world!\n";
And if if you prefer the latter, do you declare your usings at file or function scope?
Personally I prefer to explicitly name them - it's more typing but when using a mixture of namespaces (e.g. `std` and `boost`) I find it more readable. | 0 | [
2,
107,
42,
6369,
14990,
204,
5582,
18,
54,
13,
22,
12655,
22,
19,
272,
20512,
60,
800,
3726,
3726,
76,
568,
272,
20512,
204,
5582,
18,
15,
107,
42,
6369,
20,
13108,
204,
105,
15,
101,
48,
45,
354,
43,
45,
45,
150,
1320,
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... |
[Oracle] - Alternatives to Toad
===
I'm currently using [Toad][1] for my day-to-day work on our databases (queries, updates, small scripts, browsing of db objects, etc.).
My question is: since my version of Toad is old and buggy, which are the (possibly free, but not necessarily) alternatives to Toad?
The database versions we are using are 10g and 9i.
Thanks a lot.
[1]: http://www.toadsoft.com/ | 0 | [
2,
636,
6055,
5615,
500,
13,
8,
2676,
18,
20,
20,
1283,
800,
3726,
3726,
31,
22,
79,
871,
568,
636,
262,
1283,
500,
2558,
165,
500,
26,
51,
208,
8,
262,
8,
1185,
170,
27,
318,
6018,
18,
13,
5,
2005,
2829,
15,
16779,
15,
284,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 manage noise in teams room?
===
Very often, my coworkers engage in silly discussions about general topics not related to the work making **a lot of noise in the teams room.** This distracts all the developers in the room, making then **loosing focus and productivity.**
I know that socialize and exchange general informations in the work is healthy.... But I think to much of it isn't good at all.
So, how to handle this situation?
- Should the boss rule over then and force every one to bee quite in the working room?
- Should we have a separeta time (maybe lunch) when it is aloud to chat?
- Do you experience that in you work? It was solved? How?
Do you guys have any creative idea how to manage this situation like a real leader should do? | 0 | [
2,
184,
20,
4705,
3406,
19,
952,
337,
60,
800,
3726,
3726,
253,
478,
15,
51,
326,
16355,
7479,
19,
10752,
11139,
88,
297,
7569,
52,
1597,
20,
14,
170,
544,
13,
1409,
58,
865,
16,
3406,
19,
14,
952,
337,
9,
1409,
48,
15910,
18,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Dilemma about image cropping algorithm - is it possible?
===
I am a new member here. I'd just like to say this forum is great, before I continue. I'm also not sure where to post this as it comes under several categories.
Anyway, I am building a web application using .NET 3.5 (ASP.NET, SQL Server, C#, WCF, WF, etc) and I have run into a major design dilemma. This is a uni project btw, but it is 100% up to me what I develop.
I need to design a system whereby I can take an image and automatically crop a certain object within it, without user input. So for example, cut out the car in a picture of a road. I've given this a lot of thought, and I can't see any feasible method. I guess this thread is to discuss the issues and feasibility of achieving this goal. Eventually, I would get the dimensions of a car (or whatever it may be), and then pass this into a 3d modelling app (custom) as parameters, to render a 3d model. This last step is a lot more feasible. It's the cropping issue which is an issue. I have thought of all sorts of ideas, like getting the colour of the car and then the outline around that colour. So if the car (example) is yellow, when there is a yellow pixel in the image, trace around it. But this would fail if there are two yellow cars in a photo.
Ideally, I would like the system to be completely automated. But I guess I can't have everything my way. Also, my skills are in what I mentioned above (.NET 3.5, SQL Server, AJAX, web design) as opposed to C++ but I would be open to any solution just to see the feasibility.
I also found this: http://www.patentstorm.us/patents/7034848.html
Discuss,
Thanks
| 0 | [
2,
23314,
88,
1961,
4880,
5574,
9083,
13,
8,
25,
32,
938,
60,
800,
3726,
3726,
31,
589,
21,
78,
322,
235,
9,
31,
22,
43,
114,
101,
20,
395,
48,
5691,
25,
374,
15,
115,
31,
1816,
9,
31,
22,
79,
67,
52,
562,
113,
20,
678,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 strategy for team room music?
===
Members of my team often dislike the music taste of others. All they can agree on for a while is radio, but all are kinda dissatisfied by that. And there are members who can't concentrate at all when there's music. Headphones for everyone? Any other idea? (no, not put them in different rooms, b/c they're supposed to be a team!)
| 0 | [
2,
98,
22,
18,
14,
246,
4427,
26,
173,
337,
232,
60,
800,
3726,
3726,
443,
16,
51,
173,
478,
18686,
14,
232,
3576,
16,
654,
9,
65,
59,
92,
4524,
27,
26,
21,
133,
25,
603,
15,
47,
65,
50,
21096,
27375,
34,
30,
9,
17,
80,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Dynamically bind data to dropdownlist in asp.net mvc
===
How to dynamically bind data to <%Html.Dropdownlist.... in asp.net MVC?
Regards,
Ambika | 0 | [
2,
7782,
1326,
10193,
1054,
20,
2804,
2968,
5739,
19,
28,
306,
9,
2328,
307,
8990,
800,
3726,
3726,
184,
20,
7782,
1326,
10193,
1054,
20,
13,
1,
11881,
15895,
9,
12361,
2968,
5739,
9,
9,
9,
9,
19,
28,
306,
9,
2328,
307,
8990,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
The located assembly's manifest definition does not match the assembly reference
===
I am trying to run some unit tests in a C# winforms application (VS 2005) and i get the following erorr:
**System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)**
**at x.Foo.FooGO()
at x.Foo.Foo2(String groupName_) in Foo.cs:line 123
at x.Foo.UnitTests.FooTests.TestFoo() in FooTests.cs:line 98**
**System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.203, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)**
I look in my references and i only have a reference to Utility version 1.2.0.203 (the other one is old)
Any suggestions on how i figure out what is trying to reference this old version of this dll?
thks,
ak
| 0 | [
2,
14,
335,
1475,
22,
18,
13160,
5465,
630,
52,
730,
14,
1475,
2801,
800,
3726,
3726,
31,
589,
749,
20,
485,
109,
1237,
4894,
19,
21,
272,
5910,
628,
4190,
18,
3010,
13,
5,
710,
18,
812,
6,
17,
31,
164,
14,
249,
13,
5103,
59... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
One Rails application, several domain names
===
I want to point several domain names to the same Rails application. The content is different for each domain, but the functionality and the structure of the application is the same.
What is the best way to do this when it comes to server set up and routing? I will use nginx as a web server. | 0 | [
2,
53,
2240,
18,
3010,
15,
238,
4603,
1817,
800,
3726,
3726,
31,
259,
20,
454,
238,
4603,
1817,
20,
14,
205,
2240,
18,
3010,
9,
14,
2331,
25,
421,
26,
206,
4603,
15,
47,
14,
18548,
17,
14,
1411,
16,
14,
3010,
25,
14,
205,
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... |
C# : Character do not display well when in Console, why?
===
The picture below explain all:
![alt text][1]
The variable textInput come from <code>File.ReadAllText(path);</code> and all character like : ' é è ... do not display. When I run my UnitTest, all is fine! I see them... Why?
[1]: http://img133.imageshack.us/img133/4206/accentar9.png | 0 | [
2,
272,
5910,
13,
45,
925,
107,
52,
3042,
134,
76,
19,
8650,
15,
483,
60,
800,
3726,
3726,
14,
2151,
1021,
3271,
65,
45,
13,
187,
2558,
192,
38,
1854,
500,
2558,
165,
500,
14,
7612,
1854,
108,
4881,
340,
37,
13,
1,
9375,
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... |
connecting web parts in sharepoint
===
i am trying to connect to simple webparts in my sharepoint team site, i need one of the webparts to filter its information based on what it recieves from another webpart
I am using the query string filter webpart and the a list view webpart
but no matter how i connect them always i am getting this error
"Web Part Error: This page has exceeded its data fetch limit for connected Web Parts. Try disconnecting one or more Web Parts to correct the problem."
what should i do and what i am doing wrong
thanks for help and sorry for sounding like a noob | 0 | [
2,
6440,
2741,
1341,
19,
1891,
3132,
800,
3726,
3726,
31,
589,
749,
20,
6379,
20,
1935,
2741,
3091,
18,
19,
51,
1891,
3132,
173,
689,
15,
31,
376,
53,
16,
14,
2741,
3091,
18,
20,
11945,
82,
676,
432,
27,
98,
32,
302,
10486,
19... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Efficient Image Thumbnail Control for Python?
===
What is the best choice for a Python GUI application to display large number of thumbnails, e.g. 10000 or more? For performance reasons such thumbnail control must support virtual items, i.e. request application for those thumbnails only which are currently visible to user. | 0 | [
2,
8243,
1961,
5078,
325,
947,
569,
26,
20059,
60,
800,
3726,
3726,
98,
25,
14,
246,
1837,
26,
21,
20059,
9457,
3010,
20,
3042,
370,
234,
16,
5078,
325,
947,
18,
15,
13,
62,
9,
263,
9,
332,
3993,
54,
91,
60,
26,
956,
2932,
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... |
ViewState error points in site.master
===
I just added asp.net calendar control in new page under sample folder in asp.net mvc beta application. when i execute the particaular page that i need and it shows the error following
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
that points to here . It's in site.master of asp.net mvc
<div id="logindisplay">
<% Html.RenderPartial("LoginUserControl"); %>
</div>
usually to avoid this error, we give
<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" >
but, it doesn't work for me.
pls help me.
Regards,
Ambika
| 0 | [
2,
1418,
3859,
7019,
819,
19,
689,
9,
4594,
800,
3726,
3726,
31,
114,
905,
28,
306,
9,
2328,
7036,
569,
19,
78,
2478,
131,
5717,
19294,
19,
28,
306,
9,
2328,
307,
8990,
8434,
3010,
9,
76,
31,
15644,
14,
141,
2862,
7451,
2478,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Custom swing component - Turning a node into text
===
I'm writing a custom swing component (something completely new, but think JTree or JList). I'm trying to follow the general design of JTree, JTable, JList etc for consistency (I've also seen various poor 3rd party components abandon the separable model and/or renderer approach).
So, I have a model full of nodes, the component itself and a renderer. At some point the node has to be turned into text and displayed by a renderer. I'm not clear on the best way to do this:
* Pass the node itself (as Object) to the renderer, and let the renderer decide how to display it.
- This is how JList does it.
- Requires a customised renderer just to change the text.
- Allows great flexibility in how to display the node (doesn't even have to be text).
* Pass the node itself (as Object) to the renderer, but have a convertValueToText() method in the component class.
- This is how JTable does it.
- Renderers can be just as flexibile as before - don't *have* to use this method.
- Have to override component to change the text transformation.
* As above, but delegate convertValueTotext() to the model.
- This is how JXTable does it.
- The model is probably the best place for this method - and it's easier to override there.
I don't want to have to customise the renderer just to change the text, but I'd like to be *able* to customise the renderer to do more than display a model-displayed string (else why bother with renderers). I really don't like the fact that JXTable uses reflection to look for convertValueToText() in the model - this smells of bad magic to me.
Can anyone shed any light on this oft-neglected part of Swing? | 0 | [
2,
5816,
5587,
5912,
13,
8,
2101,
21,
15421,
77,
1854,
800,
3726,
3726,
31,
22,
79,
1174,
21,
5816,
5587,
5912,
13,
5,
9099,
1524,
78,
15,
47,
277,
487,
8101,
54,
487,
5739,
6,
9,
31,
22,
79,
749,
20,
1740,
14,
297,
704,
16,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best way to become familiar with a large codebase?
===
Joining an existing team with a possibly-large codebase already in place can be daunting. What's the best approach;
- Broad; try to get a general overview of how everything links together, from the code
- Narrow; focus on small sections of code at a time, understanding how they work fully
- Pick a feature to develop and learn as you go along
- Try to gain insight from class diagrams and uml, if available (and up to date)
- Something else entirely?
I'm a university student working with 5 others on what is currently an approx 20k line C++ app & library. In industry I imagine you'd get an introduction by someone more familiar. However is this is not the case, what can you do yourself to get get coding as quickly as possible? | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
533,
3694,
29,
21,
370,
1797,
8436,
60,
800,
3726,
3726,
3765,
40,
3149,
173,
29,
21,
2879,
8,
11312,
1797,
8436,
614,
19,
209,
92,
44,
13,
43,
13047,
68,
9,
98,
22,
18,
14,
246,
2141,
73,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using a Mac for crossplatform development?
===
I was wondering if there was anyone out there using their Mac for cross platform development, by cross platform I essentially mean you can compile to target windows or *nix (not necessarily both at the same time). I understand that this also has a lot to do with writing portable code, but I am more interested in people's experience with OSX to develop software.
I understand that there are a range of IDE's to choose from, I would probably use Eclipse (I like the gcc toolchain) however XCode seems to be quite popular. Could it be used as described above? At a pinch I could always virtualise with virtualbox or vmware or parallels to use visual studio (or dual boot for that matter). Having said that I am open to any other suggested compilers (with preferably an IDE that uses gcc)
Also with the range of Macs available, which one would you recommend? I would prefer a laptop (as I already have a desktop) but am unsure of reasonable specs.
If you are currently using a Mac to do development, I would love to hear what you develop on your mac and what you like and don't like about it.
I would primarily be developing in C/C++/Java. I am also looking to experiment with boost and Qt, so I'm interested in hearing about any (potential) compatibility issues.
If you have any other tips I'd love you hear what you have to say.
Thanks!
| 0 | [
2,
568,
21,
1572,
26,
919,
27035,
522,
60,
800,
3726,
3726,
31,
23,
5712,
100,
80,
23,
1276,
70,
80,
568,
66,
1572,
26,
919,
2452,
522,
15,
34,
919,
2452,
31,
7398,
884,
42,
92,
26561,
20,
2935,
1936,
54,
1637,
14064,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Scatter Plots in C++
===
What is the best way to graph scatter plots in C++?
Do you write data to a file and use another tool? Is there a library like matplotlib in Python? | 0 | [
2,
27465,
18205,
19,
272,
20512,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
7210,
27465,
18205,
19,
272,
20512,
60,
107,
42,
2757,
1054,
20,
21,
3893,
17,
275,
226,
5607,
60,
25,
80,
21,
1248,
101,
4277,
13221,
38,
8326,
19,
200... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Rails: Sorting a query by params?
===
I am using running a simple find all and paginating with willpaginate, but I'd also like to have the query sorted by the user. The first solution that came to mind was just use a params[:sort]
http://localhost:3000/posts/?sort=created_at+DESC
@posts = Post.paginate :page => params[:page], :order => params[:sort]
But the problem with his approach is that the query is defaulting as sorting by ID and I want it to be created_at.
Is this a safe approach to sorting and is there a way to default to created_at?
| 0 | [
2,
2240,
18,
45,
2058,
68,
21,
25597,
34,
2258,
79,
18,
60,
800,
3726,
3726,
31,
589,
568,
946,
21,
1935,
477,
65,
17,
19006,
108,
1880,
29,
129,
1060,
263,
17939,
15,
47,
31,
22,
43,
67,
101,
20,
57,
14,
25597,
22554,
34,
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... |
referencing a javascript file on every page in ASP.NET 1.1
===
I have an old ASP.NET 1.1 site that I am maintaining. We are working with Google to place analytics code on all pages. Since I can't take advantage of master pages in 1.1, I have my pages include headers/footers/sidebars with usercontrols.
What came to mind first is to place the javascript in my footer ascx control so it appears on every page. But I don't think I can link to a javascript file from a user control.
Any ideas on what I can do to get this js code placed on every page in my site? | 0 | [
2,
13,
29254,
21,
8247,
8741,
3893,
27,
352,
2478,
19,
28,
306,
9,
2328,
137,
9,
165,
800,
3726,
3726,
31,
57,
40,
315,
28,
306,
9,
2328,
137,
9,
165,
689,
30,
31,
589,
8215,
9,
95,
50,
638,
29,
8144,
20,
209,
26320,
1797,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
xkill equivalent fow Windows
===
My question is quite simple: Is there a reliable equivalent of xkill for Windows? | 0 | [
2,
993,
7577,
4602,
398,
3581,
1936,
800,
3726,
3726,
51,
1301,
25,
1450,
1935,
45,
25,
80,
21,
11398,
4602,
16,
993,
7577,
26,
1936,
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... | [
1,
1,
1,
1,
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... |
Path '/forum/default.asp' is forbidden
===
I have an ASP.NET 2.0 web app and part of the structure still has some legacy ASP under the folder /forum/. I haven recently moved my dev environment to a new machine and am now getting:
Path '/forum/default.asp' is forbidden
when trying to open a page with a .asp extension under the Cassini environment. Any ideas what could be causing this? | 0 | [
2,
2013,
13,
22,
118,
1106,
723,
118,
13862,
9708,
9,
472,
306,
22,
25,
11369,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
172,
9,
387,
2741,
4865,
17,
141,
16,
14,
1411,
174,
63,
109,
7780,
28,
306,
131,
14,
19294,
13,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What steps do you take to increase performance of a Sharepoint site?
===
Sharepoint isn't the speediest of server applications, and I've read about a few tips to speed it up. What steps do you think are necessary to increase performance so it can be used to host a high traffic site? | 0 | [
2,
98,
2382,
107,
42,
247,
20,
1839,
956,
16,
21,
1891,
3132,
689,
60,
800,
3726,
3726,
1891,
3132,
2532,
22,
38,
14,
1362,
10727,
16,
8128,
3767,
15,
17,
31,
22,
195,
1302,
88,
21,
310,
11034,
20,
1362,
32,
71,
9,
98,
2382,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.NET Membership for high security scenarios?
===
is the asp.net membership system used over wcf (transport security turned on) enough for high security internet scenarios wit thousands of clients spread all over the internet?
i'm just evaluating possible solutions and wanted to know if this might fit in this category.
if not, what would be the best method to provide high security access over wcf for internet scenarios? | 0 | [
2,
28,
306,
9,
2328,
4363,
26,
183,
1221,
19611,
60,
800,
3726,
3726,
25,
14,
28,
306,
9,
2328,
4363,
329,
147,
84,
11801,
410,
13,
5,
7028,
1993,
1221,
412,
27,
6,
511,
26,
183,
1221,
2620,
19611,
9642,
3805,
16,
7421,
1789,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
wxpython - Expand list control vertically not horizontally
===
I have a ListCtrl that displays a list of items for the user to select. This works fine except that when the ctrl is not large enough to show all the items, I want it to expand downwards with a vertical scoll bar rather than using a horizontal scroll bar as it expands to the right.
The ListCtrl's creation:
self.subjectList = wx.ListCtrl(self, self.ID_SUBJECT, style = wx.LC_LIST | wx.LC_SINGLE_SEL | wx.LC_VRULES)
Items are inserted using wx.ListItem:
item = wx.ListItem()
item.SetText(subject)
item.SetData(id)
item.SetWidth(200)
self.subjectList.InsertItem(item) | 0 | [
2,
619,
396,
6448,
11570,
13,
8,
6073,
968,
569,
23300,
52,
25658,
800,
3726,
3726,
31,
57,
21,
968,
4812,
6362,
30,
9412,
21,
968,
16,
3755,
26,
14,
4155,
20,
5407,
9,
48,
693,
1123,
1613,
30,
76,
14,
13,
4812,
6362,
25,
52,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Dynamically change the xml file location that flash loads using c#
===
Can someone tell me how i can change the .xml file that a flash movie loads using c#. ie: i would like an ActionScript variable that defines the location of the flash movie. I would like to be able to change this variable using c# if possible.
i dont really know how it would look, but something like:
<object xmlpath='" + myCSharpVar + "'" ...></object>
I just starting this, but my ultimate goal is to create a .swf movie that can load an xml file that specifies images, etc. However i want to use the same .swf file in multiple places and only have to change a ref to what xml file it uses - and my Flash/ActionScript skills are very rusty. | 0 | [
2,
7782,
1326,
753,
14,
23504,
3893,
1474,
30,
4433,
19069,
568,
272,
5910,
800,
3726,
3726,
92,
737,
494,
55,
184,
31,
92,
753,
14,
13,
9,
396,
8184,
3893,
30,
21,
4433,
1308,
19069,
568,
272,
5910,
9,
13,
660,
45,
31,
83,
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... |
Why seal Predicate<>?
===
I wanted to derive a class from Predicate<IMyInterface>, but it appears as if Predicate<> is sealed. In my case I wanted to simply return the inverted (!) result of the designated function. I have other ways to accomplish the goal. My question is what might the MS designers have been thinking when deciding to seal Predicate<>?
Without much thought I came up with:
(a) simplified their testing, just a time vs cost trade off
(b) "no good" could come from deriving from Predicate<>
What do you think? | 0 | [
2,
483,
6536,
28712,
1,
60,
800,
3726,
3726,
31,
417,
20,
20576,
21,
718,
37,
28712,
1,
49,
915,
6280,
6413,
1,
15,
47,
32,
1780,
28,
100,
28712,
1,
25,
10854,
9,
19,
51,
610,
31,
417,
20,
1659,
788,
14,
22442,
13,
5,
187,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JSON call + .net works in debug mode on inbuilt web server but not by going to virtual dir directly
===
I have the following javascript:
$.ajax({ <BR>
type: "POST", <BR>
dataType: "json",<BR>
url: "/Home/Submit",<BR>
data: { email: strEmail, message: strMessage },<BR>
success: function(result) <BR>
{<BR>
//alert('here');<BR>
alert(result.message);<BR>
},<BR>
error: function(error) {<BR>
alert(error);<BR>
}<BR>
});<BR>
<BR>
This makes a call to this function:<BR>
<BR>
public JsonResult Submit(string Email, string Message)<BR>
{<BR>
<BR>
return Json(new {message="yep"});<BR>
}<BR>
This works fine in debug mode on the inbuilt webserver.
However if I go to the virtual dir directly it does not and hits the error bit. I attached to the process and the code behind never gets hit.
I am using Vista.
Additionally how do you get the error description in the bit where it says alert(error);
Thanks,
Alex | 0 | [
2,
487,
528,
645,
2754,
13,
9,
2328,
693,
19,
121,
16254,
3740,
27,
19,
8607,
2741,
8128,
47,
52,
34,
228,
20,
6599,
13,
9035,
1703,
800,
3726,
3726,
31,
57,
14,
249,
8247,
8741,
45,
5579,
9,
6881,
7522,
5,
1,
13,
1,
5145,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sitecore's "Latest" Item
===
A general architecture question in Sitecore 6...
Let’s say we have a situation where we have 10,000 items implementing a “Press Release” template. These items are stored in Sitecore at */sitecore/content/home/press/**. On our homepage, we’d like to display some information concerning the 3 most recent press releases.
We’re looking to construct something equivalent to SQL’s:
SELECT TOP 3 * FROM PressReleases ORDER BY ReleaseDate
Reading through the Sitecore query documentation, it sounds like the majority of this query must be handled in our C# application. Something like:
public Item[] GetRecentPressReleases()
{
string query = "/sitecore/content/home/press/*";
Item[] items = Sitecore.Context.Database.SelectItems(query);
Array.Sort(items, new PressReleaseDateComparer());
return items.Take(3).ToArray();
}
It would seem that loading 10,000 Sitecore items from the database into memory and then sorting them every time our homepage is hit would be unacceptable from a performance perspective.
Is there a more efficient way to express this query? Or should I be focused on output caching or precalculating? | 0 | [
2,
689,
10375,
22,
18,
13,
7,
6554,
384,
7,
9101,
800,
3726,
3726,
21,
297,
2607,
1301,
19,
689,
10375,
400,
9,
9,
9,
408,
1,
18,
395,
95,
57,
21,
1858,
113,
95,
57,
6693,
3755,
17333,
21,
13,
1,
5890,
830,
1,
22894,
9,
15... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get the contents of a string minus the right 4 chars?
===
for example, I want just the "filename" of a file in a field. Say I have myimage.jpg I only want to display "myimage" How do I get just that? | 0 | [
2,
184,
107,
31,
164,
14,
8478,
16,
21,
3724,
13,
15495,
14,
193,
268,
4892,
18,
60,
800,
3726,
3726,
26,
823,
15,
31,
259,
114,
14,
13,
7,
16877,
7259,
7,
16,
21,
3893,
19,
21,
575,
9,
395,
31,
57,
51,
22039,
9,
12851,
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... |
what are some resources to learn about copyright law?
===
I once heard a prominent scientist say, of global warming, that he didn't realize how much he would have to learn about politics.
I just read an excellent article in DDJ about the [Jacobsen verus Katzer][1] case. When in university, I didn't know how much ***I*** would have to learn about the law.
It seems to me that a big hole in the classic comp sci education is that of legal issues. Many of us talk about licenses, copyright, copyleft, prior art, etc, but our terms are often vague and probably inaccurate.
What are some resources where the average developer can learn about copyright law and become an informed citizen of IT?
[1]: http://en.wikipedia.org/wiki/Jacobsen_v._Katzer | 0 | [
2,
98,
50,
109,
2566,
20,
2484,
88,
8398,
451,
60,
800,
3726,
3726,
31,
382,
752,
21,
2357,
6415,
395,
15,
16,
2062,
15075,
15,
30,
24,
223,
22,
38,
4007,
184,
212,
24,
83,
57,
20,
2484,
88,
2634,
9,
31,
114,
1302,
40,
5977,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Changing Win32 menu colors
===
Is there a way to change the colors used by plain Win32 menus (background, text, and highlight) for a single process, *without* using SetSysColors?
(SetSysColors does a global change, which is bad, and if you crash or forget to set the colors back with SetSysColors again before exiting, they will not be restored until you logout.) | 0 | [
2,
4226,
628,
3125,
11379,
5268,
800,
3726,
3726,
25,
80,
21,
161,
20,
753,
14,
5268,
147,
34,
3748,
628,
3125,
11379,
18,
13,
5,
1958,
8810,
15,
1854,
15,
17,
14373,
6,
26,
21,
345,
953,
15,
1637,
14506,
2483,
568,
3415,
93,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get a MethodInfo in the ThreadContext class?
===
I'm trying this:
Type ThreadContextType = typeof(Application).GetNestedType("ThreadContext", System.Reflection.BindingFlags.NonPublic);
System.Reflection.MethodInfo FDoIdleMi = ThreadContextType.GetMethod("FDoIdle", System.Reflection.BindingFlags.NonPublic |
System.Reflection.BindingFlags.Instance, null, new Type[] { typeof(Int32) }, null);
ThreadContextType is ok but FDoIdleMi is null. I know there is something wrong in the GetMethod call because FDoIdle comes from the UnsafeNativeMethods.IMsoComponent interface.
How to do that? Thanks. | 0 | [
2,
184,
20,
164,
21,
2109,
108,
4120,
19,
14,
9322,
1126,
11969,
718,
60,
800,
3726,
3726,
31,
22,
79,
749,
48,
45,
1001,
9322,
1126,
11969,
4474,
800,
1001,
1041,
5,
2552,
20669,
6,
9,
3060,
2696,
1427,
4474,
5,
7,
96,
10647,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Extension method output in Container.DataItem?
===
So I have an IList of business entities that I loop through in a ListView into an unordered list. I created an extension method on this Entity in my presentation layer. In code behind, I can Response.Write the result of this extension method, but when I try to access it through the ListView I get an error. The method is called IsCurrent and returns a bool... Here is my code:
<li><%#((CB.CMSFramework.WebPage)Container.DataItem).IsCurrent(Guid.Empty) %></li>
The error I get is: 'CB.CMSFramework.WebPage' does not contain a definition for 'IsCurrent' and no extension method 'IsCurrent' accepting a first argument of type 'CB.CMSFramework.WebPage' could be found (are you missing a using directive or an assembly reference?)
However... I get no error when I do this type of code from code behind:
WebPage w = new WebPage();
Response.Write(w.IsCurrent(Guid.Empty)); | 0 | [
2,
3896,
2109,
5196,
19,
12147,
9,
18768,
2119,
79,
60,
800,
3726,
3726,
86,
31,
57,
40,
31,
5739,
16,
508,
12549,
30,
31,
5293,
120,
19,
21,
968,
4725,
77,
40,
367,
7861,
69,
968,
9,
31,
679,
40,
3896,
2109,
27,
48,
9252,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I hide the middle of a table using jQuery?
===
I have a really long 3 column table. I would like to
<table>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Start</td><td>Hiding</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>End</td><td>Hiding</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
<tr><td>Column1</td><td>Column2</td></tr>
</table>
This is the result I'm trying to obtain using jQuery.
Column1 Column2
Column1 Column2
...Show Full Table...
Column1 Column2
Column1 Column2
I would like to use jQuery's show/hide feature to minimize the table but still show part of the top and bottom rows. The middle rows should be replace with text like "Show Full Table" and when clicked will expand to show the full table from start to finish.
What is the best way to do this in jQuery?
BTW I've already tried adding a class "Table_Middle" to some of the rows but it doesn't hide it completely the space it occupied is still there and I don't have the text to give the user a way to expand the table fully.
| 0 | [
2,
184,
107,
31,
3077,
14,
772,
16,
21,
859,
568,
487,
8190,
93,
60,
800,
3726,
3726,
31,
57,
21,
510,
175,
203,
4698,
859,
9,
31,
83,
101,
20,
13,
1,
5924,
1,
13,
1,
6384,
1,
38,
43,
1,
716,
4404,
103,
165,
1,
118,
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... |
What activities is a wiki not suitable for?
===
[I'd asked a question][1] a while back about ways to encourage my team to collaborate. The tool we use is a wiki. Since this is the first time we are using the wiki (formally and as a team), we are learning by committing mistakes.
One of the lessons has been that a wiki isn't suitable for tracking activities. It is better to use a tool built for-the-job (*will elaborate if necessary*).
Are there other such anti-patterns? What stuff would you recommend NOT using a wiki for?
[1]: http://stackoverflow.com/questions/110442/how-do-you-build-a-culture-of-collaboration-in-your-team | 4 | [
2,
98,
1648,
25,
21,
13,
17375,
52,
6445,
26,
60,
800,
3726,
3726,
636,
49,
22,
43,
411,
21,
1301,
500,
2558,
165,
500,
21,
133,
97,
88,
2847,
20,
8333,
51,
173,
20,
19884,
9,
14,
5607,
95,
275,
25,
21,
13,
17375,
9,
179,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 repository products are available for keeping track of web services?
===
My organization is starting to take SOA seriously but before we jump in one of the components we seem to be missing is a rock solid repository for tracking these services across the enterprise. Can anyone suggest a product that they have worked with? If the product is also an ESB please mention that in your answer. | 0 | [
2,
98,
24869,
1985,
50,
904,
26,
2882,
792,
16,
2741,
687,
60,
800,
3726,
3726,
51,
1165,
25,
1422,
20,
247,
86,
58,
4818,
47,
115,
95,
3936,
19,
53,
16,
14,
5090,
95,
2260,
20,
44,
2863,
25,
21,
629,
2941,
24869,
26,
10353,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Error creating xercesc dom parser object
===
I am trying to create an Xercesc DOM Parser in my code and for some reason and try to instiate an XercescDOM object I get a NULL pointer returned. I am using xercesc version 2.8
Here the code.
using namespace xercesc;
int main(int argc, char*argv[])
{
try
{
XMLPlatformUtils::Initialize();
}
catch (const XMLException& e)
{
char* errMsg = XMLString::transcode(e.getMessage());
cout << "Problem initializing parser: " << errMsg;
XMLString::release(&errMsg);
}
XercesDOMParser* parser = new XercesDOMParser();
if (!parser)
cout << "Failed to create parser";
}
| 0 | [
2,
7019,
2936,
993,
106,
5052,
150,
11859,
2017,
4104,
3095,
800,
3726,
3726,
31,
589,
749,
20,
1600,
40,
993,
106,
5052,
150,
11859,
2017,
4104,
19,
51,
1797,
17,
26,
109,
1215,
17,
1131,
20,
19,
5509,
1373,
40,
993,
106,
5052,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
OpenId for gmail
===
Anybody know how to get OpenID working on gmail? All I find is this http://openid-provider.appspot.com/, which gives 302 moved followed by GET not supported on this URL.
I'm assuming this one is broken. Any others? | 0 | [
2,
368,
1340,
26,
489,
8079,
800,
3726,
3726,
11181,
143,
184,
20,
164,
368,
1340,
638,
27,
489,
8079,
60,
65,
31,
477,
25,
48,
7775,
6903,
10157,
1340,
8,
26735,
139,
9,
7753,
18,
4296,
9,
960,
118,
15,
56,
2352,
13,
22863,
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... |
Threads per Processor
===
In Java, is there a programmatic way to find out how many concurrent threads are supported by a CPU? | 0 | [
2,
20396,
416,
14762,
800,
3726,
3726,
19,
8247,
15,
25,
80,
21,
625,
6732,
161,
20,
477,
70,
184,
151,
19513,
20396,
50,
1827,
34,
21,
17578,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
C# ListView Detail, Highlight a single cell
===
I'm using a ListView in C# to make a grid. I would like to find out a way to be able to highlight a specific cell, programatically. I only need to highlight one cell.
I've experimented with Owner Drawn subitems, but using the below code, I get highlighted cells, but no text! Are there any ideas on how to get this working? Thanks for your help.
//m_PC.Location is the X,Y coordinates of the highlighted cell.
void listView1_DrawSubItem(object sender, DrawListViewSubItemEventArgs e)
{
if ((e.ItemIndex == m_PC.Location.Y) && (e.Item.SubItems.IndexOf(e.SubItem) == m_PC.Location.X))
e.SubItem.BackColor = Color.Blue;
else
e.SubItem.BackColor = Color.White;
e.DrawBackground();
e.DrawText();
}
| 0 | [
2,
272,
5910,
968,
4725,
6110,
15,
14373,
21,
345,
1667,
800,
3726,
3726,
31,
22,
79,
568,
21,
968,
4725,
19,
272,
5910,
20,
233,
21,
7354,
9,
31,
83,
101,
20,
477,
70,
21,
161,
20,
44,
777,
20,
14373,
21,
1903,
1667,
15,
62... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Database design question - field or new table + many to many
===
I'm designing a database for an events management site - there is a table of venues and a table of events. Each event is in a venue (stores the venue's id) and each venue is in a city. It must be possible to search for event by city, should city be a field in the venues table (which could possibly result in duplicate cities due to misspellings) or should there be a table of cities (each with an id and a name) and a many-to-many table linking cities with venues (cityid, venueid)?
I know this is a pretty basic question, but I'm not really sure whether the extra join and extra two tables would be worth it or not.
Thanks in advance | 0 | [
2,
6018,
704,
1301,
13,
8,
575,
54,
78,
859,
2754,
151,
20,
151,
800,
3726,
3726,
31,
22,
79,
15026,
21,
6018,
26,
40,
963,
1097,
689,
13,
8,
80,
25,
21,
859,
16,
9771,
17,
21,
859,
16,
963,
9,
206,
807,
25,
19,
21,
5704,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
UUID mismatch detected with the loaded library
===
I get this warning at the console when I build and run my app in my device.
warning: UUID mismatch detected with the loaded library - on disk is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblockdown.dylib =uuid-mismatch-with-loaded-file,file="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblockdown.dylib
Anyone has this issue and managed to resolve the warning ? | 0 | [
2,
13,
19612,
1340,
2462,
12280,
11968,
29,
14,
8572,
1248,
800,
3726,
3726,
31,
164,
48,
3590,
35,
14,
8650,
76,
31,
1895,
17,
485,
51,
4865,
19,
51,
3646,
9,
3590,
45,
13,
19612,
1340,
2462,
12280,
11968,
29,
14,
8572,
1248,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you fix a Trac installation that begins giving errors relating to PYTHON_EGG_CACHE?
===
We've been using Trac for task/defect tracking and things were going well enough, but this morning it started serving up a 500 error. Looking in the Apache error_log, I get a stack trace that culminates in:
PythonHandler trac.web.modpython_frontend: ExtractionError: Can't extract file(s) to egg cache\n\nThe following error occurred while trying to extract file(s) to the Python egg\ncache:\n\n [Errno 13] Permission denied: '/.python-eggs'\n\nThe Python egg cache directory is currently set to:\n\n /.python-eggs\n\nPerhaps your account does not have write access to this directory? You can\nchange the cache directory by setting the PYTHON_EGG_CACHE environment\nvariable to point to an accessible directory
So I explicitly set PYTHON_EGG_CACHE to /srv/trac/plugin-cache. I restarted Apache. Yet I get the same error (it still says "egg cache directory current set to: \n\n /.python_eggs.")
How should I proceed? Is the simplest thing to do to reinstall Trac? If I go that route, what steps do I need to take to ensure that I don't lose existing data? | 0 | [
2,
184,
107,
42,
6098,
21,
13,
38,
5797,
7758,
30,
2661,
1438,
11908,
8456,
20,
20059,
1,
20564,
1,
793,
2569,
60,
800,
3726,
3726,
95,
22,
195,
74,
568,
13,
38,
5797,
26,
3005,
118,
546,
12768,
10353,
17,
564,
46,
228,
134,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sort arrays of primitive types in descending order
===
I've got a large array of primitive types (double).
How do I sort the elements in **descending order**?
Unfortunately the Java API doesn't support sorting of primitive types with a Comparator.
One workaround would be to sort and then reverse:
double[] array = new double[1048576];
...
Arrays.sort(array);
// reverse the array
for(int i=0;i<array.length/2;i++) {
// swap the elements
double temp = array[i];
array[i] = array[array.length-(i+1)];
array[array.length-(i+1)] = temp;
}
This is slow - particularly if the array is already sorted quite well.
What's a better alternative? | 0 | [
2,
2058,
7718,
18,
16,
11473,
2551,
19,
16526,
389,
800,
3726,
3726,
31,
22,
195,
330,
21,
370,
7718,
16,
11473,
2551,
13,
5,
14368,
6,
9,
184,
107,
31,
2058,
14,
2065,
19,
13,
1409,
3196,
150,
7601,
389,
1409,
60,
6200,
14,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Opinions about using memcachedb as a large-scale key-value store
===
We need to implement a large-scale key-value store (let's say up to 500GB) and BerkeleyDB seemed like it might be a decent option, but we would really like it to be network accessible. This led me to look at memcachedb. I haven't found much on the web where people talk about actual experiences with memcachedb, so my questions are, if you've used memcachedb:
- would you recommend using it for a large k-v store?
- if not, why not?
Thanks in advance!
Francis | 0 | [
2,
11900,
88,
568,
55,
4829,
9616,
9007,
28,
21,
370,
8,
5093,
1246,
8,
15165,
1718,
800,
3726,
3726,
95,
376,
20,
8713,
21,
370,
8,
5093,
1246,
8,
15165,
1718,
13,
5,
1336,
22,
18,
395,
71,
20,
3033,
11400,
6,
17,
8039,
9007,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Programmers understanding of Memory in the Vista Windows Task Manager
===
I know a fair bit about the Windows Task Manger in XP, but I would like to understand it better in Vista. What is the difference between "Working Set (Memory)" and "Memory (Private Working Set)". What is the Paged Pool, what is the NP Pool (Non-Paged?). How do I use these to determine what is going on with memory usage? As an aside, when you minimize a program it frequently returns 90% of the memory it is using. Is there any way to do this without minimizing it? | 0 | [
2,
17968,
18,
3260,
16,
1912,
19,
14,
13520,
1936,
3005,
1382,
800,
3726,
3726,
31,
143,
21,
1768,
1142,
88,
14,
1936,
3005,
169,
1674,
19,
23045,
15,
47,
31,
83,
101,
20,
1369,
32,
574,
19,
13520,
9,
98,
25,
14,
2841,
128,
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 to define Content Management
===
First some background. I recently went for an interview and some of the questions asked to me was about Enterprise Content Management. Obviously, I did not have any experience and did not get the offer.
But, it increased my curiosity and tried Internet to get some info on the topic. Wikipedia made me more confused with even more buzzwords. Most of the stuff on the web is marketing related and relevant to specific products like Sharepoint or Drupal etc.
I need some help in understanding more about the topic or the **domain** in simpler terms. What is the requirement to use it? What kind of companies use it? What are the problem areas it tries to address? Any popular use cases? Any places where it looks like a good fit but it is not actually?
Lastly, any good book or articles on the topic without being specific to any product?
Thanks in advance. | 4 | [
2,
184,
20,
9267,
2331,
1097,
800,
3726,
3726,
64,
109,
2395,
9,
31,
1989,
296,
26,
40,
2421,
17,
109,
16,
14,
2346,
411,
20,
55,
23,
88,
6002,
2331,
1097,
9,
4409,
15,
31,
144,
52,
57,
186,
1496,
17,
144,
52,
164,
14,
1994,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I create a file in UNIX /tmp directory so that all users can read and write to it?
===
I am trying to create a file in the /tmp directory (working on a Linux UBUNTU 7.10), that has read/write/execute access for any user. So I am using the "open(fileName,O_CREAT|O_RDWR,0777)" function to create the file (from a C program) in user1 account and I would like user2 to be able to write to the specific file.
However, when i check the /tmp directory (with ls -l) I see that I do not have the write access permission for user2 (considering the fact that user1 created it, I have write access for user1, but user2, who is considered to be "others" does not have any access).
I have tried to use mode 0766 in the open function (and such combinations of 7 and 6 for modes), so that I may get write access for user2, but I still don't have the required access. | 0 | [
2,
184,
107,
31,
1600,
21,
3893,
19,
22540,
13,
118,
38,
2554,
16755,
86,
30,
65,
3878,
92,
1302,
17,
2757,
20,
32,
60,
800,
3726,
3726,
31,
589,
749,
20,
1600,
21,
3893,
19,
14,
13,
118,
38,
2554,
16755,
13,
5,
14120,
27,
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... |
Storing Personal Information Do's and Don'ts
===
I run a small php/mysql website for a camera club where users can upload photos. I have recently sarted storing email addresses for doing password resets.
My question is what is the best practise for dealing with users personal information, are there any laws/legislation regarding what I can do with personal information. Do I need to display my policy for dealing with personal information?
Any further information regarding this subject is greatly received.
Thanks | 0 | [
2,
25615,
1319,
676,
107,
22,
18,
17,
221,
22,
38,
18,
800,
3726,
3726,
31,
485,
21,
284,
13,
26120,
118,
915,
18,
22402,
2271,
26,
21,
3336,
288,
113,
3878,
92,
71,
8294,
7064,
9,
31,
57,
1989,
2808,
1427,
25615,
8517,
12636,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 trouble shoot why my rewrite rules aren't being applied by apache?
===
I've got a tomcat 6 web app running with apache httpd as the front end. I'm using mod\_proxy and mod\_proxy\_ajp to forwrd the requests to tomcat. My server is running ubuntu. Now I'm trying to use mod\_rewrite to remove the leading www, so that my canonical website url is http://domain.com rather than http://www.domain.com.
I've read a number of tutorials on using mod\_rewrite, but I can't get any rewriting to work. I've tried putting the rewrite rule in an .htaccess file (after modifying my /etc/apache/sites-available/default file to set AllowOverride all). I've tried putting the rewrite rule in apache2.conf, httpd.conf, and rewrite.conf. I've tried all of these with rewrite logging turned on. The log file gets created, but apache has written nothing to it. I thought maybe mod\_proxy was somehow preventing the rewrite rules from being used, so I tried disabling that as well...and I still get no rewrite, and nothing to the log.
At this point I have absolutely no idea what to try next. How do I go about troubleshooting why apache isn't using my rewrite rules?
For reference, here are my rewrite directives:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 3
</IfModule>
| 0 | [
2,
184,
107,
31,
2572,
4376,
483,
51,
27891,
1761,
4847,
22,
38,
142,
2435,
34,
17140,
60,
800,
3726,
3726,
31,
22,
195,
330,
21,
2067,
5782,
400,
2741,
4865,
946,
29,
17140,
7775,
43,
28,
14,
431,
241,
9,
31,
22,
79,
568,
722... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sharding the web tier in order to prevent a load balancer bottleneck?
===
How do large web sites which cannot be completely stateless achieve extreme scalability at the web tier?
There are sites like ebay and Amazon, which cannot be completely stateless, as they have a shopping cart or something like that. It isn't feasible to encode every item in the shopping cart into the URL, nor is it feasible to encode every item into a cookie and send it at every connection. So Amazon simply stores the session-id into the cookie which is being sent. So I understand that the scalability of the web tier of ebay and Amazon should be much harder than the scalability of the google search engine, where everything can be encoded restful into the URL.
On the other hand, both ebay as well as Amazon scaled absolutely massively. Rumor is that there are some 15000 J2EE Application Servers at ebay.
How do these sites handle both: extreme scalability and statefulness? As the site is stateful, it isn't feasible to do a simple DNS-Balancing. So one would assume that these companies have a hardware based load balancer like BigIP, Netscaler or something like that, which is the sole device behind the single IP adress of that site. This load balancer would decrypt the SSL (if encoded), inspect the cookie and decide depending on the session id of that cookie which application server holds the session of that customer.
But this just can't possibly work as no single load-balancer could possibly handle the load of thousands of apoplication servers? I would imagine that even these hardware load balancers do not scale to such a level.
Also, the load-balancing is being done transparantly for the user, i.e. the users are not forwarded to different addresses, but still all collectively stay at www.amazon.com the whole time.
So my question is: Is there some special trick with which one can achieve something like transparent sharding of the web tier (not the database tier as done commonly)? As long as the cookie isn't inspected there is no way to know which application server is holding this session.
| 0 | [
2,
18723,
68,
14,
2741,
7197,
19,
389,
20,
2501,
21,
6305,
4468,
139,
4040,
9870,
60,
800,
3726,
3726,
184,
107,
370,
2741,
3259,
56,
1967,
44,
1524,
146,
923,
4689,
4750,
18957,
4091,
35,
14,
2741,
7197,
60,
80,
50,
3259,
101,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Regex for strings ending in .cs but not in .g.cs
===
I need a regex that matches all strings ending in .cs, but if they end in .g.cs they should not match. I'm using .NET regular expressions. | 0 | [
2,
7953,
1706,
26,
7887,
3119,
19,
13,
9,
6824,
47,
52,
19,
13,
9,
263,
9,
6824,
800,
3726,
3726,
31,
376,
21,
7953,
1706,
30,
1717,
65,
7887,
3119,
19,
13,
9,
6824,
15,
47,
100,
59,
241,
19,
13,
9,
263,
9,
6824,
59,
378,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
If your slightly strange CSS code works on all browsers on Windows, will it work on Mac and Linux?
===
I'm testing some weird-looking CSS code that I wrote (I'm using a mix of percentages and pixel values for width of DIVs, basically). While I'm not convinced that it's right, it works perfectly on all screen sizes on IE 5.5, IE 6.0 ([thanks to these guys][1]!), IE 7.0, Firefox 3.0 and Safari 3.12... all on Windows XP. Do I need to further worry about testing the code on Mac and Linux, or will it most likely work on these two without fail?
[1]: http://tredosoft.com/Multiple_IE | 0 | [
2,
100,
154,
1847,
2578,
272,
18,
18,
1797,
693,
27,
65,
16495,
18,
27,
1936,
15,
129,
32,
170,
27,
1572,
17,
13024,
60,
800,
3726,
3726,
31,
22,
79,
4431,
109,
5455,
8,
7940,
272,
18,
18,
1797,
30,
31,
738,
13,
5,
49,
22,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best way to implement TouchesMoved
===
I have a custom UIView that generates a set of subviews and display them in rows and columns like tiles. What I am trying to achieve is to allow the user to touch the screen and as the finger move, the tiles beneath it disappears.
The code below is the custom UIView that contains the tiles:
- (id)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
int i, j;
int maxCol = floor(self.frame.size.width/TILE_SPACING);
int maxRow = floor(self.frame.size.height/TILE_SPACING);
CGRect frame = CGRectMake(0, 0, TILE_WIDTH, TILE_HEIGHT);
UIView *tile;
for (i = 0; i<maxCol; i++) {
for (j = 0; j < maxRow; j++) {
frame.origin.x = i * (TILE_SPACING) + TILE_PADDING;
frame.origin.y = j * (TILE_SPACING) + TILE_PADDING;
tile = [[UIView alloc] initWithFrame:frame];
[self addSubview:tile];
[tile release];
}
}
}
return self;
}
- (void)touchesBegan: (NSSet *)touches withEvent:(UIEvent *)event {
UIView *tile = [self hitTest:[[touches anyObject] locationInView:self] withEvent:nil];
if (tile != self)
[tile setHidden:YES];
}
- (void)touchesMoved: (NSSet *)touches withEvent:(UIEvent *)event {
UIView *tile = [self hitTest:[[touches anyObject] locationInView:self] withEvent:nil];
if (tile != self)
[tile setHidden:YES];
}
This approach works but however if the tiles get denser (i.e. small tiles and more tiles on the screen). The iPhone is less responsive as the finger move.
My questions are:
1. Is this an efficient way to implement the touchesMoved?
2. I tried moving the functionality into a custom Tile class (a sub UIView) and let it handle the TouchesBegan but as the finger move, the other tiles does not receive the TouchesBegan even since the touches are still part of the initial touch sequence. Is there a way to implement it through the subview Tile class, how do other tiles receive the TouchesBegan/TouchesMoved event as the finger move? | 0 | [
2,
246,
161,
20,
8713,
13935,
16598,
43,
800,
3726,
3726,
31,
57,
21,
5816,
13,
5661,
4725,
30,
7920,
18,
21,
309,
16,
972,
4725,
18,
17,
3042,
105,
19,
11295,
17,
7498,
101,
14836,
9,
98,
31,
589,
749,
20,
4689,
25,
20,
1655,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Access asking for password on exit
===
I have an MS Access 2002 database with password security.
When I exit the application, the password dialog box reappears. Now, after this I can only exit the application if I give in the password again or press Cancel.
I don't know why this dialog appears on exit. | 2 | [
2,
1381,
3379,
26,
20884,
27,
4350,
800,
3726,
3726,
31,
57,
40,
4235,
1381,
1093,
6018,
29,
20884,
1221,
9,
76,
31,
4350,
14,
3010,
15,
14,
20884,
28223,
1649,
23654,
18,
9,
130,
15,
75,
48,
31,
92,
104,
4350,
14,
3010,
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... |
How to Create Outlook Plugin in Delphi?
===
I'm working on a database project and I need to create Outlook 2007 plugin that save the current previewed message in my database.
If you please tutor me step by step how to create the plugin in (Delphi) and how to deploy it in Outlook.
Thanks | 0 | [
2,
184,
20,
1600,
19837,
10922,
108,
19,
23030,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
6018,
669,
17,
31,
376,
20,
1600,
19837,
624,
10922,
108,
30,
2079,
14,
866,
16121,
69,
2802,
19,
51,
6018,
9,
100,
42,
2247,
11494,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Available iPhone Web Application JavaScript UI Library/Frameworks
===
I'm starting a web application that will target Mobile Safari on iPhone/iPod Touch. I'm evaluating the available client-side JavaScript/CSS libraries/frameworks that are currently out there.
These are the ones I'm currenlty aware of:
- [iUI][1]
- [CiUI][2]
- [UiUIKit][3]
- [WebApp.Net][4]
- [Apple's Dashcode Application][5] - not really a standalone library/framework, but it provides/generates JavaScript, CSS, and images that conform to the native iPhone UI metaphors.
Are there any others out there? I want to make sure I'm not missing any before I make a decision. I'm only looking for client-side JavaScript/CSS solutions and building one from scratch isn't an option because of time constraints. No server-side PHP, Ruby, Python, Java, etc. solutions.
I am aware of the [iPhone web applications, templates, frameworks?][6] question that was asked, but this only mentioned iUI and UiUIKit.
Thank you
[1]: http://code.google.com/p/iui/ "iUI"
[2]: http://clientside.cnet.com/cnet-js-standards/ciui-cnet-iphone-ui/
[3]: http://code.google.com/p/iphone-universal/
[4]: http://webapp.net.free.fr/
[5]: http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashcode_UserGuide/Contents/Resources/en.lproj/Introduction/chapter_1_section_1.html
[6]: http://stackoverflow.com/questions/8756/iphone-web-applications-templates-frameworks | 0 | [
2,
904,
21024,
2741,
3010,
8247,
8741,
13,
5661,
1248,
118,
8361,
7684,
800,
3726,
3726,
31,
22,
79,
1422,
21,
2741,
3010,
30,
129,
2935,
3241,
25055,
27,
21024,
118,
49,
10670,
1723,
9,
31,
22,
79,
26764,
14,
904,
6819,
8,
1416,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 reference man pages in CS papers?
===
I am busy writing my thesis (so, I guess this could count as a homework question). Now, one of the things that came up was the Unix `select` system call. I would like to add a reference to the appropriate man page, but all I can find that seems the slight bit official is the Single Unix Specification site that wants my money first. Sure, the Linux guys all have man pages, but they have real geeky urls that don't look like they will stay around forever. What to do? So far I am referring to *See SELECT(2) UNIX man page*... | 0 | [
2,
184,
20,
2801,
169,
4434,
19,
272,
18,
3747,
60,
800,
3726,
3726,
31,
589,
4394,
1174,
51,
10452,
13,
5,
656,
15,
31,
2321,
48,
110,
2468,
28,
21,
22334,
1301,
6,
9,
130,
15,
53,
16,
14,
564,
30,
281,
71,
23,
14,
22540,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Better to return a C++ reference or a weak_ptr?
===
Suppose I have a class where I want the user to be able to have a reference to one of my members. Which is preferred?
class Member;
class ClassWithWeakPtr
{
private:
boost::shared_ptr<Member> _member;
public:
boost::weak_ptr<Member> GetMember();
};
or
class Member;
class ClassWithCppReference
{
private:
Member _member;
public:
Member& GetMember() {return _member;}
};
What do you think? When is one better than another?
| 0 | [
2,
574,
20,
788,
21,
272,
20512,
2801,
54,
21,
3910,
1,
4417,
139,
60,
800,
3726,
3726,
5787,
31,
57,
21,
718,
113,
31,
259,
14,
4155,
20,
44,
777,
20,
57,
21,
2801,
20,
53,
16,
51,
443,
9,
56,
25,
5981,
60,
718,
322,
73,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Programmatically change screen resolution?
===
Is there a way to programmatically change the screen resolution or enable/disable multiple monitors in Windows XP? For example to change from 1024x768 with one monitor to 1280x104 on two monitors? I would be most interested in a win32 function to do this but anything that can be tied to a windows shortcut would suffice. | 0 | [
2,
625,
6732,
1326,
753,
2324,
4302,
60,
800,
3726,
3726,
25,
80,
21,
161,
20,
625,
6732,
1326,
753,
14,
2324,
4302,
54,
9240,
118,
2906,
579,
1886,
18521,
19,
1936,
23045,
60,
26,
823,
20,
753,
37,
332,
1996,
396,
465,
4279,
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... |
Is this correct way of update query in MySQL?
===
I got some problems with finding a bug in php/mysql application, and I wonder if I can do something like this: UPDATE table SET userid='2' WHERE userid='1' - > Can I update something I state in WHERE? | 0 | [
2,
25,
48,
4456,
161,
16,
11100,
25597,
19,
51,
18,
22402,
60,
800,
3726,
3726,
31,
330,
109,
1716,
29,
3007,
21,
6256,
19,
13,
26120,
118,
915,
18,
22402,
3010,
15,
17,
31,
2666,
100,
31,
92,
107,
301,
101,
48,
45,
11100,
859... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 suggest a change to the HTTP standard?
===
I have a fairly simple addition to the HTTP standard. An ambitious goal I know, but I'd at least like to submit a proposal and get feedback on the idea. What is the proper forum/method of doing so? | 0 | [
2,
184,
107,
31,
5601,
21,
753,
20,
14,
7775,
1236,
60,
800,
3726,
3726,
31,
57,
21,
6647,
1935,
848,
20,
14,
7775,
1236,
9,
40,
13791,
1195,
31,
143,
15,
47,
31,
22,
43,
35,
639,
101,
20,
12298,
21,
5149,
17,
164,
13111,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What type for an integer of more than 4 bytes?
===
I have to use unsigned integers that could span to more than 4 bytes, what type should I use?
PS Sorry for the "noobism" but that's it :D
NB: I need integers because i have to do divisions and care only for the integer parts and this way int are useful | 0 | [
2,
98,
1001,
26,
40,
13820,
16,
91,
119,
268,
34,
3231,
60,
800,
3726,
3726,
31,
57,
20,
275,
28839,
13820,
18,
30,
110,
6289,
20,
91,
119,
268,
34,
3231,
15,
98,
1001,
378,
31,
275,
60,
8613,
1875,
26,
14,
13,
7,
251,
4995,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Scheduling a worker with overlapping periodic tasks
===
With one worker, who can only perform one task at a time (but can switch between tasks instantly)
Given a list of tasks,
-- defined as "n seconds, every m seconds" (eg, 5 seconds every 3600 seconds)
How could I find the best starting times and count for each task?
If every task were "1 second, every 60 seconds", each would have an unique starting second, and the count would be infinite (steady state).
If it was "1 second every 4 seconds" and "1 second every 3 seconds", the result would be: " 0, infinite and 3, 3 times"
--
(Slightly more complex form --
if instead of "n seconds every m seconds",
the tasks were defined as "n seconds every l..o seconds",
where I could pick a number m in the range l - o (but would have to commit to that m until the task was finished),
would that allow better worker utilization?
How would I choose the best 'm' ?
| 0 | [
2,
23096,
21,
7444,
29,
23854,
18350,
8674,
800,
3726,
3726,
29,
53,
7444,
15,
72,
92,
104,
2985,
53,
3005,
35,
21,
85,
13,
5,
811,
92,
5521,
128,
8674,
6064,
6,
504,
21,
968,
16,
8674,
15,
13,
8,
8,
2811,
28,
13,
7,
103,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Display WPF modal window/dialog/panel the same way as a NSWindow can be displayed like a sheet in Cocoa
===
I am looking for a way to display a modal window in WPF the same way as a window in Cocoa can be displayed as a sheet, i.e. it slides down from the titlebar in front of the main parent window.
My guess is that this would be accomplished by having the modal window as a user control which is loaded into a panel when displayed, and that this panel is the one which would be animated somehow from the titlebar.
Any ideas on how to do this?
*P.S: [Here][1] is a brief description of the NSWindow/sheet in case you don't what it is*.
[1]: http://cocoadevcentral.com/articles/000014.php | 0 | [
2,
3042,
619,
7721,
13,
20756,
1463,
118,
4286,
5567,
118,
3206,
532,
14,
205,
161,
28,
21,
13,
2172,
27508,
92,
44,
6115,
101,
21,
6125,
19,
24507,
800,
3726,
3726,
31,
589,
699,
26,
21,
161,
20,
3042,
21,
13,
20756,
1463,
19,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I unit test a GUI?
===
The calculations in my code are well-tested, but because there is so much GUI code, my overall code coverage is lower than I'd like. Are there any guidelines on unit-testing GUI code? Does it even make sense?
For example, there are graphs in my app. I haven't been able to figure out how to automate the testing of the graphs. It takes a human eye, AFAIK, to check if the graph is correct.
(I'm using Java Swing)
| 0 | [
2,
184,
92,
31,
1237,
1289,
21,
9457,
60,
800,
3726,
3726,
14,
19186,
19,
51,
1797,
50,
134,
8,
22372,
15,
47,
185,
80,
25,
86,
212,
9457,
1797,
15,
51,
1677,
1797,
5245,
25,
987,
119,
31,
22,
43,
101,
9,
50,
80,
186,
12629,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
delete locked files
===
How do I programmatically C/C++ force delete files that are locked by the operating system or any other program. The functionality should be similar to the software "Unlocker" at <a>http://ccollomb.free.fr/unlocker</a>. | 0 | [
2,
27448,
4011,
6488,
800,
3726,
3726,
184,
107,
31,
625,
6732,
1326,
272,
118,
150,
20512,
558,
27448,
6488,
30,
50,
4011,
34,
14,
2455,
329,
54,
186,
89,
625,
9,
14,
18548,
378,
44,
835,
20,
14,
2306,
13,
7,
1020,
3966,
106,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C++ Coding Guideline 102
===
If you were allowed to add another coding guideline to the 101 guidelines of the ["C++ coding standards" (Herb Sutter and Andrei Alexandrescu)][1], which would you add?
[1]: http://www.gotw.ca/publications/c++cs.htm | 0 | [
2,
272,
20512,
13,
15458,
3378,
1143,
10913,
800,
3726,
3726,
100,
42,
46,
1159,
20,
3547,
226,
13,
15458,
3378,
1143,
20,
14,
7698,
12629,
16,
14,
636,
7,
150,
20512,
13,
15458,
3364,
7,
13,
5,
1694,
220,
13,
18,
13274,
17,
212... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Locating installer paths in c#
===
In VS2008 I have writen a c# service, an installer and created a setup package to install it. The service needs to load an xml file to operate. Where is the best place to put this file in the various filesystem folders offered by the VS setup project, and how do I then refer to these paths from my code?
Thanks | 0 | [
2,
27917,
16146,
106,
12074,
19,
272,
5910,
800,
3726,
3726,
19,
4611,
2753,
31,
57,
2757,
103,
21,
272,
5910,
365,
15,
40,
16146,
106,
17,
679,
21,
18161,
6030,
20,
16146,
32,
9,
14,
365,
2274,
20,
6305,
40,
23504,
3893,
20,
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... |
In Java, what's the difference between public, default, protected, and private?
===
Are there clear rules on when to use each of these when making classes and interfaces and dealing with inheritance? | 0 | [
2,
19,
8247,
15,
98,
22,
18,
14,
2841,
128,
317,
15,
12838,
15,
3803,
15,
17,
932,
60,
800,
3726,
3726,
50,
80,
1207,
1761,
27,
76,
20,
275,
206,
16,
158,
76,
544,
2684,
17,
6573,
18,
17,
5746,
29,
13852,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How Does Security Software Prevent its Unauthorized Removal from System?
===
It's been my experience that some security software (like Symantec's Norton AntiVirus) oftentimes prohibit their removal from a Windows system via the "Add or Remove Programs" utility, going so far as to occasionally require a removal program obtained from Symantec's homepage. (I assume this it to prevent a malicious program from disabling the security software... any other reason?)
How can a program be configured to resist removal via a system's uninstall utility, or via deleting the program's directory? Is Norton the only software suite that employs this technique, or is this widespread amongst security software? Are there similar techniques that can be used on Unix / -like systems? | 0 | [
2,
184,
630,
1221,
2306,
2501,
82,
25881,
7797,
37,
329,
60,
800,
3726,
3726,
32,
22,
18,
74,
51,
1496,
30,
109,
1221,
2306,
13,
5,
1403,
10315,
177,
9568,
22,
18,
11629,
1082,
14792,
6,
478,
891,
18,
895,
8630,
242,
66,
7797,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Creating a XmlNode/XmlElement in C# without a XmoDocument?
===
I have a simple class that essentially just holds some values. I have overridden the ToString() Method to return a nice string representation.
Now, I want to create a ToXml() Method, that will return something like this:
<Song>
<Artist>Bla</Artist>
<Song>Foo</Song>
</Song>
Of course, I could just use a StringBuilder here, but I would like to return an XmlNode or XmlElement, to be used with XmlDocument.AppendChild.
I do not seem to be able to create XmlElement other than calling XmlDocument.CreateElement, so I wonder if I have just overlooked anything, or if i really either have to pass in either a XmlDocument or ref XmlElement to work with, or have the function return a String that contains the Xml I want? | 0 | [
2,
2936,
21,
23504,
251,
546,
118,
396,
8184,
27567,
19,
272,
5910,
366,
21,
993,
1293,
28132,
60,
800,
3726,
3726,
31,
57,
21,
1935,
718,
30,
7398,
114,
2763,
109,
4070,
9,
31,
57,
84,
15267,
14,
20,
11130,
5,
6,
2109,
20,
78... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C# handle control array eventccaused by another control
===
I am working on a winforms html editor with multiple editor windows as each editor window will be written to a database field.
I am creating the editor windows as a control array and was hoping to just have one toolbar above them that would handle the events such as apply bold, italic... based on the window I was currently in. Unfortunately obviously the event handler of an event on the toolbar doesn't know what the control selected before it was.
Is there a way to get this or should I be adding an onenter event to each editor window and storing statically the last editor window used.
| 0 | [
2,
272,
5910,
3053,
569,
7718,
807,
6909,
8795,
34,
226,
569,
800,
3726,
3726,
31,
589,
638,
27,
21,
628,
4190,
18,
13,
15895,
1835,
29,
1886,
1835,
1936,
28,
206,
1835,
1463,
129,
44,
642,
20,
21,
6018,
575,
9,
31,
589,
2936,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 best to strip literal values out of SQL to correctly identify db workload?
===
Does anyone know of any code or tools that can strip literal values out of sql statements?
The reason for asking is I want to correctly judge the SQL workload in our database and I'm worried I might miss out on bad statements whose resource usage get masked because they are displayed as separate statements. When, in reality, they are pretty much the same thing except for different IDs being passed in.
I'd prefer a database independent solution if any exists. I had thought there might be a nifty Perl module for this but I haven't found any.
Thanks for your help. | 0 | [
2,
184,
246,
20,
4998,
20665,
4070,
70,
16,
4444,
255,
20,
12044,
5808,
13,
9007,
170,
8294,
60,
800,
3726,
3726,
630,
1276,
143,
16,
186,
1797,
54,
4672,
30,
92,
4998,
20665,
4070,
70,
16,
4444,
255,
9015,
60,
14,
1215,
26,
337... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 set the hardware volume in an iPhone app?
===
Some iPhone applications, such as Pandora seem to directly manipulate the hardware volume and respond to physical volume button. How is this done?
AudioSessionServices allows you to get the current hardware output volume with the `kAudioSessionProperty_CurrentHardwareOutputVolume` property, but it is (allegedly) read-only. | 0 | [
2,
184,
107,
42,
309,
14,
7610,
2310,
19,
40,
21024,
4865,
60,
800,
3726,
3726,
109,
21024,
3767,
15,
145,
28,
21654,
2260,
20,
1703,
18468,
14,
7610,
2310,
17,
4590,
20,
1825,
2310,
5167,
9,
184,
25,
48,
677,
60,
4023,
7202,
59... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Statup Deployment Architecture- Running Glassfish V3 Prelude without Apache...
===
So am I crazy for considering doing a beta/production release on Glassfish V3 Prelude?
Since all of my content is dynamic, I'm not even thinking of bothering to set up apache in front either. Doing so complicates the setup by requiring something like AJP or mod_jk and will not offer us much in terms of capability.
So there will be three war files on deployment.
3 JNDI data sources with about 90 connections parked, scaling up to 160 to a PGSQL datastore....
The three wars comprise a CMS system and a grails application?
Is my logic fatally flawed that I don't need to put apache in front of this setup? | 0 | [
2,
12819,
576,
10475,
2607,
8,
946,
1350,
4934,
566,
240,
20865,
366,
17140,
9,
9,
9,
800,
3726,
3726,
86,
589,
31,
3328,
26,
5154,
845,
21,
8434,
118,
11386,
830,
27,
1350,
4934,
566,
240,
20865,
60,
179,
65,
16,
51,
2331,
25,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's a good library to manipulate Apache2 config files?
===
I'd like to create a script to manipulate Apache2 configuration directly, reading and writing its properties (like adding a new VirtualHost, changing settings of one that already exists).
Are there any libs out there, for Perl, Python or Java that automates that task? | 0 | [
2,
98,
22,
18,
21,
254,
1248,
20,
18468,
17140,
135,
13,
14093,
2816,
6488,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
1600,
21,
3884,
20,
18468,
17140,
135,
8091,
1703,
15,
1876,
17,
1174,
82,
3704,
13,
5,
1403,
4721,
21,
78,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.