unified_texts stringlengths 32 30.1k | OpenStatus_id int64 0 4 | input_ids list | token_type_ids list | attention_mask list |
|---|---|---|---|---|
Print margins in DOMPDF
===
I'm trying to generate a PDF using DOMPDF.
I have some HTML which is then converted into a PDF.
But I have a problem. When I put an object at the top of the page (e.g. an icon), in the PDF it's also show on the top of the page.
But when I print the PDF there is a margin. I know that there has to be a minimal margin, but in my case it's just too large.
Is there some way to control this margin in DOMPDF?
I'm trying to reproduce an existing document and in the original the logo is not on the top of the page (there is already a margin in the PDF). But when I print it, it's located at the exact same position as in the PDF generated by me (and there is no margin in the PDF).
Is there somewhere a print margin already set in the PDF? | 0 | [
2,
4793,
5440,
18,
19,
11859,
11124,
800,
3726,
3726,
31,
22,
79,
749,
20,
7920,
21,
13,
11124,
568,
11859,
11124,
9,
31,
57,
109,
13,
15895,
56,
25,
94,
3494,
77,
21,
13,
11124,
9,
47,
31,
57,
21,
1448,
9,
76,
31,
442,
40,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Simple java HttpClient program not working
===
I have HttpClient 4.1. Please have a look at following program:
import java.io.*;
import org.apache.http.client.methods.*;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
public class SysCommands {
public static void main(String [] args){
Runtime rt = Runtime.getRuntime();
Process p;
try{
p = rt.exec("cmd /c dir");
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
while(br.readLine() != null){
//System.out.println(br.readLine());
}
}catch(Exception e){
System.out.println("Woah an exception: "+e);
}
try{
HttpClient c = new DefaultHttpClient();
System.out.println("Initial part");
HttpGet method = new HttpGet("http://www.google.com");
HttpResponse resp = c.execute(method);
System.out.println("Method executed");
String s = "";
resp.getHeaders(s);
System.out.println("headers are "+s);
BufferedReader rd = new BufferedReader(new InputStreamReader(resp.getEntity().getContent()));
String line = "";
while ((line = rd.readLine()) != null) {
System.out.println(line);
}
}catch(Exception e){
System.out.println(e);
}
}
}
When I run this, I get `org.apache.http.client.ClientProtocolException`. What could be wrong? | 0 | [
2,
1935,
8247,
7775,
150,
18513,
38,
625,
52,
638,
800,
3726,
3726,
31,
57,
7775,
150,
18513,
38,
268,
9,
165,
9,
2247,
57,
21,
361,
35,
249,
625,
45,
9010,
8247,
9,
1963,
9,
2483,
73,
9010,
13,
5583,
9,
7738,
2569,
9,
21127,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What does multiprocessing.Process.__init__(self) do?
===
I have been using <a href="http://broadcast.oreilly.com/2009/04/pymotw-multiprocessing-part-2.html">this link</a> to learn about multiprocessing, but I'm stuck on the second example.
First, could someone please explain exactly what multiprocess.Process.__init__(self) does? Also I'm not entirely sure how the queue works, and I'm confused how the run method in the Consumer class is executed even though it is never called (explicitly at least...)
If someone could help me walk through the example to get the given output, it would be greatly appreciated.
| 0 | [
2,
98,
630,
1889,
16835,
68,
9,
16835,
9,
1,
108,
242,
1,
5,
8411,
6,
107,
60,
800,
3726,
3726,
31,
57,
74,
568,
13,
1,
58,
746,
14057,
3726,
7,
21127,
6903,
24162,
9,
111,
15382,
9,
960,
118,
2849,
118,
3277,
118,
6448,
766... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 2.7.3 Mergesort Receiving -- "TypeError: object of type 'file' has no len()"
===
I am just about done writing my first mergesort program and am running into trouble when compiling. I have done a bunch of research on this particular error and it seems I'm being non-specific somewhere in my code. I still cannot find said error and would love your help. I have attached the file contents, code, and traceback. Thanks again.
File:
999 Message C1
1033 Message C2
1054 Message C3
1056 Message C4
1086 Message C5
Code:
DEBUG = True
out = []
logs = open("C:\Users\----\Desktop\logs.txt", mode ="r")
lines = logs.readline()
def debug(s):
if DEBUG:
print "DEBUG: ", s
def get_t (line):
s = line
s = s.lstrip()
debug(s)
i = s.find(" ")
debug(s)
s = s[:i]
return int(s)
def get_lowest_i(logs):
lowest_i = -1
for i in range(len(logs)):
log = logs[i]
debug("log=" + repr(log))
if log:
t = get_t(log[0])
debug("t=" + repr(t))
if lowest_i == -1 or t < lowest_t:
lowest_i = i
lowest_t = t
return lowest_i
def get_line_lowest_t(logs):
while True:
i = get_lowest_i(logs)
if i == -1:
break
line = logs[i].pop(0)
def mergesort(logs):
while True:
line = get_line_lowest_t(logs)
if line == None:
break
out.append(line)
return out
print mergesort(logs)
f.close()
Traceback:
Traceback (most recent call last):
File "<module1>", line 50, in <module>
File "<module1>", line 44, in mergesort
File "<module1>", line 37, in get_line_lowest_t
File "<module1>", line 24, in get_lowest_i
TypeError: object of type 'file' has no len()
Thanks in advance. | 0 | [
2,
20059,
172,
9,
465,
9,
240,
12666,
22843,
3396,
13,
8,
8,
13,
7,
4474,
29992,
45,
3095,
16,
1001,
13,
22,
16877,
22,
63,
90,
10655,
5,
6,
7,
800,
3726,
3726,
31,
589,
114,
88,
677,
1174,
51,
64,
12666,
22843,
625,
17,
589... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 way to programmatically recall e-mails via Outlook/Exchange?
===
Does anyone know if this is possible? I can't see to find much info about doing so other than to even recall a message both sender & receiver must be using Exchange and the e-mail has to be unread on the receiver's end. There's rarely a case where this would need to be done but even so it would be useful to know. | 1 | [
2,
25,
80,
21,
161,
20,
625,
6732,
1326,
7111,
13,
62,
8,
8079,
18,
1197,
19837,
118,
1706,
16229,
60,
800,
3726,
3726,
630,
1276,
143,
100,
48,
25,
938,
60,
31,
92,
22,
38,
196,
20,
477,
212,
15404,
88,
845,
86,
89,
119,
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... |
mediaelement.js internet explorer 8 showing blocky rectangles
===
I am using the **mediaelement.js** wordpress plugin in order to play mp3s on my homepage.
But on Inernet Explorer 8 I have trouble with the plugin.
Instead of the play button and the volume button,it only shows a **blocky rectangle**.
I have tested on two different computers with the same result.
You can test it here: http://www.alatarmusic.com/noise-reduction/
It works fine with Firefox and with Safari on my Iphone. And I know, that other sites show up fine in my Internet Explorer. For example the player on http://mediaelementjs.com/ looks correct. It seems, something is wrong with my homepage? But what could be the reason for this?
| 0 | [
2,
941,
27567,
9,
728,
18,
2620,
8520,
469,
3187,
1921,
93,
27181,
18,
800,
3726,
3726,
31,
589,
568,
14,
13,
1409,
8260,
27567,
9,
728,
18,
1409,
833,
5890,
10922,
108,
19,
389,
20,
418,
4628,
240,
18,
27,
51,
213,
6486,
9,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Which azure service, i should choose for my node.js app?
===
I am new to Microsoft windows azure cloud and want to run my node.js app in azure cloud. I read the windows azure Node.js Developer Center site ( https://www.windowsazure.com/en-us/develop/nodejs/ ) and it seems my app can run in azure cloud multiple ways.
Which azure option is good for my node.js app if i want to deploy quick with less azure knowledge?
| 0 | [
2,
56,
25715,
365,
15,
31,
378,
3538,
26,
51,
15421,
9,
728,
18,
4865,
60,
800,
3726,
3726,
31,
589,
78,
20,
7099,
1936,
25715,
4005,
17,
259,
20,
485,
51,
15421,
9,
728,
18,
4865,
19,
25715,
4005,
9,
31,
1302,
14,
1936,
25715... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
mpeg-ts fundamental
===
I read some tutorials about mpeg transport stream, but there are 2 fundamental issues I do not understand:
1. mpeg-ts muxer recieve pes packets from audio and video, and output mpeg-ts packets. How does it do this muxing ? Is it that whenever a packet from any program is waiting on its input, that the muxer wakes up and process the pes slicing into mpeg-ts ?
2. Is it that the user can select which bit rate the mpeg-ts muxer will output ? what is the connection between the rate of the encoding to the rate of mpeg-ts ?
Thank you very much,
Ran | 0 | [
2,
307,
20427,
8,
38,
18,
6377,
800,
3726,
3726,
31,
1302,
109,
29724,
18,
88,
307,
20427,
1739,
3766,
15,
47,
80,
50,
172,
6377,
1549,
31,
107,
52,
1369,
45,
137,
9,
307,
20427,
8,
38,
18,
2832,
396,
106,
302,
10486,
195,
104... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Analytics API Migration from 2.3 to 2.4 : AuthenticationException : Invalid Credentials
===
*[Context : Google App Engine, Java, OAuth 1.0]*
Hi there,
I'm facing with some difficulty when I tried to migrate my application from Google Analytics API 2.3 to 2.4. Here are the steps that I followed :
- Activating Google Analytics API on Google API console
- Retrieve **OAuth 1.0** API Key
- Changing Google Analytics Core & Management API Query URL :
[https://www.google.com/analytics/feeds/accounts/default] >> [https://www.googleapis.com/analytics/v2.4/management/accounts]
[https://www.google.com/analytics/feeds/data] >> [https://www.googleapis.com/analytics/v2.4/data]
- Changing OAuth scope URL :
[https://www.google.com/analytics/feeds/] >> [https://www.googleapis.com/auth/analytics.readonly]
- Updating Google Analytics Libraries :
gdata-analytics-meta-2.1.jar - gdata-analytics-2.1.jar - gdata-core-1.0.jar - google-collect-1.0-rc1.jar - jsr305.jar
- Changing some code :
(After redirection)
AnalyticsService service = new AnalyticsService("myApp");
OAuthParameters params = new GoogleOAuthParameters();
params.setOAuthConsumerKey(KEY);
params.setOAuthConsumerSecret(SECRET);
params.setOAuthToken(USER_GATOKEN);
params.setOAuthTokenSecret(USER_GASECRET);
service.setOAuthCredentials(params, new OAuthHmacSha1Signer());
//Then query some data
ManagementFeed accountsFeed = analyticsService.getFeed(new URL("https://www.googleapis.com/analytics/v2.4/management/accounts?key=" + API_KEY), ManagementFeed.class);
**This last line threw the following exception :**
AppEngine Warning (before exception) :
com.google.appengine.repackaged.org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARN: Authentication error: Unable to respond to any of these challenges: {authsub=WWW-Authenticate: AuthSub realm="https://www.google.com/accounts/AuthSubRequest" allowed-scopes="https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/analytics"}
-------------------
com.google.gdata.util.AuthenticationException: OK
<?xml version="1.0" encoding="UTF-8"?><errors xmlns="http://schemas.google.com/g/2005"><error><domain>GData</domain><code>authError</code><location type="header">Authorization</location><internalReason>Invalid Credentials</internalReason></error></errors>
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:596)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:550)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535)
at com.google.gdata.client.Service.getFeed(Service.java:1135)
at com.google.gdata.client.Service.getFeed(Service.java:998)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
at com.google.gdata.client.Service.getFeed(Service.java:1017)
If I use "UserCredential" auth., it work... :
service.setUserCredentials(USERNAME,PASSWORD);
- **How can I fix my OAuth 1.0 problem ? What did I do wrong ?**
Well, I hope someone will have a brillant idea -- Thanks in advance !
| 0 | [
2,
8144,
26320,
21,
2159,
8443,
37,
172,
9,
240,
20,
172,
9,
300,
13,
45,
27963,
10066,
872,
13,
45,
16671,
5059,
43,
10107,
18,
800,
3726,
3726,
1637,
2558,
1126,
11969,
13,
45,
8144,
4865,
1406,
15,
8247,
15,
635,
1346,
96,
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... |
Logging all socket calls in iOS
===
I am trying to trace an issue in my app and have the need to trace all calls of the BSD Socket APIs. I basically would like my function to be called whenever a socket is created, which will print logging statements containing values of key variables at the time (including the destination of the socket and port, etc.)
I want this logging to be called when my program calls socket directly (that's easy), but the hard part is I would like to have it called when socket calls are called indirectly as a result of other higher-level API calls (CFNetwork, etc.)
How can this be done? | 0 | [
2,
13,
13919,
65,
18482,
3029,
19,
13,
7760,
800,
3726,
3726,
31,
589,
749,
20,
5565,
40,
1513,
19,
51,
4865,
17,
57,
14,
376,
20,
5565,
65,
3029,
16,
14,
334,
18,
43,
18482,
21,
8954,
9,
31,
11374,
83,
101,
51,
1990,
20,
44... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Creating a windows service that downloads files from azure every hour. c#
===
What's the best way to get this to work?
I've tried some stuff but the AzureService didn't want to work with the service. The service on its own worked and so did the AzureService, but together didn't work.
Is there anyone whose already done something like this?
| 0 | [
2,
2936,
21,
1936,
365,
30,
7121,
18,
6488,
37,
25715,
352,
1671,
9,
272,
5910,
800,
3726,
3726,
98,
22,
18,
14,
246,
161,
20,
164,
48,
20,
170,
60,
31,
22,
195,
794,
109,
3217,
47,
14,
25715,
11449,
223,
22,
38,
259,
20,
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... |
Error when trying to share an article URL by permalink
===
Our CMS uses permalink, for example this one:
www.kingmagazine.se/artiklar/king-kroner/20120713/10-korthallare
When a user is trying to share this URL by pasting it into the "update status" field on their Facebook homepage, Facebook seems to try fetch a different URL to get the open graph info, as illustrated in this image:
http://i.imgur.com/NjYM9.png
The page fetched seems to be an error message from the site. The image is not relevant to the article specified but rather contained in the footer of all pages.
However the CMS also has internal URL:s, such as this one (for the same article):
www.kingmagazine.se/artiklar/?id=152539
When sharing that one on Facebook, the correct data is fetched, as illustrated here:
http://i.imgur.com/wV5q3.png
I have tried digging in our server logs to no avail - it seems like Facebook is requesting the wrong URL and not the complete permalink. I have also tried the Facebook Lint but haven't found any reason.
Has anyone got any ideas?
Sorry for the garbled links but Stackoverflow spam prevention said max 2 links and no images. :( | 0 | [
2,
7019,
76,
749,
20,
1891,
40,
2002,
287,
6362,
34,
416,
540,
6258,
800,
3726,
3726,
318,
2390,
18,
2027,
416,
540,
6258,
15,
26,
823,
48,
53,
45,
13,
6483,
9,
1581,
27605,
9,
870,
118,
512,
11571,
3779,
118,
1581,
8,
197,
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... |
Find and replace emails and phone numbers in PHP
===
I was hoping for a little help on this, as it's confusing me a little... I run a website that allows users to send messages back and forth, but on the inbox i need to hide both emails and phone numbers.
Example: This is how a sample email would look like.
**Hi, my phone is +44 5555555 and email is jack@jack.com**
I need it to be like this:
**Hi, my phone is (phone hidden) and email is (email hidden)**
Do you have any ideas ?... I really appreciate it!.. | 0 | [
2,
477,
17,
3934,
8517,
18,
17,
1132,
2116,
19,
13,
26120,
800,
3726,
3726,
31,
23,
3935,
26,
21,
265,
448,
27,
48,
15,
28,
32,
22,
18,
18084,
55,
21,
265,
9,
9,
9,
31,
485,
21,
2271,
30,
2965,
3878,
20,
2660,
7561,
97,
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... |
Better way to handle errors with HTTP request/response
===
I am new to VB...I am using the following code to make an HTTP request and buffer the response into a String:
Try
myHttpWebRequest = CType(WebRequest.Create(strUrl), HttpWebRequest)
myHttpWebResponse = CType(myHttpWebRequest.GetResponse(), HttpWebResponse)
receiveStream = myHttpWebResponse.GetResponseStream()
encode = System.Text.Encoding.GetEncoding("utf-8")
sr = New StreamReader(receiveStream, encode)
Do Until sr.Peek = -1
strLine = String.Concat(strLine, sr.ReadLine)
arrBuff.Add(strLine)
Loop
Catch ex As System.Net.WebException
MsgBox(ex.Message)
Finally
myHttpWebResponse.Close()
End Try
sr.Close()
This works fine, but errors are not handled well, for example if the request triggers a 500 response the VB code encounters an unhandled exception. Any thoughts on how to make this code better?
| 0 | [
2,
574,
161,
20,
3053,
11908,
29,
7775,
3772,
118,
99,
18,
8782,
870,
800,
3726,
3726,
31,
589,
78,
20,
13,
20468,
9,
9,
9,
49,
589,
568,
14,
249,
1797,
20,
233,
40,
7775,
3772,
17,
17497,
14,
1627,
77,
21,
3724,
45,
1131,
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... |
Custom button not appearing on iOS device
===
So I'm trying to implement a custom button in my iOS app to replace the default rounded rectangle button. Heres a code snippet:
UIImage *normalImage = [[UIImage imageNamed:@"Images/whitebutton.png"]
stretchableImageWithLeftCapWidth:12.0
topCapHeight:0.0];
UIImage *pressedImage = [[UIImage imageNamed:@"Images/bluebutton.png"]
stretchableImageWithLeftCapWidth:12.0
topCapHeight:0.0];
[self.theButton setBackgroundImage:normalImage
forState:UIControlStateNormal];
[self.theButton setBackgroundImage:pressedImage
forState:UIControlStateHighlighted];
When I run it in the simulator everything works fine, my custom button shows up. However, when I run it on my actual device the button just appears as the default one with no customisation at all. Anybody got any idea where I'm going wrong?
thanks
| 0 | [
2,
5816,
5167,
52,
4870,
27,
13,
7760,
3646,
800,
3726,
3726,
86,
31,
22,
79,
749,
20,
8713,
21,
5816,
5167,
19,
51,
13,
7760,
4865,
20,
3934,
14,
12838,
8472,
27181,
5167,
9,
235,
18,
21,
1797,
13,
29061,
45,
13,
5661,
22039,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Metaclass and syntax in Python
===
I try to make something like that :
<!-- language: lang-py -->
class oObject(object):
def __init__(self, x = 0, y = 0, z = 0):
self.x = x
self.y = y
self.z = z
def asString (self, value):
return str(value)
vector = oObject(5,5,5)
# So i can do
asString(vector.x)
# But I want this kind of syntax
vector.x.asString()
It's just an example, i don't really want to convert integrer into a string. It's more about class into a class.
| 0 | [
2,
7618,
1898,
17,
22649,
19,
20059,
800,
3726,
3726,
31,
1131,
20,
233,
301,
101,
30,
13,
45,
13,
1,
187,
8,
8,
816,
45,
4544,
8,
6448,
13,
8,
8,
1,
718,
635,
23793,
5,
23793,
6,
45,
6312,
13,
1,
108,
242,
1,
5,
8411,
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... |
Microsoft.Web.Helpers not visible in the view
===
When I install package Microsoft.Web.Helpers I get next warning txt file (after installing):
**If the package is installed in an ASP.NET MVC 3 site, the site will not work.
If you’ve already installed the package into an MVC 3 application, uninstall it.
If the MVC 3 site does not work even after you have uninstalled the package, you might need to reinstall the ASP.NET MVC 3 packages as well.**
I can use Microsoft.Web.Helpers in controller class but cant in the view (@using Microsoft.Web.Helpers not found).
I trying do next: http://stackoverflow.com/questions/5666438/using-recaptcha-with-mvc3-and-razor http://stackoverflow.com/questions/8276354/recaptcha-and-mvc3-problems-getting-microsoft-web-helpers-working .But it doesnt help.What I missed? | 0 | [
2,
7099,
9,
14113,
9,
14593,
445,
52,
4560,
19,
14,
1418,
800,
3726,
3726,
76,
31,
16146,
6030,
7099,
9,
14113,
9,
14593,
445,
31,
164,
328,
3590,
20225,
38,
3893,
13,
5,
5162,
25429,
6,
45,
13,
1409,
821,
14,
6030,
25,
4066,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Abstract entities and inheritance in Core Data
===
I have a data model for Formula 1 races with 3 entities:
- RacingActor: Abstract entity
- Pilot: inherits from RacingActor
- Team: inherits from RacingActor
![enter image description here][1]
If I generate NSManagedObject subclasses to represent these entities, the code generated doesn't represent at all this design:
- Everything inherits from NSManagedObject
- Nothing prevents me from instantiating RacingActor
- The team property in Pilot is of type NSManagedObject instead of Team
Is this the expected behavior? Am I supposed to fix the code generated by Xcode? Am I missing something?
BTW, I'm using Xcode 4.3.3
[1]: http://i.stack.imgur.com/jwREq.png | 0 | [
2,
8502,
12549,
17,
13852,
19,
2884,
1054,
800,
3726,
3726,
31,
57,
21,
1054,
1061,
26,
3729,
137,
2312,
29,
203,
12549,
45,
13,
8,
2179,
20908,
45,
8502,
9252,
13,
8,
2648,
45,
17569,
18,
37,
2179,
20908,
13,
8,
173,
45,
17569,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Sencha Touch 2 - Login user state
===
I'm creating an ST2 application where you can login/register etc.
I'm wondering what the normal way is of logging in and having the User state across the entire application.
I have a User model with a REST proxy to get/save the data. When you load up the application I'm doing this to grab the user:
launch: function () {
var User = Ext.ModelManager.getModel('App.model.User');
User.load("", {
success: function (user) {
// I have the user here but it's only within this scope
}
});
}
But doing this it's only available within this function... so what do people usually do to get ahold of the user across the whole application? just store it within the application like:
application.user = user;
or do you create a store with an ID of User, using the User model and then retrieve with:
// Assume it's been loaded once and got to do getAt(0) as a Store is an array of Models
var user = Ext.StoreManager.get('User').getAt(0),
email = user.get('email');
Thanks, Dominic | 0 | [
2,
8252,
1651,
1723,
172,
13,
8,
6738,
108,
4155,
146,
800,
3726,
3726,
31,
22,
79,
2936,
40,
354,
135,
3010,
113,
42,
92,
6738,
108,
118,
12463,
9959,
2722,
9,
31,
22,
79,
5712,
98,
14,
1826,
161,
25,
16,
13,
13919,
19,
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... |
Combining multiple row meta info from MYSQL database to one response
===
I'm working with an existing database and I have a question I know you SQL guys can nail. I have 2 tables, on has an item id and a description, the other stores all the meta for said items.
my two tables are like this....
items-
----------------
id | description
----------------
itemsmeta-
-----------------------------------------
itemmeta_id | item_id | fieldkey | value
-----------------------------------------
What I need to do is get a single response, hopefully as an object or array based on a given item ID. So i'd like to say get all meta info based on specific item id.
If I do something like this...
SELECT * FROM items LEFT JOIN itemsmeta ON itemsmeta.item_id = items.id WHERE items.id = 1
it returns about 9 rows, one for each meta entry for item number one. Is it possible to structure my query to return one response?
Maybe something like:
Array( [0] => stdClass Object ( [ID] => 1 [Name] => Blah Blah [Meta 1] => Blah Blah [Meta 2] => Blah Blah) ) and so on? | 0 | [
2,
12803,
1886,
3131,
7618,
15404,
37,
51,
18,
22402,
6018,
20,
53,
1627,
800,
3726,
3726,
31,
22,
79,
638,
29,
40,
3149,
6018,
17,
31,
57,
21,
1301,
31,
143,
42,
4444,
255,
2776,
92,
11250,
9,
31,
57,
172,
7484,
15,
27,
63,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get the most recent file using a batch script in windows
===
I have a list of zip files with date and time appended like `yyyymmdd_hhmmss_Demos.zip`. Now how to get the most recently added zip file in the source dir. I need to copy this file in the target using `copy` command.
I found some info about forfiles, but do not have an idea on how to get it done for seconds. | 0 | [
2,
184,
20,
164,
14,
127,
1764,
3893,
568,
21,
13064,
3884,
19,
1936,
800,
3726,
3726,
31,
57,
21,
968,
16,
12133,
6488,
29,
1231,
17,
85,
4865,
10726,
101,
13,
1,
93,
93,
93,
93,
3363,
8096,
1,
252,
15530,
18,
18,
1,
19274,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Export from mysql for large tables
===
I Want to export large data of my database in kloxo but when i select my tables and select zip for export after 10 minutes its give me a file with 0kb .what is the best way for large tables ? | 2 | [
2,
7487,
37,
51,
18,
22402,
26,
370,
7484,
800,
3726,
3726,
31,
259,
20,
7487,
370,
1054,
16,
51,
6018,
19,
17966,
13955,
47,
76,
31,
5407,
51,
7484,
17,
5407,
12133,
26,
7487,
75,
332,
902,
82,
590,
55,
21,
3893,
29,
713,
181... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Apache passing subdomain to alternative path
===
Hi I am new to Apache and am trying to map
www.subdomain.mycompany.com:8083
TO
www.mycompany.com:8083/subdomain
But the subdomain can be anything its not predetermined.
We are using running Apache 2.2.15. There are proxypasses setup at the moment in the .conf file.
Thanks in advance for your advice.
| 0 | [
2,
17140,
2848,
972,
537,
6232,
20,
2676,
2013,
800,
3726,
3726,
4148,
31,
589,
78,
20,
17140,
17,
589,
749,
20,
2942,
13,
6483,
9,
7563,
537,
6232,
9,
915,
28359,
9,
960,
45,
2887,
4736,
20,
13,
6483,
9,
915,
28359,
9,
960,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Injecting javascript and CSS into iframe
===
I'm developing a web-based JQuery Mobile application with ASP.NET MVC 4, and I want to make it available as a smartphone application via PhoneGap.
But, JQuery Mobile and other plugins are heavy and I shouldn't download them every time user loads the page.
I want to load CSS styles, JQuery Mobile and other libraries locally.
My idea is: putting an `iframe` in local `html` file of app, load remote web pages without scripts and styles, and then, inject CSS styles and Javascript libraries into that `iframe`.
What do you think? Do you have any better idea? if true, What is your idea? And if false, How to inject JQuery, JQuery mobile and other plugins into that `iframe`??? | 0 | [
2,
20316,
68,
8247,
8741,
17,
272,
18,
18,
77,
31,
8361,
800,
3726,
3726,
31,
22,
79,
3561,
21,
2741,
8,
1281,
487,
8190,
93,
3241,
3010,
29,
28,
306,
9,
2328,
307,
8990,
268,
15,
17,
31,
259,
20,
233,
32,
904,
28,
21,
21421... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 pass values to redirected dynamic php pages
===
How to pass values by using post method to a redirected dynamic page in .htaccess file | 0 | [
2,
184,
20,
1477,
4070,
20,
302,
14147,
7782,
13,
26120,
4434,
800,
3726,
3726,
184,
20,
1477,
4070,
34,
568,
678,
2109,
20,
21,
302,
14147,
7782,
2478,
19,
13,
9,
9020,
20604,
3893,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Excel VBA crashes on Windows 7
===
I'm trying to switch a Excel VBA from Windows XP to Windows 7. Both of them are 32-bit operating systems (Windows 7 is Enterprise edition).
VBA works fine on Windows XP. When I've tried on Windows 7, it crashes and reports no error description.
I've correctly registered msinet.ocx (required for Microsoft Internet Transfer Control 6.0) and tried to fix security issues adding additional com components (tabctl32, comctl332/232/32, comdlg32 all of them ocx files) however nothing changes.
Once msinet was unregistered, Excel VBA opens my Workbook, reports missing reference (msinet) and does not work at all.
Any suggestion to fix this issue?
I'm on Windows 7 Enterprise 32-bit operating system with Microsoft Office 2007 installed.
Thank you! | 0 | [
2,
20700,
566,
969,
21563,
27,
1936,
453,
800,
3726,
3726,
31,
22,
79,
749,
20,
5521,
21,
20700,
566,
969,
37,
1936,
23045,
20,
1936,
453,
9,
156,
16,
105,
50,
2512,
8,
3326,
2455,
1242,
13,
5,
27508,
18,
453,
25,
6002,
1322,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
R legend with different icons
===
For my graph I use smartlegend. I have a plot composed of lines and boxplots. Is there a way to use different icons in smartlegend, i.e. I'd like to have the "normal" color filled boxes for the boxplots and some simple horizontal lines for the other data.
Thanks for your help! | 0 | [
2,
761,
4393,
29,
421,
9801,
18,
800,
3726,
3726,
26,
51,
7210,
31,
275,
3978,
6727,
2451,
9,
31,
57,
21,
3798,
1869,
16,
1560,
17,
1649,
13221,
38,
18,
9,
25,
80,
21,
161,
20,
275,
421,
9801,
18,
19,
3978,
6727,
2451,
15,
3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
phonegap for iOS (iPad 2, iPad3) - Background worker and continuous refresh
===
I am developping an app for Ipad (2 and 3).
The app needs a continuous synchronization with a remote web app. Point is, my app needs to keep "listening" whenever there is connectivity in order to receive updates (lots of data), alerts,... etc.
**PS**: Before going further I would like to highlight that my app is not targeted to the appstore and moreover it can't rely on push notifications.
What I am confused about is the multitasking on the ipad. I would like my app's local db to stay synchronized by communicating with the remote web app. And hence my questions are:
- Does any of the ipads have a real multitasking? (like android's where you can have "services") Meaning that my app or at least a small part of it would still operate even if it is not active on the screen.
- How can I achieve that using phonegap standard framework?
- If the above points show that at some extent it's not possible. Is there still a possibility to extend phonegap with a plugin and make this happen?
- If the above three points are unfortunately fully negative; how would you address the problem by keeping in mind that the syncrhonization involves a lot of data and is mandatory to cover the app's usability?
| 0 | [
2,
1132,
1136,
306,
26,
13,
7760,
13,
5,
49,
8240,
172,
15,
31,
8240,
240,
6,
13,
8,
2395,
7444,
17,
6357,
24905,
800,
3726,
3726,
31,
589,
2803,
3181,
40,
4865,
26,
31,
8240,
13,
5,
135,
17,
203,
6,
9,
14,
4865,
2274,
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... |
Can i make timer interval to float in c#
===
Is it possible to make timer interval to float in c#. If yes then how? | 0 | [
2,
92,
31,
233,
85,
139,
14422,
20,
11510,
19,
272,
5910,
800,
3726,
3726,
25,
32,
938,
20,
233,
85,
139,
14422,
20,
11510,
19,
272,
5910,
9,
100,
1643,
94,
184,
60,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How to filter the ajax response
===
I am calling two ajax function and the url is same ajax.php and both function are fired at the same time now problem is that how to show the response to the correct field
what i am doing
called function 1 and 2
for ex. in one i get steve, jobes and in two rahul, pankaj
i want to show the steve,jobes and rahul, pankaj in different field but
what i am getting is that both four name displayed in both field now i need to filter those name how to do this?
| 0 | [
2,
184,
20,
11945,
14,
20624,
1627,
800,
3726,
3726,
31,
589,
2555,
81,
20624,
1990,
17,
14,
287,
6362,
25,
205,
20624,
9,
26120,
17,
156,
1990,
50,
3899,
35,
14,
205,
85,
130,
1448,
25,
30,
184,
20,
298,
14,
1627,
20,
14,
445... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
WinRT Frame: How to create new page instance on Navigate() and keep the page instance on GoBack()
===
I'm trying to create a Windows 8 Metro styled application with C#. My problem is the `Frame` control: If I use it without `NavigationCacheMode = Required`, every time the user goes back, the page is not kept in memory and will be recreated. If I set `NavigationCacheMode` to `Required` or `Enabled`, going back works correctly (no new page object) **but** if I navigate to another page from the same type, the previous page object is recycled and reused (no new page instance).
Is there a way to have the following behaviour with the original `Frame` control (like in Windows Phone):
1. Create new page instance on `Navigate()`
2. Keep the page instance on `GoBack()`
The only solution I know is to create an own `Frame` control but this leads to other problems (e.g.: missing `SetNavigationState()` method, etc...) | 0 | [
2,
628,
5256,
3523,
45,
184,
20,
1600,
78,
2478,
4851,
27,
20782,
5,
6,
17,
643,
14,
2478,
4851,
27,
162,
1958,
5,
6,
800,
3726,
3726,
31,
22,
79,
749,
20,
1600,
21,
1936,
469,
3986,
1034,
43,
3010,
29,
272,
5910,
9,
51,
144... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What can be a possible input for this program such that the input would be `U%ae'$ffq'
===
I'd like your help with understand what can be an input from a user to the following program that can make the output:`U%ae'$ffq' ong string`
int main(void) {
int i=0;
char j[22]="This is a long string", k[3];
scanf("%2s ", k);
sprintf(j, k);
printf("%s", j);
for (; i< 21; printf("%c", j[i++]))
;
return 1;
}
I don't understand couple of things:
k can get only two chars from the user- Is this what `"%2s"` means, no? and then writes into the array pointed by j the content pointed by the array k, so `j` is not pointed to k, but if we'll `j[5]` we'll still get `i`. so I don't understand how can we get this input whatsoever since the input would be chopped to two chars `j[0], j[1]` would be the two chars from the input and the rest of `j[i]` would be the original rest of "This is a long string". | 0 | [
2,
98,
92,
44,
21,
938,
6367,
26,
48,
625,
145,
30,
14,
6367,
83,
44,
13,
1,
291,
11881,
4391,
22,
4403,
2460,
1251,
22,
800,
3726,
3726,
31,
22,
43,
101,
154,
448,
29,
1369,
98,
92,
44,
40,
6367,
37,
21,
4155,
20,
14,
249... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sort json facebook data
===
i'm trying to figure out how to sort the json data provided by a facebook events feed.
This is the code I've been using
$int_count = 1;
$FBpage = file_get_contents('https://graph.facebook.com/demo/events?access_token=170978966368624|vNXbO1MPwpvP56jU6zWGCyRESQ');
$FBdata = json_decode($FBpage);
foreach ($FBdata->data as $events )
{
$x_sdt = explode("T",$events->start_time);
$x_sd = explode("-",$x_sdt[0]);
if($x_sdt[0] > date("Y-m-d"))
{
$StatusID = explode("_", $events->id);
echo '<ul class="shows">';
echo '<li class="date">';
echo $x_sd[2]."/".$x_sd[1]."/".$x_sd[0];
echo '</li>';
echo '<li class="title"><a href="'.get_bloginfo('url').'/shows/#'.$events->id.'">'.maxTruncate($events->name, 62).'</a></li>';
echo '</ul>';
}
$int_count++;
if($int_count==5){ break; }
}
Can anyone point me in the right direction, so far I beleive i should be using usort(), but when I look at tutorials i've got no idea what the go is. any bombs of wisdom would be greatly appreciated.
Thanks
Frank | 0 | [
2,
2058,
487,
528,
9090,
1054,
800,
3726,
3726,
31,
22,
79,
749,
20,
1465,
70,
184,
20,
2058,
14,
487,
528,
1054,
1173,
34,
21,
9090,
963,
4063,
9,
48,
25,
14,
1797,
31,
22,
195,
74,
568,
5579,
6391,
1,
16549,
800,
137,
73,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PHP mail function varying results since server upgrade
===
My server was upgraded by the company recently. There are 17 sites of mine on it. The ones using wordpress are sending out PHP mail normally but the from address is that of the server company and not the one stated.
The standard PHP mail function however in many of my others sites including one on mission critical today is not sending the email. Most are complicated but I have set up a simple test that won't send either.
<?php $to = "<--- my address --->";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";?>
What could be the reason that this isn't working. | 0 | [
2,
13,
26120,
4216,
1990,
9852,
1736,
179,
8128,
9483,
800,
3726,
3726,
51,
8128,
23,
9958,
34,
14,
237,
1989,
9,
80,
50,
369,
3259,
16,
1114,
27,
32,
9,
14,
53,
18,
568,
833,
5890,
50,
4907,
70,
13,
26120,
4216,
4147,
47,
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... |
Add bar button in UINavigationbar
===
I am new to iPhone developer,
I want to add one more button next to the Back button on my navigation bar, i am using navigation controller so back button is already there on left side. and on extreme right side i have added one button using
`self.navigationItem.rightBarButtonItem = ModeButton;`
but when i write,
`self.navigationItem.leftBarButtonItem = NewButton;`
NewButton overrides my back button, i want to place my new button next to back button.
**Any help will be appreciated.** | 0 | [
2,
3547,
748,
5167,
19,
287,
1673,
13227,
857,
1850,
800,
3726,
3726,
31,
589,
78,
20,
21024,
10058,
15,
31,
259,
20,
3547,
53,
91,
5167,
328,
20,
14,
97,
5167,
27,
51,
8368,
748,
15,
31,
589,
568,
8368,
9919,
86,
97,
5167,
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... |
JNA Unable to load module - output debug information (dependencies)
===
I want to load a .dll file (simpleDLL.dll form a jna tutorial) but i get
"java.lang.UnsatisfiedLinkError: Unable to load library 'simpleDLL': The specified module could not be found."
I run the java program with wine under ubuntu and I got this information:
"err:module:import_dll Library MSVCR100D.dll (which is needed by ... "
This message was not displayed when running the program in Eclipse, so my question is:
is there a way to set a more detailed debug level for JNA, so that dependent .dll files can be displayed when trying to load a module ? (I wasted a lot of time thinking that somehow, the jna.library.path is not correctly set and actually, no information was printed regarding other .dll files needed). | 0 | [
2,
13,
24063,
2343,
20,
6305,
12613,
13,
8,
5196,
121,
16254,
676,
13,
5,
19038,
22851,
6,
800,
3726,
3726,
31,
259,
20,
6305,
21,
13,
9,
43,
211,
3893,
13,
5,
24629,
43,
211,
9,
43,
211,
505,
21,
13,
24063,
29724,
6,
47,
31... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Matplotlib multiple colours in tick labels
===
Is it possible to have an tick labels formatted with different colours within the label
eg Using labels like this:
labels = ['apple - 1 : 7', 'orange - 5 : 10']
Such that the numbers 1 & 5 appear blue and 7 & 10 appear red? | 0 | [
2,
4277,
13221,
38,
8326,
1886,
8739,
19,
8809,
13173,
800,
3726,
3726,
25,
32,
938,
20,
57,
40,
8809,
13173,
13,
29850,
29,
421,
8739,
363,
14,
1899,
12369,
568,
13173,
101,
48,
45,
13173,
800,
636,
22,
24212,
13,
8,
137,
13,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Migrating from Oracle to PostgreSQL : where are the limits?
===
I've found similar posts on this forum, but migrate it on another one if needed.
We want to migrate *to* PostgreSQL *from* Oracle, but we have 6000 users simultaneously connected to a 4 To GIS database(divided in 1 To instances) and many other instances for WebServices.
Before looking at other problems, we heard that 500 max connected users is the max limit supported before performances decrease, decrease augmented when size of database become huge.
Have you some (or do you know links about) successful experiences on a such migration?<br>Do we have to wait PostgreSQL better performances to migrate?
| 0 | [
2,
28749,
37,
15759,
20,
678,
6879,
18,
22402,
13,
45,
113,
50,
14,
5887,
60,
800,
3726,
3726,
31,
22,
195,
216,
835,
9868,
27,
48,
5691,
15,
47,
22985,
32,
27,
226,
53,
100,
851,
9,
95,
259,
20,
22985,
1637,
262,
2483,
678,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Ruby on Rails - Devise login is case sensitive in production
===
I have a rails app that is using Devise perfectly in development. I have altered it, following the official Devise documentation to use a username instead of an email address. I am also using MySQL, instead of SQLite.
When logging in, in development, I can type in "admin" to login as the user "Admin". But in production, "admin" does not work and requires me to type in the case sensitive "Admin".
I'm assuming it's a different setting in my MySQL database? | 0 | [
2,
10811,
27,
2240,
18,
13,
8,
29276,
6738,
108,
25,
610,
7830,
19,
637,
800,
3726,
3726,
31,
57,
21,
2240,
18,
4865,
30,
25,
568,
29276,
5759,
19,
522,
9,
31,
57,
8745,
32,
15,
249,
14,
989,
29276,
13945,
20,
275,
21,
4155,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Erros while working with OpenCV 2.4.1
===
I have delphi-7 wrappers for opencv.
I have the following erros while executing certain OpenCV methods:
cvPyrDown - error: External exception E06D7363.
main thread ($1e24):
7c812afb +000052 kernel32.dll RaiseException
008af8ec +00004c MSVCR90D.dll _CxxThrowException
1022d1bd +226673 opencv_core241d.dll ? error@cv@@YAXABVException@1@@Z
00ae084b +1aba11 opencv_imgproc241d.dll cvPyrDown
0049a3f6 +00013e TestProject.exe OpenCV_Test 93 +23 FindSquares
cvSetImageCOI: error: External exception E06D7363.
main thread ($192c):
7c812afb +000052 kernel32.dll RaiseException
008af8ec +00004c MSVCR90D.dll _CxxThrowException
1022d1bd +226673 opencv_core241d.dll ?error@cv@@YAXABVException@1@@Z
1006572c +06235a opencv_core241d.dll cvSetImageCOI
0049a410 +000160 TestProject.exe OpenCV_Test 99 +29 FindSquares
Could you please help me, what is wrong or can be wrong with that?
| 0 | [
2,
13,
106,
3171,
133,
638,
29,
368,
12732,
172,
9,
300,
9,
165,
800,
3726,
3726,
31,
57,
23030,
8,
465,
28051,
18,
26,
368,
12732,
9,
31,
57,
14,
249,
13,
106,
3171,
133,
25836,
1200,
368,
12732,
3195,
45,
13,
12732,
12142,
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... |
Android ProgressDialog delayed before showing up
===
I'm using the ProgressDialog in android to prevent the user from, say, pressing a button multiple times while a long task is updating the UI.
My problem is that the ProgressDialog does not seem to show up after awhile, as it seems to be another thread.
In my experiment I called this ProgressDialog show() in an EditText's text changed listener. It still allows me to type in multiple characters in a short period before showing up.
Is there a way I can detect that the ProgressDialog has already started? | 0 | [
2,
13005,
3455,
4286,
5567,
8241,
115,
3187,
71,
800,
3726,
3726,
31,
22,
79,
568,
14,
3455,
4286,
5567,
19,
13005,
20,
2501,
14,
4155,
37,
15,
395,
15,
7196,
21,
5167,
1886,
436,
133,
21,
175,
3005,
25,
71,
43,
1880,
14,
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 does mean the phrase "(re)solving a type"?
===
I also will appreciate a comparison between statically typed languages and dynamic ones. | 0 | [
2,
98,
630,
884,
14,
6845,
13,
7,
5,
99,
6,
5594,
8397,
21,
1001,
7,
60,
800,
3726,
3726,
31,
67,
129,
8831,
21,
6050,
128,
12038,
1326,
1001,
43,
2556,
17,
7782,
53,
18,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Unable to update SharePoint 2010's managed metadata field with Lists.UpdateListItems web service call
===
I'm trying to update a SharePoint managed metadata (MMD) field using Lists.UpdateListItems web service but it's not working.
Here is my SOAP request
<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<UpdateListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>My Test List</listName>
<updates>
<Batch ListVersion="0" PreCalc="TRUE" OnError="Continue">
<Method Cmd="Update" ID="1">
<Field Name="ID">3</Field>
<Field Name="Document_x0020_Title">foo</Field>
<Field Name="Fiscal_x0020_Year1">13;#FY 2006|7e8205da-57a1-45a3-8147-469b795ad6e8</Field>
</Method>
</Batch>
</updates>
</UpdateListItems>
</S:Body></S:Envelope>
This request will succesfully update the "Document Title" (a text field) but the MMD field, "Fiscal Year", was unchanged and there is no error returned from the web service.
Note that the value of the MMD is in the format "WssId;#TermValue|TermGuid"
Please help. | 0 | [
2,
2343,
20,
11100,
1891,
3132,
498,
22,
18,
1471,
28057,
575,
29,
7227,
9,
576,
8209,
5739,
2119,
79,
18,
2741,
365,
645,
800,
3726,
3726,
31,
22,
79,
749,
20,
11100,
21,
1891,
3132,
1471,
28057,
13,
5,
3363,
43,
6,
575,
568,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Magento Error: Cannot send headers error in Collection.php
===
In my Magento 1.6.2.0 I get an error when exporting the customers:
a:5:{i:0;s:156:"Cannot send headers; headers already sent in .../Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php, line 1";i:1;s:1385:"
#0 /home/mysite/public_html/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 .../Mage/Core/Controller/Response/Http.php(105): Zend_Controller_Response_Abstract->setRedirect('http://mysite...', 302)
#2 .../Mage/Adminhtml/Controller/Action.php(336): Mage_Core_Controller_Response_Http->setRedirect('http://mysite...')
#3 .../Mage/ImportExport/controllers/Adminhtml/ExportController.php(98): Mage_Adminhtml_Controller_Action->_redirect('*/*/index')
#4 .../Mage/Core/Controller/Varien/Action.php(420): Mage_ImportExport_Adminhtml_ExportController->exportAction()
#5 .../Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('export')
#6 .../Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 .../Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/mysite/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#9 /home/mysite/public_html/index.php(80): Mage::run('', 'store')
#10 {main}";s:3:"url";s:99:"/index.php/admin/export/export/key/.../entity/customer/file_format/csv";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
Same Error after saving a new or edited product. The product is saved but before there is an error:
a:5:{i:0;s:156:"Cannot send headers; headers already sent in .../core/Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php, line 1";i:1;s:1420:"
#0 /home/mysite/public_html/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 .../core/Mage/Core/Controller/Response/Http.php(105): Zend_Controller_Response_Abstract->setRedirect('http://mysite...', 302)
#2 .../core/Mage/Adminhtml/Controller/Action.php(336): Mage_Core_Controller_Response_Http->setRedirect('http://mysite...')
#3 .../local/CJM/ColorSelectorPlus/controllers/Override/Admin/Catalog/ProductController.php(92): Mage_Adminhtml_Controller_Action->_redirect('*/*/', Array)
#4 .../core/Mage/Core/Controller/Varien/Action.php(420): CJM_ColorSelectorPlus_Override_Admin_Catalog_ProductController->saveAction()
#5 .../core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('save')
#6 .../core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 .../core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/mysite/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#9 /home/mysite/public_html/index.php(80): Mage::run('', 'store')
#10 {main}";s:3:"url";s:82:"/index.php/admin/catalog_product/save/id/246/key/.../";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
> Cannot send headers; headers already sent...
...means that there is a header redirect but there was an output before. But where the hell can that be in core/Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php ?
Some ideas? Thanks.
| 0 | [
2,
4723,
17050,
7019,
45,
1967,
2660,
157,
445,
7019,
19,
1206,
9,
26120,
800,
3726,
3726,
19,
51,
4723,
17050,
137,
9,
379,
9,
135,
9,
387,
31,
164,
40,
7019,
76,
7487,
68,
14,
5279,
45,
21,
45,
264,
45,
1,
49,
45,
387,
73,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 identify which URL is being processed by a certain HTTPD process?
===
I have the occasional HTTPD request on my web server that spikes CPU usage. I'm watching this in Top. Every URL is dynamically generated each time it's requested. The framework is Codeigniter. I'm using Apache as my web server on Linux CentOS.
How can I figure out which URL is being processed when the CPU usage is spiking? Can I associate the Process ID with the HTTP request in the Apache logs somehow? There are millions of pages on the site, so looking at Codeignitor's profiler doesn't help. | 0 | [
2,
184,
92,
31,
5808,
56,
287,
6362,
25,
142,
16697,
34,
21,
1200,
7775,
43,
953,
60,
800,
3726,
3726,
31,
57,
14,
7713,
7775,
43,
3772,
27,
51,
2741,
8128,
30,
6734,
18,
17578,
7514,
9,
31,
22,
79,
1953,
48,
19,
371,
9,
352... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Binary insertion sort of array not working (Code in C)
===
Here is my code:
#include <stdio.h>
#define SIZE 4
int main(int argc, const char * argv[])
{
double m[SIZE],tmp;
int i,min,max,c,k,l,pos;
for (i=0; i<SIZE; i++) {
printf("a%d? ",i);
scanf("%lf",&m[i]);
}
for (i=0; i<SIZE; i++)
printf("%.1lf ",m[i]);
printf("\n");
k = 1;
//========================
do {
min = 0;
max = k-1;
do
{
c = (min+max)/2;
if (m[c]>m[k])
{
min=c;
}
else {
max=c;
}
c = (min+max)/2;
}
while(min != c);
pos = min;
if(m[pos]<m[k])
{
pos++;
}
tmp = m[k];
l=k;
while (l>pos) {
m[l]=m[l-1];
l--;
}
m[pos]=tmp;
k++;
} while (k != SIZE);
for (i=0; i<SIZE; i++)
printf("%.1lf ",m[i]);
//========================
return 0;
}
Can somebody help, why sorting not works?
Code is correct, as i think. Maybe I am wrond with algorithm?
I'm trying using binary insertion sorting. Or can somebody give C code alternative (to see what is incorrect)? | 0 | [
2,
14171,
24245,
2058,
16,
7718,
52,
638,
13,
5,
9375,
19,
272,
6,
800,
3726,
3726,
235,
25,
51,
1797,
45,
6926,
22640,
13,
1,
384,
6921,
9,
252,
1,
6926,
546,
7509,
1072,
268,
19,
38,
407,
5,
6391,
13,
10663,
150,
15,
11608,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
I have been asked to provide the "source code" for a web app we built, not sure how
===
I have been building a web app for a company for last few months. They are working with a law firm to copyright the app. The law firm requested that I provide the "source code". I have read this basically means first and last 25 "pages" of code.
So, I still have no idea how to provide this. I am using MVC patterns in my development so there isn't like this magic source code file. Anyone have any pointers on how to deal with this? Do I just take some random controllers/models and views and then randomly copy paste that code into a word document? What defines 25 pages? The law firm itself seems fairly clueless... | 0 | [
2,
31,
57,
74,
411,
20,
1181,
14,
13,
7,
12097,
1797,
7,
26,
21,
2741,
4865,
95,
392,
15,
52,
562,
184,
800,
3726,
3726,
31,
57,
74,
353,
21,
2741,
4865,
26,
21,
237,
26,
236,
310,
818,
9,
59,
50,
638,
29,
21,
451,
1904,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
GUI Builder: File Upload, Submit Button and DoPost issue
===
There is something I do not understand with the Apps Script GUI Builder.
I am trying to have a File Upload and I cannot have it working.
Basic setup: form panel, a flow panel, a file upload, a submit button.
I did not put any Events on On Mouse Click (I understood that the doPost catch it by default).
The associated functions:
function appBVFileUpload2() {
var mydoc = SpreadsheetApp.getActiveSpreadsheet();
var app = UiApp.createApplication().setTitle('File Upload');
app.add(app.loadComponent("Importation BV")); // load the GUI
mydoc.show(app);
}
function doPost(e) {
// data returned is a blob for FileUpload Form
var fileBlob = e.parameter.thefile; // thefile is the name of the File Upload Object
var doc = DocsList.createFile(fileBlob); // Generate the Error <<<
var app = UiApp.getActiveApplication();
app.close();
return app;
}
So I always get an error when clicking on the submit button:
> Error encountered: An unexpected error occurred
Thanks for any help on this matter.
| 0 | [
2,
9457,
14960,
45,
3893,
71,
8294,
15,
12298,
5167,
17,
107,
6962,
1513,
800,
3726,
3726,
80,
25,
301,
31,
107,
52,
1369,
29,
14,
4865,
18,
3884,
9457,
14960,
9,
31,
589,
749,
20,
57,
21,
3893,
71,
8294,
17,
31,
1967,
57,
32,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subset R data frame contingent on the value of duplicate variables
===
How can I subset the following example data frame to only return one
observation for the earliest occurance [i.e. min(year)] of each id?
id <- c("A", "A", "C", "D", "E", "F")
year <- c(2000, 2001, 2001, 2002, 2003, 2004)
qty <- c(100, 300, 100, 200, 100, 500)
df=data.frame(year, qty, id)
In the example above there are two observations for the "A" id at years 2000 and 2001. In the case of duplicate id's, I would like the subset data frame to only include the the first occurance (i.e. at 2000) of the observations for the duplicate id.
df2 = subset(df, ???)
This is what I am trying to return:
df2
year qty id
2000 100 A
2001 100 C
2002 200 D
2003 100 E
2004 500 F
Any assistance would be greatly appreciated.
| 0 | [
2,
16622,
761,
1054,
3523,
15981,
27,
14,
1923,
16,
19429,
12157,
800,
3726,
3726,
184,
92,
31,
16622,
14,
249,
823,
1054,
3523,
20,
104,
788,
53,
7182,
26,
14,
4448,
3744,
2416,
636,
49,
9,
62,
9,
4232,
5,
731,
6,
500,
16,
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... |
confirmation email
===
I've got this php code to send the users information from the contact form to my email address, but i don't know how to send a confirmation email back to the user when he fills out the form.
<?
$name = $_REQUEST['name'] ;
$company = $_REQUEST['company'] ;
$areacode_telephone = $_REQUEST['areacode_telephone'] ;
$telephone = $_REQUEST['telephone'] ;
$email = $_REQUEST['email'] ;
$notes = $_REQUEST['notes'] ;
$body = " Name: ".$name."\n
Company: ".$company."\n
Area Code: ".$areacode_telephone."\n
Telephone: ".$telephone."\n
Email Address: ".$email."\n
Notes: ".$notes;
mail( "info@axsiom.com.au", "Axsiom: Contact Us", $body, "From: $email" );
?> | 0 | [
2,
15939,
8517,
800,
3726,
3726,
31,
22,
195,
330,
48,
13,
26120,
1797,
20,
2660,
14,
3878,
676,
37,
14,
2203,
505,
20,
51,
8517,
3218,
15,
47,
31,
221,
22,
38,
143,
184,
20,
2660,
21,
15939,
8517,
97,
20,
14,
4155,
76,
24,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Serializing additional fields with the CollectionDataContactAttribute
===
I have a class which inherits from a collection, specifically List<> and I've listed the class below. The problem I'm encountering when I serialize the object to XML using DataContractSerializer is the additional fields I've added within the object are not getting serialized by the serializer.
Here is the class:
--------------------------------------------
[CollectionDataContract(Name = "ServiceEvents", Namespace = "")]
public class ServiceEventList : List<ServiceEvent>
{
[DataMember]
public long StaleDate { get; set; }
[DataMember]
public long ExpirationDate { get; set; }
}
------------
When I serialize the object and write to disk, here is the output (notice both StaleDate and ExpirationDate are missing).
--------------------------------------------
<ServiceEvents xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ServiceEvent><Date>2012-06-26T22:23:24.120817Z</Date><Description>A Service Event</Description><Id>634763462041210040</Id><Notes></Notes><Odometer>42</Odometer></ServiceEvent></ServiceEvents>
-------------
Here is the code that serializes the object:
using (FileStream fs = new FileStream(path, FileMode.Create))
{
//TODO: StaleDate is not serializing to disk
//TODO: ExpirationDate is not serializing to disk
DataContractSerializer ser = new DataContractSerializer(typeof(ServiceEventList));
ser.WriteObject(fs, list);
}
My next thought is to remove the inheritance structure and just embed a List<ServiceEvent> object into the class. I'd prefer to just extend List<T> but won't waste more time on it if the community confirms my approach won't work. Thanks in advance for the advice. | 0 | [
2,
5956,
3335,
1351,
2861,
29,
14,
1206,
18768,
29912,
721,
14755,
800,
3726,
3726,
31,
57,
21,
718,
56,
17569,
18,
37,
21,
1206,
15,
3524,
968,
1,
17,
31,
22,
195,
1510,
14,
718,
1021,
9,
14,
1448,
31,
22,
79,
7007,
68,
76,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Multiple definitions for the same name in Flex
===
I'm a Flex newbie and was wondering if it is possible to have multiple definitions for the same name in Flex. Such as:
/* DEFINITIONS */
FRUITS "APPLE" | "ORANGE" | "LEMON"
Also, what can we do and not do with string constants in flex's regular expressions? Can we use symbols such as $ and *? Thank you!
| 0 | [
2,
1886,
18544,
26,
14,
205,
204,
19,
14409,
800,
3726,
3726,
31,
22,
79,
21,
14409,
78,
5893,
17,
23,
5712,
100,
32,
25,
938,
20,
57,
1886,
18544,
26,
14,
205,
204,
19,
14409,
9,
145,
28,
45,
13,
118,
2483,
18544,
1637,
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... |
Zend MVC with existing database layer?
===
I am porting some web applications to MVC using the Zend framework.
I already have a database class that I use for all of the sites.
Everything about the port was working fine until I started trying to pull data. After some debugging I found that my db_class was being "autoloaded" and creating some errors.
First off, is there any way that I can use my class without Zend trying to load it?
Second, what are some suggestions for porting my existing database layer?
Thanks | 0 | [
2,
10526,
43,
307,
8990,
29,
3149,
6018,
5385,
60,
800,
3726,
3726,
31,
589,
1295,
68,
109,
2741,
3767,
20,
307,
8990,
568,
14,
10526,
43,
6596,
9,
31,
614,
57,
21,
6018,
718,
30,
31,
275,
26,
65,
16,
14,
3259,
9,
796,
88,
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... |
Different Images using Accelerometer in Xcode
===
I am trying to make an app in Xcode 4.3.3 where one image is displayed when the z-axis using the accelerometer is positive. But, when the z-axis becomes negative, I would like a different image to appear. I'm a beginner, so if you could tell me the file in which I should write the code in that would be great.
Thank you! | 0 | [
2,
421,
3502,
568,
7602,
532,
106,
17325,
19,
993,
9375,
800,
3726,
3726,
31,
589,
749,
20,
233,
40,
4865,
19,
993,
9375,
268,
9,
240,
9,
240,
113,
53,
1961,
25,
6115,
76,
14,
2052,
8,
19676,
568,
14,
7602,
532,
106,
17325,
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... |
Making a show/hide smaller
===
How would I make this code smaller? Maybe a toggle, but people were saying this was easily done in jQuery. But the problem is that I am not a fan of using jQuery for just one thing in my code.
function open() {
document.getElementById('message').style.display='block';
document.getElementById('fade').style.display='block';
}
function close() {
document.getElementById('message').style.display='none';
document.getElementById('fade').style.display='none';
} | 0 | [
2,
544,
21,
298,
118,
19522,
2012,
800,
3726,
3726,
184,
83,
31,
233,
48,
1797,
2012,
60,
913,
21,
20,
263,
4875,
15,
47,
148,
46,
1148,
48,
23,
2351,
677,
19,
487,
8190,
93,
9,
47,
14,
1448,
25,
30,
31,
589,
52,
21,
2514,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can I get the C++ preprocessor to send output during compilation?
===
I have been debugging a particularly insidious bug which I now believe to be caused by unexpected changes which stem from different behavior when different headers are included (or not).
This is not exactly the structure of my code but let's just take a look at this scenario:
#include "Newly_created_header_which_accidentally_undefines_SOME_DEFINE.h"
// ...
#ifdef SOME_DEFINE
code_which_i_believe_i_am_always_running();
#else
code_which_fails_which_i_have_forgotten_about(); // runtime error stack traces back here, but I don't know this... or maybe it's some strange linker error
#endif
I search through my git commits and narrow down the cause of the bug, compiling and running my code countless times, only to find after several hours that the only difference required for causing the bug is the inclusion of what appears to be a completely benign and unrelated header.
Perhaps this is a great argument for why the preprocessor basically just sucks.
But I like it. The preprocessor is cool because it lets us make shortcuts. It's only that some of these shortcuts, when not used carefully, bite us in the butt pretty hard.
So at this juncture it would have helped if I could use a directive like `#echo "Running old crashy code"` where I'll be able to see this **during compilation** so I could be tipped off immediately to start investigating why SOME_DEFINE was not defined.
As far as I know the straightforward way of determining if SOME_DEFINE is defined is to do something like
#ifndef SOME_DEFINE
printf("SOME_DEFINE not defined!!\n");
This will surely get the job done but there is no good reason for this task to be performed at runtime because it is entirely determined at compile-time. This is simply something I'd like to see at compile-time.
That being said, in this situation, using the print (or log or even throwing an exception) may be an acceptable thing to do because I won't really care about slowing down or cluttering up the questionable code. But that doesn't apply if I have for instance two code paths both of which are important, and I just want to know at compile-time which one is being activated. I'd have to worry about running the code that does the preprocessor-conditioned print at the beginning of the program.
This is really just a long-winded way of asking the question, "Can I echo a string to the output during compilation by using a preprocessor directive?" | 0 | [
2,
92,
31,
164,
14,
272,
20512,
782,
16835,
248,
20,
2660,
5196,
112,
4868,
60,
800,
3726,
3726,
31,
57,
74,
121,
16254,
2762,
21,
1653,
19,
18,
1340,
5907,
6256,
56,
31,
130,
985,
20,
44,
1497,
34,
9380,
1693,
56,
6940,
37,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Easiest way to subtract associated with one factor level from values associated with all other factor levels
===
I've got a dataframe containing rates for 'live' treatments and rates for 'killed' treatments. I'd like to subtract the killed treatments from the live ones:
df <- data.frame(id1=gl(2, 3, labels=c("a", "b")),
id2=rep(gl(3, 1, labels=c("live1", "live2", "killed")), 2),
y=c(10, 10, 1, 12, 12, 2),
otherFactor = gl(3, 2))
I'd like to subtract the values of `y` for which `id2=="killed"` from all the other values of `y`, separated by the levels of id1, while preserving `otherFactor`. I would end up with
id1 id2 y otherFactor
a live1 9 1
a live2 9 1
b live1 10 2
b live2 10 3
This almost works:
df_minusKill <- ddply(df, .(id1), function(x) x$y[x$id2!="killed"] - x$y[x$id2=="killed"])
names(df_minusKill) <- c("id1", "live1", "live2")
df_minusKill_melt <- melt(df_minusKill, measure.var=c("live1", "live2"))
except that you lose the values of otherFactor. Maybe I could use `merge` to put the values of `otherFactor` back in, but in reality I have about a dozen "otherFactor" columns, so it would be less cumbersome to just keep them in there automatically.
| 0 | [
2,
27237,
161,
20,
27031,
1598,
29,
53,
3932,
662,
37,
4070,
1598,
29,
65,
89,
3932,
2216,
800,
3726,
3726,
31,
22,
195,
330,
21,
1054,
8361,
3503,
5332,
26,
13,
22,
5928,
22,
16749,
17,
5332,
26,
13,
22,
7577,
69,
22,
16749,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PHP dynamic link in php block
===
I have recently learned to create dynamic links via php, but my problem today is I do not know how to do this in a php block, for example I know how to do this:
<div><a href="blah.php?id=<?php echo $id; ?>">content</a></div>
But I am doing this above the head tags in a php block, so basically I am creating a dynamic link for dynamic content, essentially I am going to dynamically render images on the home page, which are links to products. This is what I have:
<?php
include_once "scripts/connect_to_mysql.php";
//Select query for latest items
$dynamic_newest = "";
$sql = mysql_query("SELECT * FROM products ORDER BY date_added DESC LIMIT 24");
$productCount = mysql_num_rows($sql); // count the output amount
if ($productCount > 0) {
while($row = mysql_fetch_array($sql)){
$id = $row["id"];
$pid = $id;
$category = $row["category"];
$subcategory = $row["subcategory"];
$dynamic_newest .= "<a href="THIS IS WHAT I DONT KNOW HOW TO DO"><img src='inventory_images/$pid.jpg' width='100px' height='100px' /></a>";
}
} else {
$dynamic_newest = "<h1>There are no products to display yet.</h1>";
}
?>
This is probably really easy, but I can't find it, maybe I'm not asking magic google the right question. Thanks in advance! | 0 | [
2,
13,
26120,
7782,
3508,
19,
13,
26120,
1921,
800,
3726,
3726,
31,
57,
1989,
2691,
20,
1600,
7782,
6271,
1197,
13,
26120,
15,
47,
51,
1448,
786,
25,
31,
107,
52,
143,
184,
20,
107,
48,
19,
21,
13,
26120,
1921,
15,
26,
823,
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... |
Pluralize 'Point of Interest' in Rails
===
PointOfInterest => PointsOfInterest,
point_of_interest => points_of_interest,
etc. | 0 | [
2,
13981,
2952,
13,
22,
3132,
16,
1163,
22,
19,
2240,
18,
800,
3726,
3726,
454,
1041,
16208,
800,
1,
819,
1041,
16208,
15,
454,
1,
1041,
1,
16208,
800,
1,
819,
1,
1041,
1,
16208,
15,
2722,
9,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
Jquery UI Accordion to open a new created tab (simple manipulation)
===
where I am using Jquery UI. I have an accordion menu, which has multiple hyperlinks in each accordion menu.
What I am trying to do, is when I click on one of these hyperlinks, I want it to open the page I am calling, that is to be displayed within a new tab that can be closed with an x (like these simple manipulation ones), but in a new tab to be displayed.
My aim is that I can have mupliple tabs open that have been launched by selecting differet hyperlink options within the accordion, so the user closes them when they want to.
I have not found anything on how to do this.
Can someone please help.
Thanks | 0 | [
2,
487,
8190,
93,
13,
5661,
20753,
20,
368,
21,
78,
679,
6523,
13,
5,
24629,
17561,
6,
800,
3726,
3726,
113,
31,
589,
568,
487,
8190,
93,
13,
5661,
9,
31,
57,
40,
20753,
11379,
15,
56,
63,
1886,
5443,
6258,
18,
19,
206,
20753,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jqgrid subgrid is not loading data inside the subgrid
===
I have to create a subgrid to show comments data inside the main tasks grid. i am using jqgrid subgrid for this. when i click on the plus sign the ajax call is made and the json object is returned from the backend, but the screen does not show the output. the subgrid comments is empty. however i can see the column names header only. the subgrid is always empty.
Any suggestions as to what i am missing? i read several other posts related to that tried all the suggestions but nothing works. below is the js code..and the jason object that is returned by the ajax call
function initJqGridTaskList(table,pager,msg,loadSelID,caption,chkMrk ){
$(table).empty();
$(table).GridUnload();
var taskid=$("#HWOPID").val();
var woid=$("#HRWOID").val();
var mygrid =jQuery(table).jqGrid({
datatype: "local",
data:msg,
width: 1050,
scrollOffset:0,
height: 25,
colNames:['Seq #','Task #','Description','Edit','Copy','Test Type','Test Type Original','Responsible','Status','Last Updated On','TS','PPG','PDF','Initials','Data'],
colModel:[
{name:'seqNumber', width:30,sorttype:"int", editable:false,resizable:false},
{name:'id',index:'id', width:40, sorttype:"int", editable: false,resizable:false},
{name:'description', width:120,editable: false,formatter:'viewLinks',resizable:false,edittype:'select'},
{name:'edit', width:25,editable: false,formatter:'editLinks',resizable:false,edittype:'select',search:false},
{name:'copy', width:25,editable: false,formatter:'copyLinks',resizable:false,edittype:'select',search:false},
{name:'testType', width:50, editable:false,resizable:false},
{name:'testTypeOriginal', width:5,hidden:true, editable:false,resizable:false},
{name:'responsible', width:70, editable:false,resizable:false},
{name:'status', width:60, editable:false,resizable:false},
{name:'lastUpdatedOn', width:85, sortable:true,editable: false,sorttype:'date', datefmt:'dd-mm-Y',resizable:false},
{name:'tsFile', width:25,edittype:'select', formatter:'tsLinks',resizable:false,align:"center",search:false},
{name:'ppgFile', width:25,edittype:'select', formatter:'ppgLinks',resizable:false,align:"center",search:false},
{name:'pdfFile', width:25,edittype:'select', formatter:'pdfLinks',resizable:false,align:"center",search:false},
{name:'userInitials', width:5, editable:false,resizable:false,hidden:true},
{name:'dataFolder', width:25,edittype:'select', formatter:'dataFolder',resizable:false,align:"center",search:false}
],
pager: pager,
rowNum:1000,
rowList:[1000],
gridview : true,
viewrecords: true,
multiselect:false,
subGrid: true,
// define the icons in subgrid
subGridOptions: {
"plusicon" : "ui-icon-triangle-1-se",
"minusicon" : "ui-icon-triangle-1-s",
"openicon" : "ui-icon-arrowreturn-1-e",
// load the subgrid data only once
// and the just show/hide
"reloadOnExpand" : false,
// select the row when the expand column is clicked
"selectOnExpand" : true
},
subGridRowExpanded: function(subgrid_id, row_id) {
var subgrid_table_id, pager_id;
subgrid_table_id = subgrid_id+"_t";
pager_id = "p_"+subgrid_table_id;
<!--$("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div>"); -->
$("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div>");
jQuery("#"+subgrid_table_id).jqGrid({
url:contextpath+"/TblCommentsServlet?userAction=lcxTASK&reqWOID="+woid+"&reqActID="+row_id,
datatype: "json",
colNames: ['id','Created On','User','Comment','Test Hours','Engine Hours', 'Attached File'],
colModel: [
{name:"id",index:'id',width:10,editable:false,datefmt:'dd-mm-Y',resizable:false,key:true},
{name:"createdOn",index:'createdOn',width:60,editable:false,datefmt:'dd-mm-Y',resizable:false},
{name:"userName",index:'userName',width:80},
{name:"comments",index:'comments',width:160},
{name:"testHours",index:'testHours',width:50},
{name:"engHours",index:'engHours',width:50},
{name:"attachedFile",index:'attachedFile',width:70}
],
rowNum:20,
//pager: pager_id,
sortname: 'createdOn',
sortorder: "asc",
height: 100,
caption:'comments',
autowidth: true
//jsonReader:{root:"commentsData",page:"currPage",total:"totalPages",records:"totalRecords",repeatitems:false,id:"0" ,cells=""}
});
jQuery("#"+subgrid_table_id).jqGrid('navGrid',"#"+pager_id,{edit:false,add:true,del:false,search:false});
}
}
| 0 | [
2,
487,
1251,
16375,
972,
16375,
25,
52,
12797,
1054,
572,
14,
972,
16375,
800,
3726,
3726,
31,
57,
20,
1600,
21,
972,
16375,
20,
298,
7534,
1054,
572,
14,
407,
8674,
7354,
9,
31,
589,
568,
487,
1251,
16375,
972,
16375,
26,
48,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Quick Sort Sorts Descending Not Ascending
===
I just implemented QuickSort algorithm from book and got weird output. It works but it sorts in descending order instead of ascending. For example: [1, 5, 2, 10, 6, 9, 8, 3, 7, 4]
is sorted [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] cant seem to find source in my code:
private void quicksort(int[] A, int p, int r) {
if (p < r) {
int q = partition(A, p, r);
quicksort(A, p, q);
quicksort(A, q + 1, r);
}
}
private int partition(int[] A, int p, int r) {
int x = A[p]; // pivot
int i = p;
int j = r;
while (true) {
while (A[i] > x) {
i++;
}
while (A[j] < x) {
j--;
}
if (i < j) {
int temp = A[i];
A[i] = A[j];
A[j] = temp;
} else {
return j;
}
}
}
INITIAL CALL:
quicksort(A, 0, A.length - 1);
how do i calculate the space complexity for the quicksort?
thank you guys | 0 | [
2,
2231,
2058,
14357,
16526,
52,
24859,
800,
3726,
3726,
31,
114,
6807,
2231,
22843,
9083,
37,
360,
17,
330,
5455,
5196,
9,
32,
693,
47,
32,
14357,
19,
16526,
389,
700,
16,
24859,
9,
26,
823,
45,
636,
165,
15,
331,
15,
172,
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 to iframe a youtube video in HTML for Android phones to be able to watch and rotate full screen?
===
i'm experiencing some trouble with a new app I develop for iphone and android .
This app is supposed in both cases to take and display the content of my Wordpress blog.
I have different tabs and one of them is "videos" showing all the "videos" category posts.
My problem is :
to embed videos, the only solution i found was to use both:
"A `<embed id="yt" src="http://www.youtube.com/watch..." type="application/x-shockwave-flash" width="100%" height="240"></embed>`
B `<iframe width="100%" height="240" src="http://www.youtube.com/embed..." frameborder="0" allowfullscreen></iframe>`"
in the html part of my posts
A: works perfectly with iphones : video launched directly in full screen and rotated but
But it DOESN'T Work with Android (blank)
B: works with Android and not with iphones (blank). CANNOT ROTATE NOR FULL SCREEN
Can anyone help me have an hmtl rotative iframe that can be read by both iphone and android?
Thank you! | 0 | [
2,
184,
20,
31,
8361,
21,
7330,
763,
19,
13,
15895,
26,
13005,
14830,
20,
44,
777,
20,
1455,
17,
21448,
503,
2324,
60,
800,
3726,
3726,
31,
22,
79,
15138,
109,
2572,
29,
21,
78,
4865,
31,
2803,
26,
21024,
17,
13005,
13,
9,
48,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Django remove whitespace at end of CVS file
===
I have a Django view which reads a CSV file and saves it to a model.
**views.py**:
def csv_upload(request):
...
file = request.FILES['attach']
reader = csv.reader(file, delimiter=';')
next(reader) # skip headers
for line in reader:
... # process and save
Whilst testing with file variations, I noticed that if there is trailing whitespace in the file (e.g. empty rows due to saving form Excel) I get an `Index out of range` error.
My question is, how can I strip the whitespace from the end (and porbably the beging just to be sure) of the file.
Any help much appreciated. | 0 | [
2,
3857,
14541,
4681,
359,
5582,
35,
241,
16,
13,
12732,
18,
3893,
800,
3726,
3726,
31,
57,
21,
3857,
14541,
1418,
56,
11137,
21,
272,
18,
710,
3893,
17,
16815,
32,
20,
21,
1061,
9,
13,
1409,
4725,
18,
9,
6448,
1409,
45,
6312,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
PHP - SOAP/WSDL method doesn't show all the parameters
===
I'm having some problem with WSDL. When I try to retrieve the data using Soap Client, the function doesn't show all the parameters defined by service. The interesting part is that, if I'll try to access the service script directly - it will display the correct array, with enough parameters.
What might be the problem? As for cashing, I've tried the following, but without any luck:
ini_set("soap.wsdl_cache_enabled", "0");
$client = new SoapClient("crm.wsdl", array('cache_wsdl' => WSDL_CACHE_NONE)) or die('error');
Your ideas are greatly appreciated :)
Thanks,
G
| 0 | [
2,
13,
26120,
13,
8,
6447,
118,
10268,
8643,
2109,
1437,
22,
38,
298,
65,
14,
12905,
800,
3726,
3726,
31,
22,
79,
452,
109,
1448,
29,
619,
18,
8643,
9,
76,
31,
1131,
20,
11917,
14,
1054,
568,
6447,
6819,
15,
14,
1990,
1437,
22... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
w3wp.exe error on our web server
===
For some reason our web server keeps building up a huge error log and the issue we found when looking at the files are:
Version=1
EventType=CLR20r3
EventTime=129856362535412814
ReportType=2
Consent=1
Response.type=4
Sig[0].Name=Problem Signature 01
Sig[0].Value=w3wp.exe
Sig[1].Name=Problem Signature 02
Sig[1].Value=7.0.6002.18005
Sig[2].Name=Problem Signature 03
Sig[2].Value=49e03238
Sig[3].Name=Problem Signature 04
Sig[3].Value=System.Web
Sig[4].Name=Problem Signature 05
Sig[4].Value=4.0.0.0
Sig[5].Name=Problem Signature 06
Sig[5].Value=4ef6c3f2
Sig[6].Name=Problem Signature 07
Sig[6].Value=17fc
Sig[7].Name=Problem Signature 08
Sig[7].Value=d
Sig[8].Name=Problem Signature 09
Sig[8].Value=System.AggregateException
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.0.6002.2.2.0.274.10
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
UI[2]=c:\windows\system32\inetsrv\w3wp.exe
File[0].CabName=Version.txt
File[0].Path=WER52BB.tmp.version.txt
File[0].Flags=65538
File[0].Type=5
File[1].CabName=memory.hdmp
File[1].Path=WER52CC.tmp.hdmp
File[1].Flags=2097152
File[1].Type=3
File[2].CabName=minidump.mdmp
File[2].Path=WER72E3.tmp.mdmp
File[2].Flags=2162690
File[2].Type=2
FriendlyEventName=Stopped working
ConsentKey=CLR20r3
AppName=IIS Worker Process
AppPath=c:\Windows\System32\inetsrv\w3wp.exe
ReportDescription=Stopped working
I don't see a error code so I'm not sure what is causing this problem, has anyone ran into this issue before and foun a fix? | 0 | [
2,
619,
240,
13790,
9,
1706,
62,
7019,
27,
318,
2741,
8128,
800,
3726,
3726,
26,
109,
1215,
318,
2741,
8128,
8968,
353,
71,
21,
2329,
7019,
6738,
17,
14,
1513,
95,
216,
76,
699,
35,
14,
6488,
50,
45,
615,
3726,
165,
807,
4474,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
APM, EAP and TPL on Socket Programming
===
I found [Difference between […]Async and Begin[…] .net asynchronous APIs][1] question but [this answer][2] confused me a little bit.
Talking about these patterns, Stephen said:
> Most *Async methods (with corresponding *Completed events) are using the Event-Based Asynchronous Pattern. The older (but still perfectly valid) Begin* and End* is a pattern called the Asynchronous Programming Model.
> The Socket class is an exception to this rule; its *Async methods do not have any corresponding events; it's essentially just APM done in a way to avoid excessive memory allocations.
I get it as using *Async methods are more efficient, at least when it comes to sockets.
But then he mentioned Task Parallel Library:
> However, both APM and EBAP are being replaced with a much more flexible approach based on the Task Parallel Library. Since the TPL can wrap APMs easily, older classes will likely not be updated directly; extension methods are used to provide Task equivalents for the old APM methods.
I found [TPL and Traditional .NET Asynchronous Programming][3] on MSDN, I know the basics of TPL, creating tasks, cancellations, continuations, etc but I still fail to understand these:
What are the advantages of Asynchronous Programming Model (APM) and Event-based Asynchronous Pattern (EAP) compared to each other? How does **TPL can wrap APMs easily** mean that both APM and EAP are **being replaced with** TPL?
And most importantly: Which should I use in socket programming;
* APM?
* EAP?
* APM or EAP wrapped by a Task?
* TPL by using the blocking methods of Socket class in tasks?
* Other?
----------
**Where will I use it?**
I need to write a fast TCP server application from scratch. Minimum of 100k clients are going to be connected to the server at the same time. The thing is I don't have much experience neither in socket programming nor in asynchronous programming.
The first time I used sockets in an asynchronous way, I created some evil threads and used the sockets' blocking methods in those threads to create some *parallelism*.
Since it wouldn't cut it this time, I looked for better ways, which led me to find `*Async` methods and `Begin*` / `End*` methods, hence wonder the difference between them. That's how I found the question above.
[1]: http://stackoverflow.com/q/3081079/704144
[2]: http://stackoverflow.com/a/3081850/704144
[3]: http://msdn.microsoft.com/en-us/library/dd997423.aspx | 0 | [
2,
21,
5576,
15,
13,
62,
2552,
17,
13,
38,
5727,
27,
18482,
3143,
800,
3726,
3726,
31,
216,
636,
1115,
6866,
2940,
128,
636,
9,
9,
9,
500,
58,
9507,
150,
17,
2348,
2558,
9,
9,
9,
500,
13,
9,
2328,
21,
16023,
1291,
21,
8954,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
autocasting and type conversion in specman e
===
Consider the following example in e:
var a : int = -3
var b : int = 3
var c : uint = min(a,b); print c
c = 3
var d : int = min(a,b); print d
d = -3
The arguments inside `min()` are autocasted to the type of the result expression.
My questions are:
1. Are there other programming languages that use type autocasting, how do they treat functions like `min()` and `max()`?
2. Is this behavior logical? I mean this definition is not consistent with the following possible definition of min:
`a < b ? a : b`
thanks
| 0 | [
2,
3108,
6146,
68,
17,
1001,
6263,
19,
12737,
177,
13,
62,
800,
3726,
3726,
3563,
14,
249,
823,
19,
13,
62,
45,
4033,
21,
13,
45,
19,
38,
800,
13,
8,
240,
4033,
334,
13,
45,
19,
38,
800,
203,
4033,
272,
13,
45,
287,
6391,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
What are the differences/benefits/advantages of Meteor vs. Node.js?
===
Just curious as to what the major differences are and what the target purposes of each are? | 1 | [
2,
98,
50,
14,
4921,
118,
17092,
11765,
18,
118,
1283,
17384,
14465,
16,
17522,
4611,
9,
15421,
9,
728,
18,
60,
800,
3726,
3726,
114,
7686,
28,
20,
98,
14,
394,
4921,
50,
17,
98,
14,
2935,
4612,
16,
206,
50,
60,
3,
0,
0,
0,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
How would you use Hibernate Criteria here?
===
Let us state that I have a table called Tests. Each Test object has a score and I want to select Tests that are above average. Easily, one uses a Projection to get the average test score, but I would like to use it all under one Criteria rather than create a second and store the average score and reinsert it into the next Criteria. <br/> Is something like this legal? <br/>
Criteria crit = session.createCriteria(Product.class);<br/>
crit.add(Expression.ge("score",Projections.avg("score")));<br/>
crit.addOrder(Order.desc("score"));
| 0 | [
2,
184,
83,
42,
275,
4148,
2102,
8820,
9157,
235,
60,
800,
3726,
3726,
408,
182,
146,
30,
31,
57,
21,
859,
227,
4894,
9,
206,
1289,
3095,
63,
21,
1618,
17,
31,
259,
20,
5407,
4894,
30,
50,
784,
862,
9,
2351,
15,
53,
2027,
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... |
static class variables
===
I can't understand how works the code below:
class Host:
name = None
fileList = []
def __init__(self, hostName):
self.name = hostName
def AddInfo(self,file):
self.fileList.append(file)
def Cleanup(self):
self.fileList = []
I create 2 instances:
h1 = Host("hostName1")
h1.AddInfo("h1")
h1.Cleanup()
print h1.fileList, Host.fileList
h2 = Host("hostName2")
h2.AddInfo("h2")
print h2.fileList, Host.fileList
the result is:
h1.fileList = [], Host.fileList = ['h1']
h1.fileList = ['h1', 'h2'], Host.fileList = ['h1', 'h2']
why `Host.fileList` value is changed - I assigned new values to the instance only? why `h2.fileList` has such value - I was expecting `['h2']` here? | 0 | [
2,
12038,
718,
12157,
800,
3726,
3726,
31,
92,
22,
38,
1369,
184,
693,
14,
1797,
1021,
45,
718,
2015,
45,
204,
800,
2369,
3893,
5739,
800,
20767,
6312,
13,
1,
108,
242,
1,
5,
8411,
15,
2015,
7259,
6,
45,
1119,
9,
7259,
800,
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... |
python - how to get the item currently pointed at by iterator without incrementing?
===
Is there a way to get the item pointed at by an iterator in python without incrementing the iterator itself? For example how whould I implement the following with iterators:
looking_for = iter(when_to_change_the_mode)
for l in listA:
do_something(looking_for.current())
if l == looking_for.current():
next(looking_for)
Thank you in advance | 0 | [
2,
20059,
13,
8,
184,
20,
164,
14,
9101,
871,
2489,
35,
34,
32,
106,
3457,
366,
13,
28461,
68,
60,
800,
3726,
3726,
25,
80,
21,
161,
20,
164,
14,
9101,
2489,
35,
34,
40,
32,
106,
3457,
19,
20059,
366,
13,
28461,
68,
14,
32,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Conditional ICU pattern for Google Charts API
===
I'm formatting the vertical axis of a Google line chart.
https://developers.google.com/chart/interactive/docs/gallery/linechart#Configuration_Options
( **vAxes.format** )
which uses the ICU pattern set.
Is there a way I can conditionally format the pattern?
e.g. if less than 1 : #% else #,###
so that: 12345 => 12,345, 0.12345 => 12.3% for example.
It's the switching part of that I can't seem to find - does such a thing exist?
Thanks, | 0 | [
2,
21206,
13,
22722,
3732,
26,
8144,
5158,
21,
2159,
800,
3726,
3726,
31,
22,
79,
2595,
1203,
14,
7035,
8577,
16,
21,
8144,
293,
1795,
9,
7775,
18,
6903,
26051,
445,
9,
16111,
4875,
9,
960,
118,
5433,
38,
118,
6280,
7889,
118,
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... |
actionscript 3 security class import
===
So affter just getting a (my first) working server up, (nothing big or impressive yet, kinof useless without the client eh?) and testing it with a whip-together C++ client, the next step is to make a connection from what is going to be its long-term mate (once completeing, still a WIP).
The sever side is in C++ and client side in AS3, and long story short, i cant find what import.* i need for the security calls to fetch the policy file from the server. Im working in FlashDevelop FYI.
i need the function: Security.loadPolicyFile();
any help is GREATLY appreciated!
Cheers;
-Tyler | 0 | [
2,
1028,
8741,
203,
1221,
718,
9010,
800,
3726,
3726,
86,
13,
6752,
815,
114,
1017,
21,
13,
5,
915,
64,
6,
638,
8128,
71,
15,
13,
5,
8297,
580,
54,
7408,
768,
15,
6399,
1041,
12858,
366,
14,
6819,
16177,
60,
6,
17,
4431,
32,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
retaining the view
===
here is my question,
I would like the state of the view in a class created to be retained while i process over the other modules of the application, is it possible in ARC environment.
In my opinion, the view gets released if i get into an another class. so whats the solution, let me to know in case you know.
your answers are most welcomed and appreciated. | 0 | [
2,
14151,
14,
1418,
800,
3726,
3726,
235,
25,
51,
1301,
15,
31,
83,
101,
14,
146,
16,
14,
1418,
19,
21,
718,
679,
20,
44,
4956,
133,
31,
953,
84,
14,
89,
17113,
16,
14,
3010,
15,
25,
32,
938,
19,
4686,
2307,
9,
19,
51,
405... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
d3 separating click and drag from nodes and background
===
I'm trying to enable dragging behavior in a d3 force graph so that it's possible to click on the background (not nodes or links) and drag (pan) the whole graph but also independently click and drag a node (without panning the entire graph). While I can get each to work separately, when I combine the code, the background rect seems to over-ride the nodes so that I can no longer drag a node without dragging the whole graph. I've included the two relevant pieces of code below and would really appreciate any help!
This code lets me pan and zoom the entire graph:
vis = d3.select("#chart")
.append("svg:svg")
.attr("width", w)
.attr("height", h)
.append("svg:g")
.call(d3.behavior.zoom().on("zoom", redraw))
.append("svg:g");
This code lets me drag and click on a node - but only when the above code is not included:
var node = vis.selectAll("circle.node")
.data(json.nodes)
.enter().append("svg:circle")
.attr("class", "node")
.attr("cx", function(d) { return d.x; })
.attr("cy", function(d) { return d.y; })
.attr("r", 6)
.style("fill", function(d) { return groupColors[(d.group)-1]; }) // fill(d.group)
.on("click", function(d) {
node.style("stroke","#FFFFFF");
d3.select(this).style("stroke","red");
clickNode(d);
})
.call(force.drag);
| 0 | [
2,
13,
43,
240,
16880,
10840,
17,
5501,
37,
16272,
17,
2395,
800,
3726,
3726,
31,
22,
79,
749,
20,
9240,
13052,
3257,
19,
21,
13,
43,
240,
558,
7210,
86,
30,
32,
22,
18,
938,
20,
10840,
27,
14,
2395,
13,
5,
1270,
16272,
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... |
Claim auth from ADFS
===
I try to connect to a SharePoint Online instance via a WPF-Application. I have found this article[1] that discribes a possible solution but the problem is that the specific instance has a Active Directory Federation Services (ADFS) infront and I don't know how to get the auth-token. (I can't create a certificate for my application to authentificate against the adfs.)
Anyone who have already done this and can support me with some code snippets?
[1] http://www.wictorwilen.se/Post/How-to-do-active-authentication-to-Office-365-and-SharePoint-Online.aspx | 0 | [
2,
2632,
10343,
96,
37,
21,
8736,
18,
800,
3726,
3726,
31,
1131,
20,
6379,
20,
21,
1891,
3132,
2087,
4851,
1197,
21,
619,
7721,
8,
2552,
20669,
9,
31,
57,
216,
48,
2002,
2558,
165,
500,
30,
926,
12543,
18,
21,
938,
4295,
47,
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... |
unable to luch the aoolication - JavaFX
===
I make simple game in JavaFX and I have problem with run application. I use NetBeans 6.9.1. The application type is "JavaFX Script Application". When I build project, is create four files in folder "dist". These are BcJavaFX - html file,BcJavaFX - Jar file, BcJavaFX - JNLP file,BcJavaFX_browser - JNLP file. On computer, where I programmed this game, game run after open BcJavaFX - JNLP file or BcJavaFX_browser - JNLP file. BcJavaFX_browser - JNLP file - game run in browser. BcJavaFX - JNLP file - game run in classic window. But next to right up corner by window is small exclamation mark. When I focus exclamation mark with mouse, display text: Java Application Window. But application run correctly.
The problem is that application do not run on another computers. When I open file BcJavaFX - JNLP file or BcJavaFX_browser - JNLP file on other computer, is show window with message: "Unable to launch the application". Details about bug is:
Exception
com.sun.deploy.net.FailedDownloadException: Unable to load resource: htp://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/C%3A/Dulezite-SKOLA/BcPrace/opengl/JavaFXApplication4/dist/JavaFXApplication4.jnlp
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Wrapped Exception
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
But when I start foreign downloded game ( www.remwebdevelopment.com/javaFX-game-tutorial/Blasteroids.zip ), the game run correctly on all computers. Where is problem please???
THANKS!! | 0 | [
2,
2343,
20,
1612,
673,
14,
21,
111,
18156,
857,
13,
8,
8247,
16488,
800,
3726,
3726,
31,
233,
1935,
250,
19,
8247,
16488,
17,
31,
57,
1448,
29,
485,
3010,
9,
31,
275,
4275,
863,
5950,
400,
9,
518,
9,
165,
9,
14,
3010,
1001,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 cut range of characters from multiple columns
===
I have a tab delimited file which looks like this:
CHROM <TAB> POS <TAB> AD0062-C <TAB> AD0063-C <TAB> AD0065-C <TAB> AD0074-C
2L <TAB> 440 <TAB>0/1:63:60,0,249 <TAB>0/1:89:86,0,166 <TAB>1/1:96:107,24,0<TAB>1/1:49:42,6,0
2L <TAB> 260<TAB>0/1:66:63,0,207<TAB> 1/1:99:227,111,0<TAB>1/1:99:255,144,0<TAB> 1/1:49:42,6,0
2L <TAB> 595 <TAB> 0/1:11:85,0,8 <TAB>0/1:13:132,0,10 <TAB>0/1:73:70,0,131<TAB> 0/1:59:72,0,56
I want to select only the first 3 characters starting from column 3 so that I can get an output that looks like this:
CHROM <TAB> POS <TAB> AD0062-C <TAB> AD0063-C <TAB> AD0065-C <TAB> AD0074-C
2L <TAB> 440 <TAB> 0/1 <TAB> 0/1 <TAB> 1/1 <TAB> 1/1
2L <TAB> 260 <TAB> 0/1 <TAB> 1/1 <TAB> 1/1 <TAB> 1/1
2L <TAB> 595 <TAB> 0/1 <TAB> 0/1 <TAB> 0/1 <TAB> 0/1
Thanks | 0 | [
2,
184,
20,
1077,
978,
16,
1766,
37,
1886,
7498,
800,
3726,
3726,
31,
57,
21,
6523,
121,
23012,
3893,
56,
1879,
101,
48,
45,
13,
20151,
13,
1,
15783,
1,
12928,
13,
1,
15783,
1,
21,
43,
2032,
3698,
8,
150,
13,
1,
15783,
1,
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... |
Can we access the database using ip address of other computer?
===
package com.example.androidhive.library;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONObject;
import android.content.Context;'
public class UserFunctions {
private JSONParser jsonParser;
private static String loginURL = "http://10.0.2.2/android_login_api/";
private static String registerURL = "http://10.0.2.2/android_login_api/";
private static String login_tag = "login";
private static String register_tag = "register";
// constructor
public UserFunctions(){
jsonParser = new JSONParser();
}
/**
* function make Login Request
* @param email
* @param password
* */
public JSONObject loginUser(String email, String password){
// Building Parameters
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("tag", login_tag));
params.add(new BasicNameValuePair("email", email));
params.add(new BasicNameValuePair("password", password));
JSONObject json = jsonParser.getJSONFromUrl(loginURL, params);
// return json
// Log.e("JSON", json.toString());
return json;
}
/**
* function make Login Request
* @param name
* @param email
* @param password
* */
public JSONObject registerUser(String name, String email, String password){
// Building Parameters
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("tag", register_tag));
params.add(new BasicNameValuePair("name", name));
params.add(new BasicNameValuePair("email", email));
params.add(new BasicNameValuePair("password", password));
// getting JSON Object
JSONObject json = jsonParser.getJSONFromUrl(registerURL, params);
// return json
return json;
}
/**
* Function get Login status
* */
public boolean isUserLoggedIn(Context context){
DatabaseHandler db = new DatabaseHandler(context);
int count = db.getRowCount();
if(count > 0){
// user logged in
return true;
}
return false;
}
/**
* Function to logout user
* Reset Database
* */
public boolean logoutUser(Context context){
DatabaseHandler db = new DatabaseHandler(context);
db.resetTables();
return true;
}
}
In line 10 and line 11, we use "http://10.0.2.2/" to access the localhost where my sql database is stored.
Is there a way to access a database that is stored in a computer on my local network using its ip address or anything?
| 0 | [
2,
92,
95,
1381,
14,
6018,
568,
15735,
3218,
16,
89,
1428,
60,
800,
3726,
3726,
6030,
13,
960,
9,
29041,
9,
290,
18524,
252,
1284,
9,
1210,
2559,
622,
73,
9010,
8247,
9,
14255,
9,
8576,
93,
5739,
73,
9010,
8247,
9,
14255,
9,
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... |
Exim response code
===
Here is the main log of exim:
2012-06-29 00:42:56 [31866] 1SkTyp-0008Hx-S6 ** abxyyaakkznmzzzz@yahoo.com F=<mail010@server.com> P=<mail010@server.2424store.com> R=lookuphost T=remote_smtp: SMTP error from remote mail server after end of data: host mta6.am0.yahoodns.net [66.94.236.34]: **554** delivery error: dd This user doesn't have a yahoo.com account (abxyyaakkznmzzzz@yahoo.com) [0] - mta1110.mail.mud.yahoo.com
29 00:46:47 [31940] 1SkU2Y-0008J9-Tf => minhquan@yahoo.com F=<mail010@server.com> P=<mail010@server.2424store.com> R=lookuphost T=remote_smtp S=441 H=mta5.am0.yahoodns.net [66.94.237.64]:25 C="**250** ok dirdel" QT=1s DT=0s
2012-06-28 04:12:01 1SkAld-00038Y-3G SMTP error from remote mail server after end of data: host mta7.am0.yahoodns.net [98.139.54.60]: **451** mta1245.mail.ac4.yahoo.com Resources temporarily unavailable. Please try again later [#4.16.1].
So, the question is: how can I set exim config to log only the response code (250, 451, 554 or 2xx, 4xx, 5xx) of destinated mail server (for this state is yahoo.com)?
Thank you all!
| 0 | [
2,
1396,
1660,
1627,
1797,
800,
3726,
3726,
235,
25,
14,
407,
6738,
16,
1396,
1660,
45,
563,
8,
3370,
8,
2738,
13,
2032,
21186,
23235,
636,
240,
24490,
500,
137,
3656,
1084,
306,
8,
3993,
457,
252,
396,
8,
18,
379,
13,
1409,
594... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 image sizing & positioning
===
I have the following Javascript code which resizes product images and centres them in a box. This code works perfectly fine when called onload, but I have an ajax call which returns 20 more products. When I call this function after the ajax call and after the onload, it resizes any image to be a 165x165px square, regardless of it's proportions.Here is the Javascript:
// Image Resizers
//-------------------------------------------------------------------/
function resizeProductImages(optimumHeight, optimumWidth, className)
{
for(var i=0;i<document.getElementsByTagName('img').length;i++)
{
if(document.getElementsByTagName('img')[i].className == className)
{
document.getElementsByTagName('img')[i].removeAttribute("width");
document.getElementsByTagName('img')[i].removeAttribute("height");
document.getElementsByTagName('img')[i].style.left = "0px";
document.getElementsByTagName('img')[i].style.top = "0px";
h = document.getElementsByTagName('img')[i].height;
w = document.getElementsByTagName('img')[i].width;
if(h > w)
{
document.getElementsByTagName('img')[i].height = optimumHeight;
document.getElementsByTagName('img')[i].style.position = "absolute";
document.getElementsByTagName('img')[i].style.display = "block";
var scaledown = optimumHeight/h;
var realWidth = scaledown * w;
var realHeight = optimumWidth - realWidth;
var gaps = realHeight / 2;
document.getElementsByTagName('img')[i].style.left = gaps+"px";
}
else if(w > h)
{
document.getElementsByTagName('img')[i].width = optimumWidth;
document.getElementsByTagName('img')[i].style.position = "absolute";
document.getElementsByTagName('img')[i].style.display = "block";
var scaledown = optimumWidth/w;
var realHeight = scaledown * h;
var realWidth = optimumHeight - realHeight;
var gaps = realWidth / 2;
document.getElementsByTagName('img')[i].style.top = gaps+"px";
}
else if(h == w)
{
document.getElementsByTagName('img')[i].height = optimumHeight;
document.getElementsByTagName('img')[i].width = optimumWidth;
}
}
}
}
function resizeProductCategoryImages()
{
resizeProductImages(165, 165, 'roller');
}
Any ideas why? | 0 | [
2,
8247,
8741,
1961,
13,
18,
3335,
279,
649,
68,
800,
3726,
3726,
31,
57,
14,
249,
8247,
8741,
1797,
56,
10719,
13569,
2374,
3502,
17,
10548,
105,
19,
21,
1649,
9,
48,
1797,
693,
5759,
1123,
76,
227,
27,
8294,
15,
47,
31,
57,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to tween an object to target without any tween libraries and without easing?
===
So I want to tween an object to targetX and targetY without any tween libraries and without easing. I have always used greensock for all my tweens, but this time I need to tween an object to target which will be changing dynamically.
I know how to tween objects with easing, but this time I need to tween an object without it, so after reaching its first target it would continue smoothly to next target.
This is code that works, but the problem is the easing:
package
{
import flash.display.*;
import flash.events.*;
/**
* ...
* @author me
*/
[SWF(width="1200", height="600", frameRate="30", backgroundColor="#ffffff")]
public class Test extends Sprite
{
// first target coordinates
private var targetX:Number=600;
private var targetY:Number = 450;
// second target coordinates
private var targetX2:Number=900;
private var targetY2:Number = 300;
// check if first target is reached
private var _pointReached:Boolean
// object to tween
private var _ball:Sprite;
public function Test()
{
init()
}
private function init():void
{
// simple ball
_ball = new Sprite();
_ball.graphics.beginFill(0xff0000);
_ball.graphics.drawCircle( -50, -50, 50);
_ball.graphics.endFill();
addChild(_ball);
addEventListener(Event.ENTER_FRAME, onLoop);
}
private function onLoop(e:Event):void
{
var vx:Number;
var vy:Number;
if (_pointReached) { // next target
// easing
vx = (targetX2 - _ball.x) * .3;
vy = (targetY2 - _ball.y) * .3;
}else {
// easing
vx = (targetX - _ball.x) * .3;
vy = (targetY - _ball.y) * .3;
}
// check distance
var dx:Number = targetX - _ball.x;
var dy:Number = targetY - _ball.y;
var dist:Number = Math.sqrt(dx * dx + dy * dy);
if (dist <= 0.6) {
// first target point reached
_pointReached = true;
}
// tween an object
_ball.x += vx;
_ball.y += vy;
}
}
}
Any thoughts?
Thanks! | 0 | [
2,
184,
20,
13,
38,
458,
219,
40,
3095,
20,
2935,
366,
186,
13,
38,
458,
219,
8649,
17,
366,
13,
16524,
60,
800,
3726,
3726,
86,
31,
259,
20,
13,
38,
458,
219,
40,
3095,
20,
2935,
396,
17,
2935,
93,
366,
186,
13,
38,
458,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Difference color but sample color index in VBA
===
I used the code below to get color index of cell in Excel.
[Original Link][1]
> Function ConditionalColor(rg As Range, FormatType As String) As Long
> 'Returns the color index (either font or interior) of the first cell in range rg. If no _
> conditional format conditions apply, Then returns the regular color of the cell. _
> FormatType Is either "Font" Or "Interior"
> Dim cel As Range
> Dim tmp As Variant
> Dim boo As Boolean
> Dim frmla As String, frmlaR1C1 As String, frmlaA1 As String
> Dim i As Long
>
> 'Application.Volatile 'This statement required if Conditional Formatting for rg is determined by the _
> value of other cells
>
> Set cel = rg.Cells(1, 1)
> Select Case Left(LCase(FormatType), 1)
> Case "f" 'Font color
> ConditionalColor = cel.Font.ColorIndex
> Case Else 'Interior or highlight color
> ConditionalColor = cel.Interior.ColorIndex
> End Select
>
> If cel.FormatConditions.Count > 0 Then
> 'On Error Resume Next
> With cel.FormatConditions
> For i = 1 To .Count 'Loop through the three possible format conditions for each cell
> frmla = .Item(i).Formula1
> If Left(frmla, 1) = "=" Then 'If "Formula Is", then evaluate if it is True
> 'Conditional Formatting is interpreted relative to the active cell. _
> This cause the wrong results If the formula isn 't restated relative to the cell containing the _
> Conditional Formatting--hence the workaround using ConvertFormula twice In a row. _
> If the Function were Not called using a worksheet formula, you could just activate the cell instead.
> frmlaR1C1 = Application.ConvertFormula(frmla, xlA1, xlR1C1, , ActiveCell)
> frmlaA1 = Application.ConvertFormula(frmlaR1C1, xlR1C1, xlA1, xlAbsolute, cel)
> boo = Application.Evaluate(frmlaA1)
> Else 'If "Value Is", then identify the type of comparison operator and build comparison formula
> Select Case .Item(i).Operator
> Case xlEqual ' = x
> frmla = cel & "=" & .Item(i).Formula1
> Case xlNotEqual ' <> x
> frmla = cel & "<>" & .Item(i).Formula1
> Case xlBetween 'x <= cel <= y
> frmla = "AND(" & .Item(i).Formula1 & "<=" & cel & "," & cel & "<=" & .Item(i).Formula2 & ")"
> Case xlNotBetween 'x > cel or cel > y
> frmla = "OR(" & .Item(i).Formula1 & ">" & cel & "," & cel & ">" & .Item(i).Formula2 & ")"
> Case xlLess ' < x
> frmla = cel & "<" & .Item(i).Formula1
> Case xlLessEqual ' <= x
> frmla = cel & "<=" & .Item(i).Formula1
> Case xlGreater ' > x
> frmla = cel & ">" & .Item(i).Formula1
> Case xlGreaterEqual ' >= x
> frmla = cel & ">=" & .Item(i).Formula1
> End Select
> boo = Application.Evaluate(frmla) 'Evaluate the "Value Is" comparison formula
> End If
>
> If boo Then 'If this Format Condition is satisfied
> On Error Resume Next
> Select Case Left(LCase(FormatType), 1)
> Case "f" 'Font color
> tmp = .Item(i).Font.ColorIndex
> Case Else 'Interior or highlight color
> tmp = .Item(i).Interior.ColorIndex
> End Select
> If Err = 0 Then ConditionalColor = tmp
> Err.Clear
> On Error GoTo 0
> Exit For 'Since Format Condition is satisfied, exit the inner loop
> End If
> Next i
> End With
> End If
>
> End Function
But, I only get sample color index of 2 difference color cell. Detail as
![enter image description here][2]
How to fix this error ?
[1]: http://www.vbaexpress.com/kb/getarticle.php?kb_id=190
[2]: http://i.stack.imgur.com/3Q0XI.png | 0 | [
2,
2841,
1665,
47,
5717,
1665,
4348,
19,
566,
969,
800,
3726,
3726,
31,
147,
14,
1797,
1021,
20,
164,
1665,
4348,
16,
1667,
19,
20700,
9,
636,
13989,
3508,
500,
2558,
165,
500,
13,
1,
1990,
21206,
11282,
5,
8911,
28,
978,
15,
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... |
How to create an interceptor for annotation @Controller
===
I joined an existing project who use 2 mechanisms for the front-end with spring mvc:
- A) controllers classes extends
org.springframework.web.servlet.mvc.SimpleFormController
- B) controllers classes uses annotation @Controller.
Now I found an interceptor:
@Aspect
public class RequestMonitor {
@Autowired
private RequestMonitorService requestMonitorService;
@Before("execution(* org.springframework.web.servlet.mvc.Controller+.handleRequest(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse))"
+ "&& args(request,response)")
public void storeUserAccess(HttpServletRequest request, HttpServletResponse response) {
requestMonitorService.storeUserAccess(request);
}
}
who catch all requests from org.springframework.web.servlet.mvc.Controller (mechanism A)
How can I adapt to intercept all other controllers with annotations "@Controller": org.springframework.stereotype.Controller (mechanism B) | 0 | [
2,
184,
20,
1600,
40,
13,
24171,
26,
40,
1270,
857,
13,
1,
12898,
1252,
800,
3726,
3726,
31,
670,
40,
3149,
669,
72,
275,
172,
11626,
26,
14,
431,
8,
2451,
29,
1573,
307,
8990,
45,
13,
8,
21,
6,
9919,
18,
2684,
9073,
13,
558... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 merge pdf files using wkhtmltopdf
===
i am using wkhtmltopdf to convert aspx to pdf.
is there a way to merge more pdf files into one using this library?
Thanks in advance! | 0 | [
2,
184,
20,
12666,
13,
11124,
6488,
568,
619,
197,
15895,
262,
11124,
800,
3726,
3726,
31,
589,
568,
619,
197,
15895,
262,
11124,
20,
8406,
28,
306,
396,
20,
13,
11124,
9,
25,
80,
21,
161,
20,
12666,
91,
13,
11124,
6488,
77,
53,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... |
create facebook event as page
===
I'm dealing with this issue:
I want to automatically create a facebook event via the fb api on and as java page I admin. I read [this][1] post that says it needs to "to post it with page access token". How to get that with java? I'm using RestFB and the function is this:
public String createEvent(String page,String name,Date from,Date to,String location,String descr,String image,String token){
String page_id=new com.http.connection.HttpConnection().sendGetRequest("https://graph.facebook.com/"+page, "");
JsonObject jsonPage_id=new JsonObject(page_id);
myClient = new DefaultFacebookClient(token);
myClient.publish(page+"/events", FacebookType.class,
Parameter.with("name", name),Parameter.with("start_time",from),
Parameter.with("description", descr),Parameter.with("location", location),Parameter.with("picture",image)
,Parameter.with("host",jsonPage_id.getString("id")),Parameter.with("owner", "{\"id\":\""+jsonPage_id.getString("id")+"\",\"name\":\""+page+"\"}"));
System.out.println(page+"/events");
return "published new event";
}
[1]: http://stackoverflow.com/questions/9535077/create-facebook-event-as-page-with-rgraph-api | 0 | [
2,
1600,
9090,
807,
28,
2478,
800,
3726,
3726,
31,
22,
79,
5746,
29,
48,
1513,
45,
31,
259,
20,
7499,
1600,
21,
9090,
807,
1197,
14,
13,
13478,
21,
2159,
27,
17,
28,
8247,
2478,
31,
21,
43,
2160,
9,
31,
1302,
636,
1565,
500,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Error in FIND_IN_SET
===
i am getting result in phpadmin for this query but getting error in php(`You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1`)
select * from luxury_properties LP,property_type PT,cities C
where (FIND_IN_SET('2',LP.luxury_property_feature_id) OR
FIND_IN_SET('7',LP.luxury_property_feature_id) )
AND LP.property_type_id = PT.property_type_id
AND LP.city=C.city_id
AND LP.status=1
order by LP.property_price DESC
Where `LP.luxury_property_feature_id` is comma separated value
What is the issue in this query? | 0 | [
2,
7019,
19,
477,
1,
108,
1,
3554,
800,
3726,
3726,
31,
589,
1017,
829,
19,
4145,
8240,
2160,
26,
48,
25597,
47,
1017,
7019,
19,
13,
26120,
5,
1,
245,
57,
40,
7019,
19,
154,
4444,
255,
22649,
73,
2631,
14,
5132,
30,
17016,
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... |
A packet reader Qt/C++ API design
===
I have a binary packet format which I must implement a C++ reader for. The library uses Qt 4, and the packet source could be any QIODevice, for example, QTcpSocket, QFile or QBuffer. The format includes the packet format, and each packet may also have a lot of sub-structures inside. I need the reader to return the following:
- the packet header;
- the array of sub-structures;
- the error status of a read operation - success, an error, or not enough data (particularly when reading from a socket or another sort of buffering device).
There are various possible approaches to the reader API:
1. `Packet read(Status &status);` - return by value, and return the error status through the reference argument.
2. `Packet *read(bool *ok);` - return NULL on error or if not enough data, write true or false to the `ok` variable (if not NULL) depending on that.
3. `Packet *read();` - return NULL on error or if not enough data, call another method `bool wasError();` to check what happened. This one could be merged with the previous one by making the `ok` parameter have the default value of `NULL`.
4. `Status read(Packet &packet);` - if the returned status is `Ok`, the read value is placed into the `packet` variable, otherwise it indicates either an error or EOF.
5. `Packet read();` - return by value, in case of EOF or error return a special "null packet" value. Call `wasError()` to determine what happened.
There are other possible combinations, of course. There doesn't seem to be the best choice. The approaches 1, 2 and 4 require the caller to declare a separate variable to store the result. The approaches 2 and 3 involve messing with the heap, which I don't want to do for obvious reasons. The approach 1 doesn't make it clear what is returned in case of error. The approach 5 fixes that, but introduces a special "null" flag into the packet structure, although it probably doesn't belong there.
I could take the 5th approach, but return a special structure containing a packet and the status info, but that introduces another "synthetic" type and still leaves open the question "What will the packet field contain in case of an error?"
Or I could take the 3rd approach and return a `QSharedPointer<Packet>` instead, so the caller doesn't have to mess with heap manually. But the `Packet` structure will probably already be a kind of smart pointer (a shared class) for the sake of the Pimpl. Maybe I can use that internal pointer instead and introduce an `isNull()` method, like QString does.
Is there a better, or traditional way of doing it? | 0 | [
2,
21,
12795,
7765,
2593,
38,
118,
150,
20512,
21,
2159,
704,
800,
3726,
3726,
31,
57,
21,
14171,
12795,
2595,
56,
31,
491,
8713,
21,
272,
20512,
7765,
26,
9,
14,
1248,
2027,
2593,
38,
268,
15,
17,
14,
12795,
1267,
110,
44,
186,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
GIT: How to undo merge?
===
I've done merge `some-branch` into `master`, but gets confilcts. How to undo this ?
git checkout master
git merge some-branch
...
CONFLICTS :(
| 0 | [
2,
13,
10404,
45,
184,
20,
367,
537,
12666,
60,
800,
3726,
3726,
31,
22,
195,
677,
12666,
13,
1,
3220,
8,
23014,
1,
77,
13,
1,
4594,
1,
15,
47,
3049,
1065,
11924,
4812,
18,
9,
184,
20,
367,
537,
48,
13,
60,
13,
10404,
2631,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Generating Color schemes from an image
===
Im wondering how to generate color schemes from an image in iOS. I surfed and found some related links where I can get average color from an image from [here][1] and also could get the exact color values from the point touched from an image from [here][2] and [here][3] But I couldn't get how I can get color schemes(altleast 10 colors) from that image.
First, I divided the given image into nine parts and processed each to get the dominant color of that particular part. It worked, but as the code in [the link][1] gets only the average color, which seems to be muddy.
So, I want it to be true colors from the image. This is my need. Can someone point me how to get the exact color schemes from the given image?
[1]: http://stackoverflow.com/questions/5562095/average-color-value-of-uiimage-in-objective-c/5562246#5562246
[2]: http://stackoverflow.com/questions/144250/how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone
[3]: http://stackoverflow.com/a/1285690/1424174 | 0 | [
2,
13500,
1665,
13185,
37,
40,
1961,
800,
3726,
3726,
797,
5712,
184,
20,
7920,
1665,
13185,
37,
40,
1961,
19,
13,
7760,
9,
31,
12187,
69,
17,
216,
109,
1597,
6271,
113,
31,
92,
164,
862,
1665,
37,
40,
1961,
37,
636,
6836,
500,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
How to get names of all opened windows in my system using a vc++ application?
===
I am trying to solve a problem,to display names of all windows which're opened currently.
Am solving it using vc++ (dialog based app). Pls help someone | 0 | [
2,
184,
20,
164,
1817,
16,
65,
520,
1936,
19,
51,
329,
568,
21,
13,
8990,
20512,
3010,
60,
800,
3726,
3726,
31,
589,
749,
20,
8402,
21,
1448,
15,
262,
3042,
1817,
16,
65,
1936,
56,
22,
99,
520,
871,
9,
589,
17533,
32,
568,
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,
0,
0... |
href with nested image server equivalent
===
I have the following markup on my page
<a href="some.aspx">
<img src=""><strong>Text</strong>
</a>
I need to change to the server behaviour , what can be asp.net server equivalent of the following markup ?
| 0 | [
2,
746,
14057,
29,
5618,
69,
1961,
8128,
4602,
800,
3726,
3726,
31,
57,
14,
249,
943,
576,
27,
51,
2478,
13,
1,
58,
746,
14057,
3726,
7,
3220,
9,
472,
306,
396,
7,
1,
13,
1,
1660,
263,
13,
18,
5453,
3726,
7,
7,
1,
15004,
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... |
Cursor not blinking in text fields in IE
===
when i clicked in textfilld cursor coming but it is not blinking.Could any body know please tel me | 1 | [
2,
29588,
52,
18015,
19,
1854,
2861,
19,
13,
660,
800,
3726,
3726,
76,
31,
15802,
19,
1854,
19971,
43,
29588,
880,
47,
32,
25,
52,
18015,
9,
13431,
186,
358,
143,
2247,
6757,
55,
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... |
How to Ignore Longer words when using Regex.split?
===
string[] tmp = Regex.Split(originalString, @"\b(3DFACE|3DSOLID|ACAD_PROXY_ENTITIY|ARC|ATTDEF|ATTRIB|BODY|CIRCLE|DIMENSION|ELLIPSE|HATCH|HELIX|IMAGE|INSERT|LEADER|LIGHT|LWPOLYLINE|MLINE|MLEADERSTYLE|MLEADER|MTEXT|OLEFRAME|OLE2FRAME|POINT|POLYLINE|RAY|REGION|SEQEND|SHAPE|SOLID|SPLINE|SUN|SURFACE|TABLE|TEXT|TOLERANCE|TRACE|UNDERLAY|VERTEX|VIEWPORT|WIPEOUT|XLINE|LINE)\b", RegexOptions.None);
AND i have this text
BODY
bodyattrib
mybody
GR-BODY
attrib
123
and i would like the output to be like this
tmp[0] = "BODY"
tmp[1] = "bodyattrib\mybody\nGR-BODY\nattrib\n123"
so far no good
the output is always 3 array splitted with GR-BODY | 0 | [
2,
184,
20,
7174,
1045,
715,
76,
568,
7953,
1706,
9,
25603,
60,
800,
3726,
3726,
3724,
2558,
500,
13,
38,
2554,
800,
7953,
1706,
9,
25603,
5,
13989,
11130,
15,
13,
1,
7,
1,
220,
5,
240,
43,
6413,
1,
240,
43,
23666,
1,
9721,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 parse eml file in php?
===
how to parse eml file in php? is there a php libriary or php extension ?
I want to display the mail header information such as sender,receiver,title,attachements,and eml body content in browser.
php
| 0 | [
2,
184,
20,
2017,
870,
3579,
255,
3893,
19,
13,
26120,
60,
800,
3726,
3726,
184,
20,
2017,
870,
3579,
255,
3893,
19,
13,
26120,
60,
25,
80,
21,
13,
26120,
2093,
5358,
1857,
54,
13,
26120,
3896,
13,
60,
31,
259,
20,
3042,
14,
4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can Regex groups and * wildcards work together?
===
Is there any way to combine groups and the * features of regular expressions to act kindof like a tokenizer / splitter. I tried this:
str = "foofoofoofoo"
pattern = "(foo)*"
result = re.search(pattern, str)
I was hoping my groups might look like
("foo", "foo", "foo", "foo")
But it does not. I was surprised by this because the ? and group features do work together:
str = "Mr foo"
pattern = "(Mr)? foo"
result = re.search(pattern, str)
| 0 | [
2,
92,
7953,
1706,
1170,
17,
1637,
23003,
18,
170,
429,
60,
800,
3726,
3726,
25,
80,
186,
161,
20,
12287,
1170,
17,
14,
1637,
967,
16,
1290,
13832,
20,
601,
825,
1041,
101,
21,
20,
2853,
11907,
13,
118,
2132,
815,
9,
31,
794,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Manipulating c# objects through Java
===
I'm writing an application in Java/Android.In my application I consume a wcf web service
using KSOAP2.My problem is that there are times that instead of a single string I could receive an object (or arrays of objects) which are defined in the c# web services.Is there any way I can process these objects?If it helps I can tell you that I know how the classes of these objects are defined in the c#. | 0 | [
2,
27799,
272,
5910,
3916,
120,
8247,
800,
3726,
3726,
31,
22,
79,
1174,
40,
3010,
19,
8247,
118,
290,
18524,
9,
108,
51,
3010,
31,
16447,
21,
11801,
410,
2741,
365,
568,
680,
656,
2552,
135,
9,
915,
1448,
25,
30,
80,
50,
436,
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Can and may i use MySQL for free for an internal system for our office
===
I am given the task of developing a system to be used internally for our office and I am trying to find out if the MySQL licencing allows me to use it for free in this application. The more I read about the licencing the more confused I get so I was hoping some of you could help me out.
The system will:
- Only be used internally, not be distributed
- Only be accessed internally
- Not be embedded into the system but installed separately (connection only)
- Not be sold or sub licensed in any way
Hopefully anyone can help me out! Many thanks in advance! | 0 | [
2,
92,
17,
123,
31,
275,
51,
18,
22402,
26,
551,
26,
40,
3117,
329,
26,
318,
488,
800,
3726,
3726,
31,
589,
504,
14,
3005,
16,
3561,
21,
329,
20,
44,
147,
17739,
26,
318,
488,
17,
31,
589,
749,
20,
477,
70,
100,
14,
51,
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... |
Specifying requestfocus flag for an edit text with monodroid?
===
I'm trying to set give a text edit the reqeust focus flag through a layout file this way:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<EditText
android:id="@+id/etEditText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10">
<requestfocus />
</EditText>
</LienarLayout>
The problem is that Visual Studio complains that I can't use <requestfocus/> there. How could I achieve this?
Thanks in advance. | 0 | [
2,
19077,
68,
3772,
23371,
3157,
26,
40,
9392,
1854,
29,
4129,
43,
18524,
60,
800,
3726,
3726,
31,
22,
79,
749,
20,
309,
590,
21,
1854,
9392,
14,
302,
1251,
9739,
38,
1776,
3157,
120,
21,
9106,
3893,
48,
161,
45,
13,
1,
60,
39... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.