Posts

BLOGGER TITLE

Blogger CONTENT

docker - Join SwarmKit cluster with predefined token? -

is there ways join docker swarmkit cluster predefined token? default, swarmkit nodes must provide token defined swarmkit master. not play nice scripting (like ansible). how generate token up-front? as far know there way these tokes up-front. can them comand docker swarm join-token -q worker or manager. comand prints token wich written in file or stored elswhere.

javascript - Meteor - Passing an object to template but it doesnt display data -

im trying create blog(with meteor) have different categories posts, trying create page displays categories , titles off posts in categories. this javascript code using. template.categories.cats = function(){ reviews = reviews.find({}, {sort: { createdat: -1 } }); opinions = pointlessopinions.find({}, {sort: { createdat: -1 } }); days = daysinthelife.find({}, {sort: { createdat: -1 } }); return {reviews: reviews,opinions: opinions, days: days}; } this html template <template name = "categories"> <div class = "container"> <h1>reviews</h1> {{#each reviews}} <h2> {{title}}</h2> {{/each}} </div> <div class = "container"> <h1>a day in life</h1> {{#each days}} <a href="/post/{{this._id}}"> <h2> {{title}}</h2> </a> {{/each}} </div> <div class = "container...

profiling - What is the default unit of time of c++'s chrono? -

i used code measure runtime of program this answer auto start = std::chrono::system_clock::now(); /* work */ auto end = std::chrono::system_clock::now(); auto elapsed = end - start; std::cout << elapsed.count() << '\n'; i needed measure runtime trend kind of curious unit is. you can check self, code: using clock = std::chrono::system_clock; using duration = clock::duration; std::cout << duration::period::num << " , " << duration::period::den << '\n'; on system prints: 1 , 1000000000 that is, period in terms of nanoseconds (i.e. 10 −9 s).

tensorflow - DNNClassifier predict sample -

based on tensorflow tutorial , see it's easy use dnnclassifier make basic class prediction given sample data. there way sample data given class? specifically given example, can give class 2 , 4 points of data it'd associate flower of class. the classifier exports keys other accuracy. using "scores" give score each example in each class, can loop on find max.

mono - MonoPosixHelper-x86_64.dll - ClamAV detects this as a threat/infection -

can mono project team confirm file monoposixhelper-x86_64.dll not malicious? clamav detects threat. found under /mono_2.0/bin folder under /.wine on linux. file exists when wine reinstalled. by way, it's clamav detects this, according virustotal.com

(When) are HandleScopes (still) necessary in native node.js addons? -

in node.js v6.4.0 documentation on addons , functions adhere following pattern. void x(const functioncallbackinfo<value>& args) { isolate* isolate = args.getisolate(); ... } so there no instantiation of handlescope , there used in prior versions of node.js. there's 1 exception, handlescope scope(isolate) done. most of functions instantiate local<...> handles, i'd expect handlescope necessary garbage collection done on function return. so: when handlescopes necessary in node.js 6.4.0 native addons? in general not need handlescope if calling function javascript. because there (parent) scope inherited javascript call site. javascript scope gets garbage collected, handles created in c++ collected because they're attached scope. so adding handlescope every function won't hurt anything, it's may impact performance some.