Posts

java - Is there any possibilities to change price programmatically In app purchase android? -

java - Is there any possibilities to change price programmatically In app purchase android? - i want implement in app purchase application.. have tried this link code transaction cost set predefined ...is there possible alter price.if possible means how can alter cost programmatically?. it not possible modify cost of product dynamically in code. product cost determined when upload our product in play store. if want alter product cost need in play store console. java android in-app-purchase in-app-billing

adobe - Structure of the page through parsys vs fixed components - CQ -

adobe - Structure of the page through parsys vs fixed components - CQ - for pages product details, there fixed construction of content product image, description etc. if there parsys component used (widely used in geometrixx demo site), there possibility add together of allowed components in order in parsys. not create content chaos ? or author's responsibility add together needed page construction ? either responsibility of authors/publisher, can controlled through workflows or have create fixed product detail page component each component in fixed in jsp , no parsys available. adobe cq5 aem wcm

java - Cannot find symbol: Thread.sleep (1000); -

java - Cannot find symbol: Thread.sleep (1000); - this question has reply here: java -the method sleep(int) undefined type thread 7 answers i want implement threads using runnable interface. i have next 3 classes: firstthread.java public class firstthread implements runnable { //this method executed when thread executed public void run() { //looping 1 10 display numbers 1 10 ( int i=1; i<=10; i++) { //displaying numbers thread system.out.println( "messag first thread : " +i); /*taking delay of 1 sec before displaying next number * * "thread.sleep(1000);" - when statement executed, * thread sleep 1000 milliseconds (1 second) * before executin...

c++ - QTest::qExec Hide "passed" messages -

c++ - QTest::qExec Hide "passed" messages - i'm new in qt , qtest. utilize qtest::qexec(&somemytestclassobject) run tests. possible hide "pass : myclass::mytest" messages? of course of study want see "fail" messages , statistics sorry poor english i'm not sure if works qtest::qexec , default qtest executable generated qtest_appless_main(mytestclass) can run tests parameter -silent . from help-text: -silent : outputs warnings , failures c++ qt qtestlib

sorting - What's the fastest approach to merging a small number of large, already sorted lists in Hadoop? -

sorting - What's the fastest approach to merging a small number of large, already sorted lists in Hadoop? - i've got little hadoop (cdh5.1.0, mrv2/yarn) cluster (5x nodes 4cpu, 16gb ram, 600gb disk) of contains little number ~30 of ~15gb sequencefiles. sequencefiles contains pairs of byteswritable / byteswritable , , keys not uniformly distributed across possible keyspace - it's rather lumpy. however, these files sorted. i need merge these create single, sorted sequencefile, efficiently possible. i've tried number of approaches already, haven't been successful. initially, tried using mapreduce job randomsampler , totalorderpartitioner, , around 1000 reducers. however, turns out because of non-uniformity of input keys, randomsampler isn't @ distributing info across partitions, , end 999 reducers succeeding, , 1 failing due running out of local disk. it occurs me approach doesn't appear take advantage of fact input info sorted - solve problem ...

javascript - move_uploaded_file - file name of image? -

javascript - move_uploaded_file - file name of image? - the script: <?php if (isset($_post['submit'])) { $j = 0; //variable indexing uploaded image $target_path = "uploads/"; //declaring path uploaded images ($i = 0; $i < count($_files['file']['name']); $i++) {//loop individual element array $validextensions = array("jpeg", "jpg", "png"); //extensions allowed $ext = explode('.', basename($_files['file']['name'][$i]));//explode file name dot(.) $file_extension = end($ext); //store extensions in variable $target_path = $target_path . md5(uniqid()) . "." . $ext[count($ext) - 1];//set target path new name of image $j = $j + 1;//increment number of uploaded images according files in array if (($_files["file"]["size"][$i] < 100000) //approx. 100kb files can uploaded. &...

ios - how to set timer when closed subviews -

ios - how to set timer when closed subviews - i tried open 2 subviews , closed @ time tried this - (void)motionbegan:(uieventsubtype)motion withevent:(uievent *)event { if(event.type == uieventsubtypemotionshake) { [self shakeview]; //[self open]; } } -(void)shakeview { [uiview animatewithduration:2.8 animations:^{ //open firstview.frame = cgrectmake(0, -40, self.view.frame.size.width, self.view.frame.size.height/2); secondview.frame = cgrectmake(0, 260, self.view.frame.size.width, self.view.frame.size.height/2); // final location } completion:^(bool finished) { // closed firstview.frame = cgrectmake(0, 0, self.view.frame.size.width, self.view.frame.size.height/2); secondview.frame = cgrectmake(0,230 , self.vi...