unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
How to program a text search and replace in PDF
===
How would I be able to programmatically search and replace some text in a large number of PDF files? I would like to remove a URL that has been added to a set of files. I have been able to remove the link using javascript under Batch Processing in Adobe Pro, but the link text remains. I have seen recommendations to use text touchup, which works manually, but I don't want to modify 1300 files manually. | 0 | [
2,
184,
20,
625,
21,
1854,
2122,
17,
3934,
19,
13,
11124,
800,
3726,
3726,
184,
83,
31,
44,
777,
20,
625,
6732,
1326,
2122,
17,
3934,
109,
1854,
19,
21,
370,
234,
16,
13,
11124,
6488,
60,
31,
83,
101,
20,
4681,
21,
287,
6362,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
As a C# developer who wants to do some PHP work, what [book/online articles] should I [buy/read] to introduce myself to PHP?
===
I've got the bare minimum to handle the Linux/MySQL parts of the stack, but I want to have a basic grasp of PHP before I dive in. I'll be working on WordPress plugins, in case there's anything specifically interesting for that.
PS - any recommendations regarding recommended source control/IDEs would also be great, but I guess that's a separate question. | 0 | [
2,
28,
21,
272,
5910,
10058,
72,
2846,
20,
107,
109,
13,
26120,
170,
15,
98,
636,
5199,
118,
218,
1143,
3376,
500,
378,
31,
636,
2345,
93,
118,
10647,
500,
20,
8500,
992,
20,
13,
26120,
60,
800,
3726,
3726,
31,
22,
195,
330,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How best to "turn off" a web page from another part of the application?
===
We have a web application that manages inventory for our computer support group. One of the things that we will be using this for is to drive a "Computers Currently In Use" map for our larger computer labs so that users can find an open computer more easily (the lab in our Main library has around 150 computers). The image used for the background of the display of this page is managed through the administrative part of the application as are the relationships between what stations are located in the lab and where they are located.
We'd like to make it so that admins can "turn off" the display of the map page for each location when the map is being updated in the administrative interface. My idea is to extend the table that holds the location data to indicate whether the location is available for map display, and check this when the map is updated. If the check indicates that the map should not be displayed, the page would draw a suitable message instead of displaying the map image and "in use" overlay data.
In the hopes that someone else may have done this, or something like it, before, I'd like to hear your suggestions on alternatives.
The map page will be refreshed periodically (one every 2 minutes) via AJAX by passing down the image url to use and the overlay data (positions of table and number of computers available at each). I'm thinking that when the page detects a transition from "don't display" to "display" it would refresh the page via HTTP GET. | 0 | [
2,
184,
246,
20,
13,
7,
8169,
168,
7,
21,
2741,
2478,
37,
226,
141,
16,
14,
3010,
60,
800,
3726,
3726,
95,
57,
21,
2741,
3010,
30,
9118,
13875,
26,
318,
1428,
555,
214,
9,
53,
16,
14,
564,
30,
95,
129,
44,
568,
48,
26,
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... |
asp.net - way to take a screenshot of the browser content?
===
I have an asp.net which has a desired feature from my users to take a "snapshot".
While I know this can be "simulated" with code, it would be really great to have a way to take a URL (or the current rendered page), and turn it into an image which can be stored on the server.
Is this crazy? Is there a way to do it? If so, a reference point? | 0 | [
2,
28,
306,
9,
2328,
13,
8,
161,
20,
247,
21,
2324,
7868,
16,
14,
16495,
2331,
60,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
56,
63,
21,
9264,
1580,
37,
51,
3878,
20,
247,
21,
13,
7,
18,
325,
306,
7868,
7,
9,
133,
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... |
Using Vista 256 x 256 icon from ico file in current application form.
===
I have an application which I have made a 256 x 256 vista icon for.
I was wondering how I would be able to use the 256x256 png in the ico file used as the application icon and show it in a picture box on a form.
I am using VB.net but answers in C# are fine. I'm thinking I may have to use reflection.
Thanks. | 0 | [
2,
568,
13520,
13,
16910,
993,
13,
16910,
9801,
37,
13,
7776,
3893,
19,
866,
3010,
505,
9,
800,
3726,
3726,
31,
57,
40,
3010,
56,
31,
57,
117,
21,
13,
16910,
993,
13,
16910,
13520,
9801,
26,
9,
31,
23,
5712,
184,
31,
83,
44,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 proper way to maintain state in a custom server control
===
I have a custom server control that has an [input] box on it. I want it to kinda mimic the ASP.NET TextBox, but not completely. When the textbox is rendered i have a javascript that allows users to select values that are then placed in that input box.
I have a public text property on the control. In the get/set i get/set the viewstate for the control - that part is easy, but when the control is populated via the javascript, the Text get is not actually called, what is the proper way to set this exposed property using JavaScript (or even if the user just types in the box) ?
thanks | 0 | [
2,
98,
25,
14,
4119,
161,
20,
4027,
146,
19,
21,
5816,
8128,
569,
800,
3726,
3726,
31,
57,
21,
5816,
8128,
569,
30,
63,
40,
636,
108,
4881,
500,
1649,
27,
32,
9,
31,
259,
32,
20,
21096,
13567,
14,
28,
306,
9,
2328,
1854,
530... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JavaScript: How to simulate a click to make the current input loose its focus
===
I have an input which at some points happens to have the focus. If the user click in the "background" of the page, the input looses its focus. I was trying to simulate the click on the background with the following code, but this doesn't work (you will notice that the input still has the focus). Any suggestion on how to write code that simulates a click on the "background" of the page?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo/yahoo-min.js" ></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/event/event-min.js" ></script>
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function() {
document.getElementById("input").focus();
document.getElementById("main").focus();
});
</script>
</head>
<body>
<div id="main">
<form action="/">
<p>
<input type="text" id="input"/>
</p>
</form>
</div>
</body>
</html>
Alex | 0 | [
2,
8247,
8741,
45,
184,
20,
24969,
21,
10840,
20,
233,
14,
866,
6367,
4675,
82,
1776,
800,
3726,
3726,
31,
57,
40,
6367,
56,
35,
109,
819,
5531,
20,
57,
14,
1776,
9,
100,
14,
4155,
10840,
19,
14,
13,
7,
1958,
8810,
7,
16,
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... |
"CLR detected an invalid program." when calling Generic Methods
===
I write a large static method that takes a generic as a parameter argument. I call this method, and the framework throws a System.InvalidProgramException.
I can create a static class which takes the generic argument, and then make this a method of the static class, and everything works fine.
Is this a .NET defect, or is there some obscure generic rule I'm breaking here?
For the sake of completeness, I've included the method which fails, and the method which passes. I uses a number of other classes which aren't explained here; the example just indicated the complexity:
(I'm programming with Visual Studio 2005, so maybe this has gone away in Visual Studio 2008.)
<b>This throws an exception before the first line is invoked:</b>
private delegate void PROG_Delegate<GridLine>(DataGridView dgv, IEnumerable<GridLine> gridLines, string[] columns);
public static void PopulateReadOnlyGrid<GridLine>(DataGridView dgv, IEnumerable<GridLine> gridLines, string[] columns)
{
if (dgv.InvokeRequired)
{
dgv.BeginInvoke
(
new PROG_Delegate<GridLine>(PopulateReadOnlyGrid<GridLine>),
new object[] { dgv, gridLines, columns }
);
return;
}
GridUtils.StatePreserver statePreserver = new GridUtils.StatePreserver(dgv);
System.Data.DataTable dt = CollectionHelper.ConvertToDataTable<GridLine>((gridLines));
dgv.DataSource = dt;
dgv.DataMember = "";
dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
GridUtils.OrderColumns<GridLine>(dgv, columns);
statePreserver.RestoreState();
dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
}
<b>This works fine:</b>
public static class Populator<GridLine>
{
private delegate void PROG_Delegate(DataGridView dgv, IEnumerable<GridLine> gridLines, string[] columns);
public static void PopulateReadOnlyGrid(DataGridView dgv, IEnumerable<GridLine> gridLines, string[] columns)
{
if (dgv.InvokeRequired)
{
dgv.BeginInvoke
(
new PROG_Delegate<GridLine>(PopulateReadOnlyGrid<GridLine>),
new object[] { dgv, gridLines, columns }
);
return;
}
GridUtils.StatePreserver statePreserver = new GridUtils.StatePreserver(dgv);
System.Data.DataTable dt = CollectionHelper.ConvertToDataTable<GridLine>((gridLines));
dgv.DataSource = dt;
dgv.DataMember = "";
dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
GridUtils.OrderColumns<GridLine>(dgv, columns);
statePreserver.RestoreState();
dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
}
} | 0 | [
2,
13,
7,
5316,
139,
11968,
40,
16671,
625,
9,
7,
76,
2555,
12733,
3195,
800,
3726,
3726,
31,
2757,
21,
370,
12038,
2109,
30,
1384,
21,
12733,
28,
21,
18906,
5476,
9,
31,
645,
48,
2109,
15,
17,
14,
6596,
13566,
21,
329,
9,
108... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does anyone know the language used to code Orkut?
===
For sure this question will not help anyone in a heavy way, but it can be useful in somehow. In the beginning, all Orkut pages had the extension *.aspx, but now all pages are "masqueraded" under a "Main#page.aspx".
Sorry if this "Main#" is a ASP feature, but it doesnt look like one to me. Does anyone know the language Orkut was coded? (I meand the language behind the "Main#") | 0 | [
2,
630,
1276,
143,
14,
816,
147,
20,
1797,
54,
2294,
38,
60,
800,
3726,
3726,
26,
562,
48,
1301,
129,
52,
448,
1276,
19,
21,
1278,
161,
15,
47,
32,
92,
44,
4811,
19,
3625,
9,
19,
14,
997,
15,
65,
54,
2294,
38,
4434,
41,
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 to intercept dll method calls?
===
How to intercept dll method calls?
| 0 | [
2,
184,
20,
18324,
13,
43,
211,
2109,
3029,
60,
800,
3726,
3726,
184,
20,
18324,
13,
43,
211,
2109,
3029,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Ensure single instance of app in Linux
===
I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail quickly. Under Win32, I can simply make a named mutex and check that at startup. Unfortunately, I don't know of any facilities in Linux that can do this.
I'm looking for something that will automatically be released should the application crash unexpectedly. I don't want to have to burden my users with having to manually delete lock files because I crashed. | 0 | [
2,
4062,
345,
4851,
16,
4865,
19,
13024,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
9457,
3010,
19,
619,
396,
6448,
11570,
15,
17,
31,
589,
52,
562,
184,
31,
92,
4062,
30,
104,
53,
4344,
16,
51,
3010,
25,
946,
35,
186,
504,
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... |
Strategy to migrate from StarTeam 5 to Subversion?
===
I need to migrate a large project from StarTeam 5 to Subversion, and I'd like to keep snapshots of (at least) 5-10 of the major releases. I've considered the following:
- Manual or scripted export/import of each snapshot. Advantages: straightforward, easy to select labeled/dated versions. Disadvantages: time-consuming, does not preserve comments.
- Polarion offers what seems to be the perfect tool in svnimporter, but it requires a .jar file from StarTeam 8.0 that is not present in StarTeam 5. Advantages: automated, complete. Disadvantages: requires upgrade to StarTeam 8.0 for one-time use.
- Migrate via some intermediate repository (*e.g.* StarTeam -> CVS -> Subversion). I haven't yet found any intermediary that will cooperate with StarTeam.
- Migrate only the latest source. Advantages: simple, fast, encourages developers to invent new solutions rather than repeating history. Disadvantage: encourages developers to invent new solutions rather than repeating history. :-)
I'd appreciate any experiences or suggestions you might offer. Thank you. | 0 | [
2,
4427,
20,
22985,
37,
778,
6575,
331,
20,
972,
10898,
60,
800,
3726,
3726,
31,
376,
20,
22985,
21,
370,
669,
37,
778,
6575,
331,
20,
972,
10898,
15,
17,
31,
22,
43,
101,
20,
643,
29946,
18,
16,
13,
5,
721,
639,
6,
331,
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... |
Tibco & Windows Process Activation
===
I'm thinking about how I could scale out Tibco EMS queue listeners written in managed code (C# in this instance). I'm looking for predominantly isolation and clustering characteristics.
In MSMQ I could use Windows Process Activation Service to host and manage the number and lifetime of queue listeners. Is there a Tibco equivalent?
Otherwise I suspect I'll end up with a simple NT service to host EMS listeners. (which in turn could perform process-activation). Workable but fairly tricky to build a 24x7 monitorable, robust, production service.
| 0 | [
2,
4174,
220,
716,
279,
1936,
953,
15519,
800,
3726,
3726,
31,
22,
79,
1440,
88,
184,
31,
110,
3464,
70,
4174,
220,
716,
3579,
18,
22521,
15672,
642,
19,
1471,
1797,
13,
5,
150,
5910,
19,
48,
4851,
6,
9,
31,
22,
79,
699,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Free Software or Scripts for Formatting SQL Queries
===
I'm looking for a script or application that tidies up and reformats SQL queries. I've found some good online SQL formatters (see [here][1]) , as well as some downloadable commercial applications. I'm cautious about using an online service as I don't want to risk copies of these queries being stored somewhere they might be compromised, if only in a web server's cache (and it is against my employer's policy).
Does anyone know of any open-source applications, scripts, or downloadable freeware that might help me out with this?
It probably bears mentioning that I'm working on a Windows platform at work, but I am open to suggestions for other operating systems.
Cheers!
[1]: http://www.wangz.net/gsqlparser/sqlpp/sqlformat.htm | 0 | [
2,
551,
2306,
54,
17505,
26,
2595,
1203,
4444,
255,
9386,
2829,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
3884,
54,
3010,
30,
4174,
10139,
71,
17,
3202,
721,
18,
4444,
255,
9386,
2829,
9,
31,
22,
195,
216,
109,
254,
2087,
4444,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
printable char in java
===
Does anyone knows how to detect printable characters in java?
After a while ( trial/error ) I get to this method:
public boolean isPrintableChar( char c ) {
Character.UnicodeBlock block = Character.UnicodeBlock.of( c );
return (!Character.isISOControl(c)) &&
c != KeyEvent.CHAR_UNDEFINED &&
block != null &&
block != Character.UnicodeBlock.SPECIALS;
}
I'm getting the input via KeyListener and come Ctr-'key' printed an square. With this function seems fairly enough.
Am I missing some char here?
Thank you in advance. | 0 | [
2,
4793,
579,
4892,
19,
8247,
800,
3726,
3726,
630,
1276,
3620,
184,
20,
9092,
4793,
579,
1766,
19,
8247,
60,
75,
21,
133,
13,
5,
2178,
118,
29992,
13,
6,
31,
164,
20,
48,
2109,
45,
317,
9827,
413,
210,
25,
10299,
579,
5433,
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... |
database design and program design
===
How is database design different to program design? | 0 | [
2,
6018,
704,
17,
625,
704,
800,
3726,
3726,
184,
25,
6018,
704,
421,
20,
625,
704,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Word macro error messages
===
One of our clients has decided they need their document template macros changed and I am ~lucky~ enough to be given the job. The one thing I can't find out how to do is to customize error messages. For example an error message they get in a document is
"Error! No table of figures entries found"
I would like to change this to display something else. Is it possible to do this with Word macros or VBScript ?
| 0 | [
2,
833,
9069,
7019,
7561,
800,
3726,
3726,
53,
16,
318,
7421,
63,
868,
59,
376,
66,
4492,
22894,
9069,
18,
1015,
17,
31,
589,
13,
1,
20653,
1,
511,
20,
44,
504,
14,
1205,
9,
14,
53,
584,
31,
92,
22,
38,
477,
70,
184,
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... |
Single Table Inheritance find issues
===
I have the following 3 rails classes, which are all stored in one table, using rails' Single table inheritance.
class Template < ActiveRecord::Base
class ThingTemplate < Template
class StockThingTemplate < ThingTemplate
If I have a `StockThingTemplate` with ID of `150` then I should logically be able to do this:
ThingTemplate.find(150)
=> #returns me the StockThingTemplate
And in fact this works, *sometimes*
When it works, it generates the following SQL query:
SELECT * FROM templates WHERE (templates.`id` = 159) AND ( (templates.`type` = 'ThingTemplate') OR (templates.`type` = 'StockThingTemplate' ) )
When it doesn't work, it generates the following SQL query:
SELECT * FROM templates WHERE (templates.`id` = 159) AND ( (templates.`type` = 'ThingTemplate') )
The sql is doing what it is supposed to, but the question is, WHY is it generating one set of SQL one time, and a different set another time. It's literally the exact same code.
Notes:
* I'm on rails 1.2
* I've already tried `require 'stock_thing_template'` in various places. It either has no effect, or causes other problems | 0 | [
2,
345,
859,
13852,
477,
1549,
800,
3726,
3726,
31,
57,
14,
249,
203,
2240,
18,
2684,
15,
56,
50,
65,
8214,
19,
53,
859,
15,
568,
2240,
18,
22,
345,
859,
13852,
9,
718,
22894,
13,
1,
1348,
14953,
45,
45,
8436,
718,
584,
9577,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 someone they need to upsize from ms access to sql server or similar
===
I am having a real problem at work with a highly ingrained developer obsessed with ms access. They moan about random, crashes, locking errors, freeze's, slow downs (especially in 2007) but seem to be very resistant to moving it. Most of the time they blame the computer and can't be convinced it's the fact its a mdb sat on a network drive and nothing to do with the hardware sat in front of them which is brand new.
There is a front end vb program hanging off it but I don't think it would take more than a couple of weeks to adjust, infact I would probably re-write it as it has year on year messy code from a previous developer.
What are my best arguments to convince them we need to move it?
Does anyone else have similar problems with developers stuck in their ways? | 0 | [
2,
184,
107,
31,
6218,
737,
59,
376,
20,
71,
10454,
37,
4235,
1381,
20,
4444,
255,
8128,
54,
835,
800,
3726,
3726,
31,
589,
452,
21,
683,
1448,
35,
170,
29,
21,
2157,
13,
68,
8664,
69,
10058,
19262,
29,
4235,
1381,
9,
59,
1135... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 many fields is 'too many' in a table?
===
I have a coworker who is planning a database for a new app that will have several tables with over 30 fields each. Is this excessive? Maybe I'm just not enterprisey enough to understand.
Edit: Also, a lot of the fields are option-type sort of things (like on a request form, would you like your widget to be yellow or green, he has a field for 'colour' with an enum). It's quite likely that these will be added to or removed over time. I haven't really done database design and try to stay away from it myself, so maybe I'm being completely stupid, but surely there's a better way of doing this?? | 0 | [
2,
184,
151,
2861,
25,
13,
22,
8175,
151,
22,
19,
21,
859,
60,
800,
3726,
3726,
31,
57,
21,
326,
22560,
72,
25,
2334,
21,
6018,
26,
21,
78,
4865,
30,
129,
57,
238,
7484,
29,
84,
712,
2861,
206,
9,
25,
48,
11513,
60,
913,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to share custom data between iPhone applications?
===
If I make two iPhone applications, how can/should I share custom data (not contacts and stuff like that) among them?
Thanks! | 0 | [
2,
184,
20,
1891,
5816,
1054,
128,
21024,
3767,
60,
800,
3726,
3726,
100,
31,
233,
81,
21024,
3767,
15,
184,
92,
118,
14941,
31,
1891,
5816,
1054,
13,
5,
1270,
11894,
17,
3217,
101,
30,
6,
497,
105,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Setting up a PHP web project for continuous integration
===
How can I best set up my PHP (LAMP) development environment so that I have development, staging and production servers. One-"click" deployment to any of those, as well as one-click rollback to any revision. Rollback should also rollback the database schema and data to how it was when that source code was current.
Right now I've done all of this (except the DB rollback ability) for one application using shell scripts. I'm curious to know how others' environments are setup, and also if there are any generic tools or best-practices out there to follow as far as layout is concerned.
So, how do you do this? What existing tools do you make use of?
Thanks! | 0 | [
2,
2697,
71,
21,
13,
26120,
2741,
669,
26,
6357,
8078,
800,
3726,
3726,
184,
92,
31,
246,
309,
71,
51,
13,
26120,
13,
5,
20293,
6,
522,
2307,
86,
30,
31,
57,
522,
15,
16824,
17,
637,
17595,
9,
53,
8,
7,
150,
10129,
7,
10475,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Language-agnostic code editors for Linux?
===
I need a Linux text editor to replace Textpad 4.7.3 (a Windows nagware app), but all the alternatives I've tried are either bloated or incomplete. Here are the features I find most important, in descending order:
- Regex search, mark, and replace (across all open files, even), regex search in directory trees
- Tabbed editor with **proper** keyboard shortcuts ([ctrl]+[tab] should work on the same model as [alt]+[tab])
- Auto-indent, indent preservation, and indent manipulation (tab, shift-tab)
- Smart navigation keys: [home] toggles between start of line and start of non-whitespace, [F2] seeks to next bookmark, *hitting the up and down arrow keys take you to the column where you last navigated, not where you last typed* (I think Textpad's the only place I've seen this)
- Syntax highlighting (bonus: mixed-language highlighting, which TextPad lacked)
- Block select mode
- Run user-defined commands from program (such as compilers), have interactive command results (Textpad would let you define regexes to match filenames and line numbers so you could double-click on an error and be taken to that line in that file.)
- Workspaces (collections of files to be open at the same time)
Here's what I've found distasteful in the editors I've tried:
- Vim and emacs do not take full advantage of my screen, mouse, and keyboard. Also, there's quite a learning curve. (Of course, if they had everything I wanted, I would learn them.)
- Gedit is almost perfect, but it (like most of them) has crappy tabbing, which is *intolerable*
- Eclipse is a monstrosity, and I won't touch it unless I'm doing Java
- Regex capability is frighteningly rare
I don't have the time or the specific knowledge required to build my "ideal editor", so I'm hoping someone out there with the same taste in editors might have stumbled across a gem. | 0 | [
2,
816,
8,
58,
21944,
1797,
12149,
26,
13024,
60,
800,
3726,
3726,
31,
376,
21,
13024,
1854,
1835,
20,
3934,
1854,
8240,
268,
9,
465,
9,
240,
13,
5,
58,
1936,
9277,
5011,
4865,
6,
15,
47,
65,
14,
2676,
18,
31,
22,
195,
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... |
I got problem while stopping thread which displays dialog window in C#, i get exception "Thread was being aborted"
===
In my app i've got thread which displays for some time "please wait" dialog window, sometimes it is a very tiny amout of time and there is some glitch while drawing UI (i guess),
I get exception "Thread was being aborted" and completly have no idea how get rid of it. I mean Catch that exception in some way, or in some other way hide it from user. This exeption got nothing to do with rest of my app and that error in any way doesn't affects it. Appears randomly and it is hard to recreate on a call
I tryied in various ways to catch that exception by side of code which starts and stops thread with dialog window but it seems that error apparently is by side some other thread which dispalys window in my newly created thread.
any ideas? | 0 | [
2,
31,
330,
1448,
133,
7048,
9322,
56,
9412,
28223,
1463,
19,
272,
5910,
15,
31,
164,
5391,
13,
7,
96,
10647,
23,
142,
21557,
69,
7,
800,
3726,
3726,
19,
51,
4865,
31,
22,
195,
330,
9322,
56,
9412,
26,
109,
85,
13,
7,
6744,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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++ IDE for Macs
===
I teach a C++ course using Visual Studio. One of my students has a Mac, and was looking for an IDE to use on his machine. What would be good to recommend? | 4 | [
2,
272,
20512,
13,
3448,
26,
1572,
18,
800,
3726,
3726,
31,
5348,
21,
272,
20512,
674,
568,
3458,
1120,
9,
53,
16,
51,
573,
63,
21,
1572,
15,
17,
23,
699,
26,
40,
13,
3448,
20,
275,
27,
33,
1940,
9,
98,
83,
44,
254,
20,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Can you recommend a MySQL Book for an "intermediate" developer?
===
I'm a web developer looking to improve my MySQL skillset. Basic CRUD, joins, etc are all pretty par for the course; I'm looking to learn more about efficiency, avoiding bottlenecks, optimizing queries, and lots more awesome stuff that I don't know the words to explain.
| 0 | [
2,
92,
42,
12360,
21,
51,
18,
22402,
360,
26,
40,
13,
7,
6280,
8260,
591,
7,
10058,
60,
800,
3726,
3726,
31,
22,
79,
21,
2741,
10058,
699,
20,
3545,
51,
51,
18,
22402,
3207,
1198,
9,
2125,
11498,
43,
15,
10612,
15,
2722,
50,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 difference between a 'closure' and a 'lambda'?
===
Could someone explain? I understand the basic concepts behind them but I often see them used interchangeably and I get confused.
And now that we're here, how do they differ from a regular function? | 0 | [
2,
98,
25,
14,
2841,
128,
21,
13,
22,
13023,
5838,
22,
17,
21,
13,
22,
24187,
22,
60,
800,
3726,
3726,
110,
737,
3271,
60,
31,
1369,
14,
2125,
8700,
439,
105,
47,
31,
478,
196,
105,
147,
6617,
4801,
17,
31,
164,
4230,
9,
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... |
Deploying several web apps in same server
===
I am thinking on deploying several (and different) web applications on the same server using the following schema:
www.mydomain.com/app1
www.mydomain.com/app2
Is this a good practice? Any recommendations? | 0 | [
2,
17617,
68,
238,
2741,
4865,
18,
19,
205,
8128,
800,
3726,
3726,
31,
589,
1440,
27,
17617,
68,
238,
13,
5,
290,
421,
6,
2741,
3767,
27,
14,
205,
8128,
568,
14,
249,
23874,
45,
13,
6483,
9,
915,
537,
6232,
9,
960,
118,
7753,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Continuous Integration for Ruby on Rails?
===
I've been searching around for a Continuous Integration solution for Ruby on Rails, but haven't been too pleased with the results. I came from a .NET shop that used CruiseControl.NET and was really spoiled with it's ease of use and rich status/reporting.
Ideally I'm looking for:
- The obvious Git/SVN and Test::Unit
integration
- Integration with Rake and/or
Capistrano
- A web interface showing the status
of the build
- Email notification of failed builds.
- Desktop notification (potentially
through Growl)
- REST API for build statuses
- Plugin framework for running other code analysis tools and reporting results in the UI
| 0 | [
2,
6357,
8078,
26,
10811,
27,
2240,
18,
60,
800,
3726,
3726,
31,
22,
195,
74,
5792,
140,
26,
21,
6357,
8078,
4295,
26,
10811,
27,
2240,
18,
15,
47,
2933,
22,
38,
74,
266,
7130,
29,
14,
1736,
9,
31,
281,
37,
21,
13,
9,
2328,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Convert time fields to strings in Excel
===
I have an excel sheet full of times.
They are formatted so that they look like: 1:00:15
However if I change the format on the cells to text, they change to the underlying numeric representation of the time: 0.041840278
How can I convert the cells to be text cells but still have the time in them ? | 0 | [
2,
8406,
85,
2861,
20,
7887,
19,
20700,
800,
3726,
3726,
31,
57,
40,
20700,
6125,
503,
16,
436,
9,
59,
50,
13,
29850,
86,
30,
59,
361,
101,
45,
6352,
2032,
45,
1193,
207,
100,
31,
753,
14,
2595,
27,
14,
2934,
20,
1854,
15,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best practice for generating ranking lists
===
What is the best way to generate and maintain several ranking lists for the home page of a website/webapp?
Currently, I'm thinking about using a cron job scheduler to run the queries to gather the statistics, run an algorithm on the statistics and then finally generate the ranking lists which will then be saved to a temporary table in mysql.
However, I'm not sure if this is the most efficient way to go about this. I'd imagine the use of some caching will help as well.
Note: I'm using the grails web application framework.
Thanks. | 0 | [
2,
246,
1345,
26,
13500,
4992,
7227,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
7920,
17,
4027,
238,
4992,
7227,
26,
14,
213,
2478,
16,
21,
2271,
118,
14113,
7753,
60,
871,
15,
31,
22,
79,
1440,
88,
568,
21,
13,
19587,
1205,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Most efficient data type for UUID in database besides a native UUID.
===
What would be the most efficient data type to store a UUID/GUID in databases that do not have a native UUID/GUID data type? 2 BIGINTs?
And what would be the most efficient code (C# preferred) to convert to and from a GUID to that type?
Thanks. | 0 | [
2,
127,
8243,
1054,
1001,
26,
13,
19612,
1340,
19,
6018,
3410,
21,
1275,
13,
19612,
1340,
9,
800,
3726,
3726,
98,
83,
44,
14,
127,
8243,
1054,
1001,
20,
1718,
21,
13,
19612,
1340,
118,
7215,
43,
19,
6018,
18,
30,
107,
52,
57,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using set.insert( key ) as a conditional?
===
I am trying to use set.insert (key) as a conditional, where if the key is inserted correctly (meaning that the key does NOT already exsist in the set ) then it should go on and perform some kind of code. For example, something like:
if (set.insert( key ) {
// some kind of code
}
Is this allowed? Because the compiler is throwing this back at me:
> conditional expression of type 'std::_Tree<_Traits>::iterator' is illegal
Thanks in advance,
Tomek | 0 | [
2,
568,
309,
9,
108,
18,
6767,
5,
1246,
13,
6,
28,
21,
21206,
60,
800,
3726,
3726,
31,
589,
749,
20,
275,
309,
9,
108,
18,
6767,
13,
5,
4237,
6,
28,
21,
21206,
15,
113,
100,
14,
1246,
25,
14215,
12044,
13,
5,
14466,
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... |
Passing a string to an already running instance of an application
===
I have an application that detects if there is another instance of the app running and exits if one is found. This part seems to work reliably. My app takes a command-line argument that I would like to pass to the already running instance. I have the following code so far:
Project1.dpr
-----------
program Project1;
uses
...
AppInstanceControl in 'AppInstanceControl.pas';
if not AppInstanceControl.RestoreIfRunning(Application.Handle) then
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TFormMain, FormMain);
Application.Run;
end;
end.
AppInstanceControl.pas
----------------------
{ Based on code by Zarko Gajic found at http://delphi.about.com/library/code/ncaa100703a.htm}
unit AppInstanceControl;
interface
uses
Windows,
SysUtils;
function RestoreIfRunning(const AAppHandle: THandle; const AMaxInstances: integer = 1): boolean;
implementation
uses
Messages;
type
PInstanceInfo = ^TInstanceInfo;
TInstanceInfo = packed record
PreviousHandle: THandle;
RunCounter: integer;
end;
var
UMappingHandle: THandle;
UInstanceInfo: PInstanceInfo;
UMappingName: string;
URemoveMe: boolean = True;
function RestoreIfRunning(const AAppHandle: THandle; const AMaxInstances: integer = 1): boolean;
var
LCopyDataStruct : TCopyDataStruct;
begin
Result := True;
UMappingName := StringReplace(
ParamStr(0),
'\',
'',
[rfReplaceAll, rfIgnoreCase]);
UMappingHandle := CreateFileMapping($FFFFFFFF,
nil,
PAGE_READWRITE,
0,
SizeOf(TInstanceInfo),
PChar(UMappingName));
if UMappingHandle = 0 then
RaiseLastOSError
else
begin
if GetLastError <> ERROR_ALREADY_EXISTS then
begin
UInstanceInfo := MapViewOfFile(UMappingHandle,
FILE_MAP_ALL_ACCESS,
0,
0,
SizeOf(TInstanceInfo));
UInstanceInfo^.PreviousHandle := AAppHandle;
UInstanceInfo^.RunCounter := 1;
Result := False;
end
else //already runing
begin
UMappingHandle := OpenFileMapping(
FILE_MAP_ALL_ACCESS,
False,
PChar(UMappingName));
if UMappingHandle <> 0 then
begin
UInstanceInfo := MapViewOfFile(UMappingHandle,
FILE_MAP_ALL_ACCESS,
0,
0,
SizeOf(TInstanceInfo));
if UInstanceInfo^.RunCounter >= AMaxInstances then
begin
URemoveMe := False;
if IsIconic(UInstanceInfo^.PreviousHandle) then
ShowWindow(UInstanceInfo^.PreviousHandle, SW_RESTORE);
SetForegroundWindow(UInstanceInfo^.PreviousHandle);
end
else
begin
UInstanceInfo^.PreviousHandle := AAppHandle;
UInstanceInfo^.RunCounter := 1 + UInstanceInfo^.RunCounter;
Result := False;
end
end;
end;
end;
if (Result) and (CommandLineParam <> '') then
begin
LCopyDataStruct.dwData := 0; //string
LCopyDataStruct.cbData := 1 + Length(CommandLineParam);
LCopyDataStruct.lpData := PChar(CommandLineParam);
SendMessage(UInstanceInfo^.PreviousHandle, WM_COPYDATA, Integer(AAppHandle), Integer(@LCopyDataStruct));
end;
end; (*RestoreIfRunning*)
initialization
finalization
//remove this instance
if URemoveMe then
begin
UMappingHandle := OpenFileMapping(
FILE_MAP_ALL_ACCESS,
False,
PChar(UMappingName));
if UMappingHandle <> 0 then
begin
UInstanceInfo := MapViewOfFile(UMappingHandle,
FILE_MAP_ALL_ACCESS,
0,
0,
SizeOf(TInstanceInfo));
UInstanceInfo^.RunCounter := -1 + UInstanceInfo^.RunCounter;
end
else
RaiseLastOSError;
end;
if Assigned(UInstanceInfo) then UnmapViewOfFile(UInstanceInfo);
if UMappingHandle <> 0 then CloseHandle(UMappingHandle);
end.
and in the main form unit:
--------------------------
procedure TFormMain.WMCopyData(var Msg: TWMCopyData);
var
LMsgString: string;
begin
Assert(Msg.CopyDataStruct.dwData = 0);
LMsgString := PChar(Msg.CopyDataStruct.lpData);
//do stuff with the received string
end;
I'm pretty sure the problem is that I'm trying to send the message to the handle of the running app instance but trying to process the message on the main form. I'm thinking I have two options here:
A) From the application's handle somehow get the handle of its main form and send the message there.
B) Handle receiving the message at the application rather than the main form level.
I'm not really sure how to go about either. Is there a better approach?
Thanks. | 0 | [
2,
2848,
21,
3724,
20,
40,
614,
946,
4851,
16,
40,
3010,
800,
3726,
3726,
31,
57,
40,
3010,
30,
9092,
18,
100,
80,
25,
226,
4851,
16,
14,
4865,
946,
17,
4350,
18,
100,
53,
25,
216,
9,
48,
141,
2206,
20,
170,
13,
19003,
4801,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Seething over MSYS shell - is it replaceable?
===
I need a serviceable shell for MSYS. This is my current dilemma:
The default rxvt.exe has a scroll bar and copy and paste, but doesn't send control characters or arrow keys to a running program in the shell (like interpreters/debuggers). This is a real thorn when using the Haskell interpreter ghci.
The other shell sh.exe handles control characters (or at least some of them), but has no scroll bar or copy and paste.
rxvt also has (relatively) more issues with output buffering
What are my options? Does the replacement shell need to be msys aware? All I want is a sane environment to work with Haskell (ghc), C++ (gcc), and the basic tool chain (make and what not). I'm willing to compile a shell if it doesn't involve crazy shenanigans. | 0 | [
2,
196,
96,
68,
84,
4235,
93,
18,
3593,
13,
8,
25,
32,
3934,
579,
60,
800,
3726,
3726,
31,
376,
21,
365,
579,
3593,
26,
4235,
93,
18,
9,
48,
25,
51,
866,
23314,
45,
14,
12838,
13,
21141,
710,
38,
9,
1706,
62,
63,
21,
12159... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 multiple BindingSources on one DataTable
===
I have a DataTable that has a boolean column called [Invalid]. I need to divide this data up by this Invalid column - valid rows can be edited, invalid rows cannot. My original plan was to use two BindingSources and set the Filter property ([Invalid] = 'false', for instance), which plays right into my hands because I have two DataGridViews and so I need two BindingSources anyway.
This doesn't work: the BindingSources set the Filter property associated with the DataTable, so both BindingSources hold the same data. Am I going to have to do two fetches from the database, or can I do what I want with the objects I have? | 0 | [
2,
568,
1886,
8728,
12097,
18,
27,
53,
1054,
5924,
800,
3726,
3726,
31,
57,
21,
1054,
5924,
30,
63,
21,
9827,
413,
210,
4698,
227,
636,
108,
18506,
43,
500,
9,
31,
376,
20,
8918,
48,
1054,
71,
34,
48,
16671,
4698,
13,
8,
7394,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 c++ memory model?
===
What is c++ memory model? | 0 | [
2,
98,
25,
272,
20512,
1912,
1061,
60,
800,
3726,
3726,
98,
25,
272,
20512,
1912,
1061,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Best AJAX TreeView
===
What are some of the better AJAX Treeviews out there that support asynchronous JSON loading.
YUI TreeView seems nice, but bloated with tables, etc.
| 4 | [
2,
246,
20624,
1541,
4725,
800,
3726,
3726,
98,
50,
109,
16,
14,
574,
20624,
1541,
4725,
18,
70,
80,
30,
555,
21,
16023,
1291,
487,
528,
12797,
9,
2600,
49,
1541,
4725,
2206,
2210,
15,
47,
13,
7091,
1669,
29,
7484,
15,
2722,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
C++ bindings for MySQL
===
I'm running OSX(10.4.11) & I'm trying to get a decent C(preferably C++) binding for MySQL figured out. I have some data in an offsite database I want to analyze.
I'm trying to get MySQL++ working, but it's being funky. | 0 | [
2,
272,
20512,
8728,
18,
26,
51,
18,
22402,
800,
3726,
3726,
31,
22,
79,
946,
13,
759,
396,
5,
1036,
9,
300,
9,
1306,
6,
279,
31,
22,
79,
749,
20,
164,
21,
12238,
272,
5,
3515,
2407,
4801,
272,
20512,
6,
8728,
26,
51,
18,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
auto-refreshing div with jquery
===
how exactly do you make an auto-refreshing div with javascript (specifically, jQuery) ?
I knew about the setTimeout method, but is it really a good practice ? Is there a better method ?
function update() {
$.get("response.php", function(data) {
$("#some_div").html(data);
});
window.setTimeout("update();", 10000);
}
Thanks before. | 0 | [
2,
3108,
8,
99,
22373,
68,
13,
12916,
29,
487,
8190,
93,
800,
3726,
3726,
184,
1890,
107,
42,
233,
40,
3108,
8,
99,
22373,
68,
13,
12916,
29,
8247,
8741,
13,
5,
9219,
1326,
15,
487,
8190,
93,
6,
13,
60,
31,
404,
88,
14,
309,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Complex height in CSS
===
Before I explain what I'm trying to do, note that I have the good fortune of only having to target Webkit (meaning, I can use lots of neat CSS).
So, basically, I want to have a block with a flexible height, position fixed, maximum height being that of the available window height, with some elements at the top and bottom of the block that are always visible, and in the middle an area with overflow auto. Basically it'd look like this:
<pre>
----------------------
| Top item | |
| | |
| stuff | |
| | |
| | |
| Last item | |
|------------ |
| |
| |
----------------------
----------------------
| Top item | |
|-----------| |
| lots |^| |
| of |_| |
| stuff |_| |
| | | |
| | | |
|-----------| |
| Last item | |
----------------------</pre>
Can it be done with CSS? Or will I have to hack it with Javascript? I'd be willing to accept a little div-itis if that's what it takes to make this work—better div-itis than trying to account for every stupid little thing like reflow and window resize and all of that nonsense.
I'm prepared for the bad news that this isn't something CSS can do, but I've been pleasantly surprised by the magic some folks on SO can work before. | 0 | [
2,
1502,
2947,
19,
272,
18,
18,
800,
3726,
3726,
115,
31,
3271,
98,
31,
22,
79,
749,
20,
107,
15,
1945,
30,
31,
57,
14,
254,
5518,
16,
104,
452,
20,
2935,
2741,
13703,
13,
5,
14466,
15,
31,
92,
275,
7503,
16,
15956,
272,
18,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
javascript image rotator issue, default image
===
I wrote a simple javascript image rotator which picks a random image on each page load. The issue is that if i use a default image, that default image will show up for a second before the javascript loads and replaces it. Obviously if someone has javascript disabled i want them to see an image. How can i have a default image without a flickering of the default image. | 0 | [
2,
8247,
8741,
1961,
8629,
3457,
1513,
15,
12838,
1961,
800,
3726,
3726,
31,
738,
21,
1935,
8247,
8741,
1961,
8629,
3457,
56,
13267,
21,
5477,
1961,
27,
206,
2478,
6305,
9,
14,
1513,
25,
30,
100,
31,
275,
21,
12838,
1961,
15,
30,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Including PYDs/DLLs in py2exe builds
===
One of the modules for my app uses functions from a .pyd file. There's an option to exclude dlls (exclude_dlls) but is there one for including them? The build process doesn't seem to be copying the .pyd in my module despite copying the rest of the files (.py). I also need to include a .dll. How do I get py2exe to include both .pyd and .dll files? | 0 | [
2,
215,
7103,
43,
18,
118,
43,
211,
18,
19,
7103,
135,
1706,
62,
1895,
18,
800,
3726,
3726,
53,
16,
14,
17113,
26,
51,
4865,
2027,
3719,
37,
21,
13,
9,
6448,
43,
3893,
9,
80,
22,
18,
40,
4255,
20,
21077,
13,
43,
211,
18,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What sort of mathematics do you use in your .Net app?
===
Excluding _everything_ that's in System.Math.
I think that System.Math is woefully inadequate. For example, in several official .Net frameworks, I can count 3 different implementations of matrices. Same goes for vectors. One implementation of a complex number; several different implementations of arbitrary rational numbers, and so on.
So, what would you like to see in a hypothetical System.Mathematics namespace? | 0 | [
2,
98,
2058,
16,
4264,
107,
42,
275,
19,
154,
13,
9,
2328,
4865,
60,
800,
3726,
3726,
13,
14938,
13,
1,
13224,
1,
30,
22,
18,
19,
329,
9,
14825,
9,
31,
277,
30,
329,
9,
14825,
25,
4808,
62,
5655,
16296,
9,
26,
823,
15,
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 there a .net analogue to the Boost libraries?
===
As per the title.
I think .Net libraries would definitely benifit from some sort of community development; perhaps something like the Java Community Process. This is where an analogue would be very helpful. | 0 | [
2,
25,
80,
21,
13,
9,
2328,
21574,
20,
14,
10419,
8649,
60,
800,
3726,
3726,
28,
416,
14,
581,
9,
31,
277,
13,
9,
2328,
8649,
83,
4939,
1519,
821,
242,
37,
109,
2058,
16,
514,
522,
73,
1774,
301,
101,
14,
8247,
514,
953,
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,
0,
0,
0,
0,
0,
0... |
Ping fails but http link works
===
In one of the system (Windows), if I ping to a particular public forum site, [lets say testsite.com here], then I get a request timed out message. However, if I just put that site address in the browser (used IE6, but its not specific) with http://, then the link works fine and the browser goes to the web page.
What is it that the browser doing differently ?
| 0 | [
2,
13,
3181,
13614,
47,
7775,
3508,
693,
800,
3726,
3726,
19,
53,
16,
14,
329,
13,
5,
27508,
18,
6,
15,
100,
31,
13,
3181,
20,
21,
1498,
317,
5691,
689,
15,
636,
11045,
395,
4894,
2119,
9,
960,
235,
500,
15,
94,
31,
164,
21,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
find links in web pages
===
I have all the web pages of a website. My ask is to change all HTMl files to .asp files and change the links... I have about 280 HTMl files.. is there any s/w or web service which can read a website and show me all the link structures (to make my job easier)... similar to site map. | 0 | [
2,
477,
6271,
19,
2741,
4434,
800,
3726,
3726,
31,
57,
65,
14,
2741,
4434,
16,
21,
2271,
9,
51,
1349,
25,
20,
753,
65,
13,
15895,
6488,
20,
13,
9,
472,
306,
6488,
17,
753,
14,
6271,
9,
9,
9,
31,
57,
88,
13,
13510,
13,
1589... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Programatically find TFS changes since last good build
===
I have several branches in TFS (dev, test, stage) and when I merge changes into the test branch I want the automated build and deploy script to find all the updated SQL files and deploy them to the test database.
I thought I could do this by finding all the changesets associated with the build since the last good build, finding all the sql files in the changesets and deploying them. However I don't seem to be having the changeset associated with the build for some reason so my question is twofold:
1) How do I ensure that a changeset is associated with a particular build?
2) How can I get a list of files that have changed in the branch since the last good build? I have the last successfully built build but I'm unsure how to get the files without checking the changesets (which as mentioned above are not associated with the build!) | 0 | [
2,
625,
721,
8438,
477,
13,
11720,
18,
1693,
179,
236,
254,
1895,
800,
3726,
3726,
31,
57,
238,
4395,
19,
13,
11720,
18,
13,
5,
14438,
15,
1289,
15,
876,
6,
17,
76,
31,
12666,
1693,
77,
14,
1289,
1686,
31,
259,
14,
14904,
1895... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Redirect Stdin and Stdout to File
===
I'm currently the Teaching Assistant for an **Introduction to C** class. The class is being taught using Visual Studio, but when grading I just use a simple Windows batch script to process all the assignment submissions, compile them, run them on a test file, and redirect the output to a series of text files I can print out, mark up, and hand back to students. The whole process works very well, except for the fact that when I redirect stdin, it does not appear in the redirected stdout the same way it does when the same stdin is typed directly into the console. Because of this, the output of code formatted for the console does not display correctly in the redirected output. The following file snippets show this problem. Does anyone know of a simple solution?
**File: example.c**
#include <stdio.h>
int main()
{
int v;
printf("Enter a number: ");
scanf("%i", &v);
printf("You entered: %d\n", v);
return 0;
}
**File: input.txt**
42
**Output (Console)**
C:\>example.exe
Enter a number: 42
You entered: 42
C:\>
**Output (Redirection)**
C:\>example.exe < input.txt > output.txt
C:\>more output.txt
Enter a number: You entered: 42
C:\> | 0 | [
2,
302,
14706,
354,
3653,
17,
354,
43,
1320,
20,
3893,
800,
3726,
3726,
31,
22,
79,
871,
14,
2540,
1482,
26,
40,
13,
1409,
26123,
20,
272,
1409,
718,
9,
14,
718,
25,
142,
2359,
568,
3458,
1120,
15,
47,
76,
26816,
31,
114,
275,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
detect keyboard event in C
===
how can i detect keyboard event in c language without using third party libraries? Should I use signal handling? | 0 | [
2,
9092,
8896,
807,
19,
272,
800,
3726,
3726,
184,
92,
31,
9092,
8896,
807,
19,
272,
816,
366,
568,
422,
346,
8649,
60,
378,
31,
275,
2800,
7988,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Why would Linq to SQL perform better than a streight SQL query?
===
Strange performance outcome, I have a linq to sql query which uses several let statements to get various info it looks like this
public IQueryable<SystemNews> GetSystemNews()
{
using (var t = new TransactionScope(TransactionScopeOption.Required,
new TransactionOptions { IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted }))
{
var results = from s in _datacontext.SystemNews
let member = GetMemberInfo(s.MemberID)
let determination = GetDetermination(s.DeterminationID.Value)
let daimoku = GetDaimoku(s.DaimokuID.Value)
let entry = GetEntry(s.EntryID.Value)
let encouragment = GetEncouragement(s.EncouragementID.Value)
select new SystemNews
{
NewsDate = s.NewsDate,
MemberID = s.MemberID,
PhotoID = s.PhotoID.Value,
DeterminationID = s.DeterminationID.Value,
DaimokuID = s.DaimokuID.Value,
EntryID = s.EntryID.Value,
EncouragementID = s.EncouragementID.Value,
Member = new LazyList<Members>(member),
Determination = new LazyList<Determinations>(determination),
Daimoku = new LazyList<MemberDaimoku>(daimoku),
Entry = new LazyList<MemberEntries>(entry),
Encouragement = new LazyList<MemberEncouragements>(encouragment),
IsDeterminationComplete = s.IsDeterminationComplete.Value
};
return results;
}
}
I created the same thing basically at least the various info that is obtained in this into a SQL View, and the linq to SQL returned results in under 90 miliseconds where as the view returned the same data actually less info in over 700 miliseconds... can anyone explain this? | 0 | [
2,
483,
83,
6294,
1251,
20,
4444,
255,
2985,
574,
119,
21,
13,
9729,
7748,
4444,
255,
25597,
60,
800,
3726,
3726,
2578,
956,
9774,
15,
31,
57,
21,
6294,
1251,
20,
4444,
255,
25597,
56,
2027,
238,
408,
9015,
20,
164,
617,
15404,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 I root out a mystery character encoding problem in a Wordpress blog?
===
I am attempting to start a new Wordpress blog. I am seeing funny characters in some browsers but not others instead of single quotes, double quotes and ellipses. Things I already thought of:
- The HTML template page for output
itself is set to UTF-8
- The admin page is UTF-8
- The MySQL database tables where the
data is stored are UTF-8 encoded
- I am entering regular keyboard (')'s
and (")'s (...)'s and not pasting in
from another application.
- I am using WordPress's out-of-the
box WSYWIG
Browsers it looks wrong in (for example): Firefox for Windows, IE7 For Windows
Browsers it looks okay in (for example): Firefox for OS X, Safari for OS X
Where do I go from here?
| 0 | [
2,
184,
20,
31,
5900,
70,
21,
5586,
925,
19608,
1448,
19,
21,
833,
5890,
8146,
60,
800,
3726,
3726,
31,
589,
6314,
20,
799,
21,
78,
833,
5890,
8146,
9,
31,
589,
2078,
5066,
1766,
19,
109,
16495,
18,
47,
52,
654,
700,
16,
345,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Only allow one IIS server to access a file on a network drive using the FileSystemWatcher
===
I have multiple IIS servers that need to parse a CSV file that is placed on a common network drive. If I use the [System.IO.FileSystemWatcher Created event](http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.created.aspx) to be notified of the event when the file is available, how can I ensure only one server parses the file? If all servers are notified of this change, all will try to parse it. Should the first server copy this locally and then parse it? Would this cause errors on the other servers? Should I set the remote directory access to only allow one server read access? | 0 | [
2,
104,
1655,
53,
595,
18,
8128,
20,
1381,
21,
3893,
27,
21,
982,
1493,
568,
14,
3893,
10724,
9054,
106,
800,
3726,
3726,
31,
57,
1886,
595,
18,
17595,
30,
376,
20,
2017,
870,
21,
272,
18,
710,
3893,
30,
25,
1037,
27,
21,
757,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Easy way to shift specific characters in a string in C++?
===
As an example, if I have the string:
".....ZZ..ZZ....."
or
".Z.1.Z.23Z.4.Z55"
is there an easy way that I can shift each Z in that string one space to the right?
Thanks in advance,
Tomek | 0 | [
2,
2010,
161,
20,
4471,
1903,
1766,
19,
21,
3724,
19,
272,
20512,
60,
800,
3726,
3726,
28,
40,
823,
15,
100,
31,
57,
14,
3724,
45,
13,
7,
9,
9,
9,
9,
9,
5092,
9,
9,
5092,
9,
9,
9,
9,
9,
7,
54,
13,
7,
9,
380,
9,
165,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Convert Javacript code to VBScript code?
===
I have been given a task to convert code that is written in JavaScript over to VBScript.
It is actually quite basic code and it is really just the syntax that needs to be converted.
For example
if (str = "string text") {
foo = "foo";
} else {
foo2 = "foo2";
}
becomes
If (str = "string text") Then
foo = "foo"
Else
foo2 = "foo2"
End If
I was wondering if a tool existed to convert from JavaScript to VBScript?
| 0 | [
2,
8406,
8247,
28215,
38,
1797,
20,
13,
20468,
8741,
1797,
60,
800,
3726,
3726,
31,
57,
74,
504,
21,
3005,
20,
8406,
1797,
30,
25,
642,
19,
8247,
8741,
84,
20,
13,
20468,
8741,
9,
32,
25,
1121,
1450,
2125,
1797,
17,
32,
25,
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... |
Saved Search Options in ASP.net
===
I am having an ASP.net page with some 15 controls and each using as filter filter parameter query for search (Select * from Table 1 where (all control values). I need to saved these searches on clicking the button. (I need to hold this in a table what are the things that are searched by user.
Please tell me which is the best way to implement | 2 | [
2,
4377,
2122,
6368,
19,
28,
306,
9,
2328,
800,
3726,
3726,
31,
589,
452,
40,
28,
306,
9,
2328,
2478,
29,
109,
357,
8671,
17,
206,
568,
28,
11945,
11945,
18906,
25597,
26,
2122,
13,
5,
18,
16964,
1637,
37,
859,
137,
113,
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... |
RESTful Web Services with ASP.NET MVC
===
Do you think ASP.NET MVC is able to develop RESTful web services and Which approach you would use for it? | 0 | [
2,
760,
1566,
2741,
687,
29,
28,
306,
9,
2328,
307,
8990,
800,
3726,
3726,
107,
42,
277,
28,
306,
9,
2328,
307,
8990,
25,
777,
20,
2803,
760,
1566,
2741,
687,
17,
56,
2141,
42,
83,
275,
26,
32,
60,
3,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
ASP.NET and IIS6: trapping ALL application errors
===
Our groups legacy ASP 3.0 web apps were able to take advantage of a global error file by setting up a custom error file within IIS's Custom Error's tab. I'm unable to find a similar solution for ASP.NET apps.
Does anyone know if there is a way to have a centralized "Error.aspx" page (for example) that will trap errors for an entire application pool? The objective is to avoid adding custom code to each app's Global error handler ....
Any guidance is greatly appreciated! | 0 | [
2,
28,
306,
9,
2328,
17,
595,
18,
379,
45,
22444,
65,
3010,
11908,
800,
3726,
3726,
318,
1170,
7780,
28,
306,
203,
9,
387,
2741,
4865,
18,
46,
777,
20,
247,
3314,
16,
21,
2062,
7019,
3893,
34,
2697,
71,
21,
5816,
7019,
3893,
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... |
Share Symbian's RFile between two threads
===
in the multi-threaded app I am porting to Symbian using Open C, I have an object that uses an RFile to read/write data to file. This object is supposed to be accessed from different threads (it is threadsafe), however there is the issue that apparently RFile objects can only be accessed within one thread only. As soon as another thread uses the RFile object, I am getting a KERN-EXEC 0.
Is there any way to share the RFile object between different threads? I can't use Active Objects. | 0 | [
2,
1891,
13,
7261,
10035,
22,
18,
761,
16877,
128,
81,
20396,
800,
3726,
3726,
19,
14,
1889,
8,
96,
10647,
69,
4865,
31,
589,
1295,
68,
20,
13,
7261,
10035,
568,
368,
272,
15,
31,
57,
40,
3095,
30,
2027,
40,
761,
16877,
20,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
g++ or gcc option to get warning message with warning id.
===
By default gcc/g++ prints a warning message with the line number only. I am looking for the option by which g++ or gcc associates the build warning messages with the warning ids, so that the warning messages can be identified easily (without parsing). Also can there be any more option to get a more detailed warning message ? (Though I think each of the warning message is pretty much explanatory by itself, but just curious)
Thanks. | 0 | [
2,
489,
20512,
54,
489,
3384,
4255,
20,
164,
3590,
2802,
29,
3590,
4924,
9,
800,
3726,
3726,
34,
12838,
489,
3384,
118,
263,
20512,
12202,
21,
3590,
2802,
29,
14,
293,
234,
104,
9,
31,
589,
699,
26,
14,
4255,
34,
56,
489,
20512,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best video manipulation library for python?
===
I'd like to include some simple video editing functionality for the python application I'm writing and googling comes up with:
1. pymedia
2. pyglet (using the media module)
3. gst-python
Requirements:
1. Small footprint. I'm already using wxpython (just because), which bloats up the final .exe pretty easily so preferably whatever I use to implement this video editing functionality shouldn't add to the bloat significantly.
2. The library should still be actively maintained -- pyffmpeg seems to be a dead project.
3. Shouldn't require proprietary licensing, so FMOD is out of the question.
4. Minimal dependencies
5. Not a full blown video editor. No need for fancy pants stuff. Just the ability to skip to different parts of a video and either grab a frame or put (multiple) markers for start and end of video sections to lop off bits.
If you've used any of the above video editing libraries listed above or others I have yet to come across in your python application, I'd like to know the pitfalls for each and how they stack up against each other. If you also know of a python binding for avbin, I would also like to know where to find it. | 4 | [
2,
246,
763,
17561,
1248,
26,
20059,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
468,
109,
1935,
763,
9510,
18548,
26,
14,
20059,
3010,
31,
22,
79,
1174,
17,
162,
5598,
802,
1624,
71,
29,
45,
137,
9,
7103,
8260,
172,
9,
13,
2886... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 deal with XML in C#
===
So what is the best way to deal with XML documents, XSD and all that stuff in C# 2.0? What classes to use etc. Like what are the best practices of parsing and making XML documents etc. | 0 | [
2,
184,
20,
1183,
29,
23504,
19,
272,
5910,
800,
3726,
3726,
86,
98,
25,
14,
246,
161,
20,
1183,
29,
23504,
4374,
15,
993,
18,
43,
17,
65,
30,
3217,
19,
272,
5910,
172,
9,
387,
60,
98,
2684,
20,
275,
2722,
9,
101,
98,
50,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Know of a good page load progressbar for my ASP.net application?
===
Just wondering if anyone has seen any usable progress bar for C# .net apps. My app takes about 20-60 secs to load and I would love to show users a progress bar while they wait. I saw [this one][1] but the sample site doesn't seem to work which doesn't inspire confidence.
[1]: http://www.codeproject.com/KB/aspnet/ASPNETAJAXPageLoader.aspx | 0 | [
2,
143,
16,
21,
254,
2478,
6305,
3455,
1850,
26,
51,
28,
306,
9,
2328,
3010,
60,
800,
3726,
3726,
114,
5712,
100,
1276,
63,
541,
186,
182,
579,
3455,
748,
26,
272,
5910,
13,
9,
2328,
4865,
18,
9,
51,
4865,
1384,
88,
434,
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 does Google Reader get every item in an RSS feed?
===
Slashdot's RSS feed is http://rss.slashdot.org/Slashdot/slashdot. If I download the XML file directly, I only get a few of the posts from today. However, if I subscribe to the feed in Google Reader, and keep scrolling down in their "infinite scroll" interface, it seems like I can get an arbitrary number of Slashdot posts from the past -- maybe I can get every Slashdot post ever?
So:
1. How does Google Reader retrieve an unlimited number of posts from an RSS feed.
1. How can I do the same. | 0 | [
2,
184,
630,
8144,
7765,
164,
352,
9101,
19,
40,
13,
1224,
18,
4063,
60,
800,
3726,
3726,
14098,
12527,
22,
18,
13,
1224,
18,
4063,
25,
7775,
6903,
1224,
18,
9,
18,
9545,
12527,
9,
5583,
118,
18,
9545,
12527,
118,
18,
9545,
1252... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 configure a server program to autostart at bootup time in SUSE?
===
Are there any good SUSE help sites?t | 0 | [
2,
184,
20,
1065,
15951,
21,
8128,
625,
20,
3108,
13680,
35,
6801,
576,
85,
19,
13,
18,
3699,
60,
800,
3726,
3726,
50,
80,
186,
254,
13,
18,
3699,
448,
3259,
60,
38,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Should my C++ program support IA64 or only x64?
===
Should my program support IA64, or should it only support x64?
I haven't been able to easily find IA64 computers myself. Is IA64 dead? | 0 | [
2,
378,
51,
272,
20512,
625,
555,
13,
549,
3470,
54,
104,
993,
3470,
60,
800,
3726,
3726,
378,
51,
625,
555,
13,
549,
3470,
15,
54,
378,
32,
104,
555,
993,
3470,
60,
31,
2933,
22,
38,
74,
777,
20,
2351,
477,
13,
549,
3470,
7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... |
In what syntax should a COM SDK reference document be written?
===
I have a COM SDK written in C++ and I'd like to create documentation for my product. I understand that most people will probably not use C++ for integration with this COM component, but many will.
Which method is best to describe the API, without losing details that a C++ developer would need to know. | 0 | [
2,
19,
98,
22649,
378,
21,
13,
960,
13,
18,
43,
197,
2801,
4492,
44,
642,
60,
800,
3726,
3726,
31,
57,
21,
13,
960,
13,
18,
43,
197,
642,
19,
272,
20512,
17,
31,
22,
43,
101,
20,
1600,
13945,
26,
51,
2374,
9,
31,
1369,
30,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to set DataGridCell's template in WpfToolkit's DataGrid?
===
Is it possible to set DataGridCell's template when using WpfToolkit's DataGrid? Or is it possible to set style property for a single cell at the time?
I know that there is a TemplateColumn class which lets the user set templates for displaying and editing cell's data but that's not what I'm looking for.
I need to display two-dimensional arrays with DataGrid and style single cells according to their values. I'd also like to use VM-M-V model and create ViewModel wrapper for each cell which would have an IsSelected property binded to cell's IsSelected property so I could easily iterate over my data source for selected cell's instead of using DataGrid's more row oriented API. | 0 | [
2,
184,
20,
309,
1054,
16375,
9725,
22,
18,
22894,
19,
619,
7721,
20799,
13703,
22,
18,
1054,
16375,
60,
800,
3726,
3726,
25,
32,
938,
20,
309,
1054,
16375,
9725,
22,
18,
22894,
76,
568,
619,
7721,
20799,
13703,
22,
18,
1054,
1637... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
load dll from python
===
I'm building a python application from some source code I've found <a href="http://code.google.com/p/enso">Here</a>
I've managed to compile and fix some problems by searching the web, but I'm stuck at this point:
When running the application this message appears.
![alt text][1]
This pythong app, usues swig to link to c/c++ code.
I have VC++2005 express edition which I used to compile along with scons
and Python 2.5 ( and tried 2.4 too )
The dlls that are attempting to load is "msvcr80.dll" because before the message was "msvcr80.dll" cannong be found or something like that, so I got it and drop it un window32 folder.
For what I've read in here:
http://msdn.microsoft.com/en-us/library/ms235591(VS.80).aspx
The solution is to run MT with the manifest and the dll file. I did it already and does't work either.
Could anyone point me into the correct direction?
This is the content of the manifest fie:
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
</assembly>
I'm going to try Python 2.6 now, I'm not quite sure of understanding the problem, but Python 2.5 and Python 2.5 .exe had the string "MSVCR71.dll" inside the .exe file. But probably this has nothing to do.
ps. if only everything was as easy as jar files :(
This is the stack trace for completness
None
INFO:root:Skipping provider enso.platform.osx.
INFO:root:Skipping provider enso.platform.linux.
INFO:root:Added provider enso.platform.win32.
Traceback (most recent call last):
File "scripts\run_enso.py", line 24, in <module>
enso.run()
File "C:\oreyes\apps\enso\enso-read-only\enso\__init__.py", line 40, in run
from enso.events import EventManager
File "C:\oreyes\apps\enso\enso-read-only\enso\events.py", line 60, in <module>
from enso import input
File "C:\oreyes\apps\enso\enso-read-only\enso\input\__init__.py", line 3, in <module>
_input = enso.providers.getInterface( "input" )
File "C:\oreyes\apps\enso\enso-read-only\enso\providers.py", line 137, in getInterface
interface = provider.provideInterface( name )
File "C:\oreyes\apps\enso\enso-read-only\enso\platform\win32\__init__.py", line 48, in provideInterface
import enso.platform.win32.input
File "C:\oreyes\apps\enso\enso-read-only\enso\platform\win32\input\__init__.py", line 3, in <module>
from InputManager import *
File "C:\oreyes\apps\enso\enso-read-only\enso\platform\win32\input\InputManager.py", line 7, in <module>
import _InputManager
ImportError: DLL load failed: Error en una rutina de inicializaci¾n de biblioteca de vÝnculos dinßmicos (DLL).
[1]: http://img511.imageshack.us/img511/4481/loadfr0.png | 0 | [
2,
6305,
13,
43,
211,
37,
20059,
800,
3726,
3726,
31,
22,
79,
353,
21,
20059,
3010,
37,
109,
1267,
1797,
31,
22,
195,
216,
13,
1,
58,
746,
14057,
3726,
7,
21127,
6903,
9375,
9,
16111,
4875,
9,
960,
118,
306,
118,
219,
656,
7,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
YUI -ike compressor for PHP?
===
uhm i just want to know if there exist such stuff and if so can anyone recommend any free lightweight <br/> [YUI-like for short :P ] compressor for php?
i'm sure it will lessen the file size but will compressing a php code boost up its runtime?
and lastly are they the same with obfuscators?
| 0 | [
2,
2600,
49,
13,
8,
7660,
26810,
26,
13,
26120,
60,
800,
3726,
3726,
10863,
79,
31,
114,
259,
20,
143,
100,
80,
3182,
145,
3217,
17,
100,
86,
92,
1276,
12360,
186,
551,
13613,
13,
1,
5145,
118,
1,
636,
4703,
49,
8,
1403,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What to do when your build process craps on your Version Control(Ant question)
===
So ive got a nice Java project, builds with Ant to a /dist folder.
The whole project is under version control, so I can deploy the latest version just by 'svn export' on the path to the dist folder.
But my build keeps deleting the .svn folders inside my dist folder, and all its dependents, because it cleans out the folder when building instead of just overwriting. The precise culprit is JarBundler, the Ant task that builds my mac.app bundle - It deletes the whole bundle's folder before recreating it.
This obviously craps up my svn, because all the .svn folders are now missing for that folder and so it says its in conflict yada yada vomit.
Anyone have any ideas for how I could solve this? I cant figure out how to stop jarbundler from deleting everything, so im going to have to do something more hacky I fear. Im pretty new to Ant aswell, just for reference. | 0 | [
2,
98,
20,
107,
76,
154,
1895,
953,
9192,
18,
27,
154,
615,
569,
5,
1830,
1301,
6,
800,
3726,
3726,
86,
5568,
330,
21,
2210,
8247,
669,
15,
1895,
18,
29,
40,
38,
20,
21,
13,
118,
43,
702,
19294,
9,
14,
979,
669,
25,
131,
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... |
which ajax control toolkit version?
===
If I'm using Visual Studio 2008 targeted to ASP.NET 2.0, then which version of the Ajax Control Toolkit should I be using? | 0 | [
2,
56,
20624,
569,
5607,
13703,
615,
60,
800,
3726,
3726,
100,
31,
22,
79,
568,
3458,
1120,
570,
9536,
20,
28,
306,
9,
2328,
172,
9,
387,
15,
94,
56,
615,
16,
14,
20624,
569,
5607,
13703,
378,
31,
44,
568,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Greenspunning: Most impressive extension of a language you have made and whether it was worth it
===
<a href="http://en.wikipedia.org/wiki/Greenspun%27s_Tenth_Rule">Greenspunning</a>. We've all had occasion to hack around a language's missing features to get what we need. Implementing pseudo-monadic patterns in Java, Y Combinators in Javascript, variable immutability in C...
What do you consider your most impressive workaround in search of greater functionality? In hindsight, was it worth the hack? Even better: did it, like Ruby's <a href="http://weblog.raganwald.com/2007/10/stringtoproc.html">string#to_proc</a>, become an accepted feature of a later version of the language? | 0 | [
2,
647,
18,
13562,
2981,
45,
127,
7408,
3896,
16,
21,
816,
42,
57,
117,
17,
1472,
32,
23,
2715,
32,
800,
3726,
3726,
13,
1,
58,
746,
14057,
3726,
7,
21127,
6903,
219,
9,
17375,
26132,
9,
5583,
118,
17375,
118,
6852,
18,
13562,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CLR UDF Exception In SQL Server 2005
===
When I try my CLR UDF, I am getting this error:
Msg 6522, Level 16, State 1, Line 1
A .NET Framework error occurred during execution of user-defined routine or aggregate "getFileSize":
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
System.Security.SecurityException:
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.DirectoryInfo..ctor(String path)
at GetFileInfo.ShowDirectoryName.DirSize(SqlString dir).
Any Idea on how to solve this? I tried to spend some time in BOL but my back is really against the wall right now...
Thanks. | 0 | [
2,
10842,
139,
287,
8736,
5391,
19,
4444,
255,
8128,
812,
800,
3726,
3726,
76,
31,
1131,
51,
10842,
139,
287,
8736,
15,
31,
589,
1017,
48,
7019,
45,
4235,
263,
2074,
2287,
15,
662,
347,
15,
146,
137,
15,
293,
137,
21,
13,
9,
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... |
lookup Data in Excel
===
I have a 2 variable 100x100 data table in excel.
I need to have a function that returns all the possible sets of variables that yield a given target value.
What I am looking at is some kind of a reursive 2 dimensional lookup function. Can someone point me in the right direction? | 0 | [
2,
361,
576,
1054,
19,
20700,
800,
3726,
3726,
31,
57,
21,
172,
7612,
808,
396,
4031,
1054,
859,
19,
20700,
9,
31,
376,
20,
57,
21,
1990,
30,
4815,
65,
14,
938,
3415,
16,
12157,
30,
11537,
21,
504,
2935,
1923,
9,
98,
31,
589,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 put underline for access key for <asp:button> ?
===
How to put underline for first letter for access key for <asp:button> ? | 0 | [
2,
184,
20,
442,
131,
1143,
26,
1381,
1246,
26,
13,
1,
472,
306,
45,
811,
444,
1,
13,
60,
800,
3726,
3726,
184,
20,
442,
131,
1143,
26,
64,
1748,
26,
1381,
1246,
26,
13,
1,
472,
306,
45,
811,
444,
1,
13,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Cairngorm Code Generator
===
I was wondering if there's a code generator for Cairngorm that can be installed as a plugin in Eclipse? No code generator like in WebORB, FluorineFX that inspects the DataBase and generates a whole lot of code. I just want a plugin for eclipse where I can give in some options and properties. Then the plugin generates the appropriate event, command and delegate. If the Delegate for instance would allready exist, the new remote call would have to be appended to the Delegate.
thx, Lieven Cardoen | 0 | [
2,
18199,
6979,
79,
1797,
15286,
800,
3726,
3726,
31,
23,
5712,
100,
80,
22,
18,
21,
1797,
15286,
26,
18199,
6979,
79,
30,
92,
44,
4066,
28,
21,
10922,
108,
19,
11652,
60,
90,
1797,
15286,
101,
19,
95,
6157,
220,
15,
6777,
248,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Performance question: Fastest way to convert hexadecimal char to its number value in Java?
===
I want to convert from char representing a hexadecimal value (in upper or lower case) to byte, like
'0'->0, '1' -> 1, 'A' -> 10, 'a' -> 10, 'f' -> 15 etc...
I will be calling this method extremely often, so performance is important. Is there a faster way than to use a pre-initialized `HashMap<Character,Byte>` to get the value from? | 0 | [
2,
956,
1301,
45,
7518,
161,
20,
8406,
24,
6791,
9522,
49,
3482,
4892,
20,
82,
234,
1923,
19,
8247,
60,
800,
3726,
3726,
31,
259,
20,
8406,
37,
4892,
3793,
21,
24,
6791,
9522,
49,
3482,
1923,
13,
5,
108,
1508,
54,
987,
610,
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... |
Query to get all revisions of an object graph
===
I'm implementing an audit log on a database, so everything has a CreatedAt and a RemovedAt column. Now I want to be able to list all revisions of an object graph but the best way I can think of for this is to use unions. I need to get every unique CreatedAt and RemovedAt id.
If I'm getting a list of countries with provinces the union looks like this:
SELECT c.CreatedAt AS RevisionId from Countries as c where localId=@Country
UNION
SELECT p.CreatedAt AS RevisionId from Provinces as p
INNER JOIN Countries as c ON p.CountryId=c.LocalId AND c.LocalId = @Country
UNION
SELECT c.RemovedAt AS RevisionId from Countries as c where localId=@Country
UNION
SELECT p.RemovedAt AS RevisionId from Provinces as p
INNER JOIN Countries as c ON p.CountryId=c.LocalId AND c.LocalId = @Country
For more complicated queries this could get quite complicated and possibly perform very poorly so I wanted to see if anyone could think of a better approach. This is in MSSQL Server.
I need them all in a single list because this is being used in a from clause and the real data comes from joining on this.
| 0 | [
2,
25597,
20,
164,
65,
11323,
18,
16,
40,
3095,
7210,
800,
3726,
3726,
31,
22,
79,
17333,
40,
13471,
6738,
27,
21,
6018,
15,
86,
796,
63,
21,
679,
721,
17,
21,
1974,
721,
4698,
9,
130,
31,
259,
20,
44,
777,
20,
968,
65,
1132... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
.app OSX package problems on removable media.
===
So from what little I understand about packaging for Macs, I see that the actual program that launches is the one defined under the CFBundleExecutable key in Info.plist.
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
Now, my app doesnt work if /APP/Content/MacOS/JavaApplicationStub is not chmodded +x (It just fails silently without doing anything, which is a pain!).
Fair enough, its not executable I guess. But its a big problem if you are copying the app from somewhere that dosent support +x properties on files; such as windows, fat32 USB keys, CDROMs, websites, zip files, etc...
What can I do in these instances to make the app able to run? Manually setting the execute bit is not an option. | 0 | [
2,
13,
9,
7753,
13,
759,
396,
6030,
1716,
27,
302,
15146,
579,
941,
9,
800,
3726,
3726,
86,
37,
98,
265,
31,
1369,
88,
16850,
26,
1572,
18,
15,
31,
196,
30,
14,
3463,
625,
30,
22933,
25,
14,
53,
2811,
131,
14,
10084,
9930,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Make html validation part of build cycle
===
Currently when I build my site I have to manually open validate it at the 3wbc site (means when opera pops up, press ctr+alt+shft+u) for every page.
Is it possible to automatically validate every page whenever I build my pages?
P.s.: This page doesn't validate ;) | 0 | [
2,
233,
13,
15895,
27999,
141,
16,
1895,
4150,
800,
3726,
3726,
871,
76,
31,
1895,
51,
689,
31,
57,
20,
23671,
368,
7394,
1373,
32,
35,
14,
203,
499,
7229,
689,
13,
5,
22183,
18,
76,
1877,
1675,
18,
71,
15,
901,
272,
6384,
243... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does .net SqlCommand.ExecuteReader close connection?
===
In this sentence:
myCommand.ExecuteReader(CommandBehavior.CloseConnection)
does it close connection in case of exception?
| 0 | [
2,
630,
13,
9,
2328,
4444,
255,
16239,
9,
1706,
17194,
591,
10647,
106,
543,
2760,
60,
800,
3726,
3726,
19,
48,
5123,
45,
51,
16239,
9,
1706,
17194,
591,
10647,
106,
5,
16239,
863,
20358,
248,
9,
14330,
25996,
872,
6,
630,
32,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do you add tests for multi threaded support?
===
I have a Java service which now will execute in a batch mode. Multi threaded support is added to the service so for every batch request a thread pool will be dedicated to execute the batch. The question is how do I test this? I have functional tests that pass under the threaded version of the service but, somehow, I feel there must be an idiom for testing this. | 0 | [
2,
184,
107,
42,
3547,
4894,
26,
1889,
9322,
69,
555,
60,
800,
3726,
3726,
31,
57,
21,
8247,
365,
56,
130,
129,
15644,
19,
21,
13064,
3740,
9,
1889,
9322,
69,
555,
25,
905,
20,
14,
365,
86,
26,
352,
13064,
3772,
21,
9322,
3067... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Future considerations for NUnit and NAnt
===
During .NET v1 days, I have tried without much success to convince colleagues to develop test-driven and automated-build work habits using the additional tools of NUnit and NAnt. When .NET Framework 2.0 and Visual Studio 2005 Team Suite came into picture, I was able to "force" my team into writing tests and provide themselves with visual testing right inside Visual Studio. I was further able to tweak project files with extra MSBuild tasks to carry out more build automation.
Of course this does not mean Microsoft has delivered perfect systems, but I believe they have taken these in the correct steps forward. With all these features baked right into the framework and products and becoming "native" it got abit easier to motion developers into better development practices.
Having long forgotten the open-source options (which I do miss), I am wondering what value proposition do the current incarnations of NUnit and NAnt hold? What case can one argue at this stage to convince a team *not* to use MSBuild or MSTest? | 0 | [
2,
1022,
20478,
26,
10210,
242,
17,
13,
11028,
800,
3726,
3726,
112,
13,
9,
2328,
566,
165,
509,
15,
31,
57,
794,
366,
212,
1280,
20,
6218,
8493,
20,
2803,
1289,
8,
14489,
17,
14904,
8,
29361,
170,
16760,
568,
14,
1351,
4672,
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... |
Record level permissions
===
<p>In a database I am designing I have implemented profile based object level security.
<p>Each user can view, edit, insert, update database tables according to the profiles (roles) he is a member of.
<p>Now there is a need to implement "External Users" who can view only the relevant records and edit some of them (but not the bulk of the database).
<p>I am working on an "record ownership" model.
<p>Are there any ideas on how to restrict the users belonging to an "External Users" profile to see and work with some records of each table, but not all.
| 0 | [
2,
571,
662,
5572,
18,
800,
3726,
3726,
13,
1,
306,
1,
108,
21,
6018,
31,
589,
15026,
31,
57,
6807,
5296,
432,
3095,
662,
1221,
9,
13,
1,
306,
1,
14322,
4155,
92,
1418,
15,
9392,
15,
14692,
15,
11100,
6018,
7484,
496,
20,
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 I remove a folder from Windows Distributed File System?
===
We recently moved to a webfarm and setup dfs, only to find a beta application was creating files like there was no tomorrow. 1.2 million files were replicated across the farm, and since then we have prevented the application from creating new files, but every time we try to remove the files, it replaces them on each server because of replication. The process of replacing them actually causes to server to run slowly and in some cases stall.
Is there any way we can stop replication at a folder level? | 0 | [
2,
184,
107,
31,
4681,
21,
19294,
37,
1936,
4387,
3893,
329,
60,
800,
3726,
3726,
95,
1989,
385,
20,
21,
2741,
3700,
79,
17,
18161,
13,
8736,
18,
15,
104,
20,
477,
21,
8434,
3010,
23,
2936,
6488,
101,
80,
23,
90,
3450,
9,
137,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NAnt script for C++ project build automation
===
Could anyone provide any example of NAnt script for C++ project build automation?
Thanks! | 0 | [
2,
13,
11028,
3884,
26,
272,
20512,
669,
1895,
23217,
800,
3726,
3726,
110,
1276,
1181,
186,
823,
16,
13,
11028,
3884,
26,
272,
20512,
669,
1895,
23217,
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,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
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... |
When will boost 1.36 be available for Mac?
===
How can i find out this information? | 0 | [
2,
76,
129,
10419,
137,
9,
3775,
44,
904,
26,
1572,
60,
800,
3726,
3726,
184,
92,
31,
477,
70,
48,
676,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Illegal attempt to associate a collection with two open sessions
===
I'm trying to add a pojo to a collection in another pojo. I'm sure I'm making a really stupid mistake somewhere along the lines but I can't figure out how to solve it.
I have a pojo LookupTable which contains a list of Column's:
public class LookupTable {
private long id;
// More properties go here...
private List<Column> columns;
public void addColumn(Column column) {
this.columns.add(column);
}
// More methods go here...
}
In my hibernate configuration I have:
<class name="LookupTable" table="ARR_LOOKUP_TABLE">
<id name="id" column="ID">
<generator class="native"/>
</id>
<!-- Some properties here -->
<bag name="columns" cascade="all,delete-orphan" access="field">
<key column="LOOKUP_TABLE" not-null="true"/>
<one-to-many class="Column"/>
</bag>
</class>
<class name="Column" table="ARR_LOOKUP_COLUMN">
<id name="id" column="ID">
<generator class="native"/>
</id>
<!-- Some properties here -->
</class>
In my Spring config file I have:
<tx:advice id="txAdvice" transaction-manager="txManager">
<tx:attributes>
<tx:method name="*" propagation="REQUIRED"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="managers" expression="execution(public * com.foo.*Manager.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="managers"/>
</aop:config>
And finally the code where it all fails within my manager class (com.foo.LookupTableManager):
public void addColumnToTable(Column column, long tableId) {
LookupTable lookupTable = this.lookupTableDao.findById(tableId);
lookupTable.addColumn(column);
this.lookupTableDao.saveOrUpdate(lookupTable);
}
The variable lookupTableDao here refers to a simple DAO class which extends HibernateDaoSupport.
The error I get is:
org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions
at org.hibernate.collection.AbstractPersistentCollection.setCurrentSession(AbstractPersistentCollection.java:410)
at org.hibernate.event.def.OnUpdateVisitor.processCollection(OnUpdateVisitor.java:43)
at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101)
at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:61)
at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55)
at org.hibernate.event.def.AbstractVisitor.process(AbstractVisitor.java:123)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:293)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:223)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:89)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
at com.foo.AbstractDao.saveOrUpdate(AbstractDao.java:29)
at com.foo.LookupTableManager.addColumnToTable(LookupTableManager.java:338)
... etc ...
OK, I understand the basic message I'm getting. But what I don't understand is where I get the second session.... Can anyone help me with this?
I'm using Hibernate 3.2.6.ga, Spring 2.5.5 and Tomcat 6.0 | 0 | [
2,
5143,
1735,
20,
4169,
21,
1206,
29,
81,
368,
5763,
800,
3726,
3726,
31,
22,
79,
749,
20,
3547,
21,
2353,
1636,
20,
21,
1206,
19,
226,
2353,
1636,
9,
31,
22,
79,
562,
31,
22,
79,
544,
21,
510,
3553,
5643,
3493,
303,
14,
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... |
What license does designer/wizard-generated code fall under?
===
This might be a stupid question but I just wanted to make sure...
If I incorporate code generated by the IDE (Visual Studio in this case) in my software, can I apply my own license to that code or is it subject to its own license? | 0 | [
2,
98,
3962,
630,
4742,
118,
23527,
1514,
8,
25314,
1797,
1080,
131,
60,
800,
3726,
3726,
48,
530,
44,
21,
3553,
1301,
47,
31,
114,
417,
20,
233,
562,
9,
9,
9,
100,
31,
14710,
1797,
6756,
34,
14,
13,
3448,
13,
5,
20893,
1120,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does full userdata __gc metamethod need to free() it's memory?
===
I have a full userdata in Lua module written in C. The userdata has __gc() metamethod, which is called by garbage collector. Does lua interpreter free userdata memory after __gc() call, or do I have to free() it inside __gc()? | 0 | [
2,
630,
503,
4155,
18768,
13,
1,
10362,
7618,
5909,
1807,
43,
376,
20,
551,
5,
6,
32,
22,
18,
1912,
60,
800,
3726,
3726,
31,
57,
21,
503,
4155,
18768,
19,
1612,
58,
12613,
642,
19,
272,
9,
14,
4155,
18768,
63,
13,
1,
10362,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
xdoclet vs xdoclet2 ?
===
I'm updating an old project & my version of xdoclet complains about my Java 1.5 annontations (ArrayList<String> data = ....) when parsing for Hibernate (hibernate3) tags.
So my question is this...
Is there a fix for Xdoclet 1.2.3, or should I look to move to Xdoclet2?
I've already started moving some of the code over, but xdoclet2 doesn't seem to offer the same level of configuration for hibenate, such as excludedtags. I could be wrong on this though.
What do you lot think?
Jeff Porter | 0 | [
2,
993,
13799,
1336,
4611,
993,
13799,
1336,
135,
13,
60,
800,
3726,
3726,
31,
22,
79,
71,
43,
1880,
40,
315,
669,
279,
51,
615,
16,
993,
13799,
1336,
15310,
18,
88,
51,
8247,
137,
9,
264,
40,
3951,
8593,
18,
13,
5,
8576,
93,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MVC ready for business applications (integrating 3rd party controls/components)?
===
My company has developed (and still continues to develope) a large ASP.NET business application. Our platform is ASP.NET 2.0 using some ASP.NET Ajax. We're **extensively using third-party components**, like webgrids, comboboxes, treeviews, calendar and scheduling controls etc.
Now, I don't know a lot of ASP.NET MVC and I'd like to know if there **is a way to use these thrid-party-controls in the ASP.NET MVC model**. Or do vendors have to rewrite their products in order to make them suitable for ASP.NET MVC? | 0 | [
2,
307,
8990,
1451,
26,
508,
3767,
13,
5,
12370,
1880,
203,
897,
346,
8671,
118,
11103,
849,
14128,
6,
60,
800,
3726,
3726,
51,
237,
63,
885,
13,
5,
290,
174,
2622,
20,
2803,
62,
6,
21,
370,
28,
306,
9,
2328,
508,
3010,
9,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PHP Blog system for MODx
===
I run a site using the [MODx][1] Content Management System. What I'd like to do is set up a news feed on the front page, with a blog-style backend that supports the usual things (tags, categories, archives basically).
I've looked into the MODx plugins which provide this functionality (the deprecated NewsPublisher - which we use currently - and Ditto), but I don't like either of them that much. What I really want is something with an API, so that I can easily add news programmatically.
I've considered installing WordPress, however this seems like overkill given that we're just using it in a fairly basic way! I've also considered rolling my own, but before I do that I just wanted to check there wasn't something suitable out there already!
Does anyone have any suggestions for lightweight, highly customisable PHP blog / news frameworks with a decent API?
[1]: http://modxcms.com/ | 0 | [
2,
13,
26120,
8146,
329,
26,
7226,
396,
800,
3726,
3726,
31,
485,
21,
689,
568,
14,
636,
13670,
396,
500,
2558,
165,
500,
2331,
1097,
329,
9,
98,
31,
22,
43,
101,
20,
107,
25,
309,
71,
21,
996,
4063,
27,
14,
431,
2478,
15,
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... |
PDFCreator and ASP.NET
===
As anyone managed to get PDFCreator running on an ASP.NET 2.0 website ?
On my development machine with Visual Studio webserver, it works just fine after following this procedure :
- create a com interop dll with tlbimp
- reference this dll
- write some code to use it
However, when I deploy it to our test server, it fails miserably with this error :
Retrieving the COM class factory for component with CLSID {082391C9-8188-4364-B4FD-66A1524B2097} failed due to the following error: 80070005.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {082391C9-8188-4364-B4FD-66A1524B2097} failed due to the following error: 80070005.
And I can't find this component in DCOMCNFG.msc.
Our server configuration :
- Windows 2003
- Asp.net 2.0
- MS Office XP
- PDFCreator 0.9.0 | 0 | [
2,
13,
11124,
26438,
17,
28,
306,
9,
2328,
800,
3726,
3726,
28,
1276,
1471,
20,
164,
13,
11124,
26438,
946,
27,
40,
28,
306,
9,
2328,
172,
9,
387,
2271,
13,
60,
27,
51,
522,
1940,
29,
3458,
1120,
2741,
10321,
106,
15,
32,
693,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 does the SQL Server JDBC Trusted Connection Authentication work?
===
How does the SQL Server JDBC Trusted Connection Authentication work? (ie how does the trusted connection authenticate the logged in AD user in such a transparent and elegant fashion and how can I implement a similar authentication solution for my client-server applications in Java without a database connection or any use of the existing SQL Server solution.)
Assumptions
* Working within a Windows 2003 domain
* You have access to the Windows API via JNI/JNA
| 0 | [
2,
184,
630,
14,
4444,
255,
8128,
487,
43,
7229,
9968,
2760,
27963,
170,
60,
800,
3726,
3726,
184,
630,
14,
4444,
255,
8128,
487,
43,
7229,
9968,
2760,
27963,
170,
60,
13,
5,
660,
184,
630,
14,
9968,
2760,
14351,
1373,
14,
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... |
Calling performSelectorOnMainThread => Multithreaded app?
===
I noticed that the following banal call from my main thread
[self performSelectorOnMainThread:@selector(rollBar:)
withObject:nil
waitUntilDone:false];
was causing `[NSThread isMultiThreaded]` to report that my app
had become multithreaded. I thought that was only supposed
to happen when you detach a thread, something that queueing
a message within one thread shouldn't need to do.
Any insights?
This question not the same as [this](http://stackoverflow.com/questions/149388/low-level-details-of-the-implementation-of-performselectoronmainthread) one. | 0 | [
2,
2555,
11563,
16964,
248,
218,
6232,
96,
10647,
800,
1,
1889,
96,
10647,
69,
4865,
60,
800,
3726,
3726,
31,
2711,
30,
14,
249,
2135,
192,
645,
37,
51,
407,
9322,
636,
8411,
11563,
16964,
248,
218,
6232,
96,
10647,
45,
1,
3434,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Pros and cons of using md5 hash of URI as the primary key in a database
===
I'm building a database that will store information on a range of objects (such as scientific papers, specimens, DNA sequences, etc.) that all have a presence online and can be identified by a URL, or an identifier such as a [DOI][1]. Using these GUIDs as the primary key for the object seems a reasonable idea, and I've followed [delicious][2] and [Connotea][3] in using the md5 hash of the GUID. You'll see the md5 hash in your browser status bar if you mouse over the edit or delete buttons in a delicious or Connotea book mark. For example, the bookmark for http://stackoverflow/ is
http://delicious.com/url/e4a42d992025b928a586b8bdc36ad38d
where e4a42d992025b928a586b8bdc36ad38d ais the md5 hash of http://stackoverflow/.
Does anybody have views on the pros and cons of this approach?
For me an advantage of this approach (as opposed to using an auto incrementing primary key generated by the database itself) is that I have to do a lot of links between objects, and by using md5 hashes I can store these links externally in a file (say, as the result of data mining/scraping), then import them in bulk into the database. In the same way, if the database has to be rebuilt from scratch, the URLs to the objects won't change because they use the md5 hash.
I'd welcome any thoughts on whether this sounds sensible, or whether there other (better?) ways of doing this.
[1]: http://www.doi.org/ "DOI"
[2]: http://delicious.com/ "delicious"
[3]: http://www.connotea.org "Connotea" | 0 | [
2,
895,
18,
17,
11608,
16,
568,
8138,
264,
19170,
16,
13,
3594,
28,
14,
1256,
1246,
19,
21,
6018,
800,
3726,
3726,
31,
22,
79,
353,
21,
6018,
30,
129,
1718,
676,
27,
21,
978,
16,
3916,
13,
5,
4289,
28,
2272,
3747,
15,
10083,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how can I write a generic property modification function in Flex/Actionscript3?
===
I'm new to Flex, although not new to programming. I want to write a generic event handler that will be called by all my textinput boxes when they receive focus. When they have focus, I want to change the colour of the textinput box. When they lose focus, I want to restore the "inactive" color profile. I could write an ActionScript event handler for each textinput box, but we all know that's lame. :o) What I need, then, is a way to access the object which is calling the event handler.
In Delphi, I'd have written a function which passes in the Sender object, allowing me to access the calling object's properties. I'm guessing ActionScript/Flex has a completely different architecture, which is why I'm having difficulty doing this.
Thanks in anticipation! | 0 | [
2,
184,
92,
31,
2757,
21,
12733,
1354,
16135,
1990,
19,
14409,
118,
8645,
8741,
240,
60,
800,
3726,
3726,
31,
22,
79,
78,
20,
14409,
15,
419,
52,
78,
20,
3143,
9,
31,
259,
20,
2757,
21,
12733,
807,
24641,
30,
129,
44,
227,
34,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Private function in Fortran
===
How to declare a private function in Fortran? | 0 | [
2,
932,
1990,
19,
26,
17685,
800,
3726,
3726,
184,
20,
10123,
21,
932,
1990,
19,
26,
17685,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.