teleren/devto huggingface dataset:
THE REAL CAUSE OF END SARS PROTEST
Published: 2021-01-19 14:19:43

As reactions continue to trail End SARS protests with serious casualties, a non-governmental organization, Peoples Life Improvement Foundation (PLIF) has identified fraudulent electoral system and failure of government as responsible for grievances.
The Foundation insisted that the demands being pushed by the protesters were legitimate, saying that it would be unfair to pay deaf ears, but there was a need for President Buhari and the leadership of the National Assembly to pay attention to the issues being raised by the protesters in the country.

The group maintained that the only way out was for a total reform of the system, but critical is the electoral reform upon which electoral Transparency builds confidence and drives accountability from the political leaders to the people.

The statement reads in part ‘We have summed up the totality of Prolonged bad governance in Nigeria which has ruined the country and has come to the conclusion that our electoral system is the sole reason why the country is in this miserable and undone state.
“Thus, resulting in the Pandemic Suffering and frustration of the youths, adults, educated and uneducated. These and many other social problems triggered the contemporary protest!

“The youths are demanding for a political reform that will give all Nigerians equal opportunities, a political structure where the rights of all individuals will be protected and respected.
“Mr President, and the leadership of the National Assembly, Nigerian’s are like dutiful children, who have received unmerited blows from a supposed beloved parent.
“Mr President, this is the time to leave a legacy of a listening government and write your name in the sand of time.”

It would be recalled that the Senate had in its resolution called on the President to listen to the call of the protesters and address the nation to quell the End SARS protest.
THE REAL CAUSE OF END SARS PROTEST
Published: 2021-01-19 14:14:38

As reactions continue to trail End SARS protests with serious casualties, a non-governmental organization, Peoples Life Improvement Foundation (PLIF) has identified fraudulent electoral system and failure of government as responsible for grievances.
The Foundation insisted that the demands being pushed by the protesters were legitimate, saying that it would be unfair to pay deaf ears, but there was a need for President Buhari and the leadership of the National Assembly to pay attention to the issues being raised by the protesters in the country.

The group in a statement signed by its National Publicity Secretary, Ngoama Waekite Wemi said the group stands with the End SARS campaign, noting that the slogan for the protest resonates with Nigerians who recall various injustices in public dealing between government institutions and the citizens.
The group maintained that the only way out was for a total reform of the system, but critical is the electoral reform upon which electoral Transparency builds confidence and drives accountability from the political leaders to the people.

The statement reads in part ‘We have summed up the totality of Prolonged bad governance in Nigeria which has ruined the country and has come to the conclusion that our electoral system is the sole reason why the country is in this miserable and undone state.
“Thus, resulting in the Pandemic Suffering and frustration of the youths, adults, educated and uneducated. These and many other social problems triggered the contemporary protest!

“The youths are demanding for a political reform that will give all Nigerians equal opportunities, a political structure where the rights of all individuals will be protected and respected.
“Mr President, and the leadership of the National Assembly, Nigerian’s are like dutiful children, who have received unmerited blows from a supposed beloved parent.
“Mr President, this is the time to leave a legacy of a listening government and write your name in the sand of time.”

It would be recalled that the Senate had in its resolution called on the President to listen to the call of the protesters and address the nation to quell the End SARS protest.
Python with CosmosDB for MongoDB API – Insert in Details
Tags: python, azure, mongodb, cosmosdb
Published: 2021-01-19 13:59:12

Let’s explore more on how we can insert records in CosmosDB for MongoDB using Python and PyMongo. Insert one or many. Also after the insert find the latest id of the newly inserted data. 

{% youtube  V2vNjKnlLqE %}
What causes empty [] [ ] to be logged? MongoDB/ Apollo/GraphQL 
Tags: mongodb, graphql, help, react
Published: 2021-01-19 13:56:36

I have several getObjects setup, only my getPosts is getting data. When I add one, it works. But my getProducts isn’t working, THE FEILDS ARE SHOWING TO USE, in the Grapgql editor, but the data isn’t showing up.
How to hide a tag on dev.to
Tags: meta
Published: 2021-01-19 13:53:20

