Posts

Showing posts from June, 2010

c++ - caffe cudnn version 4 & 5 -

i use cudnn acceleration in caffe program. use cudnn 4 @ begin , it's working fine when updated cudnn version 5.0, pow function doesn't work. calling function in batch_norm layer caffe_gpu_powx(variance_.count(), variance_.gpu_data(), dtype(0.5), variance_.mutable_gpu_data()); and data after calling doesn't change. pow function defined below, same in caffe github banch template <typename dtype> \__global__ void powx_kernel(const int n, const dtype* a, const dtype alpha, dtype* y) { cuda_kernel_loop(index, n) { y[index] = pow(a[index], alpha); } } template <> void caffe_gpu_powx<float>(const int n, const float* a, const float alpha, float* y) { // nolint_next_line(whitespace/operators) powx_kernel<float><<<caffe_get_blocks(n), caffe_cuda_num_threads>>>( n, a, alpha, y); } i made mistake have set code generation "compute_52,sm_52" @ begin tit

java - Listview isn't updating in Fragment -

i know sure updatefromdatabase() function works, i've used print statements see entries put mcoordinatesarray there , not empty strings. when restart app, fragment never populates list view items in database. think has fragment lifecycle, have no idea. additionally, when don't restart app , run first time list view runs fine. when rotate or restart app, list view no longer populates. public class localfragment extends fragment{ private listview mlocallist; private arrayadapter<string> adapter; private arraylist<string> mcoordinatesarray; private broadcastreceiver mbroadcastreceiver; private locationbasehelper mdatabase; private dateformat dateformat; private string datestring; @override public void oncreate(bundle savedinstancestate){ super.oncreate(savedinstancestate); } @override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate){ view v = inflater.inflate(r.layout.fragment_local,container,false);

exchangewebservices - EWS error code for Non provisioned account -

what error code returned if non provision account user trying make ews operation calls. there error in response. if yes, type of error-http error or there error code in response body? there no specific error codes although may need define mean non provision account mean different things. 1 example if try access mailbox before been provisioned in information store , try access inbox folder generalised responsecodetype.erroritemnotfound (or serviceerror.erroritemnotfound). ews doesn't force default folder creation.

How to make my kendo dropdown list readonly? -

i have dropdownlist , need make read when user opens page.but needs enabled after click on edit icon. you can following: var datasource = $("#dropdownelement").data("kendodropdownlist"); to make kendo dropdown read : datasource.readonly(); to remove read kendo dropdown : datasource.enable(true);

jquery - Appending link element within list element dynamically -

with using jquery need create element added inside <li> has own content. final result should below <li> hello <a> user! </a> welcome! </li> so far have tried out below. var list = $('<li></li>'); var link = $('<a></a>'); link.innerhtml = "user!"; list.append(link); but give output below. <li> <a> user! </a> </li> how can include 'hello' , 'welcome' on either side of <a> ? you can this. console.log( $('<li/>', { html: [ document.createtextnode(' hello'), $('<a> user! </a>'), document.createtextnode('welcome! ') ] })[0].outerhtml ) <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

c++ - What is array decaying? -

what decaying of array? there relation array pointers? it's said arrays "decay" pointers. c++ array declared int numbers [5] cannot re-pointed, i.e. can't numbers = 0x5a5aff23 . more importantly term decay signifies loss of type , dimension; numbers decay int* losing dimension information (count 5) , type not int [5] more. here cases decay doesn't happen . if you're passing array value, you're doing copying pointer - pointer array's first element copied parameter (whose type should pointer array element's type). works due array's decaying nature; once decayed, sizeof no longer gives complete array's size, because becomes pointer. why it's preferred (among other reasons) pass reference or pointer. three ways pass in array 1 : void by_value(const t* array) // const t array[] means same void by_pointer(const t (*array)[u]) void by_reference(const t (&array)[u]) the last 2 give proper sizeof info, while fi

angular - How to use ng build to generate ts, map and js files into the same folder? -

i used "ng new sample" generate new angular2 folder. version of angular 2.1.0. folder structure is: angular-cli.json karma.conf.js package.json protractor.conf.js readme.md tslint.json node_modules e2e src ----app ------app.component.css ------app.component.html ------app.component.spec.ts ------app.component.ts ------app.module.ts ------index.ts tsconfig.json file: { "compileroptions": { "outdir": "${workspaceroot}/debug", "sourcemap": true, //"inlinesources": true, "rootdir": "${workspaceroot}", "target": "es5", "typeroots": [ "../node_modules/@types" ] } } then ran "ng build", files below output "dist" folder. in

Android - Show fragment on resume -

i have navigation drawer, has few fragments (home, help, about) in activity. on startup opens home. issue i'm having when go fragment such , proceed put phone sleep , subsequently turn on phone on it'll return home instead of help. i'm quite new lifecycles hoping feedback on how resume different fragment. edit: provided relevant code update: realised happens because reinit views on resume. @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); initializeui(); } private void initializeui() { fragabout = new about(); fraghelp = new help(); fraghome = new myviewpager(); // adding fragments activity fragmentmanager fragmentmanager = getsupportfragmentmanager(); fragmenttransaction transaction = fragmentmanager.begintransaction(); transaction.add(r.id.main_activity_fraglayout, fraghome); transaction.commit(); ... } private voi

javascript - how to select markers in the polygon from mysql -

Image
i'm saving markers coordinates in mysql below image what need when user draw on maps below image i shape , select markers in shape mysql , create query. example: $query= mysql_query("select location table coordinates in polygon"); belive need use ajax. , i'm using google maps v3 possible ? please help, idea somthing other way ?? google maps not provide gis functions select coordinates inside polygon. using spatial extension ( data type geometry) mysql .. , can go .. http://dev.mysql.com/doc/refman/5.7/en/spatial-extensions.html mysql doc. a simple way select locations (points) in google maps use extreme values of coordinates of polygon points equivalent coordinates of rectangle contains polygon vertices , perform select select location my_table location_lat >= minlat_polygon , location_lat <= maxlat_poligon , location_lng <= maxlng_polygon , location_lng >= minlng_polygon

javascript - jquery disable checkbox by default -

my current script toggling between disabled , enabled. <script> $("#filter").attr('checked', !$("#mylist")[0].disabled); $("#filter").click(function() { $("#mylist").attr('disabled', !this.checked) }); </script> and html code is: <div> <div class="checkbox"> <input type="checkbox" checked="checked" id="filter" /> <label for="filter">types</label> <br> </div> <select class="selectpicker" id="mylist" multiple> <option>a</option> <option>b</option> <option>c</option> </select> </div> by default checkbox checked, , when remove `checked="checked" , doesn't work @ all. how can disable default , enable/disable afterwards? are need .if uncheck =

handle permission revoke event in android -

i tried update application android 6.0 using permission dispatcher library working fine except 1 case.as fitness related app when ever user started workout , after if in between if user revokes location or other permission normal behavior of app gets changed seems tries app process.anybody know how handle such scenario.any appreciated.

how to write a class for login user in php -

i write function in class login: function loginuser($mobile,$pas){ $pasw = hash_value($pas); $sql1 = $this->connection->prepare("select count(*) `user` (`mobile`=:mobile , `pas`=:pas)"); $sql1->execute(array( ":mobile"=>$mobile, ":pas"=>$pasw )); $num = $sql1->fetchcolumn(); if($num==1){ echo 'login successfully'; }else{ echo 'error'; } } and write code in check.php : if(isset($_post['mobile'])&&isset($_post['pas'])){ $mobile = check_post($_post['mobile']); $pas = check_post($_post['pas']); $login = new login(); $res= $login->loginuser($mobile,$pas); } but when enter correct mobile , password in login form, code returns error in screen.

Dynamic pivot in oracle sql -

... pivot (sum(a) b in (x)) now b of datatype varchar2 , x string of varchar2 values separated commas. values x select distinct values column(say cl) of same table. way pivot query working. but problem whenever there new value in column cl have manually add string x. i tried replacing x select distinct values cl. query not running. reason felt due fact replacing x need values separated commas. created function return exact output match string x. query still doesn't run. error messages shown "missing righr parantheses", "end of file communication channel" etc etc. tried pivot xml instead of pivot, query runs gives vlaues oraxxx etc no values @ all. maybe not using properly. can tell me method create pivot dynamic values? you can't put non constant string in in clause of pivot clause. can use pivot xml that. from documentation : subquery subquery used in conjunction xml keyword. when specify subquery, values found subqu

python - Difficulty submitting forms with mechanize -

i using mechanize form submission every tutorial have seen uses name of control , name of form. form , controls dealing seem unnamed. i've managed print each control individually using index doesn't seem work inputting form data , proceeding submit it

maven - Modifying existing modules with archetype update -

Image
i have project designed using custom archetype build modules under parent project follows - details - archetype implements <configuration> in <build> phase <mainclass> let's generator builds classes under pojos , service packages single target folder , hence enabling create final jar user module user-1.0.0.jar there's requirement in terms of separately exposing pojos without intervention of service code has left me brainstorming - is there way modify existing archetype or module structure 2 separate jars packages pojos , service user-pojos-1.0.0.jar , user-service-1.0.0.jar ? one way possibly know move code in 2 different module , building jars multiple existing modules under parent , thought on same name modules under parent, wouldn't preferable. is there way modify obtained user-1.0.0.jar created , separate out 2 jars required same above?

javascript - How to add padding in a bar chart between the outer bars and the left/right sides in Chart.js? -

Image
when creating bar chart in chart.js bars take whole horizontal space. how can add padding left , right bar achieve see in image below: alternativly may achieved if bars aligned in center , using max-width in percentage on bars itself, never fill whole space. can't find options either. currently i'm adding 2 0 values blank labels on each side, works, it's workaround: var data = { labels: ['', '', 1, 2, 3, '', ''], datasets: [{ data: [0, 0, 36500, 59000, 65000, 0, 0], backgroundcolor: [ null,null, 'blue','blue','blue', null,null ], }] }; i'm using chart.js 2.3.

javascript - How to append object into existing object Angularjs -

i have 2 object 1 hold answer of 1 question , final object. answer = {"value":"asda","indicator":"good"}; final = {} ; i want append answer object final object final = {{"value":"asda","indicator":"good"},{"value":"sdad","indicator":"worse"}} how can ? you can not directly append object. instead of need hold object in array following. answer = {"value":"asda","indicator":"good"}; final = []; newobject = {"value":"sdad","indicator":"worse"}; now can push both object array - final.push(answer); final.push(newobject); result of - final = [{"value":"asda","indicator":"good"},{"value":"sdad","indicator":"worse"}]; hope you.

Oracle SQL - can I return the "before" state of a column value -

assume following row in mytable: id = 1 letter = 'a' in oracle, 1 can following: update mytable set letter = 'b' id = 1 returning letter myvariable; and myvariable hold value 'b'. what looking way of returning "before" value of letter ie. replace previous update with: update mytable set letter = 'b' id = 1 returning letter "before update" myvariable; and myvariable should hold value 'a'; i understand t-sql can achieve via output clause. is there oracle equivalent way of achieving don't have first "select" before value? update ( select t.*, (select letter dual) old_letter mytable t id=1 ) set letter = 'b' returning old_letter myvariable; tested on oracle 11.2

javascript - d3 force layout initial structure -

Image
is possible give d3 force layout kind of structure? wanting show relationship between staff , users, staff can have many users. however initial layout while correct incomprehensible. the nodes red outlines staff, , blue outlines users, ideally nice have users below staff, in force hierarchy layout if exist? var width = document.queryselector('.visualisation').clientwidth, height = 500; var svg = d3.select(".visualisation").append("svg") .attr("width", width) .attr("height", height); var force = d3.layout.force() .gravity(.05) .linkdistance(100) .charge(-300) .size([width, height]); var sw = [], su = [], workbase = [], links = [], edges = [], simplified = []; d3.json("test_example.json", function(error, json) { if (error) throw error; console.log(json); var users = []; j

c# - Filter, merge, sort and page data from multiple sources -

at moment i'm retrieving data db through method retrieves iqueryable<t1> , filtering, sorting , paging (all these on db basically), before returning result ui display in paged table. i need integrate results db, , paging seems main issue. models similar not identical (same fields, different names, need map generic domain model before returning); joining @ db level not possible; there ~1000 records @ moment between both dbs (added during past 18 months), , grow @ same (slow) pace; results need sorted 1-2 fields (date-wise). i'm torn between these 2 solutions: retrieve data both sources, merge, sort , cache them; filter , page on said cache when receiving requests - need invalidate cache when collection modified (which can); filter data on each source (again, @ db level), retrieve, merge, sort & page them, before returning. i'm looking find decent algorithm performance-wise. ideal solution combination between them (caching + filtering @ db leve

Passing different lambdas to function template in c++ -

i have class foo accepts different predicate variants through constructor. template<typename t> struct value { t value; }; class foo { public: template<typename t> foo(value<t> &value, function<bool()> predicate) { } template<typename t> foo(value<t> &value, function<bool(const value<t> &)> predicate) : foo(value, function<bool()>([&value, predicate](){ return predicate(value); })) { } }; this allows me construct class explicit function object: value<int> i; foo foo0(i, function<bool()>([]() { return true; })); foo foo1(i, function<bool(const value<int> &)>([](const auto &) { return true; })); however fails when trying use lambda directly: foo fool1(i, [](const value<int> &) { return true; }); for reason don't understand yet compiler not consider availability of implicit conversion lambda function in constru

C# multiprocess-multithread service and windows scheduler -

Image
i have developed windows service that, shortly, manages thousand of remote devices. consists of 2 precesses, each hundreds of threads (we can discuss of opportunity reduce number of threads, not point), , works quite fine. trying join threads in single process semplify data exchange between threads, happens threads runs slower (it seems in conditions threads run less frequently). question is: expected windows scheduler works in different way on single-process/multi-thread application compared multi-process/multi-thread application? little simple example: - single core cpu - 2 threads (a , b) - thread doing long task, while thread b sleeping - time wake thread b, thread still running my conjecture: - on single-process/multi-thread, scheduler force thread b sleep , delay wake - on multi-process/multi-thread, if belongs process 1 , b belongs process 2, scheduler wake thread b when expected could be? suggestion join threads in single process without throubles? sorry poor englis

c# - POST request in UWP not sending -

i writing app uwp i receive json end this: string url = "http://api.simplegames.com.ua/index.php/?wc_orders=all_orders"; { string jsonstring; using (var httpclient = new system.net.http.httpclient()) { var stream = await httpclient.getstreamasync(url); streamreader reader = new streamreader(stream); jsonstring = reader.readtoend(); } return jsonstring; } i try send post request this orderslist = new list<rootobject>(rootobjectdata); using (httpclient httpclient = new httpclient()) { httpclient.baseaddress = new uri(@"http://api.simplegames.com.ua"); httpclient.defaultrequestheaders.accept.add(new mediatypewithqualityheadervalue("application/json")); httpclient.defaultrequestheaders.acceptencoding.add(new stringwithqualityheadervalue("utf-8")); string endpoint = @"/post_from_local.php"; try { httpcontent content = new stringcontent(jsonconve

javascript - Facebook phonegap permissions pop not only on app start -

i managed facebook plugin running on cordova phonegap project work when it's on index.js file such as: bindevents: function() { document.addeventlistener('deviceready', this.ondeviceready, false); document.addeventlistener('deviceready', initapp, false); var fbloginsuccess = function (userdata) { getuserinfo(); } function initapp() { facebookconnectplugin.login(["public_profile"], fbloginsuccess, function (error) { alert("" + error) } ); } function getuserinfo(){ facebookconnectplugin.api('/me', null, function(response) { alert('good see you, ' + response.name + '.'); }); } }, i want run when user clicks facebook login button , not on start of app, if place function call inside .html file o

Angularjs ng-value sum fields -

hi have inputs this <input type="text" ng-model="tbl.public"> <input type="text" ng-model="tbl.private"> <input type="text" ng-value="tbl.public--tbl.private" ng-model="tbl.total"> the above form working fine sum public , private value , put in tbl.total field. problem in edit form value of tbl.total, tbl.public, tbl.private assign database. js $scope.tbl.public=10; $scope.tbl.private=25; $scope.tbl.total=35; now after assigning value js when change value of tbl.public or tbl.private in form not affecting tbl.total should sum 2 value , put in tbl.total field. thank , suggestion. ng-value used on radiobuttons , option elements, it's not fit use case. a better thing implementing updatetotal() function combined ng-change . recommend changing input types number you're not allowing users sum text. <input type="number" ng-model="tbl.public"

Java program to build and run a maven project -

i trying create java application automatically build project.is possible create java program run maven project? you can follow below approach start: create batch/shell file build project using mvn/ant/gradle command. need maven/ant/gradle installed in system , environment variable needs setup properly. run batch/shell file using java taking advantage of runtime class. runtime.getruntime().exec("cmd /c start build.bat"); to schedule java program, use executorservice or quartz. or can take advantage of operating system schedulers well. hope helps.

App shows "push" as title in android overview screen when opened from push notification? -

the app title shows "push" in apps overview screen in android when app opened push notification. but when opened launcher screen shows proper title. how set title app in overview screen when opening app push notification? you can change via activitymanager.taskdescription: https://developer.android.com/reference/android/app/activitymanager.taskdescription.html from activity context, call: taskdescription taskdescription = new taskdescription(label, icon, colorprimary); ((activity)this).settaskdescription(taskdescription); to clarify more: * label - text on card header * icon - left bitmap icon (usually icon looks on 'colorprimary' color * colorprimary - card header color (usually same toolbar color, not necessarily) solution worked me

rest - How to send form data in slim framework v3 in PUT routing -

Image
i new in slim framework , using slim v3 have done post route , works fine when try update record put method works content-type = application/x-www-form-urlencoded , update record success when try send file slim api postman chrome extension not sending file form data request. here code $app->put('/message/{message_id}', function ($request, $response, $args) { $imagepath = ''; $data = $request->getparsedbody(); $files = $request->getuploadedfiles(); $file = $files['file']; if ($file->geterror() == upload_err_ok ) { $filename = $file->getclientfilename(); $file->moveto('assets/images/'.$filename); $imagepath = 'assets/images/'.$filename; } $message = message::find($args['message_id']); $message->body = $data['message']; $message->user_id = $data['user_id']; $message->image_url = $imagepath; $message->save();

java - Parse incoming JSON and remove wrapping boilerplate -

Image
within program i'm calling api returns list of users. result wrapped in boilerplate this. { "d": { "result" : [ ... here actual lsit ... ] } } i want parse result, cannot find easy way remove "d" , "result" incoming json string i started creating own class staging user entity, because resultset not match users entity class staginguser { // same props api response per user } my thought parse useres this private list<staginguser> parseresult(@requestbody list<staginguser> stagingusers) { return stagingusers; } however require me rid of boilerplate result you can use gson library. gson-2.8.0.jar ignoring "d": maven: <dependency> <groupid>com.google.code.gson</groupid> <artifactid>gson</artifactid> <version>2.8.0</version> </dependency> staginguser: public class staginguser { private string hi; private s

ios - How to load configuration for CAEmitterLayer and CAEmitterCell from a file? -

a given particle system configuration in .pex file, can created in sparrow particle system: sxparticlesystem *exampleparticles = [sxparticlesystem particlesystemwithcontentsoffile:@"particleconfiguration.pex"]; is there similar way load configuration (pex/plist/json) when using core animation particles system? any other ways shorten configuration without having manually copy properties pex file?

html - Pure javascript from console: extract links from page, emulate click to another page and do the same -

i'm curious if possible pure (vanilla) javascript code, entered browser console, extract links (first) page, emulate click go page, extract links there , go third page. extract links means write them console. the same question 1 link go page makes ajax call update part of page , not go page. p.s. links belong 1 domain. any ideas how can done based on pure javascript? as example, if go google , enter word ("example"), may open console , enter var array = []; var links = document.getelementsbytagname("cite"); for(var i=0; i<links.length; i++) { array.push(links[i].innerhtml); }; console.log(array); to display array of urls (with text, that's ok). it possible repeat 3 times page 1 page 3 automatically pure javascript? p.s. should extract tags in code above, tags named "links". sorry confusion (that doesn't change question). thank again. if want write links console, can use more specific command for google

java - Is it possible to send a secured mail with out the credentials of the sender? -

i trying send digital signed/secrured mail using javamail api. for created keystore certificate , used (loaded through bouncycastle) while generating mail , sending user. have provide user name , password of sender mail id authenticate. is there way send secured mail out credentials of sender? i tried making authentication false. no luck. props.put("mail.smtp.auth", "true"); //enable authentication my code ::: public static void main(string[] args) { final string fromemail = "satishkumar.reddy@xyz.com"; //requires valid gmail id final string toemail = "satishxxxxxreddy@gmail.com"; system.out.println("tlsemail start"); properties props = new properties(); props.put("mail.transport.protocol", "smtp"); props.put("mail.smtp.host", "132.000.000.001"); //smtp host props.put("mail.smtp.port", "587"); //tls port props.put("mail.

Properly overloading >> Operator in C++ -

i couldn't find proper example of how properly. the following code written in faq. std::istream& operator>>(std::istream& is, t& obj) { // read obj stream if( /* no valid object of t found in stream */ ) is.setstate(std::ios::failbit); return is; } how check if "no valid object of t found in stream" ? you can follows: save current possition in input stream by: streampos pos = is.tellg() read data stream char buffer: char tmp_buf[expected_size]; read(tmp_buf, expected_size); // try create temporary object read data t tmp_obj = t::fromcharbuffer(tmp_buf) // need implement // if valid object copy destination obj = tmp_obj // in case of error revert previous stream position if (error) is.seekg(pos) return ok, ignore above, wrong: this topic can better: what's right way overload stream operators << >> class? more elegant solution: your have interprate/validate data particular class need

mysql - Store streaming data without database (even nosql) -

i have stream of data come every minutes , want able says highly appear term. can use mongodb or elasticsearch, db necessary in 'small scale' operation? have feeling because have cron every week or month clear outdated data. feel redundant have db. there service suite needs?

Java JLabel SetIcon update change the JLabel Zorder -

Image
i have 2 jlabels need put 1 on second. first time page loaded correctly. made button changing icon (jfilechooser) once validated changes zorder come in front : file newi = new file(user.getprofilepic()); bufferedimage newibuff; try { newibuff = imageio.read(newi); bufferedimage newim = resizeimage(newibuff, labelpic.getwidth(), labelpic.getheight()); labelpic.seticon(new imageicon(newim)); labelpic.setcomponentzorder(labelpic, 1); } catch (ioexception e1) { // todo auto-generated catch block e1.printstacktrace(); }

algorithm - Axiom system: something return the type -

here axiom mathematical language, not java library. maple or mathematica. exist return type 1 object in axiom in way can as q1:= if typeof q= bohtype 1 else 0 ? there place list axiom types can write in above bohtype correct string? thank you seen nobody answer... did not find way know if types of 2 obj equal, or if 1 obj has 1 assigned type; rethink it: want difference among list , stream, safety use maxindex function... easy explicitlyfinite? ok arguments list (where use maxindex) , stream , return 0 if list, 1 streams (where there not max index can choose it) (at last seems so). resolved problem... morning...

access specific or all php curl get request headers and post ajax request -

i need specific headers of http request m making.i have set curlopt_header_out option it's still not showing request headers. m not getting positive response of request. response 504 gateway timeout. though requests made google chrome successful. m pretty sure http headers m sending correct. can't figure out problem. <?php $tmatch=array(); function initialize_curl($url,$file){ $ch = curl_init(); curl_setopt($ch, curlopt_header, true); curl_setopt($ch, curlopt_returntransfer, true); curl_setopt($ch,curlopt_url, $url); curl_setopt($ch,curlopt_post, true); curl_setopt($ch,curlopt_postfields, "emailid=anything&password=anything&placement=login pop-up homepage&pp=1&utmfullstring=pp=1"); curl_setopt($ch, curlopt_cookiejar, 'cookie.txt'); curl_setopt($ch, curlopt_cookiefile, 'cookie.txt'); curl_setopt($ch, curlopt_ssl_verifypeer, false); curl_setopt($ch, curlopt_httpheader, array('content-type: text/html','accept:applica

c# - Programmatically change Visual Studio Options -

Image
how programmatically set , unset visual studio options? i have done research , troubleshooting , found not possible, ironically now find myself needing functionality. here question answered specifying why not possible programmitically click buttons in vs options dialog: programmatically reset visualstudio shortcuts . i dont need click button, need change boolean setting per screenshot. please... if have undocumented methods.. please me. improve every developers life, particularly newbies. just use: dte.properties["debugging", "general"].item("enableexceptionassistant").value=false; most of options can retrieved , set way. see also: options page, debugging node properties howto: getting properties dte.properties collection of visual studio .net.

java - Camera not working -

i have mainactivity in have function related camera. when calling camera open function mainactivity working fine. when calling main activity camera function through adaptor giving below error:- 1-10 15:53:48.494 5741-5741/user.com.test2 e/inputeventreceiver: exception dispatching input event. 11-10 15:53:48.494 5741-5741/user.com.test2 e/messagequeue-jni: exception in messagequeue callback: handlereceivecallback 11-10 15:53:48.494 5741-5741/user.com.test2 e/messagequeue-jni: java.lang.nullpointerexception: attempt invoke virtual method 'android.app.activitythread$applicationthread android.app.activitythread.getapplicationthread()' on null object reference @ android.app.activity.startactivityforresult(activity.java:3794) @ android.support.v4.app.basefragmentactivityjb.startactivityforresult(basefragmentactivityjb.ja

ios - UISearchController. search controller doesn't resize after device rotated -

Image
i'm using uisearchcontroller on view find items. search bar resizes in inactive move.however, if enable searching , rotate device landscape portrait , landscape mode again won't fit view.on view use navigation item can toggled in portrait mode. tried resize search bar view dynamically, resized position of search bar left same. initialization of search controller: let searchcontroller = uisearchcontroller(searchresultscontroller: nil) searchcontroller.searchresultsupdater = self searchcontroller.dimsbackgroundduringpresentation = false definespresentationcontext = false tableview.tableheaderview = searchcontroller.searchbar tableview.register(uinib(nibname: tablecellname, bundle: nil), forcellreuseidentifier: tablecellname) 1. 2.let's enable searching , rotate device portrait , landscape again. it seems search bar width includes width of navigation view. however,when it's inactive fits entire view.

git - How to use SimpleElastix as a reference of a new C# project? -

i git clone simpleelastix [1] project https://github.com/kaspermarstal/simpleelastix , , built , compiled on pc. wrap_csharp option set in cmake. use project reference/framework implement new medical image registration gui c#. however, didn't find .dll file in compiled simpleelastix solution. have tried create new c# project existing simpleelastix project via visual studio, new solution cannot built successfully. knows find th .dll file of simpleelatix? or how use simpleelastix reference/framework in new c# project? [1] simpleelastix project based on itk , simpleitk medical image registration, compatible python, c#, java etc. here documentation http://simpleelastix.readthedocs.io/ best, siming simpleelastix derived simpleitk project[1]. simpleitk's wiki[2], can find more information how use simpleitk in various configurations , languages. there "visual guide simpleitk csharp"[3]. the instructions in short add manage library project "simpleitkcs

coffeescript - Gulp: Splitting Files Into Separate Locations -

i'd separate javascript files coffee-script files! this current file structure: engine world behaviour.coffee behaviour.js character behaviour.coffee behaviour.js engine.coffee engine.js this structure prefer : src engine world behaviour.coffee character behaviour.coffee engine.coffee and: dest engine world behaviour.js character behaviour.js engine.js my actual gulp file looks this: gulp = require 'gulp' coffee = require 'gulp-coffee' gulp.task 'all-coffee-files', -> gulp.src './**/*.coffee' .pipe coffee() .pipe gulp.dest (file) -> file.base gulp.task 'watch', -> gulp.watch './**/*.coffee', ['all-coffee-files'] what edits have make in order achieve splitting ? thank much! not familiar coffescript syntax, following should work: gulp = require 'gulp' coffee = require 'gulp-coffee&