Posts

windows 8 - Stop focus being lost when a grid or border control is touched in Win RT Xaml -

i have grid , in row 1 have stack panel 2 textboxes. textboxes highlight when have focus (i use custom style same happens without one). when click on mybutton button event fires , focus stays within textbox have istabstop="false" on button. if click on grid space next buttons focus on textbox lost. how can stop happening on controls grid there no istabstop option on grid?. have same problems on other controls. idea how can stop focus being lost when grid example touched? this windows 8 store app using win rt xaml , designed use on tablet device. thanks <grid background="lightgray" x:name="gridmaingrid"> <grid.rowdefinitions> <rowdefinition height="auto" /> <rowdefinition height="*" /> <rowdefinition height="auto" /> <rowdefinition height="auto" /> </grid.rowdefinitions> <!-- header --> <border grid.ro...

unity3d - Unity-style WASD fly navigation in Maya? -

i learning autodesk maya in school. i know unity 3d. i love fact in unity can hold down right mouse button , fly around wasd keys (like when in spectator mode in shooting game). is possible in autodesk maya? far, have been able find standard rotate/zoom/pan controls in maya. thanks in advance well, unity allows first person navigation wasd keys because it's game engine, , there logic permits it. basically, using fps controller, engine applies translation main character (and, consequently, main camera, that's attached it). maya, instead, isn't game engine, modeling software, , (afaik), doesn't have built-in features that, because not essential software of kind. but, answering @ question, there exist plugins. there mayafps , example. permits move perspective camera around, , recreate kind of exploration similar fpss' one.

Brunch config file conventions -

according brunch documentation property "conventions.assets" in config file should regexp, i'm trying include following: conventions: { assets: /^app\/.*\.html/ } in order add htmls public folder. (i know can create assets folder , include things there, it's not possible moment according structure we've agreed). i think property expect directory, in case fix value in order reach goal?, function maybe? finally overriding method property "assets" accepts. assets: function(path) { /** * loops every path , returns path|true|false according need * @param path file or directory's path * @returns path if directory * true if fit regular expression * false otherwise * */ if( /\/$/.test(path) ) return path; return /^app\/.*\.html/.test(path); // regexp need }

objective c - Unrecognized selector sent to instance and crash in main.m in iOS application -

hi cannot understand i'm searching help. here is... i'm working on storyboard ios , during prepareforsegue method trying set property of viewcontroller loaded. right here crash pointing @ center line of main.m , here message: *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[uitableviewcontroller setdetails:]: unrecognized selector sent instance 0x8880b80' here method prepareforsegue ended looking mistakes following exception: - (void) prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender { if ([[segue identifier] isequaltostring: @"cellsegue"]) { apptestdetailviewcontroller *detailviewcontroller = [segue destinationviewcontroller]; nsindexpath *indexpath = [self.tableview indexpathforselectedrow]; detailviewcontroller.details = self.detailslist[indexpath.row]; } } well.. self.detailslist nothing array of details items. details property declared in apptestdetailviewcontroller.h this...

c++ - SDL2 program SIGSEGV on start -

i wrote snake in sdl , want port android, means had rewrite parts of use sdl2. replaced key control , rendering parts , compiles without errors. however, when try run it crashes immediately. ran debugger, doesn't give useful information: (no debugging symbols found) program received signal sigsegv,segmentation fault in ?? () () i set breakpoint on first line of code , doesn't reach before crashing. using sdl_image , sdl_ttf. source code: http://www.mediafire.com/?n0zdd061d343w35 maybe error on sdl loading, can not resolve symbols , error.

javascript - LDAP query from Chrome App -

i believe javascript constrained use http, curious if there out there can enable chrome application make ldap query client side (without having go through webserver connect ldap , check credentials). goal here have users login internal web application using network credentials, without having wait on server establish https connection. also, there security concerns setup such this? a chrome app indeed capable of doing want. you'd use chrome.socket api establish connection directly ldap server. however, question sets off several alarms. if client code separately checking ldap credentials, , querying web application content, what's stopping malicious or buggy client skipping ldap step , grabbing content, without authorization, directly web app? if web app assumes trusted clients, why bother checking ldap @ all? in real life, design handing note bank teller saying "i don't need show id because promise showed security guard stationed outside bank. please g...

javascript - Gmaps.js Route with Distance -

i'm using gmaps.js api in little project i'm building. basically replicate google maps functionality i'm looking route & distance 1 address (can input/form fields). notice this demo , requires clicking on map, , doesn't show total distance or drive time? any opinions on best way of parsing 2 addresses form, calculating route , drive time using gmaps.js api? breaking parts need to: search form entered addresses , geocode them using geocoding api. use results geocoding calculate route. pull required data route , plot/display for geocoding see example: http://hpneo.github.io/gmaps/examples/geocoding.html gmaps.geocode({ address: $('#start').val(), callback: function(results, status) { if (status == 'ok') { var latlng1 = results[0].geometry.location; } } }); //repeat destination / end point now have lat/long points. you can take few approaches route, drawing can done example: http://hpneo.github.io/gmap...