Posts

artificial intelligence - Game Maker: Studio - Make objects avoid other instances of same object with A* pathfinding -

artificial intelligence - Game Maker: Studio - Make objects avoid other instances of same object with A* pathfinding - i have game there multiple enemies must chase single player. have pathfinding set using gml a* pathfinding mp_grid , path. however, these enemies can walk on top of each other when seeking player. prepare this, told path ignore enemies mp_grid_add_instances, stop moving altogether because see obstacles, trapping within bounding box. there way can add together "all other enemies self" mp_grid_add_instances? here's grid creation code (in controls class initializing variables): global.zombie_ai_grid = mp_grid_create(0, 0, room_width / 50, (room_height - sp_dashboard.sprite_height) / 50, 50, 50); mp_grid_add_instances(global.zombie_ai_grid, obj_obstacle, false); this path initialization code (in zombie class): path = path_add(); alarm[0] = 5; this path creation code in alarm 0 (path updates every 2 seconds): mp_grid_path(global.zom...

php - Mails from website with 2-step verification in Gmail -

php - Mails from website with 2-step verification in Gmail - in website utilize gmail send mails. utilize pear mail service in frontend , curl in backend. i have 2 mail service accounts managed gmail: 1 gmail business relationship , other has own domain managed google apps. i can send emails website 2-step verification using gmail business relationship , app specific passwords. cannot same other account. why? with both accounts can send email without 2-step verification, , my-own-domain business relationship can send emails 2-step verification using k-9 mail service android app , gmail app specific password. look here, have tried enable imap , pop in gmail of google apps ?: https://support.google.com/a/answer/105694?hl=en php email curl gmail email-verification

css - Bootstrap 3 Space between navbar-brand and navbar ending -

css - Bootstrap 3 Space between navbar-brand and navbar ending - i have issue bootstrap 3. don't know why, in mobile screen there space between navbar-brand , navigation bar ending. guess, because of navigation bar glyphicon doesn't fit navigation bar. how can solve issue? need remove empty space... desktop-size version: mobile-size version: html: <header class="top" role="header"> <div class="container"> <a href="../aplikacija/app.html" class="navbar-brand pull-left"> brand </a> <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="glyphicon glyphicon-align-justify"></span> </button> <nav class="navbar-collapse collapse" role="navigation"> ...

java - Resolve a URL request containing .jsp in Spring -

java - Resolve a URL request containing .jsp in Spring - i have created spring web mvc project. want handle request with .jsp in url such request .jsp in url handled same controller. following url pattern using in web.xml <servlet-mapping> <servlet-name>project</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> the annotation in controller looks this @requestmapping("/welcome") with able resolve url of form http://localhost:8080/project/welcome but not 1 : http://localhost:8080/project/welcome.jsp that's uncommon requirement spring mvc controller, spring is versatile tool. you can seek (untested ...) : @requestmapping("/{name}.jsp") public modelandview jsphandler(@pathvariable("name") string name) { ... the controller *.jsp requests , find in name variable real name has been called java spring jsp spring-mvc

html - CSS for selecting first span in all td's -

html - CSS for selecting first span in all td's - i having problem visualizing css , trying reach td 's first span css, selecting first td . doing wrong? css .teamstats > tbody > tr > th:first-child { font-size: 20px; } html <table class="teamstats"> <tr> <th> <span id="stats0name"></span> <br /> <span id="stats0double"></span> <br /> <span id="stats0triple"></span> <br /> <span id="stats0quadra"></span> <br /> <span id="stats0penta"></span> </th> <th> <span id="stats1name"></span> <br /> <span id="stats1double"></span> <br /> ...

php - Can I use Facebook Session from another platform -

php - Can I use Facebook Session from another platform - my app has permission user in ios app. i have web service in php want utilize permission. how can fetch previous session, can utilize code: $request = new facebookrequest( $session, 'get', '/me/friends' ); php facebook facebook-graph-api

nlp - Extracting (subject,predicate,object) from dependency tree -

nlp - Extracting (subject,predicate,object) from dependency tree - i'm interesting in extracting triples (subject,predicate,object) questions. for example, transform next question : who wife of president of usa? in : (x,iswifeof,y) &wedge; (y,ispresidentof,usa) x , y unknows have find in order reply question (/\ denotes conjunction). i have read lot of papers topic , perform task using existing parsers such stanford parser. know parsers output 2 types of info : parse construction tree (constituency relations) dependency tree (dependency relations) some papers seek build triples parse construction tree (e.g., triple extraction sentences), approach seems weak deal complicated questions. on other hand, dependency trees contain lot of relevant info perform triple extraction. lot of papers claim that, didn't find of them gives explicitely detailed procedure or algorithm. of time, authors analyze dependencies produce triples according rules...