unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Difference between Convert.ToDecimal(string) & Decimal.Parse(string)
===
What is the difference in C# between Convert.ToDecimal(string) & Decimal.Parse(string)?
In what scenarios would you use one over the other?
What impact does it have on performance?
What other factors should I be taking into consideration when choosing between the two? | 0 | [
2,
2841,
128,
8406,
9,
262,
9522,
49,
3482,
5,
11130,
6,
279,
26380,
9,
3574,
870,
5,
11130,
6,
800,
3726,
3726,
98,
25,
14,
2841,
19,
272,
5910,
128,
8406,
9,
262,
9522,
49,
3482,
5,
11130,
6,
279,
26380,
9,
3574,
870,
5,
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... |
Functional Programming Architecture
===
I'm familiar with object-oriented architecture, including use of design patterns and class diagrams for visualization, and I know of service-oriented architecture with its contracts and protocol bindings, but **is there anything characteristic about a software architecture for a system written in a functional programming language?**
I know that FP has been used for medium-size to large scale projects. Paul Graham wrote the first incarnation of Yahoo! Store in Common Lisp. Some lisp development systems are complex. Artifical intelligence and financial systems written in functional languages can get pretty big. They all have at least some kind of inherent architecture, though, I'm wondering if they have anything in common?
What does an architecture based on the evaluation of expressions look like? Are FP architectures more composable?
| 0 | [
2,
7652,
3143,
2607,
800,
3726,
3726,
31,
22,
79,
3694,
29,
3095,
8,
6800,
2607,
15,
215,
275,
16,
704,
6282,
17,
718,
14161,
18,
26,
28873,
15,
17,
31,
143,
16,
365,
8,
6800,
2607,
29,
82,
8712,
17,
8494,
8728,
18,
15,
47,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a tool to convert a .vim colour definition file to use in VS.NET 2008
===
If you go to a site such as:
[http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/index-c.html][1]
It has a bunch of example colour themes for VI.
Does anyone know of a tool that would take those files and convert them into .vssettings files to use in Visual Studio?
If not, how about some good docs on ether of the formats.
[1]: http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/index-c.html | 0 | [
2,
25,
80,
21,
5607,
20,
8406,
21,
13,
9,
1755,
79,
4609,
5465,
3893,
20,
275,
19,
4611,
9,
2328,
570,
800,
3726,
3726,
100,
42,
162,
20,
21,
689,
145,
28,
45,
636,
21127,
6903,
6483,
9,
6824,
9,
150,
3677,
9,
69,
291,
118,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to call external command in Python
===
I want to be able to call external command in Python.
Thanks for your help! | 0 | [
2,
184,
20,
645,
4886,
1202,
19,
20059,
800,
3726,
3726,
31,
259,
20,
44,
777,
20,
645,
4886,
1202,
19,
20059,
9,
3669,
26,
154,
448,
187,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
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... |
How to hide complete volume?
===
Using Windows Server 2003 in a multi-user environment (via Remote Desktop, using it as an application server), how to mount a (preferably encrypted) volume in a way, that won't show up on any other user's desktop?
Tried, and failed approaches:
- tweaking user rights -display of mounted volume can not be changed.
- Bestcrypt / truecrypt. Both of them displays the volume for a local administrator
| 0 | [
2,
184,
20,
3077,
1279,
2310,
60,
800,
3726,
3726,
568,
1936,
8128,
973,
19,
21,
1889,
8,
16704,
2307,
13,
5,
5034,
5388,
17404,
15,
568,
32,
28,
40,
3010,
8128,
6,
15,
184,
20,
2149,
21,
13,
5,
3515,
2407,
4801,
29403,
6,
231... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 manage .NET app.config files for large applications?
===
Suppose a large composite application built on several foundation components packaged in their own assemblies: (database reading, protocol handlers, etc.). For some deployments, this can include over 20 assemblies. Each of these assemblies has settings or configuration information. Our team tends to like the VS settings editor (and the easy-to-use code it generates!), and the application vs. user distinction meets most of our needs.
BUT....
It is very tedious to copy & paste the many configuration sections into our application's .xml. Furthermore, for shared components that tend to have similar configurations across applications, this means we need to maintain duplicate settings in multiple .config files.
Microsoft's EntLib solves this problem with an external tool to generate the monster .config file, but this feels klunky as well.
What techniques do you use to manage large .NET .config files with sections from multiple shared assemblies? Some kind of include mechanism? Custom configuration readers?
Dave
| 0 | [
2,
184,
107,
42,
4705,
13,
9,
2328,
4865,
9,
14093,
2816,
6488,
26,
370,
3767,
60,
800,
3726,
3726,
5787,
21,
370,
12639,
3010,
392,
27,
238,
1304,
5090,
6030,
43,
19,
66,
258,
21066,
45,
13,
5,
18768,
8436,
1876,
15,
8494,
2464... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
naming columns in excel with Complex sql
===
I’m trying to run this sql using get external ..
it work but when I try to rename the subqurrys or anything for that matter it remove it.
I tried as, as and the name in '', as then the name in "",
and the same with space. what is the right way to do that?
sql for completeness sake
>>select list_name, app_name, (select fname + ' ' + lname from dbo.d_agent_define map where map.agent_id = tac.agent_id) as agent_login, input,
convert(varchar,dateadd(ss,TAC_BEG_tstamp,'01/01/1970'))
from dbo.maps_report_list list join dbo.report_tac_agent tac on (tac.list_id = list.list_id)
where input = 'SYS_ERR' and app_name = 'CHARLOTT'
and convert(varchar,dateadd(ss,day_tstamp,'01/01/1970'),101) = '09/10/2008'
and list_name LIKE 'NRBAD%'
order by agent_login,convert(varchar,dateadd(ss,TAC_BEG_tstamp,'01/01/1970'))
| 0 | [
2,
10929,
7498,
19,
20700,
29,
1502,
4444,
255,
800,
3726,
3726,
31,
1,
79,
749,
20,
485,
48,
4444,
255,
568,
164,
4886,
13,
9,
9,
32,
170,
47,
76,
31,
1131,
20,
302,
7259,
14,
972,
5495,
139,
622,
18,
54,
602,
26,
30,
1161,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Perl: variable scope issue with CGI & DBI modules
===
I've run into what appears to be a variable scope issue I haven't encountered before. I'm using Perl's CGI module and a call to DBI's do() method. Here's the code structure, simplified a bit:
use DBI;
use CGI qw(:cgi-lib);
&ReadParse;
my $dbh = DBI->connect(...............);
my $test = $in{test};
$dbh->do(qq{INSERT INTO events VALUES (?,?,?)},undef,$in{test},"$in{test}",$test);
The #1 placeholder variable evaluates as if it is uninitialized. The other two placeholder variables work.
**The question: Why is the %in hash not available within the context of do(), unless I wrap it in double quotes (#2 placeholder) or reassign the value to a new variable (#3 placeholder)?**
I think it's something to do with how the CGI module's ReadParse() function assigns scope to the %in hash, but I don't know Perl scoping well enough to understand why %in is available at the top level but not from within my do() statement.
If someone does understand the scoping issue, is there a better way to handle it? Wrapping all the %in references in double quotes seems a little messy. Creating new variables for each query parameter isn't realistic.
Just to be clear, my question is about the variable scoping issue. I realize that ReadParse() isn't the recommended method to grab query params with CGI.
I'm using Perl 5.8.8, CGI 3.20, and DBI 1.52. Thank you in advance to anyone reading this. | 0 | [
2,
416,
255,
45,
7612,
9914,
1513,
29,
272,
2234,
279,
13,
43,
2161,
17113,
800,
3726,
3726,
31,
22,
195,
485,
77,
98,
1780,
20,
44,
21,
7612,
9914,
1513,
31,
2933,
22,
38,
8208,
115,
9,
31,
22,
79,
568,
416,
255,
22,
18,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to implement closures without gc?
===
I'm designing a language. First, I want to decide what code to generate. The language will have lexical closures and prototype based inheritance similar to javascript. But I'm not a fan of gc and try to avoid as much as possible. So the question: Is there an elegant way to implement closures without resorting to allocate the stack frame on the heap and leave it to garbage collector?
My first thoughts:
1. Use reference counting and garbage collect the cycles (I don't really like this)
2. Use spaghetti stack (looks very inefficient)
3. Limit forming of closures to some contexts such a way that, I can get away with a return address stack and a locals' stack.
I won't use a high level language or follow any call conventions, so I can smash the stack as much as I like. | 0 | [
2,
184,
20,
8713,
7790,
18,
366,
13,
10362,
60,
800,
3726,
3726,
31,
22,
79,
15026,
21,
816,
9,
64,
15,
31,
259,
20,
4073,
98,
1797,
20,
7920,
9,
14,
816,
129,
57,
29180,
7790,
18,
17,
7063,
432,
13852,
835,
20,
8247,
8741,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Whats a good way to trim the GUI of a ASP.NET website?
===
I've been trimming the UI of our website by doing the following in the onload event of that control:
btnDelete.isVisible = user.IsInRole("can delete");
This has become very tedious because there are so many controls to check again and again. As soon as I get it all working, designers request to change the UI and then it starts all over.
Any suggestions? | 0 | [
2,
98,
18,
21,
254,
161,
20,
8971,
14,
9457,
16,
21,
28,
306,
9,
2328,
2271,
60,
800,
3726,
3726,
31,
22,
195,
74,
8971,
3863,
14,
13,
5661,
16,
318,
2271,
34,
845,
14,
249,
19,
14,
27,
8294,
807,
16,
30,
569,
45,
334,
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... |
Two Phase Commit/Shared Transaction
===
The scenario is this
We have two applications A and B, both which are running in separate database (Oracle 9i ) transactions
Application A - inserts some data into the database, then calls Application B
Application B - inserts some data into the database, related (via foreign keys) to A's data. Returns an "ID" to Application A
Application A - uses ID to insert further data, including the ID from B
Now, because these are separate transactions, but both rely on data from each others transactions, we need to commit between the calls to each application. This of course makes it very difficult to rollback if anything goes wrong.
How would you approach this problem, with minimal refactoring of the code. Surely this kind of this is a common problem in the SOA world?
| 0 | [
2,
81,
2702,
9686,
118,
16608,
43,
12799,
800,
3726,
3726,
14,
12705,
25,
48,
95,
57,
81,
3767,
21,
17,
334,
15,
156,
56,
50,
946,
19,
1725,
6018,
13,
5,
6055,
5615,
561,
49,
13,
6,
13147,
3010,
21,
13,
8,
14692,
18,
109,
10... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it possible to store and retrieve a boolean value in a varchar field using Java JDBC?
===
quick question: my customer has a situation where he has his database with a varchar field and the corresponding jdbc code is storing/retrieving a boolean.
I guess that the boolean values false and true are going to be translated to "0" and "1" but I would like to have a confirmation of this (I can't find the precise behavior specification online, maybe it depends on each driver, Oracle in this case).
I know I could experiment by myself, but I want to have a try at stackoverflow.com!
Thanks for your answer,
Eric. | 0 | [
2,
25,
32,
938,
20,
1718,
17,
11917,
21,
9827,
413,
210,
1923,
19,
21,
4033,
5433,
575,
568,
8247,
487,
43,
7229,
60,
800,
3726,
3726,
2231,
1301,
45,
51,
7705,
63,
21,
1858,
113,
24,
63,
33,
6018,
29,
21,
4033,
5433,
575,
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... |
Windows workflow..
===
Can anyone explain what is windows workflow and how can we use in the work organization. | 0 | [
2,
1936,
170,
9990,
9,
9,
800,
3726,
3726,
92,
1276,
3271,
98,
25,
1936,
170,
9990,
17,
184,
92,
95,
275,
19,
14,
170,
1165,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
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... |
Does users really prefer quicker apps or does features trump all?
===
How much of an impact does a faster application count considering the competition, or does features trump everything? Where is the balance point, and for what type of apps? | 4 | [
2,
630,
3878,
510,
6369,
21927,
4865,
18,
54,
630,
967,
7095,
65,
60,
800,
3726,
3726,
184,
212,
16,
40,
2261,
630,
21,
4233,
3010,
2468,
5154,
14,
1076,
15,
54,
630,
967,
7095,
796,
60,
113,
25,
14,
4468,
454,
15,
17,
26,
98,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Import *variable record length* CSV file using SSIS
===
I have tried time and again to get a CSV file into a SQL Server table, using SSIS, where the input file has varying record lengths. For this question, the two different record lengths are 63 and 326 bytes. All record lengths will be imported into the same 326 byte width table.
There are over 1 million records to import.
I have no control of the creation of the import file.
I must use SSIS.
I have confirmed with MS that this has been reported as a bug.
I have tried several workarounds. Most have been where I try to write custom code to intercept the record and I cant seem to get that to work as I want. | 0 | [
2,
9010,
1637,
8220,
579,
571,
1476,
2483,
272,
18,
710,
3893,
568,
13,
18,
4557,
800,
3726,
3726,
31,
57,
794,
85,
17,
188,
20,
164,
21,
272,
18,
710,
3893,
77,
21,
4444,
255,
8128,
859,
15,
568,
13,
18,
4557,
15,
113,
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... |
Using Merb for Facebook Application
===
Since Rails is not multithreaded (yet), it seems like a threaded web framework would be a better choice for a Facebook application. (reason being is cuz each Rails process can only handle one request at a time, and facebook actions tend to be slow, because there is a lot of network communication between your app and facebook)
Has anyone used Merb to write a Facebook application? Is there a port of Facebooker (the Facebook plugin for Rails) to Merb? | 0 | [
2,
568,
55,
7549,
26,
9090,
3010,
800,
3726,
3726,
179,
2240,
18,
25,
52,
1889,
96,
10647,
69,
13,
5,
16480,
6,
15,
32,
2206,
101,
21,
9322,
69,
2741,
6596,
83,
44,
21,
574,
1837,
26,
21,
9090,
3010,
9,
13,
5,
24793,
142,
25... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Managing clueless software managers
===
Ideally it would be great if those in management had at least some background in software development. On a number of occasions though, as a software developer, I have found myself dealing with what some might deem (unfairly?) "clueless" management individuals.
Rather then turn this into a anti-management ranting session, can you provide any effective and sensible techniques/approaches to dealing with such a manager?
These days I try very hard to put myself in the managers shoes and see things from their perspective. In some cases this can help, but often I can feel my sanity starting to slip if I go there for too long.
If you find yourself on a project where you have concerns about the quality of management, how do you manage the situation yourself so that things don't completely fall apart? | 4 | [
2,
5616,
8906,
923,
2306,
12657,
800,
3726,
3726,
5628,
102,
32,
83,
44,
374,
100,
273,
19,
1097,
41,
35,
639,
109,
2395,
19,
2306,
522,
9,
27,
21,
234,
16,
5795,
362,
15,
28,
21,
2306,
10058,
15,
31,
57,
216,
992,
5746,
29,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Help with algorithm for merging vectors
===
I need a very fast algorithm for the following task. I have already implemented several algorithms that complete it, but they're all too slow for the performance I need. It should be fast enough that the algorithm can be run at least 100,000 times a second on a modern CPU. It will be implemented in C++.
I am working with spans/ranges, a structure that has a start and an end coordinate on a line.
I have two vectors (dynamic arrays) of spans and I need to merge them. One vector is src and the other dst. The vectors are sorted by span start coordinates, and the spans do not overlap within one vector.
The spans in the src vector must be merged with the spans in the dst vector, such that the resulting vector is still sorted and has no overlaps. Ie. if overlaps are detected during the merging, the two spans are merged into one. (Merging two spans is just a matter of changing the coordinates in the structure.)
Now, there is one more catch, the spans in the src vector must be "widened" during the merge. This means that a constant will be added to the start and another (larger) constant to the end coordinate of every span in src. This means that after the src spans are widened they might overlap.
---
What I have arrived at so far is that it cannot be done fully in-place, some kind of temporary storage is needed. I think it should be doable in linear time over the number of elements of src and dst summed.
Any temporary storage can probably be shared between multiple runs of the algorithm.
The two primary approaches I have tried, which are too slow, are:
1. Append all elements of src to dst, widening each element before appending it. Then run an in-place sort. Finally iterate over the resulting vector using a "read" and "write" pointer, with the read pointer running ahead of the write pointer, merging spans as they go. When all elements have been merged (the read pointer reaches end) dst is truncated.
2. Create a temporary work-vector. Do a naive merge as described above by repeatedly picking the next element from either src or dst and merging into the work-vector. When done, copy the work-vector to dst, replacing it.
The first method has the problem that sorting is O((m+n)*log(m+n)) instead of O(m+n) and has somewhat overhead. It also means the dst vector has to grow much larger than it really needs.
The second has the primary problem of a lot of copying around and again allocation/deallocation of memory.
The data structures used for storing/managing the spans/vectors can be altered if you think that's needed. | 0 | [
2,
448,
29,
9083,
26,
18842,
7497,
18,
800,
3726,
3726,
31,
376,
21,
253,
1512,
9083,
26,
14,
249,
3005,
9,
31,
57,
614,
6807,
238,
15935,
30,
1279,
32,
15,
47,
59,
22,
99,
65,
266,
2276,
26,
14,
956,
31,
376,
9,
32,
378,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Reference app relative virtual paths in .css file
===
Assume I have an "images" folder directory under the root of my application. How can I, from within a .css file, reference an image in this directory using an ASP.NET app relative path.
Example:
When in development, the path of **~/Images/Test.gif** might resolve to **/MyApp/Images/Test.gif** while, in production, it might resolve to **/Images/Test.gif** (depending on the virtual directory for the application). I, obviously, want to avoid having to modify the .css file between environments.
I know you can use Page.ResolveClientUrl to inject a url into a control's Style collection dynamically at render time. I would like to avoid doing this. | 0 | [
2,
2801,
4865,
4543,
6599,
12074,
19,
13,
9,
6824,
18,
3893,
800,
3726,
3726,
7158,
31,
57,
40,
13,
7,
22039,
18,
7,
19294,
16755,
131,
14,
5900,
16,
51,
3010,
9,
184,
92,
31,
15,
37,
363,
21,
13,
9,
6824,
18,
3893,
15,
2801... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Bypass GeneratedValue in Hibernate
===
Is it possible to bypass @GeneratedValue for an ID in hibernate, we have a case where, most of the time we want the ID to be set using GeneratedValue, but in certain cases would like to set the ID manually.
Is this possible? | 0 | [
2,
8900,
6756,
15165,
19,
4148,
2102,
8820,
800,
3726,
3726,
25,
32,
938,
20,
8900,
13,
1,
25314,
15165,
26,
40,
4924,
19,
4148,
2102,
8820,
15,
95,
57,
21,
610,
113,
15,
127,
16,
14,
85,
95,
259,
14,
4924,
20,
44,
309,
568,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get my Visual Studio Test Suite web test to iterate over my data source
===
I have Visual Studio web test attached nicely to a data source, but I need to be able to iterate over each entry in the data source. How should I do this? | 0 | [
2,
184,
107,
31,
164,
51,
3458,
1120,
1289,
6160,
2741,
1289,
20,
32,
106,
1373,
84,
51,
1054,
1267,
800,
3726,
3726,
31,
57,
3458,
1120,
2741,
1289,
3638,
24050,
20,
21,
1054,
1267,
15,
47,
31,
376,
20,
44,
777,
20,
32,
106,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Free or open source IBM 3151 or aixterm emulators?
===
Does anyone know of any free or open source terminal emulators that will emulate an IBM 3151 terminal or an HFT terminal (aixterm)?
We have some offshore contractors that need access to some of our systems that need a 3151 or hft emulation, but are having issues transferring licenses of Hummingbird HostExplorer to India. For that matter, if we could save on US Hummingbird licenses it would be beneficial as well.
Thanks!
| 2 | [
2,
551,
54,
368,
1267,
10233,
203,
15533,
54,
21,
4028,
3964,
3579,
14868,
18,
60,
800,
3726,
3726,
630,
1276,
143,
16,
186,
551,
54,
368,
1267,
3855,
3579,
14868,
18,
30,
129,
23804,
40,
10233,
203,
15533,
3855,
54,
40,
746,
3072... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Linux Servers
===
What is your preferred flavor of Linux for a server environment? | 2 | [
2,
13024,
17595,
800,
3726,
3726,
98,
25,
154,
5981,
11974,
16,
13024,
26,
21,
8128,
2307,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
CScript/WScript Prevent an error from being blocking
===
Currently, WScript pops up messagebox when there is a script error. These scripts are called by other processes, and are ran on a server, so there is nobody to dismiss the error box.
What I'd like is for the error message to be dumped to STDOUT, and execution to return the calling process. Popping as a MSGBox just hangs the entire thing.
Ideas? | 0 | [
2,
272,
8741,
118,
499,
8741,
2501,
40,
7019,
37,
142,
11828,
800,
3726,
3726,
871,
15,
619,
8741,
1675,
18,
71,
2802,
5309,
76,
80,
25,
21,
3884,
7019,
9,
158,
17505,
50,
227,
34,
89,
5102,
15,
17,
50,
717,
27,
21,
8128,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I ban a whole company from my web site?
===
For reasons I won't go into, I wish to ban an entire company from accessing my web site. Checking the remote hostname in php using gethostbyaddr() works, but this slows down the page load too much. Large organizations (eg. hp.com or microsoft.com) often have blocks of IP addresses. Is there anyway I get the full list, or am I stuck with the slow reverse-DNS lookup? If so, can I speed it up? | 0 | [
2,
184,
92,
31,
2135,
21,
979,
237,
37,
51,
2741,
689,
60,
800,
3726,
3726,
26,
2932,
31,
230,
22,
38,
162,
77,
15,
31,
2536,
20,
2135,
40,
1078,
237,
37,
1381,
68,
51,
2741,
689,
9,
9886,
14,
5388,
2015,
7259,
19,
13,
26120... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 direction for a grade 12 student planing on going into Computer Sciences?
===
So, I have just started grade 12, and after I graduate I plan on going to University and major in Computer Sciences, and eventually make a career out of it. I am looking for advice on what direction I should be heading to make the most out of things. :]
Currently, I know some PHP, Java, and C++. Nothing too advanced for any of these, but I am not a beginner either.
I haven't done anything outside of the console in C++, so I figure that should be my next step.
Anyways, I'm just looking for any advise on what I should be doing. Any suggestions on what language I should be working on improving (or learning), any projects that should help me get a bit of experience, etc.
Anything, really. :]
Thanks. | 0 | [
2,
246,
1400,
26,
21,
2044,
390,
1209,
944,
68,
27,
228,
77,
1428,
2623,
60,
800,
3726,
3726,
86,
15,
31,
57,
114,
373,
2044,
390,
15,
17,
75,
31,
3156,
31,
944,
27,
228,
20,
155,
17,
394,
19,
1428,
2623,
15,
17,
878,
233,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why isn't the git stash unique per branch?
===
I suppose it allows for moving changes from one branch to the next but that's what cherry picking is for and if you're not making a commit of your changes, perhaps you shouldn't be moving them around?
I have on occasion applied the wrong stash at the wrong branch, which left me wondering about this question. | 0 | [
2,
483,
2532,
22,
38,
14,
13,
10404,
24542,
2619,
416,
1686,
60,
800,
3726,
3726,
31,
5787,
32,
2965,
26,
1219,
1693,
37,
53,
1686,
20,
14,
328,
47,
30,
22,
18,
98,
9257,
7833,
25,
26,
17,
100,
42,
22,
99,
52,
544,
21,
9686,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Comparing std::tr1::function<> objects
===
I've been trying to implement a C#-like event system in C++ with the tr1 function templates used to store a function that handles the event.
I created a vector so that multiple listeners can be attached to this event, i.e.:
vector< function<void (int)> > listenerList;
I'd like to be able to remove a handler from the list to stop a listener receiving events.
So, how can I find the entry in this list that corresponds to a given listener? Can I test if a 'function' object in the list refers to a particular function?
Thanks! | 0 | [
2,
15047,
354,
43,
45,
45,
6384,
165,
45,
45,
22359,
1,
3916,
800,
3726,
3726,
31,
22,
195,
74,
749,
20,
8713,
21,
272,
5910,
8,
1403,
807,
329,
19,
272,
20512,
29,
14,
9235,
165,
1990,
22894,
18,
147,
20,
1718,
21,
1990,
30,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Renaming controllers in Rails and cleaning out generated content.
===
I was following along with the railscast regarding the restful_authentication plugin.
He recommended running the command:
script/generate authenticated user session
Which I did, and everything generated "fine", but then sessions wouldn't work. Checking the site again, he mentions a naming standard and listed updated code which stated:
script/generate authenticated user sessions
With sessions being pluralized.
So now I have session_controller.rb with a SessionController in it, but I guess by naming standards, it is looking for SessionsController, causing the code to fail out with the error "NameError in SessionsController#create "
I see the problem, which is pretty obvious, but what I don't know is, how do I fix this without regenerating the content? Is there a way to reverse the generation process to clear out all changes made by the generation?
I tried just renaming the files to sessions_controller with e SessionsController class, but that failed.
While writing this, I solved my own problem. I had to rename session to sessions in the routes file as a map.resource and rename the view directory from session to sessions, and update session_path in the html.erb file to sessions_path.
So I solved my problem, but my answer regarding removing generated content still remains. Is it possible to ungenerate content? | 0 | [
2,
25934,
9919,
18,
19,
2240,
18,
17,
9724,
70,
6756,
2331,
9,
800,
3726,
3726,
31,
23,
249,
303,
29,
14,
2240,
18,
6146,
3467,
14,
760,
1566,
1,
1346,
2504,
1786,
857,
10922,
108,
9,
24,
5773,
946,
14,
1202,
45,
3884,
118,
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... |
Annuity or Angle Operation Symbol in LaTeX
===
How do I set the symbol for the *angle* or *annuity* operation in LaTeX? Specifically, this is the actuarial *a* angle *s* = (1-v<sup>s</sup>)/i. | 0 | [
2,
13,
19600,
856,
54,
5334,
1453,
4678,
19,
456,
396,
800,
3726,
3726,
184,
107,
31,
309,
14,
4678,
26,
14,
1637,
15427,
2483,
54,
1637,
19600,
856,
2483,
1453,
19,
456,
396,
60,
3524,
15,
48,
25,
14,
601,
3786,
20050,
1637,
58... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What's the best way to run Wordpress on the same domain as a Rails application?
===
I've got a standard Rails app with Nginx and Mongrel running at http://mydomain. I need to run a Wordpress blog at http://mydomain.com/blog. My preference would be to host the blog in Apache running on either the same server or a separate box but I don't want the user to see a different server in the URL. Is that possible and if not, what would you recommend to accomplish the goal? | 0 | [
2,
98,
22,
18,
14,
246,
161,
20,
485,
833,
5890,
27,
14,
205,
4603,
28,
21,
2240,
18,
3010,
60,
800,
3726,
3726,
31,
22,
195,
330,
21,
1236,
2240,
18,
4865,
29,
13,
2723,
108,
396,
17,
21028,
7256,
946,
35,
7775,
6903,
915,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Getting particular substring using xslt1.0
===
I have a string as below.
<freeForm>
<text>mnr.getValue().put("xyz","pqr");</text>
</freeForm>
From the above xml portion i need to get the string **xyz**.
Please provide pointers to achieve the same using xslt1.0.
| 0 | [
2,
1017,
1498,
972,
11130,
568,
993,
18,
255,
38,
165,
9,
387,
800,
3726,
3726,
31,
57,
21,
3724,
28,
1021,
9,
13,
1,
4639,
4190,
1,
13,
1,
11969,
1,
79,
12835,
9,
3060,
15165,
5,
6,
9,
4881,
5,
7,
15161,
380,
7,
15,
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... |
BASH: suppress echo of command invokation in script?
===
I wrote a program for an assignment which is supposed to print its output to stdout. The assignment spec requires the creation of a Makefile which when invoked as `make run > outputFile` should run the program and write the output to a file, which has a SHA1 fingerprint identical to the one given in the spec.
My problem is that my makefile:
...
run:
java myprogram
also prints the command which runs my program (e.g. java myprogram) to the output file, so that my file includes this extra line causing the fingerprint to be wrong.
Is there any way to execute a command without the command invocation echoing to the command line?
| 0 | [
2,
13158,
45,
12451,
8117,
16,
1202,
19,
2625,
197,
857,
19,
3884,
60,
800,
3726,
3726,
31,
738,
21,
625,
26,
40,
8427,
56,
25,
2293,
20,
4793,
82,
5196,
20,
354,
43,
1320,
9,
14,
8427,
12737,
4781,
14,
2502,
16,
21,
233,
1687... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 fetch populated associated models in CakePHP when calling read()
===
I have the following Models:
class Site extends AppModel {
public $name = "Site";
public $useTable = "site";
public $primaryKey = "id";
public $displayField = 'name';
public $hasMany = array('Item' => array('foreignKey' => 'siteId'));
public function canView($userId, $isAdmin = false) {
if($isAdmin) { return true; }
return array_key_exists($this->id, $allowedSites);
}
}
and
class Item extends AppModel {
public $name = "Item";
public $useTable = "item";
public $primaryKey = "id";
public $displayField = 'name';
public $belongsTo = array('Site' => array('foreignKey' => 'siteId'));
public function canView($userId, $isAdmin = false) {
// My problem appears to be the next line:
return $this->Site->canView($userId, $isAdmin);
}
}
In my controller I am doing something like this:
$result = $this->Item->read(null, $this->request->id);
// Verify permissions
if(!$this->Item->canView($this->Session->read('userId'), $this->Session->read('isAdmin'))) {
$this->httpCodes(403);
die('Permission denied.');
}
I notice that in `Item->canView()` `$this->data['Site']` is populated with the column data from the site table. But it merely an array and not an object.
On the other hand `$this->Site` is a Site object, but it has not been populated with the column data from the site table like `$this->data`.
What is the proper way to have CakePHP get the associated model as the object and containing the data? Or am I going about this all wrong?
Thanks! | 0 | [
2,
184,
20,
18312,
11111,
1598,
2761,
19,
8390,
26120,
76,
2555,
1302,
5,
6,
800,
3726,
3726,
31,
57,
14,
249,
2761,
45,
718,
689,
9073,
4865,
13998,
13,
1,
317,
5579,
7259,
800,
13,
7,
9097,
7,
73,
317,
5579,
3699,
5924,
800,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
EF4.3 MVC 4 Ninject CustomModelBinderAttribute for Abstract base class losing post values
===
I will try to explain as best i can... Huge post coming as i'm not 100% where the problem lies. It probably has a really simple fix but i'm pulling hair at the min.
I have an abstract base class with a navigation property to a document type like so
public abstract class Document: Identity
{
public int DocumentTypeId { get; set; } // this remains and alls good
public virtual DocumentType DocumentType { get; set; } // this dissappears.
}
This DocumentType object contains a string value for the namespace for the type of object that it is. As an example I then have a class derived the document abstract class like so
public class Blog : Document
{
//properties excluded to keep this post from being HUGE!
}
They all have properties which are saving back to the database. however the document type is missing. Not the DocumentTypeId, that is there, but the actual DocumentType, I need to navigate into it to get the namespace value but it is missing.
It now gets a bit more complicated. I am using a ninject generic repository that injects, in this case the Blog into the view. Here is an example controller.
public class ContentController : Controller
{
private IRepository<Document> repo;
public ContentController(IRepository<Document> _repo)
{
repo = _repo;
}
public ActionResult Settings(string name) //name is unique!
{
Document d = repo.First(x => x.Name == name);
return View(d); // all properties are present
}
[HttpPost]
public ActionResult Settings([AbstractBind()] Document obj)
{
repo.Save(obj); // documenttype is missing documenttypeId is present.
return View(obj);
// this does not work but refresh does?!
//Document d = repo.First(x => x.Name == obj.name);
//return View(d);
}
}
because the view is bound to an abstract class I am using the editor for model like so
@model Core.Entities.Documents.Abstract.Document
@{
ViewBag.Title = "Index";
Layout = "~/Areas/Admin/Views/Shared/_CMSContent.cshtml";
}
<h2>Settings - @Model.Name</h2>
@using (Html.BeginForm())
{
@Html.Hidden("Namespace", Model.DocumentType.Namespace);
@Html.ValidationSummary(true)
@Html.EditorForModel();
<div class="editor-label"> </div>
<div class="editor-field">
<input type="submit" value="Save" class="btn" />
</div>
<br class="clear" />
@Html.ActionLink("< Back to List", "Index")
}
Notice that i am adding a hidden field for the namespace contained within the view. Also notice that i am using a custom binding method to figure out what type is actually being edited, by going through the following method:
protected override object CreateModel(ControllerContext controllerContext, ModelBindingContext bindingContext, Type modelType)
{
var type = Assembly.GetAssembly(typeof(Document)).GetType(bindingContext.ValueProvider.GetValue("Namespace").AttemptedValue);
var model = Activator.CreateInstance(type);
bindingContext.ModelMetadata = ModelMetadataProviders.Current.GetMetadataForType(() => model, type);
return model;
}
this figures out what type it is, (Blog). How do i get the DocumentType reference back into my model on the HTTP post?
I have tried adding a hidden field for the type like this @Html.HiddenFor(x => x.DocumentType); but it doesn't work.
I also tried going and getting it from the repository again after saving (commented out in the example) but no joy. If i refresh the page then the field is back again as Ninject and EF figures out that the Id is a foreign key that points to the DocumentType.
I could go and get the document type by the id that is in the "Document obj" and attach it back to the object before returing it to the view but i think that this would be terrible practise.
Any ideas? | 0 | [
2,
11599,
300,
9,
240,
307,
8990,
268,
13,
5703,
17759,
5816,
13998,
24200,
721,
14755,
26,
8502,
1000,
718,
2281,
678,
4070,
800,
3726,
3726,
31,
129,
1131,
20,
3271,
28,
246,
31,
92,
9,
9,
9,
2329,
678,
880,
28,
31,
22,
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... |
Kohana 3.2 error
===
ErrorException [ Fatal Error ]: Class 'Model_Categories' not found
MODPATH/orm/classes/kohana/orm.php [ 37 ]
32 public static function factory($model, $id = NULL)
33 {
34 // Set class name
35 $model = 'Model_'.ucfirst($model);
36
37 return new $model($id);
38 }
39
40 /**
41 * "Has one" relationships
42 * @var array
im keeping on having this error... i have no idea how to fix it.
after i uploaded it to the shared host, i keep getting this error
i already checked for the following:
1. changed .htaccess RewriteBase and made it
RewriteBase /
2. Also changed bootstrap.php base_url to "/"
3. Checked Model_Categories and it is visibile in the directory
i dont know the error | 0 | [
2,
1584,
7285,
203,
9,
135,
7019,
800,
3726,
3726,
7019,
10066,
872,
636,
8773,
7019,
13,
500,
45,
718,
13,
22,
13998,
1,
14375,
1596,
22,
52,
216,
7226,
8353,
118,
248,
79,
118,
1898,
160,
118,
921,
7285,
118,
248,
79,
9,
26120... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Highcharts Load Charts on click
===
I am building a Dashboard and it has around 4 graphs on a row and on click of any graph i want to update another graph which is bigger in size to display the graph so that its visible to the user to analyze.
![enter image description here][1]
[1]: http://i.stack.imgur.com/00Egm.png | 0 | [
2,
183,
5433,
38,
18,
6305,
5158,
27,
10840,
800,
3726,
3726,
31,
589,
353,
21,
26478,
17,
32,
63,
140,
268,
7210,
18,
27,
21,
3131,
17,
27,
10840,
16,
186,
7210,
31,
259,
20,
11100,
226,
7210,
56,
25,
6197,
19,
1072,
20,
3042... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Trying to understand Hibernate sessions
===
If I save an entity using a Hibernate session, and then probe to get this entity from the current session on the very next line (i.e. without the changes have been written to DB yet) will the session return an object? I assume it should, because it is also aware of what changes have been made to it. | 0 | [
2,
749,
20,
1369,
4148,
2102,
8820,
5763,
800,
3726,
3726,
100,
31,
2079,
40,
9252,
568,
21,
4148,
2102,
8820,
3723,
15,
17,
94,
13044,
20,
164,
48,
9252,
37,
14,
866,
3723,
27,
14,
253,
328,
293,
13,
5,
49,
9,
62,
9,
366,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to Implement a Redirect on All Requests (on certain conditions)?
===
I want to set something up so that if an Account within my app is disabled, I want all requests to be redirected to a "disabled" message.
I've set this up in my ApplicationController:
class ApplicationController < ActionController::Base
before_filter :check_account
def check_account
redirect_to :controller => "main", :action => "disabled" and return if !$account.active?
end
end
Of course, this doesn't quite work as it goes into an infinite loop if the Account is not active. I was hoping to use something like:
redirect_to :controller => "main", :action => "disabled" and return if !$account.active? && @controller.controller_name != "main" && @controller.action_name != "disabled"
but I noticed that in Rails v2.1 (what I'm using), @controller is now controller and this doesn't seem to work in ApplicationController.
What would be the best way to implement something like this?
| 0 | [
2,
184,
20,
8713,
21,
302,
14706,
27,
65,
12279,
13,
5,
218,
1200,
2039,
6,
60,
800,
3726,
3726,
31,
259,
20,
309,
301,
71,
86,
30,
100,
40,
2176,
363,
51,
4865,
25,
10154,
15,
31,
259,
65,
12279,
20,
44,
302,
14147,
20,
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... |
AX trace file reader utility
===
Does anybody know where I can download a utility to convert the .trc trace files output by MS dynamics AX server? We have a dev version of the server running locally but no access to an MS account as we are not regular AX developers.
| 0 | [
2,
21,
396,
5565,
3893,
7765,
10082,
800,
3726,
3726,
630,
11181,
143,
113,
31,
92,
7121,
21,
10082,
20,
8406,
14,
13,
9,
38,
5453,
5565,
6488,
5196,
34,
4235,
12289,
21,
396,
8128,
60,
95,
57,
21,
9664,
615,
16,
14,
8128,
946,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
App_Code folder issues
===
So I'm having a really weird issue with my App_Code folder on a new website I'm designing.
I have a basic class inside of a namespace in the App_Code folder. Everything works fine in the IDE when I setup the namespace and make an object from the class. It brings up the class summary on hover, and when you click on "go to deffinition" it goes to the class file.
And it also works fine localy.
However, when I load the site onto my server, I get this error message when I access that page:
Line 10: using System.Web.UI.WebControls;<br/>
Line 11: using System.Web.UI.WebControls.WebParts;<br/>
**Line 12: using xxxx.xxxx**
**Compiler Error Message:** CS0246: The type or namespace name 'xxxxxx' could not be found (are you missing a using directive or an assembly reference?)
I know for a fact that the class file is there. Anyone have any idea of whats going on?
| 0 | [
2,
4865,
1,
9375,
19294,
1549,
800,
3726,
3726,
86,
31,
22,
79,
452,
21,
510,
5455,
1513,
29,
51,
4865,
1,
9375,
19294,
27,
21,
78,
2271,
31,
22,
79,
15026,
9,
31,
57,
21,
2125,
718,
572,
16,
21,
204,
5582,
19,
14,
4865,
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 language is most like PHP.
===
I am a PHP dev looking to pickup a new language, I have tried and failed on C++ several times (possibly for my overall lack of interest).<br /><br /><br />
I've been hearing alot about Python, and Ruby and my question is this:<br /><br />
Which of these languages (Python, Ruby) should be easiest for someone with a background in PHP to learn? | 4 | [
2,
56,
816,
25,
127,
101,
13,
26120,
9,
800,
3726,
3726,
31,
589,
21,
13,
26120,
9664,
699,
20,
15181,
21,
78,
816,
15,
31,
57,
794,
17,
1702,
27,
272,
20512,
238,
436,
13,
5,
21628,
26,
51,
1677,
1792,
16,
1163,
6,
9,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What happens to the time slice if you disable preemption in vxWorks?
===
If you have round robin scheduling enabled in VxWorks, and you use taskLock() to disable preemption, what happens when your timeslice expires? | 0 | [
2,
98,
5531,
20,
14,
85,
12982,
100,
42,
1460,
579,
782,
14228,
872,
19,
566,
396,
7684,
60,
800,
3726,
3726,
100,
42,
57,
560,
4804,
23096,
9338,
19,
566,
396,
7684,
15,
17,
42,
275,
3005,
3966,
5,
6,
20,
1460,
579,
782,
1422... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 do you specify a different port number in SQL Management Studio?
===
I am trying to connect to a Microsoft SQL 2005 server which is not on port 1433. How do I indicate a different port number when connecting to the server using SQL management Studio? The port number is 10433.
Thank you,
Brett | 0 | [
2,
184,
107,
42,
19077,
21,
421,
1295,
234,
19,
4444,
255,
1097,
1120,
60,
800,
3726,
3726,
31,
589,
749,
20,
6379,
20,
21,
7099,
4444,
255,
812,
8128,
56,
25,
52,
27,
1295,
513,
4048,
9,
184,
107,
31,
4342,
21,
421,
1295,
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... |
Can you reliably set or delete a cookie during the server side processing of an Ajax (XHR) call?
===
I have done a bit of testing on this myself (During the server side processing of a DWR Framework Ajax request handler to be exact) and it seems you CAN successfully manipulate cookies, but this goes against much that I have read on Ajax best practices and how browsers interpret the response from an XmlHttpRequest. Note I have tested on:
- IE 6 and 7
- Firefox 2 and 3
- Safari
and in all cases standard cookie operations on the HttpServletResponse object during Ajax request handling were correctly interpreted by the browser, but I would like to know if it best practice to push the cookie manipulation to the client side, or if this (much cleaner) server side cookie handling can be trusted.
I would welcome answers both specific to the DWR Framework and Ajax in general. | 0 | [
2,
92,
42,
13,
19003,
4801,
309,
54,
27448,
21,
19980,
112,
14,
8128,
270,
5511,
16,
40,
20624,
13,
5,
396,
3112,
6,
645,
60,
800,
3726,
3726,
31,
57,
677,
21,
1142,
16,
4431,
27,
48,
992,
13,
5,
23176,
14,
8128,
270,
5511,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AssignProcessToJobObject fails with "Access Denied" error when running under the debugger
===
You do `AssignProcessToJobObject` and it fails with "access denied" but only when you are running in the debugger. Why is this? | 0 | [
2,
13952,
16835,
262,
1636,
220,
23793,
13614,
29,
13,
7,
20604,
5265,
7,
7019,
76,
946,
131,
14,
121,
2345,
11356,
800,
3726,
3726,
42,
107,
13,
1,
472,
11255,
16835,
262,
1636,
220,
23793,
1,
17,
32,
13614,
29,
13,
7,
20604,
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,
0... |
How Does The Debugging Option -g Change the Binary Executable?
===
When writing C/C++ code, in order to debug the binary executable the debug option must be enabled on the compiler/linker. In the case of GCC, the option is -g. When the debug option is enabled, how does the affect the binary executable? What additional data is stored in the file that allows the debugger function as it does? | 0 | [
2,
184,
630,
14,
121,
16254,
2762,
4255,
13,
8,
263,
753,
14,
14171,
1396,
17194,
5924,
60,
800,
3726,
3726,
76,
1174,
272,
118,
150,
20512,
1797,
15,
19,
389,
20,
121,
16254,
14,
14171,
1396,
17194,
5924,
14,
121,
16254,
4255,
49... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In sql server 2005, how do I change the "schema" of a table without loosing any data?
===
I have a table that got into the "db_owner" schema, and I need it in the "dbo" schema.
Is there a script or command to run to switch it over? | 0 | [
2,
19,
4444,
255,
8128,
812,
15,
184,
107,
31,
753,
14,
13,
7,
7526,
540,
7,
16,
21,
859,
366,
13,
10165,
18,
68,
186,
1054,
60,
800,
3726,
3726,
31,
57,
21,
859,
30,
330,
77,
14,
13,
7,
9007,
1,
10705,
7,
23874,
15,
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... |
What is a Privileged instruction?
===
I have added some code which compiles cleanly and have just received this Windows error:
---------------------------
(MonTel Administrator) 2.12.7: MtAdmin.exe - Application Error
---------------------------
The exception Privileged instruction.
(0xc0000096) occurred in the application at location 0x00486752.
I am about to go on a bug hunt, and I am expecting it to be something silly that I have done which just happens to produce this message. The code compiles cleanly with no errors or warnings. The size of the exe has grown to 1,454,132 bytes, and includes links to ODCS.lib, but is otherwise pure 'c' to the Win32 API, with DEBUG on (running on a P4 on Win2K).
| 0 | [
2,
98,
25,
21,
25317,
7304,
60,
800,
3726,
3726,
31,
57,
905,
109,
1797,
56,
26561,
18,
2745,
102,
17,
57,
114,
420,
48,
1936,
7019,
45,
13,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
8,
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... |
In a bash script, how do I sanitize user input?
===
I'm looking for the best way to take a simple input:
echo -n "Enter a string here: "
read -e STRING
and clean it up by removing non-alphanumeric characters, lower(case), and replacing spaces with underscores.
Does order matter? Is `tr` the best / only way to go about this?
| 0 | [
2,
19,
21,
13158,
3884,
15,
184,
107,
31,
523,
242,
2952,
4155,
6367,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
14,
246,
161,
20,
247,
21,
1935,
6367,
45,
8117,
13,
8,
103,
13,
7,
13679,
21,
3724,
235,
45,
13,
7,
1302,
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... |
Do anyone do test cases for pojos?
===
Is that needed? | 0 | [
2,
107,
1276,
107,
1289,
1871,
26,
2353,
1636,
18,
60,
800,
3726,
3726,
25,
30,
851,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do you pass arguments to define_method?
===
I would like to pass an argument(s) to a method being defined using define_method, how would I do that? | 0 | [
2,
184,
107,
42,
1477,
10553,
20,
9267,
1,
5909,
1807,
43,
60,
800,
3726,
3726,
31,
83,
101,
20,
1477,
40,
5476,
5,
18,
6,
20,
21,
2109,
142,
2811,
568,
9267,
1,
5909,
1807,
43,
15,
184,
83,
31,
107,
30,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
So many criteria
===
I'm working on an internet website that provides some services to internet users. So we have a administration system, where my cooperators from the business team can get the information they want, e.g. how many new users registered in the last 3 days? or how many articles posted with the tag "joke" etc. Thus in the administration system, there are a few pages for searching some tables with conditions. These pages are quite alike:
----------------------------------------------------------------------------------
UserID:[--------------] Nick Keyword:[------------] Registered Time:[BEGIN]~[END] [Search]
----------------------------------------------------------------------------------
The searching results are listed here
----------------------------------------------------------------------------------
The class `User` has more properties than just UserID/Nick/RegisterTime (as well as the user table), but only the 3 properties are treated as conditions. So I have a `UserSearchCriteria` class like:
public class UserSearchCriteria
{
public long UserID { get; set; }
public string NickKeyword { get; set; }
public DateTime RegisteredTimeStart { get; set; }
public DateTime RegisteredTimeEnd { get; set; }
}
Then in the data access layer, the search method takes an argument with its type `UserSearchCriteria`, and build the corresponding `Expression<Func<User, bool>>` to query. While out of theDAL, other developers can only search the user table with the 3 conditions provided by the criteria, for example, they can't search those users whose `City` property is "New York"(this is usually because this property has no index in DB, searching with it is slow).
**Question 1:** This implementation of enclosing the search is correct or not? Any suggestions?
**Question 2:** Now I find more criteria classes in the project like `ArticleSearchCriteria`,`FavouriteSearchCriteria` and etc, and the criteria will become more and more in the future I think. They have almost the same working mechanism but I need to repeat the code. Is there a better solution?
**P.S.** If you need these info: jQuery + ASP.NET MVC 3 + MongoDB | 0 | [
2,
86,
151,
9157,
800,
3726,
3726,
31,
22,
79,
638,
27,
40,
2620,
2271,
30,
1927,
109,
687,
20,
2620,
3878,
9,
86,
95,
57,
21,
1603,
329,
15,
113,
51,
4486,
9922,
37,
14,
508,
173,
92,
164,
14,
676,
59,
259,
15,
13,
62,
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... |
System.Directoryservices.DirectorySearcher causing Arithmetic operation resulted in overflow errors
===
I'm getting the following intermittent errors related to querying AD using
DirecotrySearcher.FindOne() or FindAll().
System.OverflowException: Arithmetic operation resulted in an overflow.
at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.GetCurrentResult()
at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.get_Current()
at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.System.Collections.IEnumerator.get_Current()
This is happening in a web app and seems to happen after the app has been running for several hours.
This is a [documented issue][1] on microsoft connect but it looks like it has been marked as "not repoducible" and closed out.
The only fix that I found [here][2] is to recycle the app pool periodically which is a rather harsh workaround and not viable when your users are in the middle of working.
Has anyone experienced this and if so how was this resolved?
I have tried to use caching but this just delays the inevitable until you hit a certain threshold in terms of the number of AD calls since people have reported that each time the API call is made it [leaks memory][3]
Any help would be much appreciated.
http://forums.asp.net/t/1673012.aspx/1
http://connect.microsoft.com/VisualStudio/feedback/details/681135/system-directoryservices-arithmetic
[1]: http://connect.microsoft.com/VisualStudio/feedback/details/681135/system-directoryservices-arithmetic
[2]: http://forums.asp.net/t/1673012.aspx/1
[3]: http://stackoverflow.com/questions/1883165/strange-issue-with-system-directoryservices-accountmanagement-userprincipal-find | 0 | [
2,
329,
9,
10197,
93,
11449,
18,
9,
10197,
93,
25136,
106,
3242,
21211,
1453,
2923,
19,
20285,
11908,
800,
3726,
3726,
31,
22,
79,
1017,
14,
249,
19667,
11908,
1597,
20,
25597,
68,
21,
43,
568,
18473,
716,
5840,
25136,
106,
9,
198... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Return value from external action in Yii
===
How to pass a value from external action in Yii to it's parent controller?
for example:
External action looks like:
<?php
class uploadAction extends CAction
{
/**
* Runs the action.
* This method is invoked by the controller owning this action.
*/
public function run()
{
.....
$fileName=$result['filename'];//GETTING FILE NAME
$this->controller->image = $fileName; // this line does not work!!
}
}
when I try to get the value of images in the parent controller, nothing return!! Any help I will appreciate. | 0 | [
2,
788,
1923,
37,
4886,
1028,
19,
7679,
49,
800,
3726,
3726,
184,
20,
1477,
21,
1923,
37,
4886,
1028,
19,
7679,
49,
20,
32,
22,
18,
4766,
9919,
60,
26,
823,
45,
4886,
1028,
1879,
101,
45,
13,
1,
60,
26120,
718,
71,
8294,
8645,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
VB 2008 move a drawing
===
I'm beginning to learn about 2D graphics, and I have made a program in which a small space ship rotates, with some tutorials I found, then when i tried to move it I realized that .location does not work for bitmaps... Suggestions? I just want to move the image... | 0 | [
2,
13,
20468,
570,
780,
21,
3533,
800,
3726,
3726,
31,
22,
79,
997,
20,
2484,
88,
172,
43,
8351,
15,
17,
31,
57,
117,
21,
625,
19,
56,
21,
284,
726,
995,
21448,
18,
15,
29,
109,
29724,
18,
31,
216,
15,
94,
76,
31,
794,
20,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to create or replace a procedure in Oracle from JBDC?
===
how do I create or replace a procedure in JBDC?
I created the procedure in oracle, but i cannot replace the procedure from Java.
I have the following, but it does not work:
Statement stmt0 = conn.createStatement();
String query0 =
"CREATE OR REPLACE PROCEDURE my_proc " +
//blah blah blah
//blah blah blah
//blah blah blah
"END; " +
". " +
"run; ";
stmt0.execute(query0);
From online tutorials, I see that i'm supposed to use something like:
cstmt = conn.prepareCall (SQL);
But I haven't been able to make it work.
If you want to see more of my code, I will provide.
Thanks,
Chris | 0 | [
2,
184,
20,
1600,
54,
3934,
21,
7004,
19,
15759,
37,
487,
220,
7201,
60,
800,
3726,
3726,
184,
107,
31,
1600,
54,
3934,
21,
7004,
19,
487,
220,
7201,
60,
31,
679,
14,
7004,
19,
15759,
15,
47,
31,
1967,
3934,
14,
7004,
37,
8247... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 ASIHTTPRequest to stream MP3 file on IOS
===
I have an IOS application that streams MP3 files to client device. I'm using ASIHTTPRequest and for most of the files it works fine. However I noticed there are some files that the streamed data can not be used to produce playable ACAudioPlayer. On these files upon using play I get error code 1954115647. To add to the issue this happens 8 out of 10 times on the same file and not 10 out of 10! So either it works or it fails 80% of the time (well it's not 80 maybe it's 83.4334!)
I did some research and it seems every time it fails the very first number of bytes the didReceiveData method has received is an odd number, that's the only time the length of the data is an odd number. On files that I have no issue and it always works every single call to didReceiveData has an even number of bytes.
So I'm almost sure what the issue is, however I really don't know how to resolve it!
Is there anyway to set the number of data bytes required by ASIHTTPRequest to callback the delegate method to an odd number?!
Anyone out there seen this issue? Any idea?
Thanks for reading and hopefully your help :)
Amir | 0 | [
2,
568,
28,
49,
21127,
99,
10351,
20,
3766,
4628,
240,
3893,
27,
13,
7760,
800,
3726,
3726,
31,
57,
40,
13,
7760,
3010,
30,
9464,
4628,
240,
6488,
20,
6819,
3646,
9,
31,
22,
79,
568,
28,
49,
21127,
99,
10351,
17,
26,
127,
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... |
Matlab Maximum Function Count Exceeded
===
trying to use the following code to evaluate a triple integral which is a function of q,u. getting the error,
Warning: Maximum function count exceeded; singularity likely.
In quad at 107
In test1>Inner at 12
In test1>@(x)Inner(x) at 5
In quad at 76
In test1 at 5
Does anyone know what's wrong with this code?
function [r] = test1(q,u)
b = u;
r = zeros(1);
for i = 1 : length(q);
r(i) = quad(@(x)Inner(x),-2,q);
end;
function [w] = Inner(k)
w = zeros(1);
for i = 1 : length(k);
w(i) = quad(@(n)InnerIntegral(n).*unifpdf(k(i)-n,-1,1),0,k(i)-1,k(i)+1);
end;
function [y] = InnerIntegral(n)
y = zeros(1);
for i = 1 : length(n);
y(i) = quad(@(m)unifpdf(n(i)-m, -b, b).*unifpdf(m,-b,b), n(i)-b,n(i)+b);
end;
end
end
end
| 0 | [
2,
4277,
9086,
2979,
1990,
2468,
17365,
800,
3726,
3726,
749,
20,
275,
14,
249,
1797,
20,
13,
15599,
21,
4684,
9315,
56,
25,
21,
1990,
16,
2593,
15,
291,
9,
1017,
14,
7019,
15,
3590,
45,
2979,
1990,
2468,
17365,
73,
12217,
856,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Approve USB device after insertion
===
Is there any way to programatically approve a USB device after insertion, if it is of a certain type (say Removable Drive) allow its use, otherwise not? Also not to allow running of drivers, only allow usage of the device in an approved way?
I.E. We want to allow the insertion of USB drives, but not have to worry about virus's being installed. | 0 | [
2,
14741,
182,
220,
3646,
75,
24245,
800,
3726,
3726,
25,
80,
186,
161,
20,
625,
721,
8438,
14741,
21,
182,
220,
3646,
75,
24245,
15,
100,
32,
25,
16,
21,
1200,
1001,
13,
5,
6366,
302,
15146,
579,
1493,
6,
1655,
82,
275,
15,
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 you remove the default title and body fields in a CCK generated Drupal content-type?
===
When you create a new content type in Drupal using the Content Creation Kit, you automatically get Title and Body fields in the generated form. Is there a way to remove them? | 0 | [
2,
184,
107,
42,
4681,
14,
12838,
581,
17,
358,
2861,
19,
21,
272,
2601,
6756,
15708,
6720,
2331,
8,
4474,
60,
800,
3726,
3726,
76,
42,
1600,
21,
78,
2331,
1001,
19,
15708,
6720,
568,
14,
2331,
2502,
6346,
15,
42,
7499,
164,
581... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How do you connect to a MySQL database using Oracle SQL Developer?
===
I have Oracle SQL Developer already installed and am able to connect to and query Oracle databases.
Using Help -> Check for Updates I was able to install the Oracle MySQL Browser extension but there are no connection options for MySQL databases. | 0 | [
2,
184,
107,
42,
6379,
20,
21,
51,
18,
22402,
6018,
568,
15759,
4444,
255,
10058,
60,
800,
3726,
3726,
31,
57,
15759,
4444,
255,
10058,
614,
4066,
17,
589,
777,
20,
6379,
20,
17,
25597,
15759,
6018,
18,
9,
568,
448,
13,
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... |
How to retrieve a resource from within a tWebModule
===
I am trying to extract a gif image embedded as a resource within my ISAPI dll using WebBroker technology. The resource has been added to the DLL using the following RC code:
LOGO_GIF RCDATA logo.gif
Using resource explorer I verified it is in the DLL properly.
using the following code always throws an exception, "resource not found" (using Delphi 2009)
var
rc : tResourceStream;
begin
rc := tResourceStream.Create(hInstance,'LOGO_GIF','RCDATA');
end;
| 0 | [
2,
184,
20,
11917,
21,
6577,
37,
363,
21,
13,
38,
14113,
19673,
62,
800,
3726,
3726,
31,
589,
749,
20,
10962,
21,
489,
821,
1961,
12138,
28,
21,
6577,
363,
51,
25,
2552,
49,
13,
43,
211,
568,
10192,
661,
2429,
1099,
9,
14,
657... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 anything like RegexBuddy in the open source world?
===
I've used RegexBuddy several times and found it to be a really useful tool. Is there anything like it in the open source world, preferably something that is platform agnostic? (the fact that regexbuddy is windows only is a real downer)
The only thing I've been able to find is [Kodos][1], which I've also used quite a lot, but it doesn't quite have the features of regexbuddy.
[1]: http://kodos.sourceforge.net/about.html | 0 | [
2,
25,
80,
602,
101,
7953,
1706,
220,
28085,
19,
14,
368,
1267,
126,
60,
800,
3726,
3726,
31,
22,
195,
147,
7953,
1706,
220,
28085,
238,
436,
17,
216,
32,
20,
44,
21,
510,
4811,
5607,
9,
25,
80,
602,
101,
32,
19,
14,
368,
12... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I display the list of all the system objects (semaphores, queues...) in VxWorks?
===
I would like to know what semaphores, messageQueues, etc... are active in my vxWorks 6.x system. I have access to this information via the debugger, but I would like access to it from the shell.
Is there a way? | 0 | [
2,
92,
31,
3042,
14,
968,
16,
65,
14,
329,
3916,
13,
5,
18,
5996,
11093,
160,
15,
22521,
18,
9,
9,
9,
6,
19,
566,
396,
7684,
60,
800,
3726,
3726,
31,
83,
101,
20,
143,
98,
13,
18,
5996,
11093,
160,
15,
2802,
2005,
4185,
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... |
Can I see the currently checked out revision number in Tortoise SVN ?
===
I'd like to know what the currently checked out revision number is for a file or directory. Is there a way to do this in TortoiseSVN on Windows ? | 0 | [
2,
92,
31,
196,
14,
871,
6505,
70,
11323,
234,
19,
25691,
13,
18,
16578,
13,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
143,
98,
14,
871,
6505,
70,
11323,
234,
25,
26,
21,
3893,
54,
16755,
9,
25,
80,
21,
161,
20,
107,
48,
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,
0,
0,
0,
0,
0,
0,
0,
0... |
Unix Proc Directory
===
I am trying to find the virtual file that contains the current users id. I was told that I could find it in the proc directory, but not quite sure which file. | 0 | [
2,
22540,
13,
15617,
16755,
800,
3726,
3726,
31,
589,
749,
20,
477,
14,
6599,
3893,
30,
1588,
14,
866,
3878,
4924,
9,
31,
23,
470,
30,
31,
110,
477,
32,
19,
14,
13,
15617,
16755,
15,
47,
52,
1450,
562,
56,
3893,
9,
3,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Help on Porting a SIP library to PSP
===
I'm currently trying to port a SIP stack library (pjSIP) to the PSP Console (using the PSPSDK toolchain), but I'm having too much trouble with the makefiles (making the proper changes and solving linking issues).
Does anyone know a good text, book or something to get some insight on porting libraries?
The only documentation this project offers on porting seems too dedicated to major OS's. | 0 | [
2,
448,
27,
1295,
68,
21,
8616,
1248,
20,
351,
3401,
800,
3726,
3726,
31,
22,
79,
871,
749,
20,
1295,
21,
8616,
7566,
1248,
13,
5,
21670,
18,
4307,
6,
20,
14,
351,
3401,
8650,
13,
5,
12655,
14,
8613,
1919,
43,
197,
5607,
17317... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Nightly importable or attachable copies of production database
===
We would like to be able to nightly make a copy/backup/snapshot of a production database so that we can import it in the dev environment.
We don't want to log ship to the dev environment because it needs to be something we can reset whenever we like to the last taken copy of the production database.
We need to be able to clear certain logging and/or otherwise useless or heavy tables that would just bloat the copy.
We prefer the attach/detach method as opposed to something like sql server publishing wizard because of how much faster an attach is than an import.
What's the best way to do this? | 0 | [
2,
343,
102,
9010,
579,
54,
19514,
579,
3298,
16,
637,
6018,
800,
3726,
3726,
95,
83,
101,
20,
44,
777,
20,
343,
102,
233,
21,
4344,
118,
1958,
576,
118,
18,
325,
306,
7868,
16,
21,
637,
6018,
86,
30,
95,
92,
9010,
32,
19,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to stop the visual studio debugger starting my process in a job object?
===
When I start my process from VS, it is always created inside a job object. I would like to know how to turn this behaviour off. Any ideas? | 0 | [
2,
184,
20,
747,
14,
3458,
1120,
121,
2345,
11356,
1422,
51,
953,
19,
21,
1205,
3095,
60,
800,
3726,
3726,
76,
31,
799,
51,
953,
37,
4611,
15,
32,
25,
550,
679,
572,
21,
1205,
3095,
9,
31,
83,
101,
20,
143,
184,
20,
805,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Is the YUI Loader Utility reliable?
===
I've been using the YUI Components and want to begin using the Loader Utility to specify my dependencies on my page. Is the YUI Loader Utility a reliable way to load Javascript dependencies in web pages? | 0 | [
2,
25,
14,
2600,
49,
6305,
106,
10082,
11398,
60,
800,
3726,
3726,
31,
22,
195,
74,
568,
14,
2600,
49,
5090,
17,
259,
20,
2348,
568,
14,
6305,
106,
10082,
20,
19077,
51,
29411,
27,
51,
2478,
9,
25,
14,
2600,
49,
6305,
106,
100... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How do you find the difference between 2 strings in PHP?
===
I have 2 strings that I'd like to compare, and return the positions of the different characters in the second string. For instance, if I have
1. "The brown fox jumps over the lazy dog" and
2. "The quick brown fox jumped over the lazy dog",
I want it to highlight "quick" and "ed". What's the best way to go about this in PHP? | 0 | [
2,
184,
107,
42,
477,
14,
2841,
128,
172,
7887,
19,
13,
26120,
60,
800,
3726,
3726,
31,
57,
172,
7887,
30,
31,
22,
43,
101,
20,
11590,
15,
17,
788,
14,
3062,
16,
14,
421,
1766,
19,
14,
153,
3724,
9,
26,
4851,
15,
100,
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... |
How to reference a custom field in SQL
===
I am using mssql and am having trouble using a subquery. The real query is quite complicated, but it has the same structure as this:
select
customerName,
customerId,
(
select count(*)
from Purchases
where Purchases.customerId=customerData.customerId
) as numberTransactions
from customerData
And what I want to do is order the table by the number of transactions, but when I use
order by numberTransactions
It tells me there is no such field. Is it possible to do this? Should I be using some sort of special keyword, such as `this`, or `self`? | 0 | [
2,
184,
20,
2801,
21,
5816,
575,
19,
4444,
255,
800,
3726,
3726,
31,
589,
568,
4235,
18,
22402,
17,
589,
452,
2572,
568,
21,
972,
8190,
93,
9,
14,
683,
25597,
25,
1450,
8343,
15,
47,
32,
63,
14,
205,
1411,
28,
48,
45,
5407,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are the best Java examples sites?
===
What are the best java example sites? By which I mean places that you go when you have a specific question, and you want a little java code snippet to solve it. | 4 | [
2,
98,
50,
14,
246,
8247,
3770,
3259,
60,
800,
3726,
3726,
98,
50,
14,
246,
8247,
823,
3259,
60,
34,
56,
31,
884,
1489,
30,
42,
162,
76,
42,
57,
21,
1903,
1301,
15,
17,
42,
259,
21,
265,
8247,
1797,
13,
29061,
20,
8402,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How can I specify the maximum amount of heap an RTP can use in VxWorks?
===
We are creating a Real-Time Process in VxWorks 6.x, and we would like to limit the amount of memory which can be allocated to the heap. How do we do this? | 0 | [
2,
184,
92,
31,
19077,
14,
2979,
2006,
16,
15414,
40,
761,
13726,
92,
275,
19,
566,
396,
7684,
60,
800,
3726,
3726,
95,
50,
2936,
21,
683,
8,
891,
953,
19,
566,
396,
7684,
400,
9,
396,
15,
17,
95,
83,
101,
20,
4496,
14,
2006... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Font for Webforms
===
Can anyone suggest the best fonts for the web application. Iam using gridviews and details view for most of my forms. Also can suggest the perfect color for the gridviews and webforms.
I an very bad in colors. | 4 | [
2,
246,
9978,
26,
2741,
4190,
18,
800,
3726,
3726,
92,
1276,
5601,
14,
246,
9978,
18,
26,
14,
2741,
3010,
9,
31,
765,
568,
7354,
4725,
18,
17,
3289,
1418,
26,
127,
16,
51,
1997,
9,
67,
92,
5601,
14,
2107,
1665,
26,
14,
7354,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Date manipulation in VBA
===
Is it possible to manipulate the components (year, month, day) of a date in VBA? I'd like a function that, given a day, a month, and a year, returns the corresponding date. | 0 | [
2,
1231,
17561,
19,
566,
969,
800,
3726,
3726,
25,
32,
938,
20,
18468,
14,
5090,
13,
5,
731,
15,
1617,
15,
208,
6,
16,
21,
1231,
19,
566,
969,
60,
31,
22,
43,
101,
21,
1990,
30,
15,
504,
21,
208,
15,
21,
1617,
15,
17,
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,
0,
0,
0,
0,
0,
0,
0,
0... |
How do you get a list of all the installed fonts?
===
Specifically in .NET, but I'm leaving it open. | 0 | [
2,
184,
107,
42,
164,
21,
968,
16,
65,
14,
4066,
9978,
18,
60,
800,
3726,
3726,
3524,
19,
13,
9,
2328,
15,
47,
31,
22,
79,
1107,
32,
368,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
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... |
What are the benefits of the Iterator interface in Java?
===
I just learned about how the Java Collections Framework implements data structures in linked lists. From what I understand, Iterators are a way of traversing through the items in a data structure such as a list. Why is this interface used? Why are the methods hasNext(), next() and remove() not directly coded to the data structure implementation itself?
From the Java website: [link text][1]
> public interface Iterator<E><p> An
> iterator over a collection. Iterator
> takes the place of Enumeration in the
> Java collections framework. Iterators
> differ from enumerations in two ways:
>
> <ul><li>Iterators allow the caller to remove
> elements from the underlying
> collection during the iteration with
> well-defined semantics. <li>Method names
> have been improved.</ul> This interface is
> a member of the Java Collections
> Framework.
I tried googling around and can't seem to find a definite answer. Can someone shed some light on why Sun chose to use them? Is it because of better design? Increased security? Good OO practice?
Any help will be greatly appreciated. Thanks.
[1]: http://java.sun.com/javase/6/docs/api/ | 0 | [
2,
98,
50,
14,
5800,
16,
14,
32,
106,
3457,
6573,
19,
8247,
60,
800,
3726,
3726,
31,
114,
2691,
88,
184,
14,
8247,
5721,
6596,
8713,
18,
1054,
3815,
19,
4727,
7227,
9,
37,
98,
31,
1369,
15,
32,
106,
9922,
50,
21,
161,
16,
19... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Best way to find out if an (upcast) instance doesn't implement a particular interface
===
Maybe the need to do this is a 'design smell' but thinking about another question, I was wondering what the cleanest way to implement the **inverse** of this:
foreach(ISomethingable somethingableClass in collectionOfRelatedObjects)
{
somethingableClass.DoSomething();
}
i.e. How to get/iterate through all the objects that _don't_ implement a particular interface?
Presumably you'd need to start by upcasting to the highest level:
foreach(ParentType parentType in collectionOfRelatedObjects)
{
// TODO: iterate through everything which *doesn't* implement ISomethingable
}
Answer by solving the TODO: in the cleanest/simplest and/or most efficient way | 0 | [
2,
246,
161,
20,
477,
70,
100,
40,
13,
5,
576,
6146,
6,
4851,
1437,
22,
38,
8713,
21,
1498,
6573,
800,
3726,
3726,
913,
14,
376,
20,
107,
48,
25,
21,
13,
22,
19862,
3408,
22,
47,
1440,
88,
226,
1301,
15,
31,
23,
5712,
98,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 has_one :through work?
===
I have three models:
class ReleaseItem < ActiveRecord::Base
has_many :pack_release_items
has_one :pack, :through => :pack_release_items
end
class Pack < ActiveRecord::Base
has_many :pack_release_items
has_many :release_items, :through=>:pack_release_items
end
class PackReleaseItem < ActiveRecord::Base
belongs_to :pack
belongs_to :release_item
end
The problem is that, during execution, if I add a pack to a release_item it is not aware that the pack is a pack. For instance:
Loading development environment (Rails 2.1.0)
>> item = ReleaseItem.new(:filename=>'MAESTRO.TXT')
=> #<ReleaseItem id: nil, filename: "MAESTRO.TXT", created_by: nil, title: nil, sauce_author: nil, sauce_group: nil, sauce_comment: nil, filedate: nil, filesize: nil, created_at: nil, updated_at: nil, content: nil>
>> pack = Pack.new(:filename=>'legion01.zip', :year=>1998)
=> #<Pack id: nil, filename: "legion01.zip", created_by: nil, filesize: nil, items: nil, year: 1998, month: nil, filedate: nil, created_at: nil, updated_at: nil>
>> item.pack = pack
=> #<Pack id: nil, filename: "legion01.zip", created_by: nil, filesize: nil, items: nil, year: 1998, month: nil, filedate: nil, created_at: nil, updated_at: nil>
>> item.pack.filename
NoMethodError: undefined method `filename' for #<Class:0x2196318>
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1667:in `method_missing_without_paginate'
from /usr/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.3/lib/will_paginate/finder.rb:164:in `method_missing'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_collection.rb:285:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_collection.rb:285:in `method_missing_without_paginate'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1852:in `with_scope'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_proxy.rb:168:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_proxy.rb:168:in `with_scope'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_collection.rb:281:in `method_missing_without_paginate'
from /usr/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.3/lib/will_paginate/finder.rb:164:in `method_missing'
from (irb):5
>>
It seems that I should have access to item.pack, but it is unaware that the pack is a Pack item. | 0 | [
2,
184,
630,
63,
1,
849,
13,
45,
11639,
170,
60,
800,
3726,
3726,
31,
57,
132,
2761,
45,
718,
830,
2119,
79,
13,
1,
1348,
14953,
45,
45,
8436,
63,
1,
14842,
13,
45,
8573,
1,
15202,
1,
2119,
79,
18,
63,
1,
849,
13,
45,
8573... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
In python how to I verify that a string only contains letters, numbers, underscores and dashes?
===
I know how to do this if I iterate through all of the characters in the string but I am looking for a more elegant method.
Thanks | 0 | [
2,
19,
20059,
184,
20,
31,
21012,
30,
21,
3724,
104,
1588,
2516,
15,
2116,
15,
131,
15077,
18,
17,
8405,
160,
60,
800,
3726,
3726,
31,
143,
184,
20,
107,
48,
100,
31,
32,
106,
1373,
120,
65,
16,
14,
1766,
19,
14,
3724,
47,
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,
0,
0,
0,
0,
0,
0,
0... |
What time should I build to production?
===
My users use the site pretty equally 24/7. Is there a meme for build timing? | 0 | [
2,
98,
85,
378,
31,
1895,
20,
637,
60,
800,
3726,
3726,
51,
3878,
275,
14,
689,
1772,
7634,
937,
118,
465,
9,
25,
80,
21,
55,
790,
26,
1895,
11812,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
C++ Editor, Compiler, Debugger on Windows ( Lighter than Visual Studio)
===
What would be a good alternative to Visual Studio ?
Free or non-free, but a free program definitely makes a better choice.
So what do you guys use ? If anything like that exist... | 0 | [
2,
272,
20512,
1835,
15,
21486,
15,
121,
2345,
11356,
27,
1936,
13,
5,
9359,
119,
3458,
1120,
6,
800,
3726,
3726,
98,
83,
44,
21,
254,
2676,
20,
3458,
1120,
13,
60,
551,
54,
538,
8,
4639,
15,
47,
21,
551,
625,
4939,
1364,
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... |
Entity Framework - Can you map the result type of an imported stored procedure to a custom entity type?
===
I already have an entity model in a separate dll that contains various objects that I need to use. I don't really want to create or duplicate entities using the EF designer. Instead I would like to configure it so that when I call a stored procedure it will map certain columns to specific properties.
I know you can do something VERY close to this using a custom DataContext in LinqToSql. The problem is you can't assign columns to complex property types. For example: I might have a columns returned that contain the address for a user. I would like to store the address details for the user in an Address object that is a property of a User object. So, Column STREET should map to User.Address.Street.
Any ideas? | 0 | [
2,
9252,
6596,
13,
8,
92,
42,
2942,
14,
829,
1001,
16,
40,
11808,
8214,
7004,
20,
21,
5816,
9252,
1001,
60,
800,
3726,
3726,
31,
614,
57,
40,
9252,
1061,
19,
21,
1725,
13,
43,
211,
30,
1588,
617,
3916,
30,
31,
376,
20,
275,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Dependency Injection and Circular reference
===
I am just starting out with DI & unit testing and have hit a snag which I am sure is a no brainer for those more experienced devs :
I have a class called MessageManager which receives data and saves it to a db. Within the same assembly (project in Visual Studio) I have created a repository interface with all the methods needed to access the db.
The concrete implementation of this interface is in a separate assembly called DataAccess.
So DataAccess needs a project reference to MessageManager to know about the repository interface.
And MessageManager needs a project reference to DataAccess so that the client of MessageManager can inject a concrete implementation of the repository interface.
This is of courser not allowed
I could move the interface into the data access assembly but I believe the repository interface is meant to reside in the same assembly as the client that uses it
So what have I done wrong?
| 0 | [
2,
26835,
13646,
17,
8155,
2801,
800,
3726,
3726,
31,
589,
114,
1422,
70,
29,
926,
279,
1237,
4431,
17,
57,
770,
21,
28755,
56,
31,
589,
562,
25,
21,
90,
1964,
106,
26,
273,
91,
3882,
9664,
18,
13,
45,
31,
57,
21,
718,
227,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Sort a DataView with ICompare
===
My DataView is acting funny and it is sorting things alphabetically and I need it to sort things numerically. I have looked all across the web for this one and found many ideas on how to sort it with ICompare, but nothing really solid.
So my questions are
1. How do I implement ICompare on a DataView (Looking for code here).
2. How to correctly decipher from a column full of strings that are actual strings and a column full of numbers(with commas).
I need code to help me out with this one guys. I am more or less lost on the idea of ICompare and how to implement in different scenarios so an over all good explanation would be great.
Also, Please don't hand me links. I am looking for solid answers on this one. | 0 | [
2,
184,
20,
2058,
21,
1054,
4725,
29,
31,
18415,
99,
800,
3726,
3726,
51,
1054,
4725,
25,
2180,
5066,
17,
32,
25,
2058,
68,
564,
27169,
102,
17,
31,
376,
32,
20,
2058,
564,
16010,
102,
9,
31,
57,
292,
65,
464,
14,
2741,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
is there a curl/wget option that says not to save files upon http errors?
===
I want to download a lot of urls in a script but I do not want to save the ones that lead to HTTP errors.
as far as I read in the man they both don't provide such functionality.
does anyone know about another downloader who does? | 0 | [
2,
25,
80,
21,
14320,
118,
499,
3060,
4255,
30,
898,
52,
20,
2079,
6488,
685,
7775,
11908,
60,
800,
3726,
3726,
31,
259,
20,
7121,
21,
865,
16,
13,
911,
7532,
19,
21,
3884,
47,
31,
107,
52,
259,
20,
2079,
14,
53,
18,
30,
672... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to use private assemblies without a manifest file?
===
I would like to compile a DLL under Visual Studio 2008 that depends on msvcr90.dll without needing an external manifest file.
I followed the steps outlined in <http://msdn.microsoft.com/en-us/library/ms235291.aspx>
section **"Deploying Visual C++ library DLLs as private assemblies"** but
instead of using an external manifest file (i.e.
Microsoft.VC90.CRT.manifest) I'd like to embed it in the DLLs somehow.
If I embed Microsoft.VC90.CRT.manifest into msvcr90.dll or the DLL loading it, and remove the external manifest file, LoadLibrary() fails.
The problem is when you embed the manifest into a DLL it actually embeds the following:
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></
requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly></code></pre>
I think the <dependentAssembly> line is what's causing it to die if
the manifest file is missing. Any ideas? | 0 | [
2,
184,
20,
275,
932,
21066,
366,
21,
13160,
3893,
60,
800,
3726,
3726,
31,
83,
101,
20,
26561,
21,
13,
43,
211,
131,
3458,
1120,
570,
30,
9597,
27,
4235,
8990,
139,
3165,
9,
43,
211,
366,
12210,
40,
4886,
13160,
3893,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is a reasonable code coverage % for unit tests?
===
If you were to mandate a minimum percentage code-coverage for unit tests, perhaps even as a requirement for committing to a repository, what would it be? | 0 | [
2,
98,
25,
21,
9954,
1797,
5245,
13,
11881,
26,
1237,
4894,
60,
800,
3726,
3726,
100,
42,
46,
20,
9915,
21,
5187,
5780,
1797,
8,
14069,
1303,
26,
1237,
4894,
15,
1774,
166,
28,
21,
8981,
26,
19524,
20,
21,
24869,
15,
98,
83,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Using SQL Server 2005's XQuery select all nodes with a specific attribute value, or with that attribute missing.
===
Using SQL Server 2005's XQuery implementation I need to select all nodes in an XML document, just once each and keeping their original structure, but only if they are missing a particular attribute, or that attribute has a specific value (passed in by parameter). The query also has to work on the whole XML document (descendant-or-self axis) rather than selecting at a predefined depth.
For example, if this were the XML:
DECLARE @Xml XML
SET @Xml =
N'
<Books>
<Book ID="1">Book1</Book>
<Book ID="2">Book2</Book>
<Book ID="3">Book3</Book>
<Book>Book4</Book>
<Book ID="5">Book5</Book>
<Book ID="6">Book6</Book>
<Book>Book7</Book>
<Book ID="8">Book8</Book>
</Books>
'
A parameter of 5 would result in this:
<Books>
<Book>Book4</Book>
<Book ID="5">Book5</Book>
<Book>Book7</Book>
</Books>
Here's a query (with the parameter hard coded) that gets the desired result with a hard coded path.
SELECT x.query('.') FROM @xml.nodes('/Books/*[not(@ID) or @ID = 5]') x1(x)
The example doesn't do a good job of showing why this doesn't work, but making it do so would unnecessarily complicate the example. If requested, I can provide such an example though. | 0 | [
2,
568,
4444,
255,
8128,
812,
22,
18,
993,
8190,
93,
5407,
65,
16272,
29,
21,
1903,
35,
14755,
1923,
15,
54,
29,
30,
35,
14755,
2863,
9,
800,
3726,
3726,
568,
4444,
255,
8128,
812,
22,
18,
993,
8190,
93,
6123,
31,
376,
20,
540... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Reasons not to use django
===
Have you considered using Django and found good reasons not to do so? | 0 | [
2,
2932,
52,
20,
275,
3857,
14541,
800,
3726,
3726,
57,
42,
724,
568,
3857,
14541,
17,
216,
254,
2932,
52,
20,
107,
86,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Need Lightweight .NET SMTP implementation (assembly or source)
===
I am writing a small application that will receive messages to process over smtp port 25.
I am looking for an .NET assembly that I can incorporate that will listen to port 25 and talk SMTP. I invision that when a message arrives some event is triggered where I can read the message and process it.
Esstentilly I need to "Act" like a SMTP server but apart from receiving the message I don't need any more functionaly that you would find in a full blown SMTP server.
Let me know if you need more clarification. | 0 | [
2,
376,
13613,
13,
9,
2328,
7613,
13726,
6123,
13,
5,
29432,
54,
1267,
6,
800,
3726,
3726,
31,
589,
1174,
21,
284,
3010,
30,
129,
2588,
7561,
20,
953,
84,
7613,
13726,
1295,
771,
9,
31,
589,
699,
26,
40,
13,
9,
2328,
1475,
30,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to stretch an HTML table to 100% of the browser window height?
===
I'm using a table to design the layout of my web page. I want the table to fill the page even if it doesn't contain much content. Here's the CSS I'm using:
html, body {
height: 100%;
margin: 0;
padding: 0; }
#container {
min-height: 100%;
width: 100%; }
And I place something like this in the page code:
<table id="container">
<tr>
<td>
...
This works for Opera 9, but not for Firefox 2 or Internet Explorer 7. Is there a simple way to make this solution work for all popular browsers? | 0 | [
2,
184,
20,
6363,
40,
13,
15895,
859,
20,
12849,
16,
14,
16495,
1463,
2947,
60,
800,
3726,
3726,
31,
22,
79,
568,
21,
859,
20,
704,
14,
9106,
16,
51,
2741,
2478,
9,
31,
259,
14,
859,
20,
3509,
14,
2478,
166,
100,
32,
1437,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to make my .NET app support different languages
===
The application I'm writing is almost complete and I'd like people who speak different languages to use it.
I'm not sure where to start, what's the difference between globalisation and culture in regards to programming?
How does one take uncommon phrases such as "this application was built to do this and that" instead of File, Open, Save etc...and turn them into say, Spanish?
Many thanks :-)
| 0 | [
2,
184,
20,
233,
51,
13,
9,
2328,
4865,
555,
421,
2556,
800,
3726,
3726,
14,
3010,
31,
22,
79,
1174,
25,
557,
1279,
17,
31,
22,
43,
101,
148,
72,
1960,
421,
2556,
20,
275,
32,
9,
31,
22,
79,
52,
562,
113,
20,
799,
15,
98,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Google's hosted dojox.gfx
===
I'm using the following html to load dojo from Google's hosting.
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("dojo", "1.1.1");</script>
<script type="text/javascript">
dojo.require("dojox.gfx");
...
This errors out on the requre line with an error like dojox.gfx is undefined. Is there a way to make this work, or does Google not support the dojox extensions?
Alternatively, is there another common host I can use for standard dojo releases?
| 0 | [
2,
8144,
22,
18,
2812,
107,
1636,
396,
9,
263,
16488,
800,
3726,
3726,
31,
22,
79,
568,
14,
249,
13,
15895,
20,
6305,
107,
1636,
37,
8144,
22,
18,
10637,
9,
13,
1,
8741,
13,
18,
5453,
3726,
7,
21127,
6903,
6483,
9,
16111,
4875... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 comapre two word documents?
===
Businesses Analyst from my team keeps sending us the updated Requirements documents often and I end up hunting the recent changes by comparing the old version. Is their a good way of comparing the Word documents?
Note: We have the track changes option ON, but now the documents looks like a blood bath, complicating it much more :(
| 0 | [
2,
184,
20,
13987,
3515,
81,
833,
4374,
60,
800,
3726,
3726,
4426,
13943,
37,
51,
173,
8968,
4907,
182,
14,
6372,
4786,
4374,
478,
17,
31,
241,
71,
5038,
14,
1764,
1693,
34,
15047,
14,
315,
615,
9,
25,
66,
21,
254,
161,
16,
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... |
Has anyone migrated from Struts 1 to another web framework?
===
On my current project, we've been using Struts 1 for the last few years, and ... ahem ... Struts is showing its age. We're slowly migrating our front-end code to an Ajax client that consumes XML from the servers. I'm wondering if any of you have migrated a legacy Struts application to a different framework, and what challenges you faced in doing so. | 0 | [
2,
63,
1276,
14204,
37,
18316,
18,
137,
20,
226,
2741,
6596,
60,
800,
3726,
3726,
27,
51,
866,
669,
15,
95,
22,
195,
74,
568,
18316,
18,
137,
26,
14,
236,
310,
122,
15,
17,
13,
9,
9,
9,
21,
9763,
13,
9,
9,
9,
18316,
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... |
Enforce unique rows in MySQL
===
I have a table in MySQL that has 3 fields and I want to enforce uniqueness among two of the fields. Here is the table DDL:
CREATE TABLE `CLIENT_NAMES` (
`ID` int(11) NOT NULL auto_increment,
`CLIENT_NAME` varchar(500) NOT NULL,
`OWNER_ID` int(11) NOT NULL,
PRIMARY KEY (`ID`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
The ID field is a surrogate key (this table is being loaded with ETL).
The CLIENT_NAME is a field that contains names of clients
The OWNER_ID is an id indicates a clients owner.
I thought I could enforce this with a unique index on CLIENT_NAME and OWNER_ID,
ALTER TABLE `DW`.`CLIENT_NAMES`
ADD UNIQUE INDEX enforce_unique_idx(`CLIENT_NAME`, `OWNER_ID`);
but MySQL gives me an error: Error executing SQL commands to update table.
Specified key was too long; max key length is 765 bytes (error 1071)
Anyone else have any ideas? | 0 | [
2,
16525,
2619,
11295,
19,
51,
18,
22402,
800,
3726,
3726,
31,
57,
21,
859,
19,
51,
18,
22402,
30,
63,
203,
2861,
17,
31,
259,
20,
16525,
2619,
720,
497,
81,
16,
14,
2861,
9,
235,
25,
14,
859,
13,
43,
8643,
45,
1600,
859,
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... |
In Classic asp, can I store a database connection in the Session object?
===
Can I store a database connection in the Session object? | 0 | [
2,
19,
2732,
28,
306,
15,
92,
31,
1718,
21,
6018,
2760,
19,
14,
3723,
3095,
60,
800,
3726,
3726,
92,
31,
1718,
21,
6018,
2760,
19,
14,
3723,
3095,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.