unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Algorithm to detect intersection of two rectangles?
===
I'm looking for an algorithm to detect if two rectangles intersect (one at an arbitrary angle, the other with only vertical/horizontal lines).
Testing if a corner of one is in the other ALMOST works. It fails if the rectangles form a cross-like shape.
It seems like a good idea to avoid using slopes of the lines, which would require special cases for vertical lines. | 0 | [
2,
9083,
20,
9092,
5351,
16,
81,
27181,
18,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
40,
9083,
20,
9092,
100,
81,
27181,
18,
17822,
13,
5,
849,
35,
40,
17237,
5334,
15,
14,
89,
29,
104,
7035,
118,
6778,
49,
6931,
3663,
1560,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WPF and string formatting
===
Suppose I have some XAML like this:
<Window.Resources>
<v:MyClass x:Key="whatever" Text="foo\nbar" />
</Window.Resources>
Obviously I want a newline character in the MyClass.Text property, but the XAML parser constructs the object with the literal string "foo\nbar".
Is there (a) a way to convince the parser to translate escape sequences, or (b) a .NET method to interpret a string in the way that the C# compiler would?
I realize that I can go in there looking for `\n` sequences, but it would be nicer to have a generic way to do this. | 0 | [
2,
619,
7721,
17,
3724,
2595,
1203,
800,
3726,
3726,
5787,
31,
57,
109,
13,
6791,
8184,
101,
48,
45,
13,
1,
27508,
9,
99,
12097,
18,
1,
13,
1,
710,
45,
915,
1898,
993,
45,
4237,
3726,
7,
13515,
7,
1854,
3726,
7,
4120,
111,
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... |
Parsing Office Documents
===
I`d like to be able to read the content of office documents (for a custom crawler).
The office version that need to be readable are from 2000 to 2007. I mainly want to be crawling words, excel and powerpoint documents.
I don`t want to retrieve the formatting, only the text in it.
The crawler is based on lucene.NET if that can be of some help and is in c#.
I already used iTextSharp for parsing PDF | 0 | [
2,
2017,
18,
68,
488,
4374,
800,
3726,
3726,
31,
1,
43,
101,
20,
44,
777,
20,
1302,
14,
2331,
16,
488,
4374,
13,
5,
1106,
21,
5816,
12392,
106,
6,
9,
14,
488,
615,
30,
376,
20,
44,
1302,
579,
50,
37,
824,
20,
624,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Online tool for generating mathematical equation image files
===
I'm looking for an online tool that will let me create a gif or png like this one:
![alt text][1]
Some kind of LaTex online service, with friendly examples?
[1]: http://upload.wikimedia.org/math/b/4/7/b477e400396c711c60c4302bbbd888ae.png | 0 | [
2,
2087,
5607,
26,
13500,
7046,
8020,
1961,
6488,
800,
3726,
3726,
31,
22,
79,
699,
26,
40,
2087,
5607,
30,
129,
408,
55,
1600,
21,
489,
821,
54,
351,
2723,
101,
48,
53,
45,
13,
187,
2558,
192,
38,
1854,
500,
2558,
165,
500,
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... |
Proportional image resize
===
I'm having a wee bit of a problem scaling my images to a proper predefined size.
I was wondering -since it is purely mathematics-, if there's some sort of common logical algorithm that works in every language (php, actionscript, javascript etc.) to scale images proportionally.
I'm using this at the moment:
var maxHeight = 300;
var maxWidth = 300;
var ratio:Number = height / width;
if (height > maxHeight) {
height = maxHeight;
width = Math.round(height / ratio);
}
else if(width > maxWidth) {
width = maxWidth;
height = Math.round(width * ratio);
}
But it doesn't work properly. The images scales proportionately, sure enough, but the size isn't set at 300 (either in width or in height).
It kind of makes sense, but I was wondering if there's a fool-proof, easy way to scale your images proportionally. | 0 | [
2,
13822,
1961,
302,
10454,
800,
3726,
3726,
31,
22,
79,
452,
21,
95,
62,
1142,
16,
21,
1448,
26829,
51,
3502,
20,
21,
4119,
782,
13439,
1072,
9,
31,
23,
5712,
13,
8,
7412,
32,
25,
13198,
4264,
8,
15,
100,
80,
22,
18,
109,
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... |
"No symbols loaded for the current document" Visual Studio 2008 Javascript Debugging
===
I'm working on a .net 3.5 website, with 3 projects under one solution. I'm using jquery in this project. I'd like to use the visual studio javascript debugger to step through my Javascript. If I set a breakpoint in any of the .js files I get a warning that says "The breakpoint will not currently be hit. No symbols have been loaded for this document."
Anyone have any ideas on how to fix this? I'm guessing that VS is having some trouble parsing through some of the jquery code. I will try to replace the minimized version of jquery.js with the expanded version, but I don't think that will fix it. | 0 | [
2,
13,
7,
251,
9794,
8572,
26,
14,
866,
4492,
7,
3458,
1120,
570,
8247,
8741,
121,
16254,
2762,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
13,
9,
2328,
203,
9,
264,
2271,
15,
29,
203,
2314,
131,
53,
4295,
9,
31,
22,
79,
568,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MVC Preview 5 - ViewData/HTML Helper Quirk
===
The following code is in the /Courses/Detail action:
[AcceptVerbs("GET")]
public ActionResult Detail(int id)
{
ViewData["Title"] = "A View Title";
return View(tmdc.GetCourseById(id));
}
The tmdc.GetCourseById(id) method returns an instance of type "Course" for the View. In the View I am using <%= HTML.TextBox("Title")%> to display the value of the <b>Title</b> property for the <b>Course</b> object. Instead the text box is displaying the string <b>A View Title</b>. Is this normal/expected behavior? What would be the best way to handle this? | 0 | [
2,
307,
8990,
16121,
331,
13,
8,
1418,
18768,
118,
15895,
448,
106,
19321,
800,
3726,
3726,
14,
249,
1797,
25,
19,
14,
13,
118,
17556,
18,
118,
546,
8682,
1028,
45,
636,
28050,
2304,
4562,
5,
7,
3060,
7,
6,
500,
317,
1028,
29955... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the most reliable way to create a custom event log and event source during the installation of a .Net Service
===
I am having difficulty reliably creating / removing event sources during the installation of my .Net Windows Service.
Here is the code from my ProjectInstaller class:
// Create Process Installer
ServiceProcessInstaller spi = new ServiceProcessInstaller();
spi.Account = ServiceAccount.LocalSystem;
// Create Service
ServiceInstaller si = new ServiceInstaller();
si.ServiceName = Facade.GetServiceName();
si.Description = "Processes ...";
si.DisplayName = "Auto Checkout";
si.StartType = ServiceStartMode.Automatic;
// Remove Event Source if already there
if (EventLog.SourceExists("AutoCheckout"))
EventLog.DeleteEventSource("AutoCheckout");
// Create Event Source and Event Log
EventLogInstaller log = new EventLogInstaller();
log.Source = Facade.GetEventLogSource();
log.Log = "AutoCheckoutLog";
Installers.AddRange(new Installer[] { spi, si, log });
The facade methods referenced just return the strings for the name of the log, service, etc.
This code works most of the time, but recently after installing I started getting my log entries showing up in the Application Log instead of the custom log. And the following errors are in the log as well:
> The description for Event ID ( 0 ) in Source ( AutoCheckout ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details.
For some reason it either isn't properly removing the source during the uninstall or it isn't creating it during the install.
Any help with best practices here is appreciated.
Thanks!
| 0 | [
2,
98,
25,
14,
127,
11398,
161,
20,
1600,
21,
5816,
807,
6738,
17,
807,
1267,
112,
14,
7758,
16,
21,
13,
9,
2328,
365,
800,
3726,
3726,
31,
589,
452,
6967,
13,
19003,
4801,
2936,
13,
118,
9096,
807,
2662,
112,
14,
7758,
16,
51... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I convince my team to drop sourcesafe and move to SVN?
===
My development team uses source safe at a very basic level. We're moving into some more advanced and extended development cycles and I can't help but think that not using branching and merging in order to manage changes is going to be biting us very soon.
What arguments did you find most useful in order to convince your team to move to a better solution like SVN?
What programs did you use to bridge the functionality gap so that the team wouldn't miss the ide sourcsafe integration?
Or should I just accept sourcesafe and attempt to shoehorn better practices into it? | 4 | [
2,
184,
107,
31,
6218,
51,
173,
20,
2804,
1267,
18166,
17,
780,
20,
13,
18,
16578,
60,
800,
3726,
3726,
51,
522,
173,
2027,
1267,
1834,
35,
21,
253,
2125,
662,
9,
95,
22,
99,
1219,
77,
109,
91,
2255,
17,
1984,
522,
14763,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is Python any good for GUI development?
===
I am considering creating a GUI-based tool that I want to be cross-platform. I've dismissed Java, as I personally do not like Swing. I'm currently considering C# and using Mono to make it cross-platform. However I'm wondering whether new-fangled cross-platform languages like Python can offer me a decent GUI development environment. | 0 | [
2,
25,
20059,
186,
254,
26,
9457,
522,
60,
800,
3726,
3726,
31,
589,
5154,
2936,
21,
9457,
8,
1281,
5607,
30,
31,
259,
20,
44,
919,
8,
27035,
9,
31,
22,
195,
6446,
8247,
15,
28,
31,
7200,
107,
52,
101,
5587,
9,
31,
22,
79,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Glasses mode in emacs.
===
How to customize the color of the symbol inserted in the "glasses mode" in emacs?
I have not found the option for this. Can anyone suggest anything? | 0 | [
2,
7574,
3740,
19,
13,
62,
6893,
18,
9,
800,
3726,
3726,
184,
20,
5816,
2952,
14,
1665,
16,
14,
4678,
14215,
19,
14,
13,
7,
11539,
160,
3740,
7,
19,
13,
62,
6893,
18,
60,
31,
57,
52,
216,
14,
4255,
26,
48,
9,
92,
1276,
560... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How do you specify a port range for Java sockets?
===
In Java you can give the number zero as a single parameter for the Socket or DatagramSocket constructor. Java binds that Socket to a free port then. Is it possible to limit the port lookup to a specific range?
Thanks in advance,
Roland | 0 | [
2,
184,
107,
42,
19077,
21,
1295,
978,
26,
8247,
18482,
18,
60,
800,
3726,
3726,
19,
8247,
42,
92,
590,
14,
234,
4606,
28,
21,
345,
18906,
26,
14,
18482,
54,
1054,
6295,
18,
5668,
1198,
6960,
248,
9,
8247,
10193,
18,
30,
18482,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Ruby any good for GUI development?
===
I am considering creating a GUI-based tool that I want to be cross-platform. I've dismissed Java, as I personally do not like Swing. I'm currently considering C# and using Mono to make it cross-platform. However I'm wondering whether new-fangled cross-platform languages like Ruby can offer me a decent GUI development environment. | 0 | [
2,
25,
10811,
186,
254,
26,
9457,
522,
60,
800,
3726,
3726,
31,
589,
5154,
2936,
21,
9457,
8,
1281,
5607,
30,
31,
259,
20,
44,
919,
8,
27035,
9,
31,
22,
195,
6446,
8247,
15,
28,
31,
7200,
107,
52,
101,
5587,
9,
31,
22,
79,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Duplicate Oracle DES encrypting in Java
===
I recently asked a question about Oracle Encryption. Along the way to finding a solution for myself I decided to move the encryption (well, obfuscation) to the application side for certain tasks. I wanted the encryption to be compatible with what the DB was already doing but couldn't find the documentation that described exactly what Oracle is doing. How do I replicate this in Java?
dbms_obfuscation_toolkit.DESEncrypt(
input_string => v_string,
key_string => key_string,
encrypted_string => encrypted_string );
RETURN UTL_RAW.CAST_TO_RAW(encrypted_string);
No matter what I try, it seems as if the Java DES encryption is different than Oracle's. | 0 | [
2,
19429,
15759,
1746,
1957,
11435,
68,
19,
8247,
800,
3726,
3726,
31,
1989,
411,
21,
1301,
88,
15759,
24420,
9,
303,
14,
161,
20,
3007,
21,
4295,
26,
992,
31,
868,
20,
780,
14,
24420,
13,
5,
854,
15,
5122,
13735,
16893,
6,
20,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a way to get the parent URL from an Iframe's content?
===
I'm running an c# .net app in an iframe of an asp page on an older site. Accessing the Asp page's session information is somewhat difficult, so I'd like to make my .net app simply verify that it's being called from an approved page, or else immediately halt.
Is there a way for a page to find out the url of it's parent document? | 0 | [
2,
25,
80,
21,
161,
20,
164,
14,
4766,
287,
6362,
37,
40,
31,
8361,
22,
18,
2331,
60,
800,
3726,
3726,
31,
22,
79,
946,
40,
272,
5910,
13,
9,
2328,
4865,
19,
40,
31,
8361,
16,
40,
28,
306,
2478,
27,
40,
1234,
689,
9,
1381,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to make a program bug-free (or, with the less possible bugs)
===
OK, I know it's a stupid question to ask, so let me clarify.
My boss thinks that, "by now, with your level of knowledge, you should never have bugs in your software anymore". While it may be correct, given the correct set of tools and with a proper method, those are never allowed to me, maybe because I don't know what to answer him exactly (I'm the only developer here, so I don't have anyone to turn to when it happens).
So, here is my question. What tools and methods do you use to have the less possible bugs in your software ? | 0 | [
2,
184,
20,
233,
21,
625,
6256,
8,
4639,
13,
5,
248,
15,
29,
14,
787,
938,
13925,
6,
800,
3726,
3726,
5854,
15,
31,
143,
32,
22,
18,
21,
3553,
1301,
20,
1349,
15,
86,
408,
55,
23116,
9,
51,
4054,
7973,
30,
15,
13,
7,
779,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WebServiceTransportException: Unauthorized [401] in Spring-WS
===
We are struggling to configure our web app to be able to connect with web services via Spring WS. We have tried to use the example from the documentation of client-side Spring-WS, but we end up with a WebServiceTransportException. The XML config looks like this:
<bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
<constructor-arg ref="messageFactory"/>
<property name="messageSender">
<bean class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
<property name="credentials">
<bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
<constructor-arg value="john"/>
<constructor-arg value="secret"/>
</bean>
</property>
</bean>
</property>
</bean>
We have been able to configure the application programmatically, but this configuration was not possible to "transfer" to a Spring XML config because some setters did not use the format Spring expects. (HttpState.setCredentials(...) takes two parameters). The config was lifted from some other Spring-WS client code in the company.
This is the configuration that works:
public List<String> getAll() {
List<String> carTypes = new ArrayList<String>();
try {
Source source = new ResourceSource(request);
JDOMResult result = new JDOMResult();
SaajSoapMessageFactory soapMessageFactory = new SaajSoapMessageFactory(MessageFactory.newInstance());
WebServiceTemplate template = new WebServiceTemplate(soapMessageFactory);
HttpClientParams clientParams = new HttpClientParams();
clientParams.setSoTimeout(60000);
clientParams.setConnectionManagerTimeout(60000);
clientParams.setAuthenticationPreemptive(true);
HttpClient client = new HttpClient(clientParams);
client.getState().setCredentials(AuthScope.ANY,
new UsernamePasswordCredentials("username", "password"));
CommonsHttpMessageSender messageSender = new CommonsHttpMessageSender(client);
template.setMessageSender(messageSender);
template.sendSourceAndReceiveToResult(SERVICE_URI,
source, result);
// Handle the XML
} catch (IOException e) {
throw new RuntimeException(e);
} catch (SOAPException e) {
throw new RuntimeException(e);
}
return carTypes;
}
Does anyone know how to solve my problem? Every tutorial I have see out there lists the first configuration. It seems that when I set the credentials on the messageSender object, they are just ignored...
| 0 | [
2,
2741,
11449,
7028,
1993,
10066,
872,
45,
25881,
636,
20658,
500,
19,
1573,
8,
10268,
800,
3726,
3726,
95,
50,
7587,
20,
1065,
15951,
318,
2741,
4865,
20,
44,
777,
20,
6379,
29,
2741,
687,
1197,
1573,
619,
18,
9,
95,
57,
794,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 free IDE for PHP on Mac?
===
I wanted to find a good but free PHP IDE for Mac. Any suggestions? Thanks! | 4 | [
2,
25,
80,
21,
551,
13,
3448,
26,
13,
26120,
27,
1572,
60,
800,
3726,
3726,
31,
417,
20,
477,
21,
254,
47,
551,
13,
26120,
13,
3448,
26,
1572,
9,
186,
18389,
60,
3669,
187,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Detecting what the target object is when NullReferenceException is thrown.
===
I'm sure we all have received the wonderfully vague "Object reference not set to instance of an Object" exception at some time or another. Identifying the object that is the problem is often a tedious task of setting breakpoints and inspecting all members in each statement.
Does anyone have any tricks to easily and efficiently identify the object that causes the exception, either via programmatical means or otherwise? | 0 | [
2,
9092,
68,
98,
14,
2935,
3095,
25,
76,
16203,
28018,
10066,
872,
25,
6027,
9,
800,
3726,
3726,
31,
22,
79,
562,
95,
65,
57,
420,
14,
5934,
102,
14800,
13,
7,
23793,
2801,
52,
309,
20,
4851,
16,
40,
3095,
7,
5391,
35,
109,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 doe code reviews?
===
I've recently moved from a company with 30 or so developers all based on the same site, to a smaller company with a total fo 6 developers working all over the country.
Previously when I was conducting code reviews I'd have the person sitting next to me, or I'd go round to his/her Pc and go over the code with them.
At my new company this isn't feasible as people are all over the place. I've been handed a couple of thousand lines of code to review and I can't just tell somone my thoughts.
The only way I can think of is to write a code review document. So I've resorted to pasting the code into Word and annotating it using the little margin bubble things you get.
is there an easier way to do this? I've long thought that Visual studio should have a meta comment system, which would give you similar outlining features, and allow you to write comments on a higher level.
Are there any tools that do this? If not how do people go about doing distributed code reviews? | 0 | [
2,
184,
107,
42,
107,
62,
1797,
2783,
60,
800,
3726,
3726,
31,
22,
195,
1989,
385,
37,
21,
237,
29,
712,
54,
86,
10168,
65,
432,
27,
14,
205,
689,
15,
20,
21,
2012,
237,
29,
21,
600,
4310,
400,
10168,
638,
65,
84,
14,
475,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sharepoint, master pages and CSS
===
I am trying to develop everything in sharepoint as features so I can easily deploy to test and live sites without having to do any manual steps.
I can deploy my master page okay, and though currently i have to switch it on by hand I am confident I can automate that in the future.
What I am having difficulty is getting a CSS file to match up with it. I have created the file, and I think i am doing the right thing so it is deployed in the sharepoint install, but I cannot work out how to link it to my Master Page.
There must be a right way of doing this but I cannot find it!
Thanks for your ideas. | 0 | [
2,
1891,
3132,
15,
1129,
4434,
17,
272,
18,
18,
800,
3726,
3726,
31,
589,
749,
20,
2803,
796,
19,
1891,
3132,
28,
967,
86,
31,
92,
2351,
17617,
20,
1289,
17,
515,
3259,
366,
452,
20,
107,
186,
5132,
2382,
9,
31,
92,
17617,
51,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Simplest PHP Routing framework .. ?
===
first post here at stackoverflow,
I'm looking for the simplest implementation of a routing framework in PHP, in a typical PHP environment (Running on apache, or maybe nginx) ..
It's the implementation itself i'm mostly interested in, and how you'd accomplish it..
I'm thinking it should handle URL's, with the minimal rewriting possible, (is it really a good idea, to have the same entrypoint for all dynamic requests?!), and it should not mess with the querystring, so i should still be able to fetch GET params with $_GET['var'] as you'd usually do..
So far i have only come across .htaccess solutions that puts everything through an index.php, which is sort of okay. Not sure if there are other ways of doing it.
How would you "attach" what URL's fit to what controllers, and the relation between them? .. I've seen different styles.
One huge array, with regular expressions and other stuff to contain the mapping ..
The one i think i like the best is where each controller declares what map it has, and thereby, you won't have one huge "global" map, but a lot of small ones, each neatly seperated...
So you'd have something like:
class Root {
public $map = array(
'startpage' => 'ControllerStartPage'
);
}
class ControllerStartPage {
public $map = array(
'welcome' => 'WelcomeControllerPage'
);
}
// Etc ...
Where:
'http://myapp/' // maps to the Root class
'http://myapp/startpage' // maps to the ControllerStartPage class
'http://myapp/startpage/welcome' // maps to the WelcomeControllerPage class
'http://myapp/startpage/?hello=world' // Should of course have $_GET['hello'] == 'world'
What do you think? .. Do you use anything yourself, or have any ideas?
I'm not interested in huge frameworks already solving this problem, but the smallest possible implementation you could think of. I'm having a hard time coming up with a solution satisfying enough, for my own taste.
There must be something pleasing out there that handles a sane bootstrapping process of a php-application without trying to pull a big magic hat over your head, and force you to use "their way", or the highway! ;)
| 0 | [
2,
24384,
13,
26120,
19880,
6596,
13,
9,
9,
13,
60,
800,
3726,
3726,
64,
678,
235,
35,
7566,
2549,
9990,
15,
31,
22,
79,
699,
26,
14,
24384,
6123,
16,
21,
19880,
6596,
19,
13,
26120,
15,
19,
21,
3874,
13,
26120,
2307,
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... |
Do you believe that ASP.Net MVC is ready for production?
===
I really like the fact that Microsoft has taken a commitment to bring MVC to the Web. To this end, I have become excited about converting one of my existing ASP.NET apps to MVC and wanted to know if I may be jumping the gun. While this site is using MVC, it's still technically in beta...what are your thoughts? | 0 | [
2,
107,
42,
985,
30,
28,
306,
9,
2328,
307,
8990,
25,
1451,
26,
637,
60,
800,
3726,
3726,
31,
510,
101,
14,
837,
30,
7099,
63,
658,
21,
6578,
20,
1499,
307,
8990,
20,
14,
2741,
9,
20,
48,
241,
15,
31,
57,
533,
7178,
88,
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... |
Is PowerShell a strongly typed language?
===
PowerShell is definitely in the category of dynamic languages, but would it be considered strongly typed?
| 0 | [
2,
25,
414,
15984,
21,
5020,
1001,
43,
816,
60,
800,
3726,
3726,
414,
15984,
25,
4939,
19,
14,
3230,
16,
7782,
2556,
15,
47,
83,
32,
44,
724,
5020,
1001,
43,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Are there any jEdit syntax highlighting modes for Objective-J
===
I have found some in the Cappuccino website (vim, textmate and SubEthaEdit), but not for jEdit, and unfortunately I'm just starting on Objective-J so can't make my own. If anyone has got one of them lying around it would be greatly appreciated. | 0 | [
2,
50,
80,
186,
12671,
242,
22649,
23102,
12770,
26,
7038,
8,
728,
800,
3726,
3726,
31,
57,
216,
109,
19,
14,
21764,
9438,
251,
2271,
13,
5,
1755,
79,
15,
1854,
5281,
17,
972,
62,
3667,
69,
242,
6,
15,
47,
52,
26,
12671,
242,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Enumerate Windows network shares and all custom permissions on or within
===
We have various servers that have many directories shared. It's easy enough to look at the share browser to see what the "top level" shares are, but underneath is a jumbled mess of custom permissions, none of which is documented.
I'd like to enumerate all the shares on the domain (definitely all the 'servers', local PCs would be nice) and then recurse down each one and report any deviation from the parent. If the child has the same permissions, no need to report that back.
I'd prefer a simple script-y solution to writing a big C# app, but any method that works will do (even existing software).
For example, I'd like to get:
SERVER1\
\-- C: (EVERYONE: Total control, ADMINs, etc. etc.)
\-- (skip anything that is not the same as above)
\-- SuperSecretStuff (Everyone: NO access; Bob: Read access)
SERVER2\
\-- Stuff (some people)
etc. | 0 | [
2,
26940,
62,
1936,
982,
5945,
17,
65,
5816,
5572,
18,
27,
54,
363,
800,
3726,
3726,
95,
57,
617,
17595,
30,
57,
151,
559,
1596,
2592,
9,
32,
22,
18,
2010,
511,
20,
361,
35,
14,
1891,
16495,
20,
196,
98,
14,
13,
7,
3880,
662... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Framework effects of moving from 2.0 to 3.5?
===
I've started using Visual Studio 2008 and it keeps asking me to upgrade my 2.0 website project to 3.5 **every time** it opens.
What effectively happens when I "upgrade" a website project from 2.0 to 3.5 in Visual Studio? Does it update my web.config? How exactly does it change my project/website/code?
Is there a potential for any 2.0 methods/settings to BREAK upon upgrade to 3.5?
Are there any gotchas involved?
(Thanks in advance for any guidance) | 0 | [
2,
28,
306,
9,
2328,
6596,
2292,
16,
1219,
37,
172,
9,
387,
20,
203,
9,
264,
60,
800,
3726,
3726,
31,
22,
195,
373,
568,
3458,
1120,
570,
17,
32,
8968,
3379,
55,
20,
9483,
51,
172,
9,
387,
2271,
669,
20,
203,
9,
264,
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... |
When reading a CSV file using a DataReader and the OLEDB Jet data provider, how can I control column data types?
===
In my C# application I am using the Microsoft Jet OLEDB data provider to read a CSV file. The connection string looks like this:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Data;Extended Properties="text;HDR=Yes;FMT=Delimited
I open an ADO.NET OleDbConnection using that connection string and select all the rows from the CSV file with the command:
select * from Data.csv
When I open an OleDbDataReader and examine the data types of the columns it returns, I find that something in the stack has tried to guess at the data types based on the first row of data in the file. For example, suppose the CSV file contains:
House,Street,Town
123,Fake Street,Springfield
12a,Evergreen Terrace,Springfield
Calling the OleDbDataReader.GetDataTypeName method for the House column will reveal that the column has been given the data type "DBTYPE_I4", so all values read from it are interpreted as integers. My problem is that House should be a string - when I try to read the House value from the second row, the OleDbDataReader returns null.
How can I tell either the Jet database provider or the OleDbDataReader to interpret a column as strings instead of numbers? | 0 | [
2,
76,
1876,
21,
272,
18,
710,
3893,
568,
21,
1054,
10647,
106,
17,
14,
12116,
9007,
4797,
1054,
11747,
15,
184,
92,
31,
569,
4698,
1054,
2551,
60,
800,
3726,
3726,
19,
51,
272,
5910,
3010,
31,
589,
568,
14,
7099,
4797,
12116,
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... |
Windows Mobile Development - Portable Compiler
===
I want to start developing for Windows Mobile Devices, as I plan to buy one next week. (pay day)
So far most of my PDA experience is with Palm OS (m100, m105, Zire 71 and T3). For Palm there are a few good utilities for programming, mainly [PocketC][1] and [OnboardC][2]. These let you program and test on the road. I would use PocketC quite a bit for testing and prototyping, before coding the full app on my PC.
Now the question is are there any equivalents for Windows Mobile, that will let me compile/interpret code on the phone?
Thank you
P.S. I'm aware of PocketC CE, which is no longer supported, and PythonCE, though I would prefer something that is still supported and is or like C or C++.
[1]: http://www.orbworks.com/pcpalm/index.html
[2]: http://onboardc.sourceforge.net/ | 0 | [
2,
1936,
3241,
522,
13,
8,
13469,
21486,
800,
3726,
3726,
31,
259,
20,
799,
3561,
26,
1936,
3241,
4690,
15,
28,
31,
944,
20,
3034,
53,
328,
877,
9,
13,
5,
12224,
208,
6,
86,
463,
127,
16,
51,
351,
593,
1496,
25,
29,
3044,
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... |
Infralution VirtualTree leaking GDI+ Objects when Icons are set in GetRowData event handler
===
We have seen what appears to be GDI Object leakage when the Infralution VirtualTree control assigns Icons in the GetRowData event. The VirtualTree is contained in a control that is contained within a TabControl. Tabbing away and back to the tree results in the "GDI Objects" counter in Task Manager to continually increment. After commenting out the GetRowData event (basically eliminating the Icons), switching back and forth to this tab results in no increase in GDI Object count.
This has become an issue with our application as several instances of it run at once on client machines, and under load our application crashes due to errors in GDI Object creation.
Is there anyway to pre-empt a cleanup on the Tree control (besides disposing it?). I looked into moving the tree initialization code out of the designer so that I could dispose/re-initialize it each time, but am worried at the impact on ability to design the overall control. | 0 | [
2,
19,
8691,
2377,
3309,
6599,
8101,
26334,
489,
1115,
2430,
3916,
76,
9801,
18,
50,
309,
19,
164,
5417,
18768,
807,
24641,
800,
3726,
3726,
95,
57,
541,
98,
1780,
20,
44,
489,
1115,
3095,
11724,
1303,
76,
14,
19,
8691,
2377,
3309... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 CakePHP, how can you determine if a field was changed in an edit action?
===
I'm using the cacheCounter in CakePHP, which increments a counter for related fields.
Example, I have a Person table a Source table. Person.source_id maps to a row in the Source table. Each person has one Source, and each Source has none or many Person rows.
cacheCounter is working great when I change the value of a source on a person. It increments Source.Person_Count. Cool.
But when it increments, it adds it to the destination source for a person, but doesn't remove it from the old value. I tried updateCacheControl() in afterSave, but that didn't do anything.
So then I wrote some code in my model for afterSave that would subtract the source source_id, but it always did this even when I wasn't even changing the source_id. (So the count went negative).
My question: Is there a way to tell if a field was changed in the model in CakePHP? | 0 | [
2,
19,
8390,
26120,
15,
184,
92,
42,
3746,
100,
21,
575,
23,
1015,
19,
40,
9392,
1028,
60,
800,
3726,
3726,
31,
22,
79,
568,
14,
16522,
24416,
19,
8390,
26120,
15,
56,
13,
28461,
18,
21,
2105,
26,
1597,
2861,
9,
823,
15,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Good alternative for ASpell?
===
Is there any good alternative to ASpell? It's nice open source, but haven't been updated for a while. The performance is not too good and I am having trouble creating a custom worklist with non-alpha characters. | 0 | [
2,
254,
2676,
26,
21,
23405,
60,
800,
3726,
3726,
25,
80,
186,
254,
2676,
20,
21,
23405,
60,
32,
22,
18,
2210,
368,
1267,
15,
47,
2933,
22,
38,
74,
6372,
26,
21,
133,
9,
14,
956,
25,
52,
266,
254,
17,
31,
589,
452,
2572,
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,
0,
0,
0,
0,
0... |
MySQL InnoDB database restore
===
I have to restore a database that has been inadvertently DROPped in MySQL 5.0. From checking the backup files, I only seem to have .FRM files to hold the database data.
Can anyone advise whether this is all I need to perform a database restore/import from the backup, or are there other files I should have to hand to complete this? | 0 | [
2,
51,
18,
22402,
19,
251,
9007,
6018,
8454,
800,
3726,
3726,
31,
57,
20,
8454,
21,
6018,
30,
63,
74,
23294,
1539,
19,
51,
18,
22402,
331,
9,
387,
9,
37,
9886,
14,
10119,
6488,
15,
31,
104,
2260,
20,
57,
13,
9,
6177,
79,
648... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Are there any MVC web frameworks that support multiple request types?
===
In every MVC framework I've tried (Rails, Merb, Waves, Spring, and Struts), the idea of a Request (and Response) is tied to the HTTP notion of a Request. That is, even if there is an AbstractRequest that is a superclass of Request, the AbstractRequest has things like headers, request method (GET, POST, etc.), and all of the other things tied to HTTP.
I'd like to support a request-response cycle over SMS, Twitter, email, or any other medium for which I can make an adapter. Is there a framework that does this particularly well?
The only other option I've thought of is creating, for example, a Twitter poller that runs in a separate thread and translates messages into local HTTP requests, then sends the responses back out.
If there _were_ a good framework for multiple request media, what would routing look like? In Rails, the HTTP routing looks something like:
map.connect 'some/path/with/:parameter_1/:paramter_2', :controller => 'foo', :action => 'bar'
How would a Twitter or SMS route look? Regular expressions to match keywords and parameters? | 0 | [
2,
50,
80,
186,
307,
8990,
2741,
6596,
18,
30,
555,
1886,
3772,
2551,
60,
800,
3726,
3726,
19,
352,
307,
8990,
6596,
31,
22,
195,
794,
13,
5,
7301,
18,
15,
55,
7549,
15,
5097,
15,
1573,
15,
17,
18316,
18,
6,
15,
14,
882,
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 to avoid type safety warnings with Hibernate HQL results?
===
For example I have such query:
Query q = sess.createQuery("from Cat cat");
List cats = q.list();
If I try to make something like this it will show warning "Type safety: The expression of type List needs unchecked conversion to conform to List<Cat>":
List<Cat> cats = q.list();
Is there a way to avoid it?
Thanks. | 0 | [
2,
184,
20,
2658,
1001,
2108,
3590,
18,
29,
4148,
2102,
8820,
746,
22402,
1736,
60,
800,
3726,
3726,
26,
823,
31,
57,
145,
25597,
45,
25597,
2593,
800,
13,
7202,
18,
9,
6037,
1373,
8190,
93,
5,
7,
2665,
2008,
2008,
7,
6,
73,
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... |
How to permanently disable region-folding in Visual Studio 2008
===
Anyone know how to turn off code folding in visual studio 2008? Some of my colleagues love it, but I personally always want to see all the code, and never want code folded out of sight. I'd like a setting that means my copy of Visual Studio never folds `#regions`or function bodies. | 0 | [
2,
184,
20,
8384,
1460,
579,
632,
8,
8814,
68,
19,
3458,
1120,
570,
800,
3726,
3726,
1276,
143,
184,
20,
805,
168,
1797,
14516,
19,
3458,
1120,
570,
60,
109,
16,
51,
8493,
339,
32,
15,
47,
31,
7200,
550,
259,
20,
196,
65,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Obfuscating Silverlight XAP
===
I am wondering any efficient way to hide our Silverlight code. I know there are some obfuscators available but it looks like people can hack that too. Anybody have any success on this front? | 0 | [
2,
5122,
13735,
150,
1880,
1172,
3130,
993,
2552,
800,
3726,
3726,
31,
589,
5712,
186,
8243,
161,
20,
3077,
318,
1172,
3130,
1797,
9,
31,
143,
80,
50,
109,
5122,
13735,
150,
9922,
904,
47,
32,
1879,
101,
148,
92,
11835,
30,
266,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Storing C++ template function definitions in a .CPP file
===
I have some template code that I would prefer to have stored in a CPP file instead of inline in the header. I know this can be done as long as you know which template types will be used. For example:
__.h file__
class foo
{
public:
template <typename T>
void do(const T& t);
};
__.cpp file__
template <typename T>
void foo::do(const T& t)
{
// Do something with t
}
template void foo::do<int>(const int&);
template void foo::do<std::string>(const std::string&);
Note the last two lines - the foo::do template function is only used with ints and std::strings, so those definitions mean the app will link.
My question is - is this a nasty hack or will this work with other compilers/linkers? I am only using this code with VS2008 at the moment but will be wanting to port to other environments. | 0 | [
2,
25615,
272,
20512,
22894,
1990,
18544,
19,
21,
13,
9,
150,
3421,
3893,
800,
3726,
3726,
31,
57,
109,
22894,
1797,
30,
31,
83,
6369,
20,
57,
8214,
19,
21,
272,
3421,
3893,
700,
16,
19,
1143,
19,
14,
157,
106,
9,
31,
143,
48,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why does IE7 sepcify a mime-type of image/pjpeg rather than just image/jpeg?
===
When uploading a file (jpeg) via a form in IE7 I am seeing a mime-type of "image/pjpeg" instead of "image/jpeg" (as I see in Firefox or similar). It's easy enough to work around this problem, but I'm just wondering why IE7 is behaving differently in this case? | 0 | [
2,
483,
630,
13,
660,
465,
10332,
150,
8612,
21,
26193,
8,
4474,
16,
1961,
118,
21670,
20427,
864,
119,
114,
1961,
118,
728,
20427,
60,
800,
3726,
3726,
76,
71,
16866,
21,
3893,
13,
5,
728,
20427,
6,
1197,
21,
505,
19,
13,
660,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a way to clear a user's brower of my page, or say not to use cache?
===
Is there a command in classic ASP I can use to tell the browser not to pull the page from it's cache, or, to not cache, or clear the cache of my page?
| 0 | [
2,
25,
80,
21,
161,
20,
1207,
21,
4155,
22,
18,
7246,
106,
16,
51,
2478,
15,
54,
395,
52,
20,
275,
16522,
60,
800,
3726,
3726,
25,
80,
21,
1202,
19,
2732,
28,
306,
31,
92,
275,
20,
494,
14,
16495,
52,
20,
2201,
14,
2478,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the simplest way to offer/consume web services in jython?
===
I have an application for Tomcat which needs to offer/consume web services. Since Java web services are a nightmare (xml, code generation, etc.) compared with what is possible in Python, I would like to learn from your experience using jython instead of java for offerring/consuming web services.
What I have done so far involves adapting [http://pywebsvcs.sourceforge.net/][1] to [Jython][2]. I still get errors (namespaces, types and so), although some of it is succesful for the simplest services.
[1]: http://pywebsvcs.sourceforge.net/
[2]: http://www.jython.org | 0 | [
2,
98,
25,
14,
24384,
161,
20,
1994,
118,
12124,
9472,
2741,
687,
19,
487,
93,
11570,
60,
800,
3726,
3726,
31,
57,
40,
3010,
26,
2067,
5782,
56,
2274,
20,
1994,
118,
12124,
9472,
2741,
687,
9,
179,
8247,
2741,
687,
50,
21,
10586... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which is more pythonic, factory as a function in a module, or as a method on the class it creates ?
===
I have some Python code that creates a Calendar object based on parsed VEvent objects from and iCalendar file.
The calendar object just has a method that adds events as they get parsed.
Now I want to create a factory function that creates a calendar from a file object, path, or URL.
I've been using the [iCalendar python module][1], which implements a factory function as a class method directly on the Class that it returns an instance of:
cal = icalendar.Calendar.from_string(data)
From what little I know about Java, this is a common pattern in Java code, though I seem to find more references to a factory method being on a different class than the class you actually want to instantiate instances from.
The question is, is this also considered Pythonic ? Or is it considered more pythonic to just create a module-level method as the factory function ?
[1]: http://codespeak.net/icalendar/ | 0 | [
2,
56,
25,
91,
20059,
596,
15,
3129,
28,
21,
1990,
19,
21,
12613,
15,
54,
28,
21,
2109,
27,
14,
718,
32,
9695,
13,
60,
800,
3726,
3726,
31,
57,
109,
20059,
1797,
30,
9695,
21,
7036,
3095,
432,
27,
2017,
18,
69,
13,
195,
6645... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
A more advanced table/spreadsheet SWT implementation
===
I'm developing an application based on Eclipse's Rich Client Platform that relies heavily on the use of tables for showing and editing data. I'm currently using the SWT implementations of Table and TableViewer.
My users are forever complaining that it "doesn't work like in excel". Most notably, I can't select a single cell within a row and all rows have the same height. I'm looking for an implementation that addresses these issues.
Criteria:
- Free (as in speech *and* beer -- I'm a phd student and the program is EPL)
- SWT (the various solutions for including swing in SWT aren't very nice)
| 0 | [
2,
21,
91,
2255,
859,
118,
27013,
17627,
8783,
38,
6123,
800,
3726,
3726,
31,
22,
79,
3561,
40,
3010,
432,
27,
11652,
22,
18,
2042,
6819,
2452,
30,
19272,
2991,
27,
14,
275,
16,
7484,
26,
3187,
17,
9510,
1054,
9,
31,
22,
79,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I configure the ip address with CherryPy?
===
I'm using python and CherryPy to create a simple internal website that about 2 people use. I use the built in webserver with CherryPy.quickstart and never messed with the config files. I recently changed machines so I installed the latest Python and cherrypy and when I run the site I can access it from localhost:8080 but not through the IP or the windows machine name. It could be a machine configuration difference or a newer version of CherryPy or Python. Any ideas how I can bind to the correct IP address? | 0 | [
2,
184,
107,
31,
1065,
15951,
14,
15735,
3218,
29,
9257,
6448,
60,
800,
3726,
3726,
31,
22,
79,
568,
20059,
17,
9257,
6448,
20,
1600,
21,
1935,
3117,
2271,
30,
88,
172,
148,
275,
9,
31,
275,
14,
392,
19,
2741,
10321,
106,
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... |
Indexing nulls for fast searching on DB2
===
It's my understanding that nulls are not indexable in DB2, so assuming we have a huge table (Sales) with a date column (sold_on) which is normally a date, but is occasionally (10% of the time) null.
Furthermore, let's assume that it's a legacy application that we can't change, so those nulls are staying there.
We can make the following query fast by putting an index on the sold_on column
Select * from Sales
where
Sales.sold_on between date1 and date2
But an index won't make this query any faster:
Select * from Sales
where
Sales.sold_on is null
Because the indexing is done on the value.
Can I index nulls? Maybe by changing the index type? Indexing the indicator column? | 0 | [
2,
4348,
68,
16203,
18,
26,
1512,
5792,
27,
13,
9007,
135,
800,
3726,
3726,
32,
22,
18,
51,
3260,
30,
16203,
18,
50,
52,
4348,
579,
19,
13,
9007,
135,
15,
86,
11704,
95,
57,
21,
2329,
859,
13,
5,
18,
14461,
6,
29,
21,
1231,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
When is the right time (and the wrong time) to use backticks?
===
Many beginning programmers write code like this:
sub copy_file ($$) {
my $from = shift;
my $to = shift;
`cp $from $to`;
}
Is this bad, and why? Should backticks ever be used? If so, how? | 0 | [
2,
76,
25,
14,
193,
85,
13,
5,
290,
14,
1389,
85,
6,
20,
275,
97,
1786,
4020,
60,
800,
3726,
3726,
151,
997,
17968,
18,
2757,
1797,
101,
48,
45,
972,
4344,
1,
16877,
13,
5,
4403,
4403,
6,
13,
1,
51,
5579,
2665,
800,
4471,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 statically compile an SDL game on Windows
===
I have been trying to produce a statically linked "single binary" version of my game for windows. I want to link with sdl, sdl_image and sdl_mixer which in turn pull in a few support libraries. Unfortunately I haven't found a way to get them all to compile and link using cygwin/mingw/gcc. As far as I can tell all existing public versions are only shared libraries / dlls. | 0 | [
2,
184,
20,
12038,
1326,
26561,
40,
13,
18,
8643,
250,
27,
1936,
800,
3726,
3726,
31,
57,
74,
749,
20,
2213,
21,
12038,
1326,
4727,
13,
7,
14031,
14171,
7,
615,
16,
51,
250,
26,
1936,
9,
31,
259,
20,
3508,
29,
13,
18,
8643,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which format for small website images? GIF or PNG?
===
When doing small icons, header graphics and the like for websites, is it better to use GIFs or PNGs?
Obviously if transparency effects are required, then PNGs are definitely the way to go, and for larger, more photographic images I'd use JPEGs - but for normal web "furniture", which would you recommend and why? It may just be the tools I'm using, but GIF files usually seem to be a bit smaller than a comparible PNG, but using them just seems so 1987. | 0 | [
2,
56,
2595,
26,
284,
2271,
3502,
60,
489,
821,
54,
351,
2723,
60,
800,
3726,
3726,
76,
845,
284,
9801,
18,
15,
157,
106,
8351,
17,
14,
101,
26,
13931,
15,
25,
32,
574,
20,
275,
489,
821,
18,
54,
351,
2723,
18,
60,
4409,
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... |
Lightweight X window manager/environment
===
My machine is seriously underpowered, and I think I need to start conserving every spare cycle. I know that my Gnome environment seems to underperform compared to my coworkers' KDE setups. But if I'm going to make that big of a switch, I might as well consider running something even lighter.
Is it possible to survive on a lightweight window manager and still run modern apps (Firefox, Eclipse, OpenOffice)? What's a good candidate window manager for me to try, and what do I need to know? | 0 | [
2,
13613,
993,
1463,
1382,
118,
28976,
800,
3726,
3726,
51,
1940,
25,
4818,
131,
9844,
15,
17,
31,
277,
31,
376,
20,
799,
1065,
13759,
352,
8001,
4150,
9,
31,
143,
30,
51,
24117,
2307,
2206,
20,
131,
1432,
4190,
2428,
20,
51,
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... |
What is the best method to capture Motion JPEG images from a live video device for use by a Java-based application?
===
I am looking into an image processing problem for semi-real time detection of certain scenarios. My goal is to have the live video arrive as Motion JPEG frames in my Java code *somehow*.
I am familiar with the [Java Media Framework][1] and, sadly, I think we can consider that an effectively dead API. I am also familiar with [Axis boxes][2] and, while I really like their solution, I would appreciate any critical feedback on my specific points of interest.
This is how I define "best" for the purpose of this discussion:
* Latency - if I'm controlling the camera using this video stream, I would like to keep my round-trip latency at less than 100 milliseconds if possible. That's measured as the time between my control input to the time when I see the visible change.
* Cost - free / open source is better than not free.
* Adjustable codec parameters - I need to be able to tune the codec for certain situations. Sometimes a high-speed low-resolution stream is actually easier to process.
* "Integration" with Java - how much trouble is it to hook this solution to my code? Am I sending packets over a socket? Hitting URLs? Installing Direct3D / JNI combinations?
* Windows / Linux / both? - I would prefer an operating system agnostic solution because I have to deliver to several flavors of OS but there may be a solution that is optimal for one but not the other.
NOTE: I am aware of other image / video capture codecs and that is not the focus of this question. I am specifically *not* interested in streaming APIs (e.g., MPEG4) due to the loss of frame accuracy. However, if there is a solution to my question that delivers another frame-accurate data stream, please chime in.
[1]: http://java.sun.com/javase/technologies/desktop/media/jmf/
[2]: http://www.axis.com/ | 0 | [
2,
98,
25,
14,
246,
2109,
20,
3683,
2422,
487,
20427,
3502,
37,
21,
515,
763,
3646,
26,
275,
34,
21,
8247,
8,
1281,
3010,
60,
800,
3726,
3726,
31,
589,
699,
77,
40,
1961,
5511,
1448,
26,
1922,
8,
7467,
85,
11643,
16,
1200,
196... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How would you go about reverse engineering a set of binary data pulled from a device?
===
A friend of mine brought up this questiont he other day, he's recently bought a garmin heart rate moniter device which keeps track of his heart rate and allows him to upload his heart rate stats for a day to his computer.
The only problem is there are no linux drivers for the garmin USB device, he's managed to interpret some of the data, such as the model number and his user details and has identified that there are some binary datatables essentially which we assume represent a series of recordings of his heart rate and the time the recording was taken.
Where does one start when reverse engineering data when you know nothing about the structure? | 0 | [
2,
184,
83,
42,
162,
88,
7006,
1552,
21,
309,
16,
14171,
1054,
881,
37,
21,
3646,
60,
800,
3726,
3726,
21,
860,
16,
1114,
809,
71,
48,
1301,
38,
24,
89,
208,
15,
24,
22,
18,
1989,
2448,
21,
3126,
2160,
582,
1684,
3521,
242,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Recommended Python publish/subscribe/dispatch module ?
===
From [PyPubSub][1]:
> Pypubsub provides a simple way for
> your Python application to decouple
> its components: parts of your
> application can publish messages (with
> or without data) and other parts can
> subscribe/receive them. This allows
> message "senders" and message
> "listeners" to be unaware of each
> other:
>
> * one doesn't need to import the other
> * a sender doesn't need to know
> * "who" gets the messages,
> * what the listeners will do with the data,
> * or even if any listener will get the message data.
> * similarly, listeners don't need to worry about where messages come from.
>
> This is a great tool for implementing
> a Model-View-Controller architecture
> or any similar architecture that
> promotes decoupling of its components.
There seem to be quite a few Python modules for publishing/subscribing floating around the web, from PyPubSub, to [PyDispatcher][2] to simple "home-cooked" classes.
Can you recommend a module that works well in most cases ? Which modules have you had positive experience with ? Negative ?
Thanks in advance
[1]: http://pypi.python.org/pypi/PyPubSub/
[2]: http://pydispatcher.sourceforge.net/ | 0 | [
2,
5773,
20059,
10824,
118,
20330,
118,
2906,
23661,
12613,
13,
60,
800,
3726,
3726,
37,
636,
6448,
17848,
7563,
500,
2558,
165,
500,
45,
13,
1,
7103,
17848,
7563,
1927,
21,
1935,
161,
26,
13,
1,
154,
20059,
3010,
20,
121,
17856,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Calculate distance from an address
===
Okay, here's the deal. We have a list of places important to our user's jobs (and yes, I'm being purposefully vague, but bear with me.) The list is completely maintained by the users — in particular, the supervisor has read and write access but all "regular" users under her have only read access. All information about each place is pretty much up to her to provide, including its address. This last bit is important, as while we distinguish each part of the address in the db (i.e. a city column, zip column, etc) each is optional (allows nulls) and there's little to stop her from providing as much or as little address information. Usually, this is because she may not have it.
What I'd like to offer them is a way to search the list by a location and have them sorted by proximity, with the closest at the top.
Nothing that any map site hasn't already done, I know, but this is for purely internal stuff that is of no interest to the outside world (a pure intranet web app). Did I mention it was a **web app**? It is. **AJAX** aplenty, too, and running on **ASP.NET** with **C#** and an **SQL Server 2005** back-end.
I have no problems using outside resources (I'd actually prefer it over rolling my own unless it would be trivial to do myself). If Google or Yahoo already provides a free service, I'm more than willing to check it out. The keyword is it must be free, as I'm not at liberty to introduce any additional cost onto this project for this feature as it is already a bonus "perk" so to speak. I'm all about the icing on the cake.
I'm thinking of this much like many brick & mortar shops do their "Find a Location" feature. Showing it in a simple table sorted appropriately and displaying distance (in, say, miles) is great. Showing a map mash-up is even cooler, but I can definitely live with just getting the distance back and me handling all of the subsequent display or even sorting. Just getting that distance value is enough, really.
The problem with simple distance algorithms is the nature of the data. Since all or part of the address can be undefined, I don't have anything convenient like lat/long coords nor can I guarantee that these locations will be understood by Google or Yahoo's map services (they *are* businesses but mostly local and mom & pop stuff that might be unlisted on the big map sites). Of course, I could just limit the distance search feature to apply to the locations that she's provided sufficient address info for.
Anyway, a long question already so I'll end it here. If anyone needs additional info to help answer I'll be more than happy to edit this and add more. I saw a couple previous questions here on SO about distance but they concerned more with the algorithms. This is more real world than homework questions.
<div style="FONT-SIZE: 1.25em; TEXT-ALIGN: center;">Please leave a <strong>comment</strong> if you need me to provide more info. Thanks!</div> | 0 | [
2,
18469,
1583,
37,
40,
3218,
800,
3726,
3726,
1705,
15,
235,
22,
18,
14,
1183,
9,
95,
57,
21,
968,
16,
1489,
681,
20,
318,
4155,
22,
18,
4844,
13,
5,
290,
1643,
15,
31,
22,
79,
142,
29532,
14800,
15,
47,
2746,
29,
55,
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... |
How fast is LINQ?
===
I need to manipulate 100,000 - 200,000 records.<br>
I am thinking of using LINQ (to SQL) to do this.<br>
I know from experience that filtering dataviews is very slow.<br>
So how quick is LINQ?<br>
<br>
Can you please tell me your experiences and if it is worth using, or would I be better off using SQL stored procedures (heavy going and less flexible)?
<br>
<br>
Within the thousands of records I need to find groups of data and then process them, each group has about 50 records.
| 0 | [
2,
184,
1512,
25,
6294,
1251,
60,
800,
3726,
3726,
31,
376,
20,
18468,
9600,
13,
8,
13,
14335,
742,
9,
1,
5145,
1,
31,
589,
1440,
16,
568,
6294,
1251,
13,
5,
262,
4444,
255,
6,
20,
107,
48,
9,
1,
5145,
1,
31,
143,
37,
1496... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Syntax to declare JS scripts
===
I'm not sure about what's the difference between opening a JS script with
<SCRIPT language='JavaScript'>
or with:
<SCRIPT type="text/JavaScript">
Should JavaScript always be quoted (either with " " or with ' ') or that's not really important?
Thank you for any clarification on this topic! | 0 | [
2,
22649,
20,
10123,
487,
18,
17505,
800,
3726,
3726,
31,
22,
79,
52,
562,
88,
98,
22,
18,
14,
2841,
128,
1214,
21,
487,
18,
3884,
29,
13,
1,
8741,
816,
3726,
22,
1004,
1385,
8741,
22,
1,
54,
29,
45,
13,
1,
8741,
1001,
3726,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 title of the current active window using c#?
===
I'd like to know how to grab the Window title of the current active window (i.e. the one that has focus) using C#. | 0 | [
2,
184,
107,
31,
164,
14,
581,
16,
14,
866,
1348,
1463,
568,
272,
5910,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
143,
184,
20,
4931,
14,
1463,
581,
16,
14,
866,
1348,
1463,
13,
5,
49,
9,
62,
9,
14,
53,
30,
63,
1776,
6,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
SQL Server, Remote Stored Procedure, and DTC Transactions
===
Our organization has a lot of its essential data in a mainframe Adabas database. We have ODBC access to this data and from C# have queried/updated it successfully using ODBC/Natural "stored procedures".
What we'd like to be able to do now is to query a mainframe table from within SQL Server 2005 stored procs, dump the results into a table variable, massage it, and join the result with native SQL data as a result set.
The execution of the Natural proc from SQL works fine when we're just selecting it; however, when we insert the result into a table variable SQL seems to be starting a distributed transaction that in turn seems to be wreaking havoc with our connections.
Given that we're not performing updates, is it possible to turn off this DTC-escalation behavior?
Any tips on getting DTC set up properly to talk to DataDirect's (formerly Neon Systems) Shadow ODBC driver? | 0 | [
2,
4444,
255,
8128,
15,
5388,
8214,
7004,
15,
17,
13,
43,
6668,
13147,
800,
3726,
3726,
318,
1165,
63,
21,
865,
16,
82,
5832,
1054,
19,
21,
407,
8361,
13,
4405,
6093,
6018,
9,
95,
57,
12340,
7229,
1381,
20,
48,
1054,
17,
37,
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... |
Obtaining information about the physical device from a given file path
===
Suppose you have a full path to an accessible file or folder on the system. How can I get some kind of unique identifier for the physical device that the file (or folder) actually resides on?
My first attempt was to use `System.IO.DriveInfo` which depends on having a drive letter. But UNC paths and multiple network drives mapped to the same physical device on a server add some complications. For example these 3 paths all point to the same folder on the same device.
\\myserver\users\brian\public\music\
s:\users\brian\public\music\ (here s:\ is mapped to \\myserver\)
u:\public\users\music\ (here u:\ is mapped to \\myserver\users\brian\)
Ultimately my goal is to take these multiple paths and report the amount of used and free disk space on each device. I want to combine these 3 paths into a single item in the report and not 3 separate items.
Is there any Windows API that can help find this information given any arbitrary full path?
| 0 | [
2,
12114,
676,
88,
14,
1825,
3646,
37,
21,
504,
3893,
2013,
800,
3726,
3726,
5787,
42,
57,
21,
503,
2013,
20,
40,
7342,
3893,
54,
19294,
27,
14,
329,
9,
184,
92,
31,
164,
109,
825,
16,
2619,
25570,
26,
14,
1825,
3646,
30,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you deal with lots of small files?
===
A product that I am working on collects several thousand reading a day and stores them as 64k binary files on a NTFS partition (Windows XP). After a year in production there is over 300000 files in a single directory and the number keeps growing. This has made accessing the parent/ancestor directories from windows explorer very time consuming. I have tried turning off the indexing service but that made no difference. I have also contemplated moving the file content into a database/zip files/tarballs but it is beneficial for us to access the files individually; basically, the files are still needed for research purposes and the researchers are not willing to deal with anything else. Is there a way to optimize NTFS or Windows so that it can work with all these small files? | 0 | [
2,
184,
107,
42,
1183,
29,
7503,
16,
284,
6488,
60,
800,
3726,
3726,
21,
2374,
30,
31,
589,
638,
27,
5543,
18,
238,
2996,
1876,
21,
208,
17,
4134,
105,
28,
4384,
197,
14171,
6488,
27,
21,
13,
2877,
11754,
10711,
13,
5,
27508,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PocketPC - Convert VT_DATE to an invariant VT_BSTR
===
I'm trying to convert a VARIANT from VT\_DATE to an **invariant** VT\_BSTR. The following code works on Windows XP:
VARIANT va;
::VariantInit(&va);
// ...
// code to set to a VT_DATE
// ...
// change to a string
err = ::VariantChangeTypeEx(&va,
&va,
LOCALE_INVARIANT,
0,
VT_BSTR);
But on PPC 2003 and Windows Mobile 5, the above code returns E_FAIL. Can someone tell me why the above doesn't work or provide an alternative? | 0 | [
2,
3397,
5779,
13,
8,
8406,
566,
38,
1,
8209,
20,
40,
19,
18445,
566,
38,
1,
220,
9729,
800,
3726,
3726,
31,
22,
79,
749,
20,
8406,
21,
8320,
37,
566,
38,
1,
8209,
20,
40,
13,
1409,
108,
18445,
1409,
566,
38,
1,
220,
9729,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best way to make a thread signal another thread in .NET?
===
I need to have a thread signal another if the user wishes to interrupt execution, however I'm unsure about how to implement the signaling/signal-checking mechanism. I wouldn't like to have a singleton in my project (like a global `bool`), but is there an alternative?
In [this thread][1] people suggest proper structures for that in C++, but I don't know about anything similar in .NET. Could somebody please shed some light?
[1]: http://stackoverflow.com/questions/34151/c-thread-question-setting-a-value-to-indicate-the-thread-has-finished | 0 | [
2,
98,
25,
14,
246,
161,
20,
233,
21,
9322,
2800,
226,
9322,
19,
13,
9,
2328,
60,
800,
3726,
3726,
31,
376,
20,
57,
21,
9322,
2800,
226,
100,
14,
4155,
8803,
20,
15811,
5769,
15,
207,
31,
22,
79,
13815,
88,
184,
20,
8713,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Linq to SQL Grouping Child Relationships
===
I'm trying to run a LINQ to SQL query that returns a result in a grid view in a search engine style listing.
In the simplified example below, is it possible to populate the collection with a comma-separated list of any children that the parent has (NAMESOFCHILDREN) in a single query?
var family = from p in db.Parents
where p.ParentId == Convert.ToInt32(Request.QueryString["parentId"])
join pcl in db.ParentChildLookup on p.ParentId equals pcl.ParentId
join c in db.Children on pcl.ChildId equals c.ChildId
select new
{
Family = "Name: " + p.ParentName + "<br />" +
"Children: " + NAMESOFCHILDREN? + "<br />"
};
Thanks in advance. | 0 | [
2,
6294,
1251,
20,
4444,
255,
19288,
850,
5833,
800,
3726,
3726,
31,
22,
79,
749,
20,
485,
21,
6294,
1251,
20,
4444,
255,
25597,
30,
4815,
21,
829,
19,
21,
7354,
1418,
19,
21,
2122,
1406,
1034,
9554,
9,
19,
14,
13,
11268,
823,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Indirectly referenced from required .class file
===
I'm getting an error message when I try to build my project in eclipse:
<code>The type weblogic.utils.expressions.ExpressionMap cannot be resolved. It is indirectly referenced
from required .class files</code>
I've looked online for a solution and cannot find one (except for those sites that make you pay for help). Anyone have any idea of a way to find out how to go about solving this problem? Any help is appreciated, thanks! | 0 | [
2,
20713,
17571,
37,
1390,
13,
9,
1898,
3893,
800,
3726,
3726,
31,
22,
79,
1017,
40,
7019,
2802,
76,
31,
1131,
20,
1895,
51,
669,
19,
11652,
45,
13,
1,
9375,
1,
124,
1001,
2741,
24268,
9,
14255,
18,
9,
28993,
18,
9,
28993,
150... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What would be the simplest way to daemonize a python script in Linux ?
===
What would be the simplest way to daemonize a python script in Linux ? I need that this works with every flavor of python, so it should only use python based tools. | 0 | [
2,
98,
83,
44,
14,
24384,
161,
20,
13127,
2952,
21,
20059,
3884,
19,
13024,
13,
60,
800,
3726,
3726,
98,
83,
44,
14,
24384,
161,
20,
13127,
2952,
21,
20059,
3884,
19,
13024,
13,
60,
31,
376,
30,
48,
693,
29,
352,
11974,
16,
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,
0,
0,
0,
0,
0,
0,
0... |
Using Pylint with Django
===
I would very much like to integrate [pylint][1] into the build process for
my python projects, but I have run into one show-stopper: One of the
error types that I find extremely useful--:`E1101: *%s %r has no %r
member*`--constantly reports errors when using common django fields,
for example:
E1101:125:get_user_tags: Class 'Tag' has no 'objects' member
which is caused by this code:
def get_user_tags(username):
"""
Gets all the tags that username has used.
Returns a query set.
"""
return Tag.objects.filter( ## This line triggers the error.
tagownership__users__username__exact=username).distinct()
# Here is the Tag class, models.Model is provided by Django:
class Tag(models.Model):
"""
Model for user-defined strings that help categorize Events on
on a per-user basis.
"""
name = models.CharField(max_length=500, null=False, unique=True)
def __unicode__(self):
return self.name
How can I tune Pylint to properly take fields such as objects into account? (I've also looked into the Django source, and I have been unable to find the implementation of `objects`, so I suspect it is not "just" a class field. On the other hand, I'm fairly new to python, so I may very well have overlooked something.)
[1]: http://www.logilab.org/857 | 0 | [
2,
568,
7103,
1226,
38,
29,
3857,
14541,
800,
3726,
3726,
31,
83,
253,
212,
101,
20,
18399,
636,
6448,
1226,
38,
500,
2558,
165,
500,
77,
14,
1895,
953,
26,
51,
20059,
2314,
15,
47,
31,
57,
485,
77,
53,
298,
8,
7318,
1432,
45,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Flash: Coming back from another tab in browser, can flash listen to return to tab event of some sort ?
===
I got this flash application where you can click a link while watching a video. It will open a new tab and pause the video. Now when you come back to the flash application it would be nice if the video would start playing again. Is there a way, an event or so to do this ? | 0 | [
2,
4433,
45,
880,
97,
37,
226,
6523,
19,
16495,
15,
92,
4433,
3834,
20,
788,
20,
6523,
807,
16,
109,
2058,
13,
60,
800,
3726,
3726,
31,
330,
48,
4433,
3010,
113,
42,
92,
10840,
21,
3508,
133,
1953,
21,
763,
9,
32,
129,
368,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 add an empty directory to a git repository
===
How do I convince git that I really do want an empty directory? | 0 | [
2,
184,
107,
31,
3547,
40,
2424,
16755,
20,
21,
13,
10404,
24869,
800,
3726,
3726,
184,
107,
31,
6218,
13,
10404,
30,
31,
510,
107,
259,
40,
2424,
16755,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Generate PDF from structured data
===
I want to be able to generate a highly graphical (with lots of text content as well) PDF file from data that I might have in a database or xml or any other structured form.
Currently our graphic designer creates these PDF files in Photoshop manually after getting the content as a MS Word Document. But usually, there are more than 20 revisions of the content; small changes here and there, spelling corrections, etc.
The 2 disadvantages are:
1) The graphic designer's time is unnecessarily occupied. The first version is the only one he/she should have to work on.
2) The PDF file becomes the document which now has the final revised content, and the initial content is out of sync with it. So if the initial content needs to be somewhere else (like on a website), we need to recreate it from the PDF file.
Generating the PDF file will help me solve both these problems. Perhaps some way in which the graphic designer creates a "Template" and then puts in tags/holders and maps these tags/holders to the relevant data.
Thanks :-) | 0 | [
2,
7920,
13,
11124,
37,
17784,
1054,
800,
3726,
3726,
31,
259,
20,
44,
777,
20,
7920,
21,
2157,
21755,
13,
5,
1410,
7503,
16,
1854,
2331,
28,
134,
6,
13,
11124,
3893,
37,
1054,
30,
31,
530,
57,
19,
21,
6018,
54,
23504,
54,
186... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using Powershell to access IIS logs?
===
I know you can use powershell to make things like the registry a drive letter. There are other objects in powershell to treat other objects in this way. Does anyone know of any cmd-lets to access IIS logs in this manner? | 0 | [
2,
568,
414,
15984,
20,
1381,
595,
18,
18893,
60,
800,
3726,
3726,
31,
143,
42,
92,
275,
414,
15984,
20,
233,
564,
101,
14,
18269,
21,
1493,
1748,
9,
80,
50,
89,
3916,
19,
414,
15984,
20,
5752,
89,
3916,
19,
48,
161,
9,
630,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Windows Server 2008 SSTP VPN in a Non-Domain Environment?
===
Is it doable to set up a non-domain-based (standalone) Windows Server 2008 as an SSTP VPN (Secure Socket Layer Tunneling Protocol VPN)?
I'd like to enable remote users to access a network via SSL-based VPN (currently using PPTP) by making an SSTP VPN connection via a Win2k8 server. Most of the docs seem to include running in an AD domain with an in-house Certificate Authority to enable this feature.
Is it possible to do this with a stand-alone Win2k8 server? If so, how? | 0 | [
2,
1936,
8128,
570,
13,
18,
18,
13726,
13,
10924,
103,
19,
21,
538,
8,
537,
6232,
2307,
60,
800,
3726,
3726,
25,
32,
107,
579,
20,
309,
71,
21,
538,
8,
537,
6232,
8,
1281,
13,
5,
10731,
17979,
6,
1936,
8128,
570,
28,
40,
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... |
Pointers and containers
===
We all know that RAW pointers need to be wrapped in some form of smart pointer to get Exception safe memory management. But when it comes to containers of pointers the issue becomes more thorny.
The std containers insist on the contained object being copyable so this rules out the use of std::auto_ptr, though you can still use boost::shared_ptr etc.
But there are also some boost containers designed explicitly to hold pointers safely:<br>
See [Pointer Container Library](http://www.boost.org/doc/libs/1_36_0/libs/ptr_container/doc/reference.html)<br>
The question is:
Under what conditions should I prefer to use the ptr_containers over a container of smart_pointers?
boost::ptr_vector<X>
or
std::vector<boost::shared_ptr<X> >
| 0 | [
2,
454,
445,
17,
18988,
800,
3726,
3726,
95,
65,
143,
30,
4333,
454,
445,
376,
20,
44,
3684,
19,
109,
505,
16,
3978,
454,
106,
20,
164,
5391,
1834,
1912,
1097,
9,
47,
76,
32,
1624,
20,
18988,
16,
454,
445,
14,
1513,
2633,
91,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best ASP.NET/MSSQL based wiki?
===
We're considering moving our documentation to a wiki. I tried the SharePoint wiki but it seems really poor on features. Then I tried Mediawiki, but we don't have PHP/MySQL available in our network. We work a lot with Microsoft technology and I was wondering what is the best Wiki that you used that is written in ASP.NET using MSSQL? | 4 | [
2,
98,
25,
14,
246,
28,
306,
9,
2328,
118,
79,
18,
18,
22402,
432,
13,
17375,
60,
800,
3726,
3726,
95,
22,
99,
5154,
1219,
318,
13945,
20,
21,
13,
17375,
9,
31,
794,
14,
1891,
3132,
13,
17375,
47,
32,
2206,
510,
1696,
27,
96... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 check your field- and table names against reserved word lists ?
===
I've sometimes had a problem with my field-, table-, view- oder stored procedure names.
Example:
SELECT from, to, rate FROM Table1
The Problem is that ***from*** is a reserved word in SQL-92.
You could put the fieldname in double quotes to fix this, but what if some other db tools wants to read your database?
It is your database design and it is your fault if other applications have problems with your db.
There are many other [reserved words][1] (~300) and we should avoid all of them.
If you change the DBMS from manufacturer A to B, your application can fail, because a some fieldnames are now reserved words.
A field called ***PERCENT*** may work for a oracle db, but on a MS SQL Server it must be treated as a reserved word.
I have a tool to check my database design against these reserved words ; you too?
Here are my rules
1. don't use names longer than 32 chars (some DBMS can't handle longer names)
2. use only a-z, A-Z, 0-9 and the underscore (:-;,/&!=?+- are not allowed)
3. don't start a name with a digit
4. avoid these reserved words
[1]: http://developer.mimer.com/validator/sql-reserved-words.tml "SQL reserved words" | 0 | [
2,
107,
42,
2631,
154,
575,
8,
17,
859,
1817,
149,
9430,
833,
7227,
13,
60,
800,
3726,
3726,
31,
22,
195,
1030,
41,
21,
1448,
29,
51,
575,
8,
15,
859,
8,
15,
1418,
8,
13,
17812,
8214,
7004,
1817,
9,
823,
45,
5407,
37,
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... |
Java garbabe collection on VMWare servers
===
Has anyone experienced issues with Java's default garbage collector while running apps on VmWare instances?
I am experiencing issues where full garbage collections are not running as often as I would expect and am curious if the VmWare variable has anything to do with it. | 0 | [
2,
8247,
19646,
58,
863,
1206,
27,
13,
20147,
5011,
17595,
800,
3726,
3726,
63,
1276,
3882,
1549,
29,
8247,
22,
18,
12838,
15024,
10836,
133,
946,
4865,
18,
27,
13,
20147,
5011,
13946,
60,
31,
589,
15138,
1549,
113,
503,
15024,
5721... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Location of My Pictures
===
How do I programatically (Using C#) find out what the path is of my My Pictures folder?
Does this work on XP and Vista? | 0 | [
2,
1474,
16,
51,
3104,
800,
3726,
3726,
184,
107,
31,
625,
721,
8438,
13,
5,
12655,
272,
5910,
6,
477,
70,
98,
14,
2013,
25,
16,
51,
51,
3104,
19294,
60,
630,
48,
170,
27,
23045,
17,
13520,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
jasper reports, modifying columns at runtimr
===
I'm using "Print when expression" to conditionally hide a column (and it's header) in my report. When the column is hidden, the space it would have occupied is left blank, which is not particularly attractive.
I would prefer if the extra space was used in a more effective manner, possibilities include:
- the width of the report is reduced by the width of the hidden column
- the extra space is distributed among the remaining columns
In theory, I could achieve (1) by setting the width of the column (and header) to 0, but also indicate that the column should resize to fit it's contents. But AFAIK Jasper does not actually provide a "resize width to fit contents" option.
Another option is to generate my reports using the Jasper API instead of defining the report template in XML. But that seems like a lot of effort for such a simple requirement.
Thanks in advance,
Don | 0 | [
2,
16750,
2813,
15,
17579,
68,
7498,
35,
485,
10002,
139,
800,
3726,
3726,
31,
22,
79,
568,
13,
7,
10299,
76,
1803,
7,
20,
2874,
1326,
3077,
21,
4698,
13,
5,
290,
32,
22,
18,
157,
106,
6,
19,
51,
1330,
9,
76,
14,
4698,
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 is the best way to embed LaTeX in a webpage?
===
I'm not asking about converting a LaTeX document to html.
What I'd like to be able to do is have some way to use LaTeX math commands in an html document, and have it appear correctly in a browser. This could be done server or client side. | 0 | [
2,
98,
25,
14,
246,
161,
20,
11911,
69,
456,
396,
19,
21,
2741,
6486,
60,
800,
3726,
3726,
31,
22,
79,
52,
3379,
88,
19583,
21,
456,
396,
4492,
20,
13,
15895,
9,
98,
31,
22,
43,
101,
20,
44,
777,
20,
107,
25,
57,
109,
161,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ignore a directory with SVN?
===
Just started using SVN and I have a cache directory that I don't need under source control. How can I ignore the whole directory/folder with SVN? | 0 | [
2,
184,
20,
7174,
21,
16755,
29,
13,
18,
16578,
60,
800,
3726,
3726,
114,
373,
568,
13,
18,
16578,
17,
31,
57,
21,
16522,
16755,
30,
31,
221,
22,
38,
376,
131,
1267,
569,
9,
184,
92,
31,
7174,
14,
979,
16755,
118,
8814,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do i kill a process using Vb.NET or C# ?
===
I have a scenario where i have to check whether user already has opend a word application ? if he has then i have to kill the winword.exe process and continue to execute my code. does any one has straigt forwad code syntax for killing a thread using vb.net or c# ? | 0 | [
2,
184,
107,
31,
1177,
21,
953,
568,
13,
20468,
9,
2328,
54,
272,
5910,
13,
60,
800,
3726,
3726,
31,
57,
21,
12705,
113,
31,
57,
20,
2631,
1472,
4155,
614,
63,
368,
43,
21,
833,
3010,
13,
60,
100,
24,
63,
94,
31,
57,
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... |
When would you use a User Control over a Web Control?
===
Can someone explain when to use each of these? They almost seem interchangable in many cases. The WebControl gets added to the toolbar, where the user control (ascx) can not. The webControl does not get rendered in the Designer where the user control does. Beyond that, how do you choose which is the right one to use. Also, I am looking for the best way to access the controls from JavaScript (GetElementById). So, a point in a right direction for added the client side support would be great.
Thanks. | 0 | [
2,
76,
83,
42,
275,
21,
4155,
569,
84,
21,
2741,
569,
60,
800,
3726,
3726,
92,
737,
3271,
76,
20,
275,
206,
16,
158,
60,
59,
557,
2260,
1480,
16180,
579,
19,
151,
1871,
9,
14,
2741,
12898,
3049,
905,
20,
14,
5607,
1850,
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... |
Do you keep your project files under version control?
===
Do you keep project files like Eclipse's .project, .classpath, .settings under version control (e.g. subversion)? | 4 | [
2,
107,
42,
643,
154,
669,
6488,
131,
615,
569,
60,
800,
3726,
3726,
107,
42,
643,
669,
6488,
101,
11652,
22,
18,
13,
9,
21011,
15,
13,
9,
1898,
8353,
15,
13,
9,
19831,
18,
131,
615,
569,
13,
5,
62,
9,
263,
9,
972,
10898,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Best IDE for Palm OS devices
===
Does anyone have experience with using a good quality IDE for Palm OS?
In particular I'm looking for the ability to compile small non-colour `.prc` files for roll out to older `Palm III` models. | 4 | [
2,
246,
13,
3448,
26,
3044,
13,
759,
4690,
800,
3726,
3726,
630,
1276,
57,
1496,
29,
568,
21,
254,
2190,
13,
3448,
26,
3044,
13,
759,
60,
19,
1498,
31,
22,
79,
699,
26,
14,
2165,
20,
26561,
284,
538,
8,
26723,
13,
1,
9,
4899... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How can I read a Word 2007 .docx file?
===
I'd like to search a Word 2007 file (.docx) for a text string, e.g., "some special phrase" that could/would be found from a search within Word.
Is there a way from Python to see the text? I have no interest in formatting - I just want to classify documents as having or not having "some special phrase".
Thanks!
Gerry | 0 | [
2,
184,
92,
31,
1302,
21,
833,
624,
13,
9,
13799,
396,
3893,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
2122,
21,
833,
624,
3893,
13,
5,
9,
13799,
396,
6,
26,
21,
1854,
3724,
15,
13,
62,
9,
263,
9,
15,
13,
7,
3220,
621,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using AssemblyInfo to automatically update multiple AssemblyInfo.cs files
===
I've got several AssemblyInfo.cs files as part of many projects in a single solution that I'm building automatically as part of TeamCity.
To make the msbuild script more maintainable I'd like to be able to use the AssemblyInfo community task in conjunction with an ItemGroup e.g.
<ItemGroup>
<AllAssemblyInfos Include="..\**\AssemblyInfo.cs" />
</ItemGroup>
<AssemblyInfo AssemblyTitle="" AssemblyProduct="$(Product)" AssemblyCompany="$(Company)" AssemblyCopyright="$(Copyright)"
ComVisible="false" CLSCompliant="false" CodeLanguage="CS" AssemblyDescription="$(Revision)$(BranchName)"
AssemblyVersion="$(FullVersion)" AssemblyFileVersion="$(FullVersion)" OutputFile="@(AllAssemblyInfos)" />
Which blatently doesn't work because OutputFile cannot be a referenced ItemGroup.
Anyone know how to make this work? | 0 | [
2,
568,
1475,
108,
4120,
20,
7499,
11100,
1886,
1475,
108,
4120,
9,
6824,
6488,
800,
3726,
3726,
31,
22,
195,
330,
238,
1475,
108,
4120,
9,
6824,
6488,
28,
141,
16,
151,
2314,
19,
21,
345,
4295,
30,
31,
22,
79,
353,
7499,
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... |
C# 3.0 Auto-Properties - Is it possible to add custom behaviour?
===
I'd like to know if there is any way to add custom behaviour to the auto property get/set methods.
An obvious case I can think of is wanting every set property method to call on any PropertyChanged event handlers as part of a System.ComponentModel.INotifyPropertyChanged implementation. This would allow a class to have numerous properties that can be observed, where each property is defined using auto property syntax.
Basically I'm wondering if there is anything similar to either a get/set template or post get/set hook with class scope.
(I know the same end functionality can easily be achieved in slightly more verbose ways - I just hate duplication of a pattern)
| 0 | [
2,
272,
5910,
203,
9,
387,
3108,
8,
10890,
106,
3915,
13,
8,
25,
32,
938,
20,
3547,
5816,
7727,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
143,
100,
80,
25,
186,
161,
20,
3547,
5816,
7727,
20,
14,
3108,
1354,
164,
118,
3554,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Install a SSL Certificate
===
Is there a tool or programmatic way to install an SSL cert to the default website in iis 6 and 7? Ideally I am looking for something that can be done via unmanaged code or .net managed code. | 0 | [
2,
184,
107,
42,
16146,
21,
13,
18,
18,
255,
6259,
800,
3726,
3726,
25,
80,
21,
5607,
54,
625,
6732,
161,
20,
16146,
40,
13,
18,
18,
255,
13,
17580,
20,
14,
12838,
2271,
19,
595,
18,
400,
17,
453,
60,
5628,
102,
31,
589,
699... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Framework to bind object properties to WTL controls
===
I would like to have something like this:
class Foo {
private:
int bar;
public:
void setBar(int bar);
int getBar() const;
}
class MyDialog : public CDialogImpl<MyDialog> {
BEGIN_MODEL_MAPPING()
MAP_INT_EDITOR(m_editBar, m_model, m_model.getBar, m_model.setBar);
END_MODEL_MAPPING()
// other methods and message map
private:
Foo * m_model;
CEdit m_editBar;
}
Also it would be great if I could provide my custom validations:
MAP_VALIDATED_INT_EDITOR(m_editBar, m_model, m_model.getBar, m_model.setBar, validateBar)
...
bool validateBar (int value) {
// custom validation
}
Have anybody seen something like this?
P.S. I don't like DDX because it's old and it's not flexible, and I cannot use getters and setters. | 0 | [
2,
6596,
20,
10193,
3095,
3704,
20,
619,
7786,
8671,
800,
3726,
3726,
31,
83,
101,
20,
57,
301,
101,
48,
45,
718,
4310,
111,
13,
1,
932,
45,
19,
38,
748,
73,
317,
45,
11364,
309,
1850,
5,
6391,
748,
6,
73,
19,
38,
164,
1850,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you handle developer individual files under version control?
===
Some files in our repository are individual to each developer. For example some developers use a local database, which is configured in a properties file in the project. So each developer has different settings. When one developer commits, he always has to take care to not commit his individually configured files.
How do you handle this? | 0 | [
2,
184,
107,
42,
3053,
10058,
1359,
6488,
131,
615,
569,
60,
800,
3726,
3726,
109,
6488,
19,
318,
24869,
50,
1359,
20,
206,
10058,
9,
26,
823,
109,
10168,
275,
21,
375,
6018,
15,
56,
25,
28895,
19,
21,
3704,
3893,
19,
14,
669,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is anyone using Entity Framework with an Oracle database?
===
I am wondering if anyone is already using Entity Framework with an Oracle database in a production environment? There seems to be no support for EF in ODP.Net and only 3rd party data providers (OraDirect) seem to be available to connect with Oracle. Someone mentioned asample data provider available on Codeplex but it is presented with the message that it should never be used in a production environment.
Are you using EF with an Oracle database already? | 0 | [
2,
25,
1276,
568,
9252,
6596,
29,
40,
15759,
6018,
60,
800,
3726,
3726,
31,
589,
5712,
100,
1276,
25,
614,
568,
9252,
6596,
29,
40,
15759,
6018,
19,
21,
637,
2307,
60,
80,
2206,
20,
44,
90,
555,
26,
11599,
19,
635,
7431,
9,
23... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I select the Count(*) of an nHibernate Subquery's results
===
I need to do the following for the purposes of paging a query in nHibernate:
Select count(*) from
(Select e.ID,e.Name from Object as e where...)
I have tried the following,
select count(*) from Object e where e = (Select e.ID,e.Name from ...)
and I get an nHibernate Exception saying I cannot convert Object to int32.
Any ideas on the required syntax? | 0 | [
2,
184,
107,
31,
5407,
14,
2468,
5,
2483,
6,
16,
40,
12109,
15191,
8820,
972,
8190,
93,
22,
18,
1736,
800,
3726,
3726,
31,
376,
20,
107,
14,
249,
26,
14,
4612,
16,
19006,
68,
21,
25597,
19,
12109,
15191,
8820,
45,
5407,
2468,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Where can I find a good primer on network administration?
===
Things like DHCP, IP addresses, configurations...that kind of thing. I have a Google search open, and it seems like there's just so much out there, I'm not sure where to begin. Perhaps there are some especially good websites/books/blogs out there that might help. Thanks | 0 | [
2,
113,
92,
31,
477,
21,
254,
1621,
139,
27,
982,
1603,
60,
800,
3726,
3726,
564,
101,
10231,
7439,
15,
15735,
12636,
15,
8091,
18,
9,
9,
9,
887,
825,
16,
584,
9,
31,
57,
21,
8144,
2122,
368,
15,
17,
32,
2206,
101,
80,
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... |
Before XML became a standard and given all it's shortcomings, what made XML so popular?
===
Yes XML is human readable but so is comma delimited text and properties files.
XML is bloated hard to parse, hard to modify in code, plus a ton of other problems that I can think about with it.
My questions is what are XML's most attractive qualities that has made it so popular????
| 0 | [
2,
115,
23504,
178,
21,
1236,
17,
504,
65,
32,
22,
18,
29444,
15,
98,
117,
23504,
86,
844,
60,
800,
3726,
3726,
1643,
23504,
25,
585,
1302,
579,
47,
86,
25,
11951,
58,
121,
23012,
1854,
17,
3704,
6488,
9,
23504,
25,
13,
7091,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you handle browser specific .js and .css
===
This is not a new topic, but I am curious how everyone is handling either .js or .css that is browser specific.
Do you have .js functions that have if/else conditions in them or do you have separate files for each browser?
Is this really an issue these days with the current versions of each of the popular browsers? | 0 | [
2,
184,
107,
42,
3053,
16495,
1903,
13,
9,
728,
18,
17,
13,
9,
6824,
18,
800,
3726,
3726,
48,
25,
52,
21,
78,
8303,
15,
47,
31,
589,
7686,
184,
1266,
25,
7988,
694,
13,
9,
728,
18,
54,
13,
9,
6824,
18,
30,
25,
16495,
1903,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mysql replication with lots of temporary table writes
===
I've got a database which I intend to replicate for backup reasons (performance is not a problem at the moment).
We've set up the replication correctly and tested it and all was fine.
Then we realized that it replicates all the writes to the temporary tables, which in effect meant that replication of one day's worth of data took almost two hours for the idle slave.
The reason for that is that we recompute some of the data in our db via cronjob every 15 mins to ensure it's in sync (it takes ~3 minutes in total, so it is unacceptable to do those operations during a web request; instead we just store the modifications without attempting to recompute anything while in the web request, and then do all of the work in bulk). In order to process that data efficiently, we use temporary tables (as there's lots of interdependencies).
Now, the first problem is that temporary tables do not persist if we restart the slave while it's in the middle of processing transactions that use that temp table. That can be avoided by not using temporary tables, although this has its own issues.
The more serious problem is that the slave could easily catch up in less than half an hour if it wasn't for all that recomputation (which it does one after the other, so there's no benefit of rebuilding the data every 15 mins... and you can literally see it stuck at, say 1115, only to quickly catch up and got stuck at 1130 etc).
One solution we came up with is to move all that recomputation out of the replicated db, so that the slave doesn't replicate it. But it has disadvantages in that we'd have to prune the tables it eventually updates, making our slave in effect "castrated", ie. we'd have to recompute everything on it before we could actually use it.
Did anyone have a similar problem and/or how would you solve it? Am I missing something obvious? | 0 | [
2,
51,
18,
22402,
23841,
29,
7503,
16,
4700,
859,
6215,
800,
3726,
3726,
31,
22,
195,
330,
21,
6018,
56,
31,
13863,
20,
22156,
26,
10119,
2932,
13,
5,
22528,
25,
52,
21,
1448,
35,
14,
688,
6,
9,
95,
22,
195,
309,
71,
14,
238... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PowerBuilder database connection pool? How-to
===
How to make database connection pool in PowerBuilder (v9+) with...
- ...ODBC?
- ...SQL Server?
- ...Oracle?
| 0 | [
2,
414,
20904,
6018,
2760,
3067,
60,
184,
8,
262,
800,
3726,
3726,
184,
20,
233,
6018,
2760,
3067,
19,
414,
20904,
13,
5,
710,
518,
2430,
6,
29,
9,
9,
9,
13,
8,
13,
9,
9,
9,
5648,
7229,
60,
13,
8,
13,
9,
9,
9,
18,
22402,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to add a Numeric Up / Down control to a .Net StatusStrip container
===
I'm looking to add a numeric up / down control to a .Net StatusStrip. Unfortunately, it isn't listed as an option in the UI designer. Is there a way to do this?
| 0 | [
2,
184,
20,
3547,
21,
15764,
596,
71,
13,
118,
125,
569,
20,
21,
13,
9,
2328,
1782,
19992,
12147,
800,
3726,
3726,
31,
22,
79,
699,
20,
3547,
21,
15764,
596,
71,
13,
118,
125,
569,
20,
21,
13,
9,
2328,
1782,
19992,
9,
6200,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Software for managing medium sized projects
===
So, at my current job we're usually 1-3 developers, 1-2 art directors and 1 project manager on each project, with the smallest ones just being one of each and the larger ones being three developers and two art directors.
I'm looking for a software, combination of softwares or some type of service that will allow us to manage our projects individually, it's important that we're able to manage several projects at once within one system/piece of software (without going through a too complicated setup process for each project) since we usually have 2-3 ongoing projects in parallel.
We need to be able to integrate with SVN, Track bugs/features/request, Put up milestones and some type of agile management a´la SCRUM would be nice.
Preferably it should be able to run on Windows (without to much hassle, ever tried to put up Apache+Python+Svn+Trac on the same Windows 2003 server and get them all to run together? not fun.) since we mostly do .NET development and most of our servers run Windows 2003. | 0 | [
2,
2306,
26,
5616,
4152,
13,
6560,
2314,
800,
3726,
3726,
86,
15,
35,
51,
866,
1205,
95,
22,
99,
951,
137,
8,
240,
10168,
15,
137,
8,
135,
415,
4711,
17,
137,
669,
1382,
27,
206,
669,
15,
29,
14,
11056,
53,
18,
114,
142,
53,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ArrayList in Java and inputting
===
I'm used to python, so this is a bit confusing to me. I'm trying to take in input, line-by-line, until a user inputs a certain number. The numbers will be stored in an array to apply some statistical maths to them. Currently, I have a main class, the stats classes, and an "reading" class.
Two Questions:
1. I can't seem to get the input loop to work out, what's the best practice for doing so.
2. What is the object-type going to be for the reading method? A double[], or an ArrayList?
1. How do I declare method-type to be an arraylist?
2. How do I prevent the array from having more than 1000 values stored within it?
Let me show what I have so far:
public static java.util.ArrayList readRange(double end_signal){
//read in the range and stop at end_signal
ArrayList input = new ArrayList();
Scanner kbd = new Scanner( System.in );
int count = 0;
do{
input.add(kbd.nextDouble());
System.out.println(input); //debugging
++count;
} while(input(--count) != end_signal);
return input;
}
Any help would be appreciated, pardon my newbieness... | 0 | [
2,
7718,
5739,
19,
8247,
17,
6367,
1203,
800,
3726,
3726,
31,
22,
79,
147,
20,
20059,
15,
86,
48,
25,
21,
1142,
18084,
20,
55,
9,
31,
22,
79,
749,
20,
247,
19,
6367,
15,
293,
8,
779,
8,
1143,
15,
163,
21,
4155,
6367,
18,
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... |
what is the better way to handle errors in VB6
===
I have VB6 application , I want to put some good error handling finction in it which can tell me what was the error and exact place when it happened , can anyone suggest the good way to do this | 0 | [
2,
98,
25,
14,
574,
161,
20,
3053,
11908,
19,
13,
20468,
379,
800,
3726,
3726,
31,
57,
13,
20468,
379,
3010,
13,
15,
31,
259,
20,
442,
109,
254,
7019,
7988,
4361,
150,
3309,
19,
32,
56,
92,
494,
55,
98,
23,
14,
7019,
17,
534... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What is the best IDE for PHP ?
===
I'm a PHP developer and now I use Notepad++ for code editing, but lately I've been searching for an IDE to ease my work.
I've looked into Eclipse, Aptana and several others but I'm not really decided, they all look nice enough but a bit complicated. I'm sure it'll all get easy once I get used to it but I don't want to waste my time.
This is what I'm looking for:
<ul>
<li>FTP support</li>
<li>Code highlight</li>
<li>SVN support would be great</li>
<li>Ruby and JavaScript would be great</li>
</ul>
Thanks, | 4 | [
2,
98,
25,
14,
246,
13,
3448,
26,
13,
26120,
13,
60,
800,
3726,
3726,
31,
22,
79,
21,
13,
26120,
10058,
17,
130,
31,
275,
1945,
8240,
20512,
26,
1797,
9510,
15,
47,
10434,
31,
22,
195,
74,
5792,
26,
40,
13,
3448,
20,
6378,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.