You are here
Technology
Microsoft Announces New Webcam and USB-C Speaker for the Work from Home Era
Read more of this story at Slashdot.
Develop a Linux command-line Tool to Track and Plot Covid-19 Stats

It’s been over a year and we are still fighting with the pandemic at almost every aspect of our life. Thanks to technology, various tools and mechanisms to track Covid-19 related metrics. This introductory-level tutorial discusses developing one such tool at just Linux command-line, from scratch.
We will start with introducing the most important parts of the tool – the APIs and the commands. We will be using 2 APIs for our tool - COVID19 API and Quickchart API and 2 key commands – curl and jq. In simple terms, curl command is used for data transfer and jq command to process JSON data.
The complete tool can be broken down into 2 keys steps:
1. Fetching (GET request) data from the COVID19 API and piping the JSON output to jq so as to process out only global data (or similarly, country specific data).
$ curl -s --location --request GET 'https://api.covid19api.com/summary' | jq -r '.Global' { "NewConfirmed": 561661, "TotalConfirmed": 136069313, "NewDeaths": 8077, "TotalDeaths": 2937292, "NewRecovered": 487901, "TotalRecovered": 77585186, "Date": "2021-04-13T02:28:22.158Z" }2. Storing the output of step 1 in variables and calling the Quickchart API using those variables, to plot a chart. Subsequently piping the JSON output to jq so as to filter only the link to our chart.
$ curl -s -X POST \ -H 'Content-Type: application/json' \ -d '{"chart": {"type": "bar", "data": {"labels": ["NewConfirmed ('''${newConf}''')", "TotalConfirmed ('''${totConf}''')", "NewDeaths ('''${newDeath}''')", "TotalDeaths ('''${totDeath}''')", "NewRecovered ('''${newRecover}''')", "TotalRecovered ('''${totRecover}''')"], "datasets": [{"label": "Global Covid-19 Stats ('''${datetime}''')", "data": ['''${newConf}''', '''${totConf}''', '''${newDeath}''', '''${totDeath}''', '''${newRecover}''', '''${totRecover}''']}]}}}' \ https://quickchart.io/chart/create | jq -r '.url' https://quickchart.io/chart/render/zf-be27ef29-4495-4e9a-9180-dbf76f485eafThat’s it! Now we have our data plotted out in a chart:
You know what? Fork this: AWS renames its take on Elasticsearch to OpenSearch following trademark fight
AWS has introduced the OpenSearch project, the new name for its open-source fork of Elasticsearch and Kibana.…
Apple Will Hold a Special Event on April 20
Read more of this story at Slashdot.
US Recommends 'Pause' For J&J Vaccine Over Clot Reports
Read more of this story at Slashdot.
Northrop Grumman's MEV-2 gives Intelsat satellite a new lease on life until the next rescue in another five years
Northrop Grumman's second Mission Extension Vehicle (MEV) has docked with Intelsat's IS-10-02 satellite, potentially extending the life of the latter by five years.…
New Microsoft Surface Laptop 4 Goes for Battery Life
Read more of this story at Slashdot.
Unity devs warned of breaking changes ahead in video game engine as team gets to grips with mutating face of .NET
Unity software developer Josh Peterson has spoken about the future of .NET support in the widely used game development engine.…
Billions of Smartphone Owners Will Soon Be Authorizing Payments Using Facial Recognition
Read more of this story at Slashdot.
Salesforce's get-back-to-work strategy starts with 'Volunteer Vaccinated Cohorts' on designated floors
Salesforce has waded into the heated debate over vaccine passports, suggesting they may be a means of getting employees back into the office. Just don't call them vaccine passports.…
Key Perl Core developer quits, says he was bullied for daring to suggest programming language contained 'cruft'
On Monday, the Perl Core developer known as Sawyer X announced his intention to leave the three-person Perl Steering Committee, or Council, and the Perl Core group because of what he described as community hostility.…
UK government opens vaccine floodgates to over-45s, NHS website predictably falls over
The UK's National Health Service is now offering COVID-19 vaccines to those aged 45 and above however the volume of interest has made the appointment-booking website prone to wobbles.…
Joint UK government procurement seeks supplier to support controversial Clean Air Zone system
The UK government is on the hunt for a supplier to support and maintain the software behind its controversial Clean Air Zone (CAZ) policy in a tender that could result in a £22m contract.…
Google Is Removing Its Play Movies and TV App From Every Roku and Most Smart TVs
Read more of this story at Slashdot.
Researchers Create Light Waves That Can Penetrate Even Opaque Materials
Read more of this story at Slashdot.
Average British computer criminal is young, male and not highly skilled, researcher finds
An academic researcher has analysed more than 100 Computer Misuse Act cases to paint a picture of the sort of computer-enabled criminals who plague Great Britain’s digital doings in the 21st Century.…
So how's .NET 6 coming along? Oh wow, Microsoft's multi-platform framework now includes... Windows
Microsoft has shipped preview 3 of its forthcoming .NET 6 framework with a bunch of updates including the addition of Windows desktop to its Multi-platform App UI (MAUI).…
Nominet chooses civil war over compromise by rejecting ex-BBC Trust chairman
Nominet has chosen civil war over compromise, formally rejecting members' calls to install former BBC Trust chairman Sir Michael Lyons as chair of the .uk registry operator.…
AWS adds local webcam passthrough to both of its remote desktop tools
If you’re looking for another reason to fear webcam complications during a video chat, Amazon Web Services has two things for you.…
Japan To Start Releasing Fukushima Water Into Sea In 2 Years
Read more of this story at Slashdot.
Pages
