« first day (1231 days earlier)      last day (2886 days later) » 

8:24 AM
what you need to do on first device is in the

@Override public void onInputEvent(View view, int buttons) {
// foreach button (there are 4 action buttons)
for(int i=0;i<4;i++) {
// if the bit on position i is set
if(((0x01 << i)&buttons)>0) {
// Button Number (i+1) is pressed
}
}
// if buttons == 0, the user stopped touching the view
}
 
1 message moved from Android
 
 
1 hour later…
9:51 AM
Is @BoltClock here?
 
1 message moved from SO Close Vote Reviewers
 
10:50 AM
1 message moved from C#
 
11:13 AM
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html", @"text/json", @"text/javascript", nil];

[manager GET:[urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
success(responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
failure(error);
 
@caglaror
$(".merge_slot_selected").each(function(index, element) {
console.log($(this).find(".slot_length").val());
});

I've got this so far and the values I get back is 5, 10 and 12. I want to now have a check to highlight the slot with smallest value. Do you know how I would be able to check that?
 
1 message moved from JavaScript
 
@caglaror
    $(".merge_slot_selected").each(function(index, element) {
    console.log($(this).find(".slot_length").val());
    });

I've got this so far and the values I get back is 5, 10 and 12. I want to now have a check to highlight the slot with smallest value. Do you know how I would be able to check that?
 
1 message moved from JavaScript
 
@caglaror

$(".merge_slot_selected").each(function(index, element) {
console.log($(this).find(".slot_length").val());
});

I've got this so far and the values I get back is 5, 10 and 12. I want to now have a check to highlight the slot with smallest value. Do you know how I would be able to check that?
 
11:27 AM
1 message moved from JavaScript
 
11:48 AM
1 message moved from iOS Developer Family
 
 
2 hours later…
1:53 PM
[
{
"name": "test",
"version": "1.5"
},
{
"name": "test2",
"version": "1.2"
}
]

projects.forEach(function (project) {

project.functions['function1'] = function(){
return project.name;
}

project.functions['function2'] = function(){
return project.version;
}

}

console.log(projects[1].function1());
 
1 message moved from JavaScript
 
 
7 hours later…
8:26 PM
Anyone see anything wrong with this code: `function broadcast(data){
/* "use strict";
for(let client in clients){
if(client != null){
client.send(data, {binary: true});
}
} */
for(var i = 0; i < clients.length; i++){
if(clients[i] !== null && clients[i] !== undefined){
clients[i].send(data, {binary: true});
}
}
}`. I have been staring at it for a while but I can't see why it's giving me the TypeError: "Invalid non-string/buffer chunk". Any idea's how to fix it?
 
1 message moved from JavaScript
 

« first day (1231 days earlier)      last day (2886 days later) »