Posts

tableau - Split the visualization into smaller parts -

Image
i trying split visualization smaller parts , place them side side shown in image below. how achieve this?

ubuntu - With VirtualBox how do I boot into a newly compiled kernel? -

Image
i running ubuntu 14.04 kernel version 4.4.0-31 , compiled 4.4.31 kernel. when try boot new kernel, error message no init found: but, old kernel still boots fine.

Animate tons of markers with Google Map on Android -

i trying fade in markers on google maps fragment this: valueanimator animator = valueanimator.offloat(0, 1); animator.setduration(1000); animator.addupdatelistener(new valueanimator.animatorupdatelistener() { @override public void onanimationupdate(valueanimator animation) { marker.setalpha((float) animation.getanimatedvalue()); } }); animator.start(); it works single marker when try 200 markers performance terrible , markers appear without animation. i'm going nuts here, help/idea/suggestion appreciated. you may want check on related post . suggested use interpolator class apply animation on marker , handle in handler animation. check sample code snippet . here threads might help: move markers in google map v2 android how animate marker when added map on android? animating markers on google maps v2

mysql - Inserting reservation record to php database -

i have created reservation form housing. user fills form out , submits it. reservation record supposed made inserted reservations table. this code being inserted database record $reservationstable = "reservations"; $r1 = (rand(11111,99999)); createreservationrecord($reservationstable, [$r1, $date,$dormrecord[id], $_post["cwid"], $_post["firstname"], $_post["lastname"], $_post["class"], $_post["gender"], $_post["fullyequippedkitchen"], $_post["laundry"], $_post["specialneeds"]]); these functions transform data: function createrecord($table, $values) { echo "this working"; return insertinto($table, ["name","class","specialneeds","laundry","fullyequippekkitchen","roomsavailable","roomsreserved","roomcapacity"], $values); } function createreservationrecord($table, $values) { echo ...

java - how to add int value to Set<Integer> (HashSet<Integer>)? -

i created set , random number (type of int) want add set: private set<integer> myset = new hashset<integer>(numelements); // capacity of 'numelements' random r = new random(); int rand = r.nextint(maxval - minval + 1) + minval; myset.add(rand); // error: cannot convert int integer so tried these: 1. myset.add(rand); // error: no suitable method found add(int) 2. myset.add(integer.valueof(rand)); //error: cannot find symbol method valueof(int) 3. myset.add(new integer(rand)); // error: type parameter integer cannot instantiated directly they don't work how can add 'rand' set? i succeeded find solution solves problem of collections try add them 'int' value. created class: class number { int number; number(int num) { number = num; } } then, in code, used it: number number = new number(index); // index int type myset.add(number); // adding object collection legal

javascript - Anchor link in Bootstrap 3.7 not Working -

<ul style="font-family:'ralway', serif;" class="nav navbar-nav"> <li><a href="http://www.reachoutcelebration.com/#home">home</a></li> <li><a href="http://www.reachoutcelebration.com/#about">about</a></li> <li><a href="http://www.reachoutcelebration.com/#events">events</a></li> <li><a href="http://www.reachoutcelebration.com/#surrenderstories">surrender stories</a></li> <li><a href="http://www.reachoutcelebration.com/#globalstrategy" >global strategy</a></li> <li><a href="http://www.reachoutcelebration.com/#contact-form">contact</a></li> <li><a href="/#donate">donate</a></li...

objective c - Stripe iOS SDK - Format for State and Country While Creating Token -

i'm wondering format state , country should passing in stpcardparams while creating token in stripe ios sdk. in code, have following: stpcardparams *card = [[stpcardparams alloc] init]; card.number = self.paymentview.cardparams.number; card.expmonth = self.paymentview.cardparams.expmonth; card.expyear = self.paymentview.cardparams.expyear; card.cvc = self.paymentview.cardparams.cvc; card.addresszip = self.zipfield.text; card.addressline1 = self.addressfield.text; card.addresscity = self.cityfield.text; card.addresscountry = self.countryfield.text; card.addressstate = self.statefield.text; [[stpapiclient sharedclient] createtokenwithcard:card completion:^(stptoken *token, nserror *error) { ...... my question is, should formatting user's input state , country. for example, should be: "california, united states of america" or "ca, us" it should permi...