1. Follow a tag describing something you don't actually want to follow, like the [#javascript](https://dev.to/t/javascript) tag (trust me please),

2. Click on the not-so cranked wheel to go to the page that handles the weights of your tags (here's the link: [https://dev.to/dashboard/following_tags](https://dev.to/dashboard/following_tags)),
    ![here](https://up.l3m.in/file/1611063781.png)

3. Set the weight of the tag you didn't like to `-999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999` or something like this,

4. Enjoy browsing dev.to without this popular tags on *literally every page of the site*!

5. ![that's all folks!](https://i.imgur.com/o2Tcd2E.png)

----

*(oh the output of the value in step 3 is funny, it even have a "anti follow" notice)*
![like this](https://up.l3m.in/file/1611064103.png)
annotate only desired app for chaos
Tags: litmuschaos
Published: 2021-01-19 13:53:15

Hello,
I just started play litmus around with chaos engineering. When I manually tag same label to two deployments and create a chaoengin with that label, I received below error from chaos-operator:
“too many deployments with specified label are annotated for chaos, either provide unique labels or annotate only desired app for chaos”

What's the meaning of "annotate only desired app for chaos"? In my usecase, I would like to trigger delete-pod in part of the deployment and control with annotation or label. How should I do that?
Fixing Cumulative Layout Shift
Tags: webdev, css, javascript, html
Published: 2021-01-19 13:45:55

Cumulative layout shift is the term that refers to content that jumps after initial load.

Not only is CLS frustrating for users, it will also become more important for SEO purposes this year. Of course those things are connected. _Because_ it is such a big user experience problem, Google Search rankings [will be cracking down on this](https://www.searchenginejournal.com/cumulative-layout-shift/371946/).

![cls](https://im2.ezgif.com/tmp/ezgif-2-3705195221ca.gif)

We have a few existing CLS issues within Forem. Google shows us about this through the Search Console within the Core Web Vitals tab:

![Google dashboard](https://user-images.githubusercontent.com/3102842/104930605-5d846180-5973-11eb-9a55-93e9daafd44d.png)

_Yellow in this graph represents pages that need work._

"Need work" means it is a _small_ issue. It certainly isn't a giant ad popping up in our face, but it is still frustrating and possibly jarring.

This is what they were talking about:

![blip](https://im2.ezgif.com/tmp/ezgif-2-eadf62779b94.gif)

This happens because we load the comment reaction number _asynchronously_ so we can cache the underlying HTML.

... And this was the fix...

{% github https://github.com/forem/forem/pull/12309 %}

Generally the way to deal with CLS is to make space for content that may load asynchronously before it loads. There are a few ways this could have been dealt with. In this case I deemed that it was reasonable to first include the _cached_ number instead of _nothing_, and then if the number updates a few milliseconds after load.

If it was not possible to modify the code such that we could include the number, it would likely suffice to include a blank HTML element that takes up the approximate space for most _like_ numbers.
Quick Command Line Calculator in One Line of Code
Tags: bash, zsh, cli, productivity
Published: 2021-01-19 13:43:57

I will admit I'm currently a ~~bit of a~~ complete terminal rat. I use [Neovim](https://neovim.io) daily inside of [tmux](https://github.com/tmux/tmux/wiki). My tests are run from the terminal. I use [git](https://git-scm.com) from the terminal. Deploys and releases are done in my terminal. I'll even open web pages with Mac's `open` command.

So I asked myself: why would I open a separate app to make quick calculations when I have a perfectly good terminal blinking right in front of me? I made a little command to "solve" my "problem" and now I've decided to inflict your eyes with my code.

{% gist https://gist.github.com/kallmanation/fa535dc9da0cdadaaaf7c9d2630e5e99 file=simple_cli_calculator.sh %}

The [`bc`](https://www.gnu.org/software/bc/manual/html_mono/bc.html) command on its own enters an interactive calculator mode. Which is nice but not what I wanted for quick arithmetic. So I use `echo` to pipe my calculation (`"$@"` refers to all the arguments given to this function) into `bc` and have the results calculated and printed with an immediate return to my normal terminal. For fun I also threw in the `-l` flag which gives me access to things like sine and cosine (but I cannot say I've really used them). Named it the shortest mnemonic I could think of, `c` for calculator, and I was done.
Missing Push Notification Entitlement - Apple
Tags: ios, apple, release
Published: 2021-01-19 13:28:12

Usually Apple send an e-mail with that notification `Missing Push Notification Entitlement` when you forget to add `Push Notifications` to `Signing & Capabilities` then you got this message you should open your Xcode project and add `Push Notifications` into `Capabilities`. I recommend you do that for `Debug`, `Release` and `Profile`.
Daily Developer Jokes - Tuesday, Jan 19, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-01-19 13:00:23

---
title: "Daily Developer Jokes - Tuesday, Jan 19, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Tuesday%2C%20Jan%2019%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258c4f0d26.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ What is a computer virus?

___A:___ A terminal illness!
 -->
Naming Your Functions.. Get in the VAN!
Tags: variables, naming, conventions, mistert
Published: 2021-01-19 13:00:09

---
title: Naming Your Functions.. Get in the VAN!
published: true
description: A simple and handy convention for naming functions
tags: variables, naming, conventions, mistert
// cover_image: ![Get in the VAN](https://dev-to-uploads.s3.amazonaws.com/i/u9i8fy936ztotilf5qdx.jpeg)
---
![Get in the VAN](https://dev-to-uploads.s3.amazonaws.com/i/u9i8fy936ztotilf5qdx.jpeg)

If there's one thing I like.. it's code readability, consistency and acronyms and grammar. A convention I (possibly) came up with for naming functions makes this often brain-bending task fairly painless. 

**V.A.N. - Verb, Adjective, Noun**

Eg:
```
getAngryBirds()
findLostTreasure()
removeUnwantedHair()
slayEvilDragon()
playKillerSolo()
patFriendlyDog()
decryptGovernmentDatabase()
killWhiteWalker()
```

In cases where an adjective is not applicable.. I fall back to Verb, Noun.

Eg:

```
getBirds()
findTreasure()
removeHair()
slayDragon()
playSolo()
patDog()
decryptDatabase()
killWalker()
```

Pluralisation should also be used to appropriately reflect the entity being used.

Enjoy `nameNextFunction()`
How to make a POST Request to Worpdress??
Tags: help, question, wordpress, javascript
Published: 2021-01-19 12:46:23

At the moment I'm using [Wordpress](https://wordpress.org/) as a Headless CMS with the frontend using [Nuxt.js](https://nuxtjs.org/). Most of the time I use Wordpress to **write** the data and Nuxt to **fetch** it into the client with the REST API of Wordpress (WP).

I'm currently working on a new blog. I made a *coming soon* page where users can subscribe to get notified when the blog is live. With the WP plugin `JSON Basic Authentication`, I succeed to make a POST request to the WP backend with Postman:
![Postman example](https://dev-to-uploads.s3.amazonaws.com/i/o8sb38iqmk5hjyiib488.PNG)

However by implenting and trying the POST Request into the Nuxt frontend, the browser gives the error `Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR`. See image below:
```js
submitSubscriber(email) {
        var clientId = "....";
        var clientSecret = "....";

        var authorizationBasic = window.btoa(clientId + ':' + clientSecret);

        var myHeaders = new Headers();
        myHeaders.append("Authorization", "Basic " + authorizationBasic);
        myHeaders.append("Content-Type", "application/x-www-form-urlencoded");
        myHeaders.append("Cookie", "wordpress_test_cookie=WP+Cookie+check");

        var urlencoded = new URLSearchParams();
        urlencoded.append("fields[email]", "randomemail@hotmail.com");

        var requestOptions = {
          method: 'POST',
          headers: myHeaders,
          body: urlencoded,
          redirect: 'follow'
        };

        fetch("https://domainname.nl/wordpress/wp-json/wp/v2/subscribers", requestOptions)
          .then(response => response.text())
          .then(result => console.log(result))
          .catch(error => console.log('error', error));
}
```

I tried using different forms of the request (like with axios) and also changed the `.htaccess` file of the Worpdress site to allow all origins (just for testing), but even that didn't work:
```
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
```

Hopefully someone can help me and maybe explain where it goes wrong. Thanks in advance
Kinx v0.19.3 Preview Released
Tags: kinx, javascript, ruby, debugger
Published: 2021-01-19 12:57:01

Hello everybody!

I published Kinx v0.19.3 preview release. It newly supported a Debugger. A Debugger manual is [here](https://kray-g.github.io/kinx/utility/debugger.html)

* Reference
    * First motivation ... [The post of introduction](https://dev.to/krayg/kinx-as-a-script-language-4iko)
        * Kinx, I wanted a scripting language with a syntax of C family.
    * Repository ... https://github.com/Kray-G/kinx
        * I am waiting for pull requests.

If you have some kind of interest on it and you want to try to use it, don't hesitate to use it.

Thank you in advance.

See you!
Cara Termudah Untuk Transfer Pulsa Indosat
Tags: transfer, pulsa
Published: 2021-01-19 12:49:20

Transfer pulsa dapat dilakukan dengan dua cara yaitu melalui SMS dan telepon. Keduanya memberikan kemudahan, jadi Anda tidak perlu mengacaukan langkah-langkahnya. Ini adalah cara untuk melakukannya:

Cara mentransfer uang melalui SMS

Tidak butuh waktu lama untuk mentransfer pulsa Ooredoo melalui SMS.
Hanya dengan mengirim pesan ke nomor layanan yang disediakan, kredit akan segera ditransfer.
Berikut ini langkah-langkah yang perlu Anda lakukan untuk transfer pulsa via SMS:

• Buka menu pesan dari smartphone Anda. Buat pesan baru dan masukkan SMS dengan format sebagai berikut: Transferpulsa (spasi) nomor tujuan (spasi) jumlah yang ingin Anda transfer. Contoh: Transferpulsa 085643123456 20000
• Setelah memasukkan format, kirim SMS ke nomor 151.
• Ikuti instruksi yang ditampilkan di layar ponsel, dan Anda akan menerima kode token.
• Gunakan token format "OK" (spasi) untuk mengirim kode token ke nomor 151. Contoh: OK 1234.
• Silakan tunggu sebentar. Jika berhasil, Anda akan diberitahukan oleh operator. Biaya transaksi untuk proses ini adalah Rp 600.

Cara Transfer Pulsa Indosat via Telepon

Anda juga dapat mengirimkan pulsa kartu Indosat melalui telepon.
Bagi yang malas mengetik SMS atau takut salah memasukkan nomor, cara ini mungkin bisa jadi pilihan terbaik.
Baik itu Matriks Ooredoo, Mentari Ooredoo atau IM3 Ooredoo, pelanggan kartu prabayar dan pascabayar Indosat dapat menggunakan telepon untuk transfer kredit.
Mentransfer kredit juga mudah dengan cara ini, karena Anda hanya perlu mengikuti petunjuk di layar.
Untuk memahami lebih jelas cara transfer pulsa antar Indosat, mohon perhatikan langkah-langkah berikut ini:

•	Untuk pelanggan prabayar kartu indosat silahkan buka menu telpon, lalu tekan * 123 * 7 * 2 * 3 * 1 #, lalu tekan tombol panggil. Ikuti instruksi di layar ponsel.
•	Jika Anda menggunakan kartu prabayar Indosat, tekan * 123 * 7 * 1 * 6 * 1 #, lalu ikuti petunjuk yang ditampilkan di layar untuk melanjutkan.
•	Kredit yang Anda kirimkan akan ditambahkan ke masa berlaku kartu penerima.
 

Buat Anda yang tidak tahu bagaimana cara transfer pulsa indosat ke telkomsel bisa baca artikel berikut ini, https://abduweb.com/cara-transfer-pulsa-indosat-ke-telkomsel/
Machine Learning
Published: 2021-01-19 12:48:48

Machine learning (ML) is the study of computer algorithms that improve automatically through experience.[1] It is seen as a part of artificial intelligence. Machine learning algorithms build a model based on sample data, known as "training data", in order to make predictions or decisions without being explicitly programmed to do so.[2] Machine learning algorithms are used in a wide variety of applications, such as email filtering and computer vision, where it is difficult or unfeasible to develop conventional algorithms to perform the needed tasks.

A subset of machine learning is closely related to computational statistics, which focuses on making predictions using computers; but not all machine learning is statistical learning. The study of mathematical optimization delivers methods, theory and application domains to the field of machine learning. Data mining is a related field of study, focusing on exploratory data analysis through unsupervised learning.[4][5] In its application across business problems, machine learning is also referred to as predictive analytics.
Machine learning involves computers discovering how they can perform tasks without being explicitly programmed to do so. It involves computers learning from data provided so that they carry out certain tasks. For simple tasks assigned to computers, it is possible to program algorithms telling the machine how to execute all steps required to solve the problem at hand; on the computer's part, no learning is needed. For more advanced tasks, it can be challenging for a human to manually create the needed algorithms. In practice, it can turn out to be more effective to help the machine develop its own algorithm, rather than having human programmers specify every needed step.[6]

The discipline of machine learning employs various approaches to teach computers to accomplish tasks where no fully satisfactory algorithm is available. In cases where vast numbers of potential answers exist, one approach is to label some of the correct answers as valid. This can then be used as training data for the computer to improve the algorithm(s) it uses to determine correct answers. For example, to train a system for the task of digital character recognition, the MNIST dataset of handwritten digits has often been used.
Creating Web Applications in Node.js with Express.js 
Tags: html, node, express, templateengine
Published: 2021-01-19 12:40:57

Please the check full post here 

https://firstexpresswebsitewithnode98.blogspot.com/2020/12/creata-hello-world-using-expressjs-and.html

https://youtu.be/-hMoR6HbM3w
5 Features That Make Laravel Framework the Best
Tags: laravel, php, webdev
Published: 2021-01-19 12:39:22

Laravel happens to be amongst the most well-known, proficient, and widely used open-source framework at present. It consists of various features like MVC architecture support, artisan tool, template engine, database migration system, top security, and so forth. All these features help to make Laravel development services stand above the rest on the market.
Below, we have mentioned the top 10 features which help to make Laravel the best out there.

 
1. Template Engine

We all know Laravel for the inbuilt lightweight templates that come with it, and which are used to create amazing layouts with dynamic content seeding. Laravel also offers many widgets integrating JS and CSS code. The templates have been designed smartly for creating composite and straightforward layouts with segments that simplify the developers’ tasks.

 
2. Artisan

An inbuilt tool is offered by Laravel is referred to as Artisan that helps to perform most of the repetitive and tedious programming tasks that the PHP developers usually avoid. The artisans can likewise be used to create a skeleton code, the structure of the database, and develop their migration, making it relatively easy to manage the database system. Apart from this, it can also generate MVC files directly with the help of the command line and take care of all those assets along with their configurations. Developers can also use the Artisan for creating their commands.

 
3. MVC Architecture Support

The MVC architecture pattern is backed by Laravel, which helps to separate the basic business logic and presentation layers. Laravel’s MVC pattern comes with several inbuilt functions that help improve the application’s performance and enhance the security levels together with scalability.

 
4. OO Libraries

Lots of facilities are provided by Laravel for the developers with the help of Object-Oriented Libraries. Unlike other PHP frameworks, these are available only in Laravel. This pre-installed library comes with several innovative features such as verifying active users, hashing, resetting passwords, encryption, and so on.

 
5. Eloquent Object Relational Mapping

Eloquent ORM (Object Relational Mapping) is offered by Laravel, which includes implementing a simple PHP Active Record. The web app developers can use this functionality for writing database queries by using PHP syntax rather than writing SQL code. As compared to the earlier PHP frameworks, ORM is somewhat quicker.

Learn more another top 5 features of Laravel Framework here: https://www.rlogical.com/blog/10-features-that-make-laravel-framework-the-best/