Posts

Laravel 5.1 command bus no default mappings -

i'd informations laravel 5.1 command bus. far see in 5.0 there busserviceprovider in app/providers namespace provided default behaviour resolving command handler class worked smoothly. created project straight 5.1 version , file not present in version leaving commands created with php artisan make:command --handler useless if don't map command handler manually or not create self-handling command. normal behaviour or there missing ? the command bus deprecated in move 5.0 5.1; see these tweets more. they've been replaced job s, can run both synchronous or async.

python - Mayavi set location of mlab.orientation_axes() in mayavi scene - axis indicator -

i trying visualize point trajectories mayavi , change frame frame interactively. therefore adapted this example. i axis indicator in window appear @ (0, 0, 0), with self.scene.mlab.orientation_axes() i can not define position , axes permanently displayed in scene. if press "toggle axis indicator" additional 1 appears. tried work self.scene.mlab.axes() and according options not give desired optic. have axes appear @ 0 point when pressing button in interactive window.can of here?

LDAP Authentication with PHP -

how ldap authentication php i connect ldap server in xampp. the ldap bind successful but working on code error shows <?php $ldapbasedomain = 'ou=employee,dc=domainname'; $ldapserver = 'domainname'; $ldapusername = 'xxx'; $ldappassword = 'yyy'; if (!empty($_post['username']) && !empty($_post['password'])) { if (!preg_match('/^[a-za-z0-9\-]+$/', $_post['username'])) { die('please enter valid username'); } if (!$ldapconnection = @ldap_connect($ldapserver)) { die('could not connect ldap server'); } if (!@ldap_bind($ldapconnection, $ldapusername, $ldappassword)) { die('could not bind ldap server'); } if (!$ldapsearch = @ldap_search($ldapconnection, $ldapbasedomain, $_post['username'])) { die('could not complete ldap search'); } $ldapcount = @ldap_count_entries($ldapconnecti...

android - How to do RelativeLayout with images like gridview? -

Image
i neew display images gridview in scrollview. as read not right use gridview in scrollview. need big image text, list ao images , thet in 1 fragment need scrollview, first one, images without text there way display images programmatically 1 after in relativelayout(like in gridview)? here got, not working, images overlay each other. (string pic : mflat.getadv_pics()){ i++; imageview imageview = new imageview(mactivity); imageview.setid(i); relativelayout.layoutparams params = new relativelayout.layoutparams(relativelayout.layoutparams.wrap_content, relativelayout.layoutparams.wrap_content); params.addrule(relativelayout.align_parent_left, relativelayout.true); params.addrule(relativelayout.right_of, i-1); imageview.setlayoutparams(params); log.d("!!!!", "" + + "|" + imageview.getid()); log.d("!!!!", "http://****" + p...

c# - Getting keyValuePair based on filtering of keys -

i use mydictionary.keys.where sequence returns keys (my predicate imposes conditions on keys). need associated values , not sure how easily, sure miss basic functionality.. var dict = new dictionary<string, long>(); something like: ienumerable<long> myvalues = dict.where(x => x.key == "a" || x.key == "b") .select(x => x.value); that return value s wanted or ienumerable<keyvaluepair<string, long>> myvalues = dict.where(x => x.key == "a" || x.key == "b"); the last return full keyvaluepair<string, long> , 2 properties ( key , value ) another (slower) solution: ienumerable<long> myvalues = dict.keys.where(x => x == "a" || x == "b") .select(x => dict[x]); it slower because after filtering lookup dictionary key s found.

ios - How can we get SBJSON connectionDidFinishLoading method inside array or Dictionary data in another class -

i want 1 class array data in class(i.e connectiondidfinishloading array data want in mainview class) backgroundclass.h #import <uikit/uikit.h> #import "json.h" @interface backgroundclass : uiviewcontroller<nsurlconnectiondatadelegate> @end backgroundclass.m @interface backgroundclass () { nsmutabledata * webdata; nsurlconnection * connection; nsmutablearray * array; } @end @implementation backgroundclass - (void)viewdidload { array = [[nsmutablearray alloc]init]; nsurl * url = [nsurl urlwithstring:@"http://api.kivaws.org/v1/loans/search.json?status=fundraising"]; nsurlrequest * request = [nsurlrequest requestwithurl:url]; connection = [nsurlconnection connectionwithrequest:request delegate:self]; if(connection) { webdata = [[nsmutabledata alloc]init]; } [super viewdidload];...

javascript - figure caption on hover center text -

in fiddle http://jsfiddle.net/sldhsbou/ have "x" appears when hovering absolutely centered no matter size of image is. in addition why there no transition when mouse moves outside figure there when mouse moves in? <table border=1 style="width: 100%;"> <tr><td colspan=6 style="border-bottom: medium solid gray;">&nbsp;</td></tr> <tr> <td class="left" style="width: 25%; background-color: cyan;"> <table border=2 style="width: 100%;"> <tr> <td style="border: thin solid #ff9900;"> <div class="img-wrap"> <figure class="cap-bottom"> <img src="http://placehold.it/300x200" /> <figcaption> ...