unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Can anyone point me to Spring MVC, Tiles, Freemarker integration example?
===
In my Spring MVC based applications i use Freemarker and i like it very much, but it's lacking advantages provided by Composite View pattern.
I'm thinking of trying to use Tiles2 together with Freemarker - does anyone know where do i find a simple example of SpringMVC together with Tiles2+Freemarker? | 0 | [
2,
92,
1276,
454,
55,
20,
1573,
307,
8990,
15,
14836,
15,
551,
4527,
106,
8078,
823,
60,
800,
3726,
3726,
19,
51,
1573,
307,
8990,
432,
3767,
31,
275,
551,
4527,
106,
17,
31,
101,
32,
253,
212,
15,
47,
32,
22,
18,
11690,
14683... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 access netstat-like Ethernet statistics from a Windows program
===
How can I access Ethernet statistics from C/C++ code like **netstat -e**?
Interface Statistics
Received Sent
Bytes 21010071 15425579
Unicast packets 95512 94166
Non-unicast packets 12510 7
Discards 0 0
Errors 0 3
Unknown protocols 0
| 0 | [
2,
184,
92,
31,
1381,
4275,
10631,
8,
1403,
27820,
5818,
37,
21,
1936,
625,
800,
3726,
3726,
184,
92,
31,
1381,
27820,
5818,
37,
272,
118,
150,
20512,
1797,
101,
13,
1409,
2328,
10631,
13,
8,
62,
1409,
60,
6573,
5818,
420,
795,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 run C/C++ in a unix console/mac terminal?
===
I know it, forgot it and relearn it again. Time to write it down. | 0 | [
2,
184,
20,
485,
272,
118,
150,
20512,
19,
21,
22540,
8650,
118,
6893,
3855,
60,
800,
3726,
3726,
31,
143,
32,
15,
9564,
32,
17,
302,
413,
10818,
32,
188,
9,
85,
20,
2757,
32,
125,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
JQuery and frames - $(document).ready doesn't work
===
I have a page, with some code in js and jQuery and it works very well. But unfortunetly, all my site is very very old, and uses frames. So when I loaded my page inside a frame, $(document).ready() doesn't fire up.
My frameset looks like:
<frameset rows="79,*" frameBorder="1" frameSpacing="1" bordercolor="#5996BF" noresize>
<frame name="header" src="Operations.aspx?main='Info.aspx'" marginwidth="0" marginheight="0" scrolling="no" noresize frameborder="0">
<frame name="main" src="Info.aspx" marginwidth="0" marginheight="0" scrolling="auto" noresize frameborder="0">
</frameset>
My page is loaded into 'main' frame. What schould I do?
Please help :) | 0 | [
2,
487,
8190,
93,
17,
12809,
13,
8,
5579,
5,
28132,
6,
9,
15193,
1437,
22,
38,
170,
800,
3726,
3726,
31,
57,
21,
2478,
15,
29,
109,
1797,
19,
487,
18,
17,
487,
8190,
93,
17,
32,
693,
253,
134,
9,
47,
367,
6469,
6763,
38,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you collect programming knowledge
===
Everyday we are faced with programming problems ranging from easy to complex. For me it is important to record that knowledge so that I can find it in the future. The features that I consider that most important is recording ease of use (WYSIWIG would be good), good search capabilities and perhaps hierarchical organization or tags enabled.
**What tools do you use to collect programming knowledge?**
Try to give one solution per answer. Perhaps something like a short one liner clear description followed by a blank line and a paragraph explaining the rationale for your solution. You can include what you consider the strong and weak points of your choice. | 4 | [
2,
184,
107,
42,
5543,
3143,
1918,
800,
3726,
3726,
10789,
95,
50,
3110,
29,
3143,
1716,
7657,
37,
2010,
20,
1502,
9,
26,
55,
32,
25,
681,
20,
571,
30,
1918,
86,
30,
31,
92,
477,
32,
19,
14,
1022,
9,
14,
967,
30,
31,
3563,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Embedding Flash / Flex component into Java app
===
I'm working on some Flex spike in my company. We are basically evaluating different scenarios etc. What solution would you recommend for embedding Flex components into Java app? Flex <-> Java communication is not (yet...) an issue, just embedding swf into JFrame. | 0 | [
2,
11911,
69,
3258,
4433,
13,
118,
14409,
5912,
77,
8247,
4865,
800,
3726,
3726,
31,
22,
79,
638,
27,
109,
14409,
6734,
19,
51,
237,
9,
95,
50,
11374,
26764,
421,
19611,
2722,
9,
98,
4295,
83,
42,
12360,
26,
11911,
69,
3258,
144... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Hash character in path throws DirectoryNotFoundException
===
Consider the following code snippet
private void ProcessFile(string fullPath) {
XmlTextReader rdr = new XmlTextReader("file:\\\\" + fullPath);
while (rdr.Read()) {
//Do something
}
return;
}
Now, this functions fine when passed a path like:
<p>"C:\Work Files\Technical Information\Dummy.xml"</p>
But throws an error when passed
<p>"C:\Work Files\#Technical Information\Dummy.xml"</p>
<p>Note that all folders and files specified exist and that the hash character is a valid character for paths. The error details are:</p>
<p>System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Work Files\'.
<br> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
<br> at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
<br> at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
<br> at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
<br> at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
<br> at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
<br> at System.Threading.CompressedStack.runTryCode(Object userData)
<br> at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
<br> at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
<br> at System.Xml.XmlTextReaderImpl.OpenUrl()
<br> at System.Xml.XmlTextReaderImpl.Read()
<br> at System.Xml.XmlTextReader.Read()
<p>Anybody know what's going on? | 0 | [
2,
19170,
925,
19,
2013,
13566,
16755,
1270,
12235,
10066,
872,
800,
3726,
3726,
3563,
14,
249,
1797,
13,
29061,
932,
11364,
953,
16877,
5,
11130,
503,
8353,
6,
13,
1,
23504,
11969,
10647,
106,
13,
897,
139,
800,
78,
23504,
11969,
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... |
Reducing coding standards 'brainwashing' duration and effort of new hires.
===
At my current job we're pretty strict about code quality and coding standards. All new hires go through a 'brainwashing' period in which time senior developers coach them to write (hopefully) better code.
The code review process is meticulous and it normally halves the productivity of the developers doing the review. And sometimes the 'brainwashing' period drags on for 2 or 3 months. Sometimes corrections are subtle (e.g. structuring an IF statement so that it short circuits as early as possible) and sometimes you can't help but to raise an eyebrow (e.g. declare a string and set it to String.Empty and on the very next line assign it another value).
**I'm looking for suggestions to reduce the time and effort to get new hires assimilated to coding standards of the team.**
What are others doing in similar circumstances? What processes or tools are you guys using? Is there a way to automate this? I've considered *FxCop* but haven't actually tried it and don't know if it would really help reduce time and effort or if it is even the right tool? For logistical reasons we can't do *pair programming* if that was a suggestion. And I would be dubious about it reducing the effort.
We have tried maintaining an in-house wiki of 'corrections' but that is failing dismally. Lack of enforcement and also because it's easier to 'have someone correct your mistakes' rather then 'read up and try and prevent the mistakes'.
Also, how are you guys drilling it into new hires that code quality is important? And do you guys weed out those who are lackadaisical towards quality at the interview or do you try to change them after they're hired?
Many thanks. | 0 | [
2,
7974,
13,
15458,
3364,
13,
22,
20128,
10903,
68,
22,
9403,
17,
2150,
16,
78,
10039,
18,
9,
800,
3726,
3726,
35,
51,
866,
1205,
95,
22,
99,
1772,
8170,
88,
1797,
2190,
17,
13,
15458,
3364,
9,
65,
78,
10039,
18,
162,
120,
21,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MIDL generates the same file for /env win32 and /env win64
===
In Visual Studio, when you compile foo.idl, MIDL generates the proxy information in foo_p.c.
Unfortunately, for Win32 and x64 files, it generates the same file. For Win32, the file starts with:
#if !defined(_M_IA64) && !defined(_M_AMD64)
For x64, the file starts with:
#if defined(_M_AMD64)
When you build for Win32 and then immediately build for x64, it doesn't replace the foo_p.c file, meaning that the project fails to link.
I tried having a pre-build event that deletes the foo_p.c file if it's for the wrong architecture, but VS doesn't even bother to run that step.
How should I get it so that I can build one configuration and then the other?
| 0 | [
2,
907,
255,
7920,
18,
14,
205,
3893,
26,
13,
118,
219,
710,
628,
3125,
17,
13,
118,
219,
710,
628,
3470,
800,
3726,
3726,
19,
3458,
1120,
15,
76,
42,
26561,
4310,
111,
9,
1340,
255,
15,
907,
255,
7920,
18,
14,
27188,
676,
19,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
First page of MS Access Report does not seem to call On Page Event
===
I have coded a MS Access 2000 report that displays a calendar with one month per page and projects added to particular days. The only data in the underlying record source is a list of months. The structure is created via the On Page event, which also reads in other data.
When this report is opened, I've noticed that the On Page event does not seem to be triggered for the first page. (I attribute this to the fact that On Page in reports is activated when a page is cached rather than when a page is displayed, such as On Current for Access forms.)
When the report is displayed my work around is to use the On Activate event to force the On Page subroutine to run even though that event has not been called. However when the report is exported it does not trigger the On Activate event and the first page of the export is in one of two formats:
1) if the report was open in Access (ie On Activate had been triggered previously) the first page is identical to either the page after the one being displayed or the last page, except with the correct month (which comes from the underlying record source)
2) if the report was not open in Access the first page contains just the structure within the report design view (ie lots of empty boxes)
My best workaround is to force a (otherwise pointless) cover page to ensure the first page contains nothing that needs code to run, but this is far from ideal. Can I force the code to run for the first page of an export? Or maybe I'm misunderstanding how On Page works and I need to restructure my code? (I've also noticed that On Page seems to run twice for the last page). | 0 | [
2,
64,
2478,
16,
4235,
1381,
1330,
630,
52,
2260,
20,
645,
27,
2478,
807,
800,
3726,
3726,
31,
57,
13,
22254,
21,
4235,
1381,
824,
1330,
30,
9412,
21,
7036,
29,
53,
1617,
416,
2478,
17,
2314,
905,
20,
1498,
509,
9,
14,
104,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SQL Server Active Directory Import Issues with British Summer Time (BST)
===
I'm using SQL Server ADSI to import data from Active Directory and using the whenChanged field to control if I need to reimport the members of a group.
Problem is the date is being returned in GMT and I'm currently in BST.
So, did a member change at 9:50 this morning, the AD tools I have say 9:50, but the ADSI query returns 8:50. This means if there are two changes within an hour I will miss one.
The query I am using looks like this:
Select distinguishedName, whenChanged
From OpenQuery(ADSI, '<LDAP://OU=Groups,DC=mydomain,DC=adr>;(objectCategory=Group);distingusihedName, whenChanged')
Is there another field I could use that would give me an accurate date? Is there a better way to do what I am trying to do in SQL Server?
Thanks in advance | 0 | [
2,
4444,
255,
8128,
1348,
16755,
9010,
1549,
29,
388,
697,
85,
13,
5,
220,
384,
6,
800,
3726,
3726,
31,
22,
79,
568,
4444,
255,
8128,
16236,
49,
20,
9010,
1054,
37,
1348,
16755,
17,
568,
14,
76,
16229,
43,
575,
20,
569,
100,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Returning data from ASP.net to an ExtJS Grid
===
I've been given a prototype/mockup of a grid written in html and javascript (via ExtJS) that I now need to implement within an ASP.net web application. Does anyone have any pointers as to how to pass data to the grid (to a GroupingStore, specifically).
I'd rather not have a proliferation of web services or helper pages returning XML/JSON so if there's a way to use Client callbacks or Page Methods (Can't you tell I'm not particularly familiar with either - buzzword bingo!) or somesuch, that would be preferred.
Please, no recommendations that I use jQuery, the built-in ASP.net grid, or any other UI framework. The use of the ExtJS grid has been mandated by the powers that be, so that's the grid I'm using, for better or worse :) | 0 | [
2,
2485,
1054,
37,
28,
306,
9,
2328,
20,
40,
1396,
38,
728,
18,
7354,
800,
3726,
3726,
31,
22,
195,
74,
504,
21,
7063,
118,
79,
5668,
576,
16,
21,
7354,
642,
19,
13,
15895,
17,
8247,
8741,
13,
5,
5034,
1396,
38,
728,
18,
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... |
JTidy Node.findBody() — How to use?
===
I'm trying to do XHTML DOM parsing with JTidy, and it seems to be rather counterintuitive task. In particular, there's a method to parse HTML:
Node Tidy.parse(Reader, Writer)
And to get the <body /> of that Node, I assume, I should use
Node Node.findBody(TagTable)
Where should I get an instance of that TagTable? (Constructor is protected, and I haven't found a factory to produce it.)
I use JTidy 8.0-SNAPSHOT. | 0 | [
2,
487,
13647,
93,
15421,
9,
19811,
9760,
5,
6,
13,
1,
184,
20,
275,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
107,
993,
15895,
11859,
2017,
18,
68,
29,
487,
13647,
93,
15,
17,
32,
2206,
20,
44,
864,
2105,
24392,
3005,
9,
19... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Converting Simplifed Chinese GB 2312 text characters into UTF8
===
Does anyone have any suggestions as to how to convert text between
Simplified Chinese GB 2312 or similar multi byte text strings into UTF8 using c++ ?
| 0 | [
2,
19583,
22862,
4102,
43,
1116,
14857,
1137,
918,
1854,
1766,
77,
287,
11720,
457,
800,
3726,
3726,
630,
1276,
57,
186,
18389,
28,
20,
184,
20,
8406,
1854,
128,
13,
11268,
1116,
14857,
1137,
918,
54,
835,
1889,
34,
591,
1854,
7887,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Can you rename a shell session by command in linux?
===
I like to keep my shell sessions named with useful titles as I work, this helps me keep track of what I'm using each of the many tabs for.
Currently to rename a session I double click its name on the tabbed part of the console - is there any command that I can use to do this from within the shell? It would save me a bit of time.
thanks in advance | 0 | [
2,
92,
42,
302,
7259,
21,
3593,
3723,
34,
1202,
19,
13024,
60,
800,
3726,
3726,
31,
101,
20,
643,
51,
3593,
5763,
377,
29,
4811,
3037,
28,
31,
170,
15,
48,
7778,
55,
643,
792,
16,
98,
31,
22,
79,
568,
206,
16,
14,
151,
6523,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sending a message to the Windows GUI Thread
===
I've noticed that when you create a web service object (inheriting from SoapHttpClientProtocol) and you use the <method name>Async method, it makes the callback on the Windows GUI thread.
1. Does anyone know how this works?
2. How can I achieve the same thing.
I figure this will save me having to check for InvokeRequired in my GUI forms if I am sure the callback is always occurring on the gui thread. | 0 | [
2,
4907,
21,
2802,
20,
14,
1936,
9457,
9322,
800,
3726,
3726,
31,
22,
195,
2711,
30,
76,
42,
1600,
21,
2741,
365,
3095,
13,
5,
108,
1694,
242,
68,
37,
6447,
21127,
150,
18513,
38,
2740,
262,
7771,
6,
17,
42,
275,
14,
13,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why is Crystal Reports 8 freezing?
===
I have a problem with Crystal Reports 8. When exporting a report from my application, Crystal Reports **sometimes** freezes. The progress windows just stays, saying X of X records exported.
1. Smaller reports with less data are more likley to freeze.
2. Faster workstations (P4, Core2) tend to freeze much more often, sometimes every second try. On older workstations (< P2) no freezing happens at all, or at least once every one or two days.
3. The export format (rtf, pdf, html, rpt) does not influence the freezing behavior.
4. The same report can be successfully exported multiple times with excactly the same data, but eventually it will freeze.
5. No freezing happens on Windows Vista (!)
Is there a way to stop this or at least a way to predict a freeze? | 0 | [
2,
483,
25,
4282,
2813,
469,
14278,
60,
800,
3726,
3726,
31,
57,
21,
1448,
29,
4282,
2813,
469,
9,
76,
7487,
68,
21,
1330,
37,
51,
3010,
15,
4282,
2813,
13,
1409,
9310,
1409,
11551,
18,
9,
14,
3455,
1936,
114,
16192,
15,
1148,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 get a timestamp in JavaScript?
===
How do you get a timestamp in JavaScript? Something similar to Unix's timestamp, that is a single number that represents the current time and date. | 0 | [
2,
184,
107,
42,
164,
21,
436,
38,
10158,
19,
8247,
8741,
60,
800,
3726,
3726,
184,
107,
42,
164,
21,
436,
38,
10158,
19,
8247,
8741,
60,
301,
835,
20,
22540,
22,
18,
436,
38,
10158,
15,
30,
25,
21,
345,
234,
30,
4719,
14,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
What are the benefits of MS Word content controls ?
===
Office 2007 brings a new goodie called as 'content controls'.
I need to evaluate this to see if this serves as a solution for a problem under research.
Due to paucity of time and my general disdain for Office-interop-pains,
- can someone summarize the benefits?
- Is it possible to define custom content controls?
- where do all the word programmers (if there are any) hang out :) ?
RTFMsdn links also welcome.
So far I see (from some screencasts) that its now possible to define
- template word docs whose content can be stubbed in from a data-behind-XML. You could create this XML as you wish.. e.g. translate contents of your DB into an XML form. The word doc can now 'data-bind' to this XML.
| 0 | [
2,
98,
50,
14,
5800,
16,
4235,
833,
2331,
8671,
13,
60,
800,
3726,
3726,
488,
624,
7620,
21,
78,
254,
660,
227,
28,
13,
22,
25424,
8671,
22,
9,
31,
376,
20,
13,
15599,
48,
20,
196,
100,
48,
2589,
28,
21,
4295,
26,
21,
1448,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Width of an element accounting for quirks mode in javascript?
===
I've been scanning through all the popular js libraries, but I can't find one that has a width function for a DOM element that actually accounts for quirks mode in Internet Explorer. The issue is that padding and borders don't get counted in the the width when quirks mode is engaged. As far as I can tell this happens when the doctype is left out or the doctype is set to html 3.2.
Obviously I could just set the doctype to something standards compliant, but this script can be embedded anywhere so I don't have control over the doctype.
To break the problem down into smaller parts:
1) How do you detect quirks mode?
2) What's the best way to extract the border and padding from an element to compensate?
Example with prototype:
<html><head></head><body>
<div id="mydiv" style="width: 250px; pading-left: 1px; border: 2px black solid">hello</div>
<script>
alert($('mydiv').getWidth())
</script>
</body></html>
result:
253 (ff)
250 (ie)
Thanks in advance! | 0 | [
2,
9456,
16,
40,
4520,
10090,
26,
19321,
18,
3740,
19,
8247,
8741,
60,
800,
3726,
3726,
31,
22,
195,
74,
15863,
120,
65,
14,
844,
487,
18,
8649,
15,
47,
31,
92,
22,
38,
477,
53,
30,
63,
21,
9456,
1990,
26,
21,
11859,
4520,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What code highlighting libs are there for Ruby?
===
What'd also interest me is which have more or less dependencies. | 0 | [
2,
98,
1797,
23102,
13,
8326,
18,
50,
80,
26,
10811,
60,
800,
3726,
3726,
98,
22,
43,
67,
1163,
55,
25,
56,
57,
91,
54,
787,
29411,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
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... |
Path finding; what is the most efficient way of finding a path through a small world graph?
===
I have a sea of weighted nodes with edges linking clusters of nodes together. This graph follows the typical small world layout.
I wish to find a path finding algorithm, which isn't costly on processor power, to find a path along the best possible path where the nodes are the most favorably weighted.
This algorithm, also takes into consideration load bearing, and traffic rerouting.
(sidenote: could neural networks be used here?)
Thanks
| 0 | [
2,
2013,
3007,
73,
98,
25,
14,
127,
8243,
161,
16,
3007,
21,
2013,
120,
21,
284,
126,
7210,
60,
800,
3726,
3726,
31,
57,
21,
598,
16,
23350,
16272,
29,
7840,
12585,
14497,
16,
16272,
429,
9,
48,
7210,
2415,
14,
3874,
284,
126,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Moss 2007: Change Label of Search Option (Advanced Search)
===
I've created a custom search page with some defined options in my search scope.
I have a metadata mapped (jobtitle), and added the search option to my custom search.
<Property name="JobTitle" ManagedName="title" ProfileURI="urn:schemas-microsoft-com:sharepoint:portal:profile:Title"/>
I want to change my managed name to jobtitle, because title doesn't hit the dutch word for jobtitle. I changed the managed name to "jobtitle", after applying the changes it wouldn't change the label.
Anyone have an idea? | 0 | [
2,
8188,
16025,
753,
1899,
16,
2122,
4255,
13,
5,
1283,
2686,
11014,
2122,
6,
800,
3726,
3726,
31,
22,
195,
679,
21,
5816,
2122,
2478,
29,
109,
2811,
6368,
19,
51,
2122,
9914,
9,
31,
57,
21,
28057,
20877,
13,
5,
1636,
220,
22235... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Assemblies
===
A have a design question. I have wrote a couple of c# applications. Most of these apps have their own sql or access database, but then they also share a common database, but they are entirely different apps which have their own responsibilities in their own business domains.
Some people I spoke with believe the following : Applications should be silos. They should share nothing. No sharing of assemblies, components or databases.
I need advice on this. When is it acceptable to share, or is it never a good idea.
Thanks
| 0 | [
2,
6126,
21066,
800,
3726,
3726,
21,
57,
21,
704,
1301,
9,
31,
57,
738,
21,
1335,
16,
272,
5910,
3767,
9,
127,
16,
158,
4865,
18,
57,
66,
258,
4444,
255,
54,
1381,
6018,
15,
47,
94,
59,
67,
1891,
21,
757,
6018,
15,
47,
59,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I write a method within a Django model to retrieve related objects?
===
I have two models. We'll call them object A and object B. Their design looks something like this:
class Foo(models.Model):
name = models.CharField()
class Bar(models.Model):
title = models.CharField()
Foo= models.ForeignKey('myapp.Foo')
Now, suppose I want to make a method within Foo that returns all Bar objects that reference that instance of Foo. How do I do this?
class Foo(models.Model):
name = models.CharField()
def returnBars(self):
???? | 0 | [
2,
184,
92,
31,
2757,
21,
2109,
363,
21,
3857,
14541,
1061,
20,
11917,
1597,
3916,
60,
800,
3726,
3726,
31,
57,
81,
2761,
9,
95,
22,
211,
645,
105,
3095,
21,
17,
3095,
334,
9,
66,
704,
1879,
301,
101,
48,
45,
718,
4310,
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... |
How should I design the process for a dropdown box which contains a list of items which need to be shown in different languages?
===
I'm trying to design a form which contains a dropdown box containing a list of grocery item choices.
What criteria should I look at when trying to decide on whether to use a java enum or a lookup table? Also, I will need to plan ahead for i18n support for the dropdown strings. | 0 | [
2,
184,
378,
31,
704,
14,
953,
26,
21,
2804,
2968,
1649,
56,
1588,
21,
968,
16,
3755,
56,
376,
20,
44,
1721,
19,
421,
2556,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
704,
21,
505,
56,
1588,
21,
2804,
2968,
1649,
3503,
21,
96... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it possible to implement Python code-completion in TextMate?
===
[PySmells](http://github.com/orestis/pysmell/tree/master) seems like a good starting point.
I think it should be possible, PySmell's `idehelper.py` does a majority of the complex stuff, it should just be a case of giving it the current line, offering up the completions (the bit I am not sure about) and then replacing the line with the selected one.
>>> import idehelper
>>> # The path is where my PYSMELLTAGS file is located:
>>> PYSMELLDICT = idehelper.findPYSMELLDICT("/Users/dbr/Desktop/pysmell/")
>>> options = idehelper.detectCompletionType("", "" 1, 2, "", PYSMELLDICT)
>>> completions = idehelper.findCompletions("proc", PYSMELLDICT, options)
>>> print completions
[{'dup': '1', 'menu': 'pysmell.pysmell', 'kind': 'f', 'word': 'process', 'abbr': 'process(argList, excluded, output, verbose=False)'}]
It'll never be perfect, but it would be extremely useful (even if just for completing the stdlib modules, which should never change, so you wont have to constantly regenerate the PYSMELLTAGS file whenever you add a function) | 0 | [
2,
25,
32,
938,
20,
8713,
20059,
1797,
8,
11103,
1336,
872,
19,
1854,
5281,
60,
800,
3726,
3726,
636,
6448,
18,
19031,
18,
500,
5,
21127,
6903,
10404,
20926,
9,
960,
118,
248,
15018,
18,
118,
6448,
18,
19031,
118,
8101,
118,
4594,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get the file size of a "System.Drawing.Image"
===
I am currently writing a system that stores meta data for around 140,000 ish images stored within a legacy image library that are being moved to cloud storage. I am using the following to get the jpg data...
System.Drawing.Image image = System.Drawing.Image.FromFile("filePath");
Im quite new to image manipulation but this is fine for getting simple values like width, height, aspect ratio etc but what I cannot work out is how to retrieve the physical file size of the jpg expressed in bytes. Any help would be much appreciated.
Thanks
| 0 | [
2,
184,
20,
164,
14,
3893,
1072,
16,
21,
13,
7,
10724,
9,
3030,
3546,
9,
22039,
7,
800,
3726,
3726,
31,
589,
871,
1174,
21,
329,
30,
4134,
7618,
1054,
26,
140,
137,
10401,
13,
1595,
3502,
8214,
363,
21,
7780,
1961,
1248,
30,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the arrow operator (->) synonym for in C++?
===
I know it, forgets it and relearn it again. Time to write it down. | 0 | [
2,
98,
25,
14,
7409,
6022,
13,
5,
8,
1,
6,
9344,
26,
19,
272,
20512,
60,
800,
3726,
3726,
31,
143,
32,
15,
3856,
18,
32,
17,
302,
413,
10818,
32,
188,
9,
85,
20,
2757,
32,
125,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Connecting to Microsoft Dynamics CRM 4.0 from a legacy ASP application
===
I have a legacy ASP application written in JScript. At the moment it uses its own database tables for user accounts and authentication. The customer data for this app is being moved into Microsoft Dynamics CRM 4.0, and I need to modify the ASP site's authentication to look up user credentials in Dynamics CRM instead.
Here's the possible approaches I've come up with so far:
1. Move all the authentication tokens into explicit cookies instead of relying on Session variables; then rewrite the login pages, etc. as .aspx pages, and connected to the Dynamics web service from within these pages using the WSDL-generated wrapper class.
1. Create a COM wrapper around the WSDL-generated wrapper class, and invoke this using Server.CreateObject() from within the legacy ASP pages
1. Write a JSON wrapper around the WSDL interface, and call this from within legacy ASP using the MSXML2.ServerXMLHTTP COM object or something similar
1. Call WSDL from ASP directly and parse the results using MSXML or something.
I'm thinking option 1 is probably the best at this stage, but I'm hoping someone out there has tried this before and can share the benefit of their experience!
| 0 | [
2,
6440,
20,
7099,
12289,
6186,
79,
268,
9,
387,
37,
21,
7780,
28,
306,
3010,
800,
3726,
3726,
31,
57,
21,
7780,
28,
306,
3010,
642,
19,
487,
8741,
9,
35,
14,
688,
32,
2027,
82,
258,
6018,
7484,
26,
4155,
5310,
17,
27963,
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... |
Emacs Lisp: How to add a folder and all its first level sub-folders to the load-path
===
If I have a folder structure set up like this:
~/Projects
emacs
package1
package1-helpers
package2
package2-helpers
package2-more-helpers
package3
package3-helpers
How do I add these folders:
* ~/Projects/emacs
* ~/Projects/emacs/package1
* ~/Projects/emacs/package2
* ~/Projects/emacs/package3
...to the `load-path` from my .emacs file?
I basically need a short automated version of this code:
(add-to-list 'load-path "~/Projects/emacs")
(add-to-list 'load-path "~/Projects/emacs/package1")
(add-to-list 'load-path "~/Projects/emacs/package2")
(add-to-list 'load-path "~/Projects/emacs/package3") | 0 | [
2,
13,
62,
6893,
18,
2093,
3401,
45,
184,
20,
3547,
21,
19294,
17,
65,
82,
64,
662,
972,
8,
8814,
445,
20,
14,
6305,
8,
8353,
800,
3726,
3726,
100,
31,
57,
21,
19294,
1411,
309,
71,
101,
48,
45,
13,
1,
118,
21011,
18,
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... |
Easy way to flatten XML file with LINQ
===
Is there an easy way with LINQ to flatten an XML file?
I can see a number of ways with XSLT but wondered what the best option with LINQ would be? | 0 | [
2,
2010,
161,
20,
1844,
1316,
23504,
3893,
29,
6294,
1251,
800,
3726,
3726,
25,
80,
40,
2010,
161,
29,
6294,
1251,
20,
1844,
1316,
40,
23504,
3893,
60,
31,
92,
196,
21,
234,
16,
2847,
29,
993,
18,
255,
38,
47,
3519,
98,
14,
24... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What is a good book for building Office 2007 solutions?
===
I see some messing with Word and Excel files via add-ins or code-behinds in the near future. Have no prior experience with programming Office solutions.. except a few random hacks... so would like a Getting Started / Cookbook type of book.
I've looked up the net and found a few. Unfortunately reviews are rare on these books.. So in case you'd like to recommend any.. please | 0 | [
2,
98,
25,
21,
254,
360,
26,
353,
488,
624,
6776,
60,
800,
3726,
3726,
31,
196,
109,
3957,
68,
29,
833,
17,
20700,
6488,
1197,
3547,
8,
108,
18,
54,
1797,
8,
24878,
18,
19,
14,
424,
1022,
9,
57,
90,
1313,
1496,
29,
3143,
488... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it okay to update a Java web application by replacing just single class files?
===
Sometimes, when we're doing small changes to our web apps, e.g. bug fixes, we don't build a whole new WAR-file each time, but merely replace just the affected class files in the exploded web app directory under <code>WEB-INF/classes</code> and restart the app.
Is that okay? | 0 | [
2,
25,
32,
1705,
20,
11100,
21,
8247,
2741,
3010,
34,
5496,
114,
345,
718,
6488,
60,
800,
3726,
3726,
1030,
15,
76,
95,
22,
99,
845,
284,
1693,
20,
318,
2741,
4865,
18,
15,
13,
62,
9,
263,
9,
6256,
6098,
160,
15,
95,
221,
22... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Putting Copyright Symbol into a Python File
===
I need to include a copyright statement at the top of every Python source file I produce:
# Copyright: © 2008 etc.
However, when I then run such a file I get this message:
SyntaxError: Non-ASCII character '\xa9' in file MyFile.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details.
Apparently Python isn't happy about the copyright symbol because it assumes the source file is all in ASCII. Either I need to either make my first line be:
# -*- coding: iso-8859-1 -*-
to tell Python I'm using Latin encoding, or I can change the copyright statement to:
# Copyright: \xa9 2008 etc.
which just possibly doesn't have the same legal standing.
Is there a more elegant solution? | 0 | [
2,
3873,
8398,
4678,
77,
21,
20059,
3893,
800,
3726,
3726,
31,
376,
20,
468,
21,
8398,
3331,
35,
14,
371,
16,
352,
20059,
1267,
3893,
31,
2213,
45,
6926,
8398,
45,
13,
1,
570,
2722,
9,
207,
15,
76,
31,
94,
485,
145,
21,
3893,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best way to remove an element at a known location from an XML String using DotNet?
===
I appreciate that there are now many mechanisms in dotnet to deal with XML in a myriad of ways...
Suppose I have a string containing the XML....
<?xml version="1.0" encoding="utf-8" ?>
<root>
<Element1>
<Element1_1>
SomeData
</Element1_1>
</Element1>
<Element2>
Some More Data
</Element2>
</root>
**What is the simplest (most readable) way of removing Element1_1?**
| 0 | [
2,
246,
161,
20,
4681,
40,
4520,
35,
21,
167,
1474,
37,
40,
23504,
3724,
568,
14123,
2328,
60,
800,
3726,
3726,
31,
8831,
30,
80,
50,
130,
151,
11626,
19,
14123,
2328,
20,
1183,
29,
23504,
19,
21,
25554,
16,
2847,
9,
9,
9,
578... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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: hbm2ddl.auto=update in production?
===
Is it okay to run Hibernate applications configured with <code>hbm2ddl.auto=update</code> to update the database schema in a production environment? | 0 | [
2,
4148,
2102,
8820,
45,
746,
13178,
135,
43,
8643,
9,
18042,
3726,
576,
8209,
19,
637,
60,
800,
3726,
3726,
25,
32,
1705,
20,
485,
4148,
2102,
8820,
3767,
28895,
29,
13,
1,
9375,
1,
18098,
79,
135,
43,
8643,
9,
18042,
3726,
576... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
rubyonrails and jeditable (jquery)
===
has anyone gotten the jquery plugin [jeditable](http://www.appelsiini.net/projects/jeditable) to run properly in a rails applications. If so, could you share some hints on how to set it up? I'm having some trouble with creating the "submit-url".
Regards,
Sebastian | 0 | [
2,
10811,
218,
7301,
18,
17,
12671,
242,
579,
13,
5,
728,
8190,
93,
6,
800,
3726,
3726,
63,
1276,
4094,
14,
487,
8190,
93,
10922,
108,
636,
1969,
1115,
5924,
500,
5,
21127,
6903,
6483,
9,
7753,
6798,
49,
2651,
9,
2328,
118,
2101... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Removing a sequence of characters from a large binary file using python
===
I would like to trim long sequences of the same value from a binary file in python. A simple way of doing it is simply reading in the file and using re.sub to replace the unwanted sequence. This will of course not work on large binary files. Can it be done in something like numpy? | 0 | [
2,
9096,
21,
4030,
16,
1766,
37,
21,
370,
14171,
3893,
568,
20059,
800,
3726,
3726,
31,
83,
101,
20,
8971,
175,
11173,
16,
14,
205,
1923,
37,
21,
14171,
3893,
19,
20059,
9,
21,
1935,
161,
16,
845,
32,
25,
1659,
1876,
19,
14,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I programatically search for Wi-Fi access point using PAlib on the Nintendo DS
===
I need a way to check for Wi-Fi routers/access points on my DS homebrew. I'm using PAlib. | 0 | [
2,
184,
107,
31,
625,
721,
8438,
2122,
26,
4807,
8,
1707,
1381,
454,
568,
21765,
220,
27,
14,
10562,
13,
43,
18,
800,
3726,
3726,
31,
376,
21,
161,
20,
2631,
26,
4807,
8,
1707,
858,
1224,
118,
20604,
819,
27,
51,
13,
43,
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,
0,
0,
0,
0,
0,
0,
0... |
Javascript and PHP functions
===
Is it possible to call a function from PHP using onsubmit from javascript? If so could someone give me an example of how it would be done?
Thank you in advance. | 0 | [
2,
8247,
8741,
17,
13,
26120,
3719,
800,
3726,
3726,
25,
32,
938,
20,
645,
21,
1990,
37,
13,
26120,
568,
27,
7563,
5130,
37,
8247,
8741,
60,
100,
86,
110,
737,
590,
55,
40,
823,
16,
184,
32,
83,
44,
677,
60,
3531,
42,
19,
36... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
remotely and programatically logoff an active domain user
===
I need to be able to logoff any user from a program.
I know I could log in as an admin and force a remote logoff. Is there any other way to force a logoff without logging in?
The tool will run as admin so that's not a problem, being able to remote logoff without logging in is.
Tool is in .NET, but any other way is welcome (JScript, command line tool to run from PInvoke, etc.) | 0 | [
2,
23288,
17,
625,
721,
8438,
6738,
1299,
40,
1348,
4603,
4155,
800,
3726,
3726,
31,
376,
20,
44,
777,
20,
6738,
1299,
186,
4155,
37,
21,
625,
9,
31,
143,
31,
110,
6738,
19,
28,
40,
21,
43,
2160,
17,
558,
21,
5388,
6738,
1299,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SMPT error 554
===
I'm using MDaemon as out mail server and the last days I get an error "554 Message does not conform to standards" for emails sent from one of the machines. Any idea what may be causing it? Other machines work fine. | 0 | [
2,
7613,
4417,
7019,
331,
3963,
800,
3726,
3726,
31,
22,
79,
568,
307,
593,
18062,
28,
70,
4216,
8128,
17,
14,
236,
509,
31,
164,
40,
7019,
13,
7,
264,
3963,
2802,
630,
52,
13620,
20,
3364,
7,
26,
8517,
18,
795,
37,
53,
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,
0... |
How do I programmatically access the target path of a windows symbolic link?
===
Windows 6 (Vista and Server 2008) support proper symbolic links, which can be created via the [CreateSymbolicLink](http://msdn.microsoft.com/en-us/library/aa363866.aspx) function. But there doesn't appear to be a corresponding function for interrogating a symbolic link to obtain the path of the link's target.
I have found out that symbolic links are an implementation of parse points, and so the parse point functions can be used to obtain the target path. But the header files that I need to use parse points appear to come with the [Windows Driver Kit](http://www.microsoft.com/whdc/devtools/wdk/default.mspx). Setting up this kit with VS2008 appears to be a non trivial task.
Is there a nice simple function that I've missed for obtaining a link's target, or do I really have to set up a windows driver development environment just to write code to access this information? | 0 | [
2,
184,
107,
31,
625,
6732,
1326,
1381,
14,
2935,
2013,
16,
21,
1936,
12882,
3508,
60,
800,
3726,
3726,
1936,
400,
13,
5,
22034,
17,
8128,
570,
6,
555,
4119,
12882,
6271,
15,
56,
92,
44,
679,
1197,
14,
636,
6037,
1373,
7261,
696... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 programatically create an SSIS Package?
===
I am trying to **programatically** create an SSIS package containing a simple data flow from table A to table B in the same database. I am using the example given [here][1].
The package gets created and saved to a dtsx file, but when I open it in visual studio I see that the source and destination tables have not been selected.
I also want to insert a transformation task in between before it reaches the destination. Anyone clues, pointers?
Thanks.
[1]: http://technet.microsoft.com/en-us/library/ms136020.aspx | 0 | [
2,
184,
20,
625,
721,
8438,
1600,
40,
13,
18,
4557,
6030,
60,
800,
3726,
3726,
31,
589,
749,
20,
13,
1409,
19746,
721,
8438,
1409,
1600,
40,
13,
18,
4557,
6030,
3503,
21,
1935,
1054,
3312,
37,
859,
21,
20,
859,
334,
19,
14,
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 confirm a browser window is open, with Javascript?
===
I'm opening a new browser window from my site for some of the members. However, some may later close it, or it might have initially failed to open.
Is there a snippet of fairly plain Javascript that can be run on each page to confirm if another browser window is open, and if not, to provide a link to re-open it? | 0 | [
2,
184,
107,
31,
10265,
21,
16495,
1463,
25,
368,
15,
29,
8247,
8741,
60,
800,
3726,
3726,
31,
22,
79,
1214,
21,
78,
16495,
1463,
37,
51,
689,
26,
109,
16,
14,
443,
9,
207,
15,
109,
123,
138,
543,
32,
15,
54,
32,
530,
57,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I get firefox 3 to display a page after performing the <?xsl-stylesheet ?> processing instruction?
===
I'm trying to serve dynamically generated xml pages from a web server, and provide a custom, static, xslt from the same web server, that will offload the processing into the client web browser.
Until recently, I had this working fine in Firefox 2, 3, IE5, 6 and Chrome. Recently, though, something has changed, and Firefox 3 now displays just the text elements in the source.
The page source starts like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Firefox 2.0 and Internet Explorer 7 use simplistic feed sniffing to override desired presentation behavior for this feed, and thus we are obliged to insert this comment, a bit of a waste of bandwidth, unfortunately. This should ensure that the following stylesheet processing instruction is honored by these new browser versions. For some more background you might want to visit the following bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=338621 -->
<?xml-stylesheet type="text/xsl" href="/WebObjects/SantaPreview.woa/Contents/WebServerResources/Root.xsl"?>
<wrapper xmlns="http://www.bbc.co.uk/ContentInterface/Content" xmlns:cont="http://www.bbc.co.uk/ContentInterface/Content" sceneId="T2a_INDEX" serviceName="DSat_T2">
....
Firebug shows that the Root.xsl file is being loaded, and the response headers for it include the line
Content-Type text/xml
The Web Developer Extension shows the correct generated source too, and if you save this and load the page in Firefox, it displays correctly.
The version of Firefox displaying the problem is 3.0.3
Any ideas what I might be doing wrong?
| 0 | [
2,
184,
92,
31,
164,
535,
18219,
203,
20,
3042,
21,
2478,
75,
2955,
14,
13,
1,
60,
396,
18,
255,
8,
4381,
17627,
13,
60,
1,
5511,
7304,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
1884,
7782,
1326,
6756,
23504,
4434,
37,
21,
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... |
Rest clients for Java?
===
With JSR 311 and it's implementations we have a powerful standard for exposing Java objects via Rest. However on the client side there seems to be something missing that is comparable to Apache Axis for SOAP - something that hides the web service and marshals the data transparently back to Java objects.
How do you create Java RESTful clients? Using HTTPConnection and manual parsing of the result? Or specialized clients for e.g. Jersey or Apache CXR? | 0 | [
2,
760,
7421,
26,
8247,
60,
800,
3726,
3726,
29,
487,
18,
139,
13,
22514,
17,
32,
22,
18,
6123,
18,
95,
57,
21,
2177,
1236,
26,
17302,
8247,
3916,
1197,
760,
9,
207,
27,
14,
6819,
270,
80,
2206,
20,
44,
301,
2863,
30,
25,
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... |
Browse for a File from Excel VBA
===
How can I put up a "File Open" dialog from some VBA running in Excel?
I'm using Excel 2003. | 0 | [
2,
10175,
62,
26,
21,
3893,
37,
20700,
566,
969,
800,
3726,
3726,
184,
92,
31,
442,
71,
21,
13,
7,
16877,
368,
7,
28223,
37,
109,
566,
969,
946,
19,
20700,
60,
31,
22,
79,
568,
20700,
973,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to provide a smtp server for solicited promotional email?
===
I have a customer who needs to send some direct mailing to his contacts which is being collected from trade shows etc. I am thinking about providing a web based solution for them on sending direct mailing material- however this kind of solution always face a major difficulty on having the server blacklisted. I would like to know if there is any suggestions on how to maintain such SMTP server? | 0 | [
2,
184,
20,
1181,
21,
7613,
13726,
8128,
26,
86,
16927,
1427,
10746,
8517,
60,
800,
3726,
3726,
31,
57,
21,
7705,
72,
2274,
20,
2660,
109,
1744,
4216,
68,
20,
33,
11894,
56,
25,
142,
3674,
37,
1238,
1285,
2722,
9,
31,
589,
1440,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 I define a cross container TabIndex order in XAML (or code-beside)
===
Control.TabIndex
Only allows me to overide the Tab order of controls in a given container.
Is there a way to specify this across all the controls in, for example a UserControl, regardless of the contains used to arrange the controls.
Cheers,
Jan
| 0 | [
2,
92,
31,
9267,
21,
919,
12147,
6523,
25671,
389,
19,
13,
6791,
8184,
13,
5,
248,
1797,
8,
863,
1416,
6,
800,
3726,
3726,
569,
9,
15783,
25671,
104,
2965,
55,
20,
84,
3448,
14,
6523,
389,
16,
8671,
19,
21,
504,
12147,
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... |
Ghostscript pdf -> .tiff conversion is aweful for me, people rave about it, I alone look sullen.
===
My stomach churns when I see this kind of output.
![alt text][1]
[1]: http://www.freeimagehosting.net/uploads/e1097a5a10.jpg
and this was my command
as suggested by http://stackoverflow.com/questions/75500/best-way-to-convert-pdf-files-to-tiff-files#221341
>> gs -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit
What am i doing wrong?
(commercial products will not be considered) | 0 | [
2,
3995,
8741,
13,
11124,
13,
8,
1,
13,
9,
38,
6021,
6263,
25,
21,
458,
1566,
26,
55,
15,
148,
20704,
88,
32,
15,
31,
1056,
361,
6065,
2284,
9,
800,
3726,
3726,
51,
2656,
13,
19233,
2172,
76,
31,
196,
48,
825,
16,
5196,
9,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
C# generics question
===
I'm trying to complete a practice question from a book on generics but the question doesn't make sense to me. Here it goes.
Create two classes with identical functionality. User generics for the first class, and cast the second class to Object types. Create a for loop that uses class and the Object based class to determine which performs better.
I'm not sure what it means by casting to Object types. Here is my code so far
//Generic
class Person<T> {
T var1;
public Person(T yer) {
var1 = yer;
}
public T Value { get { return var1; } }
}
//Normal class
class Human {
int var1;
public Human(int yer) {
var1 = yer;
}
public int Value { get { return var1; } }
}
My main program running the loops
for (int i = 0; i < 1000000; i++) {
Person<int> me = new Person<int>(1);
int hey = me.Value;
}
for (int i = 0; i < 1000000; i++) {
Human per = new Human(1);
object her = (object)per.Value;
}
I don't know if Im doing this right. Help please :-)
| 0 | [
2,
272,
5910,
12733,
18,
1301,
800,
3726,
3726,
31,
22,
79,
749,
20,
1279,
21,
1345,
1301,
37,
21,
360,
27,
12733,
18,
47,
14,
1301,
1437,
22,
38,
233,
1259,
20,
55,
9,
235,
32,
1852,
9,
1600,
81,
2684,
29,
6323,
18548,
9,
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 do you prevent downloads from being run instead of saved in IE
===
When you create a link to an executable file intended for download (like say update.exe), on a web page, IE7 gives the user the option to "Run" or "Save". I don't want users to be running the update file they should be downloading.
Is it possible to disable the "Save" option on the dialog the IE displays, or even force the download automatically.
| 0 | [
2,
184,
107,
42,
2501,
7121,
18,
37,
142,
485,
700,
16,
4377,
19,
13,
660,
800,
3726,
3726,
76,
42,
1600,
21,
3508,
20,
40,
1396,
17194,
5924,
3893,
2081,
26,
7121,
13,
5,
1403,
395,
11100,
9,
1706,
62,
6,
15,
27,
21,
2741,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 update a single column in LINQ without loading the entire row?
===
In LinqToSql, it is lovely easy to load a row, change a column, and submit the changes to the database:
using (MyDataContext wdc = new MyDataContext())
{
Article article = wdc.Article.First(p => p.ID == id);
article.ItemsInStock = itemsinstock;
wdc.SubmitChanges();
}
The only drawback: Article is huge. To load the entire article, just to update one column is way overkill and slows down my app significantly.
Is there a way to update a single column using LINQ, without having to load the entire row?
Right now I revert to using ExecuteCommand where speed is of essence, but this is ugly and error prone:
wdc.ExecuteCommand("UPDATE Article SET ItemsInStock = @1 WHERE ID = @2", itemsinstock,id);
| 0 | [
2,
184,
20,
11100,
21,
345,
4698,
19,
6294,
1251,
366,
12797,
14,
1078,
3131,
60,
800,
3726,
3726,
19,
6294,
1251,
262,
18,
22402,
15,
32,
25,
8601,
2010,
20,
6305,
21,
3131,
15,
753,
21,
4698,
15,
17,
12298,
14,
1693,
20,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to remove old verions of Eclipse plugins?
===
After update, old Eclipse plugins remain in "plugins" folder (there are also leftovers in "features" folder).
Is there a way to remove those automatically? | 0 | [
2,
184,
20,
4681,
315,
2494,
5757,
16,
11652,
10922,
108,
18,
60,
800,
3726,
3726,
75,
11100,
15,
315,
11652,
10922,
108,
18,
2166,
19,
13,
7,
18527,
17040,
7,
19294,
13,
5,
1887,
50,
67,
225,
2549,
18,
19,
13,
7,
26956,
18,
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,
0,
0,
0,
0,
0... |
Unit testing with C/C++: Lessons, what to remember?
===
Unit testing with C/C++:
What do you teach people who either did not do unit testing before or come from Java/Junit?
What is the single most important lesson / thing to remember/ practice from your point of view that saves a lot of time or stress? | 0 | [
2,
1237,
4431,
29,
272,
118,
150,
20512,
45,
7870,
15,
98,
20,
1518,
60,
800,
3726,
3726,
1237,
4431,
29,
272,
118,
150,
20512,
45,
98,
107,
42,
5348,
148,
72,
694,
144,
52,
107,
1237,
4431,
115,
54,
340,
37,
8247,
118,
8753,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Raise CellValueChanged from a custom editing control in a DataGridView
===
I have a DataGridView (WinForms) in which I have defined a custom EditingControl derived from DataGridViewTextBoxEditingControl that only allows numeric characters.
I need to raise CellValueChanged event on the DataGridView each time the user press a key, but the default behaviour is to raise the event only when edition has been completed.
How can I raise the event each time a key is pressed?
public class DataGridViewNumericTextBoxEditingControl : DataGridViewTextBoxEditingControl
{
protected override void OnKeyPress(KeyPressEventArgs e)
{
e.Handled = Char.IsLetter(e.KeyChar);
if (!e.Handled)
RaiseDataGridViewCellValueChanged(); // <-- Any way?
}
} | 0 | [
2,
3972,
1667,
15165,
16229,
43,
37,
21,
5816,
9510,
569,
19,
21,
1054,
16375,
4725,
800,
3726,
3726,
31,
57,
21,
1054,
16375,
4725,
13,
5,
4181,
4190,
18,
6,
19,
56,
31,
57,
2811,
21,
5816,
9510,
12898,
3981,
37,
1054,
16375,
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... |
Vb 6 Make .exe differant results to debugger
===
I'm converting this old vb6 code into c#. I've got it matching a 100% what the vb6 code does through the vb 6 debugger.
However When I compare it what the production .exe it produced like 60 differences in a set of 3186000.
So go back and fourth for a few hours making double sure I'm not doing something silly... then I compare a couple of differences to what the debugger produces and what happens if I do a Make .EXE and do the process using that.
This is where the problem is.. When use the Make .exe it produces a differance compared to when i run the exact same process though the vb 6 debugger.
I've tried an array of different compiler options but to no avail.
So my question is whats going on really? have you ever come arross something similar and if so did you find a fix?
*the process is a Outlier Removal Algorithm that averages a massive set of data into a smaller set of data. i'll leave out the details..*
| 0 | [
2,
13,
20468,
400,
233,
13,
9,
1706,
62,
11394,
1830,
1736,
20,
121,
2345,
11356,
800,
3726,
3726,
31,
22,
79,
19583,
48,
315,
13,
20468,
379,
1797,
77,
272,
5910,
9,
31,
22,
195,
330,
32,
10120,
21,
12849,
98,
14,
13,
20468,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
IUsable: controlling resources in a better way than IDisposable
===
I wish we have "Usable" pattern in C#, when code block of using construct would be passed to a function as delegate:
class Usable : IUsable
{
public void Use(Action action) // implements IUsable
{
// acquire resources
action();
// release resources
}
}
and in user code:
using (new Usable())
{
// this code block is converted to delegate and passed to Use method above
}
Pros:
- Controlled execution, exceptions
- The fact of using "Usable" is visible in call stack
Cons:
- Cost of delegate
Do you think it is feasible and useful, and if it doesn't have any problems from the language point of view? Are there any pitfalls you can see? | 0 | [
2,
13,
2366,
579,
45,
10106,
2566,
19,
21,
574,
161,
119,
13,
19405,
12551,
579,
800,
3726,
3726,
31,
2536,
95,
57,
13,
7,
267,
579,
7,
3732,
19,
272,
5910,
15,
76,
1797,
1921,
16,
568,
6960,
83,
44,
1100,
20,
21,
1990,
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... |
Linq to XML 'Where not in' syntax problem
===
The following Code does not compile
Dim BasicGroups As String() = New String() {"Node1", "Node2"}
Dim NodesToRemove = From Element In SchemaDoc.Root.<Group> _
Where Element.@Name not in BasicGroups
For Each XNode In NodesToRemove
XNode.Remove()
Next
It is supposed to Remove any Immediate child of the rootnode which has an attribute called name whose value is **Not** listed in the BasicGroups StringArray.
**What is the correct syntax for this task?**
| 0 | [
2,
6294,
1251,
20,
23504,
13,
22,
2798,
52,
19,
22,
22649,
1448,
800,
3726,
3726,
14,
249,
1797,
630,
52,
26561,
5937,
2125,
8024,
18,
28,
3724,
5,
6,
800,
78,
3724,
5,
6,
13,
1,
7,
251,
546,
165,
7,
15,
13,
7,
251,
546,
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 ^*$ matches "127.0.0.1"
===
I don't understand, why does the following regular expression:
^*$
Match the string "127.0.0.1"? Using `Regex.IsMatch("127.0.0.1", "^*$");`
Using Expresso, it does not match, which is also what I would expect. Using the expression `^.*$` does match the string, which I would also expect.
Technically, `^*$` should match the beginning of a string/line any number of times, followed by the ending of the string/line. It seems * is implicitly treated as a `.*`
What am I missing? | 0 | [
2,
483,
13,
1,
2483,
4403,
1717,
13,
7,
11595,
9,
387,
9,
387,
9,
165,
7,
800,
3726,
3726,
31,
221,
22,
38,
1369,
15,
483,
630,
14,
249,
1290,
1803,
45,
13,
1,
2483,
4403,
730,
14,
3724,
13,
7,
11595,
9,
387,
9,
387,
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... |
sliding UISearchBar
===
I would like to hide the UISearchBar most of the time and only call it to appear when user wants it.
I've put a UISearchBar in Interface Builder and hide it behind a view, when user click a button, it calls the following code, which I hoped it would bring the search bar to the front and slide the keyboard to view. But it doesn't....
- (IBAction)search:(id)sender
{
[mySearchBar performSelector:@selector(searchBarTextDidBeginEditing:)];
}
Anyone have any idea how to activate UISearchBar by code?
Thanks. | 0 | [
2,
7609,
13,
5661,
25136,
1850,
800,
3726,
3726,
31,
83,
101,
20,
3077,
14,
13,
5661,
25136,
1850,
127,
16,
14,
85,
17,
104,
645,
32,
20,
1893,
76,
4155,
2846,
32,
9,
31,
22,
195,
442,
21,
13,
5661,
25136,
1850,
19,
6573,
1496... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How would you implement an LRU cache in Java 6?
===
Please don't say EHCache or OSCache, etc. Assume for purposes of this question that I want to implement my own using just the SDK (learning by doing). Given that the cache will be used in a multithreaded environment, which datastructures would you use? I've already implemented one using [LinkedHashMap](http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedHashMap.html) and [Collections#synchronizedMap](http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#synchronizedMap(java.util.Map), but I'm curious if any of the new concurrent collections would be better candidates. | 0 | [
2,
184,
83,
42,
8713,
40,
644,
1820,
16522,
19,
8247,
400,
60,
800,
3726,
3726,
2247,
221,
22,
38,
395,
16177,
793,
2569,
54,
13,
759,
793,
2569,
15,
2722,
9,
7158,
26,
4612,
16,
48,
1301,
30,
31,
259,
20,
8713,
51,
258,
568,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Intranet Vs Internet Web application considerations
===
What are the differences in considerations in respect to designing or developing an **Intranet and an Internet application** ?
| 0 | [
2,
14369,
2328,
4611,
2620,
2741,
3010,
20478,
800,
3726,
3726,
98,
50,
14,
4921,
19,
20478,
19,
2873,
20,
15026,
54,
3561,
40,
13,
1409,
108,
1939,
2328,
17,
40,
2620,
3010,
1409,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What does the plus sign do in 'return +new Date'
===
I've seen this in a few [places][1]
function(){ return +new Date; }
And I can see that it is returning a timestamp rather than a date object, but I can't find any documentation on what the plus sign is doing.
Can anyone explain?
[1]: http://stackoverflow.com/questions/221294/how-do-you-get-a-timestamp-in-javascript#221357 | 0 | [
2,
98,
630,
14,
3123,
1676,
107,
19,
13,
22,
24632,
2754,
2681,
1231,
22,
800,
3726,
3726,
31,
22,
195,
541,
48,
19,
21,
310,
636,
5119,
18,
500,
2558,
165,
500,
1990,
5,
6,
1,
788,
2754,
2681,
1231,
73,
13,
1,
17,
31,
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... |
How do I pass multiple parameters to a logparser sql query?
===
Using logparser you can pass on parameters to the query you'd like to run such as:
logparser file:query.sql?logs=somewhere\*.log -o:Sql -server:databaseserver
-database:database -createtable:ON -i:IISW3C
-iCheckPoint:somewhere\query.lpc -transactionRowCount:200
Now I want to pass a second parameter to the sql query but it doesn't seem possible.
logparser file:query.sql?a=1&b=2
is seen as: a = "1&b=2".
Escaping the character with an accent doesn't work either. Is this a limitation of the logparser tool? | 0 | [
2,
184,
107,
31,
1477,
1886,
12905,
20,
21,
6738,
3574,
4104,
4444,
255,
25597,
60,
800,
3726,
3726,
568,
6738,
3574,
4104,
42,
92,
1477,
27,
12905,
20,
14,
25597,
42,
22,
43,
101,
20,
485,
145,
28,
45,
6738,
3574,
4104,
3893,
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... |
C# Generics/Design Patterns: Should I use the template method?
===
**Scenario:**
(If anyone has answered/viewed my questions recently this will be somewhat familar)
I have 3 different web services which expose a set of objects that have commonality. I've written wrapper classes and conversion logic using generic methods to change between the intermediary objects and the service object.
I have an interface for the Webservice, let it be called IService for the purpose of this question. I have 3 implementation classes Service1Impl, Service2Impl and Service3Impl. Each of these referencing a different web service and using my aforementioned generic methods to convert between the appropriate objects.
These are injected into my ServiceWrapper class at runtime via the constructor (a factory is used to create the appopriate implementation of the ISerivice
e.g:
_service = ServiceWrapper.GetServiceWrapper("2");
Will give me a ServiceWrapper instantiated with the Service2Impl.
(Dammit diagrams would be hella useful!)
Ok so each implementation of IService has a method called for arguments sake.. GetProperties:
public IProperty[] GetProperties(string item, IProperty[] properties)
{
Property[] props = ServiceObjectFactory.CreateProperties<Property>(properties);
Property[] result = _service.GetProperties(item, props);
return ServiceObjectFactory.CreateProperties(result);
}
This looks a little confusing (I think I'm going to refactor the names).
Basically what is happening is:
1. The call to this function from ServiceWrapper is made with the intermediary objects (IProperty) (as you can see from the parameters).
2. The intermediary objects are converted to Property objects which are service specific.
3. The result comes back as service specific Property objects
4. The result is converted to the intermediary objects before being passed back to the ServiceWrapper.
Now, this code is going to be exactly the same for Service1Impl, Service2Impl and Service3Impl. Except of course that the types used are different.
Can anyone think of a way to do this so that I don't have the same code 3 times?
**N.B: This is not true of every method in each Implementation. Just most of them.**
| 0 | [
2,
272,
5910,
12733,
18,
118,
19862,
6282,
45,
378,
31,
275,
14,
22894,
2109,
60,
800,
3726,
3726,
13,
1409,
18,
8172,
8756,
45,
1409,
13,
5,
821,
1276,
63,
3094,
118,
4725,
69,
51,
2346,
1989,
48,
129,
44,
4131,
1399,
14494,
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... |
Creating RSS feed from database, how many items to put into feed so that they are all likely to be consumed?
===
I'm creating several RSS feeds from a database to publish things like job openings, volunteer opportunities, and links in general. My question is, how many items should be returned in the feed so that it is most likely that someone will get all the items in their reader without any gaps?
SELECT TOP 100 ? (obviously would need to be set for # of feeds estimated over X time)
SELECT the last 24, 48, 72 hours?
If I run my feed through Feedburner, does anyone know if they check on a certain interval so that I can create it to their standard and be assured that the Feedburner feed will contain all items? | 0 | [
2,
2936,
13,
1224,
18,
4063,
37,
6018,
15,
184,
151,
3755,
20,
442,
77,
4063,
86,
30,
59,
50,
65,
1720,
20,
44,
10936,
60,
800,
3726,
3726,
31,
22,
79,
2936,
238,
13,
1224,
18,
17058,
37,
21,
6018,
20,
10824,
564,
101,
1205,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Save CSS Related To Dreamweaver Document
===
I find this incredibly annoying with Dreamweaver, everytime I go to save my document I have to tab into each css file and save them individually. Not a problem with one css file, but when you have 3 or 4 it is a pain in the ass. Is there anyway to save your dreamweaver document and all related css files in one hot key? | 0 | [
2,
2079,
272,
18,
18,
1597,
20,
1868,
458,
11937,
4492,
800,
3726,
3726,
31,
477,
48,
13003,
17610,
29,
1868,
458,
11937,
15,
352,
891,
31,
162,
20,
2079,
51,
4492,
31,
57,
20,
6523,
77,
206,
272,
18,
18,
3893,
17,
2079,
105,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Informix certification for developer
===
I am looking into getting an Informix certification for developers. I am not sure how this thing is run. Should I sign up a course and only then take an exam or should I just prepare on my own and take online tests?
Thanks | 0 | [
2,
10361,
4028,
10439,
26,
10058,
800,
3726,
3726,
31,
589,
699,
77,
1017,
40,
10361,
4028,
10439,
26,
10168,
9,
31,
589,
52,
562,
184,
48,
584,
25,
485,
9,
378,
31,
1676,
71,
21,
674,
17,
104,
94,
247,
40,
11796,
54,
378,
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,
0,
0,
0,
0,
0,
0... |
SWT - OS agnostic way to get monospaced font
===
Is there a way in SWT to get a monospaced font simply, that works across various operating systems?
For example. this works on Linux, but not Windows:
<pre>
<code>
Font mono = new Font(parent.getDisplay(), "Mono", 10, SWT.NONE);
</code>
</pre>
or do I need to have a method that tries loading varying fonts (Consolas, Terminal, Monaco, Mono) until one isn't null? Alternatively I could specify it in a properties file on startup.
I tried getting the system font from Display, but that wasn't monospaced. | 0 | [
2,
8783,
38,
13,
8,
13,
759,
21,
21944,
161,
20,
164,
4129,
18,
15265,
9978,
800,
3726,
3726,
25,
80,
21,
161,
19,
8783,
38,
20,
164,
21,
4129,
18,
15265,
9978,
1659,
15,
30,
693,
464,
617,
2455,
1242,
60,
26,
823,
9,
48,
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... |
What code highlighting libs are there for Java?
===
easy to bundle, few dependencies, easy to use | 0 | [
2,
98,
1797,
23102,
13,
8326,
18,
50,
80,
26,
8247,
60,
800,
3726,
3726,
2010,
20,
10194,
15,
310,
29411,
15,
2010,
20,
275,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to disassociate a wireless interface with an access point?
===
I'm trying to make a script that sleeps my wireless card in linux. For that I'm using the `deepsleep` command of `iwpriv`:
iwpriv wlan0 deepsleep 1
The problem is that this command only works if the wireless card is disconnected and disassociated. When it's connected there is no problem because if I disconnect, it disassociates automatically. But if it's disconnected, sometimes it associates (but not connects) automatically to unencrypted networks, so I cannot run the `iwpriv` command. The only fix I have found is to change the mode first to Ad-Hoc and then to Managed before sleep the card:
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 mode managed
iwpriv wlan0 deepsleep 1
But I think it's a bit tricky.
Does exist a more direct way to disassociate a wireless card in linux? | 0 | [
2,
184,
20,
1460,
23009,
21,
10149,
6573,
29,
40,
1381,
454,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
233,
21,
3884,
30,
1742,
18,
51,
10149,
2056,
19,
13024,
9,
26,
30,
31,
22,
79,
568,
14,
13,
1,
11759,
21092,
1,
1202,
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... |
Most efficient way to check for DBNull and then assign to a variable?
===
This question comes up occasionally but I haven't seen a satisfactory answer.
A typical pattern is:
if (row["value"] != DBNull.Value)
{
someObject.Member = row["value"];
}
My first question is which is more efficient (I've flipped the condition):
row["value"] == DBNull.Value; // Or
row["value"] is DBNull; // Or
row["value"].GetType() == typeof(DBNull)
[This][1] indicates that .GetType() should be faster, but maybe the compiler knows a few tricks I don't?
Second question, is it worth caching the value of row["value"] or does the compiler optimize the indexer away anyway?
eg.
object valueHolder;
if (DBNull.Value == (valueHolder = row["value"])) {}
Disclaimers:
1. row["value"] exists.
2. I'm asking specifically about checking for DBNull and then assignment (not about premature optimization etc).
[1]: http://stackoverflow.com/questions/184681/is-vs-typeof | 0 | [
2,
127,
8243,
161,
20,
2631,
26,
13,
9007,
4215,
211,
17,
94,
13952,
20,
21,
7612,
60,
800,
3726,
3726,
48,
1301,
1624,
71,
4533,
47,
31,
2933,
22,
38,
541,
21,
25549,
1623,
9,
21,
3874,
3732,
25,
45,
100,
13,
5,
5417,
2558,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Geolocation API on the iPhone
===
Does anyone know whether the iPhone supports or will soon support the [W3C Geolocation specification][1]?
I'm looking to build an app for mobile users, but rather than spend the time developing apps for every different platform (iPhone, Android, etc...), I'd much prefer to create a web app that makes use of the W3C Standard.
[1]: http://dev.w3.org/geo/api/spec-source.html | 0 | [
2,
6389,
19032,
21,
2159,
27,
14,
21024,
800,
3726,
3726,
630,
1276,
143,
1472,
14,
21024,
6747,
54,
129,
651,
555,
14,
636,
499,
240,
150,
6389,
19032,
14177,
500,
2558,
165,
500,
60,
31,
22,
79,
699,
20,
1895,
40,
4865,
26,
32... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to count how many objects will be returned by an ObjectQuery<T>?
===
I am building an ObjectQuery like this:
string query = "select value obj from Entities.Class as obj " +
"where obj.Property = @Value";
ObjectQuery<Class> oQuery = new ObjectQuery<Class>(query, EntityContext.Instance);
oQuery.Parameters.Add(new ObjectParameter("Value", someVariable));
I can now assign this object as a DataSource for a control, or iterate with a foreach loop or even force a materialization to a List<Class>, however, I can I count the number of objects that will be returned, without forcing a materialization?
Do I need to create a companion query that will execute a count() or is there a function that will do that for me somewhere?
Thank you.
| 0 | [
2,
184,
20,
2468,
184,
151,
3916,
129,
44,
587,
34,
40,
3095,
8190,
93,
1,
38,
1,
60,
800,
3726,
3726,
31,
589,
353,
40,
3095,
8190,
93,
101,
48,
45,
3724,
25597,
800,
13,
7,
18,
16964,
1923,
5122,
728,
37,
12549,
9,
1898,
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 do I get a button that is inside an update panle to update the whole page?
===
I have a button inside an update panel that I would like to update the whole page. I have set `ChildrenAsTriggers="false"` and `UpdateMode="Conditional"`.
I have some sample code here that demonstrates my problem.
<asp:UpdatePanel ID="myFirstPanel" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
<ContentTemplate>
<asp:Button runat="server" ID="myFirstButton" Text="My First Button" onclick="myFirstButton_Click" />
<asp:Button runat="server" ID="mySecondButton" Text="My Second Button" onclick="mySecondButton_Click" />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="mySecondPanel" runat="server">
<ContentTemplate>
<asp:Label runat="server" ID="myFirstLabel" Text="My First Label"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="myFirstButton" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:Label runat="server" ID="mySecondLabel" Text="My Second Label"></asp:Label>
And the code behind:
p
rotected void myFirstButton_Click(object sender, EventArgs e)
{
myFirstLabel.Text = "Inside Panel " + DateTime.Now.ToString("mm:ss");
}
protected void mySecondButton_Click(object sender, EventArgs e)
{
mySecondLabel.Text = "Outside Panel " + DateTime.Now.ToString("mm:ss");
}
I want to update the label that is not inside an update panel when the second button is clicked.
The second button needs to be in an update panel. I don't want to put the lable into an update panel. | 0 | [
2,
184,
107,
31,
164,
21,
5167,
30,
25,
572,
40,
11100,
1809,
413,
20,
11100,
14,
979,
2478,
60,
800,
3726,
3726,
31,
57,
21,
5167,
572,
40,
11100,
4113,
30,
31,
83,
101,
20,
11100,
14,
979,
2478,
9,
31,
57,
309,
13,
1,
1785... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Who is using BlogEngine.Net for their blog? Does it run well? Will it scale? :P
===
I'm thinking about using BlogEngine.NET to launch my blog. I'm a C# programmer and was wondering was BlogEngine.NET has in the belly.
Does it scale well? Is it caching properly? Is it memory intensive? Can you easily add/remove functionality?
I also accept any hosting recommendation :) | 0 | [
2,
72,
25,
568,
8146,
16847,
9,
2328,
26,
66,
8146,
60,
630,
32,
485,
134,
60,
129,
32,
3464,
60,
13,
45,
306,
800,
3726,
3726,
31,
22,
79,
1440,
88,
568,
8146,
16847,
9,
2328,
20,
3394,
51,
8146,
9,
31,
22,
79,
21,
272,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Creation timestamp and last update timestamp with Hibernate and MySQL
===
For a certain Hibernate entity we have a requirement to store its creation time and the last time it was updated. How would you design this?
* What data types would you use in the database (assuming MySQL, possibly in a different timezone that the JVM)? Will the data types be timezone-aware?
* What data types would you use in Java (`Date`, `Calendar`, `long`, ...)?
* Whom would you make responsible for setting the timestamps—the database, the ORM framework (Hibernate), or the application programmer?
* What annotations would you use for the mapping (e.g. `@Temporal`)?
I'm not only looking for a working solution, but for a safe and well-designed solution. | 0 | [
2,
2502,
436,
38,
10158,
17,
236,
11100,
436,
38,
10158,
29,
4148,
2102,
8820,
17,
51,
18,
22402,
800,
3726,
3726,
26,
21,
1200,
4148,
2102,
8820,
9252,
95,
57,
21,
8981,
20,
1718,
82,
2502,
85,
17,
14,
236,
85,
32,
23,
6372,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ASP.Net development on a MacBook Pro
===
I have a new MacBook Pro and want to get set up to do ASP.Net development on it. So what recommendations can the Stackoverflow community give me (and the others that I'm sure are out there)? Is VMWare Fusion better, or Parallels? Or scrap VM and run BootCamp? Inside the VM (or BootCamp), run XP, Vista, or one of the Server OSs? Any tips for things to disable that will make the environment run a little smoother? Or go another way entirely and use Mono/SharpDevelop? | 0 | [
2,
12121,
26,
28,
306,
9,
2328,
522,
27,
21,
1572,
5199,
895,
800,
3726,
3726,
31,
57,
21,
78,
1572,
5199,
895,
17,
259,
20,
164,
309,
71,
20,
107,
28,
306,
9,
2328,
522,
27,
32,
9,
86,
98,
12121,
92,
14,
7566,
2549,
9990,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Websphere 6.1 and BASIC Authentication
===
I have a sample file for BASIC page authentication that works perfectly in tomcat but it wont work at all in websphere. Any ideas what needs to be done differently in Websphere?
Thanks
Damien | 0 | [
2,
2741,
14079,
400,
9,
165,
17,
2125,
27963,
800,
3726,
3726,
31,
57,
21,
5717,
3893,
26,
2125,
2478,
27963,
30,
693,
5759,
19,
2067,
5782,
47,
32,
7290,
170,
35,
65,
19,
2741,
14079,
9,
186,
3478,
98,
2274,
20,
44,
677,
12670,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
mixing log4cxx and log4net
===
I have a c++ application which logs to some file using log4cxx (RollingFile appender). I want to log into the same file, at the same time, from another module written in c#; so i configured log4net to use the same file, but i can't get the new messages in. If i deactivate the c++ logging, i can see c# messages. So i think it is a locking issue, and looked for a configuration option to tell log4cxx not to lock the file. I came into MinimalLock model for log4net, but couldn't find anything in log4cxx... does anybody know if it could be done, and how?
thanks in advance,
Ernesto Cullen | 0 | [
2,
5826,
6738,
300,
150,
8962,
17,
6738,
300,
2328,
800,
3726,
3726,
31,
57,
21,
272,
20512,
3010,
56,
18893,
20,
109,
3893,
568,
6738,
300,
150,
8962,
13,
5,
8694,
68,
16877,
4865,
13630,
6,
9,
31,
259,
20,
6738,
77,
14,
205,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Normalizing a common ID type shared across tables
===
This is a simplified version of the problem.
We have customers who send us lots of data and then query it. We are required by them to have several "public" ids they can query our data by. (Most want to query our system via the id they send along with the data, but not always). For simplicity, we'll call them "pid", "crid" and "musicbrainzid". We have an "entity" table which stores this information. It looks something like this (the "authority" is who sent the data):
entity
--
entity_id
authority // who sent the data
type // 'pid', 'crid', 'musicbrainz', etc.
value // the actual id value
Then we have separate entities such as "episode", "series" and "broadcast" (actually, there's a lot more, but I'm keeping it simple here). Each of these has an entity_id pointing to the entity table.
How can external customers search, via pid or crid and get the appropriate episode or series, along with proper identification of what it is? Given a pid, we can fetch the entity id, but then we need to search the episode, series and broadcast tables for this value. Further, not all ids will necessarily be related to all of the other tables, but any entity (e.g., an "episode") might have several ids (pid, crid, etc.)
Strategies:
1. Find the entity id for a pid and search every other table for the pid.
2. Put an "entity_type" column on entity, but what if it's a pid in the episode table but we accidentally set episode.type as series? We don't want to duplicate data and I don't want to put database metadata into column values.
Option number 1 is slow and seems wrong (further, the various tables have different structures making problematic).
Option 2 means duplicate data and this data can get out of synch. We can use triggers for force this, but this seems really nasty and, in any event, bugs in the implementation of mysql triggers have hit us several times. We're using this strategy right now, but without triggers.
What's option 3?
Side note: we know we need to break "authority" out into a separate table because not all authority/type combinations are valid. | 0 | [
2,
1826,
3335,
21,
757,
4924,
1001,
2592,
464,
7484,
800,
3726,
3726,
48,
25,
21,
13,
11268,
615,
16,
14,
1448,
9,
95,
57,
5279,
72,
2660,
182,
7503,
16,
1054,
17,
94,
25597,
32,
9,
95,
50,
1390,
34,
105,
20,
57,
238,
13,
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... |
How to automate the generation of HTML output in Enterprise Architect
===
Enterprise Architect has a way to generate the documentation in HTML/RTF/etc. that you could publish, but you have to use its GUI to do that manually. When you have your *.eap files in a CVS/Subversion server, it would be useful to have a script that would check out daily the latest version and publish it in a web server. As long as I know, EA doesn't have a command line utility for this purpose. I found that you can automate almost anything using its COM interface, but that means it's necessary to write a small program to do that. Any ideas about the easiest/cleanest way to do that (without having to write code, if possible)? | 0 | [
2,
184,
20,
3108,
5281,
14,
2782,
16,
13,
15895,
5196,
19,
6002,
3338,
800,
3726,
3726,
6002,
3338,
63,
21,
161,
20,
7920,
14,
13945,
19,
13,
15895,
118,
5256,
410,
118,
1198,
150,
9,
30,
42,
110,
10824,
15,
47,
42,
57,
20,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
.Net vector graphics library
===
What is a good .Net vector graphics library that can be used for CAD like applications, and has a reasonable set of features specific for this type of applications, like computational functions (area, lengths, boolean shape operations etc).
One good solution would be to use WPF as it's vector graphics based, but it's very much UI oriented and not so much CAD functionality is present by default (like manipulating shapes, editing etc).
So I was wandering if there's good library out there for this purpose.
| 0 | [
2,
13,
9,
2328,
7497,
8351,
1248,
800,
3726,
3726,
98,
25,
21,
254,
13,
9,
2328,
7497,
8351,
1248,
30,
92,
44,
147,
26,
8762,
101,
3767,
15,
17,
63,
21,
9954,
309,
16,
967,
1903,
26,
48,
1001,
16,
3767,
15,
101,
16439,
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... |
ASP.NET MVC CTP (first version) fails uninstalling
===
The offending command that msi executes is:
.\devenv.com /command "View.Toolbox" /setup
This fails with Date execution prevention error.
devenv.exe log contains a bunch of errors like this:
<entry>
<record>120</record>
<time>2008/10/21 12:32:01.277</time>
<type>Warning</type>
<source>Microsoft Visual Studio Appid Stub</source>
<description>CheckPackageSignature failed; invalid Package Load Key</description>
<guid>{0C6E6407-13FC-4878-869A-C8B4016C57FE}</guid>
</entry>
And ends with:
<entry>
<record>122</record>
<time>2008/10/21 12:32:05.817</time>
<type></type>
<source>Microsoft Visual Studio</source>
<description>Destroying Main Window</description>
</entry>
Help? | 0 | [
2,
28,
306,
9,
2328,
307,
8990,
272,
13726,
13,
5,
3552,
615,
6,
13614,
367,
108,
21300,
68,
800,
3726,
3726,
14,
168,
7601,
1202,
30,
4235,
49,
15644,
18,
25,
45,
13,
9,
1,
43,
4943,
710,
9,
960,
13,
118,
16239,
13,
7,
4725... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What can be done to prevent spam in forum-like apps?
===
Are there ways except CAPTCHAs for web apps like [pastie.org][1] or [p.ramaze.net][2]? CAPTCHAs take too long for a small paste for my taste.
[1]: http://pastie.org
[2]: http://p.ramaze.net | 0 | [
2,
98,
92,
44,
677,
20,
2501,
6954,
79,
19,
5691,
8,
1403,
4865,
18,
60,
800,
3726,
3726,
50,
80,
2847,
1613,
13960,
1651,
18,
26,
2741,
4865,
18,
101,
636,
19802,
660,
9,
5583,
500,
2558,
165,
500,
54,
636,
306,
9,
10370,
173... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 use "where" to require an attribute in c#?
===
I want to make a generic class that accepts only serializable classes, can it be done with the where constraint?
The concept I'm looking for is this:
public class MyClass<T> where T : //[is serializable/has the serializable attribute] | 0 | [
2,
92,
42,
275,
13,
7,
2798,
7,
20,
4077,
40,
35,
14755,
19,
272,
5910,
60,
800,
3726,
3726,
31,
259,
20,
233,
21,
12733,
718,
30,
16548,
104,
5956,
3186,
579,
2684,
15,
92,
32,
44,
677,
29,
14,
113,
28804,
60,
14,
2420,
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... |
.NET 3.5 SP1 network shares allow exe application to run
===
I could probably find this out from somewhere else but thought it would be a nice question to have on stack overflow.
.NET 2.0 by default stopped managed exe's running from network shares despite the fact you can run unmanaged exe's.
I have seen mention's that this was changed in .NET 3.5 SP1
Is this true?
Would that include any dll's I assume so?
Would I need to recompile the app for 3.5 or would the 3.5 settings override a 2.0 app?
| 0 | [
2,
13,
9,
2328,
203,
9,
264,
3782,
165,
982,
5945,
1655,
1396,
62,
3010,
20,
485,
800,
3726,
3726,
31,
110,
910,
477,
48,
70,
37,
3493,
962,
47,
289,
32,
83,
44,
21,
2210,
1301,
20,
57,
27,
7566,
20285,
9,
13,
9,
2328,
172,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 IEnumerable<T> inherits from IEnumerable?
===
This might be a old question: Why IEnumerable of T inherits from IEnumerable?
This is how .NET do, but it brings a little trouble. Every time I write a class implements IEumerable of T, I have to write tow GetEnumerator() function, one for IEnumerable of T and the other for IEnumerable.
And, IList of T doesn't inherits from IList. I don't know why IEnumerable<T> is designed in other way.
| 0 | [
2,
483,
13,
660,
6336,
106,
579,
1,
38,
1,
17569,
18,
37,
13,
660,
6336,
106,
579,
60,
800,
3726,
3726,
48,
530,
44,
21,
315,
1301,
45,
483,
13,
660,
6336,
106,
579,
16,
13,
38,
17569,
18,
37,
13,
660,
6336,
106,
579,
60,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
When attaching a file to an email, does it need to be stored on the server first?
===
I have a function that automatically exports a table into a CSV file, then I try to attach that same file into a function that will email it. I have sent attachments using html mime mail before, but I was wondering if that created CSV file needs to be stored on the server first before attaching it to the email? | 0 | [
2,
76,
19514,
68,
21,
3893,
20,
40,
8517,
15,
630,
32,
376,
20,
44,
8214,
27,
14,
8128,
64,
60,
800,
3726,
3726,
31,
57,
21,
1990,
30,
7499,
16716,
21,
859,
77,
21,
272,
18,
710,
3893,
15,
94,
31,
1131,
20,
19514,
30,
205,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ways to deal with UTC and daylight saving times...
===
What are the best ways of dealing with UTC Conversion and daylight saving times conversion. What are the problems and their solutions. All in C# .Net 2.0. Also any existing problems with this in .Net 2.0. | 2 | [
2,
246,
2847,
20,
1183,
29,
13,
11440,
17,
12344,
7599,
436,
9,
9,
9,
800,
3726,
3726,
98,
50,
14,
246,
2847,
16,
5746,
29,
13,
11440,
6263,
17,
12344,
7599,
436,
6263,
9,
98,
50,
14,
1716,
17,
66,
6776,
9,
65,
19,
272,
5910... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there any good Javascript graphic library?
===
After staring at [this 3D cube][1] for a while I started wondering if there's any good reliable Javascript graphics library.
Any suggestion?
[1]: http://maettig.com/code/javascript/3d_dots.html | 0 | [
2,
25,
80,
186,
254,
8247,
8741,
8479,
1248,
60,
800,
3726,
3726,
75,
2993,
35,
636,
1565,
203,
43,
13682,
500,
2558,
165,
500,
26,
21,
133,
31,
373,
5712,
100,
80,
22,
18,
186,
254,
11398,
8247,
8741,
8351,
1248,
9,
186,
10910,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Cannot start workling_starling_client in rails production environment
===
I was using **god** to start and monitor my starling and workling daemons.
Works awesome on **development** machine but "workling_starling_client" refuses to start on my **production** machine. | 0 | [
2,
1967,
799,
170,
802,
1,
2265,
802,
1,
150,
18513,
38,
19,
2240,
18,
637,
2307,
800,
3726,
3726,
31,
23,
568,
13,
1409,
5474,
1409,
20,
799,
17,
7626,
51,
778,
802,
17,
170,
802,
13127,
18,
9,
693,
13706,
27,
13,
1409,
26119... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Most "large" companies prefer WISA over LAMP? Why?
===
If this is true, I'd like to know why. Do we see a great percentage of secure and high traffic web applications built in LAMP? | 0 | [
2,
127,
13,
7,
11312,
7,
1532,
6369,
12375,
58,
84,
6792,
60,
483,
60,
800,
3726,
3726,
100,
48,
25,
1151,
15,
31,
22,
43,
101,
20,
143,
483,
9,
107,
95,
196,
21,
374,
5780,
16,
4315,
17,
183,
2227,
2741,
3767,
392,
19,
6792... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
DateTime "null" value
===
I've been searching a lot but couldn't find a solution. How do you deal with a DateTime that should be able to contain an uninitialized value (equivalent to null)? I have a class which might have a DateTime property value set or not. I was thinking of initializing the property holder to DateTime.MinValue, which then could easily be checked. I guess this is a quite common question, how do you do that? | 0 | [
2,
1231,
891,
13,
7,
4215,
211,
7,
1923,
800,
3726,
3726,
31,
22,
195,
74,
5792,
21,
865,
47,
711,
22,
38,
477,
21,
4295,
9,
184,
107,
42,
1183,
29,
21,
1231,
891,
30,
378,
44,
777,
20,
3717,
40,
367,
27313,
1333,
1923,
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... |
Is it possible to set a timeout on a socket in Twisted?
===
I realize I'm probably just dumb and missing something big and important, but I can't figure out how to specify a timeout in twisted using reactor.listenUDP. My goal is to be able to specify a timeout, and after said amount of time, if DatagramProtocol.datagramReceived has not been executed, have it execute a callback or something that I can use to call reactor.stop(). Any help or advice is appreciated. Thanks | 0 | [
2,
25,
32,
938,
20,
309,
21,
85,
1320,
27,
21,
18482,
19,
5308,
60,
800,
3726,
3726,
31,
4007,
31,
22,
79,
910,
114,
9317,
17,
2863,
301,
580,
17,
681,
15,
47,
31,
92,
22,
38,
1465,
70,
184,
20,
19077,
21,
85,
1320,
19,
53... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I force ASP.NET Ajax to use a script from the FS and not WebResource.axd, or to reduce its HTTP requests?
===
Here is a hum-dinger of a problem that I have not found an answer for.
I am using the ASP.NET ajax control toolkit controls on a few pages, which by nature want to load script resources via WebResource.axd. This is all well and good for some applications, but each call to WebResource.axd requires an HTTP request. Most pages will pull at least 3 or 4 resources from the WebResource.axd, so this many HTTP requests are issued for each page.
Since having too many HTTP requests will negatively impact performance and user perceptions of performance, I would like to trim that down to 1 HTTP request, if possible.
If I could extract the script from the AXD or configure asp.net ajax to use a script instead of the WebResource, it would really be sweet.
Does anyone know how I can go about accomplishing the end goal while using asp.net ajax? (At this moment another JS AJAX framework is not an option.) | 0 | [
2,
184,
107,
31,
558,
28,
306,
9,
2328,
20624,
20,
275,
21,
3884,
37,
14,
398,
18,
17,
52,
2741,
99,
12097,
9,
7522,
43,
15,
54,
20,
4136,
82,
7775,
12279,
60,
800,
3726,
3726,
235,
25,
21,
6279,
8,
3258,
106,
16,
21,
1448,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Database Table or XML
===
I'm in the process of designing a small website and was curious when an XML file can/should be substituted for a database table. There are some cases where I think using a database table may be overkill and was just wondering if anyone else has come across making this decision.
Thanks! | 0 | [
2,
6018,
859,
54,
23504,
800,
3726,
3726,
31,
22,
79,
19,
14,
953,
16,
15026,
21,
284,
2271,
17,
23,
7686,
76,
40,
23504,
3893,
92,
118,
14941,
44,
20795,
26,
21,
6018,
859,
9,
80,
50,
109,
1871,
113,
31,
277,
568,
21,
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,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.