unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
populating data to worksheet from vba data entry form
===
with almost 0 knowledge in VBA i have created a Data Form to enter daily voucher with
1 MS Date and time picker
2 TextBox1 for amount (Validate for Numeric value Only) Working fine
3 OptionButton1 for Cash
4 OptionButton2 for Cheque
5 TextBox2 for the name of Person May be I can Change it in to ComboBox
6 TextBox3 for 'Paid for' any value can be entered
7 ComboBox1 for Subcategory (list is in worksheet2 (List) Working fine
8 TextBox4 for Remarks any value can be entered
9 CommandButton1 for add the data into worksheet3(Database)
10CommandButton2 for show the 'database' worksheet
11CommandButton3 for closing the form Working fine
And a CommandButton into sheet1(Form) to open the Form Working fine
I want to enter the data into the form and Populate this data to worksheet3(Database) as
Date in B3 Paid To(C4) Paid For(D4) Sub Category ( E4) Remarks (G4) Amount (H4)
F4 is free for a VLOOKUP
I also want to have a data edit option in the form may be with a auto generate Voucher no with recall option
Can any one help me with the appropriate code for the same
Note: I am creating with office 2007 but also want to use it in Xp Professional
Thanks in advance
| 0 | [
2,
1675,
10038,
1054,
20,
170,
17627,
37,
566,
969,
1054,
2792,
505,
800,
3726,
3726,
29,
557,
713,
1918,
19,
566,
969,
31,
57,
679,
21,
1054,
505,
20,
2830,
1954,
566,
15523,
139,
29,
137,
4235,
1231,
17,
85,
2036,
106,
172,
18... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to launch MediaPlayerLauncher using device's isolated storage
===
I would like to simply launch the MediaPlayerLauncher task, but I would like to use media that is already on the WP7 device. From my research it seems that to use this task, one must first include media packaged as a resource, or use media that is saved in the applications isolated storage. Is there a way to only use the phone's isolated storage so that the MediaPlayerLauncher task may load using media from the default media player application (for instance if a user places music on a phone from his or her computer, that media would be recognized and loaded into the MediaPlayerLauncher).
Basically what I would like to accomplish in the end is for the WP& default media player to load as it does when a user clicks the tab, although if the user wants to select music, the music section would load instead of the default zune section. Is this even the right task to accomplish this, and if not is there a way to use default phone functionality like this? If not, is there another option? | 0 | [
2,
184,
20,
3394,
941,
14049,
18494,
106,
568,
3646,
22,
18,
6331,
4326,
800,
3726,
3726,
31,
83,
101,
20,
1659,
3394,
14,
941,
14049,
18494,
106,
3005,
15,
47,
31,
83,
101,
20,
275,
941,
30,
25,
614,
27,
14,
13,
13790,
465,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Is there a script to delete a message from a facebook conversation, without deleting the whole conversation?
===
I tried to send a very long message, about 90,000 character, to a friend. I got sending error, but when I checked his name in inbox the message appeared under his name. when I click on his name the page seems like to continue loading but nothing appears.
I want to know if there is any script to help me delete only that message without deleting all of my conversations with him?
Thanks for any help. | 2 | [
2,
25,
80,
21,
3884,
20,
27448,
21,
2802,
37,
21,
9090,
2735,
15,
366,
121,
1336,
68,
14,
979,
2735,
60,
800,
3726,
3726,
31,
794,
20,
2660,
21,
253,
175,
2802,
15,
88,
13,
23324,
925,
15,
20,
21,
860,
9,
31,
330,
4907,
7019... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Session details in Chrome
===
How read cookie values like expires, httponly, etc?
I know I can find all these information in Dev Tools/Resources/Cookies. I read about restrictions in accessing to cookies from JS.
I would like to create chrome extensions with JS which will tell me if the website violate my "default security level" during the time I'm using the website.
For example if the website change the session id while changing http to https, if it allow to send cookies also to subdomains and so on.
Thank you in advance for suggestions. | 0 | [
2,
3723,
3289,
19,
13,
12985,
800,
3726,
3726,
184,
1302,
19980,
4070,
101,
25910,
18,
15,
7775,
4965,
15,
2722,
60,
31,
143,
31,
92,
477,
65,
158,
676,
19,
9664,
4672,
118,
99,
12097,
18,
118,
20840,
1596,
9,
31,
1302,
88,
9245... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Map opaque section of image
===
I was wondering how one would go about automatically making an image map based on just the opaque parts of a png image. You are normally able to click anywhere on the png image, even transparent areas, and it will register as clicking the image. Is there any way to exclude transparent areas and only have opaque areas register?
I assume there is some sort of javascript color detection feature, or something along those lines. I have access to jQuery on my website, as well.
Thank you for taking time to read and answer. | 0 | [
2,
2942,
29068,
1050,
16,
1961,
800,
3726,
3726,
31,
23,
5712,
184,
53,
83,
162,
88,
7499,
544,
40,
1961,
2942,
432,
27,
114,
14,
29068,
1341,
16,
21,
351,
2723,
1961,
9,
42,
50,
4147,
777,
20,
10840,
4922,
27,
14,
351,
2723,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Clang Postorder Traversal
===
I want to traverse the AST from a C program in postorder. I've found [RecursiveASTVisitor][1] so far to traverse a tree in preorder. I thought of overriding the Traverse* methods. However, I think it is quite complicated for a relatively common task. Is there a simpler way to do it or a class which I haven't found yet?
[1]: http://clang.llvm.org/doxygen/classclang_1_1RecursiveASTVisitor.html | 0 | [
2,
4258,
263,
678,
7861,
19501,
192,
800,
3726,
3726,
31,
259,
20,
15810,
14,
28,
38,
37,
21,
272,
625,
19,
678,
7861,
9,
31,
22,
195,
216,
636,
99,
24244,
472,
1709,
11368,
2153,
500,
2558,
165,
500,
86,
463,
20,
15810,
21,
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... |
Propel Nested Set Undelete Soft Deleted
===
I have the following problem:
I use propel and soft delete and propel nested set.
When i delete a node without children and then do $node->undelete() everything is fine, node is recovering from soft delete. But if a node have children and delete it then if i do $node->undelete() it recovers only the node without any children....
Any ideas or solutions?
Thanks a lot. | 0 | [
2,
17799,
5618,
69,
309,
367,
24249,
591,
1856,
19584,
800,
3726,
3726,
31,
57,
14,
249,
1448,
45,
31,
275,
17799,
17,
1856,
27448,
17,
17799,
5618,
69,
309,
9,
76,
31,
27448,
21,
15421,
366,
391,
17,
94,
107,
5579,
251,
546,
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... |
<mvc:annotation-driven /> shows compile time error
===
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd"
>
This is my schema declaration. But mvc:annotation-driven it shows compile time error.
The matching wildcard is strict, but no declaration can be found for element. I could not find the problem properly. So please help for finding this problem.
Error:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:annotation-driven'.
Can you please tell me what is the problem?
| 0 | [
2,
13,
1,
79,
8990,
45,
210,
1270,
857,
8,
14489,
13,
118,
1,
1285,
26561,
85,
7019,
800,
3726,
3726,
13,
1,
863,
5950,
23504,
2172,
3726,
7,
21127,
6903,
6483,
9,
15827,
8361,
3783,
9,
5583,
118,
7526,
540,
118,
863,
5950,
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... |
Error C2440 cannot convert struct to unsigned char?
===
int length = sizeof (blue);
red = gcnew array (length);// C2440
for (int i = 0; i < length; i++)
{
red[i] = blue[i];
}
delete blue;
blue = nullptr;
Cannot convert from struct to unsigned char, please help with this conversion.... | 0 | [
2,
7019,
272,
135,
16403,
1967,
8406,
13,
10346,
20,
28839,
4892,
60,
800,
3726,
3726,
19,
38,
1476,
800,
1072,
1041,
13,
5,
6997,
6,
73,
402,
800,
13,
10362,
2681,
7718,
13,
5,
6325,
6,
73,
118,
118,
272,
135,
16403,
26,
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 this strange conditional operator syntax?
===
I recently saw the following in the codebase:
bool bRes = (a < b) ? a=b, true : false;
If `a < b`, then `a=b` is executed and `bRes` is true.
What exactly is going on here? The docs for conditional operator don't mention anything about chaining expressions.
| 0 | [
2,
98,
25,
48,
2578,
21206,
6022,
22649,
60,
800,
3726,
3726,
31,
1989,
441,
14,
249,
19,
14,
1797,
8436,
45,
1607,
1823,
4929,
18,
800,
13,
5,
58,
13,
1,
334,
6,
13,
60,
21,
3726,
220,
15,
1151,
13,
45,
4997,
73,
100,
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... |
IE8 embedded font dissapears on refresh
===
I am using an embedded font via `@fontface` and it works fine... **until** on IE8 (Haven't tried on newer versions) when you do something crazy like refresh the page, or use the backward and forward buttons to reload the page.
What's evem worse is that it doesn't even default to a font in my font stack, it appears to go straight to Arial (with some serious spacing issues).
A live example can be seen here:
http://rcnhca.org.uk/sites/first_steps/
An image comparison for your viewing pleasure:
![Image comparison][1]
The relevant CSS for your perusing pleasure:
@font-face {
font-family: 'DroidSerifRegular';
src: url('DroidSerif-Regular-webfont.eot');
src: url('DroidSerif-Regular-webfont.eot?#iefix') format('embedded-opentype'),
url('DroidSerif-Regular-webfont.woff') format('woff'),
url('DroidSerif-Regular-webfont.ttf') format('truetype'),
url('DroidSerif-Regular-webfont.svg#DroidSerifRegular') format('svg');
font-weight: normal;
font-style: normal;
}
[1]: http://i.stack.imgur.com/ED6AZ.png | 0 | [
2,
13,
660,
457,
12138,
9978,
1460,
18,
2552,
10717,
18,
27,
24905,
800,
3726,
3726,
31,
589,
568,
40,
12138,
9978,
1197,
13,
1,
21931,
6413,
1,
17,
32,
693,
1123,
9,
9,
9,
13,
1409,
12772,
1409,
27,
13,
660,
457,
13,
5,
9671,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Java GridBag Layout not working properly
===
I have two tables and two buttons. I want table-1 to be in the first column and as wide as 3 units, then I want the two buttons to the right of the table much more narrower (1 units in width), I want button one on the top and button2 on the bottom. Now to the right of these buttons I want the other table (table-2) again as wide as 3 units. To achieve this I have used the following constraints:
//table1
c = new GridBagConstraints(0, 0, 3, 2, 1, 1,
GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
new Insets(0, 0, 0, 0), 0, 0);
c.fill = GridBagConstraints.BOTH;
outerPanel.add(all_app_scrollpane, c);
//button1
c = new GridBagConstraints(3, 0, 1, 1, 1, 1,
GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
new Insets(0, 0, 0, 0), 0, 0);
outerPanel.add(addButton, c);
//button2
c = new GridBagConstraints(3, 1, 1, 1, 1, 1,
GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
new Insets(0, 0, 0, 0), 0, 0);
outerPanel.add(removeButton, c);
//table2
c = new GridBagConstraints(4, 0, 3, 2, 1, 1,
GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
new Insets(0, 0, 0, 0), 0, 0);
c.fill = GridBagConstraints.BOTH;
outerPanel.add(curr_app_scrollpane, c);
Let's look at the GridBagCOnstraints of table1. As far as I know, the first parameter states that it will start from the 0. column and will be 3 columns wide (third parameter).
And then button1 will start from the third column and will be one column wide. But I think I know something wrong as the result is very different then I expect.
![enter image description here][1]
[1]: http://i.stack.imgur.com/tyNpT.png
I want these buttons much more narrower and tables much wider. How can I do that? I want to accomplish this using GridBag, as this small panel is just a small part of a very complex gui, and the whole gui is designed using gridbag. So I don't want to change the coding style. | 0 | [
2,
8247,
7354,
8632,
9106,
52,
638,
7428,
800,
3726,
3726,
31,
57,
81,
7484,
17,
81,
12861,
9,
31,
259,
859,
8,
165,
20,
44,
19,
14,
64,
4698,
17,
28,
1051,
28,
203,
1398,
15,
94,
31,
259,
14,
81,
12861,
20,
14,
193,
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... |
Recording bandwidth usage of a legacy Java application
===
I know that there are a lot of threads on monitoring and/or limiting network bandwidth usage, but none of them provide a satisfactory answer. Here is my problem:
I have a legacy java application which communicates to different servers (like HTTP and JMS). My application can also receive incoming HTTP requests as well. Now, this application is now supposed to be deployed in a cloud infrastructure to provide a SaaS model. The pricing model for the consumers is supposed to be based on the bandwidth flow in and out of the application.
So, we need to device a way to count the number of bytes flowing in and out of the application through all sources (basically, all sockets that are created). The code base is huge and uses third party communication libraries in certain cases so active code changes are not possible everywhere. Also, the application is a legacy java application supported on all platforms, the solution should be workable on all platforms as well. I dont want to use third party external monitoring tools to do the job. Instead, need to find a solution which can be baked into the system, **passively**, to get the job done.
What are the ways/options/solutions to get this done? Any help is appreciated. | 0 | [
2,
1576,
23392,
7514,
16,
21,
7780,
8247,
3010,
800,
3726,
3726,
31,
143,
30,
80,
50,
21,
865,
16,
20396,
27,
8984,
17,
118,
248,
17567,
982,
23392,
7514,
15,
47,
2369,
16,
105,
1181,
21,
25549,
1623,
9,
235,
25,
51,
1448,
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... |
Sql group by dates and then find avg
===
I have a database, including the field "Date" of the form e.g. "2012-06-13 23:34:52+00" and the field "Sentiment", including a double signed value between -1 and 1. What I want is to calculate the average sentiment, grouped by each hour of the day. For example, I would like to have as a result the following table:
Hour......Average Sentiment
00 ......... 0.5
01 ......... -0.2
...
24 ......... 0.7
I guess I'll have to use group by, the avg function and probably some wildcards to extract the hour from "Date". If someone is more experienced, please help me find the most efficient way of querying this.
Thank you. | 0 | [
2,
4444,
255,
214,
34,
4076,
17,
94,
477,
21,
22955,
800,
3726,
3726,
31,
57,
21,
6018,
15,
215,
14,
575,
13,
7,
8209,
7,
16,
14,
505,
13,
62,
9,
263,
9,
13,
7,
3212,
8,
3370,
8,
1543,
1137,
21524,
21956,
2430,
2032,
7,
17... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JavaScript : Using slash in window.location.hash
===
If I change the hash like so: `window.location.hash = "main/0/sub/1/na/false";`.
The address in the browser changes to `http://mysite.com/#main/0/sub/1/na/false`.
Page's onhashchange function fires and everything works like it is supposed to.
However, in Firebug I can see that I'm also sending a request to: `http://mysite.com/main/0/sub/1/na/false` ... URL without hash, which results in a silent 404 in the console.
When I debug I find that it happens at the `window.location.hash` point.
But, if I change the hash like so: `window.location.hash = "main=0&sub=1&na=false";` no additional request is sent.
Why is the additional request being sent in the first example? | 0 | [
2,
8247,
8741,
13,
45,
568,
14098,
19,
1463,
9,
19032,
9,
25436,
800,
3726,
3726,
100,
31,
753,
14,
19170,
101,
86,
45,
13,
1,
27508,
9,
19032,
9,
25436,
800,
13,
7,
6232,
118,
15928,
7563,
118,
8197,
325,
118,
13192,
870,
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... |
XSD element only as root node
===
There are essentially to ways to write an XSD:
1.) Use one single element (the root node) with an anonymous type. Describe the rest of the document only using either anonymous or explicit types
2.) Describe each tag as an element with anonymous type and use explicit types only to avoid redundancy (e.g. inheritance or when two elements use the same type)
At the beginning, I used (1).
From time to time I moved to method (2) where right now all my XSDs are written that way.
Now I have the problem that each element can appear as the root node of a document! But I still want that only one specific element is defined as the root node and starting from this, the document structure is described.
Is there a way to avoid this without falling back to (1) ?
In any case, What is the preferable method to write XSDs?
| 0 | [
2,
993,
18,
43,
4520,
104,
28,
5900,
15421,
800,
3726,
3726,
80,
50,
7398,
20,
2847,
20,
2757,
40,
993,
18,
43,
45,
137,
9,
6,
275,
53,
345,
4520,
13,
5,
124,
5900,
15421,
6,
29,
40,
10364,
1001,
9,
4996,
14,
760,
16,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Run the dll file in c# using command prompt
===
How to compile the .dll files created by c# through command prompt? | 0 | [
2,
485,
14,
13,
43,
211,
3893,
19,
272,
5910,
568,
1202,
11443,
4417,
800,
3726,
3726,
184,
20,
26561,
14,
13,
9,
43,
211,
6488,
679,
34,
272,
5910,
120,
1202,
11443,
4417,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Skeletal animation using parsed data from COLLADA file in Three.js
===
I have experimented with the example COLLADA parser colladaloader.js and imported a skeletal animated collada model "Seymour_anim2.dae" from http://collada.org/owl/browse.php?sess=0&parent=131&expand=0&order=name&curview=0 using mrdoob.github.com/three.js/examples/webgl_loader_collada.html and http://mrdoob.github.com/three.js/examples/webgl_animation_skinning.html as an example. The loader seems to parse and store the skeleton structure and some skeletal animation data either in collada.animations or collada.dae.animations. The problem is that I can't get the skeletal animation to work using the methods in the examples.
Now, I'm wondering is there something wrong with the COLLADA parser, or are there some other methods/tricks in Three.js that could be used to play the skeletal animation of my model? I'd love to hear if you have any ideas how this could be done neatly in Three.js or is this even possible yet. | 0 | [
2,
23185,
6236,
568,
2017,
18,
69,
1054,
37,
9470,
4405,
3893,
19,
132,
9,
728,
18,
800,
3726,
3726,
31,
57,
23418,
29,
14,
823,
9470,
4405,
2017,
4104,
9470,
4405,
8294,
106,
9,
728,
18,
17,
11808,
21,
23185,
5784,
9470,
4405,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Contact form - success message
===
I am using a contact form and at the moment when you submit your details you are brought to a new page with a "thank you" message. I don't want users to be re-directed to a new page and instead I would like the "thank you" message to be displayed on the same page as the form. The code I am using is below.
**Contact form code:**
<form name="htmlform" method="post" action="html_form_send.php">
<table width="450px">
</tr>
<tr>
<td valign="top">
<label for="first_name">First Name *</label>
</td>
<td valign="top">
<input type="text" name="first_name" maxlength="50" size="30">
</td>
</tr>
<tr>
<td valign="top"">
<label for="last_name">Last Name *</label>
</td>
<td valign="top">
<input type="text" name="last_name" maxlength="50" size="30">
</td>
</tr>
<tr>
<td valign="top">
<label for="email">Email Address *</label>
</td>
<td valign="top">
<input type="text" name="email" maxlength="80" size="30">
</td>
</tr>
<tr>
<td valign="top">
<label for="telephone">Telephone Number</label>
</td>
<td valign="top">
<input type="text" name="telephone" maxlength="30" size="30">
</td>
</tr>
<tr>
<td valign="top">
<label for="comments">Comments *</label>
</td>
<td valign="top">
<textarea name="comments" maxlength="1000" cols="25" rows="6"></textarea>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">
<input type="submit" value="Submit">
</td>
</tr>
</table>
</form>
**PHP code to send form:**
<?php
if(isset($_POST['email'])) {
// CHANGE THE TWO LINES BELOW
$email_to = "you@yourdomain.com";
$email_subject = "website html form submissions";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}
// validation expected data exists
if(!isset($_POST['first_name']) ||
!isset($_POST['last_name']) ||
!isset($_POST['email']) ||
!isset($_POST['telephone']) ||
!isset($_POST['comments'])) {
died('We are sorry, but there appears to be a problem with the form you submitted.');
}
$first_name = $_POST['first_name']; // required
$last_name = $_POST['last_name']; // required
$email_from = $_POST['email']; // required
$telephone = $_POST['telephone']; // not required
$comments = $_POST['comments']; // required
$error_message = "";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
if(!preg_match($email_exp,$email_from)) {
$error_message .= 'The Email Address you entered does not appear to be valid.<br />';
}
$string_exp = "/^[A-Za-z .'-]+$/";
if(!preg_match($string_exp,$first_name)) {
$error_message .= 'The First Name you entered does not appear to be valid.<br />';
}
if(!preg_match($string_exp,$last_name)) {
$error_message .= 'The Last Name you entered does not appear to be valid.<br />';
}
if(strlen($comments) < 2) {
$error_message .= 'The Comments you entered do not appear to be valid.<br />';
}
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
$email_message .= "First Name: ".clean_string($first_name)."\n";
$email_message .= "Last Name: ".clean_string($last_name)."\n";
$email_message .= "Email: ".clean_string($email_from)."\n";
$email_message .= "Telephone: ".clean_string($telephone)."\n";
$email_message .= "Comments: ".clean_string($comments)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
<!-- place your own success html below -->
Thank you for contacting us. We will be in touch with you very soon.
<?php
}
die();
?> | 0 | [
2,
2203,
505,
13,
8,
1280,
2802,
800,
3726,
3726,
31,
589,
568,
21,
2203,
505,
17,
35,
14,
688,
76,
42,
12298,
154,
3289,
42,
50,
809,
20,
21,
78,
2478,
29,
21,
13,
7,
5904,
42,
7,
2802,
9,
31,
221,
22,
38,
259,
3878,
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... |
End application from class library project
===
How can I close or end the application from library project?
For example I have made a function in a library project to check if SD Card is available or not. So if sd card is not available i want to display a dialog box with button. On button click I want to close the application. I tried finish() but it didn't work. | 0 | [
2,
241,
3010,
37,
718,
1248,
669,
800,
3726,
3726,
184,
92,
31,
543,
54,
241,
14,
3010,
37,
1248,
669,
60,
26,
823,
31,
57,
117,
21,
1990,
19,
21,
1248,
669,
20,
2631,
100,
13,
18,
43,
2056,
25,
904,
54,
52,
9,
86,
100,
13... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to SSH to guest ubuntu OS in vmplayer4
===
I have installed vmplayer4.0.4 on Windows7, and install ubuntu12.04 as Guest OS.
Basically i have two problems:
(1) Default vmplayer use NAT for network access. I could ping the guest OS from the Host OS. But how could i access the Guest OS from outside the Host OS?
(2) If i change to Bridged Mode, sure the Guest Ubuntu OS could get DHCP ip in the same subnet as Host OS. But i could not ping the Guest OS from the Host OS, or vice versa, even if i disable the iptables firewall on Ubuntu Guest OS like following:
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
I could not figure it out, could anyone help on this issue? Thanks in advance. | 2 | [
2,
184,
20,
13,
18,
1635,
20,
2427,
287,
12968,
2473,
13,
759,
19,
13,
20147,
14049,
300,
800,
3726,
3726,
31,
57,
4066,
13,
20147,
14049,
300,
9,
387,
9,
300,
27,
1936,
465,
15,
17,
16146,
287,
12968,
2473,
918,
9,
3277,
28,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Acessing session attribute from jsp page using logic tag
===
I want to access the role session attribute (which i have set during authentication) from a jsp page and check whteher its value is equal to "admin" or "user". How do i do this using the logic tag. | 0 | [
2,
21,
5052,
18,
68,
3723,
35,
14755,
37,
487,
3401,
2478,
568,
7085,
3383,
800,
3726,
3726,
31,
259,
20,
1381,
14,
597,
3723,
35,
14755,
13,
5,
2140,
31,
57,
309,
112,
27963,
6,
37,
21,
487,
3401,
2478,
17,
2631,
11153,
591,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Log position of touch event
===
I'd like to log coordinates of touches on all views on Android application for usability tool. I can ovveride onTouch event, but this will require or:
1. Overriding it on all views
2. Inheritance of all views from some custome view object.
Any ideas how to do this on one place?
| 0 | [
2,
6738,
649,
16,
1723,
807,
800,
3726,
3726,
31,
22,
43,
101,
20,
6738,
13714,
16,
13935,
27,
65,
4146,
27,
13005,
3010,
26,
182,
4091,
5607,
9,
31,
92,
13,
2026,
195,
11891,
27,
15725,
807,
15,
47,
48,
129,
4077,
54,
45,
137... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Programming: Passing Images to 2nd page from the database and how to go about doing the database for the image using the imagePath
===
Hi I am a beginner in android programming and now I need to create an application about loading images from the database and show it in the ImageView and onClicking the imageView it will redirect to the 2nd page where users can add captions, description and tags. The image should also be shown on the 2nd page as well. I need to know how to 1. Pass the image from the 1st page to the second page. (Is it by intent, if yes how should I go about doing it) 2. How to I go about doing the database (SQLite) for the images as I am stuck halfway by referring to other tutorials. (Actually I wondering how to retrieve the imagePath from the database)
Can someone kindly help me, please? Help is much appreciated as I really need it. Thanks in advance. (: | 0 | [
2,
13005,
3143,
45,
2848,
3502,
20,
172,
706,
2478,
37,
14,
6018,
17,
184,
20,
162,
88,
845,
14,
6018,
26,
14,
1961,
568,
14,
1961,
8353,
800,
3726,
3726,
4148,
31,
589,
21,
26931,
19,
13005,
3143,
17,
130,
31,
376,
20,
1600,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Interfacing PHP with an Excel spreadsheet / VBA Script
===
I have a client that has developed an Excel spreadsheet to calculate various statistics using VBA Script (Excel/VBA is not my forte to say the least). He wants me to create a web front-end for this (I will be using PHP / CakePHP) that will have a simple form for inputting cell values, will query the spreadsheet and return the values for display on the website.
The client does not want to convert the Excel/VBA script to another language - he wants to keep it in a 'silo' and just have the website query the existing script.
Is this possible? Any libraries that can help? How could I go about this? | 0 | [
2,
1480,
17231,
13,
26120,
29,
40,
20700,
1789,
17627,
13,
118,
566,
969,
3884,
800,
3726,
3726,
31,
57,
21,
6819,
30,
63,
885,
40,
20700,
1789,
17627,
20,
18469,
617,
5818,
568,
566,
969,
3884,
13,
5,
1706,
11040,
118,
710,
969,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
python print result like '7\xe6\x9c\x8810\xe6\x97\xa5', not i want '7月10日'
===
i fetch a webpage,it contains janpanese,
when i print it,console don't output just like '7月10日', it output '7\xe6\x9c\x8810\xe6\x97\xa5'
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ?
what shall i do ? | 0 | [
2,
20059,
4793,
829,
101,
13,
22,
465,
1,
13012,
379,
1,
396,
518,
150,
1,
396,
3020,
1036,
1,
13012,
379,
1,
396,
3643,
1,
6791,
264,
22,
15,
52,
31,
259,
13,
22,
465,
1,
1036,
1,
22,
800,
3726,
3726,
31,
18312,
21,
2741,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Change Crystal Reports Viewer Connection String ASP.NET
===
In Visual Studio 2010, I am dynamically populating a list of Crystal Reports based on an XML file that have the following settings:
<Report file="C:\reportname.rpt" text="Report Name"
imageURL="~/images/reporticon.png" />
In my ASPX page I have a CrystalReportsViewer like the following:
<CR:CrystalReportViewer ID="CrystalReportViewer" runat="server" AutoDataBind="true"
Width="800px" Height="600px" CssClass="reportViewer" HasCrystalLogo="False" />
When a user clicks on a report link (Comes from a TreeNode object), the crystal report viewer report is set like the following:
CrystalReportViewer.ReportSource = "C:\reportname.rpt";
In my actual RPT report files, I have connection strings saved in them so the Crystal Report Viewer does not prompt the user to enter a user name and password.
My question is to find out if it is possible to change the connection string that is saved in the report file? How can I set the connection string information when I load an RPT file into the Crystal Reports Viewer?
Thanks in advance for any help... | 0 | [
2,
753,
4282,
2813,
16812,
2760,
3724,
28,
306,
9,
2328,
800,
3726,
3726,
19,
3458,
1120,
498,
15,
31,
589,
7782,
1326,
1675,
10038,
21,
968,
16,
4282,
2813,
432,
27,
40,
23504,
3893,
30,
57,
14,
249,
12410,
45,
13,
1,
17437,
38... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Flex big data volume performance (ADEP/LCDS dataservice)
===
As we have found a solution for Hibernate, server side loads the data very fast : less than a sec for thousands of records and more. Now the problem is on transporting data from server to browser. Two issue:
1.The datagrid always waits until the ArrayCollection is fully loaded. We overcame this by specifying :
<destination id="someAssemble">
<properties>
<use-transactions>true</use-transactions>
<source>com.assembler.SomeAssembler</source>
<scope>application</scope>
<item-class>vo.SomeVo</item-class>
<network>
<paging enabled="true" pageSize="50" />
</network>
==> the datagrid started display quickly. The problem is the server stops loading data from row 51. Is there a way to force Flex keep loading the data in the background (by config or by code )
2.If I try to load a big ArrayCollection (for example more than 20K records), it locks down the whole browser. Is it possible to load it smoothly behind the scene?
Please help! Thank you | 0 | [
2,
14409,
580,
1054,
2310,
956,
13,
5,
58,
17309,
118,
6109,
43,
18,
1054,
11449,
6,
800,
3726,
3726,
28,
95,
57,
216,
21,
4295,
26,
4148,
2102,
8820,
15,
8128,
270,
19069,
14,
1054,
253,
1512,
13,
45,
787,
119,
21,
9265,
26,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Flex ComboBox button height
===
I am creating a flex plugin for Illustrator CS6 and it needs to be compact. I have a ComboBox that is a little taller than I like. If I set the height, the drop-down button doesn't seem to be affected. In fact, I can't make the button any shorter than 23 pixels, although the rest of the control is sized correctly.
Is there a trick to sizing the drop-down button short of writing a new control? | 0 | [
2,
14409,
22621,
5309,
5167,
2947,
800,
3726,
3726,
31,
589,
2936,
21,
14409,
10922,
108,
26,
13805,
272,
18,
379,
17,
32,
2274,
20,
44,
8285,
9,
31,
57,
21,
22621,
5309,
30,
25,
21,
265,
12926,
119,
31,
101,
9,
100,
31,
309,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
AxShockwaveFlash object not detecting events (mouse, keyboard) in full screen windows forms C#.NET
===
So, this is my problem, I'm developing an application in windows forms, using C#.NET and I had to use the AxShockwaveFlash object to play a movie using a customized SWF. No problem there, the movie plays fine, the swf responde to the mouse clicks and wheel and the same thing happens with the arrow keys and some keys that enable zoom in and zoom out.
When the movie is putted in full screen (no problem there either), the swf stops responding to the mouse wheel and to every key.
I've searched everywhere (I think) trying to find an explanation to why this happens.
I can't understand if it's something in the swf itself or if something happens when the AxShockwaveFlash object goes full screen (like working in a sandbox). Regarding the swf, if I use it in a web aplication everything works fine in full screen.
Anyone knows why this happens and how can I fix it (if there is a solution) ?
Thanks everyone
P.S. I apologize for my bad english :) | 0 | [
2,
21,
396,
19353,
10134,
26694,
3095,
52,
9092,
68,
963,
13,
5,
14002,
62,
15,
8896,
6,
19,
503,
2324,
1936,
1997,
272,
5910,
9,
2328,
800,
3726,
3726,
86,
15,
48,
25,
51,
1448,
15,
31,
22,
79,
3561,
40,
3010,
19,
1936,
1997,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Programming Extensions for SQL Management Studio 2008
===
Is possible create a extension for SQL Management Studio in Visual Studio 2010? Visual Studio has a project type for to make extensions for Visual Studio. Exists any template in visual studio for to make this? or where i can begin to learn how to make this?
Thanks. | 0 | [
2,
3143,
17529,
26,
4444,
255,
1097,
1120,
570,
800,
3726,
3726,
25,
938,
1600,
21,
3896,
26,
4444,
255,
1097,
1120,
19,
3458,
1120,
498,
60,
3458,
1120,
63,
21,
669,
1001,
26,
20,
233,
17529,
26,
3458,
1120,
9,
5636,
186,
22894,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Runnable Skipped Android AndEngine
===
I would like to say thanks first to you all..
I have made a code to generate sprite by using Runnable.
But it only executes the last runnable that I wrote.
Here's the code
public class LevellingManager {
// ======================== //
// ======================== //
// THE PATH METHOD //
// ======================== //
// ======================== //
public static void path() {
currType = Leveling2.TYPE_DIGGER;
mHandler.post(mStartDigger);
// === NOT EXECUTED === //
generateSprite(Leveling2.TYPE_ROCK, 10, 2000, 2000, LevellingManager.EASY);
// === EXECUTED === //
generateSprite(Leveling2.TYPE_WORM, 8, 3000, 1000, LevellingManager.HARD);
}
The **generateSprite()** method
public static void generateSprite(int type, int nSprts, int delayPerSprt,
int delayPerBtch, int[] difficulty) {
currType = type;
switch (type) {
case Leveling2.TYPE_ROCK:
System.out.println("Awalnya : " + GameResources2.lastIndexRock);
// ---- Set Generate Data ---- //
currIndex = 1 + GameResources2.lastIndexRock;
currList= GameResources2.listRockToBeAdded;
currLastIndex = GameResources2.lastIndexRock;
currMaxCpcty= GameResources2.MAX_ROCK;
// --- Method to Set the position, speed & delay per sprite ---- //
set(nSprts, delayPerBtch, delayPerSprt, difficulty);
mHandler.postDelayed(mStartRock, currDelay);
GameResources2.lastIndexRock = currLastIndex;
break;
case Leveling2.TYPE_WORM:
// ---- Set Generate Data ---- //
currIndex = 1 + GameResources2.lastIndexWorm;
currList=GameResources2.listWormToBeAdded;
currLastIndex = GameResources2.lastIndexWorm;
currMaxCpcty = GameResources2.MAX_WORM;
// --- Method to Set the position, speed & delay per sprite ---- //
set(nSprts, delayPerBtch, delayPerSprite, difficulty);
mHandler.postDelayed(mStartWorm, currDelay);
GameResources2.lastIndexWorm = currLastIndex;
break;
}
}
Here comes the **Runnable**
public static Runnable mStartRock = new Runnable() {
public void run() {
installAttach(this);
}
};
public static Runnable mStartWorm = new Runnable() {
public void run() {
installAttach(this);
}
};
And here is a method that will be executed inside the Runnable.
**installAttach()** method.
private static void installAttach(Runnable r) {
System.out.println("Lewat sini, type : " + currType);
currSpriteGen = currList.get(currIndex);
currSpriteGen
.registerEntityModifier(new SequenceEntityModifier(
new MoveModifier(currSpeed,
currSpriteGen.getX(),
currSpriteGen.getX(),
GameResources2.CAMERA_HEIGHT,
GameResources2.POSITION_DIGGER_HEIGHT)));
currSpriteGen.setVisible(true);
if (currSpriteGen.getParent() == null)
GameResources2.scene.attachChild(currSpriteGen);
else
currLastIndex = currIndex;
switchLastIndex();
if (currIndex == currMaxCpcty - 1) {
currNSprts = currNSprts - currIndex;
currIndex = -1;
}
System.out.println("Index : " + currIndex);
System.out.println("Max index : " + currMaxCpcty);
++currIndex;
// --- For looping ---//
if (currIndex < currNSprts) {
mHandler.postDelayed(r, currDelay);
}
}
So when I call the **LevellingManager.path()** method at onLoadScene(),
only the last generate method that executed.
Please help me.
Thank you. | 0 | [
2,
485,
103,
579,
19900,
13005,
17,
16847,
800,
3726,
3726,
31,
83,
101,
20,
395,
3669,
64,
20,
42,
65,
9,
9,
31,
57,
117,
21,
1797,
20,
7920,
27902,
34,
568,
485,
103,
579,
9,
47,
32,
104,
15644,
18,
14,
236,
485,
103,
579,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Whatever:hover cant get third menu level to display in IE6
===
I'm trying to get a suckerfish style dropdown menu to work in IE6 using whatever:hover but cant for the life of me get the 3rd level to display! Its driving me nuts any help on this would be greatly appreciated.
Heres the code
HTML:
<!DOCTYPE html>
<html>
<body>
<header>
<link rel="stylesheet" type="text/css" href="styleIE.css" />
</header>
<form>
<div id="container">
<div id = "menu">
<ul id="nav">
<li><a class="rhlinkstart" href="#"><span>Home</span></a></li>
<li><a class="rhlink" href="#"><span>Blad<br> Securities</span></a></li>
<li><a class="rhlink" href="#"><span>Market<br> Update</span></a></li>
<li><a class="rhlink" href="#"><span>Membership</span></a></li>
<li><a class="rhlink" href="#"><span>asdasd Info</span></a>
<ul>
<li><a class="linkchild" href="#"><img class = "arrow" src="Images/arrow.gif" alt="►">About the DOOB</a>
<ul>
<li><a class="linkchild" href="#">DOOB Explained</a></li>
<li><a class="linkchild" href="#">DOOB Jurisdications</a></li>
</ul>
</li>
<li><a class="linkchild" href="#">International Recogintion</a></li>
<li><a class="linkchild" href="#"><img class = "arrow" src="Images/arrow.gif" alt="►">Advantages of listing</a>
<ul>
<li><a class="linkchild" href="#">Advantages of Listing</a></li>
<li><a class="linkchild" href="#">Offers</a></li>
</ul>
</li>
<li><a class="linkchild" href="#">Advantages Of Membership</a></li>
<li><a class="linkchild" href="#">Publications</a></li>
<li><a class="linkchild" href ="#">Links</a></li>
</ul>
</li>
<li><a class="rhlinkend" href="#"><span>Contact Us</span></a></li>
<li> </li>
</ul>
</div>
</div>
</form>
</body>
</html>
CSS:
body{
line-height:1;
background: #e3e3e3;
behavior: url("csshover3.htc");
}
/*------------------------------------*\
Main
\*------------------------------------*/
div#container
{
width:1024px;
margin:0 auto;
position: relative;
text-align: center;
background-color: white;
border: 1px solid #8b8b8b;
}
.contentwrapper {
width: 964px;
margin: 0px auto;
text-align: left;
height: 100%;
}
.clearall {
clear: both;
}
/*------------------------------------*\
Home Page - Menu Styling
\*------------------------------------*/
#menu {
margin: 0 auto;
padding-left: 2%;
height: 47px;
position: relative;
top: 0;
border: 1px solid rgb(140,51,61);
font-size: 75%;
display: block;
}
#nav {
margin:0;
padding:0;
list-style-type:none;
list-style-position:outside;
position:relative;
height:47px;
background: none;
background-color: transparent;
width: 100%;
}
#nav ul {
margin:0;
padding:0;
list-style-type:none;
list-style-position:outside;
position:relative;
}
#nav a.rhlinkstart:link, #nav a.rhlinkstart:active, #nav a.rhlinkstart:visited {
position: relative;
float:left;
font-family: Georgia;
color: rgb(131,0,26);
width: 148px;
text-align: center;
height: 47px;
margin-right: -.07em;
margin-left: 0.5em;
line-height: 47px;
text-decoration: none;
}
#nav a.rhlink:link, #nav a.rhlink:active, #nav a.rhlink:visited {
position: relative;
float:left;
font-family: Georgia;
color: rgb(131,0,26);
width: 148px;
text-align: center;
height: 47px;
margin-left: -47px;
line-height: 47px;
text-decoration: none;
display: block;
}
#nav a.rhlinkend:link, #nav a.rhlinkend:active, #nav a.rhlinkend:visited {
float:left;
position: relative;
color: rgb(131,0,26);
width: 148px;
height: 47px;
line-height: 47px;
margin-left: -3.780em;
font-family: Georgia;
text-decoration: none;
}
#nav li {
float:left;
position:relative;
display: block;
}
li a.rhlink span {
line-height: 1em;
text-decoration: none;
text-align: center;
display: inline-block;
vertical-align: middle;
}
#nav li a.rhlink:hover,
#nav li a.rhlinkstart:hover,
#nav li a.rhlinkend:hover
{
background: red;
color: white;
text-decoration: none;
}
#nav a.linkchild:link,
#nav a.linkchild:active,
#nav a.linkchild:visited
{
display:block;
padding:0px 10px;
text-decoration:none;
color: white;
background: pink ;
}
#nav a.linkchild:hover {
background: rgb(118,0,18);
color: white;
}
#nav ul {
position:absolute;
top:47px;
left:0;
margin: 0;
width:200px;
display:none;
}
#nav li ul a {
width:15em;
float:left;
display: inline-block;
line-height: 2.5em;
text-align: left;
vertical-align: middle;
}
#nav li {
display: inline-block !important;
float: left;
}
#nav li a {
display: inline-block !important;
vertical-align: middle;
}
#nav ul ul {
top:auto;
}
#nav li ul ul {
left:200px;
margin:0;
}
#nav ul ul li ul {
left:200px;
margin:0;
}
#nav ul ul {
display:none;
}
#nav li:hover ul {
display:block;
}
/* 2 and 13 */
#nav ul ul,
#nav li:hover ul ul {
display:none;
}
/* 12 and 23*/
#nav li:hover ul, #nav li:hover li:hover ul {
display:block;
}
| 0 | [
2,
2099,
45,
252,
2549,
2973,
164,
422,
11379,
662,
20,
3042,
19,
13,
660,
379,
800,
3726,
3726,
31,
22,
79,
749,
20,
164,
21,
25061,
4934,
1034,
2804,
2968,
11379,
20,
170,
19,
13,
660,
379,
568,
2099,
45,
252,
2549,
47,
2973,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 emulator hangs while running selenium script
===
I am using selenium to test an android web app. My test is running fine initially but hangs at particular point. It selects the first text field on the web page and writes the values while in zoom-in mode but it hangs at this point and does not select the second text field. Where am I going wrong?
My code is as follows:
public void testRegister() throws Exception
{
driver.get("file:///android_asset/www/aboutus.html");
driver.findElement(By.xpath("html/body/div/div/ul/li[2]")).click();
List<WebElement> w1=driver.findElements(By.tagName("input"));
System.out.println(w1.size());
for(int i=0;i<w1.size();i++)
{
System.out.println("************");
System.out.println(i + w1.get(i).getAttribute("id") +"*****" + w1.get(i).getAttribute("name"));
}
for(WebElement option:w1)
{
String str=option.getAttribute("id");
if(str.equals("name"))
{
option.click();
option.sendKeys("Vaishali");
}
else if(str.equals("dateofbirth"))
{
option.click();
option.sendKeys("28-09-1991");
}
else if(str.equals("club"))
{
option.click();
option.sendKeys("Manchester United");
}
else if(str.equals("username"))
{
option.click();
option.sendKeys("vishchan");
}
else if(str.equals("password"))
{
option.click();
option.sendKeys("vishchan");
}
else if(str.equals("sendbutton"))
{
option.click();
}
} | 0 | [
2,
13005,
3579,
14868,
4546,
18,
133,
946,
23027,
14311,
3884,
800,
3726,
3726,
31,
589,
568,
23027,
14311,
20,
1289,
40,
13005,
2741,
4865,
9,
51,
1289,
25,
946,
1123,
1537,
47,
4546,
18,
35,
1498,
454,
9,
32,
5407,
18,
14,
64,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Trouble with CocoaTouch
===
I have a simple problem: during table scroll, when tableview is reached bottom boundary it shifted aside and upper cells disappear.
Before: http://s9.postimage.org/6k0t2k1j1/normal.png
After: http://s13.postimage.org/neozer3np/fail.png | 0 | [
2,
2572,
29,
24507,
15725,
800,
3726,
3726,
31,
57,
21,
1935,
1448,
45,
112,
859,
12159,
15,
76,
859,
4725,
25,
664,
2129,
5067,
32,
4106,
3841,
17,
1508,
2934,
10866,
9,
115,
45,
7775,
6903,
18,
518,
9,
6962,
22039,
9,
5583,
11... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
using coma as list separator with angularjs
===
I need to create a coma-separated list of items:
<li ng-repeat="friend in friends">
<b ng-repeat="email in friend.email">{{email}}{{$last ? '' : ', '}}</b>...
</li>
According to the angularjs documentation, no control flow statements is allowed in expressions. This is why my {{$last ? '' : ', '}} does not work.
Is there an alternative way to create coma-separated lists ? | 0 | [
2,
568,
13987,
28,
968,
1353,
3574,
3457,
29,
18270,
728,
18,
800,
3726,
3726,
31,
376,
20,
1600,
21,
13987,
8,
18,
14189,
7432,
968,
16,
3755,
45,
13,
1,
1210,
13,
2723,
8,
99,
7081,
38,
3726,
7,
12299,
19,
954,
7,
1,
13,
1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Create Image from PDF using TCPDF
===
I am generating a PDF using the TCPDF library and would like to convert the pdf to an image. Anyone know if this is possible with TCPDF itself (I've looked over the code but doesn't look possible)?
Looking at [previous questions][1] on here it appears the best method is to use [ImageMagick][2] - is that still the case?
[1]: http://stackoverflow.com/questions/467793/how-do-i-convert-a-pdf-document-to-a-preview-image-in-php
[2]: http://www.imagemagick.org/script/index.php | 0 | [
2,
1600,
1961,
37,
13,
11124,
568,
13,
6668,
11124,
800,
3726,
3726,
31,
589,
13500,
21,
13,
11124,
568,
14,
13,
6668,
11124,
1248,
17,
83,
101,
20,
8406,
14,
13,
11124,
20,
40,
1961,
9,
1276,
143,
100,
48,
25,
938,
29,
13,
66... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 library for Java properties files in *new* contrib?
===
In the old monolithic clojure-contrib there were `java-utils` and `properties` namespaces with a few handy functions, like `read-properties` which parsed a Java properties file into a Clojure map.
Is there an equivalent of these namespaces in the new contrib?
I know that it is easy to write (i.e. copy-paste) the function and I'll probably do it anyway, but if it's already somewhere I'd rather not duplicate code. | 0 | [
2,
186,
1248,
26,
8247,
3704,
6488,
19,
1637,
2681,
2483,
1065,
38,
17980,
60,
800,
3726,
3726,
19,
14,
315,
4129,
17865,
7383,
2142,
99,
8,
1126,
38,
17980,
80,
46,
13,
1,
1004,
1385,
8,
14255,
18,
1,
17,
13,
1,
10890,
106,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ipv6 host address in wampserver
===
as in ipv4 we use mysql_connect("localhost","root",""); or mysql_connect(server ip,"root","");
this is done after adding the ipv4 address in the privileges.
how can I do the same thing using ipv6?? I want to add server ipv6 address | 1 | [
2,
31,
10166,
379,
2015,
3218,
19,
619,
10158,
10321,
106,
800,
3726,
3726,
28,
19,
31,
10166,
300,
95,
275,
51,
18,
22402,
1,
25996,
5,
7,
15580,
11694,
7,
15,
7,
14032,
7,
15,
7,
7,
6,
73,
54,
51,
18,
22402,
1,
25996,
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... |
Android MediaPlayer error (1, -2147483648)
===
I have two different videos which I'm trying to load into a VideoView using
videoView.setVideoURI(Uri.parse(url));
The two videos, let them be video 1 and video 2, have the following specs (extracted using ffmpeg -i); in fact, they are two different encodings of the same video:
1. Video 1:
Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '4fbfd5ece4b0932236fc234d.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2011-12-03 04:43:46
genre : Trailer
artist : Paramount Pictures
title : Captain America: The First Avenger - Theatrical Trailer #2
encoder : HandBrake 4344svn 2011111001
date : 2011
Duration: 00:02:30.67, start: 0.000000, bitrate: 6738 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x800 [PAR 1:1 DAR 12:5], 6575 kb/s, 23.97 fps, 90k tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 2011-12-03 04:43:46
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 159 kb/s
Metadata:
creation_time : 2011-12-03 04:43:46
2. Video 2:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '500416ea44aeb4b95d5ae8a0_hd.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2011-12-03 04:43:46
title : Captain America: The First Avenger - Theatrical Trailer #2
artist : Paramount Pictures
date : 2011
encoder : Lavf53.32.100
genre : Trailer
Duration: 00:02:30.69, start: 0.000000, bitrate: 2045 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1280x720 [PAR 27:20 DAR 12:5], 1889 kb/s, 23.99 fps, 90k tbr, 180k tbn, 180k tbc
Metadata:
creation_time : 2011-12-03 04:43:46
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 151 kb/s
Metadata:
creation_time : 2011-12-03 04:43:46
I am aware that AAC support came with Honeycomb, and therefore I tested the videos with several devices; the results are given below:
1. SGS II with custom 4.0.3 OS(Sensation ROM 3.4 with CF-Root kernel) - Video 1:OK - Video2:OK
2. SGS I with Samsung 2.3.3 OS - Video 1:error (1, -2147483648) - Video 2:OK
3. SGS I with custom 4.0.3 OS(ICS SGS TEAM ROM with Devil kernel) - Video 1:error (1, -2147483648) - Video 2:OK
4. Nexus One with original 2.3.6 OS - Video 1:See (1) below - Video 2:See (2) below
5. Emulator with 2.2 OS - Video 1:error (1, -2147483648) - Video 2:error (1, -2147483648)
6. Emulator with 4.0.3 OS - Video 1:error (1, -2147483648) - Video 2:error (1, -2147483648)
Both videos play fine in Google Chrome in a PC. It might be useful to add that in the OK case, video and audio both play correctly. In the error (1, -2147483648) case, the same log is spewed from all devices (except Nexus One):
07-18 10:25:10.996: I/MediaPlayer(17860): uri is:http://s3-eu-west-1.amazonaws.com/cf-templates-k6ohn88yswx5-eu-west-1/videos/4fbc88e7e4b0b0896e877764/4fbfd5ece4b0932236fc234d.mp4
07-18 10:25:10.996: I/MediaPlayer(17860): path is null
07-18 10:25:10.996: D/MediaPlayer(17860): Couldn't open file on client side, trying server side
07-18 10:25:39.859: D/MediaPlayer(17860): getMetadata
07-18 10:25:45.070: E/MediaPlayer(17860): error (1, -2147483648)
07-18 10:25:45.074: E/MediaPlayer(17860): Error (1,-2147483648)
07-18 10:25:45.078: D/VideoView(17860): Error: 1,-2147483648
In the (1) case, the following log is spewed from Nexus One, and the video never loads:
07-18 13:49:20.115: D/MediaPlayer(10109): Couldn't open file on client side, trying server side
07-18 13:49:20.115: I/StagefrightPlayer(68): setDataSource('http://s3-eu-west-1.amazonaws.com/cf-templates-k6ohn88yswx5-eu-west-1/videos/4fbc88e7e4b0b0896e877764/4fbfd5ece4b0932236fc234d.mp4')
07-18 13:49:20.135: I/NuHTTPDataSource(68): connect to s3-eu-west-1.amazonaws.com:80/cf-templates-k6ohn88yswx5-eu-west-1/videos/4fbc88e7e4b0b0896e877764/4fbfd5ece4b0932236fc234d.mp4 @0
07-18 13:49:20.155: I/ActivityManager(98): Displayed com.woisio/.video.VideoActivity: +450ms
07-18 13:49:20.795: I/NuCachedSource2(68): Keep alive
07-18 13:49:22.185: I/OMXCodec(68): [OMX.qcom.video.decoder.avc] allocating 4 buffers of size 460800 on input port
07-18 13:49:22.195: I/OMXCodec(68): [OMX.qcom.video.decoder.avc] allocating 8 buffers of size 2304000 on output port
07-18 13:49:25.325: D/dalvikvm(9499): GC_EXPLICIT freed 13K, 50% free 2726K/5379K, external 1625K/2137K, paused 116ms
07-18 13:49:27.525: I/NuCachedSource2(68): Keep alive
07-18 13:49:28.235: I/NuCachedSource2(68): Cache full, done prefetching for now
07-18 13:49:30.275: D/dalvikvm(9902): GC_EXPLICIT freed 8K, 50% free 2714K/5379K, external 1625K/2137K, paused 69ms
07-18 13:49:34.255: D/Finsky(9066): [1] 5.onFinished: Installation state replication succeeded.
07-18 13:49:35.855: I/NuCachedSource2(68): Keep alive
07-18 13:49:39.055: D/dalvikvm(9911): GC_EXPLICIT freed 22K, 50% free 2710K/5379K, external 1625K/2137K, paused 38ms
07-18 13:49:42.575: I/NuCachedSource2(68): Keep alive
07-18 13:49:43.285: I/NuCachedSource2(68): Keep alive
07-18 13:49:44.095: D/dalvikvm(9918): GC_EXPLICIT freed 7K, 50% free 2708K/5379K, external 1625K/2137K, paused 66ms
07-18 13:49:49.085: D/dalvikvm(9925): GC_EXPLICIT freed 15K, 49% free 3268K/6407K, external 1625K/2137K, paused 50ms
07-18 13:49:50.925: I/NuCachedSource2(68): Keep alive
07-18 13:49:54.115: D/dalvikvm(6756): GC_EXPLICIT freed 9K, 44% free 3774K/6727K, external 1625K/2137K, paused 77ms
07-18 13:49:57.685: I/NuCachedSource2(68): Keep alive
07-18 13:49:58.375: I/NuCachedSource2(68): Keep alive
07-18 13:49:59.105: D/dalvikvm(9066): GC_EXPLICIT freed 385K, 53% free 3186K/6727K, external 1625K/2137K, paused 66ms
07-18 13:50:05.955: I/NuCachedSource2(68): Keep alive
07-18 13:50:06.045: D/dalvikvm(8047): GC_EXPLICIT freed 9K, 47% free 3830K/7111K, external 1625K/2137K, paused 86ms
07-18 13:50:09.465: I/3gw.Service(488): Mobile Network not connected - not roaming
07-18 13:50:12.765: I/NuCachedSource2(68): Keep alive
07-18 13:50:13.465: I/NuCachedSource2(68): Keep alive
07-18 13:50:18.775: I/WindowManager(98): Setting rotation to 3, animFlags=0
07-18 13:50:18.795: I/ActivityManager(98): Config changed: { scale=1.0 imsi=286/2 loc=en_US touch=3 keys=1/1/2 nav=3/1 orien=2 layout=34 uiMode=17 seq=34}
07-18 13:50:18.895: D/dalvikvm(169): GC_EXTERNAL_ALLOC freed 108K, 48% free 3253K/6215K, external 5172K/5180K, paused 37ms
07-18 13:50:21.005: I/NuCachedSource2(68): Keep alive
07-18 13:50:21.265: D/dalvikvm(98): GC_EXPLICIT freed 394K, 42% free 6631K/11335K, external 4458K/5567K, paused 109ms
In the (2) case, the following log is spewed from Nexus One and as you can see, ends with an error (1, -2147483648):
07-18 13:47:03.595: D/MediaPlayer(10059): Couldn't open file on client side, trying server side
07-18 13:47:03.595: I/StagefrightPlayer(68): setDataSource('http://s3-eu-west-1.amazonaws.com/cf-templates-k6ohn88yswx5-eu-west-1/videos/4ff4514444aec3d2f9f07ead/500416ea44aeb4b95d5ae8a0_hd.mp4')
07-18 13:47:03.605: I/NuHTTPDataSource(68): connect to s3-eu-west-1.amazonaws.com:80/cf-templates-k6ohn88yswx5-eu-west-1/videos/4ff4514444aec3d2f9f07ead/500416ea44aeb4b95d5ae8a0_hd.mp4 @0
07-18 13:47:03.625: I/ActivityManager(98): Displayed com.woisio/.video.VideoActivity: +505ms
07-18 13:47:05.355: I/OMXCodec(68): [OMX.qcom.video.decoder.avc] allocating 4 buffers of size 460800 on input port
07-18 13:47:05.355: I/OMXCodec(68): [OMX.qcom.video.decoder.avc] allocating 8 buffers of size 1382400 on output port
07-18 13:47:05.365: I/NuCachedSource2(68): Keep alive
07-18 13:47:08.375: D/MediaPlayer(10059): getMetadata
07-18 13:47:08.745: D/dalvikvm(9925): GC_EXPLICIT freed 651K, 49% free 3275K/6407K, external 1625K/2137K, paused 68ms
07-18 13:47:09.205: I/3gw.Service(488): Mobile Network not connected - not roaming
07-18 13:47:11.565: I/NuCachedSource2(68): Cache full, done prefetching for now
07-18 13:47:12.095: I/NuCachedSource2(68): Keep alive
07-18 13:47:14.245: W/QCvdec(68): H264_Utils::check_header
07-18 13:47:14.245: W/QCvdec(68): check_header: start code 33
07-18 13:47:14.245: W/QCvdec(68): H264_Utils::check_header
07-18 13:47:14.245: W/QCvdec(68): check_header: start code 10
07-18 13:47:14.245: W/QCvdec(68): Parsing Error unsupported profile or level
07-18 13:47:14.245: W/QCvdec(68): ETB in Invalid State
07-18 13:47:14.245: E/OMXCodec(68): [OMX.qcom.video.decoder.avc] ERROR(0x8000100a, 0)
07-18 13:47:14.245: E/MediaPlayer(10059): error (1, -2147483648)
07-18 13:47:14.285: E/MediaPlayer(10059): Error (1,-2147483648)
07-18 13:47:14.285: D/VideoView(10059): Error: 1,-2147483648
From what I have read, the error (1, -2147483648) may correspond to unsupported codecs, corrupt metadata or incorrect file headers. If it is so, could you point me in the right direction as to use which codec? Thanks. | 0 | [
2,
13005,
941,
14049,
7019,
13,
5,
165,
15,
13,
8,
135,
13516,
3216,
3775,
3216,
6,
800,
3726,
3726,
31,
57,
81,
421,
6610,
56,
31,
22,
79,
749,
20,
6305,
77,
21,
763,
4725,
568,
763,
4725,
9,
3554,
14785,
3594,
5,
3594,
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... |
real time quotes for stock and currency trading game website?
===
to be clear i have looked at yahoo and google apis that provide delayed(not in real time) stock quotes for free . I would instead like to find an apior service that provide them in real time (minute to minute or whatever the standards are). I know this wont be for free and i will have to shell out a huge chuck of money for this which i am ready to pay for. THe service should provide quotes of all the major exchanges.
if would be great if you could also provide me with approximate money i will have to shell out for the services you are providing info about and how good is their API.
Lastly if you know any service that provide this kind of functionality for this kind of service(my website) at a low cost that would be icing on the cake.
just so you know i will be using yii framework for developing the website. I know this information is of no use to the initial questions but i just thought off adding it anyway. | 2 | [
2,
683,
85,
18901,
26,
2070,
17,
10507,
5205,
250,
2271,
60,
800,
3726,
3726,
20,
44,
1207,
31,
57,
292,
35,
23553,
17,
8144,
21,
8954,
30,
1181,
8241,
5,
1270,
19,
683,
85,
6,
2070,
18901,
26,
551,
13,
9,
31,
83,
700,
101,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Need video player for ASP.NET(Should Support IE 7.0 + all browser)
===
I need to implement a video player that should play files(wmv, mpeg, mp4 etc..), I have tried object tag, but it requires media player plugin to play I dont want this kind. Somebody can suggest me.
Thanks in advance.
| 0 | [
2,
376,
763,
517,
26,
28,
306,
9,
2328,
5,
14941,
555,
13,
660,
453,
9,
387,
2754,
65,
16495,
6,
800,
3726,
3726,
31,
376,
20,
8713,
21,
763,
517,
30,
378,
418,
6488,
5,
499,
79,
710,
15,
307,
20427,
15,
4628,
300,
2722,
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... |
Derive LinkedIn profile URL from API user token?
===
The LinkedIn API refers to users by alphanumeric member token instead of numeric ids.
Is it possible to derive a linkedin profile url (public OR private) from the user token? | 0 | [
2,
20576,
4727,
108,
5296,
287,
6362,
37,
21,
2159,
4155,
20,
2853,
60,
800,
3726,
3726,
14,
4727,
108,
21,
2159,
3806,
20,
3878,
34,
5705,
6336,
14744,
322,
20,
2853,
700,
16,
15764,
596,
13,
9178,
9,
25,
32,
938,
20,
20576,
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,
0... |
Errors using boost::named_condition
===
I cannot get this simple example to compile (on VS 2008):
#include <boost/interprocess/sync/named_condition.hpp>
#include <boost/thread/mutex.hpp>
#include <string>
int main(int argc, const char* argv)
{
boost::interprocess::named_condition cond(boost::interprocess::create_only, "somd.notify");
boost::mutex the_mutex;
while (true)
{
const boost::system_time timeout = boost::get_system_time() + boost::posix_time::milliseconds(500);
boost::mutex::scoped_lock lock(the_mutex);
if (cond.timed_wait(lock, timeout))
{
// Do something useful
}
}
return 0;
}
The compilation error I get is (boost v1.38.0):
1>....\boost/interprocess/sync/named_condition.hpp(326) : error C2273: 'function-style cast' : illegal as right side of '->' operator
1> ..\src\main.cpp(13) : see reference to function template instantiation 'bool boost::interprocess::named_condition::timed_wait<boost::mutex::scoped_lock>(L &,const boost::posix_time::ptime &)' being compiled
1> with
1> [
1> L=boost::mutex::scoped_lock
1> ]
Ideas ?
| 0 | [
2,
11908,
568,
10419,
45,
45,
11482,
1,
22141,
800,
3726,
3726,
31,
1967,
164,
48,
1935,
823,
20,
26561,
13,
5,
218,
4611,
570,
6,
45,
6926,
22640,
13,
1,
10858,
384,
118,
6280,
16835,
118,
9507,
150,
118,
11482,
1,
22141,
9,
25... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
render html from xml rss feed cakephp
===
I'm trying to do a rss feed in cakephp. I get the xml in the view. So far so good. I can't figure out how to render the html though, so it looks like http://rss.cnn.com/rss/edition_europe.rss, for example.
I have my controller and the default layout and the view, as the book says, but here i got stuck. I have the html in the description, but it gets outputted as xml, as I said.
Any help much appreciated,
| 0 | [
2,
16535,
13,
15895,
37,
23504,
13,
1224,
18,
4063,
8390,
26120,
800,
3726,
3726,
31,
22,
79,
749,
20,
107,
21,
13,
1224,
18,
4063,
19,
8390,
26120,
9,
31,
164,
14,
23504,
19,
14,
1418,
9,
86,
463,
86,
254,
9,
31,
92,
22,
38... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Change target fo symbolic link in windows
===
How can I change target of already existing symbolic link. Any solution would work: console, powershell,etc.
Important think is to make this change atomically so solution to delete link and then create a new one do not work for me. | 0 | [
2,
753,
2935,
4310,
12882,
3508,
19,
1936,
800,
3726,
3726,
184,
92,
31,
753,
2935,
16,
614,
3149,
12882,
3508,
9,
186,
4295,
83,
170,
45,
8650,
15,
414,
15984,
15,
1198,
150,
9,
681,
277,
25,
20,
233,
48,
753,
9692,
1326,
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,
0,
0... |
Progressive Video Download on iOS
===
I am trying to implement [Progressive Downloading](https://en.wikipedia.org/wiki/Progressive_download"Wikipedia Article") of a video in my iOS application that can be played through AVPlayer. I have already implemented a downloader module that can download the files to the iPad. However, I have discovered I cannot play a file that is still being written to
So, as far as I can tell, my only solution would be through downloading a list of file 'chunks' and then keep playing through every file as they are ready (ie: downloaded), probably using HLS
Searching I have come across [this question which implements the progressive download through hls](http://stackoverflow.com/questions/10839061/avplayer-not-switching-between-progressive-download-and-streaming) but other than that, I can find no other way
However, I keep coming across search results that say how to configure web servers to leverage the iOS support for HTTP Progressive Downloading, but with no mention of how to do it from the iOS side
So, any one have any ideas and/or experience about this? | 0 | [
2,
5546,
763,
7121,
27,
13,
7760,
800,
3726,
3726,
31,
589,
749,
20,
8713,
636,
2740,
13026,
1284,
7121,
68,
500,
5,
21127,
18,
6903,
219,
9,
17375,
26132,
9,
5583,
118,
17375,
118,
2740,
13026,
1284,
1,
2968,
8294,
7,
17375,
2613... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I get a list of Distribution Groups via EWS in PHP?
===
How do I get a list of Distribution Groups via EWS in PHP?
We've tried php-ews library but could not figure out how to do it with that and the author did not respond. | 0 | [
2,
184,
107,
31,
164,
21,
968,
16,
2523,
1170,
1197,
13,
4460,
18,
19,
13,
26120,
60,
800,
3726,
3726,
184,
107,
31,
164,
21,
968,
16,
2523,
1170,
1197,
13,
4460,
18,
19,
13,
26120,
60,
95,
22,
195,
794,
13,
26120,
8,
4460,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Render ScrollView/WebView to Android native UI or InputMethodService (LinearLayout or RelativeLayout)
===
I have an Android 4.1 app that succesfully logs into my blog.
The results are returned in a WebView mostly to ensure the login is working.
The blog UI is not geared toward smartphone UI so I want to be able to do things like posting a new blog entry from my Android Galaxy Nexus using the Android SDK and the native UI.
I need to be able to replace my ScrollView with a LinearLayout or RelativeLayout with appropriate IME (InputMethodService) such that blog navigation and posting of new entries is possible.
The ScrollView has a single child element: a LinearLayout with yet another child element: a WebView that contains the blog conventional HTTP output.
Is there a way to convert the ordinary HTTP Response to native UI at least an element at at time such as posting a new blog entry or returning a specific blog entry against the blog entry's permalink?
Currently my entire working view is in main.xml. I know this needs to change but attempts at using multiple res/layout .xml files returns an empty display.
Has anybody done something similar to this?
Please advise, David. | 0 | [
2,
16535,
12159,
4725,
118,
14113,
4725,
20,
13005,
1275,
13,
5661,
54,
6367,
5909,
1807,
43,
11449,
13,
5,
19333,
4414,
1320,
54,
4543,
4414,
1320,
6,
800,
3726,
3726,
31,
57,
40,
13005,
268,
9,
165,
4865,
30,
21792,
5052,
5655,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 did RVM break my MANPATH on mac osx?
===
Ever since installing RVM, my manpages are broken. Current versions of man don't use the MANPATH variable, so why is it being set to .rvm/man and why isn't there a full catalog of manpages inside that folder?
| 0 | [
2,
483,
144,
13,
10359,
79,
1442,
51,
169,
8353,
27,
1572,
13,
759,
396,
60,
800,
3726,
3726,
462,
179,
25429,
13,
10359,
79,
15,
51,
169,
6486,
18,
50,
2023,
9,
866,
3281,
16,
169,
221,
22,
38,
275,
14,
169,
8353,
7612,
15,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How can I log the raw rest request/response as seen by Jersey?
===
I have a Jersey-based REST service deployed on apache tomcat. I would like to log the raw requests / responses made to the survey. The data that I am looking for is the URL and the body (in the case of POST/PUT messages).
How can I enable this logging? | 0 | [
2,
184,
92,
31,
6738,
14,
4333,
760,
3772,
118,
99,
18,
8782,
870,
28,
541,
34,
2134,
60,
800,
3726,
3726,
31,
57,
21,
2134,
8,
1281,
760,
365,
6698,
27,
17140,
2067,
5782,
9,
31,
83,
101,
20,
6738,
14,
4333,
12279,
13,
118,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to dynamcally add a dataentry form in asp.net webforms
===
I have to create a data entry form in asp.net webforms where the user could enter several member details. Each member detail will have about twenty data items such as FirstName, Lastname, DateOfBirth etc. The number of members entered can be anywhere from one to say twenty. Once all the mebers entered or during the entry process, they should be able to go to the previous or next entry and make changes. Essentially there should be a Next and Previous buttons which will traverse the pages. At the end when the Save button is clicked all the entered data should be saved. I have created a UserControl, which has all the textboxes to enter data. I have created five hardcoded panels which display the usercontrol five times. This makes the total members that could entered as five. I would like to replace this hradcoded model with a dynamically added panel, when the next button is clicked.
Please let me know how this could be achieved. Or if there is a better architecture please let me know. I tried the wizard contorl, but it was too cumbersome in maintaining the previously entered values and traversing data using Next and Previous buttons.
Thanks | 0 | [
2,
184,
20,
24151,
4829,
1326,
3547,
21,
1054,
18195,
505,
19,
28,
306,
9,
2328,
2741,
4190,
18,
800,
3726,
3726,
31,
57,
20,
1600,
21,
1054,
2792,
505,
19,
28,
306,
9,
2328,
2741,
4190,
18,
113,
14,
4155,
110,
2830,
238,
322,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
copy files from amazon S3 to local hdfs
===
i m writing java code to copy files from amazon S3 to local hdfs. i saw hadoop has a S3FileSystem class, which has methods of copyToLocalFile, which copy files from S3 to local disk, then i have copy again from local disk to local hdfs, is there any way i can directly copy from S3 to local hdfs? Thanks | 0 | [
2,
4344,
6488,
37,
8059,
13,
18,
240,
20,
375,
8590,
11754,
800,
3726,
3726,
31,
307,
1174,
8247,
1797,
20,
4344,
6488,
37,
8059,
13,
18,
240,
20,
375,
8590,
11754,
9,
31,
441,
41,
21709,
63,
21,
13,
18,
240,
16877,
10724,
718,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Python clean imports for models - SQL Alchemy
===
I have a flask app with the following directory structure:
- myapp/
- application.py
- `__init__.py`
- models/
- `__init__.py`
- user.py
The models use Flask-SQLAlchemy, and therefore, they need to have access to the `db` object (a SQLAlchemy instance) from `application.py`
user.py:
import sys,os
sys.path.append('/path/to/application/package')
from testapp import db
class User(db.Model):
id = db.Column(db.Integer,primary_key=True)
username = db.Column(db.String(255),unique=True)
age = db.Column(db.Integer)
def __init__(self,username,age):
self.username = username
self.age = age
def __repr__(self):
return '<User %r>' % self.username
Because any of the models need access to the application's SQLAlchemy instance, the `db` property, I have to throw this whole package on the path and then import from the main application module. For sanity's sake, I would like to keep the models in separate files. Will I need to put the path code on top of every model? Is there a better way? I'd rather not have the full path input like that, as they may be deployed to different hosts with different directory structures. Ideally there would be some way to internally handle the path so when it is used as another user via `mod_wsgi` I don't have to manually change the code.
| 0 | [
2,
20059,
2745,
20617,
26,
2761,
13,
8,
4444,
255,
29883,
800,
3726,
3726,
31,
57,
21,
28972,
4865,
29,
14,
249,
16755,
1411,
45,
13,
8,
51,
7753,
118,
13,
8,
3010,
9,
6448,
13,
8,
13,
1,
108,
242,
1,
9,
6448,
1,
13,
8,
27... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Haskell: Equality constraint in instance
===
I was reading through the announcement of [ClassyPrelude][1] and got to here:
instance (b ~ c, CanFilterFunc b a) => CanFilter (b -> c) a where
filter = filterFunc
The writer then mentioned that this would not work:
instance (CanFilterFunc b a) => CanFilter (c -> c) a where
filter = filterFunc
Which makes sense to me, as `c` is completely unrelated to the constraint on the left.
However, I don't understand is why this wouldn't work:
instance (CanFilterFunc b a) => CanFilter (b -> b) a where
filter = filterFunc
Could someone explain why this is different to the first mentioned definition? Perhaps a worked example of GHC type inference would be helpful?
[1]: http://www.yesodweb.com/blog/2012/07/classy-prelude
| 0 | [
2,
63,
16507,
45,
10337,
28804,
19,
4851,
800,
3726,
3726,
31,
23,
1876,
120,
14,
7435,
16,
636,
1898,
93,
3515,
17405,
500,
2558,
165,
500,
17,
330,
20,
235,
45,
4851,
13,
5,
220,
13,
1,
272,
15,
92,
11924,
815,
16638,
150,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Firebug Not working after updating firefox 14.0.1
===
Firebug stops working after auto updating of Mozilla firefox V 14.0.1
I have updated my Firebug but still it's not working | 0 | [
2,
535,
16254,
52,
638,
75,
71,
43,
1880,
535,
18219,
513,
9,
387,
9,
165,
800,
3726,
3726,
535,
16254,
6604,
638,
75,
3108,
71,
43,
1880,
16,
13,
18057,
3247,
535,
18219,
566,
513,
9,
387,
9,
165,
31,
57,
6372,
51,
535,
16254... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
UIImageView clipping just some subviews
===
I have an UIImageView with content mode Aspect Fill and it's clipping its subviews.
Now I want to add a button as subview and it should protrude at the edges about 20px.
The problem is that the option "clip subview" in interface builder cuts the subviews (as expected).
Is there a possibility to get what I want? Any ideas? Thanks, with kind regards, Julian | 0 | [
2,
13,
5661,
22039,
4725,
29568,
114,
109,
972,
4725,
18,
800,
3726,
3726,
31,
57,
40,
13,
5661,
22039,
4725,
29,
2331,
3740,
7289,
3509,
17,
32,
22,
18,
29568,
82,
972,
4725,
18,
9,
130,
31,
259,
20,
3547,
21,
5167,
28,
972,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Facebook FQL Query OR
===
I am trying to create an OR clause in FQL query.
Here is my query :
SELECT post_id, message, permalink, likes, actor_id, created_time FROM stream WHERE
(source_id = xxx1 AND message != '' AND actor_id = xxx2)
OR
(source_id = xxx2 AND actor_id = xxx1)
Globally I want to retrieve all the messages between 2 Facebook users.
If I remove the OR clause I do receive messages in one way but adding the OR removes every messages I have as if the '(' do not work.
If you need to test this query please go on : http://developers.facebook.com/tools/explorer
and create and access token with the read_stream permission (Extended Permissions)
I also wanted to use a UNION but it is not supported by FQL.
Maybe I could use FQL multiple queries but I was still blocked by the UNION missing.
Thank you for your help. | 0 | [
2,
9090,
398,
22402,
25597,
54,
800,
3726,
3726,
31,
589,
749,
20,
1600,
40,
54,
9040,
19,
398,
22402,
25597,
9,
235,
25,
51,
25597,
13,
45,
5407,
678,
1,
1340,
15,
2802,
15,
416,
540,
6258,
15,
101,
18,
15,
1574,
1,
1340,
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... |
warp/rotate/scale windows 7 desktop
===
I'd like to apply a 3D transform on windows 7 desktop, directly over the GPU. I have found this answer, but don't work on windows 7, because de architecture is different (now, windows 7 uses WDDM to control the desktop) and Windows API has changed:
http://stackoverflow.com/questions/1046958/painting-directly-on-the-windows-desktop?rq=1
do you know, how could I do it on Windows 7? do you know, wich API could I use? I can't find information about it.
best regards
Raúl Quesada | 0 | [
2,
176,
306,
118,
11699,
1373,
118,
5093,
1936,
453,
17404,
800,
3726,
3726,
31,
22,
43,
101,
20,
5645,
21,
203,
43,
8007,
27,
1936,
453,
17404,
15,
1703,
84,
14,
489,
4201,
9,
31,
57,
216,
48,
1623,
15,
47,
221,
22,
38,
170,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Yield Only Once Per Iteration
===
I'm trying to do type conversions using a generator, but I want to move to the next element in the iterator once I successfully yield a value. My current attempt will yield multiple values in cases where the expressions are successful:
def type_convert(data):
for item in data:
try:
yield int(item)
except (ValueError, TypeError) as WrongTypeError:
pass
try:
yield float(item)
except (ValueError, TypeError) as WrongTypeError:
pass
yield item
I want to guess this involves invoking the `.next()` method at the end of each try block, but I'm unsure how to go about that in a generator definition.
| 0 | [
2,
11537,
104,
382,
416,
23534,
800,
3726,
3726,
31,
22,
79,
749,
20,
107,
1001,
6263,
18,
568,
21,
15286,
15,
47,
31,
259,
20,
780,
20,
14,
328,
4520,
19,
14,
32,
106,
3457,
382,
31,
3673,
11537,
21,
1923,
9,
51,
866,
1735,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PowerShell - Get Password Expiration for all non Disabled Users in AD
===
My goal is to create a single object in powershell that shows the AD display name and password expiration date for all non-disabled users...
This is relatively easy. However, the date is retrieved in an unreadable format so I convert the date.
Creating the two variables that contain the data I want is working.
The problem is when I try to combine those two variables I get a single object with two headers as expected but the two columns below are empty.
I'm using PowerShell V2 on Win 7 Pro SP1
Any ideas what the issue could be?
# Get users DisplayName and password expiration time from AD
$msdsComputed = Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} -Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed" |
Where-Object {$_.DisplayName -ne $null}
# Convert date to human readable format
$ExpiryDate = $msdsComputed | Foreach-Object {
([datetime]::FromFileTime(($_)."msDS-UserPasswordExpiryTimeComputed"))
} | Select-Object "DateTime"
$combined = @{
DisplayName = $msdsComputed.DisplayName
ExpiryDate = $ExpiryDate.DateTime
}
New-Object PSObject -Property $combined | ConvertTo-Csv -NoTypeInformation | 0 | [
2,
414,
15984,
13,
8,
164,
20884,
29529,
26,
65,
538,
10154,
3878,
19,
21,
43,
800,
3726,
3726,
51,
1195,
25,
20,
1600,
21,
345,
3095,
19,
414,
15984,
30,
1285,
14,
21,
43,
3042,
204,
17,
20884,
29529,
1231,
26,
65,
538,
8,
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... |
Entity Framework Code First Saving type as string
===
I am using Entity Framework Code First and have some Classes with a System.Net.Mail.MailAddress type like this.
public class Person
{
public MailAddress Email { get; set; }
}
When EF tries to create the DB I get this error
"Problem in mapping fragments starting at line 6 No mapping for properties Person.Email"
How can I tell EF to just save the result of the Email.ToString() to the DB and then I can make a new MailAddress(stringOfEmail); when setting the value on the object?
Or am I better off just changing he data type for Email to a string and handle the validation somewhere else?
| 0 | [
2,
9252,
6596,
1797,
64,
7599,
1001,
28,
3724,
800,
3726,
3726,
31,
589,
568,
9252,
6596,
1797,
64,
17,
57,
109,
2684,
29,
21,
329,
9,
2328,
9,
8079,
9,
8079,
27950,
1001,
101,
48,
9,
317,
718,
840,
13,
1,
317,
4216,
27950,
85... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
static_url not resolving correctly, django 1.4
===
I have an installed app (django_tables2) with its own static files folder but am having issues serving these using {{ STATIC_URL }}. After reading the django docs, if I run `>>> python manage.py findstatic django_tables2/themes/paleblue/css/screen.css` findstatic indeed correctly locates the one matching file within the apps directory of site-packages.
My template for the page in question contains:
`{% block extrahead %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}django_tables2/themes/paleblue/css/screen.css" />
{% endblock %}` And related blocks exist in the parent template.
This page is served at `http://127.0.0.1:8000/todo/product_groups/Analytical/`. However, when running the development server I get a 404 for the css as its pointing to the wrong location:
` "GET /todo product_groups/Analytical/django_tables2/themes/paleblue/css/screen.css HTTP/1.1 404 2942"`
What's going on and why isn't the server following {{ STATIC_URL }} the same way as findstatic? I had this same static_url css working before doing some url redesigns, but can't seem to make it work in the new design. Any help or insight would be much appreciated.
*Relevant snippets from settings.py:*
MEDIA_URL = '/media/'
STATIC_ROOT = 'C:/Users/riedldar/Documents/Code/Arclin/static/'
STATIC_URL = '/static/'
STATICFILES_DIRS = (
"C:/users/riedldar/Documents/Code/Arclin/Arclin/static",
)
INSTALLED_APPS = (
....
'django.contrib.staticfiles',)
*from urls.py:*
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'Arclin.views.home', name='home'),
# url(r'^Arclin/', include('Arclin.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
# Todo/Task manager
url(r'^todo/', include('todo.urls')),
# Login/out
url(r'^login/$', 'django.contrib.auth.views.login'),
url(r'^logout/$', 'Arclin.views.logout_page'),
# User Homepage
url(r'^$', 'todo.views.user_home'),
#
)
*and todo\urls.py*
from django.conf.urls.defaults import *
#from models import ProductGroup
urlpatterns = patterns('',
(r'^product_groups/([\w-]+)/$', 'todo.views.items_by_product_group'),
url(r'^task/(?P<task_id>\d{1,6})$', 'todo.views.view_task', name='todo_task_detail')
)
| 0 | [
2,
12038,
1,
911,
255,
52,
28687,
12044,
15,
3857,
14541,
137,
9,
300,
800,
3726,
3726,
31,
57,
40,
4066,
4865,
13,
5,
14365,
14541,
1,
5924,
18,
135,
6,
29,
82,
258,
12038,
6488,
19294,
47,
589,
452,
1549,
1799,
158,
568,
13,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
EMF file, how to determine when to stroke,fill?
===
There are instances where it isn't clear to me how a program processing an EMF file
is to know **when** it should stroke/fill a path. If anybody can point me to a reference that spells out the rules it would be much appreciated.
For instance, consider this series of (annotated) pseudocode records:
(a visible pen and brush are defined)
EMRBEGINPATH
EMRPOLYLINE (the path does not close, any other unclosed path could go here)
EMRENDPATH
EMRSTROKEANDFILLPATH (or EMRSTROKEPATH or EMRFILLPATH or any other EMR record)
So when does it draw? It cannot do it at EMRENDPATH because it doesn't know yet if it should close the path. Is EMRPOLYLINE (or other graphics records that do not end in "TO") always considered a terminated path because it doesn't change the reference point?
If an EMRCLOSEPATH preceded EMRENDPATH would it then draw at the EMRENDPATH, or would it wait to find out if just stroke, or just fill, or both were needed?
Maybe it decides to wait for an EMRSTROKEANDFILLPATH. But what if the record in that position is not a STROKE/FILL record? That next record could be just about anything.
The situation is even worse if there are not explicit EMRBEGINPATH,EMRENDPATH (and I cannot find anything in the documentation that says these must be used). What happens here?
(previous records)
EMRENDPATH
EMRSTROKEPATH
EMRPOLYLINE (a first path that does not close)
EMRPOLYLINE (a second path that does not close)
I have generated some test records like the first example above, then a second case lacking the EMRBEGINPATH/EMRENDPATH, and a third case with just the EMRPOLYLINE. When fed into Windows "Preview" the first one closes the path then fills/strokes, whereas the latter two cases do not close the path, and are stroked but not filled. (I cannot say though what triggers these actions, just that they are the observed outputs.) In other words, for EMRPOLYLINE, it seems that EMRSTROKEANDFILLPATH is ignored if it does not follow an EMRBEGINPATH/EMRENDPATH.
| 0 | [
2,
3579,
410,
3893,
15,
184,
20,
3746,
76,
20,
7080,
15,
19971,
60,
800,
3726,
3726,
80,
50,
13946,
113,
32,
2532,
22,
38,
1207,
20,
55,
184,
21,
625,
5511,
40,
3579,
410,
3893,
25,
20,
143,
13,
1409,
3185,
1409,
32,
378,
7080... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 delete a value between <input> tags?
===
I'm creating checkboxes using `JQuery` as following:
$('<input type="checkbox" ' + 'id=' + (i+1) + '>' + (i+1) + '</input><br/>')
Then later it is removed whenever the user checks the box in:
if (this.checked) {
$(this).remove();
}
However, The input box is deleted, but the number (id) stays on the page, along the `<br/>` Tag, so I can see the `#i` there on the HTML Page.
I would like to remove them as well.
So, to in order to make my question as complete as possible, here is how the `HTML` is laid:
<input id="1" type="checkbox">
1
<br>
Could someone please give me a clue how to remove `#i` and `<br/>` from the page?
Thanks | 0 | [
2,
184,
20,
27448,
21,
1923,
128,
13,
1,
108,
4881,
1,
3383,
18,
60,
800,
3726,
3726,
31,
22,
79,
2936,
2631,
5309,
160,
568,
13,
1,
728,
8190,
93,
1,
28,
249,
45,
5579,
5,
22,
1,
108,
4881,
1001,
3726,
7,
12542,
5309,
7,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How do I select items in range of a SQL query?
===
My database is in MySQL.
Assume I have the following table:
id number
1 45
2 25
3 66
4 43
......
......
......
30 54
31 21
etc ... etc.
I want to have a query like so:
select * from myTable where number = 25
but I want to also include 2 more items, one above it and one below it (based on ID).
the result set of my query would turn up with the following result set: 1, 2, 3.
If I selected the number 66, then the result set would include 2, 3, 4. Etc, etc.
The idea would be to range the query by saying, hey, I want anything that has an ID equal to 1 minus this queries' id, and also one plus this queries' id.
I hope this makes sense.
Any help would be great.
Thanks!
P.S.
The point of this is to capture events in a log so that I can see what happened before and after a certain event happened
| 0 | [
2,
184,
107,
31,
5407,
3755,
19,
978,
16,
21,
4444,
255,
25597,
60,
800,
3726,
3726,
51,
6018,
25,
19,
51,
18,
22402,
9,
7158,
31,
57,
14,
249,
859,
45,
4924,
234,
137,
2487,
172,
771,
203,
7395,
268,
5016,
13,
9,
9,
9,
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... |
Kohana (or straight PHP) OAuth2 implementation
===
Does anyone have a very clear step-by-step guide for implementing OAuth2 (preferably in Kohana 3.2, but I'll take whatever I can get)?
I would like it to include the tables I need to create, etc. (Hard to implement something without knowing the table structure.)
Any help would be tremendous!!! | 0 | [
2,
1584,
7285,
13,
5,
248,
1599,
13,
26120,
6,
635,
1346,
96,
135,
6123,
800,
3726,
3726,
630,
1276,
57,
21,
253,
1207,
1424,
8,
779,
8,
8375,
3378,
26,
17333,
635,
1346,
96,
135,
13,
5,
3515,
2407,
4801,
19,
1584,
7285,
203,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 fix a false positive in the Broken Links report?
===
I have some item content that is working just fine... but shows up as a broken link in the Broken Links Report. The link in question is in a Rich Text field:
<img style="WIDTH: 700px; HEIGHT: 1029px" class="imageBG" alt="All Alaska Map" src="~/media/Images/NorthToAlaska/maps/allAlaskaRouteFLNew.jpg?w=700&h=1029&as=1" />
If I use the built-in editor and insert an image, it generates a link like this:
<img width="700" height="1029" alt="All Alaska Route Map" src="~/media/F82D13579F3A4D0E88C4436D84A562F8.jpg?w=700&h=1029&as=1" />
I should note, that even using the "Insert Media Item" button, it shows up as a broken link. :(
In general, I'd much rather have the image path referenced than an item GUID that is impossible to identify if I'm just looking at it.
1) Why does that first link show up as broken, even though it works fine on the site? <br>
2) Is there any way to get the editor to insert media item links with paths instead of GUIDs? <br>
3) Alternately, is there a way to modify the way broken links are detected or reported? | 0 | [
2,
184,
92,
31,
6098,
21,
4997,
2221,
19,
14,
2023,
6271,
1330,
60,
800,
3726,
3726,
31,
57,
109,
9101,
2331,
30,
25,
638,
114,
1123,
9,
9,
9,
47,
1285,
71,
28,
21,
2023,
3508,
19,
14,
2023,
6271,
1330,
9,
14,
3508,
19,
1301... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Detect "prevent this page from creating additional dialogs"
===
###QUESTION
How can I detect if a user has checked the box, "prevent this page from creating additional dialogs"?
###WHY It's a problem
If the user has prevented the appearance of confirm boxes, the function `confirm('foobar')` always returns false.
If the user cannot see my confirmation dialogue boxes `confirm('Are you sure?')`, then the user can never perform the action.
###CONTEXT
So, I use the code like `if(confirm('are you sure?')){ //stuff... }`. So an auto-response of `false` from the browser will prevent the user from ever doing `stuff`. But, if there was a way to detect that the user has checked the box, then I could execute the action automatically.
I think that if the user has disabled the dialogues, then the function should either throw an error, or return true. The function is meant to confirm an action that the user has requested. | 0 | [
2,
9092,
13,
7,
3515,
6645,
48,
2478,
37,
2936,
1351,
28223,
18,
7,
800,
3726,
3726,
6926,
5910,
5910,
24652,
184,
92,
31,
9092,
100,
21,
4155,
63,
6505,
14,
1649,
15,
13,
7,
3515,
6645,
48,
2478,
37,
2936,
1351,
28223,
18,
7,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Google Drive isRoot attribute of Parent returns Nil
===
I'm retrieving the files that match a given query in my drive account using a wrapper that I created
files = get_files_by_query session, "title = 'Competitors' and trashed = false"
This returns an Array of Google::APIClient::Schema::Drive::V2::File objects
From the rails console I'm able to retrieve the parents of the first file in the array.
files.first.parents.first.id
However, when I attempt to retrieve the isRoot
files.first.parents.first.isRoot
I get the following error
TypeError: Expected boolean, got NilClass.
Which is very strange because when I inspect the contents of the parent, the hash is displayed and isRoot is clearly false or true, but never nil.
Not sure if this is related, but right after the error. If I reattempt the first command
files = get_files_by_query session, "title = 'Competitors' and trashed = false"
The results are returned as an Array of Hash objects and not Google::APIClient::Schema::Drive::V2::File objects.
Below are the wrappers used above.
def get_files_by_query session, query
get_files session, {'q' => query}
end
def get_files session, parameters
drive = session.discovered_api("drive", "v2")
result = session.execute(api_method: drive.files.list, parameters: parameters)
if result.status == 200
files = result.data.items
else
puts "An error occurred: #{result.data['error']['message']}"
end
end
Thanks!
| 0 | [
2,
8144,
1493,
25,
14032,
35,
14755,
16,
4766,
4815,
1781,
255,
800,
3726,
3726,
31,
22,
79,
13,
6239,
3272,
8397,
14,
6488,
30,
730,
21,
504,
25597,
19,
51,
1493,
2176,
568,
21,
28051,
30,
31,
679,
6488,
800,
164,
1,
16877,
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... |
Google App Engine counts
===
What is the appropriate way to handle counts in app engine?
I have two projects on is a django-nonrel and the other is a pure django project but both need the ability to take a query and get a count back. The results could be greater than 1,000.
I saw some posts that said I could use [Sharded Counters][1] but they are counting *all* entities. I need to be able to know how many entities have the following properties x=1,y=True,z=3
#Is this the appropriate way?
count = some_entity.gql(query_string).count(SOME_LARGE_NUMBER)
[1]: https://developers.google.com/appengine/articles/sharding_counters | 0 | [
2,
8144,
4865,
1406,
9927,
800,
3726,
3726,
98,
25,
14,
4593,
161,
20,
3053,
9927,
19,
4865,
1406,
60,
31,
57,
81,
2314,
27,
25,
21,
3857,
14541,
8,
3951,
7256,
17,
14,
89,
25,
21,
4267,
3857,
14541,
669,
47,
156,
376,
14,
216... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Comment on wordpress with XML-RPC from Android
===
I know it's possible to publish a post through RPC in wordpress, but is it possible to post comment on blog post in simmilar way from Java/Android application.
I have already tried to post comment from android application through httppost but it's not working for me because post request must contain akismet nonce. Also i have read some threads here on Stackoverflow but nothing came up. | 0 | [
2,
6484,
27,
833,
5890,
29,
23504,
8,
139,
5779,
37,
13005,
800,
3726,
3726,
31,
143,
32,
22,
18,
938,
20,
10824,
21,
678,
120,
761,
5779,
19,
833,
5890,
15,
47,
25,
32,
938,
20,
678,
6484,
27,
8146,
678,
19,
4861,
14494,
139,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Javascript pushing objects into array changes entire array
===
I'm using a specific game making framework but I think the question applies to javascript
I was trying to make a narration script so the player can see "The orc hits you." at the bottom of his screen. I wanted to show the last 4 messages at one time and possibly allow the player to look back to see 30-50 messages in a log if they want. To do this I set up and object and an array to push the objects into.
So I set up some variables like this
servermessage: {"color1":"yellow", "color2":"white", "message1":"", "message2":""},
servermessagelist: new Array(),
and when I use this command multiple times with different data by manipulating servermessage.color1 ... .message1 etc...
servermessagelist.push(servermessage)
it overwrites the entire array with copies of that data... any idea why or what I can do about it. | 0 | [
2,
8247,
8741,
5076,
3916,
77,
7718,
1693,
1078,
7718,
800,
3726,
3726,
31,
22,
79,
568,
21,
1903,
250,
544,
6596,
47,
31,
277,
14,
1301,
13169,
20,
8247,
8741,
31,
23,
749,
20,
233,
21,
23135,
3884,
86,
14,
517,
92,
196,
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... |
MailMan and Saving Attachments
===
I'm using the [mailmain](https://github.com/titanous/mailman) gem to grab pop3 mail. This library uses the [mail](http://rdoc.info/github/mikel/mail/Mail/Message#attachments-instance_method) gem to break up the message body and attachments. I'm to the point where I can get the attachment in the pry command line like so:
14: Mailman.config.rails_root = '../'
15:
16: Mailman::Application.run do
17: to 'expenses@surveymonkey.com' do
18: require 'debugger'; debugger
=> 19: print message
20: end
21: end
and I can get an individual attachment like so
[1] pry(#<Mailman::Router>)> a = message.attachments[0]
=> #<Mail::Part:70339703566060, Multipart: false, Headers: <Content-Type: image/jpeg; name="70s-Jump-Suit.jpeg">, <Content-Transfer-Encoding: base64>, <Content-Disposition: attachment; filename="70s-Jump-Suit.jpeg"; size=38412; creation-date="Tue, 26 Jun 2012 22:11:10 GMT"; modification-date="Tue, 26 Jun 2012 22:11:10 GMT">, <Content-Description: 70s-Jump-Suit.jpeg>>
So, the question is, how do I save this data?
I'm close with [this method](http://rdoc.info/github/mikel/mail/Mail/Message#attachments-instance_method), but I'm unable to properly save.
and I've tried stuff like this
[2] pry(#<Mailman::Router>)> File.open( '/tmp/output.jpg', "w+b", 0644 ) { |f| f.write a.raw_source }
but the output gets botched.
I just don't know enough about email encoding to get this to work.
Thanks in advance!
| 0 | [
2,
4216,
177,
17,
7599,
14575,
18,
800,
3726,
3726,
31,
22,
79,
568,
14,
636,
8079,
6232,
500,
5,
21127,
18,
6903,
10404,
20926,
9,
960,
118,
1388,
2463,
1291,
118,
8079,
177,
6,
8551,
20,
4931,
1675,
240,
4216,
9,
48,
1248,
202... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MySQL - Combining Records into Fields
===
What i'm trying to do is query a table which holds custom data about a person and get it into fields, however i'm getting each individual field as a record in my return.
The current statement i'm using is
SELECT s.fname, s.lname, s.email, s.mobile, s.country, cf.name, ca.value FROM
standard AS s
INNER JOIN people AS p ON
(s.pid = p.pid)
INNER JOIN custom_answers AS ca ON
(ca.pid = p.pid)
INNER JOIN custom_fields AS cf ON
(cf.fieldid = ca.fieldid)
WHERE p.acctid = 'xxxxxxxxxx'
This is given a resultset of 22,000 rows, whereas i am only looking for 900 rows.
An example of the data output is
fname | lname | email | mobile | country | name | value
tom | smith | t@t | 0412 | AU | state | Vic
tom | smith | t@t | 0412 | AU | position | Dept Head
tom | smith | t@t | 0412 | AU | guest | John Smith
mick | jones | m@j | 0411 | AU | postnom | AOC
mick | jones | m@j | 0411 | AU | state | NSW
mick | jones | m@j | 0411 | AU | postcode | 2000
whereas what i would like it to output is
fname | lname | email | mobile | country | state | position | guest | postnom | postcode
tom | smith | t@t | 0412 | AU | Vic | Dept Head | John Smith | null | null
mick | jones | m@j | 0411 | AU | NSW | null | null | AOC | 2000
what may or may not cause complication is that the amount of custom fields isn't the same for each person. some may have only a handful or custom fields, but some may have upwards of 30. | 0 | [
2,
51,
18,
22402,
13,
8,
12803,
742,
77,
2861,
800,
3726,
3726,
98,
31,
22,
79,
749,
20,
107,
25,
25597,
21,
859,
56,
2763,
5816,
1054,
88,
21,
840,
17,
164,
32,
77,
2861,
15,
207,
31,
22,
79,
1017,
206,
1359,
575,
28,
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... |
Uncaught SyntaxError passing multiple values to function
===
I am trying to call a function, but am running into some struggles with properly escaping the values and passing it properly. I currently have:
function selectdone(sel, title_id, status_type) {
...
}
$(function() {
$("td.status-updates").click(function() {
if ($(this).find('#sel').length == 0) {
var before = $(this).text();
var title_id = $(this).parent().attr('id');
var status_type = $(this).attr('class');
$(this).html("<select id='sel'
onchange='selectdone(this," + title_id + "," + status_type +");'...
<option>NS</option></select>");
}
});
The error I keep getting from this is `Uncaught SyntaxError: Unexpected identifier`.
However, if I pass it as `'selectdone(this," + title_id + ");...` it works, but if I try and pass three it raises that error.
Note: there are spaces in the `status_type` variable (multiple classes).
| 0 | [
2,
16061,
12647,
22649,
29992,
2848,
1886,
4070,
20,
1990,
800,
3726,
3726,
31,
589,
749,
20,
645,
21,
1990,
15,
47,
589,
946,
77,
109,
13131,
29,
7428,
14700,
14,
4070,
17,
2848,
32,
7428,
9,
31,
871,
57,
45,
1990,
5407,
43,
84... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 - url scheme does not work and application does not open
===
I want to run my app from a custom url.
I added the following to the AndroidManifest:
<activity android:name=".app.RunFromUrlActivity"
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="myapp"/>
</intent-filter>
</activity>
However, when i try to go to myapp://data the browser simply searches fot that string instead of running my Activity.
What am i doing wrong? | 0 | [
2,
13005,
13,
8,
287,
6362,
4276,
630,
52,
170,
17,
3010,
630,
52,
368,
800,
3726,
3726,
31,
259,
20,
485,
51,
4865,
37,
21,
5816,
287,
6362,
9,
31,
905,
14,
249,
20,
14,
13005,
8002,
9962,
45,
13,
1,
19348,
13005,
45,
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... |
EF Fluent API many to one relation, related entity is null
===
I have a database with the Entity Framework 5 RC (with Fluent API) working now, but I can't seem to get a specific relation to work. And it is driving me nuts for the past few nights I'm working on it.
It is the following relation:
[Link to the database diagram][1]
As you can see, I have a `Exercise` which is related to an `ExerciseType`. The problem is, the `Exercise.ExerciseType` navigation property, is not loaded. The relation I made is as follows:
EntityTypeConfiguration<Exercise>
...
this.HasRequired(ex => ex.ExerciseType)
.WithMany(exType => exType.Exercises)
.HasForeignKey(ex => ex.ExerciseTypeId);
The problem is that there is no error for me to google on. The entities are fetched, but the related `EntityType` property on the `Exercise` objects, is never fetched.
I am using the following query to force the `ExerciseType` to be fetched, but that doesn't seem to make it work either.
List<Exercise> exs = db.Exercises.Include(t => t.ExerciseType).ToList();
Is there someting wrong with the relationship I created? Or is there something wrong with the database configuration perhaps?
[1]: http://roetje.home.xs4all.nl/static/ExerciseRelation.png | 0 | [
2,
11599,
19252,
21,
2159,
151,
20,
53,
5827,
15,
1597,
9252,
25,
16203,
800,
3726,
3726,
31,
57,
21,
6018,
29,
14,
9252,
6596,
331,
16462,
13,
5,
1410,
19252,
21,
2159,
6,
638,
130,
15,
47,
31,
92,
22,
38,
2260,
20,
164,
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... |
Mocking and Singletons
===
I'm currently working on a bigger C#-Project. I've written several classes that connect to a database layer and now have to test them. The testing framework used is the Visual Studio Ultimate one. I've been given a Mock-layer for testing, however I'm unsure how to use it.
Basically my methods work like this:
public static void bla()
{
//This is a multithreaded singleton
Connection con = Connection.Instance;
//This raises a lot of Events
con.SomeConnection.Send(new GetBla());
}
With the MockLayer basically being ConnectionMock and implementing all it's methods as a mock. Is there any way to make con being the Mock WITHOUT changing the methods in any way?
| 0 | [
2,
18446,
17,
345,
444,
18,
800,
3726,
3726,
31,
22,
79,
871,
638,
27,
21,
6197,
272,
5910,
8,
21011,
9,
31,
22,
195,
642,
238,
2684,
30,
6379,
20,
21,
6018,
5385,
17,
130,
57,
20,
1289,
105,
9,
14,
4431,
6596,
147,
25,
14,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to jitter text to avoid overlap in a ggplot2 scatterplot?
===
I would like to create a clean version of a scatterplot of text labels in ggplot2. The goal is to represent visually the increasing values associated with about 25 items. I am already using "position_jitter," but I wonder if I can do better.
Here is some mock data:
title <- rep("A Really Rather Long Text Label", 25)
value <- runif(25, 1,10)
spacing <- seq(1:25)
df <- data.frame(title, value, spacing, stringsAsFactors = FALSE)
And here is the code that generates the graph:
myplot <- ggplot(data=df, aes(x=spacing, y=value, label = title)) +
geom_text(aes(colour = value),
size = 2.5, fontface = "bold",
vjust = 0,
position = position_jitter(width=5, height=0)) +
theme_bw() +
scale_x_continuous(limits = c(-5, 30))+
scale_colour_gradient(low = "#6BAED6", high = "#08306B") +
opts(axis.title.x = theme_blank(),
axis.ticks = theme_blank(),
axis.text.x = theme_blank(),
legend.position = "none")
myplot
There is plenty of space for all of this text in a graph of reasonable size -- so long as the text is free to shift as far as it needs to horizontally! I don't want to jitter vertically, because the point is to show the y value associated with each text label.
The graph comes out slightly differently every time you run the ggplot command -- and sometimes the jittering results are better than other times. But I haven't found a way to systematically prevent the labels from overlapping.
I'd be grateful for any suggestions on how to clean up the horizontal positioning of the text without having to move individual items manually. I'd also be glad to hear other tips on how to improve this type of visual representation. | 0 | [
2,
184,
20,
7022,
7986,
1854,
20,
2658,
15406,
19,
21,
13,
4572,
13221,
38,
135,
27465,
13221,
38,
60,
800,
3726,
3726,
31,
83,
101,
20,
1600,
21,
2745,
615,
16,
21,
27465,
13221,
38,
16,
1854,
13173,
19,
13,
4572,
13221,
38,
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... |
Why does .NET differentiate String from Character?
===
Isn't having String enough?
Just as **an** example, <br />
why can String class lets you pass either char array or string array to its [Split][1] method? <br />
while it's perfectly valid to use just string version?
1. [String.Split Method (Char\[\], StringSplitOptions)][2]
2. [String.Split Method (String\[\], StringSplitOptions)][3]
[1]: http://msdn.microsoft.com/en-us/library/system.string.split.aspx
[2]: http://msdn.microsoft.com/en-us/library/ms131448.aspx
[3]: http://msdn.microsoft.com/en-us/library/tabh47cf.aspx | 0 | [
2,
483,
630,
13,
9,
2328,
22144,
3724,
37,
925,
60,
800,
3726,
3726,
2532,
22,
38,
452,
3724,
511,
60,
114,
28,
13,
1409,
210,
1409,
823,
15,
13,
1,
5145,
13,
118,
1,
483,
92,
3724,
718,
6884,
42,
1477,
694,
4892,
7718,
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... |
Regular expression limit string size
===
How to limit string size for this regular expression?
/^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$/
I just need to add `{3,16}`
Thanks in advance. | 0 | [
2,
1290,
1803,
4496,
3724,
1072,
800,
3726,
3726,
184,
20,
4496,
3724,
1072,
26,
48,
1290,
1803,
60,
13,
118,
1,
2558,
58,
8,
380,
500,
2558,
58,
8,
380,
387,
8,
518,
500,
2483,
5,
60,
45,
1,
2558,
58,
8,
380,
387,
8,
518,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
MongoEngine query to get Post's author and Comments authors for Posts (at the same time)
===
I'm working on a web project with **Django and MongoDB** as my database (using MongoEngine to connect them).
I have to create Celery task to cleanup old user accounts. I need to only clean lazy users accounts without any content after one month (lazy users are automatically created users when they first connect to the website). What count as content? Any posts from the user or comments on any of the posts.
I did it like this, but I want to transform this into query if possible:
def clean_inactive_lazy_users():
users_with_content = []
for post in api_models.Post.objects:
users_with_content.append(post.author)
for comment in post.comments:
users_with_content.append(comment.author)
users_with_content = list(set(users_with_content))
for user in account_models.User.objects:
if not user.is_authenticated() and (timezone.now() - user.connection_last_unsubscribe).days >= settings.DELETE_LAZY_USER_AFTER_DAYS and user not in users_with_content:
user.delete()
The models look like this:
base.py
class AuthoredEmbeddedDocument(mongoengine.EmbeddedDocument):
author = mongoengine.ReferenceField(models.User, required=True)
class AuthoredDocument(mongoengine.Document):
author = mongoengine.ReferenceField(models.User, required=True)
api_models:
from . import base
class Comment(base.AuthoredEmbeddedDocument):
"""
This class defines document type for comments on posts.
"""
class Post(base.AuthoredDocument):
"""
This class defines document type for posts.
"""
account_models:
class User(auth.User):
def is_authenticated(self):
return self.has_usable_password()
Hopefully I provided enough information so you can help me with the problem. Thanks! | 0 | [
2,
3521,
839,
16847,
25597,
20,
164,
678,
22,
18,
1314,
17,
7534,
5152,
26,
9868,
13,
5,
721,
14,
205,
85,
6,
800,
3726,
3726,
31,
22,
79,
638,
27,
21,
2741,
669,
29,
13,
1409,
14365,
14541,
17,
3521,
5474,
220,
1409,
28,
51,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
JavaEE naming file and packages basics
===
Developing small sample BookStore application and got a questions if someone explain to me please.
Using Model 2 architecture (MVC) pattern with JSP & Servlet. Hoping to add CDI dependency injection.
Sorry for the trouble.
**1 - Naming convention.**
In the screenshot. Is my folder structure and naming files is correct?
Ex:
I named my files like:
*BookRepository.java implements IBook* = Data access layer. Methods to add,update,remove etc
*IBook.java* = Interface for above methods.
Online tutorial I am following uses file names like
*BookRepositoryImpl.java* = CRUD methods implementation
*BookRepository* = Interface
**Question:** Is there any specific convention when we name the files in JavaEE?
**How do you name you files and packages?**
![BookStore Application][1]
[1]: http://i.stack.imgur.com/eOtu2.gif | 0 | [
2,
8247,
2851,
10929,
3893,
17,
16875,
2125,
18,
800,
3726,
3726,
3561,
284,
5717,
21899,
3010,
17,
330,
21,
2346,
100,
737,
3271,
20,
55,
2247,
9,
568,
1061,
172,
2607,
13,
5,
79,
8990,
6,
3732,
29,
487,
3401,
279,
13,
10321,
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... |
Scope inside Python exec
===
When a variable/function is defined inside an exec it seems to go to the locals() instead to the globals() how I can change this behaviour? This only happens when you pass the global and local dictionaries to the exec.
Example:
exec("""
a = 2
def foo():
print a
foo()""") in {},{}
When you try this:
NameError: global name 'a' is not defined
| 0 | [
2,
9914,
572,
20059,
1396,
3319,
800,
3726,
3726,
76,
21,
7612,
118,
22359,
25,
2811,
572,
40,
1396,
3319,
32,
2206,
20,
162,
20,
14,
375,
18,
5,
6,
700,
20,
14,
2062,
18,
5,
6,
184,
31,
92,
753,
48,
7727,
60,
48,
104,
5531,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Executing acceleo project with maven
===
In my project i am executing the acceleo project from eclipse by using the plugin. I have generate.mtl and generate.java. The execution is done by using the run as configuration and choosing the acceleo application. THis configuration takes as an input the generate.java as a main class and as a model takes an uml file. It gives as an output some atl files.
Everything works perfect, the files is executed and the output is produced.
I am trying now to automate this process by using MAVEN. Could someone please give me some hints how to do that? Even the basic ones since am new with MAVEN.
How can i execute the mtl file with same parameters as described above?
Thank you in advance! | 0 | [
2,
25836,
7602,
5535,
111,
669,
29,
1216,
3124,
800,
3726,
3726,
19,
51,
669,
31,
589,
25836,
14,
7602,
5535,
111,
669,
37,
11652,
34,
568,
14,
10922,
108,
9,
31,
57,
7920,
9,
79,
7786,
17,
7920,
9,
1004,
1385,
9,
14,
5769,
25... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
crystal report using formula field justify
===
i am creating a agreement report that contain 60 pages of terms and condition ,i done this using formula fields but my f problem is that how can i justify the document
Please help | 0 | [
2,
4282,
1330,
568,
3729,
575,
17829,
800,
3726,
3726,
31,
589,
2936,
21,
2022,
1330,
30,
3717,
2083,
4434,
16,
1663,
17,
2874,
13,
15,
49,
677,
48,
568,
3729,
2861,
47,
51,
398,
1448,
25,
30,
184,
92,
31,
17829,
14,
4492,
2247,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 use try-catch correctly in simple methods?
===
I would like to make sure my classes are robust - even if they are simple and seem dumb to an experienced programmer.
Let's say I have a method as written below that accepts a string[] and returns it as an int[].
public static int[] GetIntArrayFromStringArray(string[] stringArray)
{
int i = 0;
int[] ints = new int[stringArray.Length];
foreach (var str in stringArray)
{
ints[i++] = (str != "" ? int.Parse(str) : 0);
}
return ints;
}
Is the best option to use try-catch and throw an exception? When I try to use try-catch, it seems to have issues with my variables not being in scope but I need them to be in a try-catch to catch any errors with the stringArray being null!
Perhaps I should use this?
if (stringArray == null) //do something ...
but not sure what to do in the event of an error ... do I return a null int[] or throw exception?
*(I also have to check that the int.Parse(str) doesn't fail - I'm getting to that one but hoped it could be in the try-catch block!)*
As I said, these are simple tasks that I want to try and get correct now before I develop too many bad habits. Thanks. | 0 | [
2,
184,
107,
31,
275,
1131,
8,
18208,
12044,
19,
1935,
3195,
60,
800,
3726,
3726,
31,
83,
101,
20,
233,
562,
51,
2684,
50,
15313,
13,
8,
166,
100,
59,
50,
1935,
17,
2260,
9317,
20,
40,
3882,
17968,
9,
408,
22,
18,
395,
31,
5... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What is the best way of grouping OSGi bundles to make a coherent 'application'
===
The "OSGi way" is to develop separate bundles containing discrete, coherent pieces of functionality. Sometimes these bundles contain utility classes, sometimes they depend on utility classes and set up their own OSGi Services.
Users, on the other hand, are unlikely to be exposed to bundles. They care more about the *application*, a piece of software that performs a task or solves their problem. Normally an application will use multiple bundles (say, imported via Import-Package) to perform its tasks.
__What is the best way to formalise this relationship in the OSGi world?__ One example requirement would be something as simple as showing the current version number *of the application* (not the bundle(s)) to to the user. How would this version number be discovered?
Eclipse has a concept called 'features' but this is not OSGi standard.
One way may be to have an 'application bundle' that uses Require-Bundle and has its own version, but Require-Bundle is frowned up in the OSGi world.
Another way maybe is to create a bundle that imports all the required packages with the required versions, however this adds a __significant__ maintenance overhead to the developer to the extent that I don't think it's feasible. | 0 | [
2,
98,
25,
14,
246,
161,
16,
19288,
13,
759,
2234,
10194,
18,
20,
233,
21,
21144,
13,
22,
2552,
20669,
22,
800,
3726,
3726,
14,
13,
7,
759,
2234,
161,
7,
25,
20,
2803,
1725,
10194,
18,
3503,
18563,
15,
21144,
2491,
16,
18548,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Populate values in double select box in struts2
===
I am populating the values in double select box dynamically from database at the time of loading.
I am successful in getting the values for the first select box but I am not getting the respective values for second select box.
Please if any body can help me to get the values in the second select I am really in need.
I am using the MAP collection.
| 0 | [
2,
1675,
12383,
4070,
19,
1494,
5407,
1649,
19,
18316,
18,
135,
800,
3726,
3726,
31,
589,
1675,
10038,
14,
4070,
19,
1494,
5407,
1649,
7782,
1326,
37,
6018,
35,
14,
85,
16,
12797,
9,
31,
589,
1300,
19,
1017,
14,
4070,
26,
14,
64... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Unable to load external spring config files with jetty maven plugin
===
I try to launch a webapp with jetty-maven-plugin as in http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin. But I want to externalize my environment configuration files.
Here is my project hierachy:
myapp-webapp
- src
- - test
- - - ressources
- - - java
- - main
- - - ressources
- - - java
- - - webapp
- - - - WEB-INF
- - - - META-INF
- - - - templates
- - - - ressources
- - - - index.xhtml
+ target (I don't detail it)
- configuration
- - local
- - - databaseLocal.properties
- - - ... others config files
- - dev
- - test
- - prod
And here is my pom file:
<profiles>
<profile>
<id>myapp-work</id>
<activation>
<property>
<name>!env</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<webApp>
<contextPath>/</contextPath>
<extraClasspath>configuration/local/</extraClasspath>
</webApp>
<scanTargetPatterns>
<scanTargetPattern>
<directory>configuration/local/</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</scanTargetPattern>
</scanTargetPatterns>
</configuration>
<dependencies>
<dependency>
...
</dependencies>
</plugin>
...
<plugins>
And I am facing to this error
2012-07-04 10:33:26.460:WARN::Failed startup of context JettyWebAppContext@29b829b8@29b829b8/,file:/C:/DEV/RTCworkspace/myapp/myapp-webapp/src/main/webapp/,file:/C:/DEV/RTCworkspace/myapp/myapp-webapp/src/main/webapp/
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [databaseLocal.properties] cannot be opened because it does not exist
I found a lot of information but nothing works:
- http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin
- http://stackoverflow.com/questions/9896694/cant-find-config-files-in-jetty-spring-tiles-deployement
- http://stackoverflow.com/questions/6427600/maven-jetty-plugin-not-using-correct-paths
I try also:
<extraClasspath>${basedir}/${externalConfiguration.directory}</extraClasspath>
Here is an extract of startup log (my webapp name is cct, i replace it until now):
[INFO] webAppSourceDirectory C:\DEV\RTCworkspace\cct\cct-webapp\src\main\webapp does not exist. Defaulting to C:\DEV\RTCworkspace\cct\cct-webapp\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = C:\DEV\RTCworkspace\cct\cct-webapp\src\main\webapp\WEB-INF\classes
[INFO] Adding extra scan target from pattern: C:\DEV\RTCworkspace\cct\cct-webapp\configuration\local\database.properties
[INFO] Adding extra scan target from pattern: C:\DEV\RTCworkspace\cct\cct-webapp\configuration\local\databaseLocal.properties
[INFO] Adding extra scan target from pattern: C:\DEV\RTCworkspace\cct\cct-webapp\configuration\local\efrit-security.properties
[INFO] Adding extra scan target from pattern: C:\DEV\RTCworkspace\cct\cct-webapp\configuration\local\efrit.properties
[INFO] Adding extra scan target from pattern: C:\DEV\RTCworkspace\cct\cct-webapp\configuration\local\efrit_logback.xml
[INFO] Adding extra scan target from pattern: C:\DEV\RTCworkspace\cct\cct-webapp\configuration\local\ldap.properties
[INFO] Adding extra scan target from pattern: C:\DEV\RTCworkspace\cct\cct-webapp\configuration\local\logback.properties
[INFO] Adding extra scan target from pattern: C:\DEV\RTCworkspace\cct\cct-webapp\configuration\local\logback.xml
[INFO] Context path = /
[INFO] Tmp directory = C:\DEV\RTCworkspace\cct\cct-webapp\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = file:/C:/DEV/RTCworkspace/cct/cct-webapp/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = C:\DEV\RTCworkspace\cct\cct-webapp\src\main\webapp
[INFO] Starting jetty 7.1.6.v20100715 ...2012-07-04 11:16:56.349:INFO::jetty-7.1.6.v20100715
So he says, he see my config file but he is unable to read it.
| 0 | [
2,
2343,
20,
6305,
4886,
1573,
13,
14093,
2816,
6488,
29,
17341,
93,
1216,
3124,
10922,
108,
800,
3726,
3726,
31,
1131,
20,
3394,
21,
2741,
7753,
29,
17341,
93,
8,
540,
3124,
8,
18527,
5831,
28,
19,
7775,
6903,
17375,
9,
3319,
601... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 map <c-leader> in vim?
===
I would like to map ctrl+leader key. Is it possible?
Tried: `:nnoremap <c-leader> :CtrlP<CR>`
And it does not work.
(ctrlp bindings conflict with yankring bindings) | 0 | [
2,
184,
20,
2942,
13,
1,
150,
8,
15689,
1,
19,
1790,
79,
60,
800,
3726,
3726,
31,
83,
101,
20,
2942,
13,
4812,
6362,
2430,
15689,
1246,
9,
25,
32,
938,
60,
794,
45,
13,
1,
45,
103,
251,
99,
15022,
13,
1,
150,
8,
15689,
1,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to send email from broadcastreceiver?
===
I am implementing one application.
Based on my application i am created class named "RepeatingAlarm.java"
My RepeatingAlarm class extends broadcastrecevers.
I am calling the above class in every one hour.
My requirement is,when this class is called
I want to get a file from sdcard and send this file through email.
If any one know the solution please help me.
Thanks in advance | 0 | [
2,
184,
20,
2660,
8517,
37,
1992,
99,
1105,
19737,
60,
800,
3726,
3726,
31,
589,
17333,
53,
3010,
9,
432,
27,
51,
3010,
31,
589,
679,
718,
377,
13,
7,
99,
1664,
1880,
192,
5828,
9,
1004,
1385,
7,
51,
17389,
192,
5828,
718,
907... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Inbox type UI control in BlackBerry 5.0
===
I'm looking for an "Inbox-styled" control that we see in BlackBerry device i.e. one row has From, Time and Subject and the entire is selectable. If there is no readily available control, it would of immense help if someone can point to appropriate method.
BlackBerry 5.0 Java API
Thanks | 0 | [
2,
19,
5309,
1001,
13,
5661,
569,
19,
27367,
331,
9,
387,
800,
3726,
3726,
31,
22,
79,
699,
26,
40,
13,
7,
108,
5309,
8,
4381,
43,
7,
569,
30,
95,
196,
19,
27367,
3646,
31,
9,
62,
9,
53,
3131,
63,
37,
15,
85,
17,
1550,
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... |
Store JSON as a field in PostgreSQL with Spring Data JPA
===
I want to have a specific table with two columns, an ID and a field in which I'll store a JSON object. And I'm using Spring Data JPA.
I'm thinking of something in this line, but I'm not sure:
@Entity
@Table(name = "some_table")
public class SomeTable {
@Id
@Column(name = "id", unique = true)
@GenericGenerator(name = "uuid", strategy = "uuid2")
@GeneratedValue(generator = "uuid")
private UUID id;
// getters and setters for id here..
// here to be the field for storing JSON objects and it's getters and setters
} | 0 | [
2,
1718,
487,
528,
28,
21,
575,
19,
678,
6879,
18,
22402,
29,
1573,
1054,
487,
1060,
800,
3726,
3726,
31,
259,
20,
57,
21,
1903,
859,
29,
81,
7498,
15,
40,
4924,
17,
21,
575,
19,
56,
31,
22,
211,
1718,
21,
487,
528,
3095,
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... |
string.translate() with unicode data in python
===
I have 3 API's that return json data to 3 dictionary variables. I am taking some of the values from the dictionary to process them. I read the specific values that I want to the list `valuelist`. One of the steps is to remove the punctuation from them. I normally use `string.translate(None, string.punctuation)` for this process but because the dictionary data is unicode I get the error:
wordlist = [s.translate(None, string.punctuation)for s in valuelist]
TypeError: translate() takes exactly one argument (2 given)
Is there a way around this? Either by encoding the unicode or a replacement for `string.translate`? | 0 | [
2,
3724,
9,
7028,
6554,
5,
6,
29,
28010,
1054,
19,
20059,
800,
3726,
3726,
31,
57,
203,
21,
2159,
22,
18,
30,
788,
487,
528,
1054,
20,
203,
9186,
12157,
9,
31,
589,
741,
109,
16,
14,
4070,
37,
14,
9186,
20,
953,
105,
9,
31,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ROMMON and u-boot on network devices
===
What is the difference between rommon and u-boot in network devices? I'm reading some device documentation and i can't quite tell what is the difference. | 0 | [
2,
8421,
2111,
17,
287,
8,
10858,
38,
27,
982,
4690,
800,
3726,
3726,
98,
25,
14,
2841,
128,
8421,
2111,
17,
287,
8,
10858,
38,
19,
982,
4690,
60,
31,
22,
79,
1876,
109,
3646,
13945,
17,
31,
92,
22,
38,
1450,
494,
98,
25,
14... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
Constrain JFrame to single screen in a multi-monitor environment
===
I am working on a web applet and have run into an issue. If a user is using Windows classic theme with a multi-screen environment and said user attempts to move a JFrame from one monitor to another Java will hang. I have been unable to find a solution to this issue, so as a workaround I wanted to see if there is any way I can prevent the user from moving a JFrame to a different monitor. Is there a way to constrain window movement? | 0 | [
2,
11608,
11809,
487,
8361,
20,
345,
2324,
19,
21,
1889,
8,
2111,
242,
248,
2307,
800,
3726,
3726,
31,
589,
638,
27,
21,
2741,
4037,
38,
17,
57,
485,
77,
40,
1513,
9,
100,
21,
4155,
25,
568,
1936,
2732,
3184,
29,
21,
1889,
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... |
Reloading module causes different results
===
During testing I added a reload command to my test cases so I could change code in several different places without having to reload everything manually and I noticed the reloads seemed to affect the results of the tests.
Here's what I did:
import mymodule
import mymodule.rules as rules
def testcase():
reload(mymodule)
reload(rules)
# The rest of the test case
Everything works fine like this, or when both reloads are commented out, but when I comment out the second reload the results of the test are different. Is there something that happens during the reload process that I'm not aware of that necessitates reloading all scripts from a module once the module is reloaded? Is there some other explanation?
I'm not sure if this is relevant, but rules is a separate script inside mymodule that includes this line:
from mymodule import Rule
| 0 | [
2,
27339,
68,
12613,
4047,
421,
1736,
800,
3726,
3726,
112,
4431,
31,
905,
21,
27339,
1202,
20,
51,
1289,
1871,
86,
31,
110,
753,
1797,
19,
238,
421,
1489,
366,
452,
20,
27339,
796,
23671,
17,
31,
2711,
14,
27339,
18,
890,
20,
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... |
photo upload with facebook batch request in AS3
===
Hi i am developing an as3 application for facebook. it needs to upload bulk photos to a page(not spam anyway). So i want to use FacebookBatchRequest Class. But whenever i call to the method "call" of that class its doesn't work. i mean the photos don't upload, though the debugger doesn't show any error. i tried to debug the response that is sent by the api but i only saw the following multipart form data instead of any facebook graph response :
>https://graph.facebook.com?-------
>Content-Disposition: form-data; name="access_token"
>AAAEFZCpZCSfhIBAFTgiHvhKrAcLbVxd3PmXq7wqZBqXHXpMryyb9J9SPTJaUIdXA22A1nxPI9FNgBwHFH2P21OxvUFjE059oL0kf4Ni3qACM27NE5J5
>-------
>Content-Disposition: form-data; name="batch"
>[{"attached_files":"image1","body":"message=1&fileName=image1","relative_url":"/251684231574793/photos","method":"POST"}]
>-------
>Content-Disposition: form-data; name="image1"; filename="image1";image1"
>image/png
>PNG
>IHDRCCÇʸsfIDATxÚíÐA ûÖßBì )'
dȐ!C2dȐ!C2dȐ!CȐ!C2dȐ!C2dȐ!C2!C2dȐ!C2dȐ!CÆ;fáèþ7IEND®B`
>---------
when i went through the deep of the class i saw that this type of response is only sent when there is an IOError during url loading. Can you guess what is problem and how to solve it? | 0 | [
2,
3056,
71,
8294,
29,
9090,
13064,
3772,
19,
28,
240,
800,
3726,
3726,
4148,
31,
589,
3561,
40,
28,
240,
3010,
26,
9090,
9,
32,
2274,
20,
71,
8294,
7238,
7064,
20,
21,
2478,
5,
1270,
6954,
79,
2774,
6,
9,
86,
31,
259,
20,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.