unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Best way to send data to aspx page in ASP.NET 2.0/3.5?
===
Which is Best way to send data to aspx page, and **why**?
- using query string
- using session
- using cross page postback
- Something else
Thanks.
| 0 | [
2,
246,
161,
20,
2660,
1054,
20,
28,
306,
396,
2478,
19,
28,
306,
9,
2328,
172,
9,
15928,
240,
9,
264,
60,
800,
3726,
3726,
56,
25,
246,
161,
20,
2660,
1054,
20,
28,
306,
396,
2478,
15,
17,
13,
1409,
2256,
1409,
60,
13,
8,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C# Default scope resolution
===
I have inherited a c# class 'Button' (which I can't change) which clashes with the BCL class 'Windows.Forms.Button'. Normally, Id be very happy to go:
MyPackage.MyClass.Button;
But there are a large number or references to this class which is a pain to have to re-type.
Is there any way to get the compiler (linker?) to default to using the customised version of Button over the BCL version? | 0 | [
2,
272,
5910,
12838,
9914,
4302,
800,
3726,
3726,
31,
57,
7179,
21,
272,
5910,
718,
13,
22,
811,
444,
22,
13,
5,
2140,
31,
92,
22,
38,
753,
6,
56,
20218,
29,
14,
2726,
255,
718,
13,
22,
27508,
18,
9,
4190,
18,
9,
811,
444,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Writing a language for the Windows Scripting Host (WSH)
===
Has anyone had any experience targetting `WSH` in the way that `VBScript`, `JScript`, `PerlScript`, `xbScript` and `ForthScript` (among other) do, such that the language can be used from the command line and embedded in server-side web pages? Where do I go to get that kind of information? | 0 | [
2,
1174,
21,
816,
26,
14,
1936,
3884,
68,
2015,
13,
5,
499,
1635,
6,
800,
3726,
3726,
63,
1276,
41,
186,
1496,
2935,
1203,
13,
1,
499,
1635,
1,
19,
14,
161,
30,
13,
1,
20468,
8741,
1,
15,
13,
1,
728,
8741,
1,
15,
13,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I create a Firebug-like bottom window Firefox extension
===
Several extensions offer a "bottom window" for viewing their content. Firebug and ScribeFire are good examples where the main content appears at the bottom of the browser. This appears to be very similar to the sidebar functionality in the browser.
Is there a best practice/method to create a bottom window in an extension, since there is no "sidebar for the bottom" of the browser? | 0 | [
2,
184,
92,
31,
1600,
21,
535,
16254,
8,
1403,
2129,
1463,
535,
18219,
3896,
800,
3726,
3726,
238,
17529,
1994,
21,
13,
7,
22389,
1463,
7,
26,
11244,
66,
2331,
9,
535,
16254,
17,
13,
12543,
5929,
50,
254,
3770,
113,
14,
407,
233... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 strategy would you use for tracking user recent activity?
===
Our customer would like to know **who** is online and currently using the custom application we wrote for them. I discussed it with them and this doesn't need to be **exact**, more of a guestimate will work.
So my thought were maybe a 15 minute time interval to determine user activity. Some ideas I have for doing this are as follows:
1. Stamp their user record with a date and time of their last activity every time they do something that hits the database, or requests a web page ... this though could be quite database intensive.
2. Send out a "who is online request" from our software, looking for responses, this could be done at a scheduled interval, and then stamp the user record with the current date and time for each response I received.
What are your thoughts? And how would you handle this situation?
| 0 | [
2,
98,
4427,
83,
42,
275,
26,
10353,
4155,
1764,
2358,
60,
800,
3726,
3726,
318,
7705,
83,
101,
20,
143,
13,
1409,
1924,
1409,
25,
2087,
17,
871,
568,
14,
5816,
3010,
95,
738,
26,
105,
9,
31,
6078,
32,
29,
105,
17,
48,
1437,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Entity framework and queries' SQL logging
===
I'm using LINQ to Entities. I need to log the resulting SQL of every executed query. It'd be nice to log the execution times and the number of rows returned, though it's not crucial.
Is there a way to do this from within the app? I'd rather not use the SQL Profiler.
There should be a way to trace everything that goes from the framework to database. I can't modify every single usage of entity framework (so ToTraceString or some custom method call before iterating through results isn't an option) - it has to be a single solution working throghout the app. | 0 | [
2,
9252,
6596,
17,
9386,
2829,
22,
4444,
255,
13,
13919,
800,
3726,
3726,
31,
22,
79,
568,
6294,
1251,
20,
12549,
9,
31,
376,
20,
6738,
14,
2927,
4444,
255,
16,
352,
5557,
25597,
9,
32,
22,
43,
44,
2210,
20,
6738,
14,
5769,
43... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Load and save bitmaps using dotnet
===
This may be simple one, but 5 mins of Googling didn't give me the answer.
How do you save and load bitmaps using .Net librabries?
I have an Image object and I need to save it to disk in some format (preferably png) and load back in later.
A C# example would be great. | 0 | [
2,
6305,
17,
2079,
1142,
15022,
18,
568,
14123,
2328,
800,
3726,
3726,
48,
123,
44,
1935,
53,
15,
47,
331,
4232,
18,
16,
162,
5598,
802,
223,
22,
38,
590,
55,
14,
1623,
9,
184,
107,
42,
2079,
17,
6305,
1142,
15022,
18,
568,
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... |
Techniques for dynamic (algorithmic) graphics
===
I'm programming an application for a [32 bit processor with limited memory][1] (512k flash, 32k RAM).
The [display][2] on this device is 128x160 with 16 bit color, which would normally consume 40k ram if I were to buffer it on my processor. I don't have that much RAM, so I'm looking for techniques, tips, tricks, ideas for generating screen data on the fly.
Things that might help:
- Perhaps you know of a resource for this sort of limitation
- Maybe you've generated attractive graphics on the fly
- Is there a generic algorithm I might use to combine elements in program memory (including alpha blending) on the fly while I scan the display
- Simple vector rendering techniques (or free (bsd/mit/apache) source)
- ???
I do have a multiplier, but no floating point processor. The display itself has a very simple controller and memory for the display - but reads and writes are expensive so I don't want to use that as my workspace if I can avoid it.
-Adam
[1]: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2591
[2]: http://www.newhavendisplay.com/index.cfm/page/ptype=product/product_id=524/category_id=240/home_id=165/mode=prod/prd524.htm | 0 | [
2,
4212,
26,
7782,
13,
5,
192,
6979,
49,
96,
5410,
6,
8351,
800,
3726,
3726,
31,
22,
79,
3143,
40,
3010,
26,
21,
636,
3125,
1142,
14762,
29,
1317,
1912,
500,
2558,
165,
500,
13,
5,
264,
918,
197,
4433,
15,
2512,
197,
2843,
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... |
What is the best way to delete a value from an array in perl ?
===
After some googling found this code. Not sure if there is a better way than this. Asking this because the array I use will hold lots of data.
my @array = (1,2,3,4,5,5,6,5,4,9);
my $element_omitted = 5;
@array = grep { $_ != $element_omitted } @array; | 0 | [
2,
98,
25,
14,
246,
161,
20,
27448,
21,
1923,
37,
40,
7718,
19,
416,
255,
13,
60,
800,
3726,
3726,
75,
109,
162,
5598,
802,
216,
48,
1797,
9,
52,
562,
100,
80,
25,
21,
574,
161,
119,
48,
9,
3379,
48,
185,
14,
7718,
31,
275... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using both Eclipse and Netbeans
===
Eclipse is a really great editor, which I prefer to use. But the GUI design tools for eclipse are lacking. On the other hand Netbeans works really well for GUI design. Are there any tips, tricks or pit falls of using Netbeans for GUI design, and Eclipse for the rest of development, on One project? | 0 | [
2,
568,
156,
11652,
17,
4275,
863,
5950,
800,
3726,
3726,
11652,
25,
21,
510,
374,
1835,
15,
56,
31,
6369,
20,
275,
9,
47,
14,
9457,
704,
4672,
26,
11652,
50,
11690,
9,
27,
14,
89,
224,
4275,
863,
5950,
693,
510,
134,
26,
9457... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
UITableView didSelectRow while editing?
===
I'm building an interface much like the built-in Weather application's flipside view, or the Alarms view of the Clock application in editing mode. The table view is always in editing mode, so the delete icon appears on the left side of each cell.
When the table view is in editing mode, my delegate doesn't receive `didSelectRowAtIndexPath` notifications. It receives `accessoryButtonTappedForRowWithIndexPath` notifications, but that's not what I want to do. I want my rows to stay selectable, even when the table view is in editing mode.
Any ideas on how I can accomplish this?
Thanks,
P.S. Hooray for the lifted NDA. =) | 0 | [
2,
13,
11193,
579,
4725,
144,
18,
25538,
499,
133,
9510,
60,
800,
3726,
3726,
31,
22,
79,
353,
40,
6573,
212,
101,
14,
392,
8,
108,
2580,
3010,
22,
18,
8805,
1416,
1418,
15,
54,
14,
6490,
18,
1418,
16,
14,
4229,
3010,
19,
9510... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 document your source code in XCode?
===
I'm a mac developer with a very strong Java background. I've documented my sources using Javadoc, a lot.
What's the way to go with Cocoa and XCode?
Are there any documentation tools supplied together with Apples Developer Tools?
Is Doxygen the way to go? What are the alternatives?
Thank you all! | 0 | [
2,
184,
107,
42,
4492,
154,
1267,
1797,
19,
993,
9375,
60,
800,
3726,
3726,
31,
22,
79,
21,
1572,
10058,
29,
21,
253,
966,
8247,
2395,
9,
31,
22,
195,
8926,
51,
2662,
568,
8247,
13799,
15,
21,
865,
9,
98,
22,
18,
14,
161,
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 I retrieve the size of a file or directory from Perforce?
===
I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. This, of course, defeats the purpose.
Is there a way to get file size info from Perforce without actually getting the files? | 0 | [
2,
184,
107,
31,
11917,
14,
1072,
16,
21,
3893,
54,
16755,
37,
416,
8774,
60,
800,
3726,
3726,
31,
83,
101,
20,
143,
184,
212,
8582,
726,
21,
16755,
25,
228,
20,
16447,
115,
31,
1499,
32,
84,
37,
14,
416,
8774,
8128,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Comparative advantages of xdoc and apt formats
===
What are the relative merits of the xdoc and apt formats for writing websites of Maven projects? Is one more expressive than the other? Has one got better tool support than the other? | 0 | [
2,
14102,
14683,
16,
993,
13799,
17,
21,
4417,
13767,
800,
3726,
3726,
98,
50,
14,
4543,
5848,
18,
16,
14,
993,
13799,
17,
21,
4417,
13767,
26,
1174,
13931,
16,
1216,
3124,
2314,
60,
25,
53,
91,
25093,
119,
14,
89,
60,
63,
53,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Will web browsers cache content over https
===
Will content requested over https still be cached by web browsers or do they consider this insecure behaviour? If this is the case is there anyway to tell them it's ok to cache? | 0 | [
2,
129,
2741,
16495,
18,
16522,
2331,
84,
7775,
18,
800,
3726,
3726,
129,
2331,
6602,
84,
7775,
18,
174,
44,
16522,
43,
34,
2741,
16495,
18,
54,
107,
59,
3563,
48,
19,
22917,
7727,
60,
100,
48,
25,
14,
610,
25,
80,
2774,
20,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Forcing single-argument constructors to be explicit in C++?
===
By default, in C++, a single-argument constructor can be used as an implicit conversion operator. This can be suppressed by marking the constructor as explicit.
I'd prefer to make "explicit" be the default, so that the compiler cannot silently use these constructors for conversion.
Is there a way to do this in standard C++? Failing that, is there a pragma (or similar) that'll work in Microsoft C++ to do this? What about g++ (we don't use it, but it might be useful information)?
| 0 | [
2,
6135,
345,
8,
512,
3073,
1130,
6960,
248,
18,
20,
44,
14990,
19,
272,
20512,
60,
800,
3726,
3726,
34,
12838,
15,
19,
272,
20512,
15,
21,
345,
8,
512,
3073,
1130,
6960,
248,
92,
44,
147,
28,
40,
20290,
6263,
6022,
9,
48,
92,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
1-dimensional nesting algorithm
===
What is an effective algoritm for nesting 1 dimensional lengths into predefined stock lengths?
For example, If you required steel bars in the following quantities and lengths,
- 5 x 2 metres
- 5 x 3 metres
- 5 x 4 metres
and these can be cut from 10 metre bars.
How could you calculate the pattern for cutting the 10m bars so that the minimum number of bars are used?
In addition, how could you incorporate multiple stock lengths into the algorithm?
| 0 | [
2,
137,
8,
7865,
24338,
9083,
800,
3726,
3726,
98,
25,
40,
3140,
493,
6979,
242,
79,
26,
24338,
137,
13,
7865,
13189,
77,
782,
13439,
2070,
13189,
60,
26,
823,
15,
100,
42,
1390,
1951,
6062,
19,
14,
249,
13787,
17,
13189,
15,
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... |
Using ButtonField or HyperLinkField to write a cookie in ASP.NET
===
I currently have a DetailsView in ASP.NET that gets data from the database based on an ID passed through a QueryString. What I've been trying to do now is to then use that same ID in a new cookie that is created when a user clicks either a ButtonField or a HyperLinkField.
What I have in the .aspx is this:
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ArtID"
DataSourceID="AccessDataSource1" Height="50px" Width="125px">
<Fields>
<asp:ImageField DataAlternateTextField="Title" DataImageUrlField="FileLocation">
</asp:ImageField>
<asp:BoundField DataField="ArtID" HeaderText="ArtID" InsertVisible="False" ReadOnly="True"
SortExpression="ArtID" />
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
<asp:BoundField DataField="ArtDate" HeaderText="ArtDate" SortExpression="ArtDate" />
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
<asp:BoundField DataField="FileLocation" HeaderText="FileLocation" SortExpression="FileLocation" />
<asp:BoundField DataField="Medium" HeaderText="Medium" SortExpression="Medium" />
<asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" />
<asp:BoundField DataField="PageViews" HeaderText="PageViews" SortExpression="PageViews" />
<asp:HyperLinkField DataNavigateUrlFields="ArtID" DataNavigateUrlFormatString="Purchase.aspx?ArtID={0}"
NavigateUrl="Purchase.aspx" Text="Add To Cart" />
<asp:ButtonField ButtonType="Button" DataTextField="ArtID" Text="Add to Cart" CommandName="btnAddToCart_Click" />
</Fields>
</asp:DetailsView>
When using a reguler asp.net button such as:
<asp:Button ID="btnAddArt" runat="server" Text="Add To Cart" />
I would have something like this in the VB:
Protected Sub btnAddArt_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddArt.Click
Dim CartArtID As New HttpCookie("CartArtID")
CartArtID.Value = ArtID.DataField
CartArtID.Expires = Date.Today.AddDays(0.5)
Response.Cookies.Add(CartArtID)
Response.Redirect("Purchase.aspx")
End Sub
However, I can't figure out how I go about applying this to the ButtonField instead since the ButtonField does not allow me to give it an ID.
The ID that I need to add to the cookie is the ArtID in the first BoundField.
Any idea's/advice on how I would go about doing this are greatly appreciated!
Alternatively, if I could do it with the HyperLinkField or with the regular button, that would be just as good, but I'm having trouble using a regular button to access the ID within the DetailsView.
Thanks | 0 | [
2,
568,
5167,
1109,
54,
5443,
6258,
1109,
20,
2757,
21,
19980,
19,
28,
306,
9,
2328,
800,
3726,
3726,
31,
871,
57,
21,
3289,
4725,
19,
28,
306,
9,
2328,
30,
3049,
1054,
37,
14,
6018,
432,
27,
40,
4924,
1100,
120,
21,
25597,
11... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Any way to ASSERT expressions at build time
===
I'm tidying up some older code which uses 'magic numbers' all over the place to set hardware registers, I would like to use constants instead of these numbers to make the code somewhat more expressive (in fact they will map to the names/values used to document the registers).
However I'm concerned that with the volume of changes that I might break the magic numbers. Here is a simplified example (the register set is more complex):
const short mode0 = 0;
const short mode1 = 1;
const short mode2 = 2;
const short state0 = 0;
const short state1 = 4;
const short state2 = 8;
so instead of :
set_register(5);
we have:
set_register(state1|mode1);
What I'm looking is a **build time** version of:
ASSERT(5==(state1|mode1));
| 0 | [
2,
186,
161,
20,
10908,
13832,
35,
1895,
85,
800,
3726,
3726,
31,
22,
79,
28028,
68,
71,
109,
1234,
1797,
56,
2027,
13,
22,
21200,
2116,
22,
65,
84,
14,
209,
20,
309,
7610,
2243,
18,
15,
31,
83,
101,
20,
275,
3587,
18,
700,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to detect a file modifications with TFS?
===
It seems that when I use a tool (such as winmerge) to update my codebase... my Visual Studio Team System (VSTS) integration with Team Foundation Server (TFS) doesn't seem to pick it up.
How do I know which files to check out and check back in? Is there something I am missing? Is this a feature that isn't part of VSTS & TFS? | 0 | [
2,
184,
20,
9092,
21,
3893,
13922,
29,
13,
11720,
18,
60,
800,
3726,
3726,
32,
2206,
30,
76,
31,
275,
21,
5607,
13,
5,
4289,
28,
628,
1263,
834,
6,
20,
11100,
51,
1797,
8436,
9,
9,
9,
51,
3458,
1120,
173,
329,
13,
5,
710,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
re-using database connection for phpbb3
===
I am using my own db for phpbb3 forum, and I wish to insert some data from the forum into my own tables. Now, I can make my own connection and it runs my query but in trying to use the $db variable(which I think is what you're meant to use??) it gives me an error.
I would like someone to show me the bare bones which i insert my query into to be able to run it.
thanks | 0 | [
2,
302,
8,
12655,
6018,
2760,
26,
13,
26120,
3490,
240,
800,
3726,
3726,
31,
589,
568,
51,
258,
13,
9007,
26,
13,
26120,
3490,
240,
5691,
15,
17,
31,
2536,
20,
14692,
109,
1054,
37,
14,
5691,
77,
51,
258,
7484,
9,
130,
15,
31,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Spring webflow : Move through view states
===
Within a spring webflow, i need to implement a navigation bar that will allow to "step back" or resume the flow to one of the previous view.
For example :
* View 1 = login
* View 2 = My informations
* View 3 = My messages
* View 4 = Close session
For this example, i would like to return back to view 2 from the view 4 page. | 0 | [
2,
1573,
2741,
9990,
13,
45,
780,
120,
1418,
202,
800,
3726,
3726,
363,
21,
1573,
2741,
9990,
15,
31,
376,
20,
8713,
21,
8368,
748,
30,
129,
1655,
20,
13,
7,
8375,
97,
7,
54,
13113,
14,
3312,
20,
53,
16,
14,
1158,
1418,
9,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to check if at least one of two subexpressions in a regular expression match.
===
I am trying to match floating-point decimal numbers with a regular expression. There may or may not be a number before the decimal, and the decimal may or may not be present, and if it is present it may or may not have digits after it. (For this application, a leading +/- or a trailing "E123" is not allowed). I have written this regex:
/^([\d]*)(\.([\d]*))?$/
Which correctly matches the following:
1
1.
1.23
.23
However, this also matches empty string or a string of just a decimal point, which I do not want.
Currently I am checking after running the regex that $1 or $3 has length greater than 0. If not, it is not valid. Is there a way I can do this directly in the regex? | 0 | [
2,
184,
20,
2631,
100,
35,
639,
53,
16,
81,
972,
28993,
18,
19,
21,
1290,
1803,
730,
9,
800,
3726,
3726,
31,
589,
749,
20,
730,
8319,
8,
3132,
26380,
2116,
29,
21,
1290,
1803,
9,
80,
123,
54,
123,
52,
44,
21,
234,
115,
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... |
Does anyone know if NetBeans 6.x can be used with Java SE 6 on Leopard?
===
Java SE 6 (64 bit only) is now on OS X and that is a good thing. As I understand it since Eclipse is still Carbon and thus 32 bit, it cannot be used for 1.6 on Leopard, only 1.5.
Does anyone know if NetBeans 6.x can be used with Java SE 6 on Leopard utilizing its JVM? | 0 | [
2,
630,
1276,
143,
100,
4275,
863,
5950,
400,
9,
396,
92,
44,
147,
29,
8247,
1353,
400,
27,
15446,
60,
800,
3726,
3726,
8247,
1353,
400,
13,
5,
3470,
1142,
104,
6,
25,
130,
27,
13,
759,
993,
17,
30,
25,
21,
254,
584,
9,
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... |
Why does RSACryptoServiceProvider.VerifyHash need an LDAP check?
===
I recently encountered an odd problem with [`RSACryptoServiceProvider.VerifyHash`](http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.verifyhash.aspx).
I have a web application using it for decryption. When users running the web service were doing so over our VPN it became very very slow. When they had no connection or a internet connection they were fine.
After much digging I found that every time `RSACryptoServiceProvider.VerifyHash` is called it makes an LDAP request to check `MyMachineName\ASPNET`.
This doesn't happen with our WebDev (cassini based) servers as they run as the current user, and it is only really slow over the VPN, but it shouldn't happen at all.
This seems wrong for a couple of reasons:
* Why is it checking the domain controller for a local machine user?
* Why does it care? The encryption/decryption works regardless.
Does anyone know why this occurs or how best to work around it?
| 0 | [
2,
483,
630,
13,
22038,
11435,
111,
11449,
26735,
139,
9,
2304,
8612,
25436,
376,
40,
644,
20472,
2631,
60,
800,
3726,
3726,
31,
1989,
8208,
40,
4210,
1448,
29,
636,
1,
22038,
11435,
111,
11449,
26735,
139,
9,
2304,
8612,
25436,
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... |
Why is getenv('REMOTE_ADDR') giving me a blank IP address?
===
This PHP code...
207 if (getenv(HTTP_X_FORWARDED_FOR)) {
208 $ip = getenv('HTTP_X_FORWARD_FOR');
209 $host = gethostbyaddr($ip);
210 } else {
211 $ip = getenv('REMOTE_ADDR');
212 $host = gethostbyaddr($ip);
213 }
Throws this warning...
> **Warning:** gethostbyaddr()
> [function.gethostbyaddr]: Address is
> not in a.b.c.d form in **C:\inetpub\...\filename.php** on line **212**
It seems that *$ip* is blank. | 0 | [
2,
483,
25,
164,
219,
710,
5,
22,
99,
20209,
1,
14854,
139,
22,
6,
1438,
55,
21,
6463,
15735,
3218,
60,
800,
3726,
3726,
48,
13,
26120,
1797,
9,
9,
9,
13,
20304,
100,
13,
5,
3060,
219,
710,
5,
21127,
1,
396,
1,
21216,
69,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Measures in databases
===
I've got a question concerning fields in databases wich are measures that might be displayed in different units but are stored only in one, such as "height", for example.
Where should the "pattern unit" be stated?. Of course, in the documentation, etc... But we all know nobody reads the documentation and that self-docummented things are preferrable.
From a practical point of view, what do you think of coding it in the database field (such as height_cm for example)?.
I find this weird at a first look, but I find it practical to avoid any mistakes when different people deal with the database directly and the "pattern unit" will never change.
What do you think?.
Regards. | 0 | [
2,
4699,
19,
6018,
18,
800,
3726,
3726,
31,
22,
195,
330,
21,
1301,
6477,
2861,
19,
6018,
18,
13,
13583,
50,
4699,
30,
530,
44,
6115,
19,
421,
1398,
47,
50,
8214,
104,
19,
53,
15,
145,
28,
13,
7,
252,
7748,
7,
15,
26,
823,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using VS 2005 to design abstract forms
===
<p>There's a famous bug in Visual Studio that prevents you from using the form designer on a subclass of an abstract form.</p>
<p>This problem has already been elucidated and solved most elegantly by [Urban Potato][1]; that's not the part I'm having trouble with. The trouble is, I have duplicated the technique described by Urban Potato, and included it in my project (which happens to be pretty big), and now every time I try to open the designer of my derived form, I get that Microsoft "frightfully sorry, old chap, but I'm going to have to kill you now" message (reminiscent of Otto in <i>A Fish Called Wanda</i>) that says "Microsoft Visual Studio 2005 has encountered a problem and needs to close. We are sorry for the inconvenience."</p>
<p>But here's the <b>real</b> kicker: if you just ignore that message, and stuff it away beyond the bottom right corner of the screen, you can carry on working, perfectly normally! Just don't click the "Send Error Report" or "Don't Send" buttons, coz then VS <b>does</b> close.</p>
<p>Still, this phenomenon is highly annoying, and I'd very much like to be able to work without the feeling that my IDE is just <i>looking</i> for some really nasty way to get back at me for pooh-poohing its sage advice to quit now - or else.</p>
<p>Further useful info: this same behavior can be duplicated on all other computers in my office; it's nothing specific to my machine. Obviously something in the project/code is upsetting the IDE, but at least I know the design pattern works, coz after I ignore the crash message, the designer works perfectly well. I just don't know where to start looking for the thing that is causing this problem.</p>
<p>Any ideas?</p>
<p>Thanks!</p>
[1]: http://www.urbanpotato.net/default.aspx/document/2001 | 0 | [
2,
568,
4611,
812,
20,
704,
8502,
1997,
800,
3726,
3726,
13,
1,
306,
1,
1887,
22,
18,
21,
1561,
6256,
19,
3458,
1120,
30,
2501,
18,
42,
37,
568,
14,
505,
4742,
27,
21,
972,
1898,
16,
40,
8502,
505,
9,
1,
118,
306,
1,
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... |
VB WebBrowser.DocumentText Isn't Changing!
===
In my vb.net program, I am using a webbrowser to show the user an HTML preview. I was previously hitting a server to grab the HTML, then returning on an asynchronous thread and raising an event to populate the WebBrowser.DocumentText with the HTML string I was returning.
Now I set it up to grab all of the information on the client, without ever having to hit the server, and I'm trying to raise the same event. I watch the code go through, and it has the HTML string correct and everything, but when I try to do
browser.DocumentText = _emailHTML
the contents of DocumentText remain as "`<HTML></HTML>`"
I was just wondering why the DocumentText was not being set. Anyone have any suggestions? | 0 | [
2,
13,
20468,
10192,
5417,
4104,
9,
28132,
11969,
2532,
22,
38,
4226,
187,
800,
3726,
3726,
19,
51,
13,
20468,
9,
2328,
625,
15,
31,
589,
568,
21,
10192,
5417,
4104,
20,
298,
14,
4155,
40,
13,
15895,
16121,
9,
31,
23,
1343,
6687... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Cookies and Objects
===
I'm having trouble figuring out how to access a cookie from a compiled object. I'm trying to make a compiled (DLL) object that will check the users cookie and then compare that to a database to confirm they have the correct access.
I can pass in the cookie info fine and the component will work, but I'm trying to have the component check the users cookie as well. I'm not even sure what object to use. I've been searching all weekend and I've seen references to httprequest, httpcookie, cookie, and cookiecollection.
I can look up cookie values on the page itself using Request.Cookies("inet")("user_id") but this doesn't work in the component.
| 0 | [
2,
19396,
17,
3916,
800,
3726,
3726,
31,
22,
79,
452,
2572,
25379,
70,
184,
20,
1381,
21,
19980,
37,
21,
9316,
3095,
9,
31,
22,
79,
749,
20,
233,
21,
9316,
13,
5,
43,
211,
6,
3095,
30,
129,
2631,
14,
3878,
19980,
17,
94,
115... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Modern equivalent of javadeps?
===
I am looking for a replacement for javadeps, which I used to use to generate sections of a Makefile to specify which classes depended on which source files.
Unfortunately javadeps itself has not been updated in a while, and cannot parse generic types or static imports.
The closest thing I've found so far is [Dependency Finder][1]. It almost does what I need but does not match non-public classes to their source files (as the source filename does not match the class name.) My current project has an interface whose only client is an inner class of a package-private class, so this is a significant problem.
Alternatively if you are not aware of a tool that does this, how do you do incremental compilation in large Java projects using command-line tools? Do you compile a whole package at a time instead?
Notes:
1. javadeps is not to be confused with [jdepend][2], which is for a very different purpose.
2. This question is a rewrite of "[Tool to infer dependencies for a java project][3]" which seemed to be misunderstood by 2 out of 3 responders.
[1]: http://depfind.sourceforge.net/
[2]: http://clarkware.com/software/JDepend.html
[3]: http://stackoverflow.com/questions/170025/tool-to-infer-dependencies-for-a-java-project | 0 | [
2,
773,
4602,
16,
8247,
17309,
18,
60,
800,
3726,
3726,
31,
589,
699,
26,
21,
4610,
26,
8247,
17309,
18,
15,
56,
31,
147,
20,
275,
20,
7920,
4501,
16,
21,
233,
16877,
20,
19077,
56,
2684,
19961,
27,
56,
1267,
6488,
9,
6200,
82... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can you improve this 'lines of code algorithm' in F#?
===
I've written a little script to iterate across files in folders to count lines of code.
The heart of the script is this function to count lines of whitespace, comments, and code. (Note that for the moment it is tailored to C# and doesn't know about multi-line comments).
It just doesn't look very nice to me - has anyone got a cleaner version?
// from list of strings return tuple with count of (whitespace, comments, code)
let loc (arr:List<string>) =
let innerloc (whitesp, comment, code) (l:string) =
let s = l.TrimStart([|' ';'\t'|]) // remove leading whitespace
match s with
| "" -> (whitesp + 1, comment, code) //blank lines
| "{" -> (whitesp + 1, comment, code) //opening blocks
| "}" -> (whitesp + 1, comment, code) //closing blocks
| _ when s.StartsWith("#") -> (whitesp + 1, comment, code) //regions
| _ when s.StartsWith("//") -> (whitesp, comment + 1, code) //comments
| _ -> (whitesp, comment, code + 1)
List.fold_left innerloc (0,0,0) arr | 0 | [
2,
92,
42,
3545,
48,
13,
22,
7939,
16,
1797,
9083,
22,
19,
398,
5910,
60,
800,
3726,
3726,
31,
22,
195,
642,
21,
265,
3884,
20,
32,
106,
1373,
464,
6488,
19,
19294,
18,
20,
2468,
1560,
16,
1797,
9,
14,
582,
16,
14,
3884,
25,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I implement java synchronization (monitors) using the Win32 API?
===
Each Java object (and its class) has an associated monitor. In pthread terms a Java monitor is equivalent to the combination of a reentrant mutex and a condition variable.
For locking, the Win32 API provides Mutex objects (which are reentrant but heavyweight) and Critical Sections (which are non-reentrant but lightweight). It also provides other synchronization constructs such as Semaphores and Events but has no explicit concept of a condition variable.
If I were writing a JVM, how could I use these Win32 concepts to implement a Java monitor? | 0 | [
2,
184,
92,
31,
8713,
8247,
13,
16023,
1829,
13,
5,
2111,
49,
10778,
6,
568,
14,
628,
3125,
21,
2159,
60,
800,
3726,
3726,
206,
8247,
3095,
13,
5,
290,
82,
718,
6,
63,
40,
1598,
7626,
9,
19,
351,
96,
10647,
1663,
21,
8247,
7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Log4Net "Could not find schema information" messages
===
I decided to use [log4net][1] as a logger for a new webservice project. Everything is working fine, but I get a lot of messages like the one below, for every log4net tag I am using in my `web.config`:
> Could not find schema information for
> the element 'log4net'...
Below are the relevant parts of my `web.config`:
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="C:\log.txt" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="100KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level: %message%newline" />
</layout>
</appender>
<logger name="TIMServerLog">
<level value="DEBUG" />
<appender-ref ref="RollingFileAppender" />
</logger>
</log4net>
I searched the web, but could not find a working solution for this problem. What am I doing wrong?
[1]: http://logging.apache.org/log4net/index.html | 0 | [
2,
6738,
300,
2328,
13,
7,
13431,
52,
477,
23874,
676,
7,
7561,
800,
3726,
3726,
31,
868,
20,
275,
636,
5567,
300,
2328,
500,
2558,
165,
500,
28,
21,
13,
29480,
26,
21,
78,
2741,
11449,
669,
9,
796,
25,
638,
1123,
15,
47,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Recommendations for good book and/or online documentation for Entity Relationship Diagrams
===
The [wiki page](http://en.wikipedia.org/wiki/Entity-relationship_model) on ERD has a lot of useful information, but I was wondering if you had any recommendations for good books and/or online documentation for a more in-depth description of ERD's?
Thanks. | 0 | [
2,
12121,
26,
254,
360,
17,
118,
248,
2087,
13945,
26,
9252,
1429,
14161,
18,
800,
3726,
3726,
14,
636,
17375,
2478,
500,
5,
21127,
6903,
219,
9,
17375,
26132,
9,
5583,
118,
17375,
118,
2291,
856,
8,
99,
10832,
2418,
1,
13998,
6,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Query showing list of associations in many-to-many relationship
===
*Please note that the same question already has been asked in <http://stackoverflow.com/questions/111341/combine-multiple-results-in-a-subquery-into-a-single-comma-separated-value>, but the solution involves creating a function. I am asking if there is a way to solve this without having to create a function or a stored procedure.*
----------
I have two tables, **Book** and **Tag**, and books are tagged using the association table **BookTag**. I want to create a report that contains a list of books, and for each book a list of the book's tags. Tag IDs will suffice, tag names are not necessary.
Example:
Book table:
Book ID | Book Name
28 | Dracula
BookTag table:
Book ID | Tag ID
28 | 101
28 | 102
In my report, I'd like to show that book #28 has the tags 101 and 102:
Book ID | Book Name | Tags
28 | Dracula | 101, 102
Is there a way to do this in-line, without having to resort to functions or stored procedures? I am using SQL Server 2005. | 0 | [
2,
25597,
3187,
968,
16,
10642,
19,
151,
8,
262,
8,
14842,
1429,
800,
3726,
3726,
1637,
6744,
1945,
30,
14,
205,
1301,
614,
63,
74,
411,
19,
13,
1,
21127,
6903,
25325,
2549,
9990,
9,
960,
118,
24652,
18,
118,
15974,
24474,
118,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Complex profiles in maven
===
I've been looking at profiles in maven for selecting different sets of dependencies. This is fine when you want to build say a debug build differently from a release build. My problem is that I want to do a fair bit more than this. For my application (Mobile Java app where J2ME is just one target among many) there may be a large number of possible combinations of variations on a build.
Using some made-up command line syntax to illustrate what I'd like to see, I'd imagine typing in something like
mvn -Pmidp,debug,local-resources
What Maven does in this case is to build three different builds. What I want to do is use those three (Or more, or less) switches to affect just one build. So I'd get a MIDP-targetting debug build with 'local resources' (Whatever that might mean to me - I'm sure you can imagine better examples).
The only way I can think of doing this would be to have lots and lots of profiles which becomes quite problematic. In my example, I'd have
-Pmidp-debug-localresources
-Pmidp-release-localresources
-Pmidp-debug-remoteresources
-Pmidp-release-remoteresources
...
Each with its own frustratingly similar set of dependencies and build tag.
I'm not sure I've explained my problem well enough, but I can re-write the question to clarify it if comments are left.
| 2 | [
2,
1502,
5296,
18,
19,
1216,
3124,
800,
3726,
3726,
31,
22,
195,
74,
699,
35,
5296,
18,
19,
1216,
3124,
26,
20764,
421,
3415,
16,
29411,
9,
48,
25,
1123,
76,
42,
259,
20,
1895,
395,
21,
121,
16254,
1895,
12670,
37,
21,
830,
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... |
How to automate converting Excel xsl files to Excel xml fromat?
===
I have about 200 Excel files that are in standard Excel 2003 format.
I need them all to be saved as Excel xml - basically the same as opening each file and choosing **Save As...** and then choosing **Save as type:** *XML Spreadsheet*
Would you know any simple way of automating that task? | 0 | [
2,
184,
20,
3108,
5281,
19583,
20700,
993,
18,
255,
6488,
20,
20700,
23504,
37,
721,
60,
800,
3726,
3726,
31,
57,
88,
2327,
20700,
6488,
30,
50,
19,
1236,
20700,
973,
2595,
9,
31,
376,
105,
65,
20,
44,
4377,
28,
20700,
23504,
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... |
Exceptions for flow control
===
There is [an interesting post over here](http://stackoverflow.com/questions/134698/catching-exceptions-as-expected-program-execution-flow-control) about this, in relation to cross-application flow control.
Well, recently, I've come across an interesting problem. Generating the nth value in a potentially (practically) endless recursive sequence. This particular algorithm WILL be in atleast 10-15 stack references deep at the point that it succeeds. My first thought was to throw a SuccessException that looked something like this (C#):
class SuccessException : Exception
{
public string Value
{ get; set; }
public SuccessException(string value)
: base()
{
Value = value;
}
}
Then do something like this:
try
{
Walk_r(tree);
}
catch (SuccessException ex)
{
result = ex.Value;
}
Then my thoughts wandered back here, where I've heard over and over to never use Exceptions for flow control. Is there ever an excuse? And how would you structure something like this, if you were to implement it? | 0 | [
2,
13392,
26,
3312,
569,
800,
3726,
3726,
80,
25,
636,
210,
4883,
678,
84,
235,
500,
5,
21127,
6903,
25325,
2549,
9990,
9,
960,
118,
24652,
18,
118,
13837,
3680,
12530,
18208,
68,
8,
10066,
5757,
8,
472,
8,
6899,
11557,
69,
8,
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 are some good 3rd party controls for Windows Mobile?
===
We're developing a windows mobile 6.1 application and would like to make the user interface look better than the standard battleship grey. Has anyone had any experience with 3rd party controls that can make a windows mobile app look like a WPF/Silverlight/Iphone - like interface? | 0 | [
2,
98,
50,
109,
254,
203,
897,
346,
8671,
26,
1936,
3241,
60,
800,
3726,
3726,
95,
22,
99,
3561,
21,
1936,
3241,
400,
9,
165,
3010,
17,
83,
101,
20,
233,
14,
4155,
6573,
361,
574,
119,
14,
1236,
13731,
2682,
9,
63,
1276,
41,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Deleting multiline text from multiple files
===
I have a bunch of java files from which I want to remove the javadoc lines with the license [am changing it on my code].
The pattern I am looking for is
`^\* \* ProjectName .* USA\.$`
but matched across lines
Is there a way sed [or a commonly used editor in Windows/Linux] can do a search/replace for a multiline pattern? | 0 | [
2,
121,
1336,
68,
1889,
1143,
1854,
37,
1886,
6488,
800,
3726,
3726,
31,
57,
21,
7653,
16,
8247,
6488,
37,
56,
31,
259,
20,
4681,
14,
8247,
13799,
1560,
29,
14,
3962,
636,
765,
4226,
32,
27,
51,
1797,
500,
9,
14,
3732,
31,
589... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the equivalent to JUnit in C#?
===
I am coming from Java and am currently working on a C# project. What is the recommended way to go about a) unit testing existing C# code and b) accomplishing TDD for C# development?
Also is there an equivalent to EMMA / EclEmma (free yet powerful code coverage tool) for Visual Studio and C# code? | 0 | [
2,
98,
25,
14,
4602,
20,
7446,
242,
19,
272,
5910,
60,
800,
3726,
3726,
31,
589,
880,
37,
8247,
17,
589,
871,
638,
27,
21,
272,
5910,
669,
9,
98,
25,
14,
5773,
161,
20,
162,
88,
21,
6,
1237,
4431,
3149,
272,
5910,
1797,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
String to Int in java - Likely bad data, need to avoid exceptions.
===
Seeing as Java doesn't have nullable types, nor does it have a TryParse(),
how do you handle input validation without throwing an exceptions?
The usual way:
String userdata = /*value from gui*/
int val;
try
{
val = Integer.parseInt(userdata);
}
catch (NumberFormatException nfe)
{
// bad data - set to sentinel
val = Integer.MIN_VALUE;
}
I could use a regex to check if it's parseable, but that seems like a lot of overhead as well.
What's the best practice for handling this situation?
| 0 | [
2,
3724,
20,
19,
38,
19,
8247,
13,
8,
1720,
896,
1054,
15,
376,
20,
2658,
13392,
9,
800,
3726,
3726,
2078,
28,
8247,
1437,
22,
38,
57,
16203,
579,
2551,
15,
2127,
630,
32,
57,
21,
1131,
3574,
870,
5,
6,
15,
184,
107,
42,
305... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 copy a MS SQL 2000 database programmatically using C#?
===
I need to copy several tables from one DB to another in SQL Server 2000, using C# (VS 2005). The call needs to be parameterized - I need to be able to pass in the name of the database to which I am going to be copying these tables.
I could use DTS with parameters, but I can't find any sample code that does this from C#.
Alternatively, I could just "drop table TableName" and "select * into TableName from SourceDB..TableName", then reconstruct the indexes etc - but that is **really** kludgy.
Any other ideas?
Thanks! | 0 | [
2,
184,
107,
42,
4344,
21,
4235,
4444,
255,
824,
6018,
625,
6732,
1326,
568,
272,
5910,
60,
800,
3726,
3726,
31,
376,
20,
4344,
238,
7484,
37,
53,
13,
9007,
20,
226,
19,
4444,
255,
8128,
824,
15,
568,
272,
5910,
13,
5,
710,
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... |
Selecting a maximum order number in SQL
===
I have a table that records a sequence of actions with a field that records the sequence order:
user data sequence
1 foo 0
1 bar 1
1 baz 2
2 foo 0
3 bar 0
3 foo 1
Selecting the first item for each user is easy enough with WHERE sequence = '0' but is there a way to select the last item for each user in SQL?
The result I am after should look like this:
user data sequence
1 baz 2
2 foo 0
3 foo 1
I'm using MySQL if there are any implementation specific tricksters answering. | 0 | [
2,
20764,
21,
2979,
389,
234,
19,
4444,
255,
800,
3726,
3726,
31,
57,
21,
859,
30,
742,
21,
4030,
16,
3078,
29,
21,
575,
30,
742,
14,
4030,
389,
45,
4155,
1054,
4030,
137,
4310,
111,
713,
137,
748,
137,
137,
19674,
172,
172,
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... |
Can SoapMapper be persuaded to handle empty arrays
===
I'm having the problem described here:
http://groups.google.com/group/microsoft.public.xml.soap/browse_thread/thread/029ee5b5d4fa2440/0895d73c5c3720a1
I am consuming a Web Service using Office 2003 Web Services Toolkit. This generates classes for all the data returned by my web service: one of the classes has a property that is an array which may be empty.
When I call the web service, SoapMapper raises an error: "array dimensions do not match definition".
Does anyone know of a solution to this problem that allows me to keep using the generated classes (I know I could just consume the raw XML)? | 0 | [
2,
92,
6447,
540,
8763,
44,
12883,
20,
3053,
2424,
7718,
18,
800,
3726,
3726,
31,
22,
79,
452,
14,
1448,
745,
235,
45,
7775,
6903,
8024,
18,
9,
16111,
4875,
9,
960,
118,
8024,
118,
22019,
12980,
9,
12259,
9,
396,
8184,
9,
656,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Easiest way to get file's contents in C
===
What is the simplest way (least error-prone, least lines of code, however you want to interpret it) to open a file in C and read its contents into a string (char*, char[], whatever)? | 0 | [
2,
27237,
161,
20,
164,
3893,
22,
18,
8478,
19,
272,
800,
3726,
3726,
98,
25,
14,
24384,
161,
13,
5,
255,
2857,
7019,
8,
2740,
556,
15,
639,
1560,
16,
1797,
15,
207,
42,
259,
20,
11584,
32,
6,
20,
368,
21,
3893,
19,
272,
17,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to find "holes" in a table
===
I recently inherited a database on which one of the tables has the primary key composed of encoded values (Part1*1000 + Part2).
I normalized that column, but I cannot change the old values.
So now I have
select ID from table order by ID
ID
100001
100002
101001
...
I want to find the "holes" in the table (more precisely, the first "hole" after 100000) for new rows.
I'm using the following select, but is there a better way to do that?
select /* top 1 */ ID+1 from table
where ID > 100000 and
ID + 1 not in (select ID from table)
order by ID
ID
100003
101029
...
The database is Microsoft SQL Server 2000. I'm ok with using SQL extensions. | 0 | [
2,
184,
20,
477,
13,
7,
5359,
18,
7,
19,
21,
859,
800,
3726,
3726,
31,
1989,
7179,
21,
6018,
27,
56,
53,
16,
14,
7484,
63,
14,
1256,
1246,
1869,
16,
13665,
4070,
13,
5,
3091,
165,
2483,
19484,
2754,
141,
135,
6,
9,
31,
1826,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Google Maps Overlays
===
I'm trying to find something, preferably F/OSS, that can generate a Google Maps overlay from KML and/or KMZ data.
We've got an event site we're working on that needed to accommodate ~16,000 place markers last year and will likely have at least that many again this year. Last year, the company that had done the site just fed the KML data directly to the gMaps API and let it place all of the markers client side. Obviously, that became a performance nightmare and tended to make older browsers "freeze" (or at least appear frozen for several minutes at a time).
Ideally this server side script would take the KML, the map's lat/lon center, and the map zoom level and appropriately merge all of the visible place markers into a single GIF or PNG overlay.
Any guidance or recommendations on this would be greatly appreciated.
| 0 | [
2,
8144,
6867,
84,
4414,
18,
800,
3726,
3726,
31,
22,
79,
749,
20,
477,
301,
15,
6369,
4801,
398,
118,
759,
18,
15,
30,
92,
7920,
21,
8144,
6867,
84,
4414,
37,
401,
255,
17,
118,
248,
401,
380,
1054,
9,
95,
22,
195,
330,
40,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sharing Test code in Maven
===
How can you depend on test code from another module in Maven?
Example, I have 2 modules:
* Base
* Main
I would like a test case in Main to extend a base test class in Base. Is this possible? | 0 | [
2,
6126,
1289,
1797,
19,
1216,
3124,
800,
3726,
3726,
184,
92,
42,
12547,
27,
1289,
1797,
37,
226,
12613,
19,
1216,
3124,
60,
823,
15,
31,
57,
172,
17113,
45,
1637,
1000,
1637,
407,
31,
83,
101,
21,
1289,
610,
19,
407,
20,
7206,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Help with deploying Crystal Report embedded Visual Studio 2008 website.
===
I have been trying to get around this error for a day now and have not had much luck. I have a VS 2008 project that uses the embedded Crystal Reports which of course runs fine locally, but when deploying to my remote server the reports will no longer run.
I gathered that it was because I didn't have the right Crystal Reports components installed on my server. So I attempted to add the dll files into my project directly which did work to resolve some of my errors but their is still a missing reference.
The missing reference is on the 'CrystalDecsions.ReportAppServer.ClientDoc' which is located in my GAC.
Is there anyway to get around this problem OTHER THAN installing the msi file on the server? | 0 | [
2,
448,
29,
17617,
68,
4282,
1330,
12138,
3458,
1120,
570,
2271,
9,
800,
3726,
3726,
31,
57,
74,
749,
20,
164,
140,
48,
7019,
26,
21,
208,
130,
17,
57,
52,
41,
212,
5419,
9,
31,
57,
21,
4611,
570,
669,
30,
2027,
14,
12138,
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... |
How to set property to Guid in aspx page
===
I have the following code in one of my aspx pages:
<% foreach (Dependency dep in this.Common.GetDependencies(this.Request.QueryString["Name"]))
{ %>
<ctl:DependencyEditor DependencyKey='<%= dep.Key %>' runat="server" />
<% } %>
When I run it, I get the following error: <pre><strong>Parser Error Message:</strong> Cannot create an object of type 'System.Guid' from its string representation '<%= dep.Key %>' for the 'DependencyKey' property.</pre>
Is there any way that I can create a control and pass in a Guid in the aspx page? I'd really hate to have to loop through and create these controls in the code behind just because of that...
NOTE: The Key property on the Dependency object *is* a Guid. | 0 | [
2,
184,
20,
309,
1354,
20,
9457,
43,
19,
28,
306,
396,
2478,
800,
3726,
3726,
31,
57,
14,
249,
1797,
19,
53,
16,
51,
28,
306,
396,
4434,
45,
13,
1,
11881,
26,
14322,
13,
5,
19038,
8883,
13,
17309,
19,
48,
9,
17130,
9,
3060,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 rename a column in a database table using SQL?
===
If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? | 0 | [
2,
184,
107,
31,
302,
7259,
21,
4698,
19,
21,
6018,
859,
568,
4444,
255,
60,
800,
3726,
3726,
100,
31,
2536,
20,
1659,
302,
7259,
21,
4698,
13,
5,
1270,
753,
82,
1001,
54,
16747,
15,
114,
82,
204,
6,
19,
40,
4444,
255,
6018,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... |
Best open source LINQ provider
===
What's the best open source LINQ provider (in terms of completeness)?
I'm developing a LINQ provider myself and I'd like to borrow as many ideas as I can, avoid common pitfalls, etc.
Do not restrict yourself to database LINQ providers, any provider suggestion is welcome. | 0 | [
2,
246,
368,
1267,
6294,
1251,
11747,
800,
3726,
3726,
98,
22,
18,
14,
246,
368,
1267,
6294,
1251,
11747,
13,
5,
108,
1663,
16,
1279,
720,
6,
60,
31,
22,
79,
3561,
21,
6294,
1251,
11747,
992,
17,
31,
22,
43,
101,
20,
14471,
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... |
Can you add documents and spreadsheets to a Visual Studio Project?
===
In Eclipse, I often include all project-related material (including documents in PDF, Microsoft, and OpenDocument formats) in the project. Is this possible with Visual Studio, especially to the point where if I attempt to open the file from inside Visual Studio, it will open in the external application? | 0 | [
2,
92,
42,
3547,
4374,
17,
1789,
17627,
18,
20,
21,
3458,
1120,
669,
60,
800,
3726,
3726,
19,
11652,
15,
31,
478,
468,
65,
669,
8,
6203,
1492,
13,
5,
3970,
4374,
19,
13,
11124,
15,
7099,
15,
17,
368,
28132,
13767,
6,
19,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
RowNum vs Row_Number
===
What is ROWNUM and ROW_NUMBER ?
| 0 | [
2,
3131,
6336,
4611,
3131,
1,
16299,
800,
3726,
3726,
98,
25,
3131,
6336,
17,
3131,
1,
16299,
13,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
rails in_place_edit: how do I pass an authenticity token?
===
I am trying to get in place editing working but I am running into this error:
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken)
I understand that rails now wants to protect against forgery and that I need to pass a form authenticity token but I am not clear on how to do this with the in_place_edit plugin. | 0 | [
2,
2240,
18,
19,
1,
5119,
1,
69,
242,
45,
184,
107,
31,
1477,
40,
24104,
20,
2853,
60,
800,
3726,
3726,
31,
589,
749,
20,
164,
19,
209,
9510,
638,
47,
31,
589,
946,
77,
48,
7019,
45,
1028,
12898,
1252,
45,
45,
108,
18506,
43... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
T-SQL - Is there a way to disable a trigger in the scope of a transaction?
===
In SQL Server 2005, is there a way for a trigger to find out what object is responsible for firing the trigger? I would like to use this to disable the trigger for one stored prodecure.
Is there any other way to disable the trigger only for the current transaction? I could use the following code, but if I'm not mistaken, it would affect concurrent transactions as well - which would be a bad thing.
DISABLE TRIGGER { [ schema_name . ] trigger_name [ ,...n ] | ALL } ON { object_name | DATABASE | ALL SERVER } [ ; ]
ENABLE TRIGGER { [ schema_name . ] trigger_name [ ,...n ] | ALL } ON { object_name | DATABASE | ALL SERVER } [ ; ]
If possible, I would like to avoid the technique of having a "NoTrigger" field in my table and doing a `NoTrigger = null`, because I would like to keep the table as small as possible. | 0 | [
2,
13,
38,
8,
18,
22402,
13,
8,
25,
80,
21,
161,
20,
1460,
579,
21,
7286,
19,
14,
9914,
16,
21,
12799,
60,
800,
3726,
3726,
19,
4444,
255,
8128,
812,
15,
25,
80,
21,
161,
26,
21,
7286,
20,
477,
70,
98,
3095,
25,
1864,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CAML query to locate specific SPFolder nested in document library tree
===
It seems like searching with CAML and SPQuery doesn't work properly against custom metadata, when searching for SPFolders instead of files, or when searching for custom content types. I've been using U2U to test a variety of queries, and just not getting anywhere. The doc's aren't very complete on the topic, and google isn't helping either.
In one test, I'm trying to locate any SPFolders in the tree that are a specific custom content-type. If I understand CAML correctly, this should work:
<Query>
<Where>
<Eq>
<FieldRef Name='ContentType' />
<Value Type='Text'>CustomTypeName</Value>
</Eq>
</Where>
</Query>
In another test, I'm trying to locate any SPFolder that has a custom metadata property set to a specific value.
<Query>
<Where>
<Eq>
<FieldRef Name='CustomProp' />
<Value Type='Text'>SpecificPropValue</Value>
</Eq>
</Where>
</Query>
In both cases, I'm setting the root for the search to a document library that contains folders, which contain folders, which contain folders (phew.) Also, I'm setting the SPQuery to search recursively.
The folder I'm searching for a two steps down are the farthest down in the tree. I don't want to iterate all the way in to manually locate the folders in question.
Any help would be greatly appreciated. | 0 | [
2,
5373,
255,
25597,
20,
12717,
1903,
3782,
8814,
106,
5618,
69,
19,
4492,
1248,
1541,
800,
3726,
3726,
32,
2206,
101,
5792,
29,
5373,
255,
17,
3782,
8190,
93,
1437,
22,
38,
170,
7428,
149,
5816,
28057,
15,
76,
5792,
26,
3782,
881... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Cross platform format string for variables of type size_t?
===
On a cross platform c/c++ project (Win32, Linux, OSX), I need to use the *printf functions to print some variables of type size\_t. In some environments size_t's are 8 bytes and on others they are 4. On glibc I have the %z option, and on Win32 I can use [%I][1]. Is there an elegant way to handle this?
[1]: http://msdn.microsoft.com/en-us/library/tcxf1dw6.aspx | 0 | [
2,
919,
2452,
2595,
3724,
26,
12157,
16,
1001,
1072,
1,
38,
60,
800,
3726,
3726,
27,
21,
919,
2452,
272,
118,
150,
20512,
669,
13,
5,
4181,
3125,
15,
13024,
15,
13,
759,
396,
6,
15,
31,
376,
20,
275,
14,
1637,
10299,
410,
3719... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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: Match to (aa|bb) (cc)?
===
My regular expression needs to be able to find the strings:
1. Visual Studio 2008
2. Visual Studio Express 2008
3. Visual Basic 2008
4. Visual Basic Express 2008
5. Visual C++ 2008
6. Visual C++ Express 2008
and a host of other similar variants, to be replaced with this one single string
> Visual Studio 2005
I tried "Visual (Basic|C++|Studio) (Express)? 2008", but it is not working. Any ideas?
| 0 | [
2,
1290,
1803,
45,
730,
20,
13,
5,
6887,
1,
3490,
6,
13,
5,
3384,
6,
60,
800,
3726,
3726,
51,
1290,
1803,
2274,
20,
44,
777,
20,
477,
14,
7887,
45,
137,
9,
3458,
1120,
570,
172,
9,
3458,
1120,
2999,
570,
203,
9,
3458,
2125,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Wiimote example programs
===
I'd like to use the Wiimote (accelerometers, gyroscopes, infrared camera, etc, etc, etc) on various applications.
It's a bluetooth device, and I know others have connected it to their computer.
- What's the easiest way to start using it in my software - are there libraries for C#, for instance?
- I want my software to be usable and easily installable - what's the current easiest way to connect a wiimote to the computer? Can I make that process part of my software installation?
-Adam | 0 | [
2,
18238,
20209,
823,
1726,
800,
3726,
3726,
31,
22,
43,
101,
20,
275,
14,
18238,
20209,
13,
5,
1738,
1105,
1252,
17325,
18,
15,
28487,
11555,
18,
15,
17227,
3336,
15,
2722,
15,
2722,
15,
2722,
6,
27,
617,
3767,
9,
32,
22,
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... |
Calculating which tiles are lit in a tile-based game ("raytracing")
===
I'm writing a little tile-based game, for which I'd like to support light sources. But my algorithm-fu is too weak, hence I come to you for help.
The situation is like this: There is a tile-based map (held as a 2D array), containing a single light source and several items standing around. I want to calculate which tiles are lit up by the light source, and which are in shadow.
A visual aid of what it would look like, approximately. The L is the light source, the Xs are items blocking the light, the 0s are lit tiles, and the -s are tiles in shadow.
0 0 0 0 0 0 - - 0
0 0 0 0 0 0 - 0 0
0 0 0 0 0 X 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 L 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 X X X X 0 0
0 0 0 - - - - - 0
0 0 - - - - - - -
A fractional system would be even better, of course, where a tile can be in half-shadow due to being partially obscured. The algorithm wouldn't have to be perfect - just not obviously wrong, not terribly slow.
Any takers? | 0 | [
2,
22937,
56,
14836,
50,
3609,
19,
21,
13,
9802,
8,
1281,
250,
13,
5,
7,
2787,
1939,
6302,
7,
6,
800,
3726,
3726,
31,
22,
79,
1174,
21,
265,
13,
9802,
8,
1281,
250,
15,
26,
56,
31,
22,
43,
101,
20,
555,
471,
2662,
9,
47,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
A C# to VB.Net conversion utility that handles Automatic properties correctly?
===
I hope this isn't considered a duplicate since it's more pointed than similar questions (I'm curious about a specific weakness in C# to VB.net conversion utilities).
I've been looking at using a tool like this [.net code converter][1] to convert a class library to VB since I'm the only one in my group comfortable with C#. The problem I've run into is that it doesn't generate proper VB for automatic properties. It creates empty get/set routines.
So this:
public string TransactionType { get; private set; }
Becomes this:
Public Property TransactionType() As String
Get
End Get
Private Set(ByVal value As String)
End Set
End Property
The tools linked [here][2] and [here][3] have similar issues - some create valid properties, but they don't respect the access level of the set routine.
Side question - If you were going to fix the converter on DeveloperFusion, would you have it return something like this?
Private _TransactionType As String
Public Property TransactionType() As String
Get
Return _TransactionType
End Get
Private Set(ByVal value As String)
_TransactionType = value
End Set
End Property
[1]: http://www.developerfusion.com/tools/convert/csharp-to-vb/
[2]: http://stackoverflow.com/questions/102956/c-vbnet-conversion "here"
[3]: http://stackoverflow.com/questions/88359/what-is-the-best-c-to-vbnet-converter
| 0 | [
2,
21,
272,
5910,
20,
13,
20468,
9,
2328,
6263,
10082,
30,
3053,
18,
6715,
3704,
12044,
60,
800,
3726,
3726,
31,
1376,
48,
2532,
22,
38,
724,
21,
19429,
179,
32,
22,
18,
91,
2489,
119,
835,
2346,
13,
5,
49,
22,
79,
7686,
88,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Should I create a JQuery server control for ASP.net to best use it in my apps?
===
I have been rather successful in promoting JQuery within my organization. No small feat on it's own. However, one of the ideas being kicked around here to make it part of our app is to create an ASP.net server side control. (We are going to be sticking with WebForms for the foreseeable future.)
I'm not too wild about this approach as it seems like overkill when a couple of script tags will do the job. We found an [article][1] on the web, and the amount of code involved really doesn't seem to justify itself. However, I do hear that there is some benefit in the script caching or generating that happens with the server controls.
My questions:
- Has anyone else written an ASP.net server control to serve up the JQuery js code?
- Does anyone else think that this is a crazy idea to just avoid writing JQuery or Javascript code?
[1]: http://www.west-wind.com/WebLog/posts/167052.aspx | 0 | [
2,
378,
31,
1600,
21,
487,
8190,
93,
8128,
569,
26,
28,
306,
9,
2328,
20,
246,
275,
32,
19,
51,
4865,
18,
60,
800,
3726,
3726,
31,
57,
74,
864,
1300,
19,
7248,
487,
8190,
93,
363,
51,
1165,
9,
90,
284,
9806,
27,
32,
22,
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... |
Using PHP to write to OS X's log database?
===
Do any apps/packages exist that will support writing to OS X's log database from external sources. I'm not too familiar with the specifics of the database, beyond the fact that you can view its contents from the Console app. I'm not even sure if it's just a version of some simple DB like SQLite or if it is some sort of proprietary/internal/inaccessible kind of thing.
My best guess so far is that one of two things might be possible:
* It looks like it will accept log entries from natively run apps, so perhaps using some sort of daemon running in the background that could take text inputs and relay it to the log database would work?
* The other alternative that came to mind was if there were some way to access the database directly, in which case a PHP script could simply connect to it to make log entries.
If anyone more knowledgeable could fill in the blanks, I would be very grateful! | 0 | [
2,
568,
13,
26120,
20,
2757,
20,
13,
759,
993,
22,
18,
6738,
6018,
60,
800,
3726,
3726,
107,
186,
4865,
18,
118,
8573,
14465,
3182,
30,
129,
555,
1174,
20,
13,
759,
993,
22,
18,
6738,
6018,
37,
4886,
2662,
9,
31,
22,
79,
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... |
Visual Studio 2005 Not Loading
===
After Visual Studio 2005 displays the splash screen it locks up on me. No error, no cpu utilization, just a frozen splash screen.
I'm sure it's one of the services on my machine, just wonder if anyone else has had the problem and can help me with the hunt?
BTW, it's works in a VM in the same machine. | 0 | [
2,
3458,
1120,
812,
52,
12797,
800,
3726,
3726,
75,
3458,
1120,
812,
9412,
14,
13873,
2324,
32,
12941,
71,
27,
55,
9,
90,
7019,
15,
90,
17578,
28071,
15,
114,
21,
7203,
13873,
2324,
9,
31,
22,
79,
562,
32,
22,
18,
53,
16,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
customize key binding on emacs
===
(defun foo ()
message "hello")
I want to binding the function foo to key 'ctl + l' in the shell mode
can someone show me the code? | 0 | [
2,
5816,
2952,
1246,
8728,
27,
13,
62,
6893,
18,
800,
3726,
3726,
13,
5,
546,
16638,
4310,
111,
13,
5,
6,
2802,
13,
7,
11515,
7,
6,
31,
259,
20,
8728,
14,
1990,
4310,
111,
20,
1246,
13,
22,
4812,
255,
2754,
644,
22,
19,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... |
Dynamically allocated 2D matrix transposition (memory effective)
===
I want to transpose a matrix in C, with as little memory use as possible. Therefore it is not an option to simply create a copy of the matrix, fill it in, and delete the other one afterwards. I thus want to do every swap on the matrix itself, with 1 temp variable to reuse. Matrix elements are indexed with pointer arithmetic, but as far as I'm aware, these are correct. The problem now being that the function doesn't result in any changes. The matrix struct is dynamically allocated and has the folowing structure;
typedef struct {
int rows;
int cols;
int** data;
} matrix;
The transpose function I wrote now looks as follows;
void transpose(matrix* m){
int i,j,temp;
for(i=0;i<m->row;i++){
for(j=0;j<m->col;j++){
temp=*((*(m->data+i))+j);
*((*(m->data+i))+j)=*((*(m->data+j))+i);
*((*(m->data+j))+i)=temp;
}
}
}
I already tried starting the function with
int* temp=(int*)malloc()sizeof(int);
and ending with
free(temp);
That gives me an error in Visual Studio about adres acess. Any tips? | 0 | [
2,
7782,
1326,
11685,
172,
43,
8187,
2982,
9339,
13,
5,
790,
5171,
93,
3140,
6,
800,
3726,
3726,
31,
259,
20,
2982,
15690,
21,
8187,
19,
272,
15,
29,
28,
265,
1912,
275,
28,
938,
9,
1793,
32,
25,
52,
40,
4255,
20,
1659,
1600,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
LINQ to Entity Duplicate Record Issue
===
I am getting duplicate data in this query:
var ids = Array.ConvertAll(categoryIds.Split(','), int.Parse);
List<PublisherImage> images = db.DataModel.PublisherImages.Include("Categories")
.Where(pi => pi.Enabled && pi.Rendered && pi.Categories
.Any(c => ids.Contains(c.ID)))
.OrderByDescending(i => i.OverallScore).ToList();
The duplicate data are the PublisherImages. I am new to all this and not sure why I am getting duplicate image records.
Can anyone help?
Thanks! | 0 | [
2,
6294,
1251,
20,
9252,
19429,
571,
1513,
800,
3726,
3726,
31,
589,
1017,
19429,
1054,
19,
48,
25597,
45,
4033,
13,
9178,
800,
7718,
9,
1126,
8122,
1233,
5,
14375,
93,
9178,
9,
25603,
5,
22,
15,
22,
6,
15,
19,
38,
9,
3574,
87... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Excluding items from a list by object property
===
I'm trying to build a list of items based on their presence in a list.
- `itemsAll` contains all products
- `itemsNew` contains only new products
- I'd like `itemsOld` to contain only old products (i.e. `itemsAll` -
`itemsNew`)
This was my approach, which doesn't return the correct number of items.
var itemsAll = objProductStagingRepository.AllImports(fileId, cid).ToList();
var itemsNew = objProductStagingRepository.DetectNonPresentProductNames(fileId, cid).ToList();
var itemsOld = from t1 in itemsAll where !(from o in itemsNew select o.Id).Contains(t1.Id)
select t1; // this does not work
Does anybody have any suggestions as to how I shuold be approacing this? I have tried `itemsAll.Except(itemsNew)` which also doesn't yield the correct results! | 0 | [
2,
13,
14938,
3755,
37,
21,
968,
34,
3095,
1354,
800,
3726,
3726,
31,
22,
79,
749,
20,
1895,
21,
968,
16,
3755,
432,
27,
66,
1970,
19,
21,
968,
9,
13,
8,
13,
1,
2119,
79,
18,
1233,
1,
1588,
65,
1985,
13,
8,
13,
1,
2119,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Qt - resize QMainWindow based on a child widget?
===
The child-parent hierarchy is the following: mainWindow -> centralWidget -> frame -> widget.
Widget is being resized during the application lifetime, however it is always set to a fixed size. I want the QMainWindow to resize based on that - to have a minimum size that is needed to display all the widgets.
To do that I currently have to do this.
widget->setFixedSize(x, y);
frame->setFixedSize(frame->sizeHint());
centralWidget->setFixedSize(centralWidget->sizeHint());
mainWindow->setFixedSize(mainWindow->sizeHint());
It doesn't work properly if I only resize the main window. All parents of widget need to be resized in order for this to work. Is there a more elegant way? Is it possible to make the main window call resize on all of it's children?
NOTE: All widgets except 'widget' have automatic layout management. So I find it strange that they don't resize themselves based on 'widget'.
| 0 | [
2,
2593,
38,
13,
8,
302,
10454,
2593,
6232,
27508,
432,
27,
21,
850,
4807,
43,
3060,
60,
800,
3726,
3726,
14,
850,
8,
18908,
14417,
25,
14,
249,
45,
407,
27508,
13,
8,
1,
521,
3976,
43,
3060,
13,
8,
1,
3523,
13,
8,
1,
4807,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
XMLHttpRequest automatically replaces backslash (\) with slash (/)
===
I am trying to run a small javascript script. one of the parameters of the XMLHttpRequest is a file path, so a URL would look like:
http://myaddress:myport/action/C:\\PATH\\TO\\MY\\FILE.EXT/some/other/params
however, XMLHttpRequest changes the address to
http://myaddress:myport/action/C://PATH//TO//MY//FILE.EXT/some/other/params
which breaks the application. How can I prevent XMLHttpRequest from changing the requested address? | 0 | [
2,
23504,
21127,
99,
10351,
7499,
3934,
18,
97,
18,
9545,
13,
5,
1,
6,
29,
14098,
13,
5,
118,
6,
800,
3726,
3726,
31,
589,
749,
20,
485,
21,
284,
8247,
8741,
3884,
9,
53,
16,
14,
12905,
16,
14,
23504,
21127,
99,
10351,
25,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I use Matplotlib with different axes
===
Does anyone know how can i draw more lines with matplotlib.pyplot.plot but forcing them to use its own axes?
eg I have data in lists a b c
a is the base of the others (time), so I would like to draw how b and c changes
but b contains big numbers and c contains small numbers, so when i draw both then i can see only b
thanks
| 0 | [
2,
184,
92,
31,
275,
4277,
13221,
38,
8326,
29,
421,
10398,
18,
800,
3726,
3726,
630,
1276,
143,
184,
92,
31,
2003,
91,
1560,
29,
4277,
13221,
38,
8326,
9,
6448,
13221,
38,
9,
13221,
38,
47,
6135,
105,
20,
275,
82,
258,
10398,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Run selenium webdrivers from applet in HTML
===
I need to invoke Selenium from Client Side, so I'm trying to run Selenium from a Java Applet in a static HTML page.
I'm using firefox 3.6.12 in SUSE Linux environment.
The HTML page looks like this
<HTML>
<HEAD>
</HEAD>
<BODY>
<APPLET ALIGN="CENTER" CODE="SeleniumTest.class" WIDTH="800"
HEIGHT="500" archive="/home/******/Selenium/selenium-2.20.0/selenium-
server-standalone-2.20.0.jar,/home/******/Selenium/selenium-2.20.0/
selenium-java-2.20.0.jar,/home/*******/Selenium/selenium-2.20.0/
selenium-firefox-driver-2.0a5.jar" ></APPLET>
</BODY>
</HTML>
The Applet was loaded and info statements were printed. But, during
the creation of webdriver, I'm getting the below exception in Java
Console and it stops there.
Exception in thread "AWT-EventQueue-8" java.lang.NoClassDefFoundError:
Could not initialize class
org.openqa.selenium.firefox.internal.Executable
at
org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:
56)
at
org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:
52)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:
84)
at SeleniumTest.getWebDriver(SeleniumTest.java:36)
at SeleniumTest.runTest(SeleniumTest.java:85)
at SeleniumTest.paint(SeleniumTest.java:23)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.X11.XRepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.X11.XComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I have added the 'selenium-firefox-driver-2.0a5.jar' to my 'archive'
attribute of Applet declaration in HTML.
Is applet capable of doing such operations ? (Since, it uses JVM, I guess it should be)
What else should I do to overcome this issue ?
Is there any work-around to start selenium from browser other than using java applets ?
PS: When I try to run the Applet alone in eclipse, it works fine. But, I get this problem when I open it in browser. | 0 | [
2,
485,
23027,
14311,
2741,
21752,
18,
37,
4037,
38,
19,
13,
15895,
800,
3726,
3726,
31,
376,
20,
28371,
23027,
14311,
37,
6819,
270,
15,
86,
31,
22,
79,
749,
20,
485,
23027,
14311,
37,
21,
8247,
4037,
38,
19,
21,
12038,
13,
158... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Automatic Update and checkin of AssemblyInfo.cs files occasionally causes partial fail
===
We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in the project, update them with AssemblyInfoTask, and then either undo the checkout or checkin depending on whether the build passed or not. Unfortunately, when two builds are queued close together this results in a Partially completed build as the AssemblyInfo.cs files seem to be checked out at an earlier version to the previous checkin.
In order to get around this I thought that I could use the "Get" task to force the AssemblyInfo.cs files to the latest version before updating them, but this appears to have no effect. Any ideas?
<Target Name="AfterGet" Condition="'$(IsDesktopBuild)'!='true'">
<Message Text="SolutionRoot = $(SolutionRoot)" />
<Message Text="OutDir = $(OutDir)" />
<!-- Set the AssemblyInfoFiles items dynamically -->
<CreateItem Include="$(SolutionRoot)\Main\Source\InputApplicationSln\**\$(AssemblyInfoSpec)">
<Output ItemName="AssemblyInfoFiles" TaskParameter="Include" />
</CreateItem>
<Message Text="$(AssemblyInfoFiles)" />
<!-- When builds are queued up successively, it is possible for the next build to be set up before the AssemblyInfoSpec is checked in so we need to force
the latest these versions of these files to be got before a checkout -->
<Get Condition=" '$(SkipGet)'!='true' " TeamFoundationServerUrl="$(TeamFoundationServerUrl)" Workspace="$(WorkspaceName)" Filespec="$(AssemblyInfoSpec)" Recursive="$(RecursiveGet)" Force="$(ForceGet)" />
<Exec WorkingDirectory="$(SolutionRoot)\Main\Source\InputApplicationSln"
Command="$(TF) checkout /recursive $(AssemblyInfoSpec)"/>
</Target>
<Target Name="AfterCompile" Condition="'$(IsDesktopBuild)'!='true'">
<Exec WorkingDirectory="$(SolutionRoot)\Main\Source\InputApplicationSln"
Command="$(TF) checkin /comment:"***NO_CI***" /noprompt /override:"Auto-Build: Version Update" /recursive $(AssemblyInfoSpec)"/> | 0 | [
2,
6715,
11100,
17,
2631,
108,
16,
1475,
108,
4120,
9,
6824,
6488,
4533,
4047,
7284,
7476,
800,
3726,
3726,
95,
57,
13,
11720,
18,
570,
318,
1895,
309,
71,
20,
2631,
1320,
65,
1475,
108,
4120,
9,
6824,
6488,
19,
14,
669,
15,
111... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Comparing VB6.exes
===
We're going through a massive migration project at the minute and trying to validate the code that is deployed to the live estate matches the code we have in source control.
Obviously the .net code is easy to compare because we can disassemble. I don't believe this is possible in vb6 exes because of the manner of compilation.
Does anyone have any ideas on how I could validate the source code and the compiled executable matches the file I have in Live.
Thanks
| 0 | [
2,
15047,
13,
20468,
379,
9,
1706,
160,
800,
3726,
3726,
95,
22,
99,
228,
120,
21,
3787,
8443,
669,
35,
14,
2038,
17,
749,
20,
7394,
1373,
14,
1797,
30,
25,
6698,
20,
14,
515,
2028,
1717,
14,
1797,
95,
57,
19,
1267,
569,
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... |
Linux users and groups for a LAMP server
===
What is the best practice for setting up a LAMP server in terms of linux users and groups? If there are multiple sites hosted on the same server, is it best to have a single user that owns all site source files (and uploads) that is in the same group as apache - or to have a different user for each site (so that each site has its own crontab)? Or something else entirely?
For some reason, this question never seems to be addressed in PHP/MySQL/Linux books that I've encountered. | 0 | [
2,
13024,
3878,
17,
1170,
26,
21,
6792,
8128,
800,
3726,
3726,
98,
25,
14,
246,
1345,
26,
2697,
71,
21,
6792,
8128,
19,
1663,
16,
13024,
3878,
17,
1170,
60,
100,
80,
50,
1886,
3259,
2812,
27,
14,
205,
8128,
15,
25,
32,
246,
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... |
Best way to keep config files under SVN ?
===
What is the best way to keep your configuration files (e.g httpd.conf, my.cnf, .bashrc ...) under version control?
In adition to the versioning benefit, I want the solution to work as backup as well, so that I can bring a brand new server and checkout (or export) the config files out of SVN directly
A good touch will be to store the config file`s original path as well. | 0 | [
2,
246,
161,
20,
643,
13,
14093,
2816,
6488,
131,
13,
18,
16578,
13,
60,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
643,
154,
8091,
6488,
13,
5,
62,
9,
263,
7775,
43,
9,
14093,
15,
51,
9,
150,
11408,
15,
13,
9,
6093,
3112,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Discover what process/query is using oracle temp tablespace.
===
Oracle FAQ defines temp table space as follows:
> Temporary tablespaces are used to
> manage space for database sort
> operations and for storing global
> temporary tables. For example, if you
> join two large tables, and Oracle
> cannot do the sort in memory, space
> will be allocated in a temporary
> tablespace for doing the sort
> operation.
That's great, but I need more detail about what exactly is using the space. Due to quirks of the application design most queries do some kind of sorting, so I need to narrow it down to client executable, target table, or SQL statement.
Essentially, I'm looking for clues to tell me more precisely what might be wrong with this (rather large application). Any sort of clue might be useful, so long as it is more precise than "sorting". | 0 | [
2,
6297,
98,
953,
118,
8190,
93,
25,
568,
15759,
13,
9577,
859,
5582,
9,
800,
3726,
3726,
15759,
1399,
1251,
13110,
13,
9577,
859,
726,
28,
2415,
45,
13,
1,
4700,
859,
5582,
18,
50,
147,
20,
13,
1,
4705,
726,
26,
6018,
2058,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to validate a credit card number?
===
Given a credit card number and no additional information, what is the best way in PHP to determine whether or not it is a valid number?
Right now I need something that will work with American Express, Discover, MasterCard, and Visa, but it might be helpful if it will also work with other types. | 0 | [
2,
184,
20,
7394,
1373,
21,
3251,
2056,
234,
60,
800,
3726,
3726,
504,
21,
3251,
2056,
234,
17,
90,
1351,
676,
15,
98,
25,
14,
246,
161,
19,
13,
26120,
20,
3746,
1472,
54,
52,
32,
25,
21,
7394,
234,
60,
193,
130,
31,
376,
30... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I integrate VSS 6 so that VB 6 automatically checks out when editing?
===
I'm using Visual Studio 6.0 and Visual Basic 6.0.
I have them integrated but when I check out a Project and then try to edit a module in that project it's locked and I have to manually right-click on it and do a Check Out to unlock it.
I thought there was a way to have VSS automatically check out the file for editing.
Any suggestions? | 0 | [
2,
184,
107,
31,
18399,
4611,
18,
400,
86,
30,
13,
20468,
400,
7499,
16602,
70,
76,
9510,
60,
800,
3726,
3726,
31,
22,
79,
568,
3458,
1120,
400,
9,
387,
17,
3458,
2125,
400,
9,
387,
9,
31,
57,
105,
5547,
47,
76,
31,
2631,
70... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Adding Text to Clipboard on Click of ListView Column Header - C#
===
Is there a an event for ListViews that are activated when one of the column headers are clicked on? The plan was to add some text to the user's clipboard when they click on the column header. Is there any easy way to do this?
Thanks for any help you can give on the subject, I appreciate it! | 0 | [
2,
4721,
1854,
20,
12229,
2806,
27,
10840,
16,
968,
4725,
4698,
157,
106,
13,
8,
272,
5910,
800,
3726,
3726,
25,
80,
21,
40,
807,
26,
968,
4725,
18,
30,
50,
9654,
76,
53,
16,
14,
4698,
157,
445,
50,
15802,
27,
60,
14,
944,
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... |
Hibernate mappings with a descriminator
===
I have a table with one field that can point to a foreign key in one of 3 other tables based on what the descriminator value is (Project, TimeKeep, or CostCenter. Usually this is implemented with subclasses, and I am wondering if what I have below will work. **Note the subclass name is the same as the parent class and the noteObject property is mapped to an instance variable of type java.lang.Object** so it should accept either a Project, TimeKeep or CostCenter object as long as we cast to the correct type. Will hibernate allow this? Thanks.
<hibernate-mapping package="com.tlr.finance.mappings">
<class name="AdminNotes" table="admin_notes">
<id name="adminNoteId" column="admin_note_id" type="integer">
<generator class="identity" />
</id>
<discriminator column="note_type" type="string" />
<!-- make this property an enumerated type. It is the discriminator -->
<property name="adminNoteType" column="note_type" type="string" not-null="true" />
<property name="adminNote" column="note" type="string" not-null="true" />
<property name="adminNoteAdded" column="note_date" type="timestamp"
not-null="true" />
<subclass name="AdminNotes" discriminator-value="project" >
<many-to-one name="noteObject" column="object_id" class="PsData" /><!-- Project -->
</subclass>
<subclass name="AdminNotes" discriminator-value="user" >
<!-- rename timekeep to user -->
<many-to-one name="noteObject" column="object_id" class="Timekeep" /><!-- user -->
</subclass>
<subclass name="AdminNotes" discriminator-value="costCenter" >
<!-- rename timekeep to user -->
<many-to-one name="noteObject" column="object_id" class="CostCenter" /><!-- cost center -->
</subclass>
</class>
</hibernate-mapping> | 0 | [
2,
4148,
2102,
8820,
13305,
18,
29,
21,
1746,
10982,
28607,
800,
3726,
3726,
31,
57,
21,
859,
29,
53,
575,
30,
92,
454,
20,
21,
1228,
1246,
19,
53,
16,
203,
89,
7484,
432,
27,
98,
14,
1746,
10982,
28607,
1923,
25,
13,
5,
21011... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Checking to see if a DOM element has focus.
===
I've got a lightbox textbox that is displayed using an AJAX call from an ASP.NET UpdatePanel. When the lightbox is displayed, I use the `focus()` method of a textbox that is in the lightbox to bring focus to the textbox right away.
When in Firefox, the text box gains focus with no problem. In IE, the text box does not gain focus unless I use
setTimeout(function(){txtBx.focus()}, 500);
to make the focus method fire slightly later, after the DOM element has been loaded I'm assuming.
The problem is, immediately above that line, I'm already checking to see if the element is null/undefined, so the object already should exist if it hits that line, it just won't allow itself to gain focus right away for some reason.
Obviously setting a timer to "fix" this problem isn't the best or most elegant way to solve this. I'd like to be able to do something like the following:
var txtBx = document.getElementById('txtBx');
if (txtPassword != null) {
txtPassword.focus();
while (txtPassword.focus === false) {
txtPassword.focus();
}
}
Is there any way to tell that a text box has focus so I could do something like above?
Or am I looking at this the wrong way? | 0 | [
2,
9886,
20,
196,
100,
21,
11859,
4520,
63,
1776,
9,
800,
3726,
3726,
31,
22,
195,
330,
21,
471,
5309,
1854,
5309,
30,
25,
6115,
568,
40,
20624,
645,
37,
40,
28,
306,
9,
2328,
11100,
3206,
532,
9,
76,
14,
471,
5309,
25,
6115,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
customized pages in TFS 2008
===
Can we extend the Team Site to host our own pages. i.e. Does TFS allows you to add pages/web parts that are developed by us. I have found few clues in Google but no one could elaborate properly. | 0 | [
2,
28779,
4434,
19,
13,
11720,
18,
570,
800,
3726,
3726,
92,
95,
7206,
14,
173,
689,
20,
2015,
318,
258,
4434,
9,
31,
9,
62,
9,
630,
13,
11720,
18,
2965,
42,
20,
3547,
4434,
118,
14113,
1341,
30,
50,
885,
34,
182,
9,
31,
57,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... |
I need help styling FormItem components in Flex.
===
I have a form that I would like to style. specifcally I would like to chnage the background color of the form item's label. (the backgorundColor attribute changes both the label and the inputs background color)
i.e.
<pre>
<code>
<mx:Form>
<mx:FormItem label="username:">
<mx:TextInput />
</mx:FormItem>
</mx:Form>
</code>
</pre>
I would like to make the label with 'username:' have a different background color, but have the text input still be the default background color.
is this possible with a FormItem ? | 0 | [
2,
31,
376,
448,
23020,
26,
15958,
79,
5090,
19,
14409,
9,
800,
3726,
3726,
31,
57,
21,
505,
30,
31,
83,
101,
20,
1034,
9,
12737,
821,
150,
1326,
31,
83,
101,
20,
6193,
103,
1303,
14,
2395,
1665,
16,
14,
505,
9101,
22,
18,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to move a ClickOnce deployment package
===
I have a collection of clickOnce packages in a publish folder on a network drive and need to move them all to another server (our DR machine).
After copy/pasting the whole directory and running the setups on the new machine I get an error message stating that it cannot find the old path:
> Activation of
> ...MyClickOnceApp.application resulted
> in exception. Following failure
> messages were detected:
>
> \+ Downloading file://oldMachine/c$/MyClickOnceApp.application did not succeed.
>
> \+ Could not find a part of the path '\\\oldMachine\c$\MyClickOnceApp.application'.
Once I change the installation url to point at my new machine, I get another error:
> Manifest XML signature is not valid.
>
>\+ The digital signature of the object did not verify.
I've tried using Mage.exe, to modify the deployment URL, but it asks for a certificate, which i don't have.
Does anyone know what I am doing wrong, or know how to successfully move publshed clickonce packages.
Thanks.
| 0 | [
2,
184,
20,
780,
21,
10840,
13120,
10475,
6030,
800,
3726,
3726,
31,
57,
21,
1206,
16,
10840,
13120,
16875,
19,
21,
10824,
19294,
27,
21,
982,
1493,
17,
376,
20,
780,
105,
65,
20,
226,
8128,
13,
5,
4110,
744,
1940,
6,
9,
75,
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... |
SVN URL Format
===
I have TurtoiseSVN and ankhSVN installed. I created a repository on my computer.. "C:\Documents and Settings\user1\My Documents\Subversion\Repository\"
I am trying to connect to this repository from my co-workers computer. What should this URL be?
Any help would be great. Thanks. | 0 | [
2,
13,
18,
16578,
287,
6362,
2595,
800,
3726,
3726,
31,
57,
6205,
38,
16238,
18,
16578,
17,
40,
4278,
18,
16578,
4066,
9,
31,
679,
21,
24869,
27,
51,
1428,
9,
9,
13,
7,
150,
45,
1,
28132,
18,
17,
12410,
1,
16704,
165,
1,
915... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
LINQ - which layer should LINQ typically fall into, DAL ?
===
just wanted to gather different ideas and perspectives as to which layer should (and why) LINQ fall into? | 0 | [
2,
6294,
1251,
13,
8,
56,
5385,
378,
6294,
1251,
2442,
1080,
77,
15,
6868,
13,
60,
800,
3726,
3726,
114,
417,
20,
7442,
421,
3478,
17,
18452,
28,
20,
56,
5385,
378,
13,
5,
290,
483,
6,
6294,
1251,
1080,
77,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What are your favorite LogParser Scripts?
===
What are you favorite LogParser 2.2 Scripts to run against IIS logs and Event logs?
I am putting a list of scripts together to run against our production environment to proactively look for issues and to help when isolating performance problems.
Do you have a certain list of LogParser 2.2 scripts that you use? | 4 | [
2,
98,
50,
154,
3839,
6738,
3574,
4104,
17505,
60,
800,
3726,
3726,
98,
50,
42,
3839,
6738,
3574,
4104,
172,
9,
135,
17505,
20,
485,
149,
595,
18,
18893,
17,
807,
18893,
60,
31,
589,
3873,
21,
968,
16,
17505,
429,
20,
485,
149,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Watermarked Textbox for Compact Framework
===
Does anyone know if anyone makes a watermarked textbox control for the compact framework?
I already loked at the following and didn't see one.
[Component One Mobile][1]
[Pocket PC Controls][2]
[Resco Mobile Forms Toolkit][3]
[1]: http://www.componentone.com/SuperProducts/StudioMobile/
[2]: http://www.pocketpccontrols.com/
[3]: http://www.resco.net/developer/mobileformstoolkit/overview.aspx | 0 | [
2,
308,
22048,
1854,
5309,
26,
8285,
6596,
800,
3726,
3726,
630,
1276,
143,
100,
1276,
1364,
21,
308,
22048,
1854,
5309,
569,
26,
14,
8285,
6596,
60,
31,
614,
12929,
69,
35,
14,
249,
17,
223,
22,
38,
196,
53,
9,
636,
11103,
218,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 convert HTML to Textile?
===
I'm scraping a static html site and moving the content into a database-backed CMS. I'd like to use Textile in the CMS.
Is there a tool out there that converts HTML into Textile, so I can scrape the existing site, convert the HTML to Textile, and insert that data into the database? | 0 | [
2,
184,
92,
31,
8406,
13,
15895,
20,
9770,
60,
800,
3726,
3726,
31,
22,
79,
25611,
21,
12038,
13,
15895,
689,
17,
1219,
14,
2331,
77,
21,
6018,
8,
18614,
2390,
18,
9,
31,
22,
43,
101,
20,
275,
9770,
19,
14,
2390,
18,
9,
25,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Making secure code a focus for your development team
===
How do you go about promoting secure coding practice in a development team? | 0 | [
2,
544,
4315,
1797,
21,
1776,
26,
154,
522,
173,
800,
3726,
3726,
184,
107,
42,
162,
88,
7248,
4315,
13,
15458,
1345,
19,
21,
522,
173,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What LogParser UI do you use?
===
I just started using [Log Parser Lizard][1] to examine my IIS and Event logs.
What UI tool do you use on top of LogParser 2.2 to view your log files on production?
[1]: http://www.lizardl.com/PageHtml.aspx?lng=2&PageId=18 | 0 | [
2,
98,
6738,
3574,
4104,
13,
5661,
107,
42,
275,
60,
800,
3726,
3726,
31,
114,
373,
568,
636,
5567,
2017,
4104,
13322,
500,
2558,
165,
500,
20,
9691,
51,
595,
18,
17,
807,
18893,
9,
98,
13,
5661,
5607,
107,
42,
275,
27,
371,
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... |
using subversion with a really really big site
===
I'm a big subversion fan and am just about to take over a big site (200mb approx.) I've trimmed down the main site from an original size of 500MB!!
I'm about to check this site into a new subversion repository. The problem is, my subversion repository is remotely hosted so that another colleague can also work on the site.
I'm concerned about having to check in and out 200MB every time I have to make updates to the site.
Development is quite active so there will be lots of things changing on an ongoing basis.
Assuming I get everything checked in ok, will subversion ensure it's only download new/amended files/folders each time I do a new checkout or will I be waiting for 200MB to download every time? | 0 | [
2,
568,
972,
10898,
29,
21,
510,
510,
580,
689,
800,
3726,
3726,
31,
22,
79,
21,
580,
972,
10898,
2514,
17,
589,
114,
88,
20,
247,
84,
21,
580,
689,
13,
5,
4621,
5024,
13,
19896,
9,
6,
31,
22,
195,
25726,
125,
14,
407,
689,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Learning game programming
===
Quick question: I've been in the web-dev world for several years now, I've wrapped my head around Java, Python, PHP, C# and Ruby- and currently make my living as a C#.NET programmer and I want to learn game development for real, no "build your own 2d sprite game over 14 days"-bs, the real deal. Where do I start? learning C? learning C++? Assembler? I've tried searching the net but most things I find is just tutorials of the "build something quick but don't really learn anything"-type.
I am well aware that this is a **huge endeavor**, yes - but my current realm of problems (the web side of things) is not giving me anymore challenges, or at least challenges that can't be answered by five minutes of searching on google or a question on stack overflow. I need to **teach** myself something, anyway: My long term goal (several years) is to build a simple 3d engine and create a simple game within it.
So where do I start? I know basically nothing about gaming programing, I've done my fair share of threading and networking in both python and java, but I know nothing of graphics or sound programming, Direct X, OpenGL, etc. and I'm pretty lost on what platform (Windows/Linux) to start, which language to teach myself, etc.
I suppose a long term pipe dream would be to get employed as a network programmer or graphics programmer at a game development company, but I'm aware that is many, many, **many** years away.
Right now I'm looking for advice on this:
- What language should I learn? C or C++?
- Books I should read
- Subjects to focus on
And let me repeat, I'm aware of how huge this is - but I need to learn, or I get boored. | 0 | [
2,
2477,
250,
3143,
800,
3726,
3726,
2231,
1301,
45,
31,
22,
195,
74,
19,
14,
2741,
8,
14438,
126,
26,
238,
122,
130,
15,
31,
22,
195,
3684,
51,
157,
140,
8247,
15,
20059,
15,
13,
26120,
15,
272,
5910,
17,
10811,
8,
17,
871,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Clone Debian/Ubuntu installation
===
**Is there an easy way of cloning entire installed debian/ubuntu system?**
I want to have identical installation in terms of installed packages and as much as possible of settings.
I've looked into options of aptitude, apt-get, synaptic but have found nothing.
| 2 | [
2,
13871,
121,
10035,
118,
4502,
1020,
2473,
7758,
800,
3726,
3726,
13,
1409,
403,
80,
40,
2010,
161,
16,
19226,
68,
1078,
4066,
121,
10035,
118,
4502,
1020,
2473,
329,
60,
1409,
31,
259,
20,
57,
6323,
7758,
19,
1663,
16,
4066,
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... |
WPF Data Binding and IValueConverter
===
Why is it that when I use a converter in my binding expression in WPF, the value is not updated when the data is updated.
I have a simple Person data model:
class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
My binding expression looks like this:
<TextBlock Text="{Binding Converter={StaticResource personNameConverter}" />
My converter looks like this:
class PersonNameConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Person p = value as Person;
return p.FirstName + " " + p.LastName;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
If I bind the data without a converter it works great:
<TextBlock Text="{Binding Path=FirstName}" />
<TextBlock Text="{Binding Path=LastName}" />
What am I missing? | 0 | [
2,
619,
7721,
1054,
8728,
17,
31,
15165,
1126,
8122,
106,
800,
3726,
3726,
483,
25,
32,
30,
76,
31,
275,
21,
25893,
19,
51,
8728,
1803,
19,
619,
7721,
15,
14,
1923,
25,
52,
6372,
76,
14,
1054,
25,
6372,
9,
31,
57,
21,
1935,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Syntax Highlighting VS Addins
===
What tools our out there that compete with this product.
[CodeKana][1]
[1]: http://www.codekana.com/
I know ReSharper has improved syntax highlighting. Is it comparable to this? | 0 | [
2,
22649,
23102,
4611,
3547,
108,
18,
800,
3726,
3726,
98,
4672,
318,
70,
80,
30,
3975,
29,
48,
2374,
9,
636,
9375,
2825,
58,
500,
2558,
165,
500,
636,
165,
500,
45,
7775,
6903,
6483,
9,
9375,
2825,
58,
9,
960,
118,
31,
143,
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,
0,
0,
0,
0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.