unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
jQuery .ready in a dynamically inserted iframe
===
We are using jQuery [thickbox][1] to dynamically display an iFrame when someone click on a picture. In this iframe, we are using [galleria][2] a javascript library to display multiple pictures.
The problem seems to be that $(document).ready in the iframe seems to be fired too soon and the iframe content isn't even loaded yet, so galleria code is not applied properly on the DOM elements. $(document).ready seems to use the iframe parent ready state to decide if the iframe is ready.
If we extract the function called by document ready in a separate function and call it after a timeout of 100ms, it works but we can't take the chance in production with a slow computer.
$(document).ready(function() { setTimeout(ApplyGalleria, 100); });
My question: which jquery event should we bind to to be able to execute our code when the dynamic iframe is ready and not just it's parent.
Thanks!
[1]: http://jquery.com/demo/thickbox/
[2]: http://devkick.com/lab/galleria/demo_01.htm | 0 | [
2,
487,
8190,
93,
13,
9,
15193,
19,
21,
7782,
1326,
14215,
31,
8361,
800,
3726,
3726,
95,
50,
568,
487,
8190,
93,
636,
38,
15477,
5309,
500,
2558,
165,
500,
20,
7782,
1326,
3042,
40,
31,
8361,
76,
737,
10840,
27,
21,
2151,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
I/O Performance Sanity Check - Checking for a file's existence
===
Are you aware of any serious performance problems with checking if a file exists before you open it and send it? The context for this is a web application that serves up files dynamically via an ASP page. I was told that there is no check for whether or not the file exists because the database stores this information and shouldn't be wrong. It is of course sometimes wrong for any number of reasons so we end up sending back nothing leaving the user unhappy.
My instinct is that checking for a file's existence is so cheap that you shouldn't worry about it but I was told otherwise. Our storage solution is a pretty high powered one (not just an IDE drive on the web server) if that helps. My question is basically: Is my instinct correct?
Thanks!
Note: These files are never just deleted. Something has to go wrong for them to be missing but this happens a few times a week | 0 | [
2,
31,
118,
111,
956,
22869,
2631,
13,
8,
9886,
26,
21,
3893,
22,
18,
3012,
800,
3726,
3726,
50,
42,
3854,
16,
186,
2055,
956,
1716,
29,
9886,
100,
21,
3893,
5636,
115,
42,
368,
32,
17,
2660,
32,
60,
14,
4141,
26,
48,
25,
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... |
Printing a Collection in WPF
===
Is there any way to print in memory collection or variable size in WPF?
I am using the following code in which I print the ListView control. But when the content is larger than the vertical scroll bar takes over and cuts the content.
PrintDialog printDialog = new PrintDialog();
printDialog.ShowDialog();
printDialog.PrintVisual(lvDocumentSummary, "testing printing!"); | 0 | [
2,
7312,
21,
1206,
19,
619,
7721,
800,
3726,
3726,
25,
80,
186,
161,
20,
4793,
19,
1912,
1206,
54,
7612,
1072,
19,
619,
7721,
60,
31,
589,
568,
14,
249,
1797,
19,
56,
31,
4793,
14,
968,
4725,
569,
9,
47,
76,
14,
2331,
25,
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... |
Why is my asp:TreeView selected node reset when in an UpdatePanel?
===
I have an asp.net 2.0 page that contains 2 `UpdatePanels`.
The first panel contains a `TreeView` control, when I select a node in the three view control it triggers an update of the second `UpdatePanel` only. This much is behaving correctly.
There are two buttons on the page outside of an update panel (previous/next). These buttons trigger an update of both panels. The behaviour of the buttons is to select the adjacent node in the three. The first time I click on one of these buttons I get the expected behaviour, and adjacent node is selected and the both panels are updated to reflect this change.
The problem happens when I click any of these buttons again. The selected node of the treeview seems to remember the previously selected node and the buttons act on this node. So the behaviour of the previous/next buttons is to do nothing or jump back two. | 0 | [
2,
483,
25,
51,
28,
306,
45,
8101,
4725,
1704,
15421,
23422,
76,
19,
40,
11100,
3206,
532,
60,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
172,
9,
387,
2478,
30,
1588,
172,
13,
1,
576,
8209,
3206,
6798,
1,
9,
14,
64,
4113... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Master page from external library
===
I want to put my master pages in a central library so I can use them in several projects without having the maintanance nightmare.
Everything is refactored in a generic and central way, they are all in a "shared" namespace.
But if put them in a seperate project, I can't reference them | 0 | [
2,
1129,
2478,
37,
4886,
1248,
800,
3726,
3726,
31,
259,
20,
442,
51,
1129,
4434,
19,
21,
521,
1248,
86,
31,
92,
275,
105,
19,
238,
2314,
366,
452,
14,
407,
2463,
2416,
10586,
9,
796,
25,
302,
17455,
69,
19,
21,
12733,
17,
521... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CMapStringToOb::Lookup problem in Japanese
===
Does anyone know why CMapStringToOb::Lookup doesn't work in Japanese? The code loads a string from the string table, and puts it into a CMapStringToOb object. Later it loads the same string from the string table (so it is guaranteed to be exactly the same) and calls CMapStringToOb::Lookup to find it. It works in all languages that we've translated to and tested, except for Japanese which can't find the string in the CMapStringToOb object. Thanks
| 0 | [
2,
2390,
2552,
11130,
262,
4995,
45,
45,
5810,
576,
1448,
19,
1095,
800,
3726,
3726,
630,
1276,
143,
483,
2390,
2552,
11130,
262,
4995,
45,
45,
5810,
576,
1437,
22,
38,
170,
19,
1095,
60,
14,
1797,
19069,
21,
3724,
37,
14,
3724,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sometimes can't delete an Oracle database row using Django
===
I have a unit test which contains the following line of code
Site.objects.get(name="UnitTest").delete()
and this has worked just fine until now. However, that statement is currently hanging. It'll sit there forever trying to execute the delete. If I just say
print Site.objects.get(name="UnitTest")
then it works, so I know that it can retrieve the site. No other program is connected to Oracle, so it's not like there are two developers stepping on each other somehow. I assume that some sort of table lock hasn't been released.
So short of shutting down the Oracle database and bringing it back up, how do I release that lock or whatever is blocking me? I'd like to not resort to a database shutdown because in the future that may be disruptive to some of the other developers. | 0 | [
2,
1030,
92,
22,
38,
27448,
40,
15759,
6018,
3131,
568,
3857,
14541,
800,
3726,
3726,
31,
57,
21,
1237,
1289,
56,
1588,
14,
249,
293,
16,
1797,
689,
9,
23793,
18,
9,
3060,
5,
7259,
3726,
7,
15464,
10543,
7,
6,
9,
24249,
591,
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... |
Globalizing runtime generated assemblies
===
**Background**
-------------------
A project installs some files that contain all the elements to define a UserControl - some user source, a CodeCompileUnit for designer code, and a resx file. At runtime, these files are compiled into an assembly and the classes are consumed by our main application (the assembly is only updated when necessary).
**Question**
------------
The project has to be globalized and as part of that process, there is a need to provide localizations of these files. Two options are either to allow the inclusion of additional resx files for different locales (either within the same files or as additional side-by-side files) that can be compiled into a satellite assembly for the main assembly, or to provide a copy of each full file for each supported language, compiling the appropriate set for the language being supported.
- Does anyone have any other options that might be worth considering?
- What problems might be inherent in either of the solutions I've proposed?
----------
***Constraints/Disclaimer**<br/>
I know it may be tempting, but please do not get bogged down in why globalization was not considered from the start, why these files are used this way, etc; I am aware that the scenario is less than ideal and that better choices could've been made in some areas, but assume they cannot be changed at this point in the project. I appreciate any advice, solutions, or leads you can provide. Thanks.* | 0 | [
2,
2062,
3335,
485,
891,
6756,
21066,
800,
3726,
3726,
13,
1409,
1958,
8810,
1409,
13,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
21,
669,
16146,
18,
109,
6488,
30,
3717,
65,
14,
2065,
20,
9267,
21,
4155,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ASP.NET trusted DB connection to other server works in Casini, not in IIS
===
Our website connects to a database correctly when running the website locally using the built-in web server. But, when we deploy the site to our server running IIS, we get a database connection error. The database server is different from our IIS server. Note that a trusted connection to a different database on the SAME server as IIS works fine.
What do we need to do to connect to a SQL database on a different server with a trusted connection? | 0 | [
2,
28,
306,
9,
2328,
9968,
13,
9007,
2760,
20,
89,
8128,
693,
19,
7167,
2651,
15,
52,
19,
595,
18,
800,
3726,
3726,
318,
2271,
8534,
20,
21,
6018,
12044,
76,
946,
14,
2271,
6680,
568,
14,
392,
8,
108,
2741,
8128,
9,
47,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How would you implement salted passwords in Tomcat 5.5
===
My web application is relying on container-managed security and I'm wondering if it's possible to use salted passwords at all. As far as I can tell it's easy enough to store digested passwords in a database by just congfiguring a JDBC or DataSource Realm, but there's no way to add a salt to those digest.
Any suggestions? | 0 | [
2,
184,
83,
42,
8713,
2693,
69,
20884,
18,
19,
2067,
5782,
331,
9,
264,
800,
3726,
3726,
51,
2741,
3010,
25,
21760,
27,
12147,
8,
177,
8030,
1221,
17,
31,
22,
79,
5712,
100,
32,
22,
18,
938,
20,
275,
2693,
69,
20884,
18,
35,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Setting Up a Git Prototype
===
I'm exploring git to see how it might work for my company. I've got git installed and I need to know a couple things:
* How can I set up a git server on my computer to act as my central repo?
* I'm trying to figure out how to manage my workflow with just the GUI on Windows (using the GUI is a requirement). How do I take a bunch of files in a folder and get them into my GIT repo?
If there's a good tutorial for each item I'm plenty happy looking there instead if you can point me in the right direction. Thanks! | 0 | [
2,
2697,
71,
21,
13,
10404,
7063,
800,
3726,
3726,
31,
22,
79,
11748,
13,
10404,
20,
196,
184,
32,
530,
170,
26,
51,
237,
9,
31,
22,
195,
330,
13,
10404,
4066,
17,
31,
376,
20,
143,
21,
1335,
564,
45,
1637,
184,
92,
31,
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... |
page sliding on a desktop webapp similar to iphone webapps
===
I've looked at [ciui][1] and really liked the way that certain links will slide out the existing content and load new content into the DOM, or slide back.
Is there a way to quickly create a work-a-like with the additional animation support in jQuery, scriptaculous, or MooTools?
[1]: http://clientside.cnet.com/cnet-js-standards/ciui-cnet-iphone-ui/ | 0 | [
2,
2478,
7609,
27,
21,
17404,
2741,
7753,
835,
20,
21024,
2741,
7753,
18,
800,
3726,
3726,
31,
22,
195,
292,
35,
636,
1892,
5661,
500,
2558,
165,
500,
17,
510,
3345,
14,
161,
30,
1200,
6271,
129,
6464,
70,
14,
3149,
2331,
17,
63... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 linq-y way to union collection properties of a collection of objects?
===
Sorry, that title just hurts. I'm wondering if there is a Linq to collections extension method that collapses the following code segment into a single line:
public IEnumerable<Child> GetAllChildren(IEnumerable<Parent> parents){
var result = new List<Child>();
foreach(Parent parent in parents)
foreach(Child child in parent.Children)
result.Add(child);
return result;
}
If you can collapse that into a single statement, try it on insane difficulty:
public IEnumerable<Child> GetAllChildren(IEnumerable<Grandparent> nanas){
var result = new List<Child>();
foreach(Grandparent papa in nanas)
foreach(Parent parent in papa.Children)
foreach(Child child in parent.Children)
result.Add(child);
return result;
}
| 0 | [
2,
25,
80,
21,
6294,
1251,
8,
93,
161,
20,
667,
1206,
3704,
16,
21,
1206,
16,
3916,
60,
800,
3726,
3726,
1875,
15,
30,
581,
114,
1500,
18,
9,
31,
22,
79,
5712,
100,
80,
25,
21,
6294,
1251,
20,
5721,
3896,
2109,
30,
6529,
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... |
return value of exec in perl
===
I would like to execute ls in a perl program (as part of CGI script).
For this i used exec(ls). But this does not return from the exec call.
Is there a better way to get a listing of a directory in perl? | 0 | [
2,
788,
1923,
16,
1396,
3319,
19,
416,
255,
800,
3726,
3726,
31,
83,
101,
20,
15644,
644,
18,
19,
21,
416,
255,
625,
13,
5,
472,
141,
16,
272,
2234,
3884,
6,
9,
26,
48,
31,
147,
1396,
3319,
5,
7532,
6,
9,
47,
48,
630,
52,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What can cause intermittent ORA-12519 (TNS: no appropriate handler found) errors
===
We are running our Junit 4 test suite against Weblogic 9 in front of an Oracle 10 database (using Hudson as a continuous integration server) and occasionally we will get an ORA-12519 crash during script teardown. However, the error is very intermittent:
- It usually happens for the same Test class
- It doesn't always happen for the same test cases (sometimes they pass)
- It doesn't happen for the same number of test cases (anywhere from 3-9)
- Sometimes it doesn't happen at all, everything passes
While I can't guarantee this doesn't happen locally (when running against the same database, of course), I have run the same suite of class multiple times with no issues.
Any ideas? | 0 | [
2,
98,
92,
1679,
19667,
54,
58,
8,
16649,
1433,
13,
5,
38,
2172,
45,
90,
4593,
24641,
216,
6,
11908,
800,
3726,
3726,
95,
50,
946,
318,
7446,
242,
268,
1289,
6160,
149,
2741,
24268,
561,
19,
431,
16,
40,
15759,
332,
6018,
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... |
When would you use the "protected internal" access modifier?
===
As you may already know, the .NET Framework's [*protected internal*][1] access modifier works in a strange way: It doesn't mean the class is *protected* **AND** *internal*, it says the class is *protected* **OR** *internal*; that is, the modified class or member can be accessed from whitin the same assembly **as well as** from the same hierarchy.
So, knowing this: When would you use it? Can you give an example? Is there a good, *illuminating* usage example inside .NET Base Class Library?
[1]: http://msdn.microsoft.com/en-us/library/ms173121.aspx | 0 | [
2,
76,
83,
42,
275,
14,
13,
7,
16265,
69,
3117,
7,
1381,
7226,
16292,
60,
800,
3726,
3726,
28,
42,
123,
614,
143,
15,
14,
13,
9,
2328,
6596,
22,
18,
636,
2483,
16265,
69,
3117,
2483,
500,
2558,
165,
500,
1381,
7226,
16292,
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... |
Displaying a Tree Structure in Crystal Reports
===
Does anyone know of a way to represent a tree structure in Crystal Reports?
My big issue is that **I don't know the depth of the tree**. It is represented in a database table with a simple "childId -> parentId" relationship.
A perfect example would be to open Windows Explorer, and look at the directory tree on the left side. If anyone knows a way to represent that tree, then it'll work for what I need to do too.
My initial attempts have been:
1) to programatically (in C#) add Groups to the report. Unfortunately, you can't create a new instance of the Group class and add it to the Groups collection.
2) recursively nest the same report into itself for each level. In other words:
mainReport
subReport
subReport
subReport
subReport
subReport
subReport
etc...
Unfortunately, SubReports can't contain SubReports.
I really don't want to just add X number of groups into a report and hide the ones I don't need, because I'd have to add a fixed number of nested groups, but technically the data design can support an infinite depth, even though in practice we see up to about 5 levels of depth.
So, any other ideas?
| 0 | [
2,
17418,
21,
1541,
1411,
19,
4282,
2813,
800,
3726,
3726,
630,
1276,
143,
16,
21,
161,
20,
3501,
21,
1541,
1411,
19,
4282,
2813,
60,
51,
580,
1513,
25,
30,
13,
1409,
49,
221,
22,
38,
143,
14,
5204,
16,
14,
1541,
1409,
9,
32,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Hooking softkeys on Windows?
===
My laptop has a mysterious "AV Now" button on it, which would usually launch Samsung's "AVStation Now" application. I don't have this application installed, so I'd like to get this button to do something else.
So (and this question can be generalised to any keyboard with softbuttons on it), how would I go about writing a Windows program (C++ or C#) to:
- Figure out what pressing this button does. Is it a custom USB HID device, or is it just an obscure key combination?
- Install a global hook for this button, so that I could get it to do something useful.
| 0 | [
2,
5559,
68,
1856,
4237,
18,
27,
1936,
60,
800,
3726,
3726,
51,
12294,
63,
21,
6896,
13,
7,
5214,
130,
7,
5167,
27,
32,
15,
56,
83,
951,
3394,
22981,
22,
18,
13,
7,
5214,
10839,
130,
7,
3010,
9,
31,
221,
22,
38,
57,
48,
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... |
Sql Server Job steps
===
I am dynamically adding steps to a Sql Server Agent Job, but I need to get the last step id to determine the next id in the sequence. I cannot seem to find any built in sps that can give me this information. | 0 | [
2,
4444,
255,
8128,
1205,
2382,
800,
3726,
3726,
31,
589,
7782,
1326,
4721,
2382,
20,
21,
4444,
255,
8128,
2267,
1205,
15,
47,
31,
376,
20,
164,
14,
236,
1424,
4924,
20,
3746,
14,
328,
4924,
19,
14,
4030,
9,
31,
1967,
2260,
20,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... |
What is a DOCVARIABLE in word.
===
What is a DOCVARIABLE in Microsoft Word 2003? How do I set it? How do I make it display in my word document. | 0 | [
2,
98,
25,
21,
9765,
8220,
579,
19,
833,
9,
800,
3726,
3726,
98,
25,
21,
9765,
8220,
579,
19,
7099,
833,
973,
60,
184,
107,
31,
309,
32,
60,
184,
107,
31,
233,
32,
3042,
19,
51,
833,
4492,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to print a PDF from the browser
===
In a Web application, is it possible to force a PDF file to be printed on the client? If the browser is configured to open the PDF inside the window, I guess that calling window.print() will work, but some browsers (like mine) are configured to open the PDF externally. | 0 | [
2,
184,
20,
4793,
21,
13,
11124,
37,
14,
16495,
800,
3726,
3726,
19,
21,
2741,
3010,
15,
25,
32,
938,
20,
558,
21,
13,
11124,
3893,
20,
44,
5317,
27,
14,
6819,
60,
100,
14,
16495,
25,
28895,
20,
368,
14,
13,
11124,
572,
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... |
Reusing a resultMap for different column names
===
Is there a way of reusing the same resultMap multiple times in a single query.
For example, suppose I have a "foo" resultMap:
<resultMap id="foo" class="Foo">
<result property="Bar" column="bar" />
</resultMap>
Is there a way to define another resultMap that reuses the above for different columns? Something like...
<resultMap id="fizz"class="Fizz">
<result property="Foo1" column="bar=bar1" resultMapping="foo" />
<result property="Foo2" column="bar=bar2" resultMapping="foo" />
<result property="Foo3" column="bar=bar3" resultMapping="foo" />
</resultMap>
| 0 | [
2,
302,
12655,
21,
829,
15022,
26,
421,
4698,
1817,
800,
3726,
3726,
25,
80,
21,
161,
16,
302,
12655,
14,
205,
829,
15022,
1886,
436,
19,
21,
345,
25597,
9,
26,
823,
15,
5787,
31,
57,
21,
13,
7,
4120,
111,
7,
829,
15022,
45,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Encryption of SOAP message in Axis 2
===
I need to use encryption (and signature) for a web-service (server side). I use axis2 and successfully added the rampart module (for WS-Security implementation).
But rampart page (http://ws.apache.org/axis2/modules/rampart/1_2/security-module.html) is missing examples and the sample file are not really documented.
So my question is : what is the simplest way to add encryption (and signature) ? what do I have to put in the services.xml, do I have to write a policy.xml ? What do I have to give to the client's developer (in addition to the WSDL) ?
If you can point me to a good tutorial it would be helpful, thanks etc... | 0 | [
2,
24420,
16,
6447,
2802,
19,
8577,
172,
800,
3726,
3726,
31,
376,
20,
275,
24420,
13,
5,
290,
7810,
6,
26,
21,
2741,
8,
11449,
13,
5,
10321,
106,
270,
6,
9,
31,
275,
8577,
135,
17,
3673,
905,
14,
27086,
12613,
13,
5,
1106,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Generation of designer file failed: The directive is missing a 'tagprefix' attribute.
===
When adding a reference to a user control in my web project, I type
<%@ Register
Then the IDE steals my focus and puts it in the Error List pane, on the error
> "Generation of designer file failed:
> The directive is missing a 'tagprefix'
> attribute."
Obviously there isn't a tagprefix attribute yet, I'm still typing the tag!
How can I stop Visual Studio from moving focus to the Error List pane? | 0 | [
2,
2782,
16,
4742,
3893,
1702,
45,
14,
15626,
25,
2863,
21,
13,
22,
8628,
3515,
18594,
22,
35,
14755,
9,
800,
3726,
3726,
76,
4721,
21,
2801,
20,
21,
4155,
569,
19,
51,
2741,
669,
15,
31,
1001,
13,
1,
11881,
1,
2243,
94,
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... |
What's the 'correct' way of registering/installing an Assembly to the GAC?
===
There seems to be lots of different ways to register assemblies with the GAC, as in, they 'work'. However, what's the "proper" way of doing it?
In response to Lou Franco:
I'm using Gacutil for development, but it seems to me to be not the proper way to install it, since gacutil isn't included in the basic .NET utilities past .NET 1.1. | 0 | [
2,
98,
22,
18,
14,
13,
22,
25345,
22,
161,
16,
2243,
68,
118,
108,
21300,
68,
40,
1475,
20,
14,
4369,
150,
60,
800,
3726,
3726,
80,
2206,
20,
44,
7503,
16,
421,
2847,
20,
2243,
21066,
29,
14,
4369,
150,
15,
28,
19,
15,
59,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Select from same table as an Insert or Update
===
Clearly the following is incorrect.
INSERT INTO `aTable` (`A`,`B`) VALUES((SELECT MAX(`A`) FROM `aTable`)^2),'name');
So, I'm trying to make a bitmap table, each row corresponds to one Bit, and has a 'map' value.
To insert in the table, I don't want to do two queries, I want to do one.
How should I do this? | 0 | [
2,
5407,
37,
205,
859,
28,
40,
14692,
54,
11100,
800,
3726,
3726,
2885,
14,
249,
25,
18867,
9,
14692,
77,
13,
1,
58,
5924,
1,
13,
5,
1,
58,
1,
15,
1,
220,
1,
6,
4070,
5,
5,
18,
16964,
2049,
5,
1,
58,
1,
6,
37,
13,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What do you think of programmers who hold part time programming jobs?
===
Employers! How would you think of your employees who have part time programming jobs, either to supplement their income or to learn something new? Do you think that there is a conflict of interest here?
And fellow programmers! What would you think of your colleagues who hold part time programming jobs? | 0 | [
2,
98,
107,
42,
277,
16,
17968,
18,
72,
1027,
141,
85,
3143,
4844,
60,
800,
3726,
3726,
14028,
187,
184,
83,
42,
277,
16,
154,
3716,
72,
57,
141,
85,
3143,
4844,
15,
694,
20,
8881,
66,
1587,
54,
20,
2484,
301,
78,
60,
107,
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... |
Starting a new database driven python web application would you use a javascript widget framework? If so which framework?
===
I am starting a new web application project. I want to use python as I am using it at my bread-and-butter-job.
However I don't want to reinvent the wheel. Some things I have thought about:
* AJAX would be nice if it’s not too much of a hazzle.
* It is best if the licensing allows commercialization but is not crucial at this point.
* It could also be funny to try out the Google App Engine if the tools will let me.
Should I be using a javascript UI framework or should I go for standard HTML forms?
Which framework would you recommend?
| 0 | [
2,
1422,
21,
78,
6018,
5355,
20059,
2741,
3010,
83,
42,
275,
21,
8247,
8741,
4807,
43,
3060,
6596,
60,
100,
86,
56,
6596,
60,
800,
3726,
3726,
31,
589,
1422,
21,
78,
2741,
3010,
669,
9,
31,
259,
20,
275,
20059,
28,
31,
589,
56... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the Compiler Book People are talking about when They say the "Dragon" book?
===
Also is there a better book you'd recommend for learning about compilers, or is that the one to get? | 0 | [
2,
98,
22,
18,
14,
21486,
360,
148,
50,
1582,
88,
76,
59,
395,
14,
13,
7,
20433,
7,
360,
60,
800,
3726,
3726,
67,
25,
80,
21,
574,
360,
42,
22,
43,
12360,
26,
2477,
88,
21486,
18,
15,
54,
25,
30,
14,
53,
20,
164,
60,
3,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
VBA watch file in use
===
I"m looking for something (Win API calls or whatever) to notify me when a file becomes available for editing (i.e. no longer in use). Should I set up a timer to check the files on some interval or is there a good way to set up a watch on the file? | 0 | [
2,
566,
969,
1455,
3893,
19,
275,
800,
3726,
3726,
31,
7,
79,
699,
26,
301,
13,
5,
4181,
21,
2159,
3029,
54,
2099,
6,
20,
52,
8612,
55,
76,
21,
3893,
2633,
904,
26,
9510,
13,
5,
49,
9,
62,
9,
90,
1045,
19,
275,
6,
9,
378... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I initialize a blank database as per a populated dataset?
===
Initialization would include creating all the required tables, constraints and populating the tables.
edit: Is there already a project doing this? | 0 | [
2,
184,
107,
31,
2104,
2952,
21,
6463,
6018,
28,
416,
21,
11111,
1054,
3554,
60,
800,
3726,
3726,
2104,
1829,
83,
468,
2936,
65,
14,
1390,
7484,
15,
16747,
17,
1675,
10038,
14,
7484,
9,
9392,
45,
25,
80,
614,
21,
669,
845,
48,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Why can final constants in Java be overriden?
===
Consider the following interface in Java:
public interface I {
public final String KEY = "a";
}
And the following class:
public class A implements I {
public String KEY = "b";
public String getKey() {
return KEY;
}
}
Why is it possible for class A to come along and override interface I's final constant?
Try for yourself:
A a = new A();
String s = a.getKey(); // returns "b"!!! | 0 | [
2,
483,
92,
426,
3587,
18,
19,
8247,
44,
84,
928,
817,
60,
800,
3726,
3726,
3563,
14,
249,
6573,
19,
8247,
45,
317,
6573,
31,
13,
1,
317,
426,
3724,
1246,
800,
13,
7,
58,
7,
73,
13,
1,
17,
14,
249,
718,
45,
317,
718,
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... |
Axis2 Web Service Client Generation - Types without modifying the client
===
Is it possible with Axis2 and Eclipse to generate a Web Service client and have it use java types that you already have in packages instead of creating it's own types. Reason being of course if I have type A already created and it creates it's own Type A I can't just assign variable of type A to variable of type B. | 0 | [
2,
8577,
135,
2741,
365,
6819,
2782,
13,
8,
2551,
366,
17579,
68,
14,
6819,
800,
3726,
3726,
25,
32,
938,
29,
8577,
135,
17,
11652,
20,
7920,
21,
2741,
365,
6819,
17,
57,
32,
275,
8247,
2551,
30,
42,
614,
57,
19,
16875,
700,
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... |
Changing directory using php passthru()
===
I want to change the working directory using passthru() method and commandline ..
This is the php script
<?php
passthru("chdir C:/Documents and Settings/svn");
print passthru("dir");
?>
However, it is not changing the working directory to C:/Documents and Settings/svn..
It is outputting the files from the current directory ..
What could be the problem ?
| 0 | [
2,
4226,
16755,
568,
13,
26120,
1477,
96,
1820,
5,
6,
800,
3726,
3726,
31,
259,
20,
753,
14,
638,
16755,
568,
1477,
96,
1820,
5,
6,
2109,
17,
1202,
1143,
13,
9,
9,
48,
25,
14,
13,
26120,
3884,
13,
1,
60,
26120,
1477,
96,
182... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Correct method to get installed application path by app. name in C#
===
I use this function **to find any installed application**.
But the parameter "InstallLocation" doesn't work at all.
Any clue?
Thanks!!
void FindApplication(string appName)
{
StringBuilder sbProductCode = new StringBuilder(39);
int iIdx = 0;
while (0 == MsiEnumProducts(iIdx++, sbProductCode))
{
Int32 productNameLen = 512;
StringBuilder sbProductName = new StringBuilder(productNameLen);
MsiGetProductInfo(sbProductCode.ToString(), "ProductName", sbProductName, ref productNameLen);
if (sbProductName.ToString().Contains(appName))
{
Int32 installDirLen = 2048;
StringBuilder sbInstallDir = new StringBuilder(installDirLen);
MsiGetProductInfo(sbProductCode.ToString(),"InstallLocation", sbInstallDir, ref installDirLen);
string result = string.Format("ProductName {0}: {1}", sbProductName, sbInstallDir);
}
}
} | 0 | [
2,
4456,
2109,
20,
164,
4066,
3010,
2013,
34,
4865,
9,
204,
19,
272,
5910,
800,
3726,
3726,
31,
275,
48,
1990,
13,
1409,
262,
477,
186,
4066,
3010,
1409,
9,
47,
14,
18906,
13,
7,
108,
21300,
19032,
7,
1437,
22,
38,
170,
35,
65... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Issue with the Connection String in Visual Studio Unit Test
===
I am developing an MVC3 application in C#.
The application has several projects. Since I want to test the behavior of the Repository, the relevant projects are the **Repository project** itself and the **Unit Test project**.
I am facing an issue in testing phase, since everytime I run a test it launches an exception
**Test method UnitTest1.Repository_IsNotNull threw exception:
System.ArgumentException: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.**
I already encountered this exception other times and the only thing I had to do was copying the **ConnectionString** from the referenced project **web/app/.config** file (this case the Repository) to the referencing one (in this case the **UnitTest**).
The problem in this case is that **UnitTest** project does not have neither an app.config nor a web.config file.
What can be the cause of this issue and how to fix it?
| 0 | [
2,
1513,
29,
14,
2760,
3724,
19,
3458,
1120,
1237,
1289,
800,
3726,
3726,
31,
589,
3561,
40,
307,
8990,
240,
3010,
19,
272,
5910,
9,
14,
3010,
63,
238,
2314,
9,
179,
31,
259,
20,
1289,
14,
3257,
16,
14,
24869,
15,
14,
7480,
23... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SP2010 how to show a hyperlink or link column in custom Content type defition
===
I am having a requirement where i need to show a link of document in content type.
i am not able to put a hyper link in my content type definition ...
any suggestion ?...
| 0 | [
2,
3782,
2751,
184,
20,
298,
21,
5443,
6258,
54,
3508,
4698,
19,
5816,
2331,
1001,
6312,
9861,
800,
3726,
3726,
31,
589,
452,
21,
8981,
113,
31,
376,
20,
298,
21,
3508,
16,
4492,
19,
2331,
1001,
9,
31,
589,
52,
777,
20,
442,
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... |
Pattern for writing Chart Components
===
I have to write a chart component from scratch in Silverlight 3 and wonder if anybody knows if there are any design patterns, guidelines, tutorials that can help with the process? | 1 | [
2,
3732,
26,
1174,
1795,
5090,
800,
3726,
3726,
31,
57,
20,
2757,
21,
1795,
5912,
37,
12395,
19,
1172,
3130,
203,
17,
2666,
100,
11181,
3620,
100,
80,
50,
186,
704,
6282,
15,
12629,
15,
29724,
18,
30,
92,
448,
29,
14,
953,
60,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Word Translation by letter/vowels
===
I'm looking to translate words by letters/vowels.
I'll try to explain.
I have a an Arabic text with ~300,000 words, my goal is to enable users to search the text using one of 10 languages I'll define. So if some search for Stack overflow in English I'll need to break down to words as S-TA-CK O-VE-R-F-LOW (I need to break it that way to get the Arabic equivalent letters).
Is there something like that already exsiting, or I just need to start from scratch and do a linguistic research???
Thank you for your time.
| 0 | [
2,
833,
4064,
34,
1748,
118,
2625,
6986,
18,
800,
3726,
3726,
31,
22,
79,
699,
20,
20628,
715,
34,
2516,
118,
2625,
6986,
18,
9,
31,
22,
211,
1131,
20,
3271,
9,
31,
57,
21,
40,
6663,
1854,
29,
13,
1,
6571,
15,
3993,
715,
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... |
IE: Choose a digital certificate from a blank, empty list
===
I've created a web application that I've hosted with IIS 7 on a Windows Server 2008 machine. I've loaded a security certificate for secure.xxxxx.com.
![IIS 7 Server Certificates][1]
When I browse to the web site with **Microsoft Internet Explorer**, I get this prompt:
> Choose a digital certificate
> Identification
> The website you want to view requests identification.
> Please choose a certificate.
There are no certificates. It's an empty, blank list.
![Internet Explorer Choose a digital certificate][2]
If I click either OK or Cancel, then the page loads just fine. There's no warning or other indication from Internet Explorer that there is a security issue.
![Microsoft Internet Explorer SSL Security Certificate Website Identification][3]
The **Apple Safari** browser won't display the page at all.
> Safari can't open the page.
> Safari can't open the page xxxxx because
> it couldn't establish a secure connection
> to the server xxxxx.
![Apple Safari can't open the page][4]
Both **Mozilla Firefox** and **Google Chrome** load the web site perfectly with no hassles.
![Mozilla Firefox SSL Security Certificate][5]
![Google Chrome SSL Security Certificate][6]
Why might Microsoft Internet Explorer and Apple Safari fail to load my web site properly?
[1]: http://img401.imageshack.us/img401/324/certxx6.gif
[2]: http://img266.imageshack.us/img266/7016/ie1we9.gif
[3]: http://img207.imageshack.us/img207/8265/ie2yr5.gif
[4]: http://img80.imageshack.us/img80/2899/safka3.gif
[5]: http://img158.imageshack.us/img158/6833/foxsk4.gif
[6]: http://img367.imageshack.us/img367/7928/chrsx2.gif | 0 | [
2,
13,
660,
45,
3538,
21,
1888,
6259,
37,
21,
6463,
15,
2424,
968,
800,
3726,
3726,
31,
22,
195,
679,
21,
2741,
3010,
30,
31,
22,
195,
2812,
29,
595,
18,
453,
27,
21,
1936,
8128,
570,
1940,
9,
31,
22,
195,
8572,
21,
1221,
62... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Architecting a Work Item Processing System with Modified FIFO Semantics in Windows
===
I’m building a system that generates “work items” that are queued up for back-end processing. I recently completed a system that had the same requirements and came up with an architecture that I don’t feel is optimal and was hoping for some advice for this new system.
Work items are queued up centrally and need to be processed in an essentially FIFO order. If this were the only requirement, then I would probably favor an MSMQ or SQL Server Service Broker solution. However, in reality, I need to select work items in a modified FIFO order. A work item has several attributes, and they need to be assigned in FIFO order where certain combinations of attribute values exist.
As an example, a work item may have the following attributes: Office, Priority, Group Number and Sequence Number (within group). When multiple items are queued for the same Group Number, they are guaranteed to be queued in Sequence Number order and will have the same priority.
There are several back-end processes (currently implemented as Windows Services) that pull work times in modified FIFO order given certain configuration parameters for the given service. The service running Washington, DC is configured to process only work items for DC, while the service in NY may be configured to process both NY and DC items (mainly to increase overall throughput). In addition to this type of selectivity, higher priority items should be processed first, and items that contain the same “Group Number” must be processed in Sequence Number order. So if the NY service is working on a DC item in group 100 with sequence 1, I don’t want the DC service to pull off DC item in group 100 sequence 2 because sequence 1 is not yet complete. Items in other groups should remain eligible for processing.
In the last system, I implemented the queues with SQL tables. I created stored procedures to submit items and, more importantly, to “assign” items to the Windows Services that were responsible for processing them. The assignment stored procedures contain the selection logic I described above. Each Windows Service would call the assignment stored procedure, passing it the parameters that were unique to that instance of the service (e.g. the eligible offices). This assignment stored procedure stamps the work item as assigned (in process) and when the work is complete, a final stored procedure is called to remove the item from the “queue” (table).
This solution does have some advantages in that I can quickly examine the state of these “queues” by a simple SQL select statement. I’m also able to manipulate the queues easily (e.g. I can bump priorities with a simple SQL update statement). However, on the downside, I occasionally have to deal with deadlocks on these queue tables and have the burden of writing these stored procedures (which gets tedious after a while).
Somehow I think that either MSMQ (with or without WCS) or Service Broker should be able to provide a more elegant solution. Rolling my own queuing/work-item-processing system just feels wrong. But as far as I know, these technologies don’t offer the flexibility that I need in the assignment process. I am hoping that I am wrong. Any advice would be welcome.
| 0 | [
2,
3338,
68,
21,
170,
9101,
5511,
329,
29,
5372,
6028,
4120,
17220,
18,
19,
1936,
800,
3726,
3726,
31,
1,
79,
353,
21,
329,
30,
7920,
18,
13,
1,
3783,
3755,
1,
30,
50,
22521,
43,
71,
26,
97,
8,
2451,
5511,
9,
31,
1989,
1066,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Customizing schema with Sync Framework
===
i sync a database via wcf service to sql ce databases on my clients.
however, i don't want the schema generated on the client side to be the
same, as the one on the server.
is there a way to customize the schema returned to the client syncproviders?
| 0 | [
2,
5816,
3335,
23874,
29,
6063,
150,
6596,
800,
3726,
3726,
31,
6063,
150,
21,
6018,
1197,
11801,
410,
365,
20,
4444,
255,
4000,
6018,
18,
27,
51,
7421,
9,
207,
15,
31,
221,
22,
38,
259,
14,
23874,
6756,
27,
14,
6819,
270,
20,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Migrating from other Content Management Systems to SharePoint
===
I am currently working on a project which requires migration of content from different content management Systems to SharePoint. Are there any good, preferably open source, tools that would help me do this? Also, what are the best practices that I would have to keep in mind when it comes to such projects. One more thing that i would like to factor here is reusablity, because we might have to work on similar migration projects, from other Content Management systems in future. | 0 | [
2,
28749,
37,
89,
2331,
1097,
1242,
20,
1891,
3132,
800,
3726,
3726,
31,
589,
871,
638,
27,
21,
669,
56,
4781,
8443,
16,
2331,
37,
421,
2331,
1097,
1242,
20,
1891,
3132,
9,
50,
80,
186,
254,
15,
6369,
4801,
368,
1267,
15,
4672,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ActiveX plugin causes ASSERT to fail on application exit in VS2008
===
My MFC application using the "ESRI MapObjects LT2" ActiveX plugin throws an ASSERT at me when closing it.
The error occurs in `cmdtarg.cpp`:
CCmdTarget::~CCmdTarget()
{
#ifndef _AFX_NO_OLE_SUPPORT
if (m_xDispatch.m_vtbl != 0)
((COleDispatchImpl*)&m_xDispatch)->Disconnect();
ASSERT(m_dwRef <= 1); //<--- Fails because m_dwRef is 3
#endif
m_pModuleState = NULL;
}
I built the (native C++) application with VC9.
When I compile the application with VC6, it behaves nicely.
What could be the reason for this?
| 0 | [
2,
1348,
396,
10922,
108,
4047,
10908,
20,
7476,
27,
3010,
4350,
19,
4611,
2753,
800,
3726,
3726,
51,
307,
7061,
3010,
568,
14,
13,
7,
160,
928,
2942,
23793,
18,
7137,
135,
7,
1348,
396,
10922,
108,
13566,
40,
10908,
35,
55,
76,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Project Management + SCM for techies and non-techies?
===
I've recently begun evaluating a few project management projects for the company I work for. It's the classic case - growing company looking for the right solution (meaning, free or really cheap). It's a combination shop - Windows, Macs, and Linux on the desktop. The tech savviness, of course, ranges from newbie to unix guru.
I have yet to find anything really close to a total solution. I don't expect to find one, but I am looking for suggestions/guidance/any sort of feedback based on people's experience.
What I'm looking for:
- web based
- methodology independent (not looking for an agile solution, etc.)
- free or really cheap
- document management
- timelines and milestones
- task tracking and assigning
- reporting
- source control
- development wiki
I've looked at Trac, Projectivity, Basecamp, JIRA, RT, XPlanner, and SharedPlan. I've stayed away from Bugzilla due to previous unhappy experiences with it. None of these things really does everything - some are extendable, but I'd check here before going down that path.
Thanks,
| 0 | [
2,
669,
1097,
2754,
4729,
79,
26,
6145,
1596,
17,
538,
8,
6524,
1596,
60,
800,
3726,
3726,
31,
22,
195,
1989,
4349,
26764,
21,
310,
669,
1097,
2314,
26,
14,
237,
31,
170,
26,
9,
32,
22,
18,
14,
2732,
610,
13,
8,
1991,
237,
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... |
TSD3004 error with Visual Studio 2008 Database Project
===
I am using Visual Studio Team System 2008, version 9.0.30729.1 SP. I have a database project that I was working with yesterday with no issues - I was able to build and deploy the database successfully. Today, however, when I open the solution I receive what is listed as a "Warning" that halts any Build/Deploy/etc process, but cannot be suppressed via the Project Properties page.
The Warning reads: "TSD3004: The application encountered an unexpected error. To diagnose this problem, enable tracing. You should contact product support."
I did contact Product Support, but they insist I pay for someone to help me get this fixed. There are zero records returned from an search of "TSD3004" on either MSDN or support.microsoft.com, and there are only three returned from a Google search (all irrelevant).
Can anyone please help me figure out what's happening? | 0 | [
2,
13,
38,
18,
43,
6571,
300,
7019,
29,
3458,
1120,
570,
6018,
669,
800,
3726,
3726,
31,
589,
568,
3458,
1120,
173,
329,
570,
15,
615,
561,
9,
387,
9,
23630,
2738,
9,
165,
3782,
9,
31,
57,
21,
6018,
669,
30,
31,
23,
638,
29,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to delete a row from a GridView using non-visible data?
===
I'm writting a simple prototype front end using a GridView that is populated via function, rather than being linked directly to a SqlServer data source.
So I can delete a row/record from grid/underlying database I am currently
1. Setting the AutoGenerateDeleteButton = true
2. Displaying the unique record ids in the first column
3. Handling the RowDeleting event
4. Obtaining the id by getting the grid.Rows[e.RowIndex].Cells[idIndex].Text
5. Passing that number through to a function that does the deleting
This seems to be working just fine, but I would rather not display the ids to the users at they don't mean anything to them.
I tried setting the id column's Visible property to false, but this caused step 4 above to return an empty string - and so no record deleted.
So how do I store the hidded id number with each row?
Or am I going about this completely the wrong way? | 0 | [
2,
184,
20,
27448,
21,
3131,
37,
21,
7354,
4725,
568,
538,
8,
3762,
3426,
1054,
60,
800,
3726,
3726,
31,
22,
79,
20127,
1203,
21,
1935,
7063,
431,
241,
568,
21,
7354,
4725,
30,
25,
11111,
1197,
1990,
15,
864,
119,
142,
4727,
170... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 one go about starting a user group for the local community?
===
There are many user groups out there for different technologies/platforms/etc. These groups seem to be very prevalent in the bigger cities. For smaller cities, maybe where the technology companies are scarce, finding a local *geek community* can be hard to come by. These groups can be a good source for networking, continued learning, etc.
If anybody out there has been a part of starting a user group:
* How did you go about it?
* How have you kept it alive?
* If it failed, what did you learn that you could pass along to anyone else?
* Any other tips for an endeavor?
I wouldn't even know where to begin on this so any help would be greatly appreciated.
| 2 | [
2,
184,
630,
53,
162,
88,
1422,
21,
4155,
214,
26,
14,
375,
514,
60,
800,
3726,
3726,
80,
50,
151,
4155,
1170,
70,
80,
26,
421,
5740,
118,
27035,
18,
118,
1198,
150,
9,
158,
1170,
2260,
20,
44,
253,
17584,
19,
14,
6197,
1920,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Preserve white space in string with XmlTextWriter.WriteString
===
I am writing an XML document in C#.
I have something like this...
string output = "REAPP DUE NO OF M CASE NBR APPL NBR DATE GRPS M CASE NBR APPL NBR DATE GRPS _ _ _";
and I do this...
objXmlTextWriter.WriteStartElement("Case");
objXmlTextWriter.WriteString(record);
objXmlTextWriter.WriteEndElement();
and the xml element turns out like this...
<Case>REAPP DUE NO OF REAPP DUE NO OF M CASE NBR APPL NBR DATE GRPS M CASE NBR APPL NBR DATE GRPS _ _ _ </Case>
It has basically converted white space with length greater than 1 to 1 character of white space.
How do I prevent this?
| 0 | [
2,
6224,
359,
726,
19,
3724,
29,
23504,
11969,
9657,
9,
23716,
11130,
800,
3726,
3726,
31,
589,
1174,
40,
23504,
4492,
19,
272,
5910,
9,
31,
57,
301,
101,
48,
9,
9,
9,
3724,
5196,
800,
13,
7,
99,
7753,
397,
90,
16,
307,
610,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why does my attempt to trim strings in a List<string> not appear to work?
===
I tried the following code in LINQPad and got the results given below:
List<string> listFromSplit = new List<string>("a, b".Split(",".ToCharArray())).Dump();
listFromSplit.ForEach(delegate(string s)
{
s.Trim();
});
listFromSplit.Dump();
> "a" and " b"
so the letter b didn't get the white-space removed as I was expecting...?
Anyone have any ideas
[NOTE: the .Dump() method is an extension menthod in LINQPad that prints out the contents of any object in a nice intelligently formatted way] | 0 | [
2,
483,
630,
51,
1735,
20,
8971,
7887,
19,
21,
968,
1,
11130,
1,
52,
1893,
20,
170,
60,
800,
3726,
3726,
31,
794,
14,
249,
1797,
19,
6294,
1251,
8240,
17,
330,
14,
1736,
504,
1021,
45,
968,
1,
11130,
1,
968,
2665,
25603,
800,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Migrating a Character Based Oracle Form
===
I have an OLD server running DG/UX that will in the near future be unsupported. I have some character based oracle forms that need to be migrated off of this machine. Does anyone know what sort of migration strategy Oralce has for upgrading these Character Based reports. It doesnt have to be the newest version, it doesnt even have to be to a GUI version, but I do need to migrate to a supported OS such as linux. | 0 | [
2,
28749,
21,
925,
432,
15759,
505,
800,
3726,
3726,
31,
57,
40,
315,
8128,
946,
13,
14280,
118,
7147,
30,
129,
19,
14,
424,
1022,
44,
367,
24909,
9,
31,
57,
109,
925,
432,
15759,
1997,
30,
376,
20,
44,
14204,
168,
16,
48,
194... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 master Regular Expressions?
===
I'd like to improve my regex knowledge. Are there any exercises/tools that you wolud recommend? | 1 | [
2,
184,
20,
1129,
1290,
13832,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
3545,
51,
7953,
1706,
1918,
9,
50,
80,
186,
12612,
118,
20799,
18,
30,
42,
9291,
3192,
12360,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
which db should i select if performance of postgres is low
===
In a web app that support more than 5000 users, postgres is becoming the bottle neck.
It takes more than 1 minute to add a new user.(even after optimizations and on Win 2k3)
So, as a design issue, which other DB's might be better? | 0 | [
2,
56,
13,
9007,
378,
31,
5407,
100,
956,
16,
678,
6879,
18,
25,
708,
800,
3726,
3726,
19,
21,
2741,
4865,
30,
555,
91,
119,
16024,
3878,
15,
678,
6879,
18,
25,
1535,
14,
4040,
1425,
9,
32,
1384,
91,
119,
137,
2038,
20,
3547,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 SMS aggregators also provide voicemail services?
===
I am researching companies that provide both SMS and voicemail services via an API call. I want to be able to contact users (most of whom are US-based) via both text-message and voicemail. The idea is that our web server would connect to the SMS/voicemail provider's server (e.g. using HTTP post) and then send the message to the recipient's phone. In the case of an SMS message we'd send the user a text message and for voicemail there would be a translation of the text message to a robot voice and it would then call the user's phone and recite the message.
Are there any folks out there that have worked with companies that provide both SMS and voicemail? If so, can you recommend a provider?
Thanks in advance.
| 0 | [
2,
56,
7613,
18,
24755,
18,
67,
1181,
430,
8079,
687,
60,
800,
3726,
3726,
31,
589,
527,
68,
1532,
30,
1181,
156,
7613,
18,
17,
430,
8079,
687,
1197,
40,
21,
2159,
645,
9,
31,
259,
20,
44,
777,
20,
2203,
3878,
13,
5,
4630,
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... |
MS SQL - MySQL Migration in a legacy webapp
===
I wish to migrate the database of a legacy web app from SQL Server to MySQL. What are the limitations of MySQL that I must look out for ? And what all items would be part of a comprehensive checklist before jumping into actually modifying the code ? | 0 | [
2,
4235,
4444,
255,
13,
8,
51,
18,
22402,
8443,
19,
21,
7780,
2741,
7753,
800,
3726,
3726,
31,
2536,
20,
22985,
14,
6018,
16,
21,
7780,
2741,
4865,
37,
4444,
255,
8128,
20,
51,
18,
22402,
9,
98,
50,
14,
14070,
16,
51,
18,
2240... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MySQL LEFT JOIN SELECT not selecting all the left side records?
===
I'm getting odd results from a MySQL SELECT query involving a LEFT JOIN, and I can't understand whether my understanding of LEFT JOIN is wrong or whether I'm seeing a genuinely odd behaviour.
I have a two tables with a many-to-one relationship: For every record in table 1 there are 0 or more records in table 2. I want to select all the records in table 1 with a column that counts the number of related records in table 2. As I understand it, LEFT JOIN should always return all records on the LEFT side of the statement.
Here's a test database that exhibits the problem:
CREATE DATABASE Test;
USE Test;
CREATE TABLE Dates (
dateID INT UNSIGNED NOT NULL AUTO_INCREMENT,
date DATE NOT NULL,
UNIQUE KEY (dateID)
) TYPE=MyISAM;
CREATE TABLE Slots (
slotID INT UNSIGNED NOT NULL AUTO_INCREMENT,
dateID INT UNSIGNED NOT NULL,
UNIQUE KEY (slotID)
) TYPE=MyISAM;
INSERT INTO Dates (date) VALUES ('2008-10-12'),('2008-10-13'),('2008-10-14');
INSERT INTO Slots (dateID) VALUES (3);
The Dates table has three records, and the Slots 1 - and that record points to the third record in Dates.
If I do the following query..
SELECT d.date, count(s.slotID) FROM Dates AS d LEFT JOIN Slots AS s ON s.dateID=d.dateID GROUP BY s.dateID;
..I expect to see a table with 3 rows in - two with a count of 0, and one with a count of 1. But what I actually see is this:
+------------+-----------------+
| date | count(s.slotID) |
+------------+-----------------+
| 2008-10-12 | 0 |
| 2008-10-14 | 1 |
+------------+-----------------+
The first record with a zero count appears, but the later record with a zero count is ignored.
Am I doing something wrong, or do I just not understand what LEFT JOIN is supposed to do?
| 0 | [
2,
51,
18,
22402,
225,
1865,
5407,
52,
20764,
65,
14,
225,
270,
742,
60,
800,
3726,
3726,
31,
22,
79,
1017,
4210,
1736,
37,
21,
51,
18,
22402,
5407,
25597,
4838,
21,
225,
1865,
15,
17,
31,
92,
22,
38,
1369,
1472,
51,
3260,
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... |
Source Code Analysis - what do you do?
===
Situation: I have some source code, and I'm boning up on what happens. Who calls what, what goes where, etc, etc. (There is minimal documentation/comments, so I have to work it out myself).
Now, my usual solution is to fire up a splitscreen text editor and stare at the code until I understand it, or maybe print it and write all over it with colored pens.
This is a horribly slow and inefficient way to go about it, I think.
What do you do/what tools do you use in these situations? | 0 | [
2,
1267,
1797,
2495,
13,
8,
98,
107,
42,
107,
60,
800,
3726,
3726,
1858,
45,
31,
57,
109,
1267,
1797,
15,
17,
31,
22,
79,
5248,
68,
71,
27,
98,
5531,
9,
72,
3029,
98,
15,
98,
1852,
113,
15,
2722,
15,
2722,
9,
13,
5,
1887,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Oracle database allows invalid time portion of datetime column values under what circumstances?
===
This case arises in a real-life situation where invalid data was in (and continuing to come into) an Oracle database which is extracted into a data processing system in Focus. Focus would choke and die on some rows with invalid time portions. The Oracle DBA would then go and copy the datetime into the affected column from a good column to allow the process to continue (yeah, I know).
I assisted troubleshooting the problem and found that in Oracle on an affected row:
DUMP(START_TIME)
gives:
'Typ=12 Len=7: 100,99,255,255,0,0,0'
While:
TO_CHAR(START_TIME, 'YYYY/MM/DD HH24:MI:SS')
gives:
ORA-01801: date format is too long for internal buffer
Looking at the `DUMP()` results, `'Typ=12 Len=7: 100,99,255,255,0,0,0'`, and the [storage conventions][1], it appears that they are able to bypass the column's semantic limits and insert the equivalent of 0, -1, -1, -1, -1, -1, -1 or `0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF`
Which makes "sense", since `0xFF = 255 = -1` might potentially result in `0000/255/255 255:255:255` depending on how you interpret the bytes, signs and overflows.
Under what conditions (connection mechanism, etc) does Oracle allow invalid data to come into datetime columns?
[1]: http://www.psoug.org/reference/datatypes.html | 0 | [
2,
15759,
6018,
2965,
16671,
85,
2980,
16,
1231,
891,
4698,
4070,
131,
98,
5072,
60,
800,
3726,
3726,
48,
610,
21461,
19,
21,
683,
8,
4102,
1858,
113,
16671,
1054,
23,
19,
13,
5,
290,
4489,
20,
340,
77,
6,
40,
15759,
6018,
56,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Flex: Call function from included component
===
This is similar to my previous posting. But this time I want to call a function that exists on the main mxml page.
This is my main mxml page:
main.mxml
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*">
<mx:Script>
<![CDATA[
public function changeText(currentText:String):void{
switch (currentText){
case "changeText":
lblOne.text = "More Text";
}
}
]]>
</mx:Script>
<mx:HBox x="137.5" y="10" width="100%" height="100%">
<ns1:menu id="buttons"> </ns1:menu>
</mx:HBox>
<mx:Canvas x="137" y="88" width="408.5" height="200">
<mx:HBox x="0" y="10" width="388.5" height="190">
<mx:Panel width="388" height="179" layout="absolute">
<mx:Label x="10" y="10" text="Some Text" visible="{buttons.showLabel}" id="lblOne"/>
</mx:Panel>
</mx:HBox>
</mx:Canvas>
</mx:Application>
Here is my included page:
menu.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
<mx:Script>
<![CDATA[
[Bindable] public var showLabel:Boolean = true;
]]>
</mx:Script>
<mx:MenuBar width="380" height="58"></mx:MenuBar>
<mx:Button x="10" y="10" width="80" label="Show" id="btnOne" click="this.showLabel=true;" />
<mx:Button x="94" y="10" width="80" label="Hide" id="btnTwo" click="this.showLabel=false;"/>
<mx:Button x="181" y="10" width="80" label="Run Function" id="btnThree" click="{changeText('changeText')}"/>
</mx:Canvas>
How do I call the changeText function from the button on menu.mxml? | 0 | [
2,
14409,
45,
645,
1990,
37,
506,
5912,
800,
3726,
3726,
48,
25,
835,
20,
51,
1158,
15669,
9,
47,
48,
85,
31,
259,
20,
645,
21,
1990,
30,
5636,
27,
14,
407,
307,
396,
8184,
2478,
9,
48,
25,
51,
407,
307,
396,
8184,
2478,
45,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are the core elements to include in Support Documentation?
===
I have created an **application which needs 'hand-over'** to the support group in the next month.
The application is **fairly small** (2 months development), and consists of two client side applications and a database, it's written in c# for the windows platform.
**I have a broad idea** of what to include in a support document, but I haven't needed to make very many support documents so far in my career and I want a solid list of items to include.
I guess my **goal** is to make the **lives of everyone** in the support group **easier** and as stress free as possible.
**So I guess my questions are:**
1. What should a support document absolutely contain
2. What additional things have you put in support documents to make them extra useful.
3. What other activities can be done before hand-over to make all our lives easier? | 0 | [
2,
98,
50,
14,
2884,
2065,
20,
468,
19,
555,
13945,
60,
800,
3726,
3726,
31,
57,
679,
40,
13,
1409,
2552,
20669,
56,
2274,
13,
22,
3203,
8,
2549,
22,
1409,
20,
14,
555,
214,
19,
14,
328,
1617,
9,
14,
3010,
25,
13,
1409,
1048... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Transform a String to URL standard String in Java
===
I have a String such as:
Cerepedia, una apliación web
I would like to transform it into something URL valid such as:
Cerepedia,unaaplicacionweb
**Note:** the special character transformation and spaces removal.
By the way, are commas allowed in URLs?
| 0 | [
2,
8007,
21,
3724,
20,
287,
6362,
1236,
3724,
19,
8247,
800,
3726,
3726,
31,
57,
21,
3724,
145,
28,
45,
13,
14660,
26132,
15,
13,
4140,
21,
15540,
13911,
2741,
31,
83,
101,
20,
8007,
32,
77,
301,
287,
6362,
7394,
145,
28,
45,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Regular Expression Uppercase Replacement in C#
===
I have the following C# which simply replaces parts of the input string that look like EQUIP:19d005 into URLs, like this:
input = Regex.Replace(input, @"(EQUIP:)(\S+)", @"<a title=""View equipment item $2"" href=""/EquipmentDisplay.asp?eqnum=$2"">$1$2</a>", RegexOptions.IgnoreCase);
The HTML ends up looking like this.
<a title="View equipment item 19d005" href="/EquipmentDisplay.asp?eqnum=19d005">EQUIP:19d005</a>
The only trouble is that the destination page expects the eqnum querystring to be all UPPERCASE so it returns the correct equipment when eqnum=19D005 but fails if it receives eqnum=19d005.
I guess I can modify and correct EquipmentDisplay.asp's errant requirement of uppercase values however, if possible I'd like to make the C# code comply with the existing classic ASP page by uppercasing the $2 in the Regex.Replace statement above.
Ideally, I'd like the HTML returned to look like this:
<a title="View equipment item 19d005" href="/EquipmentDisplay.asp?eqnum=19D005">EQUIP:19d005</a>
_Notice although the original string was EQUIP:19d005 (lowercase), only the eqnum= value is uppercased._
Can it be done and if so, what's the tidiest way to do it?
| 0 | [
2,
1290,
1803,
1508,
10325,
4610,
19,
272,
5910,
800,
3726,
3726,
31,
57,
14,
249,
272,
5910,
56,
1659,
3934,
18,
1341,
16,
14,
6367,
3724,
30,
361,
101,
24270,
45,
1433,
43,
2032,
264,
77,
13,
911,
7532,
15,
101,
48,
45,
6367,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Cocoa Bad Habits
===
What are those bad habits you've developed since you've started coding in Cocoa?
I think making a list of bad habits and actively adding to it and, more importantly, breaking those habits is a good technique to produce your code quality. So start now, get your bad habits off your chest. Maybe other people share your bad habits.
| 0 | [
2,
24507,
896,
16760,
800,
3726,
3726,
98,
50,
273,
896,
16760,
42,
22,
195,
885,
179,
42,
22,
195,
373,
13,
15458,
19,
24507,
60,
31,
277,
544,
21,
968,
16,
896,
16760,
17,
8754,
4721,
20,
32,
17,
15,
91,
16922,
15,
3892,
273... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
dynamically create and load table from select query
===
SELECT MEM_ID, [C1],[C2] from
(
select MEM_ID, Condition_id, condition_result
from tbl_GConditionResult
) x
pivot
(
sum(condition_result)
for condition_id in ([C1],[C2])
) p
--------------------------------------
The above query returns three columns of data. Untill runtime I will not know how many columns in the select statement. Is it possible to load the data from the select statement into a dynamically created table? After processing the data from the dynamically created table I want to drop the table.
Thank you for your help.
Smith
| 0 | [
2,
7782,
1326,
1600,
17,
6305,
859,
37,
5407,
25597,
800,
3726,
3726,
5407,
55,
79,
1,
1340,
15,
636,
150,
165,
500,
15,
2558,
150,
135,
500,
37,
13,
5,
5407,
55,
79,
1,
1340,
15,
2874,
1,
1340,
15,
2874,
1,
29955,
37,
13,
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... |
Silverlight file upload/population concurrency issue
===
I'm trying to create a multi-file upload control. Technically it works, but it seems like the webclient is still working on uploading items. When my service tries to repopulate the listbox with the list of files, it doesn't get the complete list. But when I reload the page it displays them no problem. (Probably the same reason why my progress bar wasn't functioning either...) I'm having a hard time finding/understanding info dealing with similar situations. I'm basically ignorant to threading to boot. Thanks.
public partial class MainPage : UserControl
{
int _filecount = 0;
public MainPage()
{
InitializeComponent();
GenerateData();
}
private void btnUpload_Click(object sender, RoutedEventArgs e)
{
List<string> l = new List<string>();
OpenFileDialog ofd = new OpenFileDialog() { Multiselect = true };
btnUpload.Visibility = Visibility.Collapsed;
progbar.Visibility = Visibility.Visible;
progbar.IsIndeterminate = true;
if ((bool)ofd.ShowDialog()) // If a file is selected, add to list and skip duplicates
foreach (FileInfo fi in ofd.Files)
{
try { UploadFile(fi.Name, fi.OpenRead()); }
catch { /* Error */ }
finally { _filecount++; }
}
progbar.IsIndeterminate = false;
progbar.Maximum = _filecount;
GenerateData();
}
private void UploadFile(string FileName, Stream Data)
{
Uri[] u = {Application.Current.Host.Source};
string ubs = Application.Current.Host.Source.OriginalString.Replace(Application.Current.Host.Source.LocalPath, "/MultiSelectFileUploaderHandler.ashx");
UriBuilder ub = new UriBuilder(ubs);
ub.Query = "filename=" + FileName;
WebClient wc = new WebClient();
wc.OpenWriteCompleted += (sender, e) =>
{
int bytesRead;
byte[] buffer = new byte[4096];
while ((bytesRead = Data.Read(buffer, 0, buffer.Length)) != 0)
{
e.Result.Write(buffer, 0, bytesRead);
}
e.Result.Close();
Data.Flush();
Data.Close();
};
wc.OpenWriteAsync(ub.Uri);
}
private void GenerateData()
{
FileServiceSoapClient soap = new FileServiceSoapClient();
soap.GetFilesCompleted += (sender, args) =>
{
lbFiles.ItemsSource = null;
lbFiles.ItemsSource = args.Result.ToList();
_filecount = lbFiles.Items.Count;
btnUpload.Visibility = Visibility.Visible;
progbar.Visibility = Visibility.Collapsed;
};
soap.GetFilesAsync();
}
public void Test() { string x = "asdf"; }
} | 0 | [
2,
1172,
3130,
3893,
71,
8294,
118,
22000,
25547,
1513,
800,
3726,
3726,
31,
22,
79,
749,
20,
1600,
21,
1889,
8,
16877,
71,
8294,
569,
9,
12345,
32,
693,
15,
47,
32,
2206,
101,
14,
2741,
150,
18513,
38,
25,
174,
638,
27,
71,
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... |
Porting 2d tile based iPhone game to Android.
===
Are there any good 2d tile based game engines for android I should look into before just jumping right into canvas painting for this game?
| 0 | [
2,
1295,
68,
172,
43,
13,
9802,
432,
21024,
250,
20,
13005,
9,
800,
3726,
3726,
50,
80,
186,
254,
172,
43,
13,
9802,
432,
250,
4016,
26,
13005,
31,
378,
361,
77,
115,
114,
8759,
193,
77,
9696,
2469,
26,
48,
250,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Is it considered poor programming to do this with xna components?
===
So I created my own Menu System that is event driven.
In order to have a loading screen and multithreaded loading to work, I devised this sort of implementation:
#region Loading Screen Stuff
if (_game != null) //Let's check if the game is done loading.
{
_gameLoaded = _game.DoneLoading;
}
if (!_gameLoaded && _gameActive) //This means the game is loading still, therefore the loading screen should be active.
{
_gameScreenList[2].UpdateMenu();
}
if (_gameScreenList[2].CurrentState == GameScreen.State.Shown && !_gameActive) //The loading screen was selected.
{
Components.Add(_game = new ParadoxGame(this));
_game.Initialize(); //Initializes the Game so that the loading can begin.
_gameActive = true;
}
#endregion
And in the XNA Game Component that contains the actual game, in the LoadContent method I simply created a new Thread that calls another method(ThreadLoad) that has all the actual loading.
I also have a boolean variable called Done Loading in the XNA Game Component that is set to true at the end of the ThreadLoad.
I am wondering if this is a poor implementation.
Thank you,
Robert Gawdzik | 2 | [
2,
25,
32,
724,
1696,
3143,
20,
107,
48,
29,
993,
325,
5090,
60,
800,
3726,
3726,
86,
31,
679,
51,
258,
11379,
329,
30,
25,
807,
5355,
9,
19,
389,
20,
57,
21,
12797,
2324,
17,
1889,
96,
10647,
69,
12797,
20,
170,
15,
31,
171... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Link several URLS from one table to a single record in another table?
===
Okay I have two mysql tables, one which hold details on films ie title description etc. I have a column in this table named awards, now I need to be able to attach or link several images to a single record within this column.
I have a separate table which holds links to the urls of the png's of the Awards, but I'm unsure how to link them.
Now part two is to then display this information on a page with each url separate and in its own div, I'm guessing that explode() could work to split.
I know that it is a One to Many Relationship but I couldn't find anything that would do the job.
If anyone could shed some light on this I would be very grateful. | 0 | [
2,
3508,
238,
13,
911,
7532,
37,
53,
859,
20,
21,
345,
571,
19,
226,
859,
60,
800,
3726,
3726,
1705,
31,
57,
81,
51,
18,
22402,
7484,
15,
53,
56,
1027,
3289,
27,
1491,
13,
660,
581,
5318,
2722,
9,
31,
57,
21,
4698,
19,
48,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to manage Django reusable app templates that extend common base templates?
===
I have a project with some components that should probably be separated out into reusable apps. However, all of the templates extend a couple of base templates for the entire site. Should I include copies of the base template in each app's template directory? What is the best way to structure template directories/inheritance? | 0 | [
2,
184,
20,
4705,
3857,
14541,
302,
267,
579,
4865,
22894,
18,
30,
7206,
757,
1000,
22894,
18,
60,
800,
3726,
3726,
31,
57,
21,
669,
29,
109,
5090,
30,
378,
910,
44,
4196,
70,
77,
302,
267,
579,
4865,
18,
9,
207,
15,
65,
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... |
Returning values from a OpenGL ES 2.0 shader
===
Is it possible to get any values out of a OpenGL ES 2.0 shader? I'd like to use the gpu to do some processing (not 3D). The only thing I could think of is to render to the canvas and then to use readPixels to get the colors (preferably in a large 2d array). | 0 | [
2,
2485,
4070,
37,
21,
368,
8430,
13,
160,
172,
9,
387,
7546,
139,
800,
3726,
3726,
25,
32,
938,
20,
164,
186,
4070,
70,
16,
21,
368,
8430,
13,
160,
172,
9,
387,
7546,
139,
60,
31,
22,
43,
101,
20,
275,
14,
489,
4201,
20,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
apk file size increased from 175k to 1711k with minor change -- what's with that?
===
With the fantastic help of Tim on this thread http://stackoverflow.com/questions/11596697/controlling-android-app-with-bluetooth-mouse-presenter I added bluetooth remote control of my application. After finishing this, I noticed my apk file went from 175k all the way to 1711k - 10 times larger! I have implemented the bluetooth changes on a test application without seeing any change in file size so I am not sure what caused this. I did have some kind of Eclipse problem in the middle of this and had to do a rebuild to get the source to run again so maybe that had something to do with it.
Searching for file size change here and on Google gives me questions of people who want to make larger files to hold more stuff, not my question. I can't seem to find relevant answers.
The application has no graphics, pdf's, or other files of any size at all. It just reads some GPS stuff, does some math, and displays the results as text.
Is there some way to get the file size back down? Is there an Eclipse option? This is my first real (non test) application and it is finished and working but I am concerned with the file size increase. | 0 | [
2,
21,
17244,
3893,
1072,
1644,
37,
10751,
197,
20,
369,
1306,
197,
29,
1689,
753,
13,
8,
8,
98,
22,
18,
29,
30,
60,
800,
3726,
3726,
29,
14,
10356,
448,
16,
2574,
27,
48,
9322,
7775,
6903,
25325,
2549,
9990,
9,
960,
118,
2465... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
rails - link_to_remote versus render
===
Is it possible to reload a page that was loaded thru link_to_remote? I'm doing this in my controller: <br>
def create
if captchas_verified
do_something
else
render :action=>'new'
end
But when the captchas is wrong, it do not render a form that is inside of the new template. By the way, in the webserver log, it shows that the templades was rendered.
Thanks!
| 0 | [
2,
2240,
18,
13,
8,
3508,
1,
262,
1,
99,
20209,
5706,
16535,
800,
3726,
3726,
25,
32,
938,
20,
27339,
21,
2478,
30,
23,
8572,
19637,
3508,
1,
262,
1,
99,
20209,
60,
31,
22,
79,
845,
48,
19,
51,
9919,
45,
13,
1,
5145,
1,
63... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Random string that matches a regexp
===
How would you go about creating a random alpha-numeric string that matches a certain regular expression?
This is specifically for creating initial passwords that fulfill regular password requirements. | 0 | [
2,
5477,
3724,
30,
1717,
21,
7953,
6899,
800,
3726,
3726,
184,
83,
42,
162,
88,
2936,
21,
5477,
5705,
8,
6336,
14744,
3724,
30,
1717,
21,
1200,
1290,
1803,
60,
48,
25,
3524,
26,
2936,
2104,
20884,
18,
30,
14313,
1290,
20884,
4786,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do you refactor?
===
I was wondering how other developers begin refactoring. What is your first step? How this process (refactoring) differ if you refactor code which is not yours? Do you write tests while refactoring? | 0 | [
2,
184,
107,
42,
302,
17455,
60,
800,
3726,
3726,
31,
23,
5712,
184,
89,
10168,
2348,
302,
17455,
68,
9,
98,
25,
154,
64,
1424,
60,
184,
48,
953,
13,
5,
99,
17455,
68,
6,
11394,
100,
42,
302,
17455,
1797,
56,
25,
52,
154,
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,
0,
0,
0,
0,
0,
0... |
Rounded Corners on UIImage
===
I'm trying to draw images on the iPhone using with rounded corners, a la the contact images in the Contacts app. I've got code that generally work, but it occasionally crashes inside of the UIImage drawing routines with an `EXEC_BAD_ACCESS` - `KERN_INVALID_ADDRESS`. I thought this might be related to the [cropping question][cropping] I asked a few weeks back, but I believe I'm setting up the clipping path correctly.
[cropping]: http://stackoverflow.com/questions/158914/cropping-a-uiimage
Here's the code I'm using - when it doesn't crash, the result looks fine and anybody looking to get a similar look is free to borrow the code.
- (UIImage *)borderedImageWithRect: (CGRect)dstRect radius:(CGFloat)radius {
UIImage *maskedImage = nil;
radius = MIN(radius, .5 * MIN(CGRectGetWidth(dstRect), CGRectGetHeight(dstRect)));
CGRect interiorRect = CGRectInset(dstRect, radius, radius);
UIGraphicsBeginImageContext(dstRect.size);
CGContextRef maskedContextRef = UIGraphicsGetCurrentContext();
CGContextSaveGState(maskedContextRef);
CGMutablePathRef borderPath = CGPathCreateMutable();
CGPathAddArc(borderPath, NULL, CGRectGetMinX(interiorRect), CGRectGetMinY(interiorRect), radius, PNDegreeToRadian(180), PNDegreeToRadian(270), NO);
CGPathAddArc(borderPath, NULL, CGRectGetMaxX(interiorRect), CGRectGetMinY(interiorRect), radius, PNDegreeToRadian(270.0), PNDegreeToRadian(360.0), NO);
CGPathAddArc(borderPath, NULL, CGRectGetMaxX(interiorRect), CGRectGetMaxY(interiorRect), radius, PNDegreeToRadian(0.0), PNDegreeToRadian(90.0), NO);
CGPathAddArc(borderPath, NULL, CGRectGetMinX(interiorRect), CGRectGetMaxY(interiorRect), radius, PNDegreeToRadian(90.0), PNDegreeToRadian(180.0), NO);
CGContextBeginPath(maskedContextRef);
CGContextAddPath(maskedContextRef, borderPath);
CGContextClosePath(maskedContextRef);
CGContextClip(maskedContextRef);
[self drawInRect: dstRect];
maskedImage = UIGraphicsGetImageFromCurrentImageContext();
CGContextRestoreGState(maskedContextRef);
UIGraphicsEndImageContext();
return maskedImage;
}
and here's the crash log. It looks the same whenever I get one of these crashes
<pre>
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x6e2e6181
Crashed Thread: 0
Thread 0 Crashed:
0 com.apple.CoreGraphics 0x30fe56d8 CGGStateGetRenderingIntent + 4
1 libRIP.A.dylib 0x33c4a7d8 ripc_RenderImage + 104
2 libRIP.A.dylib 0x33c51868 ripc_DrawImage + 3860
3 com.apple.CoreGraphics 0x30fecad4 CGContextDelegateDrawImage + 80
4 com.apple.CoreGraphics 0x30feca40 CGContextDrawImage + 368
5 UIKit 0x30a6a708 -[UIImage drawInRect:blendMode:alpha:] + 1460
6 UIKit 0x30a66904 -[UIImage drawInRect:] + 72
7 MyApp 0x0003f8a8 -[UIImage(PNAdditions) borderedImageWithRect:radius:] (UIImage+PNAdditions.m:187)
</pre>
| 0 | [
2,
8472,
8894,
27,
13,
5661,
22039,
800,
3726,
3726,
31,
22,
79,
749,
20,
2003,
3502,
27,
14,
21024,
568,
29,
8472,
8894,
15,
21,
333,
14,
2203,
3502,
19,
14,
11894,
4865,
9,
31,
22,
195,
330,
1797,
30,
1469,
170,
15,
47,
32,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
NHibernate: uninitialized proxy passed to save() and cascade
===
I keep getting an NHibernate.PersistentObjectException when calling session.Save() which is due to an uninitialized proxy passed to save(). If I fiddle with my cascade settings I can make it go away, but then child objects aren't being saved.
The only other fix I have found is by adding the following to my DefaultSaveEventListener.
protected override bool ReassociateIfUninitializedProxy(object obj, global::NHibernate.Engine.ISessionImplementor source)
{
if (!NHibernateUtil.IsInitialized(obj))
NHibernateUtil.Initialize(obj);
return base.ReassociateIfUninitializedProxy(obj, source);
}
This is obviously not an ideal solution.
Any ideas?
| 0 | [
2,
12109,
15191,
8820,
45,
367,
27313,
1333,
27188,
1100,
20,
2079,
5,
6,
17,
13542,
800,
3726,
3726,
31,
643,
1017,
40,
12109,
15191,
8820,
9,
7490,
702,
2291,
23793,
10066,
872,
76,
2555,
3723,
9,
19863,
5,
6,
56,
25,
397,
20,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
DOS batch files: How to write to the prompt and stay in the same line to input text.
===
I like to know if there is a way to read the user input inside a batch file, because i have a file named: "fif.bat" that recives two parameters (just call them ***paramA*** and ***paramB***) so i execute the file like this:
fif paramA paramB
I have to change paramA every month, but i call this file lot of times so i like to open a console and have printed this:
fif paramA
So i only have to write paramB and change paramA when i want it.
PD: paramA is very large so it's very helpful if i can have it there instead of writing every time. And i don't want to make another batch file to call fif whit paramA.
| 0 | [
2,
107,
18,
13064,
6488,
45,
184,
20,
2757,
20,
14,
11443,
4417,
17,
1179,
19,
14,
205,
293,
20,
6367,
1854,
9,
800,
3726,
3726,
31,
101,
20,
143,
100,
80,
25,
21,
161,
20,
1302,
14,
4155,
6367,
572,
21,
13064,
3893,
15,
185,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Testing IP based geolocation
===
We are implementing an IP based geolocation service, and we need to find some IP's from various markets (LA, NY etc) to fully test the service.
Does anybody know of a directory where we could find what IP ranges are used where?
| 2 | [
2,
4431,
15735,
432,
6389,
19032,
800,
3726,
3726,
95,
50,
17333,
40,
15735,
432,
6389,
19032,
365,
15,
17,
95,
376,
20,
477,
109,
15735,
22,
18,
37,
617,
5406,
13,
5,
531,
15,
3071,
2722,
6,
20,
2337,
1289,
14,
365,
9,
630,
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,
0,
0... |
Validate field in model with no table (CakePHP)
===
I've got a model in CakePHP that doesn't have a table, called Upload. I've got a validation in this Model for a field called source_id.
I've got a form that builds a nice looking $this-data, giving me a well formated set, including:
$this->data['Upload']['source_id']
However, the validation rule I have set doesn't seem to run at all. I copied this validation rule from another model where it does work, so I'm confident that it works:
var $validate = array(
'source_id' => array(
rule' => 'numeric',
'required' => true,
'allowEmpty' => false,
'message' => 'Error!.'
)
);
Can you not validate fields for a model that lacks a database table?
The form uses the Upload model, and submits to another controller action method.
CakePHP 1.2, PHP/MySQL 5, XAMPP. | 0 | [
2,
7394,
1373,
575,
19,
1061,
29,
90,
859,
13,
5,
17568,
26120,
6,
800,
3726,
3726,
31,
22,
195,
330,
21,
1061,
19,
8390,
26120,
30,
1437,
22,
38,
57,
21,
859,
15,
227,
71,
8294,
9,
31,
22,
195,
330,
21,
27999,
19,
48,
1061,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Named blocks to limit variable scope: good idea?
===
For years, I've been using named blocks to limit the scope of temporary variables. I've never seen this done anywhere else, which makes me wonder if this is a bad idea. Especially since the Eclipse IDE flags these as warnings by default.
Example (within a larger method):
final Date nextTuesday;
initNextTuesday: {
GregorianCalendar cal = new GregorianCalendar();
... // About 5-10 lines of setting the calendar fields
nextTuesday = cal.getTime();
}
Here I'm using a GregorianCalendar just to initialize a date, and I want to make sure that I don't accidentally reuse it.
Advantages of using the named scope:
1. Can't accidentally reuse temporary variables
2. Limited scope gives garbage collector and JIT compiler more information about programmer intent
3. Block name provides a comment on a block of code, which I find more readable than open-ended comments
4. Makes it easier to refactor code out of a big method into little methods, or vice versa, since the named block is easier to separate than unstructured code.
Disadvantages of named scope:
1. Programmers who haven't seen this use of named blocks (i.e. everyone but me) assume it's buggy, since they can't find references to the block name. (Just like Eclipse does.)
2. It's harder to read code that has really deep nests of blocks, and this adds one more unnecessary layer.
Any more disadvantages? | 0 | [
2,
377,
5198,
20,
4496,
7612,
9914,
45,
254,
882,
60,
800,
3726,
3726,
26,
122,
15,
31,
22,
195,
74,
568,
377,
5198,
20,
4496,
14,
9914,
16,
4700,
12157,
9,
31,
22,
195,
243,
541,
48,
677,
4922,
962,
15,
56,
1364,
55,
2666,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 encrypt a value on the client and pass it through a web server without decrypting it
===
Hey everyone, I am researching a project where we would need to keep a value encrypted from the client all the way to a black box system without decrypting it at any point in between. We are using SSL between the browser and web server, but the values are automatically decrypted at the web server, which is what we need to keep from happening. We need to be able to pass it through the web server (still encrypted) and through other back end systems until it hits its final destination where it would be decrypted.
So my question is what options are available to us for maintaining an encrypted state for a value from the browser back, without decrypting it anywhere along the way?
Thanks
Mark | 0 | [
2,
184,
20,
1957,
11435,
21,
1923,
27,
14,
6819,
17,
1477,
32,
120,
21,
2741,
8128,
366,
121,
11435,
68,
32,
800,
3726,
3726,
8409,
1266,
15,
31,
589,
527,
68,
21,
669,
113,
95,
83,
376,
20,
643,
21,
1923,
29403,
37,
14,
6819,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
robocopy, jungledisk file copy problems.
===
I'm a huge fan of robocopy and use it extensively to copy between various servers I need to update.
Lately I've been archiving to an Amazon S3 account that I access via a mapped drive using JungleDisk. I then robocopy my files from local PC to S3.
Sometimes I get a very strange 'Incorrect function' error message in robocopy and the file fails to copy. I've tried xcopy and straightforward copy and paste between file explorer windows. In each case I get some variation of the 'Incorrect function' or 'Illegal MS-DOS function' and the file will never copy.
I delete the target but to no avail.
Any ideas?
| 0 | [
2,
3830,
111,
19625,
15,
8262,
2906,
197,
3893,
4344,
1716,
9,
800,
3726,
3726,
31,
22,
79,
21,
2329,
2514,
16,
3830,
111,
19625,
17,
275,
32,
7802,
20,
4344,
128,
617,
17595,
31,
376,
20,
11100,
9,
10434,
31,
22,
195,
74,
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... |
openGL SubTexturing
===
I have image data and i want to get a sub image of that to use as an opengl texture.
glGenTextures(1, &m_name);
glGetIntegerv(GL_TEXTURE_BINDING_2D, &oldName);
glBindTexture(GL_TEXTURE_2D, m_name);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, m_width, m_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, m_data);
How can i get a sub image of that image loaded as a texture. I think it has something to do with using glTexSubImage2D, but i have no clue how to use it to create a new texture that i can load. Calling:
glTexSubImage2D(GL_TEXTURE_2D, 0, xOffset, yOffset, xWidth, yHeight, GL_RGBA, GL_UNSIGNED_BYTE, m_data);
doe nothing that i can see, and calling glCopyTexSubImage2D just takes part of my framebuffer.
Thanks | 0 | [
2,
368,
8430,
972,
11969,
10450,
800,
3726,
3726,
31,
57,
1961,
1054,
17,
31,
259,
20,
164,
21,
972,
1961,
16,
30,
20,
275,
28,
40,
368,
8430,
12714,
9,
13,
8430,
7685,
1706,
6418,
18,
5,
165,
15,
279,
79,
1,
7259,
6,
73,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I create a stored procedure that will optionally search columns?
===
I'm working on an application for work that is going to query our employee database. The end users want the ability to search based on the standard name/department criteria, but they also want the flexibility to query for all people with the first name of "James" that works in the Health Department. The one thing I want to avoid is to simply have the stored procedure take a list of parameters and generate a SQL statement to execute, since that would open doors to SQL injection at an internal level.
Can this be done? | 0 | [
2,
184,
107,
31,
1600,
21,
8214,
7004,
30,
129,
12832,
102,
2122,
7498,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
40,
3010,
26,
170,
30,
25,
228,
20,
25597,
318,
7362,
6018,
9,
14,
241,
3878,
259,
14,
2165,
20,
2122,
432,
27,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
how to use google feed api to detect feeds updates
===
Because I run a blog aggregator website which checks a large list of RSS feeds for new posts every hour so I will be happy if its possible to use google feed api or [Google AJAX Feed API][1] instead of making the cron jobs to read the whole feed to know if its updated or not.
like this [link text][2]
[1]: http://code.google.com/apis/ajaxfeeds/
[2]: http://getsatisfaction.com/rososo/topics/updates_dont_seem_to_be_dated_right | 0 | [
2,
184,
20,
275,
8144,
4063,
21,
2159,
20,
9092,
17058,
16779,
800,
3726,
3726,
185,
31,
485,
21,
8146,
24755,
2271,
56,
16602,
21,
370,
968,
16,
13,
1224,
18,
17058,
26,
78,
9868,
352,
1671,
86,
31,
129,
44,
1700,
100,
82,
938,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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/C++: Passing variable number of arguments around
===
Say I have a C function which takes a variable number of arguments: How can I call another function which expects a variable number of arguments from inside of it, passing all the arguments that got into the first function?
Example:
void format_string(char *fmt, ...);
void debug_print(int dbg_lvl, char *fmt, ...) {
format_string(fmt, /* how do I pass all the arguments from '...'? */);
fprintf(stdout, fmt);
}
| 0 | [
2,
272,
118,
150,
20512,
45,
2848,
7612,
234,
16,
10553,
140,
800,
3726,
3726,
395,
31,
57,
21,
272,
1990,
56,
1384,
21,
7612,
234,
16,
10553,
45,
184,
92,
31,
645,
226,
1990,
56,
4186,
18,
21,
7612,
234,
16,
10553,
37,
572,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
XML authoring/cms tool
===
I am trying to find a good open source XML authoring tool so the work flow between the client and the developers will be a bit more streamlined.
We are basically developing a lot of XML driven micro websites for various clients and products. And often the clients want to have a little content change here and there. Sometimes just to change an capital letter or very unspecific stuff. So they end up sending us an email with a word document containing their updates. And then we lose some time again to publish those updates. It's not a lot of effort, but it still has to be made.
We were wondering, before making it ourselves, if there is a simple XML authoring/cms system out there. Where the developer could simply pick the editable fields/nodes and turn it to a simple but straightforward CMS for the client. | 0 | [
2,
23504,
1314,
68,
118,
9095,
18,
5607,
800,
3726,
3726,
31,
589,
749,
20,
477,
21,
254,
368,
1267,
23504,
1314,
68,
5607,
86,
14,
170,
3312,
128,
14,
6819,
17,
14,
10168,
129,
44,
21,
1142,
91,
29274,
9,
95,
50,
11374,
3561,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 for ENORMOUS amounts of data?
===
Here, my boss, is asking me and the people at the office which DataBase engine could be the best for a very very huge ammount of data. We have been disussing a while in the office and no conclusion came... But as I think that this is a pretty interesting question for discussing | 4 | [
2,
6018,
26,
7135,
8545,
16,
1054,
60,
800,
3726,
3726,
235,
15,
51,
4054,
15,
25,
3379,
55,
17,
14,
148,
35,
14,
488,
56,
6018,
1406,
110,
44,
14,
246,
26,
21,
253,
253,
2329,
589,
9780,
16,
1054,
9,
95,
57,
74,
1460,
267,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why does a deleted file reappear in Vista?
===
I have an automated test running on my program that generates some large MPG files along with other files. After running the test, I have the script clean up after itself. The other files (a mix of binary and text files) are removed with no problems. The MPG files, however, don't get deleted. If I try and manually delete the MPG files from explorer after the test has run, they are removed from the explorer window only to reappear a few seconds later. Process explorer shows that they are being used by explorer.exe. Eventually, I am able to remove these files. Any idea why this is happening? | 0 | [
2,
483,
630,
21,
19584,
3893,
23654,
19,
13520,
60,
800,
3726,
3726,
31,
57,
40,
14904,
1289,
946,
27,
51,
625,
30,
7920,
18,
109,
370,
4628,
263,
6488,
303,
29,
89,
6488,
9,
75,
946,
14,
1289,
15,
31,
57,
14,
3884,
2745,
71,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
XML From a Web Service Call
===
Visual Studio makes calling a web service easy, trying to figure out what is going on under the covers is difficult.
How can I see the actual XML generated from my .Net app when making a call to a web service? | 0 | [
2,
23504,
37,
21,
2741,
365,
645,
800,
3726,
3726,
3458,
1120,
1364,
2555,
21,
2741,
365,
2010,
15,
749,
20,
1465,
70,
98,
25,
228,
27,
131,
14,
2937,
25,
1956,
9,
184,
92,
31,
196,
14,
3463,
23504,
6756,
37,
51,
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,
0,
0,
0,
0,
0,
0,
0... |
The most sophisticated way for creating comma-separated Strings from a Collection/Array/List?
===
During my work with databases i noticed that i write query strings and in this strings i have to put several restrictions in the where-clause from a list/array/collection. Should looks like this:
select * from customer
where
customer.id = 34 AND
customer.id = 26 AND
...
...
customer.id = 2;
You can simplify this by reducing this to the question that you have collection of strings and want to create a comma-separated list of this strings in just one string.
My approach i have used so far is something like that:
String result = "";
boolean first = true;
for(String string : collectionOfStrings) {
if(first) {
result+=string;
first=false;
} else {
result+=","+string;
}
}
But this is as you can see very ugly. You cannot see what happens there on the first look, especially when the constructed strings (like every SQL query) is getting complicated.
What is your (more) elegant way? | 0 | [
2,
14,
127,
13388,
161,
26,
2936,
11951,
58,
8,
18,
14189,
7432,
7887,
37,
21,
1206,
118,
8576,
93,
118,
5739,
60,
800,
3726,
3726,
112,
51,
170,
29,
6018,
18,
31,
2711,
30,
31,
2757,
25597,
7887,
17,
19,
48,
7887,
31,
57,
20,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you organise your ATG projects?
===
If you develop for ATG Dynamo, how do you structure your modules and dependencies?
How do you structure the projects? source directories, JARs configs etc.
How do you build and deploy? What tools do you use?
| 0 | [
2,
184,
107,
42,
20119,
154,
35,
263,
2314,
60,
800,
3726,
3726,
100,
42,
2803,
26,
35,
263,
18120,
15,
184,
107,
42,
1411,
154,
17113,
17,
29411,
60,
184,
107,
42,
1411,
14,
2314,
60,
1267,
559,
1596,
15,
5112,
18,
13,
14093,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Have trivial properties ever saved your bacon?
===
There's a lot of advice out there that you shouldn't expose your fields publically, and instead use trivial properties. I see it over & over.
I understand the arguments, but [I don't think it's good advice in most cases][1].
Does anyone have an example of a time when it really mattered? When writing a trivial property made something important possible in the future (or when failing to use one got them in to real trouble)?
[1]: http://stackoverflow.com/questions/174198/c35-automatic-properties-why-not-access-the-field-directly#205567 | 0 | [
2,
57,
13,
19712,
3704,
462,
4377,
154,
12376,
60,
800,
3726,
3726,
80,
22,
18,
21,
865,
16,
4978,
70,
80,
30,
42,
5714,
22,
38,
13833,
154,
2861,
317,
1326,
15,
17,
700,
275,
13,
19712,
3704,
9,
31,
196,
32,
84,
279,
84,
9,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Java: At runtime, find all classes in app that extend a base class
===
I want to do something like this:
List<Animal> animals = new ArrayList<Animal>();
for( Class c: list_of_all_classes_in_my_application_universe() )
if (c is Anamal)
animals.add( new c() );
So, I want to look at all of the classes in my application's universe and when I find one that descends from Animal, I want to create a new object of that type and add it to the list. This allows me to add functionality without having to update a list of things. I can avoid the following:
List<Animal> animals = new ArrayList<Animal>();
animals.add( new Dog() );
animals.add( new Cat() );
animals.add( new Donkey() );
...
With the above approach, I can simply create a new class that extends Animal and it'll get picked up automatically.
| 0 | [
2,
8247,
45,
35,
485,
891,
15,
477,
65,
2684,
19,
4865,
30,
7206,
21,
1000,
718,
800,
3726,
3726,
31,
259,
20,
107,
301,
101,
48,
45,
968,
1,
25480,
1,
2522,
800,
78,
7718,
5739,
1,
25480,
1,
5,
6,
73,
26,
5,
718,
272,
45,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does anyone have a link to Sun's name mangling patent?
===
I've seen a lot of mentions like [this one][1] that Sun has patented their name mangling scheme for C++.
It's certainly true that Sun's name mangling is much more efficient than the scheme used by IBM's xlC compiler, for example.
But I can't find the actual patent anywhere. Does anyone have the patent #, or a link to the patent?
Thanks!
[1]: http://wikis.sun.com/display/SunStudio/Using+Sun+compilers+with+gdb | 0 | [
2,
630,
1276,
57,
21,
3508,
20,
939,
22,
18,
204,
17200,
802,
6316,
60,
800,
3726,
3726,
31,
22,
195,
541,
21,
865,
16,
10292,
101,
636,
1565,
53,
500,
2558,
165,
500,
30,
939,
63,
18958,
66,
204,
17200,
802,
4276,
26,
272,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you use querystrings with ASP.NET routing?
===
The new ASP.NET routing is great for simple path style URL's but if you want to use a url such as:
http://example.com/items/search.xhtml?term=Text+to+find&page=2
Do you have to use a catch all parameter with a validation? | 0 | [
2,
184,
107,
42,
275,
25597,
11130,
18,
29,
28,
306,
9,
2328,
19880,
60,
800,
3726,
3726,
14,
78,
28,
306,
9,
2328,
19880,
25,
374,
26,
1935,
2013,
1034,
287,
6362,
22,
18,
47,
100,
42,
259,
20,
275,
21,
287,
6362,
145,
28,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sql server 2005 attach database broken
===
I need to reproduce a bug, and a guy from the other team has sent me a .mdf and .ldf files from his sql server 2005 instance. When I attach the database, all I get is empty tables, even though file is 2 mb large. The db contains 2 tables that have, among other thing, a varbinary(max) field. At the same time another database, which has no varbinaries in tables, is attached ok and data are in place. What could be possible reason why data became inaccessible? | 0 | [
2,
4444,
255,
8128,
812,
19514,
6018,
2023,
800,
3726,
3726,
31,
376,
20,
21509,
21,
6256,
15,
17,
21,
1244,
37,
14,
89,
173,
63,
795,
55,
21,
13,
9,
79,
8736,
17,
13,
9,
255,
8736,
6488,
37,
33,
4444,
255,
8128,
812,
4851,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 use Visual Studio's "Code Snippet" feature while editing a .aspx file?
===
I use Visual Studio's "Code Snippet" feature pretty heavily while editing c# code. I always wished I could use them while typing out my aspx markup.
Is there a way to enable code snippet use in an aspx file editor window?
Are there any third party tools that perform this?
If you're familiar with code snippet definitions, this is exactly the type of thing I want to do:
<asp:TextBox ID="$var$TextBox" Text="$text$" OnClick="$var$_Click" runat="server" />
*I could activate the snippet, tab twice, and move on!* | 0 | [
2,
184,
92,
31,
275,
3458,
1120,
22,
18,
13,
7,
9375,
13,
29061,
7,
1580,
133,
9510,
21,
13,
9,
472,
306,
396,
3893,
60,
800,
3726,
3726,
31,
275,
3458,
1120,
22,
18,
13,
7,
9375,
13,
29061,
7,
1580,
1772,
2991,
133,
9510,
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... |
Are all pages within an ASP.Net application ran in the same appdomain?
===
I understand that requests are served by different threads, but do they all come from the same appdomain, too? | 0 | [
2,
50,
65,
4434,
363,
40,
28,
306,
9,
2328,
3010,
717,
19,
14,
205,
4865,
537,
6232,
60,
800,
3726,
3726,
31,
1369,
30,
12279,
50,
423,
34,
421,
20396,
15,
47,
107,
59,
65,
340,
37,
14,
205,
4865,
537,
6232,
15,
266,
60,
3,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to change MySQL root password to default?
===
My initial installation for the MySQL had no password for root. I assigned a password for root and everything worked fine. Due to some reason (don't ask why) I had to revert back to the original settings where root didn't have any password.
I changed the root password to '' (empty string). The problem now is that MySQL doesn't run with 'mysql -uroot', it expects a password. On running 'mysql -uroot -p' and hitting enter on the password prompt gets me into the db, but is not same as the default setting.
Is there any other flag/setting that I am missing to set/unset which tells mysql to not expect a password?
Thanks | 0 | [
2,
184,
20,
753,
51,
18,
22402,
5900,
20884,
20,
12838,
60,
800,
3726,
3726,
51,
2104,
7758,
26,
14,
51,
18,
22402,
41,
90,
20884,
26,
5900,
9,
31,
2467,
21,
20884,
26,
5900,
17,
796,
577,
1123,
9,
397,
20,
109,
1215,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.