teleren/devto huggingface dataset:
Cloud Computing with AWS
Published: 2020-09-15 16:45:32

•Cloud Computing:
Cloud computing is the on-demand delivery of compute power, database storage,applications, and other IT resources through
a cloud services platform via the Internet with pay-as-you-go pricing.

•Types of Cloud Computing:
1)Infrastructure as a Service (IaaS):Focus on computers, networking features and storage database.
2)Platform as a Service (PaaS):Focus on deployment and management of applications.
3)Software as a Service (SaaS):
Software as a Service are referring to end-user applications. 

•AWS:
Amazon Web Services
AWS is a comprehensive, evolving cloud computing platform provided by Amazon that includes a mixture of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings.

•Why it is such a Hit?
-Per hour billing (microbilling)
-Easy sign up process
-Simple billing
-stability
-Trusted Vendor

•AWS Services:
Storage-S3 provides scalable object storage for data backup, collection and analytics.

Database management- Managed data solutions for use cases requiring multiple data formats.

Compute- services replicating the traditional role of lagical physical servers for the cloude.

Networking-Applications connectivity, access control and enhanced romote connection.

Application management-Monitoring, auditing and configuration AWS account services and running resources.

Security and identify-Services for managing authentication and data authorization.

•Benifits of AWS:
-Cost Effective
-Scalability
-Security
-Flexibility

•Commanly used Services:
1)EC2(Elastic compute cloud)-This service gives to our machine which you can launch and run your software on those.

2)VPC(Virtual private cloud)-Crate network on cloud and then run the server in those network.

3)S3(Simple storage service)-For file storage and sharing service.

4)RDS(Relational database service)-allows to run and manage the database on cloud.

5)ELB(Elastic load balancing)

6)Autoscaling
AzureFunBytes - Office Hours with @jaydestro on @Azure, DevOps, more...
Tags: azure, microsoft, beginners, tutorial
Published: 2020-09-15 16:44:54

Welcome to my office hours.  I'll be spending some time with you while I do some cleanup - feel free to ask questions or even jump into the video chat.  Happy to have you take part in fixing a problem or learning about @Azure.

{% youtube TRsKAGOlXeg %}

AzureFunBytes! - Byte-sized content with a live Twitch show!

Learn about Azure fundamentals with me!

Live stream is available on Twitch at 2 pm EDT Thursday. You can also find the recordings there as well.

https://twitch.tv/azurefunbytes
https://twitter.com/azurefunbytes

Join me, ask questions, and learn about Azure!


