teleren/devto huggingface dataset:
Discussing the Cloud with Chris Integration Platform
Tags: azure, architecture, integration, appdevelopment
Published: 2021-08-20 21:43:56

**This post was originally published on Thu, Aug 19, 2021 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/discussing-cloud-with-chris-integration/).**

In this session, Chris is joined by Karl Cooke, Blogger at [https://irishtechie.com](https://irishtechie.com). Chris and Karl talk all about the CloudWithChris.com integration platform, and the numerous automation/integration activities that Chris has in place to save time and focus on building content!

{% youtube dNjG8ohgavs %}
Day 435 : No Reason
Tags: hiphop, code, coding, lifelongdev
Published: 2021-08-20 21:41:46

_liner notes_:
- Professional : Pretty chill day. Worked on a couple of projects. Got to review a new blog post from a team member. Had a meeting with a team on a new SDK we're working on and showing them some things in a demo I made using it and gave some feedback. Good way to end the week and start the weekend.

- Personal : Last night, I just went through some tracks for the radio show. I also set up an account on a site so I could buy crypto and then use that crypto to buy something in the real world. haha Just waiting for the money to transfer then I'll be able to make the purchase. Think that was it from last night. Oh and also got a new device for the radio show, but the adapters delivery date have been pushed back a day.

![Sand dunes in Canary Islands, Spain at sunset with purple-ish night sky with a few stars shining](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fb9jhw04d3fbtjjaoa2d.jpg)

Tonight, going to finish putting together the radio show. Maybe play around with the new equipment that I got once the adapters come in, but I don't think I'll use it for the show tomorrow. I want to test it out before I trust it with an actual show. No reason to rush things and mess up a show. Going to see if I can get some stories for the show on Sunday. Going to eat dinner, but not sure what anime to watch. Maybe catch up with Boruto.

Have a great night and weekend!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube aI4mtdm0rMo %}
Find vulns in your code before they find you
Tags: developer, dependencies, devsecops, security
Published: 2021-08-20 21:41:38

