Posts

Composer user on Ubuntu -

trying composer update throw exception on laravel : [runtimeexception] not delete /home/sherkat2017/ftp/www/vendor/symfony/yaml/dumper.php: even running chmod 775 -r vendor , chown sher:www-data -r vendor did not solve issue: drwxrwxr-x 8 sher www-data 4096 apr 13 18:25 storage i think composer run user different www-data . this worked me delete /vendor folder delete composer.lock run composer install and run these commands while re-install composer install --no-dev --no-scripts composer install --no-dev -o composer install

java - Android app hint "overlay animation" -

i trying learn more animation in android app development https://www.youtube.com/watch?v=soeuaehbzcq << 1:26 want similar if button pressed animated hint show. how can this. topics should checkout this link shows example of how define animations in xml, load them , execute on views. search objectanimator lets perform animations on basis of view properties (eg. alpha/transparency of view ). gl!

angularjs - Angular-animate not working with ng-show -

i using angular animate show div when button clicked. this button shows div : <input type='button' value='+' ng-click=addroom(x) ng-model="collapse"> this div shown when button pressed. <div class="row coll" ng-show="collapse"> <div ng-repeat="data in room[x.room_type_id]"> adult:<select ng-model="seladultvalue" ng-change="setadultprice(x)" > <option ng-repeat="a in x.plannames">{{a}}</option> </select> </div> <button class="btn pull-right" ng-class="{'btn-primary': book_status == 'available', 'btn-info disabled': book_status == 'not available'}" data-toggle="modal" data-target="#book_now" ng-click="aftertax()">book now</button> </div> this working fine div shown instantl...

laravel - Missing argument 1 for Illuminate\\Support\\Manager::createDriver() -

i had @ every post related error in laravel: missing argument 1 illuminate support manager - createdriver() 2th link 3th link none of them solved issue: using laravel lumen version 5.4 , dingo api package . i want access authenticated user in incoming request: $request->user(); //returns instance of authenticated user however throw me error saying: missing argument 1 illuminate\support\manager::createdriver(), called in /var/www/html/myapp/vendor/illuminate/support/manager.php on line 88 , defined", i know in order authenticated user, need provide auth middleware inside routing: $api->get('register/{accountid}', ['middleware' => 'auth', 'app\http\controllers\api\v1\registercontroller@registeraction']); but adding middleware auth inside route not reach controller endpoint , throw same error can see above. i have authserviceprovider registered in bootstrap/app.php: $app->register(app\providers\authser...

javascript - Vue.js 2: Get data from AJAX method -

i'm new vue, , i'm attempting grab data via ajax in method. i know method working. here's vue code: vue.component('sub-folder', { props: ['folder'], template: '<a href="#">{{folder.title}}</a>' }); var buildfolderslist = new vue({ el: '#sub-folders', data: { folderslist: this.folderslist }, methods: { buildfolders: function () { $.ajax({ url: base_url + 'api/folder/get_subfolders/' + browser_folder_id, method: 'post', data: { "folder_id": browser_folder_id }, success: function (data) { console.log("data"); console.log(data); this.folderslist = data; }, error: function (error) { alert(json.stringify(error)); ...

html - How to add data attribute without value in react create element? -

i adding div dom below, react.createelement("div", { classname: "test"}); the rendered html should below <div class="test" data-test> </div> where can add data-test in createelement ? you can't because attribute without value means attribute has value true in jsx. don't pass data-test , this.props['data-test'] undefined in component. or if need have attribute empty value add default values in component definition. defaultprops: { 'data-test': '' }

halide - Bilateral Grid Generator class using Enhanced Generator -

i trying re-implement bilateral grid example using enhanced generator class (e.g. using schedule() , generate() . i've got error when trying compile code. g++ -std=c++11 -i ../../include/ -i ../../tools/ -i ../../apps/support/ -g - fno-rtti bilateral_grid_generator.cpp ../../lib/libhalide.a ../../tools/gengen.cpp -o bin/bilateral_grid_exec -ldl -lpthread -lz bin/bilateral_grid_exec -o ./bin target=host generator bilateral_grid has base_path ./bin/bilateral_grid internal error @ /home/xxx/projects/halide/src/generator.cpp:966 triggered user code @ /usr/include/c++/4.8/functional:2057: condition failed: generator make: *** [bin/bilateral_grid.a] aborted (core dumped) it seems didn't put definition of rdom , generatorparam in correct place. since r.x , r.y used in both schedule() , generate() , think should put class member. should done fix this? here code wrote. class bilateralgrid : public halide::generator<bilateralgrid> { public: generatorparam<...