unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Is it legal to pass a newly constructed object by reference to a function?
===
Specifically, is the following legal C++?
<pre>class A{};
void foo(A*);
void bar(const A&);
int main(void)
{
foo(&A()); // 1
bar(A()); // 2
}</pre>
It appears to work correctly, but that doesn't mean it's necessarily legal. Is it?
<i>Edit - changed <code>A&</code> to <code>const A&</code></i> | 0 | [
2,
25,
32,
1517,
20,
1477,
21,
2771,
2096,
3095,
34,
2801,
20,
21,
1990,
60,
800,
3726,
3726,
3524,
15,
25,
14,
249,
1517,
272,
20512,
60,
13,
1,
3515,
1,
1898,
21,
1,
73,
11364,
4310,
111,
5,
58,
2483,
6,
73,
11364,
748,
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... |
XML Serialize boolean as 0 and 1
===
The XML Schema Part 2 specifies that an instance of a datatype that is defined as boolean can have the following legal literals {true, false, 1, 0}.
The following XML, for example, when deserialized, sets the boolean property "Emulate" to `true`.
<root>
<emulate>1</emulate>
</root>
However, when I serialize the object back to the XML, I get `true` instead of the numerical value. My question is, is there a way that I can control the boolean representation in the XML?
Thanks!
| 0 | [
2,
23504,
5956,
2952,
9827,
413,
210,
28,
713,
17,
137,
800,
3726,
3726,
14,
23504,
23874,
141,
172,
27669,
30,
40,
4851,
16,
21,
1054,
4474,
30,
25,
2811,
28,
9827,
413,
210,
92,
57,
14,
249,
1517,
20665,
18,
13,
1,
13398,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Reuse of SQL stored procedures across applications
===
I'm curious about people's approaches to using stored procedures in a database that is accessed by many applications. Specifically, do you tend to keep different sets of stored procedures for each application, do you try to use a shared set, or do you do a mix?
On the one hand, reuse of SPs allows for fewer changes when there is a model change or something similar and ideally less maintenance. On the other hand, if the needs of the applications diverge, changes to a stored procedure for one application can break other applications. I should note that in our environment, each application has its own development team, with poor communication between them. The data team has better communication though, and is mostly tasked with the stored procedure writing.
Thanks! | 0 | [
2,
302,
3699,
16,
4444,
255,
8214,
8876,
464,
3767,
800,
3726,
3726,
31,
22,
79,
7686,
88,
148,
22,
18,
7501,
20,
568,
8214,
8876,
19,
21,
6018,
30,
25,
12904,
34,
151,
3767,
9,
3524,
15,
107,
42,
5480,
20,
643,
421,
3415,
16,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you create a MANIFEST.MF that's available when you're testing and running from a jar in production?
===
I've spent far too much time trying to figure this out. This should be the simplest thing and everyone who distributes Java applications in jars must have to deal with it.
I just want to know the proper way to add versioning to my Java app so that I can access the version information when I'm testing, e.g. debugging in Eclipse **and** running from a jar.
Here's what I have in my build.xml:
<target name="jar" depends = "compile">
<property name="version.num" value="1.0.0"/>
<buildnumber file="build.num"/>
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<manifest file="${build}/META-INF/MANIFEST.MF">
<attribute name="Built-By" value="${user.name}" />
<attribute name="Built-Date" value="${TODAY}" />
<attribute name="Implementation-Title" value="MyApp" />
<attribute name="Implementation-Vendor" value="MyCompany" />
<attribute name="Implementation-Version" value="${version.num}-b${build.number}"/>
</manifest>
<jar destfile="${build}/myapp.jar" basedir="${build}" excludes="*.jar" />
</target>
This creates /META-INF/MANIFEST.MF and I can read the values when I'm debugging in Eclipse thusly:
public MyClass()
{
try
{
InputStream stream = getClass().getResourceAsStream("/META-INF/MANIFEST.MF");
Manifest manifest = new Manifest(stream);
Attributes attributes = manifest.getMainAttributes();
String implementationTitle = attributes.getValue("Implementation-Title");
String implementationVersion = attributes.getValue("Implementation-Version");
String builtDate = attributes.getValue("Built-Date");
String builtBy = attributes.getValue("Built-By");
}
catch (IOException e)
{
logger.error("Couldn't read manifest.");
}
}
But, when I create the jar file, it loads the manifest of another jar (presumably the first jar loaded by the application - in my case, activation.jar).
Also, the following code doesn't work either although all the proper values are in the manifest file.
Package thisPackage = getClass().getPackage();
String implementationVersion = thisPackage.getImplementationVersion();
Any ideas?
| 0 | [
2,
184,
107,
42,
1600,
21,
13160,
9,
13235,
30,
22,
18,
904,
76,
42,
22,
99,
4431,
17,
946,
37,
21,
5112,
19,
637,
60,
800,
3726,
3726,
31,
22,
195,
1111,
463,
266,
212,
85,
749,
20,
1465,
48,
70,
9,
48,
378,
44,
14,
24384... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best way to share files between Xen VM's?
===
Is there some built-in way to share files between Xen VMs with Xen? I don't currently need to share the actual images, just some data files.
| 0 | [
2,
98,
25,
14,
246,
161,
20,
1891,
6488,
128,
13,
14940,
13,
20147,
22,
18,
60,
800,
3726,
3726,
25,
80,
109,
392,
8,
108,
161,
20,
1891,
6488,
128,
13,
14940,
13,
20147,
18,
29,
13,
14940,
60,
31,
221,
22,
38,
871,
376,
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,
0,
0,
0,
0,
0,
0... |
How to use perldoc for %ENV?
===
I find from reading perldoc perlvar, about a thousand lines in is help for %ENV. Is there a way to find that from the command line directly?
On my Windows machine, I've tried the following
perldoc ENV
perldoc %ENV
perldoc %%ENV
perldoc -r ENV (returns info about Use Env)
perldoc -r %ENV
perldoc -r %%%ENV
perldoc -r %%%%ENV (says No documentation found for "%ENV")
None actually return information about the %ENV variable.
How do I use perldoc to find out about %ENV, if I don't want to have to eye-grep through thousands of line? | 0 | [
2,
184,
20,
275,
416,
255,
13799,
26,
13,
11881,
219,
710,
60,
800,
3726,
3726,
31,
477,
37,
1876,
416,
255,
13799,
416,
255,
3311,
15,
88,
21,
2996,
1560,
19,
25,
448,
26,
13,
11881,
219,
710,
9,
25,
80,
21,
161,
20,
477,
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's your favorite "programmer" cartoon.
===
Personally I like this one.
![alt text][1]
[1]: http://www.jeffpalm.com/fox/fox.jpg | 0 | [
2,
98,
22,
18,
154,
3839,
13,
7,
19746,
1263,
7,
8982,
9,
800,
3726,
3726,
7200,
31,
101,
48,
53,
9,
13,
187,
2558,
192,
38,
1854,
500,
2558,
165,
500,
636,
165,
500,
45,
7775,
6903,
6483,
9,
27048,
26355,
9,
960,
118,
18219,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to deploy SQL Reporting 2005 when Data Sources are locked?
===
The DBAs here maintain all SQL Server and SQL Reporting servers. I have a custom developed SQL Reporting 2005 project in Visual Studio that runs fine on my local SQL Database and Reporting instances. I need to deploy to a production server, so I had a folder created on a SQL Reporting 2005 server with permissions to upload files. Normally, a deploy from within Visual Studio is all that is needed to upload the report files.
However, for security purposes, data sources are maintained explicitly by DBAs and stored in a separated locked down common folder on the reporting server. I had them create the data source for me.
When I attempt to deploy from VS, it gives me the error "The item '/Data Sources' already exists." I get this whether I'm deploying the whole project or just a single report file. I already set OverwriteDataSources=false in the project properties. The TargetServer URL and folder are verified correct.
I suppose I could copy the files manually, but I'd like to be able to deploy from within VS. What could I be doing wrong?
| 0 | [
2,
184,
20,
17617,
4444,
255,
6670,
812,
76,
1054,
2662,
50,
4011,
60,
800,
3726,
3726,
14,
13,
43,
6093,
235,
4027,
65,
4444,
255,
8128,
17,
4444,
255,
6670,
17595,
9,
31,
57,
21,
5816,
885,
4444,
255,
6670,
812,
669,
19,
3458,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Error handling reporting methods with ASP.NET 2.0 / C#
===
Does anyone know of an open source module or a good method for handling application errors and e-mailing them to an admin and/or saving to a database? | 0 | [
2,
7019,
7988,
6670,
3195,
29,
28,
306,
9,
2328,
172,
9,
387,
13,
118,
272,
5910,
800,
3726,
3726,
630,
1276,
143,
16,
40,
368,
1267,
12613,
54,
21,
254,
2109,
26,
7988,
3010,
11908,
17,
13,
62,
8,
8079,
68,
105,
20,
40,
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,
0,
0,
0,
0,
0,
0,
0... |
Keep pagination repeatable if change operations are performed
===
If one wants to paginate results from a data source that supports pagination we have to go to a process of:
1. defining the page size - that is the number of results to show per page;
2. fetch each page requested by the user using an offset = page number (0 based) * page size
3. show the results of the fetched page.
All this is works just fine not considering the fact that an operation may affect the backend system that screws up the pagination taking place. I am talking about someone inserting data between page fetches or deleting data.
page_size = 10;
get page 0 -> results from 0 to 9;
user inserts a record that due to the query being executed goes to page 0 - the one just shown;
get page 1 -> results from 10 to 19 - the first results on the page is the result on the old page 0.
The described behavior can cause confusion to the viewer. Do you know any practical solution to workaround this problem. | 0 | [
2,
643,
19006,
108,
857,
6830,
579,
100,
753,
1311,
50,
986,
800,
3726,
3726,
100,
53,
2846,
20,
19006,
17939,
1736,
37,
21,
1054,
1267,
30,
6747,
19006,
108,
857,
95,
57,
20,
162,
20,
21,
953,
16,
45,
137,
9,
14684,
14,
2478,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Read Active Directory Group Membership From PHP/IIS using COM?
===
I have the following code:
$bind = new COM("LDAP://CN=GroupName,OU=Groups,OU=Division,DC=company,DC=local");
When I execute it from a command-prompt, it runs fine. When it runs under IIS/PHP/ISAPI, it barfs.
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `LDAP://CN=...[cut]...,DC=local':
An operations error occurred. ' in index.php
Stack trace:
#0 index.php: com->com('LDAP://CN=...')
#1 {main} thrown
IIS is configured for Windows Authentication and I am connecting as the same user as the command prompt. I cannot find any specific errors in the IIS logfiles or the eventlog.
The main purpose of this exercise is to refrain from keeping user credentials in my script and relying on IIS authentication to pass them through to the active directory. I understand that you can use LDAP to accomplish the same thing, but as far as I know credentials cannot be passed through.
Perhaps it is in some way related to the error I get when I try to port it to ASP. I get error 80072020 (which I'm currently looking up).
| 0 | [
2,
184,
20,
1302,
1348,
16755,
214,
4363,
37,
13,
26120,
118,
2865,
18,
568,
13,
960,
60,
800,
3726,
3726,
31,
57,
14,
249,
1797,
45,
5579,
4772,
43,
800,
78,
13,
960,
5,
7,
255,
20472,
6903,
9881,
3726,
8024,
7259,
15,
2655,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 avoid ta warning fom an unused parameter in PLSQ?
===
Sometimes, in PL SQL you want to add a parameter to a Package, Funtion or Procedure in order to prepare future functionallity. For example:
create or replace function doGetMyAccountMoney( Currency IN char := 'EUR') return number
is
Result number(12,2);
begin
Result := 10000;
IF char <> 'EUR' THEN
-- ERROR NOT IMPLEMENTED YET
END IF;
return(Result);
end doGetMyAccountMoney;also
It can lead to lots of warnings like
Compilation errors for FUNCTION APPUEMP_PRAC.DOGETMYACCOUNTMONEY
Error: Hint: Parameter 'Currency' is declared but never used in 'doGetMyAccountMoney'
Line: 1
What would be the best way to avoid thouse warnings?
Thanks in advance. | 0 | [
2,
184,
92,
31,
2658,
5144,
3590,
4310,
79,
40,
18927,
18906,
19,
12443,
18,
1251,
60,
800,
3726,
3726,
1030,
15,
19,
12443,
4444,
255,
42,
259,
20,
3547,
21,
18906,
20,
21,
6030,
15,
2414,
3309,
54,
7004,
19,
389,
20,
5723,
102... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Understanding how Ada serializes a record
===
I would like to be able to predict what will be in the resulting binary when I call Write in Ada to serialize a record. Do you know where I can look this up?
I have some legacy Ada software that produces a binary file by Write-ing a record, and I need to debug a C++ program that is supposed to write a compatible binary file. So, I would like to understand what rules Ada follows when it serializes a record, so that I can make sure that the C++ code will produce a functionally equivalent record. | 0 | [
2,
3260,
184,
13,
4405,
5956,
13569,
21,
571,
800,
3726,
3726,
31,
83,
101,
20,
44,
777,
20,
9584,
98,
129,
44,
19,
14,
2927,
14171,
76,
31,
645,
2757,
19,
13,
4405,
20,
5956,
2952,
21,
571,
9,
107,
42,
143,
113,
31,
92,
361... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 authenticate against an Active Directory server using Spring Security?
===
I'm writing a Spring web application that requires users to login. My company has an Active Directory server that I'd like to make use of for this purpose. However, I'm having trouble using Spring Security to connect to the server.
I'm using Spring 2.5.5 and Spring Security 2.0.3, along with Java 1.6.
If I change the LDAP URL to the wrong IP address, it doesn't throw an exception or anything, so I'm wondering if it's even *trying* to connect to the server to begin with.
Here are my security-related beans:
<beans:bean id="ldapAuthProvider" class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
<beans:constructor-arg>
<beans:bean class="org.springframework.security.providers.ldap.authenticator.BindAuthenticator">
<beans:constructor-arg ref="initialDirContextFactory" />
<beans:property name="userDnPatterns">
<beans:list>
<beans:value>sAMAccountName={0},OU=SBSUsers,OU=Users,OU=MyBusiness,DC=Acme,DC=com</beans:value>
</beans:list>
</beans:property>
</beans:bean>
</beans:constructor-arg>
</beans:bean>
<beans:bean id="userDetailsService" class="org.springframework.security.userdetails.ldap.LdapUserDetailsManager">
<beans:constructor-arg ref="initialDirContextFactory" />
</beans:bean>
<beans:bean id="initialDirContextFactory" class="org.springframework.security.ldap.DefaultInitialDirContextFactory">
<beans:constructor-arg value="ldap://192.168.123.456:389/DC=Acme,DC=com" />
</beans:bean>
Thanks. | 0 | [
2,
184,
107,
42,
14351,
1373,
149,
40,
1348,
16755,
8128,
568,
1573,
1221,
60,
800,
3726,
3726,
31,
22,
79,
1174,
21,
1573,
2741,
3010,
30,
4781,
3878,
20,
6738,
108,
9,
51,
237,
63,
40,
1348,
16755,
8128,
30,
31,
22,
43,
101,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a better way to create an object-oriented class with jquery?
===
I use the jquery [extend][1] function to extend a class prototype.
For example:
MyWidget = function(name_var) {
this.init(name_var);
}
$.extend(MyWidget.prototype, {
// object variables
widget_name: '',
init: function(widget_name) {
// do initialization here
this.widget_name = widget_name;
},
doSomething: function() {
// an example object method
alert('my name is '+this.widget_name);
}
});
// example of using the class built above
var widget1 = new MyWidget('widget one');
widget1.doSomething();
Is there a better way to do this? Is there a cleaner way to create the class above with only one statement instead of two?
[1]: http://docs.jquery.com/Utilities/jQuery.extend | 0 | [
2,
25,
80,
21,
574,
161,
20,
1600,
40,
3095,
8,
6800,
718,
29,
487,
8190,
93,
60,
800,
3726,
3726,
31,
275,
14,
487,
8190,
93,
636,
1706,
1316,
43,
500,
2558,
165,
500,
1990,
20,
7206,
21,
718,
7063,
9,
26,
823,
45,
51,
3976... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Testing Naming Conventions
===
What are the best conventions of naming testing-assemblies in .NET (or any other language or platform)?
What I'm mainly split between are these options (please provide others!):
- **Company.Website** - *the project*
- **Company.Website.Tests**
*or*
- **Company.Website**
- **Company.WebsiteTests**
The problem with the first solution is that it looks like .Tests are a sub-namespace to the site, while they really are more parallel in my mind. What happens when a new sub-namespace comes into play, like **Company.Website.Controls**, where should I put the tests for that namespace, for instance?
Maybe it should even be: **Tests.Company.Website** and **Tests.Company.Website.Controls**, and so on. | 0 | [
2,
13,
9,
2328,
4431,
10929,
15117,
800,
3726,
3726,
98,
50,
14,
246,
15117,
16,
10929,
4431,
8,
9790,
5024,
7712,
19,
13,
9,
2328,
13,
5,
248,
186,
89,
816,
54,
2452,
6,
60,
98,
31,
22,
79,
2011,
2132,
128,
50,
158,
6368,
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... |
Which thread should I process the RxTx SerialEvent.DATA_AVAILABLE event?
===
I'm using the RxTx library over usbserial on a Linux distro. The RxTx lib seems to behave quite differently (in a bad way) than how it works over serial.
My application has several threads and one of my biggest problems is that out of nowhere, I seem to be getting one to two extra bytes on my stream. I can't figure out where they come from or why. This problem seems to occur a lot more frequently when I write to the RxTx stream using another thread.
So I was wonder if I should process the read on the current RxTx thread or should I process the read on another thread when I get the DATA_AVAILABLE event.
I'm hoping someone might have good or bad reasons for doing it one way or the other. | 0 | [
2,
56,
9322,
378,
31,
953,
14,
13,
21141,
38,
396,
5956,
4943,
38,
9,
18768,
1,
4961,
947,
579,
807,
60,
800,
3726,
3726,
31,
22,
79,
568,
14,
13,
21141,
38,
396,
1248,
84,
182,
4562,
106,
2815,
27,
21,
13024,
1460,
3996,
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... |
Get IFile from IWorkspaceRoot and location String
===
This is an Eclipse question, and you can assume the Java package for all these Eclipse classes is `org.eclipse.core.resources`.
I want to get an `IFile` corresponding to a location `String` I have:
"platform:/resource/Tracbility_All_Supported_lib/processes/gastuff/globalht/GlobalHTInterface.wsdl"
I have the enclosing `IWorkspace` and `IWorkspaceRoot`. If I had the `IPath` corresponding to the location above, I could simply call `IWorkspaceRoot.getFileForLocation(IPath)`.
How do I get the corresponding `IPath` from the location `String`? Or is there some other way to get the corresponding `IFile`?
| 0 | [
2,
164,
100,
3599,
37,
31,
3783,
5582,
14032,
17,
1474,
3724,
800,
3726,
3726,
48,
25,
40,
11652,
1301,
15,
17,
42,
92,
7158,
14,
8247,
6030,
26,
65,
158,
11652,
2684,
25,
13,
1,
5583,
9,
3319,
6013,
870,
9,
10375,
9,
99,
1209... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 operating systems available for an 8-bit microprocessor?
===
It does not need to be a full fledged OS, but at least have multitasking capabilities (i.e. a scheduler).
Please mention what processor architecture it works on.
This is a **survey**, so exact capabilities are not really important. Think of this as being a place to look at for possibilities when your next 8-bit embedded project comes up... | 4 | [
2,
98,
2455,
1242,
904,
26,
40,
469,
8,
3326,
2899,
16835,
248,
60,
800,
3726,
3726,
32,
630,
52,
376,
20,
44,
21,
503,
13,
27398,
13,
759,
15,
47,
35,
639,
57,
1889,
6922,
1581,
10209,
13,
5,
49,
9,
62,
9,
21,
4345,
139,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Excel 2007 pivot tables - how to use calculated fields when connecting to a data cube?
===
Can you use calculated fields in Excel 2007 pivot tables when the data source is an SSAS data cube?
I am connecting to a SQL Server 2005 data cube with Excel 2007 and viewing the data though a pivot table. I want to create calculated fields in my pivot table, but the "Formulas" button is grayed out.
How do I do create calculated fields (if it is possible when connecting to a data cube) ? | 0 | [
2,
20700,
624,
20670,
7484,
13,
8,
184,
20,
275,
10785,
2861,
76,
6440,
20,
21,
1054,
13682,
60,
800,
3726,
3726,
92,
42,
275,
10785,
2861,
19,
20700,
624,
20670,
7484,
76,
14,
1054,
1267,
25,
40,
13,
8234,
18,
1054,
13682,
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... |
How to accept REF cursor in JAVA without importing Oracle Package
===
I am writting JAVA programme using JDBC for database conntectivity , I am calling one stored procedure in that which is returning ORACLE REF CURSOR , IS there any way I can handle that without importing ORACLE PACKAGES ? | 0 | [
2,
184,
20,
3440,
13,
14057,
29588,
19,
8247,
366,
9010,
68,
15759,
6030,
800,
3726,
3726,
31,
589,
20127,
1203,
8247,
2866,
568,
487,
43,
7229,
26,
6018,
15201,
9568,
38,
9633,
13,
15,
31,
589,
2555,
53,
8214,
7004,
19,
30,
56,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I speed up data retrieval from .NET AD within ColdFusion
===
How can I optimize the following code, which currently takes over 2 minutes to retrieve and loop through 800+ records from a pool of over 100K records, returning 6 fields per record (adds approximately 20 seconds per additional field):
<cfset dllPath="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.DirectoryServices.dll" />
<cfset LDAPPath="LDAP://" & arguments.searchPath />
<cfset theLookUp=CreateObject(".NET","System.DirectoryServices.DirectoryEntry", dllPath).init(LDAPPath) />
<cfset theSearch=CreateObject(".NET","System.DirectoryServices.DirectorySearcher", dllPath).init(theLookUp) />
<cfset theSearch.Set_Filter(arguments.theFilter) />
<cfset theObject = theSearch.FindAll() />
<cfloop index="row" from="#startRow#" to="#endRow#">
<cfset QueryAddRow(theQuery) />
<cfloop list="#columnList#" index="col">
<cfloop from="0" to="#theObject.Get_Item(row).Get_Properties().Get_Item(col).Get_Count()-1#" index="item">
<cftry>
<cfset theQuery[col][theQuery.recordCount]=ListAppend(theQuery[col][theQuery.recordCount],theObject.Get_Item(row).Get_Properties().Get_Item(col).Get_Item(item),"|") />
<cfcatch type="any">
</cfcatch>
</cftry>
</cfloop>
</cfloop>
</cfloop> | 0 | [
2,
184,
107,
31,
1362,
71,
1054,
28419,
37,
13,
9,
2328,
21,
43,
363,
1191,
9818,
800,
3726,
3726,
184,
92,
31,
22864,
14,
249,
1797,
15,
56,
871,
1384,
84,
172,
902,
20,
11917,
17,
5293,
120,
7993,
2430,
742,
37,
21,
3067,
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... |
What is the single best free Eclipse plugin for a Java developer
===
Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin, for example - and I'm not interested in those.
Some provide useful enhancements, but in a specific niche. I'm not interested in those.
Some are great, but cost money. I'm not interested in those.
Some were really useful on older versions of Eclipse, but are now part of the core build of the latest Eclipee version (3.4 as I write this). I'm not interested in those.
I want advice on which plugins every Java SE developer should be installing, one per answer please.
| 4 | [
2,
98,
25,
14,
345,
246,
551,
11652,
10922,
108,
26,
21,
8247,
10058,
800,
3726,
3726,
109,
11652,
10922,
108,
18,
50,
20007,
34,
154,
2307,
9,
14,
4593,
1267,
1797,
1097,
10922,
108,
15,
26,
823,
13,
8,
17,
31,
22,
79,
52,
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... |
PHP efficient array searching to fill in form fields
===
I am using Form Tools v1.4.7. I am attempting to customize its edit_submission.php file. Essentially, I want it to just show me the original form with the data filled in.
Currently, edit_submission.php just loops through an array and displays all the fields in the database with the data filled in. That is fine if you just want to output all the data, but it doesn't make it very easy for me to auto-fill the fields in my custom form.
I am looking for an efficient way to pull the data I want out of the $submission_info array so I can easily auto-fill my form fields.
Output of Print_r($submission_info[1]):
Array ( [field_id] => 2399 [form_id] => 4 [field_name] => loanOfficer [field_test_value] => ABCDEFGHIJKLMNOPQRSTUVWXYZ [field_size] => medium [field_type] => other [data_type] => string [field_title] => LoanOfficer [col_name] => loanOfficer [list_order] => 2 [admin_display] => yes [is_sortable] => yes [include_on_redirect] => yes [option_orientation] => vertical [file_upload_dir] => [file_upload_url] => [file_upload_max_size] => 1000000 [file_upload_types] => [content] => John Doe )
Here is the code it uses to display all the data from the array:
// loop through $submission_info and display all the contents
for ($i=0; $i<count($submission_info); $i++)
{
if ($submission_info[$i]["col_name"] == "ip_address" && $form_info["show_ip_address"] == "no")
continue;
echo "<tr height='20'>
<td> {$submission_info[$i]['field_title']}</td>
<td>";
$id_num = 1;
switch ($submission_info[$i]['field_type'])
{
case "select":
$option_info = ft_get_field_options($submission_info[$i]['field_id']);
echo "<select name='{$submission_info[$i]['col_name']}'>";
while ($option = mysql_fetch_assoc($option_info))
{
echo "<option value='{$option['option_value']}'";
if ($option['option_value'] == $submission_info[$i]['content'])
echo " selected";
echo ">{$option['option_name']}</option>\n";
}
echo "</select>";
break;
case "radio-buttons":
$option_info = ft_get_field_options($submission_info[$i]['field_id']);
$pagebreak = ($submission_info[$i]['option_orientation'] == "vertical") ? "<br />" : "";
while ($option = mysql_fetch_assoc($option_info))
{
$id = "{$submission_info[$i]['field_id']}_$id_num";
echo "<input type='radio' name='{$submission_info[$i]['col_name']}' value='{$option['option_value']}' id='$id'";
if ($option['option_value'] == $submission_info[$i]['content'])
echo " checked";
echo "><label for='$id'>{$option['option_name']}</label>$pagebreak\n";
$id_num++;
}
break;
case "checkboxes":
$selected = explode("$g_multi_val_delimiter", $submission_info[$i]['content']);
$option_info = ft_get_field_options($submission_info[$i]['field_id']);
$pagebreak = ($submission_info[$i]['option_orientation'] == "vertical") ? "<br />" : "";
while ($option = mysql_fetch_assoc($option_info))
{
$id = "{$submission_info[$i]['field_id']}_$id_num";
echo "<input type='checkbox' name='{$submission_info[$i]['col_name']}[]' value='{$option['option_value']}' id='$id'";
if (in_array($option['option_value'], $selected))
echo " checked";
echo "><label for='$id'>{$option['option_name']}</label>$pagebreak\n";
$id_num++;
}
break;
case "multi-select":
$selected = explode("$g_multi_val_delimiter", $submission_info[$i]['content']);
$option_info = ft_get_field_options($submission_info[$i]['field_id']);
echo "<select name='{$submission_info[$i]['col_name']}[]' size='5' multiple>";
while ($option = mysql_fetch_assoc($option_info))
{
echo "<option value='{$option['option_value']}'";
if (in_array($option['option_value'], $selected))
echo " selected";
echo ">{$option['option_name']}</option>\n";
$id_num++;
}
echo "</select>";
break;
case "file":
$file_upload_url = $submission_info[$i]['file_upload_url'];
if (!empty($submission_info[$i]['content']))
{
$filename = ft_trim_string($submission_info[$i]['content'], 80, "page_break");
echo "<a href='$file_upload_url/{$submission_info[$i]['content']}' target='_blank'>$filename</a>";
echo " <input type='button' value='DELETE FILE' onclick='delete_submission_file({$submission_info[$i]['field_id']});' />";
}
else
{
echo "<input type='file' name='{$submission_info[$i]['col_name']}' />";
}
break;
case "system":
switch ($submission_info[$i]["col_name"])
{
case "submission_id":
echo $submission_id;
break;
case "submission_date":
echo ft_get_date($settings['timezone_offset'], $submission_info[$i]['content'], $settings['date_format']);
break;
case "ip_address":
echo $submission_info[$i]['content'];
break;
}
break;
// textarea / textboxes
default:
$content = htmlspecialchars($submission_info[$i]['content'], ENT_QUOTES);
if ($submission_info[$i]['field_size'] == "tiny")
echo "<input type='text' name='{$submission_info[$i]['col_name']}' value='$content' style='width: 50px;' />";
else if ($submission_info[$i]['field_size'] == "small")
echo "<input type='text' name='{$submission_info[$i]['col_name']}' value='$content' style='width: 150px;' />";
else if ($submission_info[$i]['field_size'] == "medium")
echo "<input type='text' name='{$submission_info[$i]['col_name']}' value='$content' style='width: 100%;' />";
else if (($submission_info[$i]['field_size'] == "large") || ($submission_info[$i]['field_size'] == "very_large"))
echo "<textarea name='{$submission_info[$i]['col_name']}' style='width: 100%; height: 80px'>$content</textarea>";
break;
} | 0 | [
2,
13,
26120,
8243,
7718,
5792,
20,
3509,
19,
505,
2861,
800,
3726,
3726,
31,
589,
568,
505,
4672,
566,
165,
9,
300,
9,
465,
9,
31,
589,
6314,
20,
5816,
2952,
82,
9392,
1,
7563,
12385,
9,
26120,
3893,
9,
7398,
15,
31,
259,
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... |
tagName is null or not an object -- error msg in IE7 using latest version of jQuery (1.2.6)
===
has anyone else seen this error message. a quick check with google doesn't show me much. | 0 | [
2,
3383,
7259,
25,
16203,
54,
52,
40,
3095,
13,
8,
8,
7019,
4235,
263,
19,
13,
660,
465,
568,
5736,
615,
16,
487,
8190,
93,
13,
5,
165,
9,
135,
9,
379,
6,
800,
3726,
3726,
63,
1276,
962,
541,
48,
7019,
2802,
9,
21,
2231,
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,
0,
0,
0,
0,
0,
0... |
Dockable Form
===
How do you create a "dockable" form, similar to the windows in Visual Studio? | 0 | [
2,
6120,
579,
505,
800,
3726,
3726,
184,
107,
42,
1600,
21,
13,
7,
11458,
579,
7,
505,
15,
835,
20,
14,
1936,
19,
3458,
1120,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
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... |
What is the simplest and best tool for real-time tweaking of CSS in IE6, similar to what Firebug does for Firefox?
===
All front-end developers know the pain of coding for Firefox, then viewing our then mangled pages in IE6. We usually used IE conditional comments to create separate CSS files for IE to render correctly. It would be great if there was a tool like Firebug for IE. Firebug "lite" exists but it seems to be very beta. Is there a better alternative? | 0 | [
2,
98,
25,
14,
24384,
17,
246,
5607,
26,
683,
8,
891,
28769,
68,
16,
272,
18,
18,
19,
13,
660,
379,
15,
835,
20,
98,
535,
16254,
630,
26,
535,
18219,
60,
800,
3726,
3726,
65,
431,
8,
2451,
10168,
143,
14,
1257,
16,
13,
15458... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Super Robust as chrome c++ and portable - tips - help - comments.
===
We are producing a portable code (win+macOs) and we are looking at how to make the code more rubust as it crashes every so often... (overflows or bad initializations usually) :-(
I was reading that Google Chrome uses a process for every tab so if something goes wrong then the program does not crash compleatelly, only that tab. I think that is quite neat, so i might give it a go!
So i was wondering if someone has some tips, help, reading list, comment, or something that can help me build more rubust c++ code (portable is always better).
In the same topic i was also wondering if there is a portable library for processes (like boost)?
Well many Thanks. | 0 | [
2,
1026,
15313,
28,
13,
12985,
272,
20512,
17,
13469,
13,
8,
11034,
13,
8,
448,
13,
8,
7534,
9,
800,
3726,
3726,
95,
50,
4081,
21,
13469,
1797,
13,
5,
4181,
2430,
6893,
759,
6,
17,
95,
50,
699,
35,
184,
20,
233,
14,
1797,
91... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Distributed hierarchical clustering
===
Are there any algorithms that can help with hierarchical clustering?
Google's map-reduce has only an example of k-clustering. In case of hierarchical clustering, I'm not sure how it's possible to divide the work between nodes.
Other resource that I found is: http://issues.apache.org/jira/browse/MAHOUT-19
But it's not apparent, which algorithms are used. | 0 | [
2,
4387,
21376,
4272,
7460,
68,
800,
3726,
3726,
50,
80,
186,
15935,
30,
92,
448,
29,
21376,
4272,
7460,
68,
60,
8144,
22,
18,
2942,
8,
99,
16041,
63,
104,
40,
823,
16,
680,
8,
10301,
18,
11832,
9,
19,
610,
16,
21376,
4272,
74... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 1.1 Page_ClientValidate Debugging
===
I have an ASP.NET 1.1 application, and on my local machine the submit button on my page works fine, but when I deploy it to our development application server, I click on Submit and nothing happens.. I'm assuming that the Page_Validate() function is failing and disabling the POSTBACK, but how do I debug this and determine what is failing? It sounds like some config problem since it works great on my local machine but not on the remote server... | 0 | [
2,
28,
306,
9,
2328,
137,
9,
165,
2478,
1,
150,
18513,
38,
18506,
8209,
121,
16254,
2762,
800,
3726,
3726,
31,
57,
40,
28,
306,
9,
2328,
137,
9,
165,
3010,
15,
17,
27,
51,
375,
1940,
14,
12298,
5167,
27,
51,
2478,
693,
1123,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
XML node name clean up code
===
I am trying to create an XML file based on data fields from a table, and I want to have the nodes named based on the value in a field from the table. The problem is that sometimes values entered in that column contain spaces and other characters not allowed in Node names.
Does anyone have any code that will cleanup a passed in string and repalce invalid characters with replacement text so that it can be reversed on the other end and get the original value back? | 0 | [
2,
23504,
15421,
204,
2745,
71,
1797,
800,
3726,
3726,
31,
589,
749,
20,
1600,
40,
23504,
3893,
432,
27,
1054,
2861,
37,
21,
859,
15,
17,
31,
259,
20,
57,
14,
16272,
377,
432,
27,
14,
1923,
19,
21,
575,
37,
14,
859,
9,
14,
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 I programmatically wire up ToolStripButton events in C#?
===
I'm programmatically adding ToolStripButton items to a context menu.
That part is easy.
this.tsmiDelete.DropDownItems.Add("The text on the item.");
However, I also need to wire up the events so that when the user clicks the item something actually happens!
How do I do this? The method that handles the click also needs to receive some sort of id or object that relates to the particular ToolStripButton that the user clicked.
| 0 | [
2,
184,
107,
31,
625,
6732,
1326,
6511,
71,
4672,
17851,
811,
444,
963,
19,
272,
5910,
60,
800,
3726,
3726,
31,
22,
79,
625,
6732,
1326,
4721,
4672,
17851,
811,
444,
3755,
20,
21,
4141,
11379,
9,
30,
141,
25,
2010,
9,
48,
9,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I create a self-signed certificate for code signing on Windows?
===
While you can create a self-signed code-signing (SPC) certificate in one go, I prefer to do the following:
<h3>Creating a self-signed Certificate Authority (CA)</h3>
makecert -r -pe -n "CN=My CA" -ss CA -sr CurrentUser
-a sha1 -sky signature -sv MyCA.pvk MyCA.cer
(watch for line-breaks)
This creates a self-signed (-r) certificate, with an exportable private key (-pe). It's named "My CA", and should be put in the CA store for the current user. We're using the sha1 algorithm. The keys meant for signing (-sky).
The private key should be stored in the CA.pvk file, and the certificate in the CA.cer file.
<h3>Importing the CA Certificate</h3>
Because there's no point in having a CA certificate if you don't trust it, you'll need to import it into the Windows certificate store. You *can* use the Certificates MMC snapin, but from the command line:
certutil -user -addstore Root CA.cer
<h3>Creating a code-signing (SPC) Certificate</h3>
makecert -pe -n "CN=My SPC" -a sha1 -sky signature
-ic MyCA.cer -iv MyCA.pvk
-sv MySPC.pvk MySPC.cer
Pretty much the same as above, but we're providing an issuer key and certificate (the -ic and -iv switched).
We'll also want to convert the certificate and key into a PFX file:
pvk2pfx -pvk MySPC.pvk -spc MySPC.cer -pfx MySPC.pfx
If you want to protect the PFX file, add the -po switch, otherwise PVK2PFX creates a PFX file with no passphrase.
You can now use this certificate for signing code:
signtool sign /v /f MySPC.pfx MyExecutable.exe
If you import the PFX file into the certificate store (you can use PVKIMPRT or the MMC snapin), you can sign code as follows:
signtool sign /v /n "Me" /s SPC /d http://www.me.me
/t http://timestamp.url MyExecutable.exe
| 0 | [
2,
184,
107,
31,
1600,
21,
1119,
8,
13472,
6259,
26,
1797,
5479,
27,
1936,
60,
800,
3726,
3726,
133,
42,
92,
1600,
21,
1119,
8,
13472,
1797,
8,
11255,
68,
13,
5,
18,
5779,
6,
6259,
19,
53,
162,
15,
31,
6369,
20,
107,
14,
249... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best choice for .net inner process communication?
===
Should I use Named Pipes, or .NET Remoting to communicate with a running process on my machine?
| 0 | [
2,
98,
25,
14,
246,
1837,
26,
13,
9,
2328,
3754,
953,
3291,
60,
800,
3726,
3726,
378,
31,
275,
377,
14104,
15,
54,
13,
9,
2328,
302,
7662,
68,
20,
8709,
29,
21,
946,
953,
27,
51,
1940,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Writing data over RxTx using usbserial?
===
I'm using the RxTx library over usbserial on a Linux distro. The RxTx lib seems to behave quite differently (in a bad way) than how it works over serial.
One of my biggest problems is that the RxTx SerialPortEvent.OUTPUT_BUFFER_EMPTY does not work on linux over usbserial.
How do I know when I should write to the stream? Any indicators I might have missed?
So far my experience with writing and reading concurrently have not been great. Does anyone know if I should lock the DATA_AVAILABLE handler from being invoked while I'm writing on the stream? Or RxTx accepts concurrent read/writes?
Thanks in advance | 0 | [
2,
1174,
1054,
84,
13,
21141,
38,
396,
568,
182,
4562,
106,
2815,
60,
800,
3726,
3726,
31,
22,
79,
568,
14,
13,
21141,
38,
396,
1248,
84,
182,
4562,
106,
2815,
27,
21,
13024,
1460,
3996,
9,
14,
13,
21141,
38,
396,
13,
8326,
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... |
How to communicate with a windows service from an application that interacts with the desktop?
===
With .Net what is the best way to interact with a service (i.e. how do most tray-apps communicate with their servers). It would be preferred if this method would be cross-platform as well (working in Mono, so I guess remoting is out?) | 0 | [
2,
184,
20,
8709,
29,
21,
1936,
365,
37,
40,
3010,
30,
10001,
18,
29,
14,
17404,
60,
800,
3726,
3726,
29,
13,
9,
2328,
98,
25,
14,
246,
161,
20,
10001,
29,
21,
365,
13,
5,
49,
9,
62,
9,
184,
107,
127,
10121,
8,
7753,
18,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you maintain large t-sql procedures
===
I'm about to inherit a set of large and complex set of stored procedures that do monthly processing on very large sets of data.
We are in the process of debugging them so they match the original process which was written in VB6. The reason they decided to re write them in t-sql is because the vb process takes days and this new process takes hours.
All this is fine, but how can I make these now massive chunks of t-sql code(1.5k+ lines) even remotely readable / maintainable.
Any experience making t-sql not much of head ache is very welcome. | 0 | [
2,
184,
107,
42,
4027,
370,
13,
38,
8,
18,
22402,
8876,
800,
3726,
3726,
31,
22,
79,
88,
20,
17569,
21,
309,
16,
370,
17,
1502,
309,
16,
8214,
8876,
30,
107,
6460,
5511,
27,
253,
370,
3415,
16,
1054,
9,
95,
50,
19,
14,
953,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sudo echo "something" >> /etc/privilegedFile doesn't work... is there an alternative?
===
This is a pretty simple question, atleast it seems like it should be, about sudo permissions in linux.
There is a lot of times when I just want to append something to say /etc/hosts or similar file but end up not being able to because both > and >> are not allowed, even with root.
Is there someway to make this work without having to su or sudo su into root? | 0 | [
2,
13,
18,
18601,
8117,
13,
7,
9099,
7,
13,
1,
13,
118,
1198,
150,
118,
6944,
1755,
6727,
69,
16877,
1437,
22,
38,
170,
9,
9,
9,
25,
80,
40,
2676,
60,
800,
3726,
3726,
48,
25,
21,
1772,
1935,
1301,
15,
35,
255,
2857,
32,
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... |
JDEdwards XMLInterop
===
Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality. I've been using it for a while (with a simple PInvoke, will post code later). I'm looking to see if there's a better and/or more robust way.
Thanks. | 0 | [
2,
487,
7424,
2826,
18,
23504,
6280,
2594,
800,
3726,
3726,
5712,
100,
11181,
70,
80,
63,
186,
1280,
19,
568,
14,
487,
7424,
2826,
18,
23504,
6280,
2594,
18548,
9,
31,
22,
195,
74,
568,
32,
26,
21,
133,
13,
5,
1410,
21,
1935,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the easiest or fastest way to make CSS render the same in all browsers
===
Making a web page display correctly im all major browsers today is a very time consuming task.
Is there a easy way to make a CSS style that looks identical in every browser?
Or at least do you have some tips to make this work easier?
| 0 | [
2,
98,
25,
14,
27237,
54,
7518,
161,
20,
233,
272,
18,
18,
16535,
14,
205,
19,
65,
16495,
18,
800,
3726,
3726,
544,
21,
2741,
2478,
3042,
12044,
797,
65,
394,
16495,
18,
786,
25,
21,
253,
85,
13,
17601,
3005,
9,
25,
80,
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... |
RIghtFax Esoteric error message in .NET 1.1
===
I have a problem with rightfax component Interop.RFCOMAPILib.dll version 1.0.0.0 , using VB .NET 1.1.
It works in severals enviroments , but it doesn´t in Production.
It returns this message in the exception - "?" - .
How i solve it? i couldn´t find any solution in manuals or internet .
Thanks!
| 0 | [
2,
193,
18947,
27850,
7019,
2802,
19,
13,
9,
2328,
137,
9,
165,
800,
3726,
3726,
31,
57,
21,
1448,
29,
193,
18947,
5912,
1480,
2594,
9,
8291,
960,
2552,
49,
8326,
9,
43,
211,
615,
137,
9,
387,
9,
387,
9,
387,
13,
15,
568,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get the full path to a perl script that is executing?
===
I have Perl script and need to determine the fullpath+filename of the script during execution. I discovered that depending on how you call the script $0 varies and sometimes contains the fullpath+filename and sometimes just filename. Because the working directory can vary as well I can't think of a way to reliably get the fullpath+filename of the script.
Anyone got a solution? | 0 | [
2,
184,
107,
31,
164,
14,
503,
2013,
20,
21,
416,
255,
3884,
30,
25,
25836,
60,
800,
3726,
3726,
31,
57,
416,
255,
3884,
17,
376,
20,
3746,
14,
503,
8353,
2430,
16877,
7259,
16,
14,
3884,
112,
5769,
9,
31,
1848,
30,
4758,
27,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you disable a SharePoint webpart temporarily?
===
Can this be done by setting a property?
I'd prefer that approach then to remove all security before re-adding it.
(As this may have other consequences.)
Another option I can think of is to replace the particular webpart dll with a temporary one, and restart the .net process, but that's not an approach I like at all.
What other options are there? AM I missing something obvious? | 0 | [
2,
184,
107,
42,
1460,
579,
21,
1891,
3132,
2741,
3091,
7866,
60,
800,
3726,
3726,
92,
48,
44,
677,
34,
2697,
21,
1354,
60,
31,
22,
43,
6369,
30,
2141,
94,
20,
4681,
65,
1221,
115,
302,
8,
58,
11365,
32,
9,
13,
5,
472,
48,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Visual Studio Intellisense, c#, no code behind.
===
If I open a file in Design View (web form), I get intellisense for my display code, but not my <script> code.. If I open with source code editor I, occasionally, get intellisense within the <script> tags.
Anyone know how to get intellisense working all of the time for all of my code?
Been living with this one for a long time. | 0 | [
2,
3458,
1120,
14635,
3159,
6498,
15,
272,
5910,
15,
90,
1797,
439,
9,
800,
3726,
3726,
100,
31,
368,
21,
3893,
19,
704,
1418,
13,
5,
14113,
505,
6,
15,
31,
164,
14635,
3159,
6498,
26,
51,
3042,
1797,
15,
47,
52,
51,
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... |
Array Formulas in Conditional Formatting of Excel XML Spreadsheet files?
===
Excel usually treats Conditional Formatting formulas as if they are array formulas.
But when opening an XML Spreadsheet file (Excel 2002/2003), conditional formatting criteria formulas are assumed to *not* be array formulas.
Once opened, even saving the spreadsheet as a normal BIFF Excel spreadsheet and re-opening does not fix this.
The only workaround I've found is to select the formatted range, go to Conditional Formatting, and hit OK. This solves the problem for the time the file is open, and the setting is preserved if the file is re-saved in the normal Excel format.
I don't have any information on whether this is a problem for Excel 2007 XML files, but my users won't have 2k7 for years and I don't want to have to rewrite our Excel export for the 2k7 format (which is significantly different than the old format) and depend on the 2007 compatibility plug-in.
Test case:
1. Enter the following into a new sheet:
<pre><code> A B C
1 N N N
2 x x x
3 x x x</code></pre>
2. Create this conditional format formula on cells A1:C1 (your choice of pretty colors for the format):
<pre><code>=(SUM(($A1:$C1="N")*($A$2:$C$2=A$3))>0)</code></pre>
This is an array formula that activates for A1, B1, and C1 whenever any of them has an "N" and the cell in row 2 below the "N" is equal to the cell in row 3 of the current column. (This actually does reflect real-world business logic, sorry for the complexity.)
And it works... you can alter the N's or the x's in any way you want and the formatting works just fine.
Ok, now save as an XML Spreadsheet. Close Excel, and re-open the file. Formatting is now broken. Now, you can only activate conditional formatting if A1 is an "N" and A2 is the same as A3, B3, or C3. The values of B1, B2, C1, and C2 have no effect on the formatting.
Now, select A1:C1 and look at the conditional formatting formula. Exactly the same as before. Hit OK. Conditional formatting starts working again, and will work during the entire session the file is open.
The XML Spreadsheet schema has no facility for explicitly stating a conditional format formula is an array formula. (I tried hard-coding braces around the formula in the XML, just in case, and that didn't work either.)
| 0 | [
2,
7718,
3729,
18,
19,
21206,
2595,
1203,
16,
20700,
23504,
1789,
17627,
6488,
60,
800,
3726,
3726,
20700,
951,
5752,
18,
21206,
2595,
1203,
3729,
18,
28,
100,
59,
50,
7718,
3729,
18,
9,
47,
76,
1214,
40,
23504,
1789,
17627,
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... |
Resending invitation/action emails
===
I've got a web app that sends out emails in response to a user-initaited action. These emails prompt the recipient for a response (an URL is included related to the specific action.)
I've got some users asking for a "resend" feature to push that email again.
My objection is that if the original email ended up in a spam folder (or didn't make it all the first time), the same thing is likely to happen the second time. (I've confirmed that the emails haven't bounced; they were accepted by the recipient's mail server.)
So what does the community think: is the ability to resend and email invitation/notification useful or pointless? | 0 | [
2,
10719,
7601,
7470,
118,
8645,
8517,
18,
800,
3726,
3726,
31,
22,
195,
330,
21,
2741,
4865,
30,
11350,
70,
8517,
18,
19,
1627,
20,
21,
4155,
8,
2651,
7962,
1427,
1028,
9,
158,
8517,
18,
11443,
4417,
14,
7340,
26,
21,
1627,
13,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Using P4Package (Java) from Java app to validate Perforce directory
===
In a web-app I'm writing, the user is supposed to enter the path in the Perforce repository for the node they're entering. The application is supposed to validate that the entered directory exists in the repo.
I've got the P4Package (p4.jar) lib, and I'm configuring it correctly enough that it works for almost everything, EXCEPT this directory validation. I'm creating a DirEntry (from the p4.jar) using a configured Env and a path, but when I call DirEntry.sync(), it issues an incorrect command. Where I want it to issue the command:
p4 [config info] dirs directory_argument <-- using the dirs command to validate a dir
Instead, it issues:
p4 [config info] dirs directory_argument%1 <-- note extraneous %1
Which always fails, since none of the directories have a %1 at the end of them.
Any help? Is there a different way to check that a directory exists using this package?
| 0 | [
2,
568,
351,
300,
8573,
1303,
13,
5,
1004,
1385,
6,
37,
8247,
4865,
20,
7394,
1373,
416,
8774,
16755,
800,
3726,
3726,
19,
21,
2741,
8,
7753,
31,
22,
79,
1174,
15,
14,
4155,
25,
2293,
20,
2830,
14,
2013,
19,
14,
416,
8774,
248... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Change default port when registering a new SQL 2000 server
===
I'm trying to register an externally hosted SQL 2000 server through Enterprise Manager which isn't on the default port and I can't see anywhere to change it within Enterprise Manager.
So, the question is, how do I connect to the database if:
I.P Address is 123.456.789 (example)
Port is 1334
Thanks in advance | 0 | [
2,
753,
12838,
1295,
76,
2243,
68,
21,
78,
4444,
255,
824,
8128,
800,
3726,
3726,
31,
22,
79,
749,
20,
2243,
40,
4886,
102,
2812,
4444,
255,
824,
8128,
120,
6002,
1382,
56,
2532,
22,
38,
27,
14,
12838,
1295,
17,
31,
92,
22,
38... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 stream a pdf as binary to the browser using .NET 2.0
===
I'm looking for a way to stream a pdf from my server to the browser using .NET 2.0 (in binary).
Edit: I'm trying to grab an existing pdf from a server path and push that up as binary to the browser. | 0 | [
2,
184,
20,
3766,
21,
13,
11124,
28,
14171,
20,
14,
16495,
568,
13,
9,
2328,
172,
9,
387,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
161,
20,
3766,
21,
13,
11124,
37,
51,
8128,
20,
14,
16495,
568,
13,
9,
2328,
172,
9,
387,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Oracle ORDImage processing in PL/SQL: Getting IMG-00710 and ORA-01031
===
I have loaded image into an Oracle ORDImage object and am processing it by PL/SQL. I can read its properties, but cannot process it with the process() method.
if l_ordimage.width > lMaxWidth
then
l_ordimage.process('maxScale 534 401');
end if;
This should scale the image down, conserving aspect ratio, so that it is no more than 534 px wide and no more than 401 px high.
However, I get the following error stack:
Internal error: ORA-29400: data cartridge error
IMG-00710: unable to write to destination image
ORA-01031: insufficient privileges
Trying other operations (like 'rotate 90') gives same errors.
| 0 | [
2,
15759,
54,
43,
22039,
5511,
19,
12443,
118,
18,
22402,
45,
1017,
797,
263,
8,
2032,
20770,
17,
54,
58,
8,
387,
1036,
3513,
800,
3726,
3726,
31,
57,
8572,
1961,
77,
40,
15759,
54,
43,
22039,
3095,
17,
589,
5511,
32,
34,
12443,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 you make a web page send to the printer something different than what's in the browser window?
===
Google Maps used to do this bit where when you hit the "Print" link, what would be sent to the printer wasn't exactly what you had on the screen, but rather a differently-formatted version of mostly the same information.
It appears that they've largely moved away from this concept (I guess people didn't understand it) and most websites have a "print version" of things like articles and so forth.
But if you wanted to make a webpage such that a "printer friendly" version of the page is what gets sent to the printer without having to make a separate page for it, how would you do that? | 0 | [
2,
184,
92,
42,
233,
21,
2741,
2478,
2660,
20,
14,
12925,
301,
421,
119,
98,
22,
18,
19,
14,
16495,
1463,
60,
800,
3726,
3726,
8144,
6867,
147,
20,
107,
48,
1142,
113,
76,
42,
770,
14,
13,
7,
10299,
7,
3508,
15,
98,
83,
44,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Converting std::vector<>::iterator to .NET interface in C++/CLI
===
I am wrapping a native C++ class, which has the following methods:
class Native
{
public:
class Local
{
std::string m_Str;
int m_Int;
};
typedef std::vector<Local> LocalVec;
typedef LocalVec::iterator LocalIter;
LocalIter BeginLocals();
LocalIter EndLocals();
private:
LocalVec m_Locals;
};
1) What is the ".NET way" of representing this same kind of interface? A single method returning an array<>? Does the array<> generic have iterators, so that I could implement BeginLocals() and EndLocals()?
2) Should Local be declared as a **value struct** in the .NET wrapper?
I'd really like to represent the wrapped class with a .NET flavor, but I'm very new to the managed world - and this type of information is frustrating to google for...
| 0 | [
2,
19583,
354,
43,
45,
45,
28033,
1,
45,
45,
242,
106,
3457,
20,
13,
9,
2328,
6573,
19,
272,
20512,
118,
150,
1210,
800,
3726,
3726,
31,
589,
13437,
21,
1275,
272,
20512,
718,
15,
56,
63,
14,
249,
3195,
45,
718,
1275,
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... |
SqlServer create table with MySql like auto_increment primary key
===
I want to make a table in SqlServer that will add, on insert, a auto incremented primary key. This should be an autoincremented id similar to MySql auto_increment functionality. (Below)
create table foo
(
user_id int not null auto_increment,
name varchar(50)
)
Is there a way of doing this with out creating an insert trigger? | 0 | [
2,
4444,
255,
10321,
106,
1600,
859,
29,
51,
18,
22402,
101,
3108,
1,
28461,
1256,
1246,
800,
3726,
3726,
31,
259,
20,
233,
21,
859,
19,
4444,
255,
10321,
106,
30,
129,
3547,
15,
27,
14692,
15,
21,
3108,
13,
28461,
69,
1256,
124... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 quickly identify most recently modified stored procedures in SQL Server
===
I Need to manually migrate modified stored procedures from a DEV SQL Server 2005 database instance to a TEST instance. Except for the changes I'm migrating, the databases have the same schemas. How can I quickly identify which stored procedures have been modified in the DEV database for migration to the TEST instance?
I assume I can write a query against some of the system tables to view database objects of type stored procedure, sorting by some sort of last modified or compiled data, but I'm not sure. Maybe there is some sort of free utility someone can point me to.
Thanks in advance,
Bob
| 0 | [
2,
184,
92,
31,
976,
5808,
127,
1989,
5372,
8214,
8876,
19,
4444,
255,
8128,
800,
3726,
3726,
31,
376,
20,
23671,
22985,
5372,
8214,
8876,
37,
21,
9664,
4444,
255,
8128,
812,
6018,
4851,
20,
21,
1289,
4851,
9,
1613,
26,
14,
1693,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 do we need other JVM languages
===
I see [here](http://www.is-research.de/info/vmlanguages/index.html) that there are a load of languages aside from Java that run on the JVM. I'm a bit confused about the whole concept of other languages running in the JVM. So:
What is the advantage in having other languages for the JVM?
What is required (in high level terms) to write a language/compiler for the JVM?
How do you write/compile/run code in a language (other than Java) in the JVM?
| 0 | [
2,
483,
107,
95,
376,
89,
487,
20147,
2556,
800,
3726,
3726,
31,
196,
636,
6836,
500,
5,
21127,
6903,
6483,
9,
403,
8,
26619,
9,
546,
118,
108,
4120,
118,
20147,
7020,
18,
118,
25671,
9,
15895,
6,
30,
80,
50,
21,
6305,
16,
255... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 implement an A* pathfinding algorithm, with movement costs for every programming language?
===
**Can we get people to post code of simple, optimized implementations of the A* pathfinding algorithm, in every single language?**
This is mostly for fun and to play with what stackoverflow itself is capable of... although I actually am interested in getting an ActionScript 3 version of this.
But the idea is that this "Question" will continue to be updated eternally into the future, even as different programming languages are created!
I don't know of any other place online where you can see pseudocode "translated" into many (much less every) different language. Seems like it's a worthwhile resource, and while not necessarily what this site was designed for, there's no harm in trying it out and seeing if it turns out to be a worthwhile thing that stackoverflow could be used for! | 0 | [
2,
184,
107,
31,
8713,
40,
21,
2483,
2013,
19811,
68,
9083,
15,
29,
1018,
4227,
26,
352,
3143,
816,
60,
800,
3726,
3726,
13,
1409,
1245,
95,
164,
148,
20,
678,
1797,
16,
1935,
15,
22864,
43,
6123,
18,
16,
14,
21,
2483,
2013,
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... |
.NET Remoting Server Only processes One request
===
I am using .NET Remoting. My server/hoster is a Windows Service. It will sometimes work just fine and other times it will process one request and then it does not process any more (until I restart it). It is running as a windows service Here is the code from the Windows Service:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.ServiceProcess;
using System.Text;
using Remoting;
namespace CreateReview
{
public partial class Service1 : ServiceBase
{
public Service1()
{
InitializeComponent();
}
readonly TcpChannel channel = new TcpChannel(8180);
protected override void OnStart(string[] args)
{
// Create an instance of a channel
ChannelServices.RegisterChannel(channel, false);
// Register as an available service with the name HelloWorld
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(SampleObject),
"SetupReview",
WellKnownObjectMode.SingleCall);
}
protected override void OnStop()
{
}
}
}
Thanks for any help offered.
Vaccano | 0 | [
2,
13,
9,
2328,
302,
7662,
68,
8128,
104,
5102,
53,
3772,
800,
3726,
3726,
31,
589,
568,
13,
9,
2328,
302,
7662,
68,
9,
51,
8128,
118,
11694,
106,
25,
21,
1936,
365,
9,
32,
129,
1030,
170,
114,
1123,
17,
89,
436,
32,
129,
95... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Pass by reference not returning in RMI for ArrayList
===
I've got an RMI call defined as:
public void remoteGetCustomerNameNumbers(ArrayList<String> customerNumberList, ArrayList<String> customerNameList) throws java.rmi.RemoteException;
The function does a database lookup and populates the two ArrayLists. The calling function gets nothing. I believe this works with Vector types.
Do I need to use the Vector, or is there a way to get this to work without making two calls. I've got some other ideas that I'd probably use, like returning a key/value pair, but I'd like to know if I can get this to work. | 0 | [
2,
1477,
34,
2801,
52,
2485,
19,
761,
1435,
26,
7718,
5739,
800,
3726,
3726,
31,
22,
195,
330,
40,
761,
1435,
645,
2811,
28,
45,
317,
11364,
5388,
3060,
4636,
262,
1263,
7259,
16299,
18,
5,
8576,
93,
5739,
1,
11130,
1,
7705,
162... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Error BC30002 - Type XXX is not defined
===
OK, this begins to drive me crazy. I have an asp.net webapp. Pretty straightforward, most of the code in the .aspx.vb, and a few classes in App_Code.
The problem, which has begun to occur only today (even though most of the code was already written), is that once in a while, I have this error message :
> Error BC30002: Type ‘XXX’ is not defined
The error occurs about every time I modify the files in the App_Code folder. I just have to wait a little bit without touching anything, then refresh the page and it works, but it's very annoying.
So I searched a little bit, but nothing came up except imports missing. Any idea ? | 0 | [
2,
7019,
2726,
6571,
3564,
13,
8,
1001,
13,
13290,
25,
52,
2811,
800,
3726,
3726,
5854,
15,
48,
2661,
20,
1493,
55,
3328,
9,
31,
57,
40,
28,
306,
9,
2328,
2741,
7753,
9,
1772,
22262,
15,
127,
16,
14,
1797,
19,
14,
13,
9,
472... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 criteria should be used to judge and compare Java applications?
===
I have to support a Java Programming Challenge for students and we have to come up with some technical criteria to judge their java application.
What is the best way to compare and judge an application, based on the code and the documentation? | 0 | [
2,
98,
9157,
378,
44,
147,
20,
1878,
17,
11590,
8247,
3767,
60,
800,
3726,
3726,
31,
57,
20,
555,
21,
8247,
3143,
2404,
26,
573,
17,
95,
57,
20,
340,
71,
29,
109,
2447,
9157,
20,
1878,
66,
8247,
3010,
9,
98,
25,
14,
246,
161... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... |
How do you structure a development sprint?
===
So I have a backlog of features and we are about to get started on a sizable project. I am working on defining the structure of our sprints and I'm interested in the communities feedback.
What I'm thinking is:
- One day sprint planning
- Fill the backlog and figure out what each dev will go after this sprint
- Three weeks of development
- GO! GO! GO!
- Daily stand up meeting
- Check to see if anyone needs help or feels off track
- One day sprint retrospective
- what did we get done in the last sprint?
- Two days of sprint review
- code reviews happen here
Sprints should always end on a Tuesday (to avoid too much weekend stress).
Anything else? There is obviously more to agile than this. I want to provide the team with a simple outline of how we are going to operate as we get this project started.
| 2 | [
2,
184,
107,
42,
1411,
21,
522,
6672,
60,
800,
3726,
3726,
86,
31,
57,
21,
97,
5567,
16,
967,
17,
95,
50,
88,
20,
164,
373,
27,
21,
27836,
669,
9,
31,
589,
638,
27,
14684,
14,
1411,
16,
318,
6672,
18,
17,
31,
22,
79,
3158,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 detect a user's timezone via javascript?
===
I want the server to always serve dates in UTC in the html, and have javascript on the client site convert it to the user's local timezone.
Bonus if I can output in the user's locale date format. | 0 | [
2,
184,
107,
31,
9092,
21,
4155,
22,
18,
85,
11661,
1197,
8247,
8741,
60,
800,
3726,
3726,
31,
259,
14,
8128,
20,
550,
1884,
4076,
19,
13,
11440,
19,
14,
13,
15895,
15,
17,
57,
8247,
8741,
27,
14,
6819,
689,
8406,
32,
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... |
Running multiple sites from a single Python web framework
===
What are come good (or at least clever) ways of running multiple sites from a single, common Python web framework (ie: Pylons, TurboGears, etc)? I know you can do redirection based on the domain or path to rewrite the URI to point at a site-specific location and I've also seen some brutish "`if site == 'site1' / elseif / elseif / etc`" that I would like to avoid. | 0 | [
2,
946,
1886,
3259,
37,
21,
345,
20059,
2741,
6596,
800,
3726,
3726,
98,
50,
340,
254,
13,
5,
248,
35,
639,
11994,
6,
2847,
16,
946,
1886,
3259,
37,
21,
345,
15,
757,
20059,
2741,
6596,
13,
5,
660,
45,
29262,
18,
15,
12036,
83... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sleep Less Than One Millisecond
===
On windows you have a problem you typically never encounter on Unix. That is how to get a thread to sleep for less than one millisecond. On Unix you typically have a number of choices (sleep, usleep and nanosleep) to fit your needs. On windows however there is only *Sleep* with millisecond granularity. You can however use the select system call to create a microsecond sleep. On Unix this is pretty straight forward:
int usleep(long usec)
{
struct timeval tv;
tv.tv_sec = usec/1000000L;
tv.tv_usec = usec%1000000L;
return select(0, 0, 0, 0, &tv);
}
----------
On windows however, the use of select forces you to include the winsock library which has to be initialized like this in your application:
WORD wVersionRequested = MAKEWORD(1,0);
WSADATA wsaData;
WSAStartup(wVersionRequested, &wsaData);
And then the select won't allow you to be called without any socket so you have to do a little more to create a microsleep method:
int usleep(long usec)
{
struct timeval tv;
fd_set dummy;
SOCKET s = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
FD_ZERO(&dummy);
FD_SET(s, &dummy);
tv.tv_sec = usec/1000000L;
tv.tv_usec = usec%1000000L;
return select(0, 0, 0, &dummy, &tv);
}
All these created usleep methods return zero when successful and non-zero for errors. | 0 | [
2,
1742,
787,
119,
53,
13436,
5007,
800,
3726,
3726,
27,
1936,
42,
57,
21,
1448,
42,
2442,
243,
7007,
27,
22540,
9,
30,
25,
184,
20,
164,
21,
9322,
20,
1742,
26,
787,
119,
53,
13436,
5007,
9,
27,
22540,
42,
2442,
57,
21,
234,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 set up CruiseControl for IIS 5.1 dev box and IIS6 server
===
Can anyone point me in the right direction on this. From reading the FAQs at cruisecontrol, it appears that you should develop in the same environment as you produce.
But i have Windows XP (which only runs IIS 5.1) on my dev machine and the server is 2003.
Thanks | 0 | [
2,
246,
161,
20,
309,
71,
6581,
12898,
26,
595,
18,
331,
9,
165,
9664,
1649,
17,
595,
18,
379,
8128,
800,
3726,
3726,
92,
1276,
454,
55,
19,
14,
193,
1400,
27,
48,
9,
37,
1876,
14,
1399,
1251,
18,
35,
6581,
12898,
15,
32,
17... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to add an event to a class
===
Say I have a class named Frog, it looks like:
public class Frog
{
public int Location { get; set; }
public int JumpCount { get; set; }
public void OnJump()
{
JumpCount++;
}
}
I need help with 2 things:
1. I want to create an event named Jump in the class definition.
2. I want to create an instance of the Frog class, and then create another method that will be called when the Frog jumps. | 0 | [
2,
184,
20,
3547,
40,
807,
20,
21,
718,
800,
3726,
3726,
395,
31,
57,
21,
718,
377,
9520,
15,
32,
1879,
101,
45,
317,
718,
9520,
13,
1,
317,
19,
38,
1474,
13,
1,
164,
73,
309,
73,
13,
1,
317,
19,
38,
3936,
16549,
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... |
C# Code Formatter for Linux and/or MonoDevelop
===
MonoDevelop 1.0 doesn't appear to have a code-formatter like Eclipse does for Java. Is there a preferred shell script (or MonoDevelop add-in?) that you've found to work well?
| 0 | [
2,
272,
5910,
1797,
26,
24700,
26,
13024,
17,
118,
248,
4129,
26051,
800,
3726,
3726,
4129,
26051,
137,
9,
387,
1437,
22,
38,
1893,
20,
57,
21,
1797,
8,
23588,
815,
101,
11652,
630,
26,
8247,
9,
25,
80,
21,
5981,
3593,
3884,
13,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I calculate time schedules (for free)?
===
I am running a small office for a while and need to do some scheduling. Employees have widely varying availability (part time environment), and there are certain times of the day where I need certain numbers of people there. I also want to impose constraints as far as how many hours each person works. I have looked, and perhaps I haven't been searching well, but I haven't found anything for free.
Which program(s) can perform this task? | 0 | [
2,
184,
92,
31,
18469,
85,
4345,
18,
13,
5,
1106,
551,
6,
60,
800,
3726,
3726,
31,
589,
946,
21,
284,
488,
26,
21,
133,
17,
376,
20,
107,
109,
23096,
9,
3716,
57,
2525,
9852,
11886,
13,
5,
3091,
85,
2307,
6,
15,
17,
80,
50... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best resource for learning .NET generics?
===
I've never used any of the .NET generics in my work, but I understand that they are fairly popular. Does anyone have any good links or book suggestions for learning them? As a bonus; I only vaguely understand what .NET generic collections are and what they do...does anyone have any practical examples of how they might be used to greater advantage than the normal collections in .NET? | 0 | [
2,
246,
6577,
26,
2477,
13,
9,
2328,
12733,
18,
60,
800,
3726,
3726,
31,
22,
195,
243,
147,
186,
16,
14,
13,
9,
2328,
12733,
18,
19,
51,
170,
15,
47,
31,
1369,
30,
59,
50,
6647,
844,
9,
630,
1276,
57,
186,
254,
6271,
54,
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... |
A sample for jQuery based WYSIWYG Editor
===
Want a good example to illustrate how to use jQuery to built OOP javascript component.
It is so good you guys use markdown... Would be a heaven if users would love such thing too | 0 | [
2,
21,
5717,
26,
487,
8190,
93,
432,
5809,
18,
49,
7913,
263,
1835,
800,
3726,
3726,
259,
21,
254,
823,
20,
15620,
184,
20,
275,
487,
8190,
93,
20,
392,
13,
21709,
8247,
8741,
5912,
9,
32,
25,
86,
254,
42,
2776,
275,
943,
2968... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Time Parsing in Flex
===
Is there any way to parse a string in the format HH:MM into a Date (or other) object using the standard libraries?
I know that I can parse something like "9/17/2008 10:30" into a Date object using
var date:Date = new Date(Date.parse("9/17/2008 10:30");
But I want to parse just 10:30 by itself. The following code will not work.
var date:Date = new Date(Date.parse("10:30");
I know I can use a custom RegEx to do this fairly easily, but it seems like this should be possible using the existing Flex API. | 0 | [
2,
85,
2017,
18,
68,
19,
14409,
800,
3726,
3726,
25,
80,
186,
161,
20,
2017,
870,
21,
3724,
19,
14,
2595,
13,
10681,
45,
3363,
77,
21,
1231,
13,
5,
248,
89,
6,
3095,
568,
14,
1236,
8649,
60,
31,
143,
30,
31,
92,
2017,
870,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Fix argument handling in SQL Server 2005 Mgmt Studio custom Keyboard Accelerator shortcuts?
===
I've long been a fan of Stored Procedure Keyboard Accelerators, as described in [this article][1]. When we moved from SQL 2000 to 2005, though, and from Query Analyzer to Management Studio, the handling of the arguments changed. In QA, comma-separated arguments were automatically read as two separate arguments. In SQL-MS -- at least for me -- it's being read as one argument, with commas in it. Similarly, if I pass in a single argument with single quotes in it, I get a syntax error, *unless I escape the quotes* (' -> ''). In the article linked above, the author implies that this should not be the case for SQL-MS, but even with her exact example, comma-separated arguments are still being interpreted as one argument on every SQL-MS installation I've tried it on (3 of them), running against every SQL Server installation I've tried (4 of them).
E.g., typing the following into SQL-MS,
Person,4
then selecting it and running the shortcut, I get the error message "Invalid object name 'Person,4'.
Does anybody have any idea how to fix this? Does anybody even use these shortcuts? I've Googled this problem several times over the past two years, and have had no luck.
[1]: http://blogs.msdn.com/irenak/archive/2006/10/27/sysk-228-get-table-columns-or-rows-with-single-key-press.aspx
| 0 | [
2,
6098,
5476,
7988,
19,
4444,
255,
8128,
812,
18845,
38,
1120,
5816,
8896,
24484,
502,
4118,
18,
60,
800,
3726,
3726,
31,
22,
195,
175,
74,
21,
2514,
16,
8214,
7004,
8896,
24484,
18,
15,
28,
745,
19,
636,
1565,
2002,
500,
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... |
I traced a Stored Procedure as shown in the SQL Server 2005 Profiler. It's not found but works. Why?
===
This is pretty weird.
I have my Profiler open and it obviously shows that a stored procedure is called. I open the database and the SP list, but the SP doesn't exist. However, there's another SP whose name is the same except it has a prefix 'x'
Is SQL Server 2005 mapping the SP name to a different one for security purposes?
| 0 | [
2,
31,
9896,
21,
8214,
7004,
28,
1721,
19,
14,
4444,
255,
8128,
812,
5296,
139,
9,
32,
22,
18,
52,
216,
47,
693,
9,
483,
60,
800,
3726,
3726,
48,
25,
1772,
5455,
9,
31,
57,
51,
5296,
139,
368,
17,
32,
4409,
1285,
30,
21,
8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Windsor Container: Does release dispose of an object?
===
I have an object that implements IDisposable that is registered with the Windsor Container and I would like to dispose of it so it's Dispose method is called and next time Resolve is called it fetches a new instance.
Does
container.Release(obj);
automatically call Dispose() immediately? Or do I need to do
obj.Dispose();
container.Release(obj);
Couldn't find anything in the documentation on what exactly Release does
| 0 | [
2,
10784,
12147,
45,
630,
830,
17913,
16,
40,
3095,
60,
800,
3726,
3726,
31,
57,
40,
3095,
30,
8713,
18,
13,
19405,
12551,
579,
30,
25,
3801,
29,
14,
10784,
12147,
17,
31,
83,
101,
20,
17913,
16,
32,
86,
32,
22,
18,
17913,
210... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mysqldump equivalent for MSSQL
===
Is there an equivalent schema & data export/dumping tool for MSSQL as there is for MySQL with mysqldump. Trying to relocate a legacy ASP site and I am way out of happy place with working on a windows server. | 0 | [
2,
51,
18,
22402,
43,
11134,
4602,
26,
4235,
18,
22402,
800,
3726,
3726,
25,
80,
40,
4602,
23874,
279,
1054,
7487,
118,
12617,
3181,
5607,
26,
4235,
18,
22402,
28,
80,
25,
26,
51,
18,
22402,
29,
51,
18,
22402,
43,
11134,
9,
749,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How does the Java for each loop work?
===
<pre><code>List<String> someList = new ArrayList<String>()
// add "monkey", "donkey", "skeleton key" to someList
</code></pre>
<pre><code>for(String item : someList ){
System.out.println(item);
}
</code></pre>
What would the equivalent for loop look like without using the for each syntax? | 0 | [
2,
184,
630,
14,
8247,
26,
206,
5293,
170,
60,
800,
3726,
3726,
13,
1,
3515,
1,
9375,
1,
5739,
1569,
255,
38,
73,
11130,
1569,
263,
38,
73,
109,
5739,
800,
78,
7718,
5739,
1569,
255,
38,
73,
11130,
1569,
263,
38,
73,
5,
6,
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... |
Linking .Net Assemblies
===
This is all hypothetical, so please bear with me.
Say I'm writing a tool in C# called Foo. The output is foo.exe. I've found some really great library that I like to use called Bar, which I can reference as bar.dll in my project. When I build my project, I have foo.exe and bar.dll in my output directory. Good so far.
What I'd like to do is link foo.exe and bar.dll so they are one assembly, foo.exe. I would prefer to be able to do this in VS2008, but if I have to resort to a command-line tool like al.exe I don't mind so much. | 0 | [
2,
12585,
13,
9,
2328,
21066,
800,
3726,
3726,
48,
25,
65,
26161,
15,
86,
2247,
2746,
29,
55,
9,
395,
31,
22,
79,
1174,
21,
5607,
19,
272,
5910,
227,
4310,
111,
9,
14,
5196,
25,
4310,
111,
9,
1706,
62,
9,
31,
22,
195,
216,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 manually parse a floating point number from a string
===
Of course most languages have library functions for this, but suppose I want to do it myself.
Suppose that the float is given like in a C or Java program (except for the 'f' or 'd' suffix), for example "<code>4.2e1</code>", "<code>.42e2</code>" or simply "<code>42</code>". In general, we have the "integer part" before the decimal point, the "fractional part" after the decimal point, and the "exponent". All three are integers.
**It is easy to find and process the individual digits, but how do you compose them into a value of type <code>float</code> or <code>double</code> without losing precision?**
I'm thinking of multiplying the integer part with 10^*n*, where *n* is the number of digits in the fractional part, and then adding the fractional part to the integer part and subtracting *n* from the exponent. This effectively turns <code>4.2e1</code> into <code>42e0</code>, for example. Then I could use the <code>pow</code> function to compute 10^*exponent* and multiply the result with the new integer part. The question is, does this method guarantee maximum precision throughout?
Any thoughts on this? | 0 | [
2,
184,
20,
23671,
2017,
870,
21,
8319,
454,
234,
37,
21,
3724,
800,
3726,
3726,
16,
674,
127,
2556,
57,
1248,
3719,
26,
48,
15,
47,
5787,
31,
259,
20,
107,
32,
992,
9,
5787,
30,
14,
11510,
25,
504,
101,
19,
21,
272,
54,
824... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which language is useful to create a report for a valid C program
===
Can anyone suggest me a helpful programming language which can be used to create a tool which will analyse the given C program and generate a txt report or html report containing information about the given program (function list, variable list etc).
The program I intend to build is similar to doxygen but i want it for my personal use. | 0 | [
2,
56,
816,
25,
4811,
20,
1600,
21,
1330,
26,
21,
7394,
272,
625,
800,
3726,
3726,
92,
1276,
5601,
55,
21,
15600,
3143,
816,
56,
92,
44,
147,
20,
1600,
21,
5607,
56,
129,
13,
21702,
14,
504,
272,
625,
17,
7920,
21,
20225,
38,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JConsole Config
===
in JBoss' run.bat, add:
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9987 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
To start jconsole:
JDK/bin>jconsole localhost:9987 | 0 | [
2,
487,
12124,
6069,
13,
14093,
2816,
800,
3726,
3726,
19,
487,
10349,
18,
22,
485,
9,
4900,
15,
3547,
45,
309,
8247,
1,
111,
13531,
3726,
11881,
1004,
1385,
1,
111,
13531,
11881,
13,
8,
43,
960,
9,
7843,
9,
23502,
9,
728,
79,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do you know when to use design patterns?
===
Anyone can read the GoF book or Code Complete to learn what design patterns are and how to use them, but what is the process for figuring out when a design pattern solves a problem? Does the knowledge of the pattern drive the design, or is there a way to figure out how a pattern can be used to change a design?
In other words, are there patterns for Patterns? | 0 | [
2,
184,
107,
42,
143,
76,
20,
275,
704,
6282,
60,
800,
3726,
3726,
1276,
92,
1302,
14,
162,
410,
360,
54,
1797,
1279,
20,
2484,
98,
704,
6282,
50,
17,
184,
20,
275,
105,
15,
47,
98,
25,
14,
953,
26,
25379,
70,
76,
21,
704,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 derive a Voronoi diagram given its point set and its Delaunay triangulation?
===
I'm working on a game where I create a random map of provinces (a la Risk or Diplomacy). To create that map, I'm first generating a series of semi-random points, then figuring the Delaunay triangulations of those points.
With that done, I am now looking to create a Voronoi diagram of the points to serve as a starting point for the province borders. My data at this point (no pun intended) consists of the original series of points and a collection of the Delaunay triangles.
I've seen a number of ways to do this on the web, but most of them are tied up with how the Delaunay was derived. I'd love to find something that doesn't need to be integrated to the Delaunay, but can work based off the data alone. Failing that, I'm looking for something comprehensible to a relative geometry newbie, as opposed to optimal speed. Thanks! | 0 | [
2,
184,
107,
31,
20576,
21,
11150,
9835,
49,
14161,
504,
82,
454,
309,
17,
82,
16293,
4140,
93,
2286,
1712,
11123,
60,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
250,
113,
31,
1600,
21,
5477,
2942,
16,
6590,
13,
5,
58,
333,
202... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 enable more than 8-bit colors in Terminal.app?
===
In the Vim and Emacs terminal apps, the color schemes look horrid. How do I enable the colors to be as vibrant as the GUI version (or more than 8 colors for that matter)?
Should I just give up, and move over to their respective GUI applications? And if so, which? | 0 | [
2,
184,
107,
31,
9240,
91,
119,
469,
8,
3326,
5268,
19,
3855,
9,
7753,
60,
800,
3726,
3726,
19,
14,
1790,
79,
17,
13,
62,
6893,
18,
3855,
4865,
18,
15,
14,
1665,
13185,
361,
4523,
5175,
9,
184,
107,
31,
9240,
14,
5268,
20,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the value of an anonymous unattached block in C#?
===
In stumbled on this about a month ago.
In C# you can make a block inside of a method that is not attached to any other statement.
public void TestMethod()
{
{
string x = "test";
string y = x;
{
int z = 42;
int zz = z;
}
}
}
This code compiles and runs just as if the braces inside the main method weren't there. Also notice the block inside of a block.
Is there a scenario where this would be valuable? I haven't found any yet, but am curious to hear of other people's findings. | 0 | [
2,
98,
25,
14,
1923,
16,
40,
10364,
367,
28484,
1921,
19,
272,
5910,
60,
800,
3726,
3726,
19,
10282,
27,
48,
88,
21,
1617,
1464,
9,
19,
272,
5910,
42,
92,
233,
21,
1921,
572,
16,
21,
2109,
30,
25,
52,
3638,
20,
186,
89,
3331... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to avoid garbage collection in real time C# application ?
===
I'm writting a financial C# application which receive messages from the network, translate them into different object according to the message type and finaly apply the application business logic on them.
The point is that after the business logic is applied, I'm very sure I will never need this instance again. Rather than to wait for the garbage collector to free them, I'd like to explicitly "delete" them.
Is there a better way to do so in C#, should I use a pool of object to reuse always the same set of instance or is there a better strategy.
The goal being to avoid the garbage collection to use any CPU during a time critical process. | 0 | [
2,
184,
20,
2658,
15024,
1206,
19,
683,
85,
272,
5910,
3010,
13,
60,
800,
3726,
3726,
31,
22,
79,
20127,
1203,
21,
1553,
272,
5910,
3010,
56,
2588,
7561,
37,
14,
982,
15,
20628,
105,
77,
421,
3095,
496,
20,
14,
2802,
1001,
17,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Handleing and storing eslapsed time
===
Im having problems deciding on what is the best way is to handle and store time measurements.
I have an app that has a textbox that allows the users to input time in either hh:mm:ss or mm:ss format.
So I was planning on parsing this string, tokenizing it on the colons and creating TimeSpan (or using TimeSpan.Parse() and just adding a "00:" to the mm:ss case) for my business logic. Ok?
How do I store this as in a database though? What would the field type be? DateTime seems wrong. I don't want an time of 00:54:12 to be stored as 1901-01-01 00:54:12 that seems abit poor? | 0 | [
2,
3053,
68,
17,
25615,
13,
160,
17057,
43,
85,
800,
3726,
3726,
797,
452,
1716,
11211,
27,
98,
25,
14,
246,
161,
25,
20,
3053,
17,
1718,
85,
12776,
9,
31,
57,
40,
4865,
30,
63,
21,
1854,
5309,
30,
2965,
14,
3878,
20,
6367,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Customizing Search Results Display in Sharepoint Services 3.0 Wiki
===
I'm looking at using a Windows SharePoint Services 3.0 wiki as a metadata repository. We basically want a community-driven dictionary and for various reasons we're using Sharepoint instead of say MediaWiki.
**What can I do to customize or completely replace searchresults.aspx?**
Features I'd add if I knew how:
1. Automatically load the #1 hit if it is a 100% match to the search term
2. Show the first few lines of each result as a preview so users don't have to click through to bad results
3. Add a "Page doesn't exist, click here to create it" link in cases where there's not a 100% match
I've got Sharepoint Designer installed and it looks like I'll be able to use it to upload any custom .aspx files I create but I don't see that it will give me access to searchresults.aspx.
Note: Since I plan to access this search tool from an external site via URL parameters it should be fine to leave the existing searchresults.aspx unchanged and just load this solution as a complementary search option.
| 0 | [
2,
5816,
3335,
2122,
1736,
3042,
19,
1891,
3132,
687,
203,
9,
387,
13,
17375,
800,
3726,
3726,
31,
22,
79,
699,
35,
568,
21,
1936,
1891,
3132,
687,
203,
9,
387,
13,
17375,
28,
21,
28057,
24869,
9,
95,
11374,
259,
21,
514,
8,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best general SVN Ignore Pattern?
===
What is the best (or as good as possible) general SVN ignore pattern to use?
There are a number of different IDE, editor, compiler, plug-in, platform, etc. specific files and some file types that "overlap" (i.e. desirable for some types projects and not for others). There are however, a large number of file types that you just never want included in source control automatically irregardless the specifics of your development environment.
The answer to this question would serve as a good starting point for any project - only requiring them to add the few environment specific items they need. It could be adapted for other Version Control Systems (VCS) as well. | 0 | [
2,
246,
297,
13,
18,
16578,
7174,
3732,
60,
800,
3726,
3726,
98,
25,
14,
246,
13,
5,
248,
28,
254,
28,
938,
6,
297,
13,
18,
16578,
7174,
3732,
20,
275,
60,
80,
50,
21,
234,
16,
421,
13,
3448,
15,
1835,
15,
21486,
15,
10922,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 common cause of "java.lang.NullPointerException" when dealing with XMLs?
===
My strongest lead is that the code who deals with the incoming XMLs is actually receiving an invalid/incomplete file hence failing the DOM parsing. Any suggestions? | 0 | [
2,
127,
757,
1679,
16,
13,
7,
1004,
1385,
9,
9949,
9,
4215,
211,
3132,
106,
10066,
872,
7,
76,
5746,
29,
23504,
18,
60,
800,
3726,
3726,
51,
11110,
672,
25,
30,
14,
1797,
72,
10342,
29,
14,
17126,
23504,
18,
25,
1121,
3396,
40... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... |
Floor a date in SQL server
===
In SQL Server, how do I "floor" a DATETIME to the second/minute/hour/day/year?
Let's say that I have a date of **2008-09-17 12:56:53.430**, then the output of flooring should be:
* Year: 2008-01-01 00:00:00.000
* Month: 2008-09-01 00:00:00.000
* Day: 2008-09-17 00:00:00.000
* Hour: 2008-09-17 12:00:00.000
* Minute: 2008-09-17 12:56:00.000
* Second: 2008-09-17 12:56:53.000
And yes, I fully intend on answering my own question in about 30 seconds. I don't think there's any SO etiquette against that. | 0 | [
2,
803,
21,
1231,
19,
4444,
255,
8128,
800,
3726,
3726,
19,
4444,
255,
8128,
15,
184,
107,
31,
13,
7,
15767,
7,
21,
1231,
891,
20,
14,
153,
118,
5556,
118,
4754,
118,
1185,
118,
731,
60,
408,
22,
18,
395,
30,
31,
57,
21,
123... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SharePoint - How do insert new items using the list web service?
===
I have a list with 2 text fields, and a choice field. How do I use the Lists.asmx web service to insert a new item? I can make a web reference to the lists.asmx service, so you can assume that this is known.
I would like a complete example including code and the XML for the CAML query. Ideally the sample would use C#. | 0 | [
2,
1891,
3132,
13,
8,
184,
107,
14692,
78,
3755,
568,
14,
968,
2741,
365,
60,
800,
3726,
3726,
31,
57,
21,
968,
29,
172,
1854,
2861,
15,
17,
21,
1837,
575,
9,
184,
107,
31,
275,
14,
7227,
9,
472,
79,
396,
2741,
365,
20,
1469... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does anyone follow the Microsoft Connected Health and Human Services Model?
===
I have a team lead who is pushing to follow the Microsoft Connected Health and Human Services Model, does anyone have experience with this approach? Any suggestions/etc? | 0 | [
2,
630,
1276,
1740,
14,
7099,
2587,
853,
17,
585,
687,
1061,
60,
800,
3726,
3726,
31,
57,
21,
173,
672,
72,
25,
5076,
20,
1740,
14,
7099,
2587,
853,
17,
585,
687,
1061,
15,
630,
1276,
57,
1496,
29,
48,
2141,
60,
186,
18389,
11... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
how to change default delete date in lotus notes for emails?
===
I am using Lotus Notes as my email client, and how to change the defailt email delete date to something new so my older emails don't get deleted after pre-defined date? | 0 | [
2,
184,
20,
753,
12838,
27448,
1231,
19,
15175,
2434,
26,
8517,
18,
60,
800,
3726,
3726,
31,
589,
568,
15175,
2434,
28,
51,
8517,
6819,
15,
17,
184,
20,
753,
14,
121,
24910,
38,
8517,
27448,
1231,
20,
301,
78,
86,
51,
1234,
8517... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Generating a PDF document based on a Microsoft Word Template
===
I need to take a Word document that is a template of sorts...collect user input to populate specific fields in that template..then generate a PDF file that includes the completed template as well as a few other document types. Does anyone have a good suggestion on a component to achieve this? Preferably one that does not require Microsoft Office to be installed on the web server. | 0 | [
2,
13500,
21,
13,
11124,
4492,
432,
27,
21,
7099,
833,
22894,
800,
3726,
3726,
31,
376,
20,
247,
21,
833,
4492,
30,
25,
21,
22894,
16,
14357,
9,
9,
9,
15015,
4155,
6367,
20,
1675,
12383,
1903,
2861,
19,
30,
22894,
9,
9,
2504,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 port a virtual machine from VMWare to VirtualBox?
===
I've been using VMWare for a while and am very happy with it, but I would like to compare it with VirtualBox. Apparently the disk images are compatible, and I have successfully booted my Fedora based VM created by VMWare in VirtualBox... but the network is completely unavailable. How do you port a virtual machine from VMWare to VirtualBox and keep all the capabilities intact? | 0 | [
2,
184,
107,
42,
1295,
21,
6599,
1940,
37,
13,
20147,
5011,
20,
6599,
5309,
60,
800,
3726,
3726,
31,
22,
195,
74,
568,
13,
20147,
5011,
26,
21,
133,
17,
589,
253,
1700,
29,
32,
15,
47,
31,
83,
101,
20,
11590,
32,
29,
6599,
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... |
Rich Edit Control in raw Win32
===
Is the documentation for Rich Edit Controls really as bad (wrong?) as it seems to be? Right now I'm manually calling LoadLibrary("riched20.dll") in order to get a Rich Edit Control to show up. The documentation for Rich Edit mentions nothing about this, it talks about calling InitCommonControlsEx(), but makes no mention of which flag to pass in. It turns out, there is no flag for it.
Am I missing something here?
<http://msdn.microsoft.com/en-us/library/bb787877(VS.85).aspx>
Here's the only code I could write to make it work:
#include "Richedit.h"
#include "commctrl.h"
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
icex.dwICC = ICC_USEREX_CLASSES; //Could be 0xFFFFFFFF and it still wouldn't work
InitCommonControlsEx(&icex); //Does nothing for Rich Edit controls
LoadLibrary("riched20.dll"); //Manually? For real?
hWndRichEdit = CreateWindowEx(
ES_SUNKEN,
RICHEDIT_CLASS,
"",
WS_BORDER | WS_VISIBLE | WS_CHILD,
2, 2, 100, 24,
hWnd, (HMENU) ID_RICH_EDIT, hInst, NULL); | 0 | [
2,
2042,
9392,
569,
19,
4333,
628,
3125,
800,
3726,
3726,
25,
14,
13945,
26,
2042,
9392,
8671,
510,
28,
896,
13,
5,
499,
14271,
60,
6,
28,
32,
2206,
20,
44,
60,
193,
130,
31,
22,
79,
23671,
2555,
6305,
1210,
2559,
622,
5,
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... |
Code Outlinging, Classic ASP and Visual Studio 2005
===
Is there a way to enable code outlining for Classic ASP in Visual Studio 2005? It outlines the HTML code pretty well and I get a big outline between <% and %>, but nothing for the code itself.
| 0 | [
2,
1797,
70,
802,
68,
15,
2732,
28,
306,
17,
3458,
1120,
812,
800,
3726,
3726,
25,
80,
21,
161,
20,
9240,
1797,
70,
8930,
26,
2732,
28,
306,
19,
3458,
1120,
812,
60,
32,
11160,
18,
14,
13,
15895,
1797,
1772,
134,
17,
31,
164,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sharepoint Item Level Access & performance
===
i have created a workflow activity that do give the item creater of a specific list full control on the item and set everyone else to read only access (permission)
someone told me that doing it this way (if i have a lot of users) the performance will go down dramatically
is that correct ?!!
if yes what is the best solution to create a list where any one can create new items but after the item is created only the creater can edit it and the rest of the users can read it only | 0 | [
2,
1891,
3132,
9101,
662,
1381,
279,
956,
800,
3726,
3726,
31,
57,
679,
21,
170,
9990,
2358,
30,
107,
590,
14,
9101,
1600,
139,
16,
21,
1903,
968,
503,
569,
27,
14,
9101,
17,
309,
1266,
962,
20,
1302,
104,
1381,
13,
5,
1432,
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... |
Python - time.clock() vs. time.time() - accuracy?
===
Which is better to use for timing in Python? time.clock() or time.time()? Which one provides more accuracy?
for example:
start = time.clock()
... do something
elapsed = (time.clock() - start)
vs.
start = time.time()
... do something
elapsed = (time.time() - start)
| 0 | [
2,
20059,
13,
8,
85,
9,
10790,
5,
6,
4611,
9,
85,
9,
891,
5,
6,
13,
8,
11270,
60,
800,
3726,
3726,
56,
25,
574,
20,
275,
26,
11812,
19,
20059,
60,
85,
9,
10790,
5,
6,
54,
85,
9,
891,
5,
6,
60,
56,
53,
1927,
91,
11270,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Limiting results of System.Data.Linq.Table<T>
===
I am trying to inherit from my generated datacontext in LinqToSQL - something like this
public class myContext : dbDataContext {
public System.Data.Linq.Table<User>() Users {
return (from x in this.Users() where x.DeletedOn.HasValue == false select x);
}
}
But my Linq statement returns IQueryable which cannot cast to Table - does anyone know a way to limit the contents of a Linq.Table - I am trying to be certain that anywhere my Users table is accessed, it doesn't return those marked deleted. Perhaps I am going about this all wrong - any suggestions would be greatly appreciated.
Hal | 0 | [
2,
17567,
1736,
16,
329,
9,
18768,
9,
1226,
1251,
9,
5924,
1,
38,
1,
800,
3726,
3726,
31,
589,
749,
20,
17569,
37,
51,
6756,
1054,
1126,
11969,
19,
6294,
1251,
262,
18,
22402,
13,
8,
301,
101,
48,
317,
718,
51,
1126,
11969,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.