Posts

javascript - how to show data from json to ui-grid in angular ui-grid -

i getting json django , want show in angular ui-grid getting error: error: coldef.name or coldef.field property required preprocesscoldef@http://127.0.0.1:8000/static/buddy/js/ui-grid.js:3771:1 buildcolumns/<@http://127.0.0.1:8000/static/buddy/js/ui-grid.js:3630:7 buildcolumns@http://127.0.0.1:8000/static/buddy/js/ui-grid.js:3629:5 datawatchfunction@http://127.0.0.1:8000/static/buddy/js/ui-grid.js:2749:27 $watchcollectionaction@http://127.0.0.1:8000/static/buddy/js/angular.js:15693:13 $rootscopeprovider/this.$get</scope.prototype.$digest@http://127.0.0.1:8000/static/buddy/js/angular.js:15826:23 $rootscopeprovider/this.$get</scope.prototype.$apply@http://127.0.0.1:8000/static/buddy/js/angular.js:16097:13 done@http://127.0.0.1:8000/static/buddy/js/angular.js:10546:36 completerequest@http://127.0.0.1:8000/static/buddy/js/angular.js:10744:7 requestloaded@http://127.0.0.1:8000/static/buddy/js/angular.js:10685:1 i want show attributes "fields" the json is: [{...

php - Adding dots between numbers of pagination -

i have written code pagination in php , ajax table. in each page show 8 rows of table. works fine until here. what need make pagination looks series of numbers , dots between them (1 2 3 .... 27 28 29) . i have 2 files pagination: conf.php <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" id="font-awesome-style-css" href="http://phpflow.com/code/css/bootstrap3.min.css" type="text/css" media="all"> <script type="text/javascript" charset="utf8" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.2.min.js"> </script> </head> <body> <div> <p> table <br/> </p> <div id="target" >loading ...</div> <?php include('dbconnect.php'); $limit = ...

java - menu layout for the navigation menu is not showing up in the navigation drawer -

it's hard figure out problem because there no syntax errors. i'm able slide navigation menu, menu layout not working. here's code. activity_main.xml <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.isaacdixon.pro3.mainactivity"> <linearlayout android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" > <include android:layout_height="wrap_content" android:layout_width="match_parent" l...

swift - Document saved on iCloud Drive seems not to be downloaded on iOS -

i'll let user save backup of data using icloud drive. works good. if switch icloud drive enabled device, can't read file. i can see backup file within icloud drive app, it's not downloaded, (it shows "download icloud symbol). is possible force download of files available within directory if user wants restore backup? using swift 2 on ios 8/9. i've solved myself. i'll check whether backup file available , if needs downloaded. if so, i'll start download , inform user check in few seconds. not best solution, works. func checkanddownloadbackupfile() -> bool{ if(iclouddocumentsurl != nil){ let file = iclouddocumentsurl!.urlbyappendingpathcomponent("backup.file") let filemanager = nsfilemanager.defaultmanager(); if !filemanager.fileexistsatpath(file.path!){ if filemanager.isubiquitousitematurl(file) { let alertview:uialertview = uialertview() alertview.titl...

c++ - Should Taking the Address of a Templatized Function Trigger its Compilation? -

i got official answer this question decltype should not trigger function compilation. in fact decltype on function declared not defined legal. next question, should taking address of function trigger compilation of function? take this example : template <typename t> void foo(t&& x) { x.func(); } int main() { auto bar = &foo<int>; } all compilers i've tested fail error like: request member func in x , of non-class type int but if define foo , don't declare it, code compiles fine. can provide me official source on whether taking address of function should require it's compilation? 3.2/2: an expression potentially evaluated unless unevaluated operand (clause 5) or subexpression thereof. ... non-overloaded function name appears potentially-evaluated expression or member of set of candidate functions, if selected overload resolution when referred potentially-evaluated expression, odr-used, unless pure ...

Facebook Ads Api: Can you Get Timeseries of CPI in 15 minutes intervals? -

i've started playing api's first time , first attempt facebook ads api. i'm looking through documentation , can see how pull cost per action data. right i'm interested in cpi (cost per install) data specific campaign, ad set , ad in 15 minute intervals. does know if possible current api? you can reporting stats through ads insights api: https://developers.facebook.com/docs/marketing-api/insights/v2.5 as mentioned, can cost per install data requesting cost_per_action_type field in request. for instance, call v2.5/<ad_set_id>/insights?fields=['cost_per_action_type'] would have cost of mobile app installs part of response { "data": [ { "cost_per_action_type": [ { "action_type": "mobile_app_install", "value": ... } ], "date_start": ..., "date_stop": ... } } you can make api calls @ discretion long you're...

centos7 - Docker: transaction check error -

i trying install docker , following https://get.docker.com/ i on centos7 -bash-4.2$ cd -bash-4.2$ wget -qo- https://get.docker.com/ | sh + sudo -e sh -c 'sleep 3; yum -y -q install docker-engine' transaction check error: file /usr/lib/systemd/system/blk-availability.service install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts file package lvm2-7:2.02.105-14.el7.x86_64 file /usr/sbin/blkdeactivate install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts file package lvm2-7:2.02.105-14.el7.x86_64 file /usr/share/man/man8/blkdeactivate.8.gz install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts file package lvm2-7:2.02.105-14.el7.x86_64 error summary ------------- anyone know error means , how resolve it? i've updated with: sudo yum update now docker command works now