unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
How to enable STRICT_ALL_TABLES' for single MySQL database?
===
Is there a way to enable STRICT_ALL_TABLES for a single MySQL database? | 0 | [
2,
184,
20,
9240,
8170,
1,
1233,
1,
5924,
18,
22,
26,
345,
51,
18,
22402,
6018,
60,
800,
3726,
3726,
25,
80,
21,
161,
20,
9240,
8170,
1,
1233,
1,
5924,
18,
26,
21,
345,
51,
18,
22402,
6018,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Code for extending the NETCF MainMenu to support background color property
===
I've searched for the solution to change the background color on the Compact Framework's MainMenu control, and the only answer I've found is that you need to create a custom control. Does anyone have example code for this? | 0 | [
2,
1797,
26,
8176,
14,
4275,
8940,
407,
755,
291,
20,
555,
2395,
1665,
1354,
800,
3726,
3726,
31,
22,
195,
9036,
26,
14,
4295,
20,
753,
14,
2395,
1665,
27,
14,
8285,
6596,
22,
18,
407,
755,
291,
569,
15,
17,
14,
104,
1623,
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... |
c# - How do I round a decimal value to 2 decimal places (for output on a page)
===
Newbie programmer question - When displaying the value of a decimal currently (with .ToString()..), it's accurate to like 15 decimal places, and since I'm using it to represent dollars and cents, I only want the output to be 2 decimal places. Do I use a variation of .ToString() for this?
Thanks. | 0 | [
2,
272,
5910,
13,
8,
184,
107,
31,
560,
21,
26380,
1923,
20,
172,
26380,
1489,
13,
5,
1106,
5196,
27,
21,
2478,
6,
800,
3726,
3726,
78,
5893,
17968,
1301,
13,
8,
76,
17418,
14,
1923,
16,
21,
26380,
871,
13,
5,
1410,
13,
9,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to find out if a certain value exists as a primary key in mySql?
===
What is the best way to find out if a primary key with a certain value already exists in a table?
I can think of:
SELECT key FROM table WHERE key = 'value';
and count the results, or:
SELECT SQL_CALC_FOUND_ROWS key FROM table WHERE key = 'value' LIMIT 1;
SELECT FOUND_ROWS();
| 0 | [
2,
184,
20,
477,
70,
100,
21,
1200,
1923,
5636,
28,
21,
1256,
1246,
19,
51,
18,
22402,
60,
800,
3726,
3726,
98,
25,
14,
246,
161,
20,
477,
70,
100,
21,
1256,
1246,
29,
21,
1200,
1923,
614,
5636,
19,
21,
859,
60,
31,
92,
277,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
multi language support in Perl
===
I'm looking at introducing multi-lingual support to a mature CGI application written in Perl. I had originally considered rolling my own solution using a Perl hash (stored on disk) for translation files but then I came across a CPAN module which appears to do just what I want ([i18n][1]).
Does anyone have any experience with internationalization (specifically the i18n CPAN module) in Perl? Is the i18n module the preferred method for multi-lingual support or should I reconsider a custom solution?
Thanks
[1]: http://search.cpan.org/~audreyt/i18n-0.10/lib/i18n.pm "i18n" | 0 | [
2,
1889,
816,
555,
19,
416,
255,
800,
3726,
3726,
31,
22,
79,
699,
35,
11442,
1889,
8,
23427,
555,
20,
21,
8615,
272,
2234,
3010,
642,
19,
416,
255,
9,
31,
41,
912,
724,
3929,
51,
258,
4295,
568,
21,
416,
255,
19170,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are some free and/or open source Requirements Management tools?
===
I am looking for free and/or open source requirements management tools. Does anyone have any experience with these tools and can recommend one or two? Thanks. | 0 | [
2,
98,
50,
109,
551,
17,
118,
248,
368,
1267,
4786,
1097,
4672,
60,
800,
3726,
3726,
31,
589,
699,
26,
551,
17,
118,
248,
368,
1267,
4786,
1097,
4672,
9,
630,
1276,
57,
186,
1496,
29,
158,
4672,
17,
92,
12360,
53,
54,
81,
60,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How are exponents calculated?
===
I'm trying to determine the asymptotic run-time of an algorithm that uses exponents, but I'm not sure of how they are calculated programmatically. | 0 | [
2,
184,
50,
25220,
18,
10785,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
3746,
14,
21,
7261,
17236,
1786,
485,
8,
891,
16,
40,
9083,
30,
2027,
25220,
18,
15,
47,
31,
22,
79,
52,
562,
16,
184,
59,
50,
10785,
625,
6732,
1326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Is Delphi Exit statement dangerous?
===
Reading about Delphi's `Exit` statement (see [here][1] for instance), I cannot ignore that writing about it every author feels the duty to give a piece of advice, for example:
> Warning : use with caution - jumping is a concept at odds with structured coding - it makes code maintenance difficult.
Now, I'm coming from C and C++ in Unix and I'm familiar with re-entrancy issues, but honestly I cannot figure out why in Delphi returning from a function before it reaches its natural end should be evil.
Unless every function and procedure in Delphi is considered as re-entrant.
What am I missing?
[1]: http://www.delphibasics.co.uk/RTL.asp?Name=Exit | 4 | [
2,
25,
23030,
4350,
3331,
3342,
60,
800,
3726,
3726,
1876,
88,
23030,
22,
18,
13,
1,
1706,
242,
1,
3331,
13,
5,
1798,
636,
6836,
500,
2558,
165,
500,
26,
4851,
6,
15,
31,
1967,
7174,
30,
1174,
88,
32,
352,
1314,
5121,
14,
3174... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
(HTML) PNG on top of another PNG - possible to eliminate full transparency?
===
I'd like to put a logo png onto of another coloured png. They both have transparent backgrounds. When I try this the images blend together. Curiously, in Photoshop the logo retains its opaque-ness - I put colours on the layers underneath it, another image, etc etc, the logo is still opaque.
I'd like to do it this way so I can rotate the background images.
How do I fix this? | 0 | [
2,
13,
5,
15895,
6,
351,
2723,
27,
371,
16,
226,
351,
2723,
13,
8,
938,
20,
10628,
503,
19668,
60,
800,
3726,
3726,
31,
22,
43,
101,
20,
442,
21,
6449,
351,
2723,
1204,
16,
226,
16246,
351,
2723,
9,
59,
156,
57,
14862,
2395,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Why is this simple Solr highlighting attempt failing?
===
I've read the Solr highlighting wiki document several times, searched everywhere, but cannot get even basic highlighting to work with my Solr installation. I am running Solr 3.5 on the demo Jetty 6.1 server.
I have indexed 250K documents, and am able to search them just fine. Other than configuring my document field definitions, most of the Solr configuration is "stock," although I have temporarily commented out the solrconfig.xml's "Highlighting defaults" to make sure they aren't causing this problem:
<!-- Highlighting defaults
<str name="hl">on</str>
<str name="hl.fl">title snippet</str>
<str name="f.name.hl.fragsize">0</str>
<str name="f.name.hl.alternateField">name</str> -->
My URL querystring is very simple. I've tried many variations, but here is my latest with it returning the most basic query:
hl=on&hl.fl=title&indent=on&version=2.2&q=toyota&fq=&start=0&rows=1&fl=*%2Cscore
Here is the resulting XML:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">32</int>
<lst name="params">
<str name="explainOther"/>
<str name="indent">on</str>
<str name="hl.fl">title</str>
<str name="wt"/>
<str name="hl">true</str>
<str name="version">2.2</str>
<str name="rows">1</str>
<str name="fl">*,score</str>
<str name="start">0</str>
<str name="q">toyota</str>
<str name="qt"/>
<str name="fq"/>
</lst>
</lst>
<result name="response" numFound="9549" start="0" maxScore="0.9960097">
<doc>
<float name="score">0.9960097</float>
<str name="id">2-33-200</str>
<str name="title">1992 Toyota Camry 2.2L CV Boots</str>
</doc>
</result>
<lst name="highlighting">
<lst name="2-33-200"/>
</lst>
</response>
How can I debug this issue further? Thanks! | 0 | [
2,
483,
25,
48,
1935,
7176,
139,
23102,
1735,
7250,
60,
800,
3726,
3726,
31,
22,
195,
1302,
14,
7176,
139,
23102,
13,
17375,
4492,
238,
436,
15,
9036,
6417,
15,
47,
1967,
164,
166,
2125,
23102,
20,
170,
29,
51,
7176,
139,
7758,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 minimize/simplify a directed graph in Matlab?
===
I have an acyclic directed network (weighted graph). I want to compute multiple shortest path algorithm from some nodes to a single destination nodes in the graph. I want to simplify/minimize my graph to make the algorithms more efficient. For example my graph G(V,E) is defined below:
V={1 2 3 4}
E/weights= { (1,2/0.1),(2,4/0.2),(1,3/0.4),(3,4/0.2)} //comment: (1,2) != (2,1)
In this graph, nodes 2 and 3 are equal, because they go to the same (=equal state) of 4, using an edge of 0.2 as weight.
My graph is stored in a sparse structure.
Thanks.
| 0 | [
2,
184,
20,
16713,
118,
8672,
5727,
8612,
21,
1012,
7210,
19,
4277,
9086,
60,
800,
3726,
3726,
31,
57,
40,
21,
15888,
1012,
982,
13,
5,
8696,
69,
7210,
6,
9,
31,
259,
20,
23909,
1886,
23576,
2013,
9083,
37,
109,
16272,
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... |
vim Aligning inline comments
===
Not really sure how to phrase this other than by example..
Given...
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'adroit', # Or path to database file if using sqlite3.
'USER': 'root', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
How would I format it so that all of the comments line up correctly, like so
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'adroit', # Or path to database file if using sqlite3.
'USER': 'root', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
The above example is from a django settings file, but I come across this issue a lot in various languages so ideally I would be looking for a way of doing this regardless of the comment delimiter. | 0 | [
2,
1790,
79,
23389,
68,
19,
1143,
7534,
800,
3726,
3726,
52,
510,
562,
184,
20,
6845,
48,
89,
119,
34,
823,
9,
9,
504,
9,
9,
9,
6018,
18,
800,
13,
1,
13,
22,
13862,
9708,
22,
45,
13,
1,
13,
22,
16847,
22,
45,
13,
22,
143... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Android ScrollView resets when SeekBar moves
===
I have a an activity which has a custom layout, with SeekBar and a ScrollView. Whenever I move the seekbar programmatically, the scrollview resets to top ( meaning onLayout gets called ), how do I set it so that the ScrollView doesn't get reset ? | 0 | [
2,
13005,
12159,
4725,
23422,
18,
76,
5048,
1850,
4927,
800,
3726,
3726,
31,
57,
21,
40,
2358,
56,
63,
21,
5816,
9106,
15,
29,
5048,
1850,
17,
21,
12159,
4725,
9,
6634,
31,
780,
14,
5048,
1850,
625,
6732,
1326,
15,
14,
12159,
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... |
Display more than 1 XML entry on a webpage
===
Ok, I'm new to XML and playing around with it.
I've written some XML which I want displayed on the page:
<?xml version="1.0" encoding="ISO-8859-1"?>
<linkedin>
<discussion>
<topic>Topic text here</topic>
<content>Content text here</content>
<url>http://www.google.com</url>
</discussion>
</linkedin>
Also using this XSL file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>LinkedIn</h2>
<xsl:for-each select="linkedin/discussion">
<h3><xsl:value-of select="topic"/></h3>
<p><xsl:value-of select="content"/></p>
<p><a><xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute><xsl:value-of select="url"/></a></p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and finally this, to display the XML on my HTML page:
<script type="text/javascript">
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","linkedin.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
var x=xmlDoc.getElementsByTagName("discussion");
for (i=0;i<x.length;i++)
{
document.write("<p><strong>");
document.write(x[i].getElementsByTagName("topic")[0].childNodes[0].nodeValue);
document.write("</strong></p><p>");
document.write(x[i].getElementsByTagName("content")[0].childNodes[0].nodeValue);
document.write("</p><p>");
document.write("<a href='");
document.write(x[i].getElementsByTagName("url")[0].childNodes[0].nodeValue);
}
document.write("'>Click here to go through to the LinkedIn group</a></p>");
</script>
I would like to add to the XML file to display 2 XML entries on my HTML page, like so:
<?xml version="1.0" encoding="ISO-8859-1"?>
<linkedin>
<discussion>
<topic>Topic text here</topic>
<content>Content text here</content>
<url>http://www.google.com</url>
</discussion>
<discussion>
<topic>Topic text here</topic>
<content>Content text here</content>
<url>http://www.google.com</url>
</discussion>
</linkedin>
Problem is, this method does not work by just duplicating the discussion tags within the XML.
How am I able to achieve this?
Thanks
| 0 | [
2,
3042,
91,
119,
137,
23504,
2792,
27,
21,
2741,
6486,
800,
3726,
3726,
5854,
15,
31,
22,
79,
78,
20,
23504,
17,
791,
140,
29,
32,
9,
31,
22,
195,
642,
109,
23504,
56,
31,
259,
6115,
27,
14,
2478,
45,
13,
1,
60,
396,
8184,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Previewing iPad3 Retina display optimized PNGs
===
As part of my design process I export PNGs to preview in iPhoto or Skala Preview before coding. This worked perfectly with the iPad2, but my new high resolution PNGs are displaying very pixelated on the iPad3. Has anyone else noticed this? Any work arounds?
Thanks for your help.
Tim | 0 | [
2,
16121,
68,
31,
8240,
240,
24325,
3042,
22864,
43,
351,
2723,
18,
800,
3726,
3726,
28,
141,
16,
51,
704,
953,
31,
7487,
351,
2723,
18,
20,
16121,
19,
31,
25445,
54,
13,
18,
16157,
16121,
115,
13,
15458,
9,
48,
577,
5759,
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... |
Passing a random string to url with url rewrite (lightty)
===
Function below is for generating random string to parse in the url, it is not to identify the session, but to show the user they are logged in.
function rand_str($length = 11, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-*')
{
// Length of character list
$chars_length = (strlen($chars) - 1);
// Start our string
$string = $chars{rand(0, $chars_length)};
// Generate random string
for ($i = 1; $i < $length; $i = strlen($string))
{
// Grab a random character from our list
$r = $chars{rand(0, $chars_length)};
// Make sure the same two characters don't appear next to each other
if ($r != $string{$i - 1}) $string .= $r;
}
// Return the string
return $string;
}
if(/*isset($_SESSION['loggedin']) && *Commented out for test*/isset($_GET['file'])) {
$file = $_GET['file'];
switch($file) {
case "index":
header("Location: session.php?session=".rand_str()."&file=index.php");
include("index.php");
break;
case "album":
header("Location: session.php?session=".rand_str()."&file=album.php");
include("album.php");
break;
case "tickets":
header("Location: session.php?session=".rand_str()."&file=tickets.php");
include("tickets.php");
break;
}
}
I'm trying to rewrite the url so instead of the url looking like this:
`http://www.example.com/session.php?session=10skKmSpA-Z&file=tickets.php`
it becomes
`http://www.example.com/10skKmSpA-Z/tickets.php`
I have the following but I cannot get it to rewrite everything
url.rewrite-once = ( "^/([^.?]*)\?(.*)$" => "/session.php?file=$1&$2",
"^/([^.?]*)$" => "/session.php?file=$1",
)
| 0 | [
2,
2848,
21,
5477,
3724,
20,
287,
6362,
29,
287,
6362,
27891,
13,
5,
3130,
1084,
6,
800,
3726,
3726,
1990,
1021,
25,
26,
13500,
5477,
3724,
20,
2017,
870,
19,
14,
287,
6362,
15,
32,
25,
52,
20,
5808,
14,
3723,
15,
47,
20,
298,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
UK Postcode Regex (Comprehensive)
===
I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance:
<strong>Matches</strong>
<ul>
<li>CW3 9SS</li>
<li>SE5 0EG</li>
<li>SE50EG</li>
<li>se5 0eg</li>
<li>WC2H 7LT</li>
</ul>
<strong>No Match</strong>
<ul>
<li>aWC2H 7LT</li>
<li>WC2H 7LTa</li>
<li>WC2H</li>
</ul>
Are there any official or even semi-official regexes in use for this kind of thing? Any other advice as to formatting and storing these in a database? | 0 | [
2,
1063,
678,
9375,
7953,
1706,
13,
5,
11103,
99,
6077,
18,
1284,
6,
800,
3726,
3726,
31,
22,
79,
75,
21,
7953,
1706,
30,
129,
7394,
1373,
21,
503,
1502,
1063,
678,
9375,
104,
363,
40,
6367,
3724,
9,
65,
16,
14,
14043,
678,
93... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Referencing build artifacts from an svn:external build in .Net project
===
This is a continuation question from a previous question [I have asked][1]
[1]: http://stackoverflow.com/questions/142237/integrating-external-sources-in-a-build.
I now have a /externals directory in the root of my project tree. Inside this I have a reference to another project. I'm able to script the build of all my externals in the main project NAnt script. The result of these builds are as follows:
/externals/external-project1/build/buildartifacts/{dlls|html|js}
/externals/external-project2/build/buildartifacts/{dlls|html|js}
This is all well and good, but now I'm curious as to how my main project should reference these build artifacts. For example, let's say that external project builds a DLL that some of my codebase depends on. Should I simply reference the DLL in the build artifacts directory or should I implement another NAnt task that copies these to a /thirdparty/libs/ folder?
This means that my build is now dependent on the ability to build this external project (which could either be internal, or thirdparty). Is it a good idea to check in the latest set of build artifacts to ensure that the main build won't break because of dependent builds breaking?
Hope that's clear enough. Just writing this down has a least clarified the problem for me :-).
| 0 | [
2,
13,
29254,
1895,
10996,
37,
40,
13,
18,
16578,
45,
1706,
8766,
192,
1895,
19,
13,
9,
2328,
669,
800,
3726,
3726,
48,
25,
21,
15503,
1301,
37,
21,
1158,
1301,
636,
49,
57,
411,
500,
2558,
165,
500,
636,
165,
500,
45,
7775,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
CHAR() or VARCHAR() as primary key in an ISAM mySQL table?
===
I need a simple table with a user name and password field in mySQL. Since user names must be unique, it makes sense to me to make them the primary key.
Is it better to use CHAR() or VARCHAR() as a primary key?
| 0 | [
2,
4892,
5,
6,
54,
4033,
5433,
5,
6,
28,
1256,
1246,
19,
40,
25,
765,
51,
18,
22402,
859,
60,
800,
3726,
3726,
31,
376,
21,
1935,
859,
29,
21,
4155,
204,
17,
20884,
575,
19,
51,
18,
22402,
9,
179,
4155,
1817,
491,
44,
2619,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How does one find reputable recruiters/headhunters as a job seeker?
===
I'm sort of new to the job search process, having spent a couple years in the industry straight out of college and then gone to graduate school for way too many years.
Now, despite (hopefully) getting a PhD from a top-tier school in 6 months, I'm leaving the academia and going back to the industry for a hands-on-position that will hopefully make some use of my background.
However, most of the recruiting avenues I have been used to are impractical: I'm not seeking academic positions so my academic contacts are worthless, and most college recruiting events and career fairs are depressingly entry-level oriented and I was often told that I am now overqualified. Most job boards that I've looked at are looking for extremely experienced team leads, or for very entry level positions. Most of my colleagues headed out to the west coast whereas I have to stay on the east-coast for family reasons.
I got a few interviews lined up, but it seems like I'm missing on a significant number of available jobs and it looks like I'll have to resort to a recruiter.
But how does one find a decent recruiter in a certain geographic area (NYC in my case)? Are their reputable companies that one can submit a resume to that are not entry-level slavetraders or simple scammers? | 2 | [
2,
184,
630,
53,
477,
302,
4881,
579,
12595,
445,
118,
1743,
15214,
18,
28,
21,
1205,
13,
22159,
60,
800,
3726,
3726,
31,
22,
79,
2058,
16,
78,
20,
14,
1205,
2122,
953,
15,
452,
1111,
21,
1335,
122,
19,
14,
1230,
1599,
70,
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... |
Redundancy vs dependencies: which is worse?
===
When working on developing new software i normally get stuck with the redundancy vs dependencies problem. That is, to either accept a 3rd party library that i have a huge dependencies to or code it myself duplicate all the effect but reduce the dependencies.
Though I've recently been trying to come up with a metric way of weighing up either redundancy in the code and dependencies in the code. For the most part, I've concluded reducing redundancy increases you dependencies in your code. Reducing the dependencies in your code increases redundancy. So its very much counter each other out.
So my question is:
Whats a good metric you've used in the past and do use to weigh up dependencies or redundancy in your code?
One thing I think is soo important is if you choose the dependencies route is you need the tool sets in place so you can quickly examine all the routines and functions that use a specified function. Without those tools set, it seems like redundancy wins.
P.S Following on from an article<br>
<a>http://www.yosefk.com/blog/redundancy-vs-dependencies-which-is-worse.html</a>
| 0 | [
2,
402,
8724,
10821,
4611,
29411,
45,
56,
25,
3105,
60,
800,
3726,
3726,
76,
638,
27,
3561,
78,
2306,
31,
4147,
164,
4549,
29,
14,
402,
8724,
10821,
4611,
29411,
1448,
9,
30,
25,
15,
20,
694,
3440,
21,
203,
897,
346,
1248,
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... |
CSV file. Excel is automatically converting my text to a date. Bad Excel.
===
Does anyone happen to know if there is a token I can add to my csv for this field so Excel doesn't try to convert it?
I'm trying to write a csv file from my application and one of the values happens to look enough like a date that Excel is automatically converting it from text to a date. I've tried putting all of my text fields (including the one that looks like a date) within double quotes, but that has no effect.
| 0 | [
2,
272,
18,
710,
3893,
9,
20700,
25,
7499,
19583,
51,
1854,
20,
21,
1231,
9,
896,
20700,
9,
800,
3726,
3726,
630,
1276,
2384,
20,
143,
100,
80,
25,
21,
20,
2853,
31,
92,
3547,
20,
51,
272,
18,
710,
26,
48,
575,
86,
20700,
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... |
(Apache) Error log beautifier
===
Anyone knows of a good error log beautifier? (should be able to handle apache error logs).
Should be open source / free, preferably with a web interface
| 0 | [
2,
13,
5,
7738,
2569,
6,
7019,
6738,
7821,
38,
16292,
800,
3726,
3726,
1276,
3620,
16,
21,
254,
7019,
6738,
7821,
38,
16292,
60,
13,
5,
14941,
44,
777,
20,
3053,
17140,
7019,
18893,
6,
9,
378,
44,
368,
1267,
13,
118,
551,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Map an object reference with HashTable
===
I'd like to map a reference to an object instead of the object value with an HashTable
configMapping.Add("HEADERS_PATH", Me.headers_path)
that way when I'm going to retrieve the value of "HEADERS_PATH" I'll be able to assign a value to Me.headers_path
something like the " & " operator in C | 0 | [
2,
2942,
40,
3095,
2801,
29,
19170,
5924,
800,
3726,
3726,
31,
22,
43,
101,
20,
2942,
21,
2801,
20,
40,
3095,
700,
16,
14,
3095,
1923,
29,
40,
19170,
5924,
1065,
1707,
14336,
5574,
9,
14854,
5,
7,
1743,
445,
1,
8353,
7,
15,
55... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Insert a Link Using CSS
===
I'm hand-maintaining an HTML document, and I'm looking for a way to automatically insert a link around text in a table. Let me illustrate:
<table><tr><td class="case">123456</td></tr></table>
I would like to automatically make every text in a TD with class "case" a link to that case in our bug tracking system (which, incidentally, is FogBugz).
So I'd like that "123456" to be changed to a link of this form:
<a href="http://bugs.example.com/fogbugz/default.php?123456">123456</a>
Is that possible? I've played with the :before and :after pseudo-elements, but there doesn't seem to be a way to repeat the case number. | 0 | [
2,
14692,
21,
3508,
568,
272,
18,
18,
800,
3726,
3726,
31,
22,
79,
224,
8,
6232,
5851,
68,
40,
13,
15895,
4492,
15,
17,
31,
22,
79,
699,
26,
21,
161,
20,
7499,
14692,
21,
3508,
140,
1854,
19,
21,
859,
9,
408,
55,
15620,
45,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I push to more than one repository in a single command in git?
===
Basically I wanted to do something like `git push mybranch to repo1, repo2, repo3`
right now I'm just typing push many times, and if I'm in a hurry to the the pushing done, I just send them all to the background `git push repo1 & git push repo2 &`
I'm just wondering if `git` natively supports what I want to do, or if maybe there's a clever script out there, or maybe a way to edit the local repo config file to say a branch should be pushed to multiple remotes. | 0 | [
2,
92,
31,
3250,
20,
91,
119,
53,
24869,
19,
21,
345,
1202,
19,
13,
10404,
60,
800,
3726,
3726,
11374,
31,
417,
20,
107,
301,
101,
13,
1,
10404,
3250,
51,
23014,
20,
302,
1638,
165,
15,
302,
1638,
135,
15,
302,
1638,
240,
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's wrong with Linq to SQL?
===
What's wrong with Linq to SQL?
Or - what about Linq to SQL would make it unsuitable for a project, either new or existing? I want to hear about why you would **not** choose Linq to SQL for a particular project - including what project parameters make it unsuitable. | 0 | [
2,
98,
22,
18,
1389,
29,
6294,
1251,
20,
4444,
255,
60,
800,
3726,
3726,
98,
22,
18,
1389,
29,
6294,
1251,
20,
4444,
255,
60,
54,
13,
8,
98,
88,
6294,
1251,
20,
4444,
255,
83,
233,
32,
26749,
26,
21,
669,
15,
694,
78,
54,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 disable Oracle XE component which is listening on 8080?
===
After installing Oracle XE, something in Oracle is listening on port 8080. I am not sure if they have an Apache HTTPD, a Tomcat, or something else. But how can I disable it? | 0 | [
2,
184,
20,
1460,
579,
15759,
13,
13012,
5912,
56,
25,
4948,
27,
2972,
2887,
60,
800,
3726,
3726,
75,
25429,
15759,
13,
13012,
15,
301,
19,
15759,
25,
4948,
27,
1295,
2972,
2887,
9,
31,
589,
52,
562,
100,
59,
57,
40,
17140,
7775... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 does the perfect status report look like?
===
I work with a lot of offsite developers and contractors. I ask them daily to send me a quick 5 minute status of their work for the day. I have to sometimes consolidate the status of individuals into teams and sometimes consolidate the status of a week, for end-of-period reporting to my clients.
####I want to learn:
* Items accomplished and how much time was spent on each
* Problems encountered and how much time was spent on each
* Items that will be worked on next, their estimates (in man hours) and their target dates
* Questions they have on the work
####I'm looking for a format that will provide this information while:
* Being quick for the developers to complete (5-10 minutes, without thinking too much)
* Easy for me to read and browse quickly
* Is uniform for each developer
What would you suggest? | 0 | [
2,
98,
630,
14,
2107,
1782,
1330,
361,
101,
60,
800,
3726,
3726,
31,
170,
29,
21,
865,
16,
168,
9097,
10168,
17,
19323,
9,
31,
1349,
105,
1954,
20,
2660,
55,
21,
2231,
331,
2038,
1782,
16,
66,
170,
26,
14,
208,
9,
31,
57,
20... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Team Foundation Server Port 8080 ASMX Access Issue
===
How come one user in the local Administrators Group has no problem hitting http://localhost:8080/services/v1.0/Registration.asmx while other users in the local Administrators Group get 403 (access denied) errors (with nothing in the Event log)? | 0 | [
2,
173,
1304,
8128,
1295,
2972,
2887,
28,
79,
396,
1381,
1513,
800,
3726,
3726,
184,
340,
53,
4155,
19,
14,
375,
18618,
214,
63,
90,
1448,
6687,
7775,
6903,
15580,
11694,
45,
2887,
2887,
118,
11449,
18,
118,
710,
165,
9,
15928,
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... |
GPU-based video cards to accelerate your program calculations, How?
===
I read in [this article ][1] that a company has created a software capable of using multiple GPU-based video cards in parallel to process hundreds of billions fixed-point calculations per second.
The program seems to run in Windows. Is it possible from Windows to assign a thread to a GPU? Do they create their own driver and then interact with it? Any idea of how they do it?
[1]: http://www.ddj.com/hpc-high-performance-computing/210605281 | 0 | [
2,
489,
4201,
8,
1281,
763,
4092,
20,
22876,
154,
625,
19186,
15,
184,
60,
800,
3726,
3726,
31,
1302,
19,
636,
1565,
2002,
13,
500,
2558,
165,
500,
30,
21,
237,
63,
679,
21,
2306,
3868,
16,
568,
1886,
489,
4201,
8,
1281,
763,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 set the dns search suffix for a network adapter in .net?
===
I've written a command line utility that detects which network interface is connected, and sets the staitc ip address and dns servers for it (by calling netsh). However, I can't seem to figure out how to set the dns search suffixes. netsh doesnt appear capable of doing that. How do I do that otherwise (WMI perhaps)? | 0 | [
2,
184,
107,
31,
309,
14,
13,
43,
2172,
2122,
15447,
26,
21,
982,
9924,
106,
19,
13,
9,
2328,
60,
800,
3726,
3726,
31,
22,
195,
642,
21,
1202,
293,
10082,
30,
9092,
18,
56,
982,
6573,
25,
2587,
15,
17,
3415,
14,
6419,
242,
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... |
SubSonic SubSonic.SqlQuery & Dates
===
Does SubSonic.SqlQuery have a between/and for date ranges? If not, what would be the best way to get a range. | 0 | [
2,
972,
17766,
972,
17766,
9,
18,
22402,
8190,
93,
279,
4076,
800,
3726,
3726,
630,
972,
17766,
9,
18,
22402,
8190,
93,
57,
21,
128,
118,
290,
26,
1231,
9230,
60,
100,
52,
15,
98,
83,
44,
14,
246,
161,
20,
164,
21,
978,
9,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How do I create a Routed Event in Silverlight 2?
===
Anyone know how to create a routed event in Silverlight 2? In WPF, the code would be like below. However, there’s no EventManager in Silverlight.
public static readonly RoutedEvent ShowVideoEvent =
EventManager.RegisterRoutedEvent("ShowVideo", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(NavBar));
public event RoutedEventHandler ShowVideo
{
add { AddHandler(ShowVideoEvent, value); }
remove { RemoveHandler(ShowVideoEvent, value); }
}
| 0 | [
2,
184,
107,
31,
1600,
21,
858,
43,
807,
19,
1172,
3130,
172,
60,
800,
3726,
3726,
1276,
143,
184,
20,
1600,
21,
858,
43,
807,
19,
1172,
3130,
172,
60,
19,
619,
7721,
15,
14,
1797,
83,
44,
101,
1021,
9,
207,
15,
80,
1,
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... |
Redirect the parent frame inside an UpdatePanel on PostBack
===
This is kind of a weird problem, but I have to create a search box for our site that will be iframed on another site. When the user clicks the search button, it needs to redirect the parent frame to **our** search results page.
At the moment what I've done is to make the search button a postback trigger then registering a client script block to run this:
if (window.parent) window.parent.location.href='<url>';
This is *ok*, but it seems like a hack & it means if the user clicks back on the browser after searching, it redirects them back to the search results page.
Is there a better way of doing this? | 0 | [
2,
302,
14706,
14,
4766,
3523,
572,
40,
11100,
3206,
532,
27,
678,
1958,
800,
3726,
3726,
48,
25,
825,
16,
21,
5455,
1448,
15,
47,
31,
57,
20,
1600,
21,
2122,
1649,
26,
318,
689,
30,
129,
44,
31,
8361,
43,
27,
226,
689,
9,
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... |
Is Dreamweaver worth getting if I probably won't use its WYSIWYG editor?
===
In the past I've done web application development using Visual Studio. Initially I'd use the design view, editing the page visually. But over time I learned more and more (X)HTML, CSS, and Javascript. I became familiar with the tags for ASP.NET server controls and their common attributes.
I got to the point where I'd do all the markup by hand (still in Visual Studio though) and then test the site in an actual browser. Of course I'd also still use Visual Studio for programming server side functionality in C#, but never the WYSIWYG page editor. I was able to get work done faster too, getting the site to look just the way I wanted, and the same across different browsers.
Now I'm going to be taking charge of a public facing website (entirely static content - no ASP.NET, PHP, or anything). The website was created and maintained using Dreamweaver, which I don't have and never used before.
I'll be working from home, so the organization is looking into getting me a copy of Dreamweaver. Even though it's not money out of my own pocket ...
##Is it worth using Dreamweaver if I probably won't touch the visual editor?##
**Or should I tell them to save their money and I'll just use Notepad++.**
Or am I crazy and should relearn to use a WYSIWYG editor? | 0 | [
2,
25,
1868,
458,
11937,
2715,
1017,
100,
31,
910,
230,
22,
38,
275,
82,
5809,
18,
49,
7913,
263,
1835,
60,
800,
3726,
3726,
19,
14,
640,
31,
22,
195,
677,
2741,
3010,
522,
568,
3458,
1120,
9,
1537,
31,
22,
43,
275,
14,
704,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Easy mysql question regarding primary keys and an insert
===
In mysql, how do I get the primary key used for an insert operation, when it is autoincrementing.
Basically, i want the new autoincremented value to be returned when the statement completes.
Thanks! | 0 | [
2,
2010,
51,
18,
22402,
1301,
3467,
1256,
5534,
17,
40,
14692,
800,
3726,
3726,
19,
51,
18,
22402,
15,
184,
107,
31,
164,
14,
1256,
1246,
147,
26,
40,
14692,
1453,
15,
76,
32,
25,
3108,
28461,
68,
9,
11374,
15,
31,
259,
14,
78... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
In Ruby on Rails, how do I format a date to get "th", as in, "Sun Oct 5th"?
===
I want to display dates in the format: short day of week, short month, day of month without leading zero but including "th", "st", "nd", or "rd".
For example, the day this question was asked would display "Thu Oct 2nd".
I'm using Ruby 1.8.7, and [Time.strftime](http://www.ruby-doc.org/core-1.8.7/classes/Time.html#M000139) just doesn't seem to do this. I'd prefer a standard library if one exists. | 0 | [
2,
19,
10811,
27,
2240,
18,
15,
184,
107,
31,
2595,
21,
1231,
20,
164,
13,
7,
96,
7,
15,
28,
19,
15,
13,
7,
7843,
9543,
331,
96,
7,
60,
800,
3726,
3726,
31,
259,
20,
3042,
4076,
19,
14,
2595,
45,
502,
208,
16,
877,
15,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
printf + uint_64 on Solaris 9?
===
I have some c(++) code that uses sprintf to convert a uint_64 to a string. This needs to be portable to both linux and Solaris.
On linux we use %ju, but there does not appear to be any equivalent on Solaris. The closest I can find is %lu, but this produces incorrect output. Some sample code:
#include <stdio.h>
#include <sys/types.h>
#ifdef SunOS
typedef uint64_t u_int64_t;
#endif
int main(int argc, char **argv) {
u_int64_t val = 123456789123L;
#ifdef SunOS
printf("%lu\n", val);
#else
printf("%ju\n", val);
#endif
}
On linux, the output is as expected; on Solaris 9 (don't ask), it's "28"
What can I use?
| 0 | [
2,
4793,
410,
2754,
287,
6391,
1,
3470,
27,
4535,
403,
561,
60,
800,
3726,
3726,
31,
57,
109,
272,
5,
20512,
6,
1797,
30,
2027,
6672,
410,
20,
8406,
21,
287,
6391,
1,
3470,
20,
21,
3724,
9,
48,
2274,
20,
44,
13469,
20,
156,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Does programmer scheduling software exist?
===
We are a three man programming team with a huge scheduling problem.
We need some software to help us manage this problem.
We could build this software ourselves but we would rather use somebody else’s brilliant solution.
Does anyone out there know of one???
Here’s the problem.
Let’s start with a clean slate.
A programmer in the company is given a new job to do.
Say its 5 days work.
We tell the client its 8 days work as we will be interrupted and know the real production time is going to be longer than 5 days.
1 day into the job the programmer is interrupted with a critical bug that needs to be fixed on another project.
The ideal system would allow us to insert this task into his schedule.
It would then warn us that this task is conflicting with the original task and ask us to set a priority.
We would prioritize the bug over the job and all would be well as the original job still has 2 days slack.
The programmer would know the bug is more critical.
And the system would tell us that the original job can still get done.
Then perhaps another more critical task would interrupt that bug.
And other tasks would appear.
Eventually, the slack in the original project would be lost and the system would need to indicate that projects or bugs won’t get done on time.
Multiply these tasks across three programmers and multiple jobs and it is pretty easy to reach complete uncertainty about the delivery of anything!
That’s the problem we face.
Standard project management software like Microsoft Project does not solve these problems.
It requires the manual insertion of tasks and the manual creation of dependencies.
We have tried to use it and found 1 -2 hours a day wasted in scheduling without any real clarity about what was going on.
I eventually decided that was because project managing and task scheduling are fundamentally different.
I have a pretty clear picture of the software I have in mind.
Surely it exists?
Please, someone out there
HELP !!!!!!!!!
| 0 | [
2,
630,
17968,
23096,
2306,
3182,
60,
800,
3726,
3726,
95,
50,
21,
132,
169,
3143,
173,
29,
21,
2329,
23096,
1448,
9,
95,
376,
109,
2306,
20,
448,
182,
4705,
48,
1448,
9,
95,
110,
1895,
48,
2306,
10021,
47,
95,
83,
864,
275,
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... |
Anyone use xui? JavaFX?
===
Warning: Java newbie.
Been looking at [XUI][1] for Java. Its looks quite interesting. Sort of liek a WPF way of designing interfaces. But googling around I don't see much other than articles saying it had been released. So is it used much or a bit niche?
Are there other similar frameworks for Java? Was looking at JavaFX but seems to be a general feeling that it has been slow development wise. Are there other frameworks that work in simialr ways? I get the impression Swing/SWT seem to more like WinForms. I'm looking to do something a bit more WPF like. As I said, Java newbie, so I might have this all confused. Seem to be so many UI frameworks its a bit overwhelming working out what to use for a new project.
[1]: http://www.xoetrope.com/xui | 0 | [
2,
1276,
275,
10942,
49,
60,
8247,
16488,
60,
800,
3726,
3726,
3590,
45,
8247,
78,
5893,
9,
74,
699,
35,
636,
396,
5661,
500,
2558,
165,
500,
26,
8247,
9,
82,
1879,
1450,
4883,
9,
2058,
16,
2850,
197,
21,
619,
7721,
161,
16,
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... |
linux: getting umask of an already running process?
===
How can I check the umask of a program which is currently running? | 0 | [
2,
13024,
45,
1017,
287,
23265,
16,
40,
614,
946,
953,
60,
800,
3726,
3726,
184,
92,
31,
2631,
14,
287,
23265,
16,
21,
625,
56,
25,
871,
946,
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... | [
1,
1,
1,
1,
1,
1,
1,
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... |
Is the offical Sun Java EE tutorial the best way to learn how to make Java web apps?
===
I've been a web developer for almost a decade. I've mostly used classic ASP/JavaScript and I'd like to move into Java based apps.
I have a decent understanding of Java itself (enough to know how to lookup what I don't know) and I spent some time doing minor work on a JSF/Spring/Hibernate app, but from what a trusted coworker told me, this application is the example of what __not__ to do.
I want to learn the really hardcore stuff (EJBs, HA Clustering, etc), but I know I have to walk before I can run. Is the Sun Tutorial the best place to start? Or is there an definitive book (like K&R for C or Gang of Four for design patterns) that I should buy?
| 4 | [
2,
25,
14,
168,
4272,
939,
8247,
13,
2851,
29724,
14,
246,
161,
20,
2484,
184,
20,
233,
8247,
2741,
4865,
18,
60,
800,
3726,
3726,
31,
22,
195,
74,
21,
2741,
10058,
26,
557,
21,
3953,
9,
31,
22,
195,
1555,
147,
2732,
28,
306,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Vim Dvorak keybindings (rebindings :)
===
Although I played with it before, I'm finally starting to use [Dvorak (Simplified)][1] regularly. I've been in a steady relationship with Vim for several years now, and I'm trying to figure out the best way to remap the key bindings to suit my newfound Dvorak skills.
How do *you* remap Vim's key bindings to best work with Dvorak?
Explanations encouraged!
[1]: http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard | 0 | [
2,
1790,
79,
13,
43,
5771,
1378,
1246,
22260,
18,
13,
5,
99,
22260,
18,
13,
45,
6,
800,
3726,
3726,
419,
31,
257,
29,
32,
115,
15,
31,
22,
79,
722,
1422,
20,
275,
636,
43,
5771,
1378,
13,
5,
11268,
6,
500,
2558,
165,
500,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 force a .net application to display on a particular monitor in a dual monitor setup?
===
I would like to run multiple copies of my application and force the first to open on one monitor and the second instance on a second monitor | 0 | [
2,
184,
107,
42,
558,
21,
13,
9,
2328,
3010,
20,
3042,
27,
21,
1498,
7626,
19,
21,
5747,
7626,
18161,
60,
800,
3726,
3726,
31,
83,
101,
20,
485,
1886,
3298,
16,
51,
3010,
17,
558,
14,
64,
20,
368,
27,
53,
7626,
17,
14,
153,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
javascript: how to force Image() not to use browser cache?
===
If I load the nextimg url manually in the browser, it gives a new picture every time I reload. But this bit of code shows the same image every iteration of draw().
How can I force myimg not to be cached?
<html>
<head>
<script type="text/javascript">
function draw(){
var canvas = document.getElementById('canv');
var ctx = canvas.getContext('2d');
var rx;
var ry;
var i;
myimg = new Image();
myimg.src = 'http://ohm:8080/cgi-bin/nextimg'
rx=Math.floor(Math.random()*100)*10
ry=Math.floor(Math.random()*100)*10
ctx.drawImage(myimg,rx,ry);
window.setTimeout('draw()',0);
}
</script>
</head>
<body onload="draw();">
<canvas id="canv" width="1024" height="1024"></canvas>
</body>
</html>
| 0 | [
2,
8247,
8741,
45,
184,
20,
558,
1961,
5,
6,
52,
20,
275,
16495,
16522,
60,
800,
3726,
3726,
100,
31,
6305,
14,
328,
1660,
263,
287,
6362,
23671,
19,
14,
16495,
15,
32,
2352,
21,
78,
2151,
352,
85,
31,
27339,
9,
47,
48,
1142,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Any experience developing for the SMART Board?
===
Our school system employs the [SMART Boards][1] in the classroom. I think they are pretty neat and saw that they've got a developer network. I was wondering if anyone had done any development for this product and if so could tell me about the experience. Are you still developing for it? I was considering trying my hand at writing some apps for it but hadn't received anything back from the company yet.
[1]: http://smarttech.com/ | 0 | [
2,
186,
1496,
3561,
26,
14,
3978,
686,
60,
800,
3726,
3726,
318,
116,
329,
15315,
14,
636,
18,
9534,
8755,
500,
2558,
165,
500,
19,
14,
10188,
9,
31,
277,
59,
50,
1772,
15956,
17,
441,
30,
59,
22,
195,
330,
21,
10058,
982,
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... |
Flowlayout panel not display the scroll bar after some resizes.
===
I have a flowlayout panel and on a resize event, I resize all the controls inside the flowlayout panel so they the width of the (flowlayoutpanel - padding - scroll bar width). On some resizes, the scroll bar is not shown, hiding most of the controls outside the area of the flowlayoutpanel while on other resizes the scroll bar is shown.I have setthe AutoScroll property on the flowlayoutpanel to true. This is all done using C#, but I have also encountered this problem in VB.net.
Is there a way to force the flowlayoutpanel to recalculate how the controls are laid out after I resize the controls in the resize event or some other way to fix this problem? | 0 | [
2,
3312,
4414,
1320,
4113,
52,
3042,
14,
12159,
748,
75,
109,
10719,
13569,
9,
800,
3726,
3726,
31,
57,
21,
3312,
4414,
1320,
4113,
17,
27,
21,
302,
10454,
807,
15,
31,
302,
10454,
65,
14,
8671,
572,
14,
3312,
4414,
1320,
4113,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get my hands on a Dvorak keyboard?
===
I've always assumed that before I can use the Dvorak layout I need to purchase a Dvorak keyboard. But I can't find one on Amazon. Is it simply a matter of popping the keys off a Qwerty keyboard and moving them around?
| 0 | [
2,
184,
107,
31,
164,
51,
473,
27,
21,
13,
43,
5771,
1378,
8896,
60,
800,
3726,
3726,
31,
22,
195,
550,
3632,
30,
115,
31,
92,
275,
14,
13,
43,
5771,
1378,
9106,
31,
376,
20,
3301,
21,
13,
43,
5771,
1378,
8896,
9,
47,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
STAThread and multithreading
===
From the MSDN article on STAThread:
> Indicates that the COM threading model for an application is single-threaded apartment (STA).
(For reference, that's the entire article.)
Single-threaded apartment... OK, that went over my head. Also, I read somewhere that unless your application uses COM interop, this attribute actually does nothing at all. So what exactly does it do, and how does it affect multithreaded applications? Should multithreaded applications (which includes anything from anyone using `Timer`s to asynchronous method calls, not just threadpools and the like) use MTAThread, even if it's 'just to be safe'? What does STAThread and MTAThread actually do? | 0 | [
2,
6419,
96,
10647,
17,
1889,
96,
22883,
800,
3726,
3726,
37,
14,
4235,
43,
103,
2002,
27,
6419,
96,
10647,
45,
13,
1,
6475,
30,
14,
13,
960,
9322,
68,
1061,
26,
40,
3010,
25,
345,
8,
96,
10647,
69,
2880,
13,
5,
6106,
6,
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... |
How to get the asp.net login control to auto authenticate a previously authenticated user?
===
I am trying to to set up the login control to remember the login credentials of a user who has previously entered their user name and password successfully. I set the remember me property to true, but it doesnt seem to triger any events where I could read the cookie and auto login the user.
Is there a straightforward mechanism to accomplish this? | 0 | [
2,
184,
20,
164,
14,
28,
306,
9,
2328,
6738,
108,
569,
20,
3108,
14351,
1373,
21,
1343,
14351,
1669,
4155,
60,
800,
3726,
3726,
31,
589,
749,
20,
20,
309,
71,
14,
6738,
108,
569,
20,
1518,
14,
6738,
108,
5059,
43,
10107,
18,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
relative paths in visual studio
===
I'm working in Visual Studio 2005 and have added a text file that needs to be parsed by right-clicking the project in the solution explorer and add --> new item. This places the .txt file to the project folder. The debug .exe file is in the /bin/debug folder.
My main question is how to properly point to the txt file from code using relative paths that will properly resolve being two folders back, while also resolving to be in the same folder after the solution is published. | 0 | [
2,
4543,
12074,
19,
3458,
1120,
800,
3726,
3726,
31,
22,
79,
638,
19,
3458,
1120,
812,
17,
57,
905,
21,
1854,
3893,
30,
2274,
20,
44,
2017,
18,
69,
34,
193,
8,
150,
10129,
68,
14,
669,
19,
14,
4295,
8520,
17,
3547,
13,
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... |
Varying Colors in Processing
===
I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors.
I have a script that draws a spiral pattern, and should vary the colors in the spiral based on a modulus check. The script seems to hang, however, and I can't really explain why.
If anyone has some experience with Processing and Java, and you could tell me where my mistake is, I'd really love to know.
For the sake of peer-review, here's my little program:
package spirals;
import processing.core.*;
public class Main extends PApplet
{
float x, y;
int i = 1, dia = 1;
float angle = 0.0f, orbit = 0f;
float speed = 0.05f;
//color palette
int gray = 0x0444444;
int blue = 0x07cb5f7;
int pink = 0x0f77cb5;
int green = 0x0b5f77c;
public Main(){}
public static void main( String[] args )
{
PApplet.main( new String[] { "spirals.Main" } );
}
public void setup()
{
background( gray );
size( 400, 400 );
noStroke();
smooth();
}
public void draw()
{
if( i % 11 == 0 )
fill( green );
else if( i % 13 == 0 )
fill( blue );
else if( i % 17 == 0 )
fill( pink );
else
fill( gray );
orbit += 0.1f; //ever so slightly increase the orbit
angle += speed % ( width * height );
float sinval = sin( angle );
float cosval = cos( angle );
//calculate the (x, y) to produce an orbit
x = ( width / 2 ) + ( cosval * orbit );
y = ( height / 2 ) + ( sinval * orbit );
dia %= 11; //keep the diameter within bounds.
ellipse( x, y, dia, dia );
dia++;
i++;
}
}
| 0 | [
2,
9852,
5268,
19,
5511,
800,
3726,
3726,
31,
22,
195,
74,
638,
27,
1295,
68,
109,
16,
51,
5511,
1797,
84,
20,
1290,
8247,
19,
4275,
863,
5950,
9,
86,
463,
86,
134,
15,
127,
796,
693,
374,
15,
1613,
26,
76,
31,
162,
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... |
Why do these two date formats differ?
===
I'm trying to produce just the day number in a WPF text block, without leading zeroes and without extra space padding (which throws off the layout). The first produces the day number with a space, the second produces the entire date. According to the docs, 'd' should produce the day (1-31).
string.Format("{0:d }", DateTime.Today);
string.Format("{0:d}", DateTime.Today);
| 0 | [
2,
483,
107,
158,
81,
1231,
13767,
11394,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
2213,
114,
14,
208,
234,
19,
21,
619,
7721,
1854,
1921,
15,
366,
1005,
4606,
160,
17,
366,
2230,
726,
4432,
3258,
13,
5,
2140,
13566,
168,
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... |
Optimal RAID setup for SQL server
===
We have an SQL 2005 database backend for our website, currently about 10GB in size. There are a lot more reads than writes, though I don't have the exact statistics.
We're upgrading our database server and I was thinking of getting 4 disks and setting them up in two RAID 1 arrays - one for the data files and the other for the OS and log files. Would this be the optimal set-up or would RAID 5 be better for the data files? RAID 10 gets a bit pricey and is probably overkill for us.
At this stage SQL Server should keep much of the database in RAM (8GB), but it will grow, so I don't want to entirely rely on that. | 0 | [
2,
17586,
6847,
18161,
26,
4444,
255,
8128,
800,
3726,
3726,
95,
57,
40,
4444,
255,
812,
6018,
97,
2451,
26,
318,
2271,
15,
871,
88,
332,
11400,
19,
1072,
9,
80,
50,
21,
865,
91,
11137,
119,
6215,
15,
362,
31,
221,
22,
38,
57,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I improve compiling speed in Visual Studio C++ 2003 project that is using C++ Boost Libraries
===
I have just started using Boost 1.36. These libraries would be very useful in reducing the amount of code needed in the unmanaged C++ software project that I am working on.
However when I tried to used these libraries my compile times increased ten fold. This would pretty much offset the productivity gains I would receive by using the library.
I am using a 3GHz Intel Dual Core with 2GB of RAM and VS 2003.
There is a snippet of the code that I added.
<pre>
#include "boost/numeric/ublas/matrix.hpp"
#include "boost/numeric/ublas/vector.hpp"
#include "boost/numeric/ublas/matrix_proxy.hpp"
typedef ublas::bounded_matrix <long double,NUM_OF_COLUMNS,NUM_OF_CATEGORIES,ublas::row_major> Matrix;
typedef ublas::bounded_vector <long double,NUM_OF_COLUMNS> Vector;
</pre>
<code>
void Print(const Matrix& amount)
{
Vector total;
total.clear();
for (int category = 0; category < NUM_OF_CATEGORIES; category++)
{
PrintLine(ublas::row(amount, category));
total += ublas::row(amount, category);
}
PrintLine(total);
}
</code>
Is the problem with VS 2003?
I know that VS 2008 is faster but upgrading is going to be a hard sell.
Is it just that Boost is optimized for fast run times not fast compile times?
Am I just using the Boost Library in a sub-optimal manner?
Or am I just using the wrong tool for the job?
| 0 | [
2,
184,
107,
31,
3545,
24378,
1362,
19,
3458,
1120,
272,
20512,
973,
669,
30,
25,
568,
272,
20512,
10419,
8649,
800,
3726,
3726,
31,
57,
114,
373,
568,
10419,
137,
9,
3775,
9,
158,
8649,
83,
44,
253,
4811,
19,
7974,
14,
2006,
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... |
Does ASP.NET transfer ALL session data from SQL server at the start of a request, or only as needed?
===
I'm using ASP.NET, with session state stored out of process in SQL Server. When a page request begins, are the *entire* contents of a user's session retrieved from the DB, deserialized, and sent to the ASP.NET process in one fell swoop, or are individual objects transferred to the ASP.NET process only as needed?
Basically, I have a page that stores some large objects in session, and it's hard for my application to determine when the data can be disposed. If the data is only pulled out of the DB when it's used then there isn't an issue; if the entire session state is chunked to ASP.NET for each page request, I might have a performance issue. | 0 | [
2,
630,
28,
306,
9,
2328,
2617,
65,
3723,
1054,
37,
4444,
255,
8128,
35,
14,
799,
16,
21,
3772,
15,
54,
104,
28,
851,
60,
800,
3726,
3726,
31,
22,
79,
568,
28,
306,
9,
2328,
15,
29,
3723,
146,
8214,
70,
16,
953,
19,
4444,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 compare/validate sql schema
===
I'm looking for a way to validate the SQL schema on a production DB after updating an application version. If the application does not match the DB schema version, there should be a way to warn the user and list the changes needed.
Is there a tool or a framework (to use programatically) with built-in features to do that?
Or is there some simple algorithm to run this comparison?
| 0 | [
2,
184,
20,
11590,
118,
18506,
8209,
4444,
255,
23874,
800,
3726,
3726,
31,
22,
79,
699,
26,
21,
161,
20,
7394,
1373,
14,
4444,
255,
23874,
27,
21,
637,
13,
9007,
75,
71,
43,
1880,
40,
3010,
615,
9,
100,
14,
3010,
630,
52,
730... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Html control and Server control can be used in single aspx page
===
I need a help on this following aspx code
aspx Code:
<asp:Label ID ="lblName" runat ="server" Text ="Name"></asp:Label>
<asp:TextBox ID ="txtName" runat ="server"></asp:TextBox>
Consider this is my aspx page content. I am going to populate the values for textbox only after the postback from server. but the label also posting to the server(runat="server")
eventhough its not neccessary. shall i write my code like this to save time from server with less load.
Corrected Code:
<label id ="lblNames">Name</label>
<asp:TextBox ID ="txtName" runat ="server"></asp:TextBox>
Only my server control will send to server for postback and not my html control which a static value.
Please suggest me whether this is the correct way of coding
<
| 0 | [
2,
13,
15895,
569,
17,
8128,
569,
92,
44,
147,
19,
345,
28,
306,
396,
2478,
800,
3726,
3726,
31,
376,
21,
448,
27,
48,
249,
28,
306,
396,
1797,
28,
306,
396,
1797,
45,
13,
1,
472,
306,
45,
21018,
4924,
800,
7,
255,
6287,
725... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Resources for 2d game physics
===
I'm looking for some good references for learning how to model 2d physics in games. I am **not** looking for a library to do it for me - I want to think and learn, not blindly use someone else's work.
I've done a good bit of Googling, and while I've found a few tutorials on GameDev, etc., I find their tutorials hard to understand because they are either written poorly, or assume a level of mathematical understanding that I don't yet possess.
For specifics - I'm looking for how to model a top-down 2d game, sort of like a tank combat game - and I want to accurately model (among other things) acceleration and speed, heat buildup of 'components,' collisions between models and level boundaries, and missile-type weapons.
Websites, recommended books, blogs, code examples - all are welcome if they will aid understanding. I'm considering using C# and F# to build my game, so code examples in either of those languages would be great - but don't let language stop you from posting a good link. =) | 4 | [
2,
2566,
26,
172,
43,
250,
4339,
800,
3726,
3726,
31,
22,
79,
699,
26,
109,
254,
7231,
26,
2477,
184,
20,
1061,
172,
43,
4339,
19,
466,
9,
31,
589,
13,
1409,
1270,
1409,
699,
26,
21,
1248,
20,
107,
32,
26,
55,
13,
8,
31,
2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get the contents of the "title" tag in the element "span" with JQUERY?
===
I have a "span" element inside a "table" "td" element. The span tag has a Title.
I want to get the title of that span tag and pull it out to make it the "mouseover" tip for the "td" element.
For example:
I want to turn this:
<td>
<a href="#"><span id="test" title="Acres for each province">Acres</span></a>
</td>
Into this:
<td onmouseover="tip(Acres for each province)">
<a href="#"><span id="test">Acres</span></a>
</td> | 0 | [
2,
184,
107,
31,
164,
14,
8478,
16,
14,
13,
7,
22235,
7,
3383,
19,
14,
4520,
13,
7,
18,
3206,
7,
29,
487,
8190,
93,
60,
800,
3726,
3726,
31,
57,
21,
13,
7,
18,
3206,
7,
4520,
572,
21,
13,
7,
5924,
7,
13,
7,
38,
43,
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... |
PHP Preserve scope when calling a function
===
I have a function that includes a file based on the string that gets passed to it i.e. the action variable from the query string. I use this for filtering purposes etc so people can't include files they shouldn't be able to and if the file doesn't exist a default file is loaded instead.
The problem is that when the function runs and includes the file scope, is lost because the include ran inside a function. This becomes a problem because I use a global configuration file, then I use specific configuration files for each module on the site.
The way I'm doing it at the moment is defining the variables I want to be able to use as global and then adding them into the top of the filtering function.
Is there any easier way to do this, i.e. by preserving scope when a function call is made or is there such a thing as PHP macros? | 0 | [
2,
13,
26120,
6224,
9914,
76,
2555,
21,
1990,
800,
3726,
3726,
31,
57,
21,
1990,
30,
1103,
21,
3893,
432,
27,
14,
3724,
30,
3049,
1100,
20,
32,
31,
9,
62,
9,
14,
1028,
7612,
37,
14,
25597,
3724,
9,
31,
275,
48,
26,
25272,
46... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Good jQuery Shadow plugin?
===
Does anyone have a good recommendation for a drop shadow jquery plugin?
I've been working on a project that had every element on the page with a subtle drop shadow, we started using [RUZEE][1] to do the shadows but there was a severe performance hit when you had more then 4 or 5 shadows being calculated on the page.
I went to [writing my own plugin][2], I call it simple shadow and it only uses jquery to inject images in floating div's around the div you want a drop shadow. Nothing elegant but for the purpose of completing that site it worked without performance hits.
Now my plugin isn't anything special but I am still in search for a good light weight shadow plugin.
[1]: http://www.ruzee.com/blog/shadedborder/
[2]: http://damnralph.com/2008/08/27/jQueryPluginSimpleShadow.aspx | 0 | [
2,
254,
487,
8190,
93,
3118,
10922,
108,
60,
800,
3726,
3726,
630,
1276,
57,
21,
254,
14066,
26,
21,
2804,
3118,
487,
8190,
93,
10922,
108,
60,
31,
22,
195,
74,
638,
27,
21,
669,
30,
41,
352,
4520,
27,
14,
2478,
29,
21,
11065,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Suggest a good Doxygen stylesheet
===
I am using Doxygen to generate HTML documentation from my code. However I find that default stylesheet has quite poor choice of fonts and layout. I know I can write my own CSS file to get exactly the output I want, but before I spend my time on it, I am wondering if there are any decent custom stylesheets already available. | 0 | [
2,
5601,
21,
254,
107,
15161,
1863,
1034,
17627,
800,
3726,
3726,
31,
589,
568,
107,
15161,
1863,
20,
7920,
13,
15895,
13945,
37,
51,
1797,
9,
207,
31,
477,
30,
12838,
1034,
17627,
63,
1450,
1696,
1837,
16,
9978,
18,
17,
9106,
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... |
Why do people like case sensitivity?
===
Just wondering why people like case sensitivity in a programming language? I'm not trying to start a flame war just curious thats all.
Personally I have never really liked it because I find my productivity goes down when ever I have tried a language that has case sensitivity, mind you I am slowly warming up/getting used to it now that I'm using C# and F# alot more then I used to.
So why do you like it?
Cheers | 0 | [
2,
483,
107,
148,
101,
610,
17018,
60,
800,
3726,
3726,
114,
5712,
483,
148,
101,
610,
17018,
19,
21,
3143,
816,
60,
31,
22,
79,
52,
749,
20,
799,
21,
7025,
176,
114,
7686,
30,
18,
65,
9,
7200,
31,
57,
243,
510,
3345,
32,
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... |
Which is correct way to check for Null exception?
===
Which is the most correct code?
if (HttpContext.Current.Response.Cookies[authCookieName] != null) {
HttpContext.Current.Response.Cookies[authCookieName].Value = "New Value";
}
or
if (HttpContext.Current != null)
if (HttpContext.Current.Response != null)
if (HttpContext.Current.Response.Cookies != null)
if (HttpContext.Current.Response.Cookies[authCookieName] != null)
HttpContext.Current.Response.Cookies[authCookieName].Value = "New Value";
| 0 | [
2,
56,
25,
4456,
161,
20,
2631,
26,
16203,
5391,
60,
800,
3726,
3726,
56,
25,
14,
127,
4456,
1797,
60,
100,
13,
5,
21127,
1126,
11969,
9,
17657,
9,
99,
18,
8782,
870,
9,
20840,
1596,
2558,
1346,
96,
716,
17391,
7259,
500,
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... |
What is better practice when programming a member function?
===
I have seen member functions programed both inside of the class they belong to and outside of the class with a function prototype inside of the class. I have only every programmed using the first method, but was wondering if it is better practice to use the other or just personal preference? | 0 | [
2,
98,
25,
574,
1345,
76,
3143,
21,
322,
1990,
60,
800,
3726,
3726,
31,
57,
541,
322,
3719,
625,
69,
156,
572,
16,
14,
718,
59,
6219,
20,
17,
719,
16,
14,
718,
29,
21,
1990,
7063,
572,
16,
14,
718,
9,
31,
57,
104,
352,
286... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
installing starling on windows
===
I am trying to install the starling gem on my windows machine. But, whenever I try to install it i get this error:
Building native extensions. This could take a while...
ERROR: Error installing starling:
ERROR: Failed to build gem native extension.
c:/ruby/bin/ruby.exe extconf.rb install starling -- --srcdir= c:\ruby-1.8.7-p72
checking for windows.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--srcdir=.
--curdir
--ruby=c:/ruby/bin/ruby
Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0
.12.2 for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.12.2/ext/gem_mak
e.out
What do I need to install to provide the windows.h header? | 0 | [
2,
25429,
778,
802,
27,
1936,
800,
3726,
3726,
31,
589,
749,
20,
16146,
14,
778,
802,
8551,
27,
51,
1936,
1940,
9,
47,
15,
6634,
31,
1131,
20,
16146,
32,
31,
164,
48,
7019,
45,
353,
1275,
17529,
9,
48,
110,
247,
21,
133,
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... |
Detecting Mouse clicks in windows using python
===
How can I detect mouse clicks regardless of the window the mouse is in?
Perferabliy in python, but if someone can explain it in any langauge I might be able to figure it out.
I found this on microsoft's site:
http://msdn.microsoft.com/en-us/library/ms645533(VS.85).aspx
But I don't see how I can detect or pick up the notifications listed. | 0 | [
2,
9092,
68,
7567,
10840,
18,
19,
1936,
568,
20059,
800,
3726,
3726,
184,
92,
31,
9092,
7567,
10840,
18,
7148,
16,
14,
1463,
14,
7567,
25,
19,
60,
416,
2407,
58,
12834,
93,
19,
20059,
15,
47,
100,
737,
92,
3271,
32,
19,
186,
6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it possible to convince GCC to mimic the fastcall calling convention?
===
So i have a piece of assembly that needs to call a function with the fastcall calling convention on windows, but gcc doesn't (afaict) support it. GCC does provide the regparm attribute but that expects the first 3 parameters to be passed in eax, edx and ecx, whereas fastcall expects the first two parameters to be passed in ecx and edx.
I'm merely trying to avoid effectively duplicating a few code paths, so this isn't exactly critical, but it would be great if it were avoidable. | 0 | [
2,
25,
32,
938,
20,
6218,
489,
3384,
20,
13567,
14,
1512,
9200,
2555,
3087,
60,
800,
3726,
3726,
86,
31,
57,
21,
1855,
16,
1475,
30,
2274,
20,
645,
21,
1990,
29,
14,
1512,
9200,
2555,
3087,
27,
1936,
15,
47,
489,
3384,
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... |
Setting PDQ inside an SPL - local scope?
===
In order to fine tune allocation of PDQ resources depending on the time of day that batch jobs run, we have a utility that sets PDQPRIORITY based on some day of week / hour of day rules, eg:
PDQPRIORITY=$(throttle); export PDQPRIORITY
However, this is fixed at the time the script starts, so long running jobs never get throttled up or down as they progress. To rectify this, we've tried the following:
CREATE PROCEDURE informix.set_pdq() RETURNING VARCHAR(50);
DEFINE pdq, dow SMALLINT;
DEFINE hr SMALLINT;
LET dow = WEEKDAY(CURRENT);
LET hr = TO_CHAR(CURRENT, '%H');
IF (dow == 0 OR dow == 6 OR hr < 8 OR hr > 14) THEN
LET pdq = 100;
SET PDQPRIORITY 100; -- SET PDQ does not accept a variable name arg.
ELIF (hr >= 8 AND hr <= 10) THEN
LET pdq = 40;
SET PDQPRIORITY 40;
ELIF (hr >= 11 AND hr <= 12) THEN
LET pdq = 60;
SET PDQPRIORITY 60;
ELIF (hr >= 13 AND hr <= 14) THEN
LET pdq = 80;
SET PDQPRIORITY 80;
END IF;
RETURN "PDQPriority set to " || pdq;
END PROCEDURE;
At various intervals throughout the SQL, we've added:
EXECUTE PROCEDURE set_pdq();
However, although it doesn't fail, the scope of the SET PDQ seems to be local to the SPL. `onstat -g mgm` doesn't report any change to the original resources allocated. So adding these `set_pdq()` calls doesn't seem to have had any effect - the resources allocated at the program start remain fixed.
The code is embedded SQL in shell, ie:
dbaccess -e $DBNAME << EOSQL
SELECT .. INTO TEMP ..;
EXECUTE PROCEDURE set_pdq();
SELECT .. INTO TEMP ..;
--etc
EOSQL
So backticks or $( ) interpolation occurs at the start of the script, when the here document gets passed to dbaccess. (That eliminated the obvious: `SET PDQPRIORITY $(throttle);`)
Wow, that got wordy quickly. Can anyone suggest any way of achieving this that doesn't involve rewriting these batch jobs completely? Breaking the SQL down into smaller pieces is not an option because of the heavy reliance on temp tables. | 0 | [
2,
2697,
13,
9251,
1251,
572,
40,
11202,
13,
8,
375,
9914,
60,
800,
3726,
3726,
19,
389,
20,
1123,
6768,
16840,
16,
13,
9251,
1251,
2566,
4758,
27,
14,
85,
16,
208,
30,
13064,
4844,
485,
15,
95,
57,
21,
10082,
30,
3415,
13,
92... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I track what registry changes is done to the system by an install shield installer?
===
I need something like i6compbut for list of reg changes rather than list of files.
Does such a thing exist? | 0 | [
2,
184,
107,
31,
792,
98,
18269,
1693,
25,
677,
20,
14,
329,
34,
40,
16146,
4179,
16146,
106,
60,
800,
3726,
3726,
31,
376,
301,
101,
31,
379,
11103,
811,
26,
968,
16,
7953,
1693,
864,
119,
968,
16,
6488,
9,
630,
145,
21,
584,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
iPhone Proximity Sensor
===
Can the iPhone SDK take advantage of the iPhone's proximity sensors? If so, why hasn't anyone taken advantage of them? I could picture a few decent uses.
For example, in a racing game, you could put your finger on the proximity sensor to go instead of taking up screen real-estate with your thumb. Of course though, if this was your only option, then iPod touch users wouldn't be able to use the application.
Does the proximity sensor tell how close you are, or just that something is in front of it?
| 0 | [
2,
21024,
10493,
14865,
800,
3726,
3726,
92,
14,
21024,
13,
18,
43,
197,
247,
3314,
16,
14,
21024,
22,
18,
10493,
15529,
60,
100,
86,
15,
483,
9979,
22,
38,
1276,
658,
3314,
16,
105,
60,
31,
110,
2151,
21,
310,
12238,
2027,
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... |
Help for Domain Model in UML
===
I would like to ask if it is possible to show Generalization relationship in UML for a Domain Model although I undertstand I can do that in a Class Digram? I did not see much examples of Domain Model displying Generalization Relationship except in Class Diagram. If not possible, what is the best way to display that an Entity in a Domain Model is either a Entity A or Entity B or Entity C or Entity D etc ?
Thank you any help.
Cheers. | 0 | [
2,
448,
26,
4603,
1061,
19,
13,
723,
255,
800,
3726,
3726,
31,
83,
101,
20,
1349,
100,
32,
25,
938,
20,
298,
297,
1829,
1429,
19,
13,
723,
255,
26,
21,
4603,
1061,
419,
31,
131,
38,
10731,
31,
92,
107,
30,
19,
21,
718,
926,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 tell if text on the windows clipboard is ASCII or UTF-8 in C++ ?
===
I would like to know if there is an easy way to detect if the text on the clipboard is in ASCII or UTF-8 ?
Here is my current code:
COleDataObject obj;
if (obj.AttachClipboard())
{
if (obj.IsDataAvailable(CF_TEXT))
{
HGLOBAL hmem = obj.GetGlobalData(CF_TEXT);
CMemFile sf((BYTE*) ::GlobalLock(hmem),(UINT) ::GlobalSize(hmem));
CString buffer;
LPSTR str = buffer.GetBufferSetLength((int)::GlobalSize(hmem));
sf.Read(str,(UINT) ::GlobalSize(hmem));
::GlobalUnlock(hmem);
//this is my string class
s->SetEncoding(ENCODING_8BIT);
s->SetString(buffer);
}
}
}
| 0 | [
2,
184,
20,
494,
100,
1854,
27,
14,
1936,
12229,
2806,
25,
28,
1892,
49,
54,
287,
11720,
8,
457,
19,
272,
20512,
13,
60,
800,
3726,
3726,
31,
83,
101,
20,
143,
100,
80,
25,
40,
2010,
161,
20,
9092,
100,
14,
1854,
27,
14,
122... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get the filename of the currently playing file in Vista Media Center?
===
I have Windows Vista MCML app, and I need to figure out the current name of the file playing.
The Media Center SDK alludes to using MediaMetadata["Title"] to get this information, unfortunately this does not work with playlists (.wpl) files as there is no method for getting the position in the playlist.
| 0 | [
2,
184,
107,
31,
164,
14,
3893,
7259,
16,
14,
871,
791,
3893,
19,
13520,
941,
459,
60,
800,
3726,
3726,
31,
57,
1936,
13520,
1324,
8184,
4865,
15,
17,
31,
376,
20,
1465,
70,
14,
866,
204,
16,
14,
3893,
791,
9,
14,
941,
459,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 control printer tray selection for printer in Windows
===
We need to be able to change the default selected print tray of a given printer. Does anyone have VC++/win32 code for doing this?
In case it matters, I believe we have to change the default setting for the printer. Our print jobs are executed by an application other than ours, so we can't make these kinds of changes in the context of a print operation originating from inside our application. Unless there is some way to modify the default print settings in a different application, I think we are stuck changing the user's defaults for the printer, initiating our print job, then setting the defaults back to the original values.
We'd really prefer to have the defaults change for the current user only, and not require any special UAC elevation, etc...
I suspect that it will use something similar to what is shown in [this MSDN article][1], and involve setting fields in the DEVMODE structure (either dmDefaultSource or dmFormName or both).
Any takers? Or does anyone have any gotchas they'd like to share?
[1]: http://support.microsoft.com/kb/140285 | 0 | [
2,
184,
107,
42,
569,
12925,
10121,
3155,
26,
12925,
19,
1936,
800,
3726,
3726,
95,
376,
20,
44,
777,
20,
753,
14,
12838,
1704,
4793,
10121,
16,
21,
504,
12925,
9,
630,
1276,
57,
13,
8990,
20512,
118,
4181,
3125,
1797,
26,
845,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SQL query for cumulative frequency of list of datetimes
===
I have a list of times in a database column (representing visits to a website).
I need to group them in intervals and then get a 'cumulative frequncy' table of those dates.
For instance I might have:
9:01
9:04
9:11
9:13
9:22
9:24
9:28
and i want to convert that into
9:05 - 2
9:15 - 4
9:25 - 6
9:30 - 7
How can I do that? Can i even easily achieve this in SQL? I can quite easily do it in C# | 0 | [
2,
4444,
255,
25597,
26,
25224,
5328,
16,
968,
16,
1231,
891,
18,
800,
3726,
3726,
31,
57,
21,
968,
16,
436,
19,
21,
6018,
4698,
13,
5,
27752,
7659,
20,
21,
2271,
6,
9,
31,
376,
20,
214,
105,
19,
15899,
17,
94,
164,
21,
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... |
Learning about Auto-Implemented Properties
===
I have the simple class using auto-implemented properies:
Public Class foo
{
public foo() { }
public string BarName {get; set;}
}
I obviously use the variable BarName throughout my class and now need to add logic when the property value is set (it must be all upper case, go figure). Does this mean that I need to now create a private variable for BarName , e.g. _BarName, and change the current BarName variable used throughout my class to _BarName?
Public Class foo
{
public foo() {}
private string _BarName = "";
public string BarName
{
get {return _BarName;}
set {_BarName = Value.ToString().ToUpper();}
}
}
I am trying to make sure I understand the implications of using auto-implemented properties, and what it will entail down the road when/if I need to change something. I am assuming that the refactoring, as shown above, is not a [breaking](http://blogs.msdn.com/abhinaba/archive/2006/04/11/572694.aspx) change because the property is basically staying the same; it just took a little work to keep it that way and add the needed logic.
This seems a fair trade off the the lines and lines of code to setup properties.
| 0 | [
2,
2477,
88,
3108,
8,
8983,
413,
1130,
69,
3704,
800,
3726,
3726,
31,
57,
14,
1935,
718,
568,
3108,
8,
8983,
413,
1130,
69,
4119,
1596,
45,
317,
718,
4310,
111,
13,
1,
317,
4310,
111,
5,
6,
13,
1,
13,
1,
317,
3724,
748,
7259... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Running a SWF from file:/// without having the user change their Flash Player security settings...
===
I have a Flex app that does a a fair amount of network traffic, it uses ExternalInterface to make some javascript calls (for SCORM), it loads XML files, images, video, audio and it has a series of modules that it could be loading at some point...
So the problem is - we now have a requirement where the user needs to run this content locally on a machine that is not connected to the internet (which means they can't connect to Adobe's site to change their security settings.) As you can imagine, when the user doubles clicks on the html page to launch this thing, they are greeted with a security warning that the swf is trying to communicate with another domain other than the one it's in. We can't wrap it in an exe or an AIR app so I unless there is some way to tweak some obscure security settings we may be hosed. Any idea's?
| 0 | [
2,
946,
21,
13,
18,
15263,
37,
3893,
6903,
118,
366,
452,
14,
4155,
753,
66,
4433,
517,
1221,
12410,
9,
9,
9,
800,
3726,
3726,
31,
57,
21,
14409,
4865,
30,
630,
21,
21,
1768,
2006,
16,
982,
2227,
15,
32,
2027,
4886,
6280,
6413... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I access the raw HTTP request data in PHP?
===
I was wondering if there was a way to get at the raw HTTP request data in PHP that doesn't involve using any additional extensions. I've seen the [HTTP][1] functions in the manual, but I don't have the option of installing an extension in my environment.
[1]: http://au2.php.net/http | 0 | [
2,
184,
92,
31,
1381,
14,
4333,
7775,
3772,
1054,
19,
13,
26120,
60,
800,
3726,
3726,
31,
23,
5712,
100,
80,
23,
21,
161,
20,
164,
35,
14,
4333,
7775,
3772,
1054,
19,
13,
26120,
30,
1437,
22,
38,
8847,
568,
186,
1351,
17529,
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... |
How do I create a custom slot in qt4 designer?
===
I don't know how to do this. Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot?
Thanks | 0 | [
2,
184,
107,
31,
1600,
21,
5816,
7958,
19,
2593,
38,
300,
4742,
60,
800,
3726,
3726,
31,
221,
22,
38,
143,
184,
20,
107,
48,
9,
6634,
31,
275,
14,
2800,
118,
18,
5639,
1835,
28223,
1649,
15,
31,
57,
20,
3538,
37,
14,
3149,
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... |
How can I display a calendar control (date picker) in Oracle forms 9/10?
===
How can I display a calendar control (date picker) in Oracle forms 9/10? | 0 | [
2,
184,
92,
31,
3042,
21,
7036,
569,
13,
5,
8209,
2036,
106,
6,
19,
15759,
1997,
13,
12766,
1036,
60,
800,
3726,
3726,
184,
92,
31,
3042,
21,
7036,
569,
13,
5,
8209,
2036,
106,
6,
19,
15759,
1997,
13,
12766,
1036,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
How to add a Tooltip to a "td" with jquery?
===
I need to add a tooltip/alt to a "td" element inside of my tables with jquery.
Can someone help me out?
I tried:
var tTip ="Hello world";
$(this).attr("onmouseover", tip(tTip));
where I have verified that I am using the "td" as "this". | 0 | [
2,
184,
20,
3547,
21,
5607,
10169,
20,
21,
13,
7,
38,
43,
7,
29,
487,
8190,
93,
60,
800,
3726,
3726,
31,
376,
20,
3547,
21,
5607,
10169,
118,
192,
38,
20,
21,
13,
7,
38,
43,
7,
4520,
572,
16,
51,
7484,
29,
487,
8190,
93,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Regular Expression using large amount of memory
===
I'm running a regular expression against a large scalar. Though this match isn't capturing anything, my process grows by 30M after this match:
# A
if (${$c} =~ m/\G<<\s*/cgs)
{
#B
...
}
$c is a reference to a pretty big scalar (around 21M), but I've verified that pos(${$c}) is in the right place and the expression matches at the first character, with pos(${$c}) being updated to the correct place after the match. But as I mentioned, the process has grown by about 30M between #A and #B, even though I'm not capturing anything with this match. Where is my memory going? | 0 | [
2,
416,
255,
1290,
1803,
568,
370,
2006,
16,
1912,
800,
3726,
3726,
31,
22,
79,
946,
21,
1290,
1803,
149,
21,
370,
28960,
9,
362,
48,
730,
2532,
22,
38,
12859,
602,
15,
51,
953,
7120,
34,
712,
79,
75,
48,
730,
45,
6926,
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... |
how do I specify the source code directory in VS when looking at the call stack of a memory dump?
===
I am analyzing a .dmp file that was created and I have a call stack which gives me a lot of info. But I'd like to double click on the call stack and have it bring me to the source code.
I can right click on the call stack and select symbol settings.. where I can put the location to the PDB. But there is no option for the source code directory.
| 0 | [
2,
184,
107,
31,
19077,
14,
1267,
1797,
16755,
19,
4611,
76,
699,
35,
14,
645,
7566,
16,
21,
1912,
11424,
60,
800,
3726,
3726,
31,
589,
23543,
21,
13,
9,
43,
2554,
3893,
30,
23,
679,
17,
31,
57,
21,
645,
7566,
56,
2352,
55,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 provide a suffix for days of the month?
===
I need a function to return a suffix for days when displaying text like the "`th`" in "`Wednesday June 5th, 2008`".
It only need work for the numbers 1 through 31 (no error checking required) and English. | 0 | [
2,
184,
107,
31,
1181,
21,
15447,
26,
509,
16,
14,
1617,
60,
800,
3726,
3726,
31,
376,
21,
1990,
20,
788,
21,
15447,
26,
509,
76,
17418,
1854,
101,
14,
13,
7,
1,
96,
1,
7,
19,
13,
7,
1,
458,
43,
2696,
1185,
295,
331,
96,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Practical usings of "internal" keyword in C#
===
Would you explain, please, what are practical usings of "internal" keyword in C#? I know what "internal" modifier limits access to the current assembly. But when could I need it?
Thanks! | 0 | [
2,
5713,
568,
18,
16,
13,
7,
6280,
5025,
7,
1246,
9587,
19,
272,
5910,
800,
3726,
3726,
83,
42,
3271,
15,
2247,
15,
98,
50,
5713,
568,
18,
16,
13,
7,
6280,
5025,
7,
1246,
9587,
19,
272,
5910,
60,
31,
143,
98,
13,
7,
6280,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 debug RESTful services?
===
I'm looking for an easy way to lightweight way to debug RESTful services. For example, most webapps can be debugged using your average web browser. Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST.
I am not looking to automate tests. I'd like to run new services through a quick sanity check, ideally without having to writing my own client. | 0 | [
2,
184,
20,
121,
16254,
760,
1566,
687,
60,
800,
3726,
3726,
31,
22,
79,
699,
26,
40,
2010,
161,
20,
13613,
161,
20,
121,
16254,
760,
1566,
687,
9,
26,
823,
15,
127,
2741,
7753,
18,
92,
44,
121,
2345,
15186,
568,
154,
862,
274... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 programmers of other languages, besides C++, use, know or understand RAII?
===
I've noticed RAII has been getting lots of attention on Stackoverflow, but in my circles (mostly C++) RAII is so obvious its like asking what's a class or a destructor.
So I'm really curious if that's because I'm surrounded daily, by hard-core C++ programmers, and RAII just isn't that well known in general (including C++), or if all this questioning on Stackoverflow is due to the fact that I'm now in contact with programmers that didn't grow up with C++, and in other languages people just don't use/know about RAII?
| 0 | [
2,
107,
17968,
18,
16,
89,
2556,
15,
3410,
272,
20512,
15,
275,
15,
143,
54,
1369,
6623,
49,
60,
800,
3726,
3726,
31,
22,
195,
2711,
6623,
49,
63,
74,
1017,
7503,
16,
1220,
27,
7566,
2549,
9990,
15,
47,
19,
51,
7845,
13,
5,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
end() function
===
The `end()` function in jQuery reverts the element set back to what it was before the last destructive change, so I can see how it's supposed to be used, but I've seen some code examples (which were probably from older versions of jQuery) which finished every statement off with `.end()`. eg:
$('#myBox')
.html("Blah")
.show()
.end()
;
- Does this have any effect?
- Is it something I should also be doing?
- What does the above code even return? | 0 | [
2,
241,
5,
6,
1990,
800,
3726,
3726,
14,
13,
1,
2451,
5,
6,
1,
1990,
19,
487,
8190,
93,
24156,
18,
14,
4520,
309,
97,
20,
98,
32,
23,
115,
14,
236,
19439,
753,
15,
86,
31,
92,
196,
184,
32,
22,
18,
2293,
20,
44,
147,
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 do you show animated GIFs on a Windows Form (c#)
===
I have a form showing progress messages as a fairly long process runs. It's a call to a web service so I can't really show a percentage complete figure on a progress bar meaningfully. (I don't particularly like the Marquee property of the progress bar)
I would like to show an animated GIF to give the process the feel of some activity (e.g. files flying from one computer to another like Windows copy process).
How do you do this? | 0 | [
2,
184,
107,
42,
298,
5784,
489,
821,
18,
27,
21,
1936,
505,
13,
5,
150,
5910,
6,
800,
3726,
3726,
31,
57,
21,
505,
3187,
3455,
7561,
28,
21,
6647,
175,
953,
1461,
9,
32,
22,
18,
21,
645,
20,
21,
2741,
365,
86,
31,
92,
22,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is it advisable to build a web service over other web services?
===
I've inherited this really weird codebase where they've built an **external** web service over a bunch of **internal** web services just to add authentication/authorization using _WS-Security_, _WS-Encryption_, et al. Less than a month into this engagement, I'm already feeling the pain of coupling volatile components through rigid WSDL, esp considering some of them use WCF and other choose to go WSDL first. Managing various version os generated proxies and wrappers at various levels is a nightmare!
I'll admit the design is over-complicated and could have been much better, but my essentially:
* Would you ever build a web service just to provide a cross cutting concern over a bunch of services?
* Would this be better implemented as web service handlers?
and lastly...
* Would you categorize this under the Web Service Gateway pattern? | 0 | [
2,
25,
32,
21,
43,
3762,
579,
20,
1895,
21,
2741,
365,
84,
89,
2741,
687,
60,
800,
3726,
3726,
31,
22,
195,
7179,
48,
510,
5455,
1797,
8436,
113,
59,
22,
195,
392,
40,
13,
1409,
1706,
8766,
192,
1409,
2741,
365,
84,
21,
7653,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
For your complicated algorithms, how do you measure its performance?
===
Let's just assume for now that you have narrowed down where the typical bottlenecks in your app are. For all you know, it might be the batch process you run to reindex your tables; it could be the SQL queries that runs over your effective-dated trees; it could be the XML marshalling of a few hundred composite objects. In other words, you might ahve something like this:
public Result takeAnAnnoyingLongTime(Input in) {
// impl of above
}
Unfortunately, even after you've identified your bottleneck, all you can do is chip away at it. No simple solution is available.
How do you measure the performance of your bottleneck so that you know your fixes are headed in the right direction? | 0 | [
2,
26,
154,
8343,
15935,
15,
184,
107,
42,
4058,
82,
956,
60,
800,
3726,
3726,
408,
22,
18,
114,
7158,
26,
130,
30,
42,
57,
7596,
125,
113,
14,
3874,
4040,
9870,
18,
19,
154,
4865,
50,
9,
26,
65,
42,
143,
15,
32,
530,
44,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the syntax for custom stacks for the OSX Leopard dock?
===
I know there is a command line syntax for adding custom stacks to the OSX Leopard dock besides the "Downloads" which comes by default. What is it? | 0 | [
2,
98,
25,
14,
22649,
26,
5816,
7566,
18,
26,
14,
13,
759,
396,
15446,
6120,
60,
800,
3726,
3726,
31,
143,
80,
25,
21,
1202,
293,
22649,
26,
4721,
5816,
7566,
18,
20,
14,
13,
759,
396,
15446,
6120,
3410,
14,
13,
7,
2968,
8294,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Does Common Lisp have a something like java's Set Interface/implementing classes?
===
I need something like [this][1], a collection of elements which contains no duplicates of any element. Does Common Lisp, specifically SBCL, have any thing like this?
[1]: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Set.html | 0 | [
2,
630,
757,
2093,
3401,
57,
21,
301,
101,
8247,
22,
18,
309,
6573,
118,
8983,
413,
1130,
68,
2684,
60,
800,
3726,
3726,
31,
376,
301,
101,
636,
1565,
500,
2558,
165,
500,
15,
21,
1206,
16,
2065,
56,
1588,
90,
19429,
18,
16,
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... |
Assembly dependancies with .Net projects
===
If I have an assembly (A) which references another assembly (B).
I want to reference A in a project, I add the reference and it copies A into my BIN directory. It does not copy B as well, even though A depends on it, so the code doesn't compile.
How can I set things up so that whenever I reference A, both A and B get copied to my bin directory? | 0 | [
2,
1475,
12547,
210,
10807,
29,
13,
9,
2328,
2314,
800,
3726,
3726,
100,
31,
57,
40,
1475,
13,
5,
58,
6,
56,
7231,
226,
1475,
13,
5,
220,
6,
9,
31,
259,
20,
2801,
21,
19,
21,
669,
15,
31,
3547,
14,
2801,
17,
32,
3298,
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... |
Are the PUT, DELETE, HEAD, etc methods available in most web browsers?
===
I've seen a couple questions around here like [How to debug RESTful services](http://stackoverflow.com/questions/165720/how-to-debug-restful-services), which mentions:
> Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST.
I've also heard this, that browsers support only GET and POST, from some other sources like:
* http://www.packetizer.com/ws/rest.html
* http://www.mail-archive.com/jmeter-user@jakarta.apache.org/msg13518.html
* http://www.xml.com/cs/user/view/cs_msg/1098
However, a few quick tests in Firefox show that sending `PUT` and `DELETE` requests works as expected -- the `XMLHttpRequest` completes successfully, and the request shows up in the server logs with the right method. Is there some aspect to this I'm missing, such as cross-browser compatibility or non-obvious limitations? | 0 | [
2,
50,
14,
442,
15,
27448,
15,
157,
15,
2722,
3195,
904,
19,
127,
2741,
16495,
18,
60,
800,
3726,
3726,
31,
22,
195,
541,
21,
1335,
2346,
140,
235,
101,
636,
1544,
20,
121,
16254,
760,
1566,
687,
500,
5,
21127,
6903,
25325,
2549... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Opinion: in HTML, Possible Duplicate IDs or Non-Standard Attributes?
===
It seems pretty common to want to let your javascript know a particular dom node corresponds to a record in the database. So, how do you do it?
One way I've seen that's pretty common is to use a class for the type and an id for the id:
<div class="thing" id="5">
<script> myThing = select(".thing#5") </script>
There's a slight html standards issue with this though -- if you have more than one type of record on the page, you may end up duplicating IDs. But that doesn't do anything bad, does it?
An alternative is to use non-standard attributes:
<div thing_id="5">
<script> myThing = select("[thing_id=5]") </script>
This gets around the duplicate IDs problem, but it does mean you have to deal with attributes instead of IDs, which is sometimes more difficult. What do you guys think? | 0 | [
2,
4052,
45,
19,
13,
15895,
15,
938,
19429,
13,
9178,
54,
538,
8,
15566,
13422,
60,
800,
3726,
3726,
32,
2206,
1772,
757,
20,
259,
20,
408,
154,
8247,
8741,
143,
21,
1498,
11859,
15421,
17016,
20,
21,
571,
19,
14,
6018,
9,
86,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 nicest way to do observer/observable in objective-c (iphone version)
===
I'm used to coding JAVA Swing UIs, and in those if you have some properties that change, and you want your UI to update, you would implement the observer/observable pattern. In JAVA you do this normally by having your class maintain a list of listeners that it notifies of different events.
I've played with Objective-C on the mac, and that has KVC and binding which seems to work very nicely, and requires less code. The iPhone SDK doesn't seem to have this functionality though, so my question is:
If I have a class that holds data that changes, what's the best way for me to register a UI component with that class so that it can be notified of changes in the data that it needs to display? | 0 | [
2,
98,
22,
18,
14,
2210,
384,
161,
20,
107,
9855,
118,
4995,
10321,
579,
19,
7038,
8,
150,
13,
5,
49,
7709,
615,
6,
800,
3726,
3726,
31,
22,
79,
147,
20,
13,
15458,
8247,
5587,
287,
403,
15,
17,
19,
273,
100,
42,
57,
109,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.