Your Choice JavaScript News

Node News Sunday, March 4 Additional api complexities, Buffer reuse, Face & more…

Node News TLDR / Table of Contents

  • (buf) re-adds it to the pool it was allocated from – – The neat thing is that the variable is just a normal buffer and that the reuse function does not need to know about the pool, meaning that module authors can support buffer reuse without any additional api complexities….
  • All you have to do is free a buffer when you are completely done using it – – Make a new buffer reuse pool.
  • if the size of the buffers allocated.
  • Get the buffer size of this pool.
  • Allocate a new buffer of size .

Tags: additional api complexities, buffer reuse, normal buffer, reuse function,

  • js: Simple and Robust Face Recognition using DeepLearningThe npm package for face recognitionTrained to recognize faces of Raj, Sheldon, Lennard andHowardIn this article I am going to show you how to perform robust face detection and face recognition using face-recognition.
  • Preparing thedataI have collected roughly 20 faces per character in different poses: – We will use 10 faces each to train the recognizer and the rest to evaluate the accuracy of our recognizer: – The file name of each face image contains the persons name so we can simply map…
  • Furthermore, we can store the recognizers state, so that we do not have to train it again the next time and we can simply load it from a file: – Save: – Load: – Recognizing newfacesNow we can check the prediction accuracy for our remaining data and log the results:…
  • The output will look somehow like this: – { className: ‘sheldon’, distance: 0.5 }In case you want to obtain the distances of the face descriptors of all classes to an input face you can simply use recognizer.predict(image), which will output an array with the distance for each class: – […
  • Using 10 faces each for training: – sheldon ( 90.9% ) : 10 of 11 faces have been recognized correctly – lennard ( 100% ) : 12 of 12 faces have been recognized correctly – raj ( 100% ) : 12 of 12 faces have been recognized correctly – howard…

Tags: face, face recognition, faces, input face, face recognizer

  • Strategic Initiatives from the Node.jsProjectThis post is from Michael Dawson who is a Node.js Collaborator, the Technical Steering Committee (TSC) Chair of the Node.js Project, and IBMs community lead for Node.js.
  • Some current examples include: – Community Events (Community Committee (CommComm))Education (CommComm)Evangelism WG (CommComm)i18n (CommComm)Node.js Collection (CommComm)NodeTogether (CommComm)Office Hours (CommComm)User Feedback (CommComm)http2 (TSC)Modules (TSC)N-API (TSC)OpenSSL Evolution (TSC)Workers (TSC)Error Messages (TSC)Core Promise APIs (TSC)TSC Governance (TSC)New Streams APIs (TSC)Async Hooks (TSC)V8 Currency (TSC)These have been documented as Strategic Initiatives and they are…
  • Two good examples where new contributors joined the community as a result of strategic initiatives, included initiatives around N-API and http2.Identify gaps: There are a lot of moving parts (dependencies, new features like modules, etc.) that go into the Node.js runtime.
  • Strategic initiatives provide a way to socialize and promote an initiative so that they can unlock the multiplying effect the project gets by leveraging contributions from across the community.Support: One of the roles of the TSC and CommComm is to enable and support community efforts.
  • The Node.js community is still in the process of working through the best way to capture and document information about the strategic initiatives.

Tags: strategic initiatives, significant new features, community, Node.js community,

  • Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
  • Already on GitHub?
  • Sign in to your account

Tags: RESTful API servers, actual method, breaking change, current PRs, past couple

  • Node.js Top 10 Open Source for the Past Month (v.Feb2018)This is a new monthlyseriesFor the past month, we ranked nearly 250 Node.js Open Source Projects to pick the Top 10.
  • We compared projects with new or major release during this period.
  • Average number of Github stars in this edition: 6,870 Watch Node.js Top 10 Open Source on Github and get email once a month.Topics: ORM, Performance, Bot, Headless Chrome, Scratchpad, CLI, Dashboard, async, Web Screenshots, ConsoleOpen source projects can be useful for programmers.
  • Hope you find an interesting project that inspires you.
  • Objection.JS: An SQL-friendly Object-relational mapping for Node.js [2319 stars on Github].

Tags: open source, open source projects, Node.js Open Source, best daily articles, Node.js Monthly Open

Top Node Courses

The Complete Node.js Developer Course (2nd Edition) (60,232 students enrolled)

By Andrew Mead
  • Build, test, and launch Node apps
  • Create Express web servers and APIs
  • Store data with Mongoose and MongoDB
  • Use cutting-edge ES6/ES7 JavaScript
  • Deploy your Node apps to production
  • Create real-time web apps with SocketIO

Learn more.

Angular (Angular 2+) & NodeJS - The MEAN Stack Guide (26,806 students enrolled)

By Maximilian Schwarzmüller
  • Build real Angular + NodeJS applications
  • Understand how Angular works and how it interacts with Backends
  • Connect any Angular Frontend with a NodeJS Backend
  • Use MongoDB with Mongoose to interact with Data on the Backend
  • Use ExpressJS as a NodeJS Framework
  • Provide a great user experience by using Optimistic Updating on the Frontend
  • Improve any Angular (+ NodeJS) application by adding Error Handling

Learn more.