Posts

ios - SKShapeNode select X amount -

question i'm developing poker software ~ purely fun. now when comes chips, i'm having nightmare. 1 positioning them, 2 denominations , three selecting ones i'll need! seems impossible current design. basically, draw skshapenode give name of denomination , player name. however, chip can drawn 50 times same name. when come animating these chips, can see wall of impossibility.. once i've made function choose right denominations of chips use call or raise etc, how begin write pseudo code? i require 2 large chips, 1 small chip , 2 medium chips { sknode *node = [self childnodewithname:denomination, playername]; runaction.. } baring in mind, i'll need take 2 of 20 there in chip stack.. change ownership of chip.. is possible? or overcomplicating issue..? you need rework solution little bit. this: first, subclass skspritenode (or sk whatever node like) make chip: chip.h @interface chip : skspritenode @property (nonatomic, retain)...

java - App crashes when trying to run parse.com push notification application -

my parse push notification app seems crash whenever run it. double checked make sure permissions correct , build.gradle correct. created java class (which added src folder) parse application. here code parse application, android manifest, , build.gradle file. build.gradle file buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:1.2.3' } } apply plugin: 'com.android.application' android { compilesdkversion 21 buildtoolsversion "21.1.2" defaultconfig { applicationid "com.example.anish.parseexample" minsdkversion 19 targetsdkversion 21 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(include: ['*.jar'], dir: 'libs') compile 'com.android.suppo...

jquery - JavaScript & Checkboxes - More efficient way of storing values of each checkbox? -

is there more efficient way of storing checkbox values? each checkbox has assigned value, wondering if there better way of storing these values (destinationoflink1,2,3,etc)? perhaps store them array , call them?...although unsure html page extract: <form> <label for="checkbox1">link #1</label> <input type="checkbox" id="checkbox1" value="http://www.destinationoflink1.com"> <label for="checkbox2">link #2</label> <input type="checkbox" id="checkbox2" value="http://www.destinationoflink2.com"> <label for="checkbox3">link #3</label> <input type="checkbox" id="checkbox3" value="http://www.destinationoflink3.com"> <input type="button" value="open links" id="open_link"/> </form> javascript file extr...

r - calculate average correlation for neighboring pixels through time -

i have stack of 4 rasters. average correlation through time between pixel , each of 8 neighbors. some data: library(raster) r1=raster(matrix(runif(25),nrow=5)) r2=raster(matrix(runif(25),nrow=5)) r3=raster(matrix(runif(25),nrow=5)) r4=raster(matrix(runif(25),nrow=5)) s=stack(r1,r2,r3,r4) so pixel @ position x, has 8 neighbors @ ne, e, se, s etc positions, want average of cor(x,ne) cor(x,e) cor(x,se) cor(x,s) cor(x,sw) cor(x,w) cor(x,nw) cor(x,n) and average value saved @ position x in resulting raster. edge cells na or, if possible flag calculate average correlation cells touches (either 3 or 5 cells). thanks! i don't believe @pascal's suggestion of using focal() work because focal() takes single raster layer argument, not stack. solution easiest understand. made more efficient minimizing number of times extract values each focal cell: library(raster) set.seed(2002) r1 <- raster(matrix(runif(25),nrow=5)) r2 <- raster(matrix(runif(25),nr...

php - Ajax limit on post size -

background... i'm using handsontable.js enable user manipulate large number of rows of data. there 4 columns represented in object below 'id' , 'order' ,'no' , , 'name'. when user satisfied edits, click button , data should sent via ajax processing. data looks ... array ( [0] => array ( [id] => 194 [drawing] => array ( [order] => [no] => a0001 [name] => - ) ) ) problem... the data object contains 464 elements (this number vary greatly). 250 received php script. the javascript.... function reorder(){ var stuff = hot1.getdata(); $.ajax({ url: '/php/listorder_processes.php', type: 'post', data: { value: stuff }, success: function(result) { console.log(result); ...

playframework - Image resource cannot be found after using sbt debian:packageBin -

i have put images path app/assets/images after used command sbt debian:packagebin , deployed server, images couldn't found. can me solve problem? i have sovled problem did not put these images package after used command sbt debian:package put these code build.sbt import nativepackagerhelper._ ... mappings in (compile, packagebin) ++= directory("public")

javascript - How to populate table in Angular with JSON data from a web Service? -

i have link displays json data when first name found. http://localhost:8080/application/names/find?firstname=f_name&lastname&address&status= for example: if replace f_name tim json response. [{"f_name": "tim","address": "road","phone": "1234","status": "busy"}] if replace f_name sue json response. [{"f_name": "sue","address": "street","phone": "4321", "status": "available"}] i want able type tim or sue , corresponding data. here have. $http.get('http://localhost:8080/application/names/find?firstname=f_name&lastname&address&status='). success(function(data) { $scope.jsondata = data; alert("success"); }). error(function(data) { alert("invalid url"); }); $scope.results = []; $scope.clickbutton = function(enteredvalue) { $scope.items = $scope.j...