Posts

javascript - What is the meaning of the third parameter in this dat.gui add function? -

javascript - What is the meaning of the third parameter in this dat.gui add function? - i quite new dat.gui . i've been reading dat.gui's questions , answers in stackoverflow. have 1 question this one. what meaning of 3rd argument in gui.add function? i.e. a[i] for (var i=1; i<7; i++) { controller_names[i] = a[i]; gui.add(controller_names, i, a[i]); } thanks! the 3rd , higher arguments of add function additional parameters given control. example, if command slider, min & max, like: gui.add(gui, 'horizontale', 0, 600); for check box command (boolean property, a[i]), 3rd argument has no effect. you can @ definition of dat.controllers.factory in source code of dat.gui, controllers created. javascript user-interface dat.gui

javascript - Populate function return value into element -

javascript - Populate function return value into <input> element - i writing chat page site. have managed getmyfunction() inquire user name welcome 'username'. problem utilize same name within name input box chat itself, rather user having input name every single time wish write message. have used onclick= prompt user name cannot display name within name box. <form action='submit.php' method='post' name='form'> name:<br><p>click button demonstrate prompt box.</p> <button onclick="myfunction()">try it</button> <p id="demo"></p> <script> function myfunction() { var person = prompt("please come in name", "harry potter"); if (person != null) { document.getelementbyid("demo").innerhtml = "hello " + person + "! how today?"; } } </script> name: <br> <input type='text' name='name...

Java allowing multiple inheritance -

Java allowing multiple inheritance - i confused regarding concept in multiple inheritance. have 3 classes a, b , c. class { // ... } class b extends { // ... } class c extends b { // ... } i know bad practice of multiple inheritance , read java allows multiple inheritance through interfaces. not getting error in above code. please can explain me clear illustration without using interface. thanks!! this not multi-inheritance. each class has 1 direct super class. if illustration considered multi-inheritance, wouldn't able utilize extends keyword @ all, since each class extends default object class. multi-inheritence class c extends a,b {} and that's illegal in java. java inheritance

c# - Scalability Location Distance Search Over 100,000 LatLng Positions Across USA -

c# - Scalability Location Distance Search Over 100,000 LatLng Positions Across USA - scenario = 1) delivery offices spread out across usa each specifying own maximum delivery radius limit in miles. 2) target address geo converted latlng delivery destination. goal = homecoming dataset of delivery offices (1) who's delivery radius limit falls within distance target address(2) attempt = as starting point problem using first-class work illustration storm consultancy in identifying closest office customer: haversine distance between 2 points my 'offices' table stores office address along lat , lng values , maximum distance 'deliverylimit'. the sql calculate haversine blows mind , beyond understanding! storm sql below, instead of selecting 1 row straight distance calculations, need select offices rows who's max distance delivery limit less distance between office , customer. question1 = how add together max distance limit filter sql query retu...

xaml - Office 365 API - Azure Active Directory bring user's thumbnail Failed -

xaml - Office 365 API - Azure Active Directory bring user's thumbnail Failed - i'm using next code sample : here user's thumbnail of there's business relationship on office 365 tenant windows 8.1 project xaml/c# try { using (var dssr = await user.thumbnailphoto.downloadasync()) { var stream = dssr.stream; var buffer = new byte[stream.length]; await stream.readasync(buffer, 0, (int) stream.length); profileimage = buffer; } } grab (exception ex) { debug.writeline(ex); } however each time seek bring user's thumbnail photo, next error: "resource 'thumbnailphoto' not exist or 1 of queried reference-property objects not present." i'm using admin user (global admin) in add together connected service , sign in . i searched said on : here "and these photos stored in exchange mailbox rather thumbnail photo in...

Fossil svn: linking tickets to a branch -

Fossil svn: linking tickets to a branch - i have 2 branches in fossil repository: possible link ticket 1 of 2 branches, in timeline view can understand branch ticket belongs to? thank in advance sure can. thing need create sure include right reference. in screenshot below, see made ticket wrote in ticket title: test reference branch [94558ab315732e3f] that reference object-id of branch making reference to. @ screenshot below: see took id placed in front end of word "leaf" , identifies branch. on top, in sam screenshot see line "test reference branch [94558ab315732e3f]" branch id clickable. take branch description you not have clickable behaviour in ticket itself. if appear normal text: if @ screenshot of timeline, see started test other way round: add together branch has ticket-id name. thing need differently quote ticket name when creating branch. so: fossil branch new "[c98dd264f1319]" trunk and not: fossil b...

linux - Remove last line from variable string inside the awk script -

linux - Remove last line from variable string inside the awk script - i made next script: awk ' { if ($1 ~ /^d/) { a=a $0; } .... -> rest code if (p == 1) { b=a; print b; } } ' input.txt a - store found result, work later can't alter construction b - store part of a, header input file: d1file text edont show d2file d3file need remove a content @ end: d1file text d2file d3file need remove what do: if $1 starts d store within a variable. later move a b , remove lastly line b, output of b should be: d1file text d2file i looking solution no luck @ all. thinking store a content array , loop using index-1 remove lastly line, couldn't worked. is there way that? awk ' /^d/ { = $0 "\n"} # accumulate lines starting d end { sub(/\n[^\n]*\n$/, "", a); # remove lastly line print } ' input.txt li...