Posts

android - Lollipop inconsistent CPU usage on Galaxy S4 -

Image
i'm developing game android , testing on samsung galaxy s4. however, i'm finding since i've installed lollipop (5.0.1) on game freezing approx. 200ms every often, causing drop around 10 frames. the game has been tested on multiple other (non-s4) devices running lollipop , not doing this. going cpu usage monitor in android studio, i'm having complete opposite more common (upward) spikes in cpu usage. i'm finding cpu usage spiking down instead of up. is common problem lollipop/galaxy s4? have suggestions on can find out causing this?

facebook - ParseFacebookUtilsV4::initializeFacebookWithApplicationLaunchOptions issue in IOS using Parse/FB SDK -

i still using objective-c in project, since legacy one. using parse before , trying add fb integration. managed make compile - these have installed via cocoapods. using bolts (1.2.0) installing fbsdkcorekit (4.3.0) installing fbsdkloginkit (4.3.0) using parse (1.7.5) installing parsefacebookutilsv4 (1.7.5) here code. firstviewcontroller -(void) viewdidappear:(bool)animated { // additional setup after loading view, typically nib. if (![pfuser currentuser] || // check if user cached ![pffacebookutils islinkedwithuser:[pfuser currentuser]]) { // check if user linked facebook pfloginviewcontroller *logincontroller = [[pfloginviewcontroller alloc] init]; logincontroller.fields = (pfloginfieldsusernameandpassword | pfloginfieldsfacebook | pfloginfieldsdismissbutton); [self presentviewcontroller:logincontroller animated:yes completion:nil]; [self presentviewcontroller:loginviewcontroller animated:yes completion:null]; } els...

c# - Issue with BackgroundTransfer not saving the downloaded file -

i have issue background transfer service: i trying download file onedrive using backgrounddownloader, transfer seems effective (some bytes transfered), transfer seems never end, , @ end file downloaded size 0 bytes. in addition, transfer never ends because if launch second transfer, never starts (except if switch network connectivity (wifi on/off)). i have tried same link in background transfer sample ms, gets same behavior. have used same link in ie, , transfer goes well. have tried many files (mp3), result same. have added: download.costpolicy = backgroundtransfercostpolicy.always; but still same result. have tried on wifi, debug, release. any idea why file not saved? (i have enough space on sd card of course) if no answer found, know implementation of background transfer service use instead of official one?

javascript - Jquery append() on another line? -

i thought simple code outputs spans on same line. $("<p/>") .append($("<span/>", { class:"time", text: content.time })) .append($("<span/>", { class: "content", text: content.message })); but since append these elements without newline, spans end needing manual spacing, isn't possible @ current scale. <p><span class="time">now</span><span class="content">lorem ipsum ...</span></p> how can force jquery manually append spans on new line? i've tried using .after to. edit: i guess bit unclear, far .append("\n") i'm looking for, if there better ways, i'm ears appending <br/> tag not looking for. <p> <span class="time">now</span> <span class="content">lorem ipsum ...</span> </p> if want html element appen...

statistics - R code optimizing for rep function -

i'm working data income/expense per home poll. 9,002 observations sample data base represent 3,155,937 homes through expansion factor this. homeid income factor 001 23456 678 002 42578 1073 .. .. .. 9002 62333 987 i'm trying exact summary of total income per decile expanding each income value times factor give result 3,155,937 ovservations vector , i'm using 'for' loop asign each value decile belongs to. three <- nal %>% select(income,factor) 5 <- data.frame(income=rep(three$income,three$factor)) for(i in 1:31559379){if(i<=3155937){five$decil[i]=1} else{if(i<=6311874){five$decil[i]=2} else{if(i<=9467811){five$decil[i]=3} else{if(i<=12623748){five$decil[i]=4} else{if(i<=15779685){five$decil[i]=5} else{if(i<=18935622){five$decil[i]=6} else{if(i<=22091559){five$decil[i]=7} else{if(i<=25247496){five$decil[i]=8} else{if(i<=28403433){five$decil[i]=9} else{five$decil[i]=10} }}}}...

c# - Can't translate method into a store expression -

this question has answer here: method cannot translated store expression 1 answer the closest questions i've found this one , far can see, it's not regarding same issue. might mistaken, in case, hope can explain how similarity goes (except same words referring error, is). being said, have following issue. this works supposed to. list<typo> things = context.things.where(thing => thing.nice).tolist(); this, however, doesn't. list<typo> things = context.things.where(thing => isnice(thing)).tolist(); ... private bool isnice(typo thing) { return thing.nice; } context of type modelcontainer deriving dbcontext . i've been told it's standard setup ef , have no reason suspect otherwise. error message claims following. {"linq entities not recognize method xxx method, , method cannot translated store expression."...

What does the -f option mean for the git rm command? -

this question has answer here: when git rm -f used? 3 answers i learning git through this online book . don't understand info git rm command: if modified file , added index already, must force removal -f option. safety feature prevent accidental removal of data hasn’t yet been recorded in a snapshot , can’t recovered git. english not native language. have problems correctly translating of quote... " recorded in snapshot " mean? "commited"? i see git rm 123.txt the same git rm -f 123.txt , if 123.txt changed , added index (i.e. storage area, through add command): removes 123.txt index , working directory. so, don't understand -f option meaning. please, expand me. additional tried read this : the files being removed have identical tip of branch , , no updates contents can staged in index, though default be...