How Much Does Blogging Really Cost? — Jenny in Neverland

Self hosting, WordPress packages, domain namesThis is a big one for when you want to start taking your blog seriously or think about taking your blog to that next level. To turn your hobby blog into a business or an income then you’ll need to be thinking about at least getting your own domain name. And that’s the very least.I … Continue reading How Much Does Blogging Really Cost? — Jenny in Neverland

Better Queue in Node JS

Introduction A good practice in software development is to delegate as much heavy work as possible to background jobs to avoid blocking the main execution of your application that can be a web app, mobile app or desktop. Send email notifications it’s the typical scenario where you should execute it in background. More scenarios Image … Continue reading Better Queue in Node JS

Zoom flaw could force Mac users into meetings, expose video feed — Naked Security

Zoom, a company that sells video conferencing software for the business market, is tweaking the app to fix a vulnerability in the Mac software that allows malicious websites to force users into a Zoom call with the webcam turned on. Photo by Philipp Katzenberger on Unsplash

A Toy Bug Tracker in JavaScript

This Could Be Better

The JavaScript code below implements a rudimentary bug tracker, or, perhaps more accurately, a task tracker. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript.

It’s not actually useful in its current form, of course, as all the users are hardcoded and any tasks added during the session aren’t persisted anywhere. I’d also like to implement parent-child relationships among tasks and add support for generalized attributes. This program is intended mostly as a basis for further work.

View original post

Node.js APIs caching made simple!

The JavaScript and Node.js Blog

In this article we discuss how we can easily implement APIs caching in distributed solutions.
A Node.js implementation is described, in concrete the great http-cache-middleware module:

const middleware = require('http-cache-middleware')()
const service = require('restana')()

service.get('/expensive-route', (req, res) => {
  const data = // heavy CPU and networking tasks...
  res.setHeader('x-cache-timeout', '1 week')

But, what is caching?

Acacheis a hardware or software component that stores data so that future requests for that data can be served faster; the data stored in a cache might be the result of an earlier computation or a copy of data stored elsewhere. Acache hitoccurs when the requested data can be found in a cache, while acache missoccurs when it cannot. Cache hits are served by reading data from the cache, which is faster than recomputing a result or reading from a slower data store; thus, the more…

View original post 509 more words