Posts

What are iOS iPad launchpad image resolutions? -

this so post gives image resolutions , device types xcode launchpad image.xcassettes iphones. corresponding information ipads? google friend. apple has list device sizes here https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen/ full table: uilaunchimages = { { --iphone 4 portait ["uilaunchimageminimumosversion"] = "7.0", ["uilaunchimagename"] = "default", ["uilaunchimageorientation"] = "portrait", ["uilaunchimagesize"] = "{320, 480}" }, { --iphone 4 landscapeleft ["uilaunchimageminimumosversion"] = "7.0", ["uilaunchimagename"] = "default", ["uilaunchimageorientation"] = "landscapeleft", ["uilaunchimagesize"] = "...

android - How to refresh RecyclerView from button on DialogFragment -

i have application recyclerview , dialogfragment , in dialog add data database , display in recyclerview . tried refresh recyclerview when clicked in add. this fragment public class addaction extends dialogfragment implements view.onclicklistener { edittext addtitle, adddesc; button add, clear,close; context context; private databasehelpher db; string title,des; public addaction() { } @override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) { view rootview = inflater.inflate(r.layout.addaction, container, false); addtitle = (edittext) rootview.findviewbyid(r.id.todotitle); adddesc = (edittext) rootview.findviewbyid(r.id.tododescription); add = (button) rootview.findviewbyid(r.id.addbutton); add.setonclicklistener(this); close = (button) rootview.findviewbyid(r.id.close); close.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { dis...

swift - Custom variable setter with a default value -

i cannot create custom setter default value simple class. want implement custom tz setter timezone inspecting. what's wrong? public class city: nsobject { public var lat = 0.0, lon = 0.0, name = "" private static let def_tz = "gmt+00:00" private static let timezones = nstimezone.knowntimezonenames() public var tz: string = def_tz { set { //// <<<<< there error var = city.timezones.indexof(newvalue ?? city.def_tz) ?? 0 self.tz = timezones[i].name } { return self.tz } } // mark:- init required public init(name: string, lat: double, lon: double, tz: string) { super.init() setup(name, lat: lat, lon: lon, tz: tz) } private func setup(name: string, lat: double, lon: double, tz: string) { self.lat = lat self.lon = lon self.tz = tz == "" ? city.def_tz : tz self.name = name } } t...

c++ - QT signal slot is not working -

i facing strange problem while trying execute following program main.cpp #include "sample.h" #include <qlist> #include <unistd.h> int main(int argc, char **argv) { a; a.calla(); while(1) sleep(1); return 0; } sample.cpp #include "sample.h" #include <qlist> #include <qmetamethod> #include <unistd.h> thread::thread(a *a) { } void thread::run() { int = 5; while (i){ qdebug()<< i; sleep(2); i--; } emit processingdone(">>> thread"); qdebug()<<"emited signal thread"; } void a::calla() { qdebug()<<"from calla"; //movetothread(thread); thread->start(); //thread->run(); //emit signala(">>> calla"); } void a::slota(qstring arg) { qdebug()<<"from sloata "<< arg; } sample.h class a; class thread : public qthread { q_object public: thread(a *a); ~threa...

blockchain - Can we set a list of discovery nodes? -

when starting new node have indicate address of root node can connect , discover network. there way set list of nodes new node not depend on single peer? environment variable: - core_peer_discovery_rootnode=vp0:7051 q:is there way set list of nodes new node not depend on single peer? answer: new nodes doesn't depend on single peer , rootnode can peer. from fabric protocol spec , upon start up, peer runs discovery protocol if core_peer_discovery_rootnode specified. core_peer_discovery_rootnode ip address of peer on network (any peer) serves starting point discovering peers on network.

javascript - Datatable is not getting refreshed in angularjs -

i have bunch of data server call decided use datatable using angularjs. while implementing getting 10 records @ every pagination call. problem while clicking on next paging brings data , refelects datatable while clicking on previous paging brings data not refelected datatable. here chunk of angularjs code:- appice.controller('appuserscontroller', function ($scope,appiceservice, dtoptionsbuilder, dtcolumnbuilder, $q) { function init(){ $scope.getappusers(); } //$scope.dtinstance = {}; $scope.type = ''; $scope.getappusers = function(type){ $scope.type = type; $scope.dtoptions = dtoptionsbuilder.newoptions() .withfnserverdata(serverdata) .withoption('processing', true) .withoption('serverside', true) .withoption('searchdelay', 350) .withpaginationtype('full_numbers') .withdisplaylength(10); $scope.dtcolumn...

angularjs - Sending a Post request in Angular 1.x via factory -

the post request url should updated in following format. https://www.example.com/api/one-push?type=json&query=push&title=____&url=____&tag=___ <form ng-submit="submiturl()"> <input type="text" class="form-control block" ng-model="url.title" placeholder="title"> <input type="text" class="form-control block" ng-model="url.urlstring" placeholder="url"> <input type="text" class="form-control block" ng-model="url.tag" placeholder="tag"> <button>add</button> </form> var app = angular.module('app', []) .controller('searchcontroller', ['$scope', '$http','searchservice', function($scope, $http,searchservice) { $scope.submiturl = function() { $scope.url = {}; searchservice.updateurl($scope.url).success(function(data) { $scope.url = data; ...