Posts

android - Permission denial causing app crash in Ionic -

i have been confused random crash in app since updated cordova 5 , started using crosswalk. this logcat : d/statusbar-networkcontroller( 1110): refreshsignalcluster - setnwboosterindicators(false) d/statusbar-networkcontroller( 1110): refreshsignalcluster: data=-1 bt=false d/statusbar-iconmerger( 1110): checkoverflow(1344), more:false, req:false child:5 w/activitymanager( 891): permission denial: getcurrentuser() pid=32252, uid=10037 requires android.permission.interact_across_users i/activitymanager( 891): process com.tesingguru.tesing_guru (pid 29852) (adj 0) has died. i/windowstate( 891): win death: window{42fb82c0 u0 com.tesingguru.tesing_guru/com.tesingguru.tesing_guru.mainactivity} i/surfaceflinger( 329): id=3847 removed nainactivit (16/29) i/surfaceflinger( 329): id=3847 removed nainactivit (-2/29) i/factorytest( 891): isrunningfactoryapp=false i/factorytest( 891): isrunningfactoryapp=false w/activitymanager( 891): force removing activityrecord{4303e860 u0 com.te...

Paypal return url is giving blank array -

<form id="dvrr" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <table border="0" cellpadding="5" cellspacing="5" align="center" width="100%"> <tr> <td></td> <td><input type="hidden" name="business" value="ceo@world-airport-city-transfer.com"> <!-- specify buy button. --> <input type="hidden" name="cmd" value="_xclick"> <!-- specify details item buyers purchase. --> <input type="hidden" name="item_name" value="cab booking"> <input type="hidden" name="item_number" value="<?php echo $orderid; ?>"> <input type="hidden" name="amount" value="<?php echo number_format((float)$data['price'], 2, '.', '...

swift - Xcode 7 command failed due to signal: illegal instruction 4 -

i used xcode 7's migration tool migrate project swift 1.2 2. after fixing errors missed , such, except error prevents me building: command failed due signal: illegal instruction 4. i have tried in these articles ( xcode 7 , swift 2.0 : command failed due signal: abort trap: 6 , , command failed due signal: abort trap: 6 ) not identical issues mine, nevertheless not able fix issue. i have cleaned build , removed derived data folder. have date cocoapods installation, xcode tools @ 7.0, , swift compile optimization @ none. there else i'm missing? thanks! so answer found of coworker. found offending file in build error, there no line provided. through process of elimination, found line declaring new constant result of getting json dictionary ([string : anyobject], typealiased jsondictionary), inside optional dictionary. here line: let objectsdictionary = maybejson?[key] as? jsondictionary changed 2 guard statements: guard let goodjson = maybejson as? jsondi...

user interface - Java GUI - NOT Swing -

i need new way create graphical user interface of application. don't want use swing. i'm looking looks little different. can recommend me other way of creating it, please? yes, javafx way you. can create views using fxml files instead of coding in java. learning curve not hard in view (and far being guru). the tool javafx scene builder here create views or controls in fxml , integrates nicely netbeans, , suppose eclipse. you can adapt of controls using css. i suggest start here see if fit need: http://docs.oracle.com/javafx/2/overview/jfxpub-overview.htm

Django get users with userprofiles -

how can users userprofiles? i have own comments app model: apps = ( (1, 'game'), (2, 'article'), (3, 'cms'), (4, 'user profile'), ) comment_type = models.integerfield(choices=apps, default=1, verbose_name="comment type") object_id = models.integerfield(default=0) user = models.foreignkey(user, null = true, blank = false, related_name='user') view: context = { ... 'comments': comment.objects.filter(comment_type=1, object_id=game_id), ... } userprofile: class userprofile(models.model): user = models.onetoonefield(user) signature = models.textfield(blank=true) and view: {% comment in comments %} .... {{ comment.user.profile.signature }} {% endfor %} i django rookie. thank you. you can use .select_related() here, comment has foreign key user, , user has foreign key profile: comments = commen...

Android Studio: Android 5 lollipop can't install and launch App -

i have 2 real android devices , used them test android app (i new @ android programing) when clicked "run" button, dialog box showed me 2 of devices: table 4.2.2 , cellphone 5.0 after running, tablet launched app perfectly, phone (5.0) wouldn't launch, wouldn't install new app, tried many time, , run, @ later time, needed remove previous app run new app. please me resolve problem. well, have remove old version of app time? if yes, should use keystore file signing app (and same). device refused update app because didn't sign keystore file. (i have 1 device android 5.1.1 , 1 android 4.2.2, had same issue 5.1.1 1 until signed it)

php - How to count all rows from mysql but display only 2 results and count all results -

i trying display data database. more precisely images. problem when have extract more 2 images. want display first 2 images , print example added 49 images or how many images had extract mysql. script here: public function getimages($id, $username){ global $con; $stm = $con->prepare("select * image postid = :id , author = :username"); $stm->execute(array(":id" => $id, ":username" => $username)); $imagesnum = $stm->rowcount(); if($imagesnum == 1){ $image = $stm->fetch(pdo::fetch_obj); echo '<div class="frame"><div class="frameoneimage"><img src="../upload/img/'.$username.'/'.$image->path.'"></div></div>'; } else if($imagesnum == 2){ echo '<div class="frame">'; $row = $stm->fetchall(); foreach($row $image){ echo'<div class="frametwoimag...