mi Coronavirus: China offers to help North Korea fight pandemic By www.bbc.co.uk Published On :: Sat, 09 May 2020 09:55:51 GMT President Xi Jinping expresses concern about the threat to its neighbour, and offers to help. Full Article
mi Coronavirus: Far-right spreads Covid-19 'infodemic' on Facebook By www.bbc.co.uk Published On :: Mon, 04 May 2020 05:33:16 GMT An investigation details how extremists are trying to exploit the pandemic via the social network. Full Article
mi Coronavirus: Can live-streaming save China's economy? By www.bbc.co.uk Published On :: Tue, 05 May 2020 23:17:27 GMT In China, the live-streaming industry has become an important platform for economic recovery. Full Article
mi Uber says 'no sacred cows' amid coronavirus crisis By www.bbc.co.uk Published On :: Thu, 07 May 2020 22:55:54 GMT The firm has already announced job cuts affecting 14% of its staff, but more measures may be needed. Full Article
mi Xbox: Microsoft reveals first games for Series X console By www.bbc.co.uk Published On :: Thu, 07 May 2020 19:13:25 GMT The Xbox team shows off new footage of the highly anticipated Assassin's Creed: Valhalla. Full Article
mi Coronavirus: 'Plandemic' virus conspiracy video spreads across social media By www.bbc.co.uk Published On :: Fri, 08 May 2020 11:26:57 GMT A slickly-produced "documentary" has exploded across social media, peddling medical misinformation. Full Article
mi Coronavirus: 'Humiliation' as school meal vouchers fail at till By www.bbc.co.uk Published On :: Thu, 07 May 2020 01:15:34 GMT "We had to leave all our shopping," a mother tells BBC News. Full Article
mi Coronavirus: When might Hollywood reopen for business? By www.bbc.co.uk Published On :: Tue, 05 May 2020 00:11:38 GMT Cast and crews might have to quarantine together in the future when filming begins again. Full Article
mi Coronavirus by Air: The spread of Covid-19 in the Middle East By www.bbc.co.uk Published On :: Tue, 05 May 2020 12:47:26 GMT An investigation by BBC News Arabic has found how one Iranian airline contributed to the spread of coronavirus around the Middle East. Full Article
mi How the Covid-19 pandemic is threatening Africa’s wildlife By www.bbc.co.uk Published On :: Wed, 06 May 2020 23:24:20 GMT Park rangers in Africa say the closure of safari tourism is leading to an increase in poaching. Full Article
mi ICYMI: Penguin chicks and new dining ideas By www.bbc.co.uk Published On :: Sat, 09 May 2020 10:43:24 GMT Some of the stories from around the world that you may have missed this week. Full Article
mi Node 14.2.0, plus Deno 1.0 is coming By nodeweekly.com Published On :: Thu, 7 May 2020 00:00:00 +0000 #337 — May 7, 2020 Read on the Web ✍️ With a few of the links today, this is a good time to note we sometimes link to things we disagree with or that are controversial if they are newsworthy or of relevance to our community. Inclusion is not always endorsement but you can read any summaries we write alongside items to get our take on things ???? Node Weekly Node v14.2.0 (Current) Released — The latest version of Node gains a new experimental way — assert.CallTracker — to track and verify function calls and the amount of times they occur. Also, require('console').Console now supports different group indentations Node.js Deno 1.0: What You Need to Know — Two years ago Ryan Dahl, the original creator of Node, gave a popular talk called 10 Things I Regret About Node.js where he revealed Deno, his prototype of how he'd build a better V8-based JavaScript runtime. With 1.0 due next week, Deno is poised to be a particularly exciting release and this article does a good job of cruising through the reasons why. David Else Enhance Node.js Performance with Datadog APM — Debug errors and bottlenecks in your code by tracing requests across web servers and services in your environment. Then correlate between distributed request traces, metrics, and logs to troubleshoot issues without switching tools or contexts. Try Datadog APM free. Datadog APM sponsor Deno Weekly: Our Newest Newsletter — We really like what we see from Deno (above) so far, so we're launching a new newsletter all about it! ???? Rather than keep mentioning Deno in Node Weekly, we'll be giving it its own space. Even if you're not planning to use Deno, feel free to subscribe for a while, see what happens, then unsubscribe if it doesn't suit you — the next issue will drop on 1.0's release (due next Wednesday). Cooperpress Controlling GUIs Automatically with Nut.js — Write Node code that clicks on things, opens apps, types, clicks buttons, etc. Works on Windows, macOS and Linux. Hit the GitHub repo to learn more or check out some examples. Simon Hofmann A Practical Guide to Node Buffers — You’ll often encounter Buffer objects for holding binary data in the form of a sequence of bytes during interactions with the operating system, working with files, network transfers, etc. DigitalOcean ???? Jobs Node.js Developer at X-Team (Remote) — Join X-Team and work on projects for companies like Riot Games, FOX, Coinbase, and more. Work from anywhere. X-Team Find a Job Through Vettery — Vettery specializes in tech roles and is completely free for job seekers. Create a profile to get started. Vettery ℹ️ If you're interested in running a job listing in this newsletter, there's more info here. ???? Articles & Opinions How to Build a REST Service with Fastify — How to build a basic RESTful service using Fastify, a popular Node Web framework focused on performance/low overheads. Wisdom Ekpot ▶ How to Use Node.js for Load Testing — A straightforward tour of an approach for hitting a Web site over and over from multiple child processes. Tom Baranowicz How to Fix ESLint Errors Upon Save in VS Code — A quick fire tip. David Walsh Faster CI/CD for All Your Software Projects Using Buildkite — See how Shopify scaled from 300 to 1800 engineers while keeping their build times under 5 minutes. Buildkite sponsor Avoiding Memory Leaks in Node: Best Practices for Performance — Covers very similar ground to another memory leak article we linked recently. Deepu K Sasidharan 'Some thoughts on the npm acquisition..' — The creator of Hapi and an investor in npm Inc. shared his thoughts on GitHub’s acquisition of npm. I disagree with his conclusion (and his views have also caused concern on Twitter) but it’s nonetheless interesting to get views from behind the curtain. Eran Hammer ???? Tools, Resources and Libraries npm 6.14.5 Released — Just a couple of minor bug fixes. The npm Blog actions-cli: Monitor Your GitHub Actions in Real Time from the Command Line Tommaso De Rossi SQL Template Tag: Tagged Template Strings for Preparing SQL Statements — For use with pg and mysql, for example. Blake Embrey webpack-blocks: Configure webpack using Functional Feature Blocks Andy Wermke JavaScript Error Tracking with AppSignal v1.3.0 is Here AppSignal sponsor FarmHash 3.1: A Node Implementation of Google's High Performance Hash Functions — FarmHash is a family of non-cryptographic hash functions built by Google mostly for quickly hashing strings. Lovell Fuller do-wrapper 4.0: A Node Wrapper for the DigitalOcean v2 API Matthew Major Full Article
mi Blasian love: The day we introduced our black and Asian families By www.bbc.co.uk Published On :: Wed, 11 Mar 2020 00:20:43 GMT Blasian - black and Asian - couples now exist in South Africa... but they don't always have an easy time. Full Article
mi Birth in a pandemic: 'You are stronger than you think' By www.bbc.co.uk Published On :: Tue, 31 Mar 2020 23:09:29 GMT Coronavirus is throwing many birth plans up in the air and leading some health trusts to increase home births. Full Article
mi Dirty streaming: The internet's big secret By www.bbc.co.uk Published On :: Thu, 05 Mar 2020 01:03:57 GMT Figures suggest that IT now generates as much CO2 as flying, with some arguing it's nearly double. Full Article
mi Coronavirus crisis forces farmers to throw milk away By www.bbc.co.uk Published On :: Wed, 08 Apr 2020 23:16:01 GMT Some dairy farmers are throwing away thousands of litres amid supply chain disruption due to coronavirus. Full Article
mi Coronavirus: UK chancellor on new microloan scheme for small businesses By www.bbc.co.uk Published On :: Mon, 27 Apr 2020 16:30:38 GMT Firms will be able to borrow up to £50,000, which will be interest free for the first year. Full Article
mi Millie Small: My Boy Lollipop singer dies aged 72 By www.bbc.co.uk Published On :: Wed, 06 May 2020 09:47:49 GMT The singer, who had Jamaica's first million-selling single, dies after suffering a stroke. Full Article
mi Brazil's Amazon: Surge in deforestation as military prepares to deploy By www.bbc.co.uk Published On :: Fri, 08 May 2020 21:17:52 GMT The military is preparing to deploy to the region to try to stop illegal logging and mining. Full Article
mi Building Redux Middleware By reactjsnews.com Published On :: Sun, 13 Mar 2016 23:00:09 +0000 After writing my post a few months ago on building your own redux app, I have been asked a couple times to write a guide on creating redux middleware and how it works. This will be a quick post on how you can acheive anything with your own middleware! ##Basic middleware const customMiddleware = store => next => action => { if(action.type !== 'custom') return next(action) //do stuff! } Applying it: import { createStore, applyMiddleware, } from 'redux' import reducer from './reducer' import customMiddleware from './customMiddleware' const store = createStore( reducer, applyMiddleware(customMiddleware) ) Whaaa? store => next => action => I know that looks confusing. Essentially you are building a chain of functions, it will look like this when it gets called: //next looks something like this: let dispatched = null let next = actionAttempt => dispatched = actionAttempt const dispatch = customMiddleware(store)(next) dispatch({ type: 'custom', value: 'test' }) All you are doing is chaining function calls and passing in the neccesary data. When I first saw this I was confused a little due to the long chain, but it made perfect sense after reading the article on writing redux tests. So now that we understand how those chained functions work, let’s explain the first line of our middleware. if(action.type !== 'custom') return next(action) There should be some way to tell what actions should go through your middleware. In this example, we are saying if the action’s type is not custom call next, which will pass it to any other middleware and then to the reducer. ##Doing Cool stuff The official guide on redux middleware covers a few examples on this, I’m going to try to explain it in a more simple way. Say we want an action like this: dispatch({ type: 'ajax', url: 'http://api.com', method: 'POST', body: state => ({ title: state.title description: state.description }), cb: response => console.log('finished!', response) }) We want this to do a post request, and then call the cb function. It would look something like this: import fetch from 'isomorphic-fetch' const ajaxMiddleware = store => next => action => { if(action.type !== 'ajax') return next(action) fetch(action.url, { method: action.method, body: JSON.stringify(action.body(store.getState())) }) .then(response => response.json()) .then(json => action.cb(json)) } It’s pretty simple really. You have access to every method redux offers in middleware. What if we wanted the cb function to have access to dispatching more actions? We could change that last line of the fetch function to this: .then(json => action.cb(json, store.dispatch)) Now in the callback, we can do: cb: (response, dispatch) => dispatch(newAction(response)) As you can see, middleware is very easy to write in redux. You can pass store state back to actions, and so much more. If you need any help or if I didn’t go into detail enough, feel free to leave a comment below! Full Article
mi 2007 Club World Cup Final: Boca Juniors 2-4 AC Milan By www.fifa.com Published On :: Sat, 08 Dec 2012 02:03:00 GMT In the final of the FIFA Club World Cup Japan 2007, Italian giants AC Milan got two goals from 'Pippo' Inzaghi and one each from Kaka and Alessandro Nesta to become the world's top team. Full Article Area=Tournament Section=Competition Kind=Video Tournament=FIFA Club World Cup Japan 2007
mi A young indian fan of Brazil smiles By www.fifa.com Published On :: Sat, 28 Oct 2017 12:43:00 GMT KOLKATA, INDIA - OCTOBER 28: A young indian fan of Brazil smiles prior the FIFA U-17 World Cup India 2017 3rd Place match between Brazil and Mali at Vivekananda Yuba Bharati Krirangan on October 28, 2017 in Kolkata, India. (Photo by Buda Mendes - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA U-17 World Cup India 2017
mi Philip Foden of England and Juan Miranda of Spain in action By www.fifa.com Published On :: Sat, 28 Oct 2017 16:00:00 GMT KOLKATA, INDIA - OCTOBER 28: Philip Foden of England and Juan Miranda of Spain in action during the FIFA U-17 World Cup India 2017 Final match between England and Spain at Vivekananda Yuba Bharati Krirangan on October 28, 2017 in Kolkata, India. (Photo by Tom Dulat - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA U-17 World Cup India 2017
mi England's midfielder Phil Foden greets spectators By www.fifa.com Published On :: Sat, 28 Oct 2017 18:34:00 GMT England's midfielder Phil Foden greets spectators after England's win over Spain in the final FIFA U-17 World Cup football match at the Vivekananda Yuba Bharati Krirangan stadium in Kolkata on October 28, 2017. / AFP / Dibyangshu SARKAR Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA U-17 World Cup India 2017
mi England's midfielder Phil Foden greets spectators after England's win over Spain By www.fifa.com Published On :: Sat, 28 Oct 2017 18:38:00 GMT England's midfielder Phil Foden greets spectators after England's win over Spain in the final FIFA U-17 World Cup football match at the Vivekananda Yuba Bharati Krirangan stadium in Kolkata on October 28, 2017. / AFP / Dibyangshu SARKAR Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA U-17 World Cup India 2017
mi Mission XI Million milestone children at the Jawaharlal Nehru Stadium in New Delhi By www.fifa.com Published On :: Wed, 20 Dec 2017 18:35:00 GMT Mission XI Million milestone children at the Jawaharlal Nehru Stadium in New Delhi. Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA U-17 World Cup India 2017
mi Semis set in stone By www.fifa.com Published On :: Mon, 26 Sep 2016 02:22:00 GMT The four teams who will see us through to the final day of FIFA Futsal World Cup Colombia 2016 have been settled, as Russia and Iran were joined by Argentina and Portugal in the semi-finals. Full Article
mi All smiles for mother/daughter volunteer team By www.fifa.com Published On :: Sun, 25 Sep 2016 05:56:00 GMT FIFA.com catches up with Miriam Moreno and her daughter Sara Isabel Collazos who have had a great experience working at Colombia 2016 as volunteers. Full Article
mi History in the making for semi-final pair By www.fifa.com Published On :: Mon, 26 Sep 2016 17:09:00 GMT Argentina and Portugal both have their sights on making their first ever FIFA Futsal World Cup final when they go head to head in Cali. FIFA.com previews the crucial Colombia 2016 semi-final. Full Article
mi Win the trip of a lifetime with #MyClubWCSmile! By www.fifa.com Published On :: Tue, 26 Nov 2019 14:37:00 GMT Full Article
mi Carrillo: We’ll play with the same determination as the Champions League By www.fifa.com Published On :: Fri, 13 Dec 2019 19:11:00 GMT Full Article
mi Gomis and Al Hilal roar into semis By www.fifa.com Published On :: Sat, 14 Dec 2019 08:03:00 GMT Full Article
mi Filipe Luis: We're giving the semi-final maximum priority By www.fifa.com Published On :: Mon, 16 Dec 2019 16:18:00 GMT Full Article
mi Firmino comes off the bench to fire Liverpool into final By www.fifa.com Published On :: Wed, 18 Dec 2019 08:51:00 GMT Full Article
mi Diego: We're dreaming of winning the world title By www.fifa.com Published On :: Fri, 20 Dec 2019 10:46:00 GMT Full Article
mi Firmino writes Liverpool into Club World Cup history By www.fifa.com Published On :: Sat, 21 Dec 2019 10:13:00 GMT Full Article
mi Dmitry Lyskov of Russia celebrates his goal By www.fifa.com Published On :: Wed, 28 Sep 2016 02:16:00 GMT MEDELLIN, COLOMBIA - SEPTEMBER 27: Dmitry Lyskov of Russia celebrates his goal during the FIFA Futsal World Cup semi-final match between Iran and Russia at Coliseo Ivan de Bedout on September 27, 2016 in Medellin, Colombia. (Photo by Jan Kruger - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi General view of play during the FIFA Futsal World Cup semi-final match By www.fifa.com Published On :: Wed, 28 Sep 2016 02:27:00 GMT MEDELLIN, COLOMBIA - SEPTEMBER 27: General view of play during the FIFA Futsal World Cup semi-final match between Iran and Russia at Coliseo Ivan de Bedout on September 27, 2016 in Medellin, Colombia. (Photo by Jan Kruger - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi General view of play during the FIFA Futsal World Cup semi-final match By www.fifa.com Published On :: Wed, 28 Sep 2016 02:28:00 GMT MEDELLIN, COLOMBIA - SEPTEMBER 27: General view of play during the FIFA Futsal World Cup semi-final match between Iran and Russia at Coliseo Ivan de Bedout on September 27, 2016 in Medellin, Colombia. (Photo by Jan Kruger - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Mehran Alighadr (L) of Iran is brought down by Ivan Milovanov (R) of Russia By www.fifa.com Published On :: Wed, 28 Sep 2016 02:29:00 GMT MEDELLIN, COLOMBIA - SEPTEMBER 27: Mehran Alighadr (L) of Iran is brought down by Ivan Milovanov (R) of Russia during the FIFA Futsal World Cup Semi-Final match between Iran and Russia at Coliseo Ivan de Bedout stadium on September 27, 2016 in Medellin, Colombia. (Photo by Alex Caparros - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Players of Russia celebrate at the end of the semi final against Iran By www.fifa.com Published On :: Wed, 28 Sep 2016 04:16:00 GMT MEDELLIN, COLOMBIA - SEPTEMBER 27: Players of Russia celebrate at the end of the FIFA Futsal World Cup Semi-Final match between Iran and Russia at Coliseo Ivan de Bedout stadium on September 27, 2016 in Medellin, Colombia. (Photo by Alex Caparros - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Alireza Samimi (C) of Iran jokes with a FIFA Player's Escort in the tunnel By www.fifa.com Published On :: Wed, 28 Sep 2016 04:47:00 GMT MEDELLIN, COLOMBIA - SEPTEMBER 27: Alireza Samimi (C) of Iran jokes with a FIFA Player's Escort in the tunnel before the FIFA Futsal World Cup Semi-Final match between Iran and Russia at Coliseo Ivan de Bedout stadium on September 27, 2016 in Medellin, Colombia. (Photo by Alex Caparros - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi The stadium is seen prior to the semi-final between Argentina and Portugal By www.fifa.com Published On :: Wed, 28 Sep 2016 23:49:00 GMT CALI, COLOMBIA - SEPTEMBER 28: The Stadium is seen prior to the FIFA Futsal World Cup Semi Final match between Argentina and Portugal at the Coliseo el Pueblo Stadium on September 28, 2016 in Cali, Colombia. (Photo by Ian MacNicol - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi The Stadium is seen prior to the FIFA Futsal World Cup Semi Final match between Argentina and Portugal By www.fifa.com Published On :: Thu, 29 Sep 2016 00:30:00 GMT CALI, COLOMBIA - SEPTEMBER 28: The Stadium is seen prior to the FIFA Futsal World Cup Semi Final match between Argentina and Portugal at the Coliseo el Pueblo Stadium on September 28, 2016 in Cali, Colombia. (Photo by Ian MacNicol - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Damian Stazzone of Argentina celebrates after scoring his team's second goal By www.fifa.com Published On :: Thu, 29 Sep 2016 01:44:00 GMT CALI, COLOMBIA - SEPTEMBER 28: Damian Stazzone of Argentina celebrates after scoring his team's second goal during the FIFA Futsal World Cup Semi-Final match between Argentina and Portugal at the Coliseo El Pueblo stadium on September 28, 2016 in Cali, Colombia. (Photo by Alex Caparros - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Damian Stazzone of Argentina celebrates after scoring By www.fifa.com Published On :: Thu, 29 Sep 2016 01:44:00 GMT Damian Stazzone of Argentina celebrates after scoring his team's second goal during the FIFA Futsal World Cup Semi-Final match between Argentina and Portugal at the Coliseo El Pueblo stadium on September 28, 2016 in Cali, Colombia. (Photo by Alex Caparros - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Damian Stazzone of Argentina celebrates after scoring By www.fifa.com Published On :: Thu, 29 Sep 2016 01:49:00 GMT Damian Stazzone of Argentina celebrates after scoring his team's second goal during the FIFA Futsal World Cup Semi-Final match between Argentina and Portugal at the Coliseo El Pueblo stadium on September 28, 2016 in Cali, Colombia. (Photo by Alex Caparros - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Damian Stazzone (L) of Argentina celebrates as he scores By www.fifa.com Published On :: Thu, 29 Sep 2016 02:17:00 GMT Damian Stazzone (L) of Argentina celebrates as he scores his team's second goal during the FIFA Futsal World Cup Semi-Final match between Argentina and Portugal at the Coliseo El Pueblo stadium on September 28, 2016 in Cali, Colombia. (Photo by Alex Caparros - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Damian Sarmiento of Argentina celebrates with team mates By www.fifa.com Published On :: Thu, 29 Sep 2016 03:00:00 GMT Damian Sarmiento of Argentina celebrates with team mates at the final whistle during the FIFA Futsal World Cup Semi Final match between Argentina and Portugal at the Coliseo el Pueblo Stadium on September 28, 2016 in Cali, Colombia. (Photo by Ian MacNicol - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016
mi Re (R) of Portugal controls the ball next to Alamiro Vaporaki (L) of Argentina By www.fifa.com Published On :: Thu, 29 Sep 2016 03:04:00 GMT Re (R) of Portugal controls the ball next to Alamiro Vaporaki (L) of Argentina during the FIFA Futsal World Cup Semi-Final match between Argentina and Portugal at the Coliseo El Pueblo stadium on September 28, 2016 in Cali, Colombia. (Photo by Alex Caparros - FIFA/FIFA via Getty Images) Full Article Area=Tournament Section=Competition Kind=Photo Tournament=FIFA Futsal World Cup Colombia 2016