**This post was originally published on Wed, Aug 18, 2021 at [cloudwithchris.com](https://www.cloudwithchris.com/episode/find-vulns-in-your-code/).**

In this session, Chris is joined by DeveloperSteve Coochin, a Developer Advocate at Snyk. In this episode, Chris and Steve talk about vulns in the wild for a bit (well and to geek out in general), especially on the back of some research that Steve did recently on the likes of PHP. Steve has recently been looking into the security vulns that get let in without developers even knowing (Teaser: He was really surprised at some of them!)

{% youtube aX7q90f7Vr8 %}
Weekly Check-In #6: Tenth Week
Tags: weeklyretro, python, opensource, gsoc
Published: 2021-08-20 21:28:41

Hi everyone! this is the my final weekly check-in in my GSoC internship, if you want to know more about my whole internship, please check out the previous.

The last week was the final of the coding phase, it was a great experience, I learned a lot.

## What did you do this week?

Being the last week, I only made reviews of the PR of my colleagues, and additionally, I was finishing the **Model View Controler** lesson, however, I am still finishing it since during the meeting with my mentors they gave me some suggestions. I hope to finish it in the next week but as a contribution of my own and not part of the code phase.

## What is coming up next?

For this week I am going to be working on the report of my activities, this is a requirement to fulfill my last evaluation. I am doing this report on the PyZombis project wiki, hoping that anyone can see my journey, as well as all the activities during this internship.

## Did you get stuck anywhere?

Last week I was stuck and I am still stuck in the writing of the lesson since the original course was very basic in this lesson, and since writing is not one of my strengths it has been difficult for me. However, I am progressing in that.
Pomodoro Timer Clone CSS and HTML
Tags: css, html, web
Published: 2021-08-20 21:14:48

---
title: Pomodoro Timer Clone CSS and HTML
published: true
description: 
tags: css, html, web
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mccnq0tc3xyyqnzsjrd2.png
---

I was always afraid of delving into css, and html for some reason. Recently I been working on a personal project, and just decided to give it a go. Reading css, and html documentation on the go. That spawn off a quick challenge, and see if I could recreate my favorite pomodoro timer https://pomofocus.io/. I am sure there are many rookie mistakes on my css, but hey it looks pretty good.

I will be hooking up js in the next few days.

https://github.com/TheFern2/pomodoro-js

![pomodoro clone](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zz68s393tt726h9ng9l8.png)

Open to feedback and criticism. All my css knowledge is based off basic css/html freecodecamp, and Traversy Media tutorials.
What is a Pure Function ?
Tags: beginners, javascript
Published: 2021-08-20 20:34:06

A Pure Function is a function which :

1. Given the **same input**, will always return the **same output**.
2. Produces no **side effects**.

## Side effect

A side effect is when function modifies some state variable value(s) outside its local environment.

### Side effects include:

* Logging to the console
* Making a HTTP request
* Mutating data
* Writing to the screen
* Writing to a file
* DOM query or manipulation
* Triggering any external process
* Calling any other functions with side-effects

Let's see example and try to understand. 

```javascript
1  const f = () => {
2    y = Math.pow(x,2);
3  }
4
5  let x, y;
6 
7  x = 2;
8
9  f() // y = 4
10
11 x = 3;
12
13 f() // y = 9
```
In the example above the function **f** doesn’t return value. It has variable *x* as indirect input and there is no direct output. It sets state to the outside variable, so it is a **side effect**. Why should we avoid side effects ?

As you can see, the function **f** depends on state outside, so it is not easy to predict the result. We execute function at the string 9 and the result depends on string 7. So you can imagine that your function **f** was executed at the string 1000 and to understand what has happened you need to analyze your code from the first string. It is hard to do :sweat: .

What if we change this code in next way:


```javascript
1  const f = (y) => Math.pow(x, y);
2  
3  let x;
4
5  x = 2;
6 
7  f(2) // 4
8
9  x = 4;
10 
11 f(2) // 16
12
```

It works, but what is opposite pure function definition? In this example the output of function **f** depends on state outside, whether the **input of this function is still the same**. So we remember that pure function has to produce the same output if given the same input.

To fix this code we have to do **x** variable as direct input of the function **f** and this function will return direct output. 

```javascript
1  const f = (x, y) => Math.pow(x, y);
2
3  f(2, 2); // 4
4  
5  f(4, 2) // 16
6 
```

### Can we write a code without side effects ?

Any application can contain request to the server, DOM manipulation or writing to the file system. And it looks like if we want to write a function without side effect we can't send request to the server :confused:. Of course it is impossible. 

Side effects, as we saw in example before, do hard to find an issue, but we can't create a program without side effect. What should we do ? 

:point_up: The key moment in avoiding side effect is trying to write pure function but if you need side effect you should isolate side effects in your code, and if there is an issue, it will be much easier to find it.

## Conclusion
It is hard to imagine the application without side effects and using only pure functions. But we should detect side effects and try to isolate them, that helps us in debugging application.

Thanks for reading and I guess it will help you.  
:rocket: :rocket: :rocket:
React Router & multi-page apps
Published: 2021-08-20 20:21:28

The main function of this blog is to help me remember the process of building a multi page react app 
### What is react router 

React router is short hand for a NPM package react-router-dom that allows developers like yourself to build out multi page application through a practice called client side routing. Typically servers handle web routing, react router gives the illusion of a normal web page.

### getting started
after you have created your app using npm create-react-app double check if react-router-dom is installed with: ```npm i react-router-dom```

next you will need to import the following code into your index.js
```javascript
import {BrowserRouter} from 'react-router-dom'
``` 
after you have imported browser router some modification will need to be made to the body of the file
the BrowserRouter tags need to wrap around the App component like so: 
```jsx
ReactDOM.render(
  <React.StrictMode> 
    <BrowserRouter > // <-- here
      <App />
    </BrowserRouter> // <-- and here
  </React.StrictMode>,
  document.getElementById('root')
```
note: browser router is a parent component and can only have one child

This will also need to add this import to your App.js
```javascript
import {Link, Switch, BrowserRouter, Route, Redirect} from 'react-router-dom'
```
next we will create the body of our app and for sake of ease we will only have two routes

```jsx
<BrowserRouter>
  <Switch>
    <Route path="/home">
      <Home />
    </Route>
    <Route path="/pathname">
      <YourComponent />
    </Route>
    <Route path="/anotherpathname">
      <YourOtherComponent />
    </Route>
  </Switch>
</BrowserRouter>
```
- the first thing thats happening in the code above is the implementation of the Browswer router tags, next we use the switch tags to which allows us to switch between different routes
- the routes are where we specify our path that will be differentiate the different pages in our app. Inside the rout you can store the component that you want to display on the path you specified in the Route tag

now we will go over and build the components that we specified in App.js
in all the components you will need to import the following:
```javascript
import {Switch} from 'react-router-dom'
```
The general structure of your these components are all the same and will 
```jsx
  function home() {
    return (
      <>
        <h1>welcome Home!</h1>
        <Link to="/pathname">your component</Link>
        <Link to="/annotherpathname">your other component</Link>
      </>
    )
  }
```
```jsx
  function YourComponent() {
    return (
      <>
        <h1>welcome to YourComponent</h1>
        <Link to="/home">home</Link>
        <Link to="/pathname">other component</Link>
      </>
    )
  }
```

```jsx
  function YourOtherComponent() {
    return (
      <>
        <h1>welcome to YourOtherComponent</h1>
        <Link to="/home">home</Link>
        <Link to="/annotherpathname">your other component</Link>
      </>
    )
  }
```

And there you have it, a basic functioning react app with multiple pages! you now have access to: 
- /home
- /annotherpathname
- /pathname
Git v/s GitHub follow us on Facebook and Instagram CodeFlix/@c0deflix
Tags: github, react, webdev, javascript
Published: 2021-08-20 19:13:47

All About Git and GitHub in Short

Git: Git is a distributed version control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows.

GitHub: GitHub is a web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features.
Fixing github URLs from https to ssh by awesome Sparrow plugin
Tags: github, git, raku, devops
Published: 2021-08-20 19:13:47

---
title: Fixing  github URLs from https to ssh by awesome Sparrow plugin
published: true 
description: For those who are tired of doing this manually like me
tags: github, git, raku, devops
cover_image: https://raw.githubusercontent.com/melezhik/images/master/git-url-https-to-ssh.png
---

... For those who are tired of doing this manually like me

---

Step 1

```bash
tom --profile git@github-url-https-to-ssh
```

output:
```
install git@github-url-https-to-ssh ...
```

Step2

```bash
tom github-url-https-to-ssh
```

output:

```
[repository] :: index updated from file:///root/repo/api/v1/index
[repository] :: plugin /root/sparrow6/plugins/git-url-https-to-ssh installed locally, nothing to do here
[fix-https-ssh] :: stderr: ++ git remote show origin
[fix-https-ssh] :: * remote origin
[fix-https-ssh] ::   Fetch URL: https://github.com/melezhik/sparrowdo.git
[fix-https-ssh] ::   Push  URL: https://github.com/melezhik/sparrowdo.git
[fix-https-ssh] ::   HEAD branch: master
[fix-https-ssh] ::   Remote branches:
[fix-https-ssh] ::     brezeleisen tracked
[fix-https-ssh] ::     master      tracked
[fix-https-ssh] ::   Local branch configured for 'git pull':
[fix-https-ssh] ::     master merges with remote master
[fix-https-ssh] ::   Local ref configured for 'git push':
[fix-https-ssh] ::     master pushes to master (up to date)
[task-check] :: stderr: ++ set -e
[task-check] :: stderr: ++ git remote remove origin
[task-check] :: stderr: ++ git remote add origin git@github.com:melezhik/sparrowdo.git
[task check] stdout match <^^ \s* 'Fetch URL:' \s* (\S+)> True
[task check] url found: [https://github.com/melezhik/sparrowdo.git]
[task check] host found: [github.com]
[task check] project found: [sparrowdo]
[task check] user found: [melezhik]
[task check] change to from [https://github.com/melezhik/sparrowdo.git] to [git@github.com:melezhik/sparrowdo.git]
```
Graphql in laravel
Tags: graphql, laravel, playground
Published: 2021-08-20 19:11:06

Hi, my name is Andrés Felipe, on this post we are make a server graphql with laravel.

## Requisites
* Php v8
* Composer v2


## Craft Laravel app

To create a laravel proyect run this commando in console
```
composer create-project laravel/laravel graphql-server
```	

## Install Graphql libraries
Inside in our proyect laravel run the following command
```
composer require nuwave/lighthouse
```	
This command will install the graphql for laravel and php.


Mext step run the following command:
```
php artisan vendor:publish --tag=lighthouse-config
```
to publish the config the graphql in 
```
config/lighthouse.php
```
and add the graphql uri to cors in 
```
config/cors.php

'paths' => ['api/*', 'graphql', 'sanctum/csrf-cookie'],
```

Next step publish the default schema where you add the code for graphql.

## Install Graphql Playground
The playground is a enviroment for develop stage for test your queries or mutation below the pass a code in your front whit apollo.

For install this playground run de follow command

```
composer require mll-lab/laravel-graphql-playground
```

When the installation is finished it will be published the route 
```
/graphql-playground
```
and publish the config with
```
php artisan vendor:publish --tag=graphql-playground-config
```
this will public the config the playground in
```
config/graphql-playground.php
```

The url for consume the api is

```
/graphql
```

In this moment we have:
* The libraries for laravel the graphql.
* The playground for test our api graphql.

it would look something like this
![Playground](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dnqju6oh7islw8aqkt09.png)

## Finish
In other post, we a create a api whit 
* Users
* Posts

when one user have many posts like a social network

This is my firsts post, i hope this help you and i would aprreciatte if you comment,rate and follow me

TANKS.
ERP Software Services
Published: 2021-08-20 19:10:54

AQA Solution offering school ERP management software easy and better control on various processes in the education institution. With an unparalleled and easy to use interface, our school information management system changes tedious and repetitive processes in the organization to simple and efficient ones. This school ERP software helps in saving a lot of time, money and energy, leading to better performance of the staff and students. Thereby, benefiting all the stakeholders, be it the Teacher, Principal, Administrator, Student, Management or the Parents.

<h1>Explore the benefits of cloud ERP School Software</h1>
banner img
Smart and adaptable
Leverage <a href="http://aqasolution.com/">intelligent School ERP Software</a> with built-in machine learning, predictive analytics, and optimized processes. Keep the latest innovations at your fingertips with automatic updates.

banner img
Fast and affordable
Tap into AQA Solution world-class cloud infrastructure to run lean and flexible business processes. Get up and running quickly – anywhere in the world – for a low monthly cost.

banner img
Secure and reliable
Our cloud-based School ERP solutions have you covered – from system security to compliance. Your data is hosted on world-class servers with global teams dedicated to its safety.
Is HTML a programming language? I finally get to the bottom of it. 
Tags: discuss
Published: 2021-08-20 18:56:32

---
title: Is HTML a programming language? I finally get to the bottom of it. 
published: true
description: 
tags: #discuss 
//cover_image: https://direct_url_to_image.jpg
---

Can you write a programme with it. No. You cannot. Move on.
Est-il possible de choisir son secteur d'activité en tant qu'employé chez une société de services de prestations ? 
Tags: career, cybersecurity, programming
Published: 2021-08-20 18:51:11

Bonjour à tous,
Je veux savoir si on a le droit d'ajouter une condition de refus de mission dans un secteur spécifique dans le contrat avec une société de services de prestations (en tant que développeurs, consultant en cybersécurité, ...peu importe). 
Notez que je suis encore un étudiant, mais j'ai eu cette question en tête et j'espère que quelqu'un aura l'amabilité d'en donner une réponse.
Et merci!
What do you want to know about how Facebook builds software? Answer to be featured on our podcast 🎧
Tags: podcast, discuss, facebook
Published: 2021-08-20 18:39:03

---
title: What do you want to know about how Facebook builds software? Answer to be featured on our podcast 🎧  
published: true
description: 
tags: podcast, discuss, facebook
---

The [DevDiscuss Podcast](dev.to/devdiscuss) begins with an interview and ends with commentary from listeners — and we like to feature the _actual_ voices from our community!

To inform an upcoming episode of the show, we'd like to know...

> ### **What do you want to know about how Facebook builds software?**

For your chance to hear your actual comments on an upcoming episode, answer the question above by:

- Calling our Google Voice at +1 (929)500-1513 and leave a message 📞

- Sending a voice memo to pod@dev.to 🎙

- OR, leaving a comment here (we'll read your response aloud for you) 🗣

Please send in your recordings by Wednesday, August 25th at 1 PM, ET (5 PM UTC, 10 AM PT)

#### Voice recordings will be given priority placement 😉

Catch up on recent episodes of the show [here](https://dev.to/devdiscuss). A new season launched just a few weeks ago 👀
My journey so far....
Published: 2021-08-20 18:36:06

Hi guys it's me again and I would like to share my story so far on my journey as an intern. Well having moved from stage one to three in the program I can categorically tell you that it has been an eventful one for me. Having to juggle between other activities and keeping up with the tons of messages that literally makes your phone hang (lol), to meeting up with deadlines for tasks and a host of other activities I can only say that it keeps on getting better. So to every one in the on-going HNG internship program it is my prayers that we all come out a success, and that's it for today till we meet again.
Yours truly,
Micheal..
Building a Machine Learning Model: Collecting Data
Tags: article
Published: 2021-08-30 20:09:57

---
title: Building a Machine Learning Model: Collecting Data
published: true
date: 2021-08-20 18:35:12 UTC
tags: Article
canonical_url: https://reinforcement-learning4.fun/2021/08/20/building-a-machine-learning-model-collecting-data/
---

Data is the main ingredient of Machine Learning models.

An actual Machine Learning project starts with the team assessing if the necessary data is available. If not (which would be no surprise), the team needs to develop a strategy to collect and store the necessary data before modeling Machine Learning Algorithms.

Common sources of data … [Continue reading Building a Machine Learning Model: Collecting Data →](https://reinforcement-learning4.fun/2021/08/20/building-a-machine-learning-model-collecting-data/)
Apache2 Config generator
Tags: apache2, webdev, free, configuration
Published: 2021-08-20 18:22:22

## Why build a generator?
About a year ago i bought myself a VPS hosting package which was a bare bones Ubuntu Server.... i had to config EVERYTHING. One thing i have always hated is dealing with apache2.... i always seemed to make some sort of mistake so i set out to make it so easy that pretty much anyone could do it!

## ApacheConfig.live
 so if you take a look at [ApacheConfig.live](https://apacheconfig.live) you will see an easy to use generator, which simply asks you some basic questions and then generates the config for you on the fly!
Please take a look and tell me what you think!

Mike
Day 7 : Deep diving into Django Routes
Tags: django, webdev, 100daysofcode, beginners
Published: 2021-08-20 18:20:08


How to run your django server for the first time? Use the below command :-
```
python manage.py runserver
```

This will give you the IP address telling where your web app is currently running.

---

To create your very first app use:-
```
python manage.py startapp hello
```

Now, to install this app into our project, go to settigs.py in the main parent directory, inside that update the list of INSTALLED_APPS.  

From now on, our focus will be on the `views.py` file.

----



## Implementing our Django app

You can think of each view as something a user might want to see. So, first we create a default view. The function accepts (request) as its argument. The request represents the HTTP request which the user made in order to access our web server.  


Now update the urls.py files.
isJsonStructure() CFML User-Defined Function
Tags: coldfusion, cfml, json
Published: 2021-08-20 18:19:11

Apparently strings, numbers, `true`, `false` and `null` are considered valid JSON even though they consist of a single escaped value. (I recently [discovered this](https://dev.to/gamesover/isjson-insertescapedstring-true-really-2kdf) while accepting API data from a third-party and they accidentally double-encoded the JSON body payload.

To prevent this issue from occurring again, I wrote a CFML User-Defined Function (UDF) to test whether a string can successfully parsed to an object and/or array (versus accepting an invalid simple value).  Enjoy!

## isJsonStructure(string, type="any")
https://gist.github.com/JamoCA/e153c2ea40bfd75b60d180fbb709fe5b

![function comparisons between isJson and isJsonStructure](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rgrfweicflad1v34c4ky.png)

{% gist https://gist.github.com/JamoCA/e153c2ea40bfd75b60d180fbb709fe5b %}