Useful Docs:
[Microsoft Learn: Azure Fundamentals](https://cda.ms/1jV) 
[Microsoft Azure: $200 Free Credit](https://cda.ms/1tj) 
[Infrastructure as Code](https://cda.ms/1z6)
[ARM template documentation](https://cda.ms/1zk)
[What are ARM templates?](https://cda.ms/1zn)
[Frequently asked questions about ARM templates](https://cda.ms/1zm)
Placeholder title
Tags: actionshackathon
Published: 2020-09-15 16:41:38

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon, please fill out all sections.)


### My Workflow
I use GitHub Actions to publish my Hugo-based Static Site personal blog to Azure Static Web Apps using GitHub Actions. As part of this workflow, I also automate amplification of social media of the new blog post

### Submission Category: 
DIY Deployments



### Yaml File or Link to Code
https://github.com/isaacrlevin/LevinBlog/blob/main/.github/workflows/azure-static-web-apps-witty-pond-0404a9d1e.yml



### Additional Resources / Info
https://github.com/isaacrlevin/LevinBlog
Build Flutter Apk
Tags: actionshackathon
Published: 2020-09-15 16:32:03

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon, please fill out all sections.)

![Github Action Flutter](https://miro.medium.com/max/3000/1*doBOov6IGNg5uMInmJ9VTQ.png)

### My Workflow
[Note]:  Using this Github Action you can build apks fast and of small size on every push or pull at Github.(To be noticed it takes very less time as compared to Android Studio building apk.)


### Submission Category: 

[Note]: Maintainer Must-Haves and Phone Friendly, this Github action comes under both these categories.


### Yaml File or Link to Code

[Note]: [Yaml File or Link to Code](https://github.com/piyush9311/astra) 


### Additional Resources / Info:

[Note]: {% user piyush9311 %}
{% user anu725053 %}
Leetcode September Day15
Tags: python, computerscience
Published: 2020-09-15 16:27:49

Problem
>Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word (last word means the last appearing word if we loop from left to right) in the string.

If the last word does not exist, return 0.

Note: A word is defined as a maximal substring consisting of non-space characters only.

Example - 
"""
Input: "Hello World"
Output: 5
"""
Approach - This is a fairly straightforward question. We iterate over the string , find the last word and return it's length.
Solution - 
```
class Solution:
    def lengthOfLastWord(self, s: str) -> int:
        return len(s.rstrip().split(" ")[-1]) if s else 0
```
Here, `rstrip()` removes the trailing spaces from  a string. `split(" ")` splits the string by `" " (spaces)` and returns an array.
The reason why I chose Tailwind over Bootstrap
Tags: webdev, css, frameworks, frontend
Published: 2020-09-15 16:10:19

## Summary
In this blog post I will talk about the reason why I chose tailwind over bootstrap while building my portfolio website I will give some things that I liked and didn't liked in both frameworks

---
## Introduction
I've been wanting to redesign my portfolio website since it hasn't been update for almost a year. I'm used to creating my UI designs completely from scratch since using framework/tools give me headache. Now I wanted to level up my game using CSS frameworks.

---
### Bootstrap
I've been playing around with CSS frameworks in the past couple of months I first got introduced on **Bootstrap** by google.com since it was "The most popular HTML, CSS, and JS library in the world." The first problem that I had using Bootstrap was, it is hard to customize the look and feel of my website while using it. The things that I liked about bootstrap is its built-in UI component and it's awesome plugins made by other developers.

### Tailwind
After using Bootstrap I gave up working on my portfolio and worked on other side projects. After a couple of months I gained back my motivation on finishing my portfolio finally I looked up some CSS frameworks and I got into Tailwind's website and I got fell in love with it immediately because first of all, The documentation is really really really good it took me just a couple of hours to understand how things works. The things that I liked on this framework is it has no default theme meaning, I can easily customize the colors with just a few lines of code, You can literally style your page just in your HTML file

After a couple of research I came across with this really great article which really gave me a motivation to not look back on Bootstrap ever again. 

{% link https://dev.to/tracycss/tailwind-css-resources-you-wish-you-had-3i18 %}

I highly recommend reading the article above if you'll ever want to use Tailwind.

[Here is the result of my portfolio using Tailwind](https://jabo-bernardo.github.io)

## Conclusion
Both frameworks are great both have pros and cons I'll definitely use either of them in the future!
Svelte and Tailwindcss Slider 
Tags: tailwindcss, webdev, javascript, svelte
Published: 2020-09-15 16:01:31

# Svelte and Tailwind Slider component

Form range (slider) component built with svelte and tailwindcss

# Installation
```bash
    $npm i -D @fouita/slider
```

# Usage

## Single value range

![slider fouita](https://cdn.fouita.com/assets/pics/template/slider/slider-simple.jpg)

> image slider-simple


```html
<script>
	import Slider from '@fouita/slider'					
	let value = 21
</script>

<div class="p-6 text-3xl text-center">
	{value}	
</div>
<Slider class="mt-5 mx-6" min={0} max={30} bind:value />
```

## Multi value range

Multi values works with array of two values, like the following

![slider fouita](https://cdn.fouita.com/assets/pics/template/slider/slider-range.jpg)

```html
<script>
	import Slider from '@fouita/slider'					
	let value = [10,21]
</script>

<div class="p-6 text-3xl text-center">
	{value}	
</div>
<Slider class="mt-5 mx-6" min={0} max={30} bind:value />
```

## With tooltip

By adding `tooltip` prop we can show the value when sliding

![slider fouita](https://cdn.fouita.com/assets/pics/template/slider/slider-tooltip.jpg)


```html
<Slider tooltip min={0} max={30} bind:value />
```

We can show the tooltip when hovering over the slider pointer by adding `tooltip=hover`

```html
<Slider tooltip=hover min={0} max={30} bind:value />
```

## Custom color

We can change the color by adding `color` prop

![slider fouita](https://cdn.fouita.com/assets/pics/template/slider/slider-pink.jpg)

```html
<Slider tooltip=hover color=pink min={0} max={30} bind:value />
```

## Custom labels

To change the labels min/max we need to attribute `minLabel` & `maxLabel`. We can also remove them by using an empty string.

![slider fouita](https://cdn.fouita.com/assets/pics/template/slider/slider-mlabel.jpg)

```html
<Slider tooltip=hover minLabel='$0' maxLabel='Expensive' min={0} max={30} bind:value />
```

## Custom indicators 

To change the values on the tooltip we can add a value format by using `valueLabel` prop.
In case you need to use only one value (not a range) you can add a simple string `valueLabel="$%d"`

![slider fouita](https://cdn.fouita.com/assets/pics/template/slider/slider-vlabel.jpg)

```html
<Slider valueLabel={['%d €','%d €']} tooltip min={0} max={30} bind:value />
```

## Custom scale

We can use custom array of values and show the desired label when we hit a specific number.
Assuming a scale of skills `[basic, medium, advanced, expert]`

* 0-5 : basic 
* 5-15 : medium
* 15-25: advanced
* 25-30: expert

![slider fouita](https://cdn.fouita.com/assets/pics/template/slider/slider-scale.jpg)

```html
<script>
  import Slider from '@fouita/slider'

  let skill_level=['Basic','Medium','Advanced','Expert']
  let vlevel=10 // medium by default 

</script>

<Slider bind:value={vlevel} min={0} max={30} minLabel="Basic" maxLabel="Expert" valueLabel={skill_level[Math.round(vlevel/10)]} tooltip="hover" />

```

## Source Code

[Fouita slider](https://github.com/fouita/svelte-tw-slider)

## About

[Fouita : UI framework for svelte + tailwind components](https://fouita.com)
Scrum Style, Baby
Tags: codenewbie, career, agile, beginners
Published: 2020-09-15 15:41:19



In my previous life I was a project manager. It was a small company and we didn’t subscribe to a particular management format. The one time I did have professional input (a 1 day course run by an independent, self-styled “management guru” who openly deemed himself unemployable) he was quick to slate both PRINCE2 and Agile.

From a distance both of them have unintelligble jargon which seems off-putting and makes them vaguely mysterious. Now, learning more about Agile Scrum as part of the bootcamp I attend, it feels more like the opposite.

All the little meetings I had to have now have specific names. There are rules and guidelines for what happens within them and the human side of the team is understood - ie. it’s entirely possible that a room full of people on a rainy Monday morning during a tough project might not want to communicate with each other. This is anticipated and planned for. 

The management of a project in the past for me also involved managing the people; and that was not my favourite thing. In a small business you can become “HR” very quickly just by being a woman. [Opinion my own.] It was exhausting and distracting. This morning I spent learning about the role of the “scrum-master” in Agile software development teams; it wasn’t until the trainer spelled out that:

"The scrummaster has no authority over the other team members; their job is to make the environment as conducive to work as possible and allow team members to work to the best of their ability"

that I relaxed and realised that a) I wasn’t worried about having to potentially *be* scrum master at some point, and b) I was rather looking forward to *having* one. 

Small businesses have many benefits in flexibility and cameraderie; but often a lack of budget, time, or insight into strong management practices. I think after I “graduate” at the end of the year I will be applying to large companies in the hope I can experience a more sophisticated management and working team style than the one I’ve come from.

Do you work in an Agile team? Do you recommend it? Or is there a previous job where you felt that they got it right in terms of management style?
Qué es HMS
Published: 2020-09-15 15:36:55

HMS son los nuevos servicios móviles de Huawei y vienen integrados en todos los teléfonos de la compañía. Estos HMS son el equivalente a los Google Play Services (también conocidos como GMS) y te permitirán desarrollar aplicaciones que puedan ser publicadas en la Huawei App Gallery y usadas por millones de usuarios de Huawei alrededor del mundo.
Estas son algunas de las cosas que puedes hacer con HMS:

(Funcionalidad: Kit de HMS):
* Enviar notificaciones: Push
* Monetizar tus app con anuncios: Ads
* Desplegar mapas interactivos: Maps
* Acceder a servicios de ubicación: Location
* Ofrecer compras integradas: In App Purchases
* Inicio de sesión con Huawei: Account Kit

Además de HMS, como alternativa a los servicios de Firebase, encontraras disponibles los servicios de App Gallery Connect. Con los servicios AGC podrás hacer lo siguiente.

* Acceder a una base de datos en la nube: Cloud DB
* Administrar tu app remotamente: Remote Config
* Ejecutar funciones en la nube: Cloud Functions
* Liberar una versión Beta: Open Testing
* Ofrecer distintas opciones de inicio de sesión: Auth Service
* Recibir reportes de fallos: Crash … y más.

Incluso Huawei nos proporciona un servicio de Juegos para publicar y monetizar.

Game Service te ayuda a construir funciones básicas del juego, como logros, tablas de clasificación y salvar partidas. Puedes mejorar la eficiencia en las pruebas, la administración y el lanzamiento de tus juegos y asi siga atraer a los usuarios con una optimización continua basada en el análisis de datos del juego.
Ahora que sabes lo que significan HMS y AGC, puedes aprovecharlos para hacer crecer tu app y alcanzar un mayor número de usuarios.
Si tienes preguntas, puedes publicarlas aquí o en el foro oficial de desarrolladores de Huawei (solo preguntas en inglés):
[Huawei Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home)
Localise your NodeJS app easily with i18n
Tags: tutorial, javascript, node
Published: 2020-09-15 15:25:23

So, you have a NodeJS app, but you only have access to a small subset of people: those who speak your language. Or maybe you have translations, but they are inefficient to implement and take up valuable time you can be using for fixing issues or adding features. In this article, you will learn how to implement Localazy to your NodeJS project.

Localazy is a translation management platform and it's a great option for developers because of two key features:
- It comes with ShareTM allowing you to automatically translate your app into 80+ languages for free by sharing translations with other developers.
- With its CLI, it can be easily integrated into any workflow. And we are using the CLI today.
 
By the way, this tool is **free**. Pretty cool, right?

# Part 1 - Getting Ready

Create a [Localazy](https://localazy.com) account and follow prompts. Create an app, add your languages, and add translators.

Now, [install](https://localazy.com/docs/cli/installation).

Create a file called `localazy.json` and paste the following. Make sure to gather your keys!
```json
{

  "writeKey": "your-apps-write-key", 
  "readKey": "your-apps-read-key",

  "upload": {
    "type": "json",
    "files": "locales/en.json"
  },

  "download": {
    "files": "locales/${lang}.json"
  }
  ```

Now, we can upload translations. Create `en.json` and edit as needed.
```json
{
"appName": "Your Cool App",
"error": "An error has occurred.",
"Hello": "Hello {{name}}"
}
```
Now run `localazy upload` and you should see your translation strings on your home screen. You can use automatic or manual translations. Automatic translations may not be the most accurate, but are a start. When complete, use `localazy download` to gather edited files.

# Part 2 - Development

Install [i18n](https://npm.im/i18n) via npm. In your code add the following.

```js
const i18n = require('i18n')
i18n.configure({
  locales: ['en', 'es', 'de'] // your languages
  directory: path.join(__dirname, '/locales'),
  register: global
})
function translate (p, l, ph) {
  return __({ phrase: p, locale: l}, ph)
}
```

Now, to translate anything, use the `translate()` function, like so:

```js
console.log(translate('hello', 'de', { name: 'Daniel' }))
```

Implement this to fit your code, and you are complete!

If you run into issues, please leave a message and I will fix it as soon as possible.

Edited on 15 September: Basic style changes and fixed an oversight
What's a JavaScript Statement Label?
Tags: codenewbie, javascript
Published: 2020-09-15 15:17:30

While perusing a list of JavaScript statement and declaration types, I noticed one I hadn't seen before and that was a "label."

With a label you can namespace a statement: 

```js
myLabel: {
  console.log('To be');
  break myLabel;
  console.log('Or not to be');
}

console.log('That is the question 💀');

/*
Logs:

  To be
  That is the question 💀
*/
```

We use a <code>break</code> to terminate the statement labeled <code>myLabel</code> and thus <code>console.log('Or not to be');</code> does not run.

This code <i>looks</i> like we're creating an object with a key named <code>myLabel</code> and a value of another object but that is not it. As described in my earlier <a href="https://dev.to/js_bits_bill/how-javascript-blocks-work-js-bits-aha" target="_blank">article</a>, blocks are a set of zero or more statements grouped by curly braces. In our example, we've created a <i>labeled block</i>. Inside the block code we are breaking out of the same block referenced by its label.

Although they're not commonly used (in lieu of function calls), labels can be used with loops to either continue or jump out of the iteration:

```js
const fruit = ['🍇', '🍍', '🍎'];

myLoop:
for (let i = 0; i < 3; i++) {

  loopDaFruit:
  for (let j = 0; j < fruit.length; j++) {
    if (i === 1) break loopDaFruit;
    console.log(i, fruit[j]);
  }
}

/*
Logs:

  0 "🍇"
  0 "🍍"
  0 "🍎"
  2 "🍇"
  2 "🍍"
  2 "🍎"
*/
```
Conversely, we can achieve the same result using the first loop's label with <code>continue</code>:
```js
const fruit = ['🍇', '🍍', '🍎'];

myLoop:
for (let i = 0; i < 3; i++) {

  loopDaFruit:
  for (let j = 0; j < fruit.length; j++) {
    if (i === 1) continue myLoop;
    console.log(i, fruit[j]);
  }
}

/*
Logs:

  0 "🍇"
  0 "🍍"
  0 "🍎"
  2 "🍇"
  2 "🍍"
  2 "🍎"
*/
```

Seeing a labeled statement first the first time threw me off because it almost looked like some form of object literal syntax. Now it's clear what's really going on on, even though labeled statements are rare to see in the wild. 🦁

----------
Check out more #JSBits at my blog, [jsbits-yo.com](http://jsbits-yo.com/). Or follow me on [Twitter](https://twitter.com/JS_Bits_Bill)!
How to deploy/Host React project on firebase
Tags: react, help, javascript
Published: 2020-09-15 15:09:21

```
$ npm install -g firebase-tools

$ firebase login

$ firebase init

◯ Database: Deploy Firebase Realtime Database Rules

◯ Firestore: Deploy rules and create indexes for Firestore

◯ Functions: Configure and deploy Cloud Functions

❯◯ Hosting: Configure and deploy Firebase Hosting sites
(use space to select)
◯ Storage: Deploy Cloud Storage security rules

? Select a default Firebase project for this directory:

-> react-project-abod (react-project)

i Using project react-project (react-project)

? What do you want to use as your public directory? build

? Configure as a single-page app (rewrite all urls to /index.html)? Yes

? File public/index.html already exists. Overwrite? No

$ npm run build

$ firebase deploy

```
How to use PortalVue
Tags: vue, javascript, webdev
Published: 2020-09-15 15:04:32

There some many times in the development of an app that it's required to change the behaviour of a component. Nowadays, frameworks provide some many ways to overlap those components and one it's surprised me was a small package that will be included in VueJS 3, and today is named portals.

# Play to open a portal

Yes, if you have a little gamer culture you hear about portals and it reminds you about Valve. We can say that this works that way.

PortalVue is an actual VueJS 2 plugin that let us send some components from a template to another template.

# How to use portals

To install PortalVue, we only have to write on our bash:

```jsx
yarn add portal-vue
```

Then, we must add the following lines to our `main.js`

```jsx
import PortalVue from 'portal-vue'
Vue.use(PortalVue)
```

# How to send components through portals

Ok, in our project we had troubles. We need to override the AppBar depending on the view. We are coding an Ionic app and we didn't want to use so many code for that.

In our project layout view, we set up our destination portal. This is the portal used to show the content.

```jsx
<PortalTarget name="header" tag="ion-header"></PortalTarget>
```

We are setting a name what is the reference to send the content in the other side of the portal.

When we need to show an AppBar, we only have to define it in the view and customize it.

```jsx
<Portal to="header">
	<ion-toolbar></ion-toolbar>
</Portal>
```

How you can see, it is very simple to use. According to the author, it will be available in Vue.js 3 as core functionality and renamed as `<Teleport />`

I hope it is useful :grin:
Square(n) Sum with JavaScript
Tags: javascript, 100daysofcode, codenewbie, codewars
Published: 2020-09-15 15:04:04

{% youtube 6qrbaR_53tk %}

To solve this problem, we’ll take 3 different approaches.
Enjoy the video 😀🙏

Also written version https://losseff.xyz/katas/013-squeare-sum/javascript/
All Change....
Published: 2020-09-15 15:03:55

The time has come for a change in career paths!

Originally from Worcestershire and currently residing in Birmingham. It has been a dream of mine to start a career in tech.

Like the saying goes: _"there's no time like the present"_.

Despite some basic coding skills and aptitude for problem solving I do not have any personal projects that I _currently_ feel confidently enough about to demo to potential employers.

With the [School of Code](www.schoolofcode.co.uk) I intend to change that!

![School of Code](https://www.schoolofcode.co.uk/static/logo-51c754388b198e5bbb0d08a971ebbfa2.png)
Data privacy vs. data security
Published: 2020-09-02 03:43:50

To put it simply:

Data Privacy is an individual or a company’s right to keep their information private. Data privacy focuses on the following:
Managing terms and contracts
Applying proper regulation laws

Data Security deals with the steps we take to ensure that our right to data privacy remains guarded. Data security deals with the more active aspect of keeping our privacy such as:
Ensuring networks are secure
Dealing with breaches
Managing access
Incorporating authentication steps

Businesses need to understand data privacy so they can be aware of their right to privacy. This allows them to set boundaries for clients, sister companies, users, and even their employees when it comes to protecting their data. Equally important, data security is there to ensure that these rights and information are not breached by putting security systems in place.

Hope this was useful! I’d love to know if you ever decide to use my input so here’s my info:

[Dotcom Dollar](https://www.dotcomdollar.com)