teleren/devto huggingface dataset:
I started a new JavaScript Course for Beginners 🔥
Tags: javascript, webdev, beginners
Published: 2021-10-25 16:57:08

This is a course I wish I had when I started learning JavaScript. We are going to cover JavaScript Core concepts in a step by step manner. New uploads on Tuesdays and Fridays at 3pm EST. Click this link to join me on the ride [JavaScript Core Concepts](https://youtube.com/playlist?list=PL63c_Ws9ecIQyTM5yNlSXl4TC6YpFSVa9)
Computer Science
Tags: career, news, help, beginners
Published: 2021-10-25 16:53:26

Computer Science: 
Computer science, the study of computers and computing, including their theoretical and algorithmic foundations, hardware and software, and their uses for processing information. The discipline of computer science includes the study of algorithms and data structures, computer and network design, modeling data and information processes, and artificial intelligence. Computer science draws some of its foundations from mathematics and engineering and therefore incorporates techniques from areas such as queueing theory, probability and statistics, and electronic circuit design. Computer science also makes heavy use of hypothesis testing and experimentation during the conceptualization, design, measurement, and refinement of new algorithms, information structures, and computer architectures.
Computer science is considered as part of a family of five separate yet interrelated disciplines: computer engineering, computer science, information systems, information technology, and software engineering. This family has come to be known collectively as the discipline of computing. These five disciplines are interrelated in the sense that computing is their object of study, but they are separate since each has its own research perspective and curricular focus. (Since 1991 the Association for Computing Machinery [ACM], the IEEE Computer Society [IEEE-CS], and the Association for Information Systems [AIS] have collaborated to develop and update the taxonomy of these five interrelated disciplines and the guidelines that educational institutions worldwide use for their undergraduate, graduate, and research programs.)
The major subfields of computer science include the traditional study of computer architecture, programming languages, and software development. However, they also include computational science (the use of algorithmic techniques for modeling scientific data), graphics and visualization, human-computer interaction, databases and information systems, networks, and the social and professional issues that are unique to the practice of computer science. As may be evident, some of these subfields overlap in their activities with other modern fields, such as bioinformatics and computational chemistry. These overlaps are the consequence of a tendency among computer scientists to recognize and act upon their field’s many interdisciplinary connections.
How to Receive Telegram Alerts for High CPU and RAM Server Usage
Tags: bash, telegram, cli, linuz
Published: 2021-10-25 16:53:03

This is a simple bash script that monitor the server CPU (Load Average), RAM usage, check the systemctl services status and send an alert to telegram user if the RAM/CPU usage is greather then limit or a service is failed.

**Requirements** 
- A Server with systemd and root privileges
- A [bot telegram](https://core.telegram.org/bots#3-how-do-i-create-a-bot) and a [telegram user chat id](https://core.telegram.org/bots#3-how-do-i-create-a-bot)

**Installation**
[Clone this repo](https://github.com/alfiosalanitri/server-guardian)

**Usage**
[Follow this steps](https://github.com/alfiosalanitri/server-guardian#how-to-use)
removing lodash
Tags: javascript, opensource, npm
Published: 2021-10-25 16:33:24

![pruning](https://media.giphy.com/media/k9yS4LbpiVmtG/giphy.gif)

The Open Sauced project leverages a user's open-sauced-goals repo as a data store.  At some point before I started contributing, the project began using more than the issues list to store data. In working toward a richer data set (I assume), the project began leveraging a file called `data.json` to store additional information about repos that the user intends to contribute to, such as `stargazers_count`, `open_issues_count`, and `forks_count`. 
![open-sauced-goals data.json](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9o0lr13q7xqixmpslopt.png)
This file is updated using GitHub actions every few days, and also as triggered when someone adds or removes goals (creates an issue or closes an issue).

The way this data interweaves with the issues list has some edge cases that I had been becoming more familiar with and my attention was drawn to the use of the lodash library's merge function in blending the data from the issues list and from the `data.json` file. 

To see how this worked, you can go to https://codepen.io/travist/full/jrBjBz/ and put this in the code input and click "Execute":
```js
var issues = [
  {title:"actions/typescript-action",description:"want to make some sweet actions",issue_number:1},
  {title:"nickytonline/epic-actions",description:"want to make some sweet actions",issue_number:2},
//  {title:"open-sauced/actions",description:"help with the monorepo management",issue_number:3}
];
var otherData = [
  {full_name:"actions/typescript-action","stargazers_count":873,"open_issues_count":13,"forks_count":208},
  {full_name:"nickytonline/epic-actions","stargazers_count":3,"open_issues_count":2,"forks_count":0},
  {full_name:"open-sauced/actions","stargazers_count":3,"open_issues_count":2,"forks_count":1}
];
result = _.merge(issues,otherData);
```
The commented line shows the theoretical effect of "removing" a goal (= marking the issue as closed in the open-sauced-goals repo).  The problem with what you see is that the issues list should be the single source of truth and the information coming from `data.json` should be supplemental for display purposes.  As this was, the 3rd item would be missing the "issue_number", so it shouldn't really be in the list. In the brief period of time after removing a goal, when the `data.json` was not up to date and the user interface was still up, the `merge` function would not serve us well here.   

I tried to replace this function with something more appropriate and I happened to notice that this one and the `sortBy` function were the only parts of the codebase where we used the `lodash` library directly.  I took the opportunity to replace both and drop this library from our direct dependencies, and that's what I was doing in https://github.com/open-sauced/open-sauced/pull/1156

Stay tuned later this week for another edge case that I got to work with GitHub actions some, and learn a little bit about managing multiple repos!
SQL vs NoSQL Databases
Tags: database, sql, nosql
Published: 2021-10-25 16:16:44

![sqlvsnosql](https://miro.medium.com/max/1012/1*yYKwVI81AiZA78NJySgRYQ.png)

## SQL
* Relational database management system (RDBMS)
* These databases have fixed or static or predefined schema
* These databases are not suited for hierarchical data storage.
* These databases are best suited for complex queries
* Vertically Scalable
* Example - MySQL, PostgreSQL, Oracle

## NoSQL
* Non-relational or distributed database system.
* They have dynamic schema
* These databases are best suited for hierarchical data storage.
* These databases are not so good for complex queries
* Horizontally scalable
* Example - MongoDB, Cassandra, Redis
SwiperJs with Nuxtjs v2
Tags: swiperjs, tutorial, beginners, nuxt
Published: 2021-10-25 16:03:03

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tirhurwo7p0ct3ey7ven.jpeg)
Welcome everyone! Today I wanna talk about Sliders in Nuxt JS.

While making a website on **NuxtJs** I found it a bit complicated to make **Swiper Js** work with it.
Of course, there is a plugin called **vue-awesome-swiper**, but actually it is outdated and works good with Swiper v3-5 only.

##But what if you want to use Swiper v6?
I found an easy and working the solution! It's actually was written on official website.... 
Ok -_-

Simply install swiper v6 with
```npm i swiper@6``` or yarn, import it into the project and init it in `mounted` lifecycle hook as written [in official docs here](https://swiperjs.com/get-started). The manual is now for v7 but it actually works.

For those who still have some problems with it  you can find a full code on my [github page](https://github.com/seosmmbusiness/NuxtJs-SwiperJs)


Unfortunately, you cannot do that with Swiper v7, due to old webpack in Nuxt.
Hope Nuxt3 will become working for production and we will be ready to use Swiper with it.... 
soon.

Ps. The post image was found in Google Search by keyword `sliders`  hahaha
How cryptography 💪works to protect ML models
Tags: security, cryptography, riskmanagement, machinelearning
Published: 2021-10-25 16:01:07

> Let’s speak about [Machine Learning and cryptography] (https://www.youtube.com/watch?v=rj5zbIleekA&t=5s&ab_channel=NoNameCon). Are they a match? {% details spoiler: %} yep {% enddetails %}

**Let’s imagine that you are in ML.**
You trained fantastic ML models that add cat’s ears =^..^= (*nekomimi*) to all people on the video. You decided to make an app for that! Suddenly, your app became popular, and some people wanted to copy it. So, it would be best to protect your ML models from leakage and misuse.

**Simplified, it works like this:** users upload their videos to your app. Your app takes them to your backend, which generates a video-specific ML model, and then sends it back to the app. Then your application stores and executes it.

Being a 💪 security pro, you understand that ML models need protection. But **from a data security perspective ML model is a… just file with model data and procedure/algorithm**. So, you’re to adjust your security efforts and protect those tiny ML models—from their generation point to their usage.

![IML dataflow, by Anastasiia Voitova, Cossack Labs](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z611h7ye9m1jhnj5ug14.png)

You carefully add encryption: the backend will encrypt each ML model per user per video using ephemeral keys and [an HPKE-like approach] (https://datatracker.ietf.org/doc/draft-irtf-cfrg-hpke/). It means that every ML model will be explicitly encrypted for specific videos by your backend code. This approach is known as [application-level encryption (ALE)] (https://www.infoq.com/articles/ale-software-architects/).

Your mobile apps will receive an encrypted model and decrypt it before usage. **Each ML model is encrypted by a unique encryption key used only once to make things complicated for attackers.**

![Encryption layer: solutions, by Anastasiia Voitova, Cossack Labs](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7a1xp3gjdb66vmo4l5g2.png)

Indeed, you don’t want to leave encryption alone.

So, you add multiple protection measures: use Keychain/Keystore on a device, add logging and monitoring on a server, and an anti-fraud system that prevents sending ML models to untrusted users.

![Anti-fraud system 201, by Anastasiia Voitova, Cossack Labs](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nyflukqb6c6xp87v5f4q.png)

Curious to learn details?

Dive into the full video—to learn more about cryptography, cloud storage security, API protection, anti-fraud system, etc.

{% youtube rj5zbIleekA %}
Sounds too complicated as for protecting =^..^= cat-ears ML model?

Well, imagine a financial analytics ML model instead. We built specific ML-protection technologies several times, as it was exciting every time.

---
Say hi to [@vixentael] (https://twitter.com/vixentael) and follow @CossackLabs for data security updates on [Twitter] (https://twitter.com/cossacklabs), [YouTube] (https://www.youtube.com/channel/UCQbAyrwHKJ8QRDTOHs90O0g), [Linkedin] (https://github.com/cossacklabs), and our [website] (https://www.cossacklabs.com/). 👋🧡🔐
5 Best Free Email Marketing Tools List
Tags: tools
Published: 2021-10-25 15:58:37

Email marketing is a highly effective way to promote your business or online project. It’s also a very cost-effective means of promoting your website. So it’s no wonder that <a href="https://www.blogtriggers.com/2021/06/create-email-newsletter-widget-in-blogger.html">email newsletter</a> has become a common part of a large number of businesses strategies in recent years.

There are numerous tools that can help you with your email marketing. There are free tools and paid tools. Here is a list of 5 Free email marketing tools to help you with your email campaigns.

1) <a href="https://mailchimp.com/">MailChimp</a>
2) <a href="https://www.mailmunch.com/">MailMunch</a>
3) <a href="https://www.mailerlite.com/">Mailerlite</a>
4) <a href="https://www.hubspot.com/">Hubspot</a>
5) <a href="https://convertkit.com/">ConvertKit</a>

For More Stuff you can also See this <a href="https://in.pinterest.com/blogtriggers/">website</a>
How to emulate Ternary Operators of Javascript in Python.
Tags: programming, javascript, beginners
Published: 2021-10-25 15:47:11

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dqcnorw8eqfgvzcly1z0.png)
# First For Those Who don't know Ternary Operation
Ternary Operator is a easy and consize way of if-else 

Ok So lets flex some JS muscles.

The syntax in JS is something like this.

```let v = condition ? "True" : "False" ```

Here if condition is true. 
The value of the variable v becomes True. 
While if condition is false. 
The value of the variable v becomes False.

In Python's if-else it would be.
```
if condition:
    v = "True"
else:
    v = "False"
```


## Now To Emulate This in Python ?


```
ifTrue = "It is a True Value"
ifFalse = "It is a False Value"
trueValue = 432
c1 = [ifFalse, ifTrue][bool(trueValue)]
```


### Understanding The Code
So in simple if else it would be like this
```
if trueValue:
   c1 = ifTrue
else:
   c2 = ifFalse
```


**So How is this Happening?**
Now lets break it into pieces
`c1 = [ifFalse, ifTrue]` is a List. Do you agree?

c1[0] would be ifFalse.

c2[1] would be ifTrue.


> Agreed?
Now,

`bool(3)`  will give True in python

`bool(None)`  will give False in python


> Shall We Move on ?

Ok So 
```
a = [ifFalse, ifTrue]
c = a[bool(trueValue)]
```

 here if `bool(trueValue)` is `True` then it will get typecasted to integer which is 1.

And, Whats a[1] it's `ifTrue`.
While it its `False`. It will get typecasted to a[0] which is `ifFalse`.


This was a Long One but for short and helpful tricks
Follow [PythonZen On Instagram](https://www.instagram.com/pythonzen/)


[Try it Here](https://rebrand.ly/a7p8wz7)
Today's best articles @25-10-2021 #filteredContent
Tags: filteredcontent, ai, machinelearning
Published: 2021-10-25 15:36:39

1️⃣ Sitting too much also drags down your mental health. Here's how to get moving
          * [npr.org/...](https://www.npr.org/sections/health-shots/2021/10/16/1034201715/home-workout-exercise-tips)

2️⃣ Microsoft and Nvidia build largest ever AI to mimic human language
          * [newScientist.com/...](https://www.newscientist.com/article/2293943-microsoft-and-nvidia-build-largest-ever-ai-to-mimic-human-language/)

3️⃣ Why we place too much trust in machines
          * [bbc.com/...](https://www.bbc.com/future/article/20211019-why-we-place-too-much-trust-in-machines)

5️⃣ How to Learn Python for Machine Learning
          * [machineLearningMastery.com/...](https://machinelearningmastery.com/how-to-learn-python-for-machine-learning/)

6️⃣ Cube.js an Analysis API
          * [gitHub.com/...](https://github.com/cube-js/cube.js)

7️⃣ Help look for planets
          * [arstechnica.com/...](https://arstechnica.com/science/2021/10/zooniverse-wants-to-turn-you-into-a-planet-hunter/)
What does .NET Core mean to you?
Tags: dotnet, aspnet, csharp, discuss
Published: 2021-10-25 15:18:54

---
title: What does .NET Core mean to you?
published: true
description: Tell us what .NET Core means to you, why are you excited about it?
tags: dotnet, aspnet, csharp, discuss
---
I recently wrote about my [thoughts and tips on moving from Umbraco 8 to Umbraco 9](https://swimburger.net/blog/umbraco/thoughts-and-tips-on-moving-to-umbraco-9-from-umbraco-8). The massive change in Umbraco 9 is that the CMS is now built on top of ASP.NET Core (.NET 5).
This made me wonder, why exactly am I so excited about Umbraco moving to .NET Core? What does the transition from .NET Framework to .NET Core mean to a .NET Developer?

I can think of a whole host of things in addition to what I wrote in my blog post, but this is what came to mind when I wrote it:
> This evolution of the .NET ecosystem has been a liberation in my opinion. You have a choice in operating systems, a choice in IDEs and editors, and the entire platform has become open and much faster.

**I'd like to hear from other .NET Developers, what does the transition from .NET Framework to .NET Core mean to you?**
1 line of code: How to check if an Array is empty
Tags: javascript, webdev, productivity, codequality
Published: 2021-10-25 15:17:19

```javascript
const isEmptyArray = ({ length }) => length === 0;
```
Assumes that the given argument is an Array and checks if it has entries. 

Returns:
- a boolean `false` if the array is not empty
- a boolean `true` if the array is empty



---

## The repository & npm package

You can find the all the utility functions from this series at [github.com/martinkr/onelinecode](https://github.com/martinkr/onelinecode)
The library is also published to [npm as @onelinecode](https://www.npmjs.com/package/@onelinecode/onelinecode) for your convenience.

The code and the npm package will be updated every time I publish a new article.

---

Follow me on [Twitter: @martinkr](http://twitter.com/_martinkr) and consider to [buy me a coffee](https://www.buymeacoffee.com/martinkr)

Photo by [zoo_monkey](https://unsplash.com/@zoo_monkey) on [Unsplash](https://unsplash.com/s/photos/fuji)

---
Page Object Pattern + Reusable Functions in Cypress
Tags: engineeringmonday, cypress, testing, testautomation
Published: 2021-10-25 14:49:33

####If you have ever wished to have more structured, reusable, and readable automated tests, you should have started with the Page Object Pattern.
<b>
<b>


#####Page Object Pattern

Page Object Pattern is basically removing all the page information from your actual test and grouping them together considering their location on your web page. For example, you can take all the selectors that you have on the homepage of your web and put them in one class, give them more meaningful names and then call them in any of your tests ...

Imagine your homepage went through a design and development modification that impacted your selectors to change, you would need to go through all of your tests and change the same selector in all the places. However, with the page object pattern, you change the selector only in one place - in the class that you have created for the homepage selectors. There, you saved yourself a lot of time and made sure that there won't be some forgotten, unchanged, and obsolete selectors in one of your tests.

####Adding More of Reusability

Nevertheless, you can make your tests even more structured, reusable, understandable, and easier to maintain, by adding custom commands and reusable functions to them. The same way I made a class for homepage selectors I also made a class for all the functions from the homepage, that are used all over the different tests. For example, if I had 5 different tests/test cases where a user fills out the same form, I wouldn't be needed to copy/paste Cypress code to every each of the tests but I'd reuse the already written functions.

Example how my Cypress test would look like with the page object pattern and reusable functions:

```
describe("Fill out user satisfaction form", function () {

    it("Check if the user can fill out the form", function () {
        cy.visitFormsPage();
        cy.userAcceptsTerms();
        cy.userFillsOutsTheForm();
        cy.formFilledOutCorrectlyAssert();
    });
});
```

<b>
<b>
##### All together now

Combining page object pattern and reusable functions gave me a whole new perspective of the tests. Not only are they easier to use and maintain, but they also look very neat and easier to understand for my other colleagues, even non-technical members of the team. In the beginning, you need to spend a bit more time on the setup but later on, you will see that the effort is paid off.

Feel free to share with me some of your "reusability" secrets.
Loopple - Product Hunt Launch
Tags: product, javascript, webdev
Published: 2021-10-25 14:43:57

Hi Coders,

It’s been about 9 months since I started working on [Loopple](https://www.loopple.com/). During this time, a lot of changes have been made and I worked hard on offering the best possible dashboard builder experience.

Loopple is a dashboard builder that helps developers to create beautiful admin panels in minutes. The editor will help you speed up the development process and will provide you with an easier way to prototype your dashboards layouts.

Today I launched Loopple on Product Hunt and I am more than happy that is featured and #1.

Links:
- Loopple on Product Hunt: https://www.producthunt.com/posts/loopple
- Loopple Website: https://www.loopple.com/

Thank you!
Latest SQL Interview Question
Tags: sql, career
Published: 2021-10-25 14:42:38

In this article, we are going to discuss all those questions which are frequently asked during SQL interviews. We will start from the basics then move to the advanced level and also discuss some essential queries often used in SQL management. so let’s discuss [SQL Interview Questions and Answers](https://www.techgeekbuzz.com/python-program-to-add-two-matrices/).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/doxt828uido8nfqu8x00.png) 

Here is the list of questions:

1. What is Data?
2. What is a Database?
3. What is SQL?
4. What is the latest version of SQL?
5. What is DBMS?
6. Name the different types of DBMS.
7. Give some Key Features of SQL
8. What is RDBMS?
9. How DBMS is different from RDBMS?
10. Name some RDBMS software that uses SQL.
11. What is a Table in SQL?
12. What Does a JOIN clause do in SQL?
13. Name the different types of JOINS in SQL
14. How SQL is different from a programming language?
15. Name the different Datatypes of SQL.
16. How the VARCHAR is different from the CHAR?
17. Name the various DBMS languages.
18. Define DDL and name all the tasks performed by DDL.
19. Explain DML and name its tasks.
20. How DELETE clause is different from the TRUNCATE?

## Conclusion

SQL always remains in demand and uses, right now mostly all the dynamic web-application use a SQL Database Management system to manage their application content and data. It does not matter which programming language you use there is an integration present for every programming language which helps in creating and managing SQL database.
STOP DECODING THAT HTML, you h4xx0r!
Tags: jokes, podcast, management, startup
Published: 2021-10-25 14:39:19

The council discusses a problem barely any developer has, BAD MANAGERS! Then we play a game: is a mission statement from a tech company, or a misbehaving non-tech company?

Check out our episode, and DON'T YOU DARE inspect this page's html, you criminal hacker!

{% spotify spotify:episode:1cIhOYZBjCyDFici2Vat60 %}