teleren/devto huggingface dataset:
Community Hangout and Update - 2020-08-14
Tags: phalcon4, phalcon5, update, hangout
Published: 2020-09-04 15:58:34

---
title: Community Hangout and Update - 2020-08-14
published: true
date: 2020-08-10 22:09:50 UTC
tags: phalcon4,phalcon5,update,hangout
canonical_url: 
---

We are going to host a community hangout on Friday the 14th of August at 17:00 EST (21:00 UTC).

For the most part holidays are over. Join us this Friday for a hangout, where we will provide a status update, discuss what we have to do and outline the future of Phalcon.

[https://youtu.be/Moe4RSyi7yI](https://youtu.be/Moe4RSyi7yI)

Looking forward to seeing everyone there!

* * *

Chat - Q&A

- [Discord Chat](https://phalcon.io/discord)
- [Forum](https://phalcon.link/forum)

Support

- [OpenCollective - Support Us](https://phalcon.io/fund)
- [Store - Merchandise](https://phalcon.io/store)

Social Media

- [Telegram](https://phalcon.io/telegram)
- [Gab](https://phalcon.io/gab)
- [MeWe](https://phalcon.io/mewe)
- [Parler](https://phalcon.io/parler)
- [Reddit](https://phalcon.io/reddit)
- [Facebook](https://phalcon.io/fb)
- [Twitter](https://phalcon.io/t)

Videos

- [BitChute](https://phalcon.io/bitchute)
- [Brighteon](https://phalcon.io/brighteon)
- [LBRY](https://phalcon.io/lbry)
- [YouTube](https://phalcon.io/youtube)

<3 Phalcon Team
Podcast: Getting Dev Certified with Julia Doctoroff
Tags: career, certification, women
Published: 2020-08-10 21:27:03

---
title: Podcast: Getting Dev Certified with Julia Doctoroff
published: true
description: A discussion on the experiences in getting a developer certification from the perspective of a Salesforce admin. 
tags: career, certification, women
canonical_url: https://developer.salesforce.com/blogs/2020/01/episode-11-getting-dev-certified-with-julia-doctoroff.html
//cover_image: https://direct_url_to_image.jpg
---


This [Salesforce Developer podcast episode](http://media.blubrry.com/salesforce_dev_pod/p/traffic.libsyn.com/salesforcedevpodcast/SDP_Ep011_master.mp3) features Julia Doctoroff, a Managing Implementation Consultant at makepositive. She is a San Francisco native who made the move to London several years ago.

![Julia Doctoroff](https://dev-to-uploads.s3.amazonaws.com/i/seyr6ixo76stjsbhtnql.png)
 
After moving to London, Julia soon realized she wanted to have a deeper understanding and better communication with the development teams at her organization. So, she decided to get developer certified. 

Together we discuss her experiences in getting a developer certification from the perspective of a Salesforce admin. Julia also talks about the importance of getting support and how she found support for her goal from a group known as RAD Women. She shares her experience with learning to code; including the most frustrating and most rewarding aspects of getting dev certified. 

## Show highlights

* How she discovered RAD Women and getting her Salesforce Application Architect certification
* Her first hands-on coding experience with RAD Women, including DML statements 
* The importance of having a safe place to experiment, practice, hone your developer skills and be outside of your comfort zone
* Demystifying the concept of programming and how it’s a lot like learning a new language
* What it’s like being a Salesforce admin with a developer certification

## Resources

* [Julia on Twitter](https://twitter.com/juliadoctoroff)
* [Julia on LinkedIn](https://www.linkedin.com/in/juliadoctoroff/)
* [Beginner Developer Trial on Trailhead](https://trailhead.salesforce.com/en/content/learn/trails/force_com_dev_beginner)
* [RAD Women](http://radwomen.org/)
* [LadiesBeArchitects on Twitter](https://twitter.com/archladies)

## Shoutouts

* [Heather Dykstra](https://twitter.com/HeatherLDykstra)
* [Bonnie Hinners](https://twitter.com/snugsfbay)
* [Gemma Emmett](https://twitter.com/gemziebeth)

### [Listen now](http://media.blubrry.com/salesforce_dev_pod/p/traffic.libsyn.com/salesforcedevpodcast/SDP_Ep011_master.mp3)
I am a sin(x–π) Developer
Published: 2020-08-10 21:25:24

---
title: I am a sin(x–π) Developer
published: true
description: Fighting the impostor Syndrom, and insane expectations from Management.
tags: 
//cover_image: https://direct_url_to_image.jpg
---

One of the first programs I ever wrote was something like:

```
100 CALL CLEAR 
110 OPTION BASE
120 FOR 1=0 TO 20 
130 PRINT SIN(X-3.141592)
140 NEXT X
150 END
```

This will return something like:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/salfxq432gos826bl80y.png)

Look how beautiful values alternate between positive and negative. How there is a balance between peaks and valleys. This illustrates the realities of being a software developer.  Some times you will be killing it. Solving problems at a great rate. But then, no matter what process you follow, there will be valleys were your output will be flat, at best, and some times even negative, producing technical debt that will make any work done during this period "backward" progress on any work that you are making.

Having consciousness if you are on the top of the sine or at the bottom is hard. Is this, what makes a good programmer great. A great programmer understands when he is burned and takes his time to rest the mind and allow his performance curve to go up.

Management has to understand this. Having strategies that allow a team to work out these different performance stages will prevent permanent burn out, and loss of talent. Promoting healthy habits in the team and allowing people to recover from performance peaks.
🐍 Where to put Custom Python Exceptions?
Tags: python, help
Published: 2020-08-10 21:07:11

---
title: 🐍 Where to put Custom Python Exceptions?
published: true
description: Where do custom exceptions for a python library go?
tags: python, help
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/6o8gs8hbzc9uirs7xzd6.png
---
Is there a standard module to place custom exceptions in python?  I have seen exc used in some libraries, but not in all libraries.

{% tweet 1292928081146019841 %}
Universal Data Tool Weekly Update
Tags: machinelearning, datascience, computerscience
Published: 2020-08-10 20:16:28

If you haven’t heard of the Universal Data Tool, it’s an open-source web or desktop program to collaborate, build and edit text, image, video, and audio datasets with labels and annotations. You can get started with [the Universal Data Tool](http://universaldatatool.com)

This is our first community update! We’re hoping by releasing these we can better engage the community and encourage new contributors. Let’s get started…

[![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ri2xhv9g61iabn91kko2.png)
(http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](https://youtu.be/QW-s4XVK3Ok) 

# New Feature: Automatic Pixel Segmentation (Autoseg)

It can take hours to accurately annotate every pixel of a large image. That’s why we created autoseg, autoseg is a new engine that takes a bunch of points or shapes and automatically creates a pixel mask super fast. What this means is you can now quickly do pixel segmentations directly in the Universal Data Tool!

Automatic pixel segmentation can be found in the “Pixel Segmentation” interface when you’re starting a new project. In the Setup page, just click on “autoseg” under “Automatic Segementation Engine”. Try it out!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ri2xhv9g61iabn91kko2.png)

For more information about the autoseg engine check out it’s [github repo](https://github.com/UniversalDataTool/autoseg)  and our [image annotation react component] (https://github.com/waoai/react-image-annotate).

# New Feature: Translation Support

The Universal Data Tool is now available in English, French and Chinese! Big thanks to @puskuruk for putting it together. You can change your language using the dropdown on the landing page.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/wcs7317fzq6b4bmx9bcd.png) 


Adding or fixing translations is also now very easy! All the files you need to edit are in the [locales directory](https://github.com/UniversalDataTool/universal-data-tool/tree/master/src/i18n/locales).


# New Feature: Docker Container Support

For running on servers or quickly testing out the UDT, it can be much faster to 

The Universal Data Tool can now run in a docker container! If you have docker installed, you can now run:

docker run -it -p 3000:3000 universaldatatool/universaldatatool

The Universal Data Tool is now running on http://localhost:3000

That’s it for our first community update, be sure to follow us on [Twitter](http://twitter.com/UniversalDataTl), or join our [Slack](https://workaroundon.slack.com) to hear more!
Opinionated use of JavaScript Switch-Case
Tags: javascript, webdev, beginners, codenewbie
Published: 2020-08-10 20:41:11

---
title: Opinionated use of JavaScript Switch-Case
published: true
description: Having just read the Basics of switch cases and defaults, I am reminded of a group code-review I did years ago where I included a switch case-statement in my front end code.
tags: JavaScript, WEbDev, Beginners, CodeNewbie
series: JavaScript Tips
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/01x8gcykh0fd6j1rpkxk.png
---

## The Idea

Having just read the [Basics of switch cases and defaults](https://dev.to/jennakoslowski/basics-of-switch-cases-and-defaults-jbc), I am reminded of a group code-review I did years ago where I included a switch case-statement in my front end code.

## The Code

I would also like to point out that one of our back-end developers (.NET) tried the same pattern and found that it worked, much to his surprise.

This is not the code, but exemplifies what I did ...

```javascript
const bob = true;
const tom = false;
const time = false;

switch (true) {
  case (bob === true):
  case (tom === true):
    console.log('person');
    break;
  case (time=== true):
    console.log('time');
    break;
  case default:
    console.log('other');
    break;
}
```

Granted with this code, we don't know which is true (bob or tom) without additional testing, but ...

## Conclusion

... using the `switch (true)` like this gives us a great visible pattern that is not dependent on any single variable.

I'm not saying this is for everyone, but I personally think this is a very clear pattern.
Keep index.php in your public folder
Tags: laravel, webdev, security, cleaver
Published: 2020-08-10 20:33:18

> Encourage good security practices so that public files are public and private files are private.

If you are familiar with [Laravel's directory structure](https://laravel.com/docs/7.x/structure), then you know that the `public` folder is where the `index.php` file lives. 

 ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ix6i89xjwkkrvwgmkj9k.png)

Other PHP frameworks and apps may take a different approach and add the `index.php` file directly to the `root` directory. As long as you direct the server to the "public" directory that contains the `index.php` file, then the site should render as expected.

### However, is that really what you want to do?

Probably not! You want to be careful with what you expose and make accessible to any passer-by of your website. For example, if the folder lookup is set to root, then users can access other files you may not what them to access, such as `composer.json`. 😱

This is why Laravel's directory structure places `index.php` into the `public` folder with other "safe to see" resources such as css, js, images, etc. It's to encourage good security practices so that public files are public and private files are private.

### But, what about Laravel-based apps that add index.php to root?

Surprisingly, there are many popular Laravel-based web apps that do not follow this structure and expose the index.php in the root directory. I'd suggest to make the necessary updates that encourage good security.
What are your favorite JAMStack CMSs?
Tags: javascript
Published: 2020-08-10 20:02:24

I'm working on a small project for a client that requires a basic blog setup. Nothing too fancy. I'm planning to build the site with NextJS, and am looking for a way to make content creation easy for the client.

So far I've explored Sanity.io and Contentful. Initial impressions have been interesting. Curious to hear everyone's thoughts.
NPM Deploy Bot: Automate your deploy process
Tags: typescript, npm, javascript
Published: 2020-08-10 19:52:53

Hi, I've made a NPM package that helps you release versions of your NPM package.
##Why?
I had a project where I wanted to automate the NPM version releases on each commit to master in order to automate the process and make it a bit easier.
##How do you use it?
You just run `npm-deploy <package name>` and it releases the next version based on the latest version released to NPM.
You can also create a package.json script to deploy your version to make it easier to use:
```
"scripts": {
  "deploy": "npm-deploy <package name>"
}
```
##GitHub Actions integration
You can integrate this package with a GitHub action workflow:
1. Setup your git configuration
2. Create an .npmrc file with the NPM auth token
3. Add deploy script in your package.json like in the example above
4. Run npm run deploy
A full example can be seen [here](https://github.com/danitseitlin/dmock-server/blob/master/.github/workflows/auto-deployer.yml)

If you liked it, you can find this package [here](https://github.com/danitseitlin/npm-package-deployer#npm-deploy-bot--automate-your-deployment-process), feel free to point out your **opinion** and give it a good star ;)
Hoisting in Js
Tags: javascript
Published: 2020-08-10 19:39:30

## What is Hoisting? 

When we look up what is hoisting in JS, we will be most likely to get this explanation:
*behavior of moving declarations of variable and function to the top of their current scope. *

what does that mean? 


In JS, there is two phases of hoisting:

1. It is going to scan for all of the declared variable and function when the program runs from top all the way through the end and put them into the memory of Lexical Scope.
2. It is going to start implement the these variable and function from the top, execute them line by line,   since these functions and variable have already been created in the memory.


### Difference Between `let` and `var` in Hoisting

So  lets see how hoisting work in `let` and `var` :

For `var` variable:

```javascript
console.log(num); //output 'undefined'
var num = 10
```

why is it undefined when we are expecting the number 10? 

It is because JS hoist only hoist the declaration, not their assignment which is the value.
So when `num` is called in the console.log, the lexical scope will only initialize it with undefined. And when the execution reached where the assignment is done, it'll then update the value to 10.

Where for `let` variable: 

```javascript
console.log(num); // ReferenceError: num is not defined
let num = 10;
```

why the num is 'not' defined instead of undefined like `var`?

All declarations with function, var, let, ...etc are hoisted in JS, but only `var` is initialized with undefined in lexical scope, while `let` remains uninitialized and it will only to be initialized when their lexical assignment is evaluated during the runtime by the JavaScript engine. Which means it cannot access the variable before it is assigned to a value at where it was declared in the code.

Blog post moved from my Learn blog
How to insert a YouTube video on your website?
Tags: discuss, wordpress
Published: 2020-08-10 19:36:07

---
title: How to insert a YouTube video on your website?
published: true
description: Here in this tutorial I will show you a quick steps to insert YouTube video on your website
tags: #discuss #wordpress
//cover_image: https://direct_url_to_image.jpg
---

Video on the web has become one of the most popular ways to share content, tutorials, information, music, entertainment, and much more. Many people prefer to watch videos than read for information or fun.

Surely when you think about the subject, the first thing that comes to mind is <a href="https://mesheble.com/youtube-tv-promo-code/">YouTube</a>, the most popular video-sharing site on the Internet.

<strong>How to Embed YouTube Videos in WordPress?</strong>
The process is very simple.

<strong>Step 1.</strong> Enter the URL of the video on YouTube. 
<strong>Step 2.</strong> Copy the URL (right click> copy or CTRL + C / CMD + C)
<strong>Step 3.</strong> Go to the entry or page where you want the video to be shown. In the WordPress editor, just right click> Paste.

When you post or preview it ... the video will appear right there! (It's like magic: P)

If you need to modify properties of the video, you can insert the "Embed" code and modify the dimensions and other properties.

Enter the video again and click on the "Share" tab 

Once you have copied and modified the necessary, copy the code that appears there

Paste that same code in the post in the HTML (Text) part of the editor so that the video can appear successfully.

As you can see, inserting YouTube videos in WordPress is a very simple and fast process.

Do you have any other questions?
User Login: Trial and Error
Tags: 100daysofcode, javascript, mongodb
Published: 2020-08-10 19:31:27

I added a route to handle login. This route makes a post request and compares the provided password with the saved password. Then returns a success message. 

The first step is to find the user. Since the email is unique I'll retrieve the user by searching for the email using findOne.
```javascript
router.route('/users/login')
    .post(async (req, res) => {
      User.findOne({ email: req.body.email }, (err, user) => {
        if (err) {
          return res.send(err);
        }
        return user
      })
})
```

Next i tried comparing both passwords using bcrypt compare but i keep getting an error. My guess is that it's a syntax error that I'm yet to identify. Here is the code though.

```javascript
await bcyrpt.compare(req.body.password, user.password, (err, res) => {
        if(err) {
          res.send(err)
        }
        if (req.body.password != user.password) {
          res.json({ success: false, message: 'passwords do not match' });
        } else {
          res.send('Log in Sucessfull')
        }
      });    
```

I try debug this when I'm well rested.
_Day 25_
Props vs State in React
Tags: react
Published: 2020-08-10 19:30:08

Trying to differentiate state and prop would be one of the most conceptually confusing for beginners in React, so I break it down into points.

**Props(properties)**

* Components receive data from outside the component with props.

* Are what we use to pass data between our components in React which it only goes from parent to child component. So components receive data from parent component with props.

* Props can be anything. they can be strings, arrays, objects, functions, etc. **Callback function** can also be passed as prop to initiate it’s state changes(updating state) from the child component.

* One limit to props is that it is immutable, meaning you shouldn’t ever directly change the value of props.

**State**

* Components can create and manage their own local state

* State is mutable

* When state changes, it trigger updates in components

* Great thing about state is that it’ll only update part of the app component that is influence by the data changes instead of updating the whole app.

* State should not be modified directly, but it can be modified with a special method called `setState` (Class Component) **OR** using React hook (Functional Component)

Blog post moved from my Learn blog
30 Days of CSS
Tags: css, learning, webdev
Published: 2020-08-10 19:29:45

## Introduction

I've been a backend developer for a long time and decided that I want to learn more frontend skills.  So, I've started doing 30 days of CSS.  You can follow my progress on Twitter at @cloudblogaas

For my first couple of days, I've learned about selectors and selector specificity.  

## Selectors

For my reference, some of the more common selectors are:

| Selector        | Description           |
| ------------- |:-------------|
| *             | Selects all elements |
| element   | Selects all elements of type "element", e.g. **h1**, or **p**|
| el1, el2 | Selects all elements of the specified type, e.g. **h1, h2**|
| el1 el2 | Selects all elements of type "el2" inside elements of type "el1", e.g. **div p** selects all "p" within "div"|
| el1 > el2 | Selects all elements of type "el2" where "el1" is the direct parent, e.g. **div > p** selects all "p" with parents "div"|
| .cls          | Selects elements with the class "cls" |
| .cls1.cls2    | Selects ellements with class "cls1" and "cls2", e.g. **.task.information** |
| #id           | Selects elements with the id "id"       |
| element.class | Selects elements of type "element" with class ".class", e.g. **p.information**      |

There are many more selectors, all detailed at [MDN WebDocs](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors).  The ones above though, seem to be the most common.

I've followed this video on YouTube which I found invaluable for learning.

{% youtube l1mER1bV0N0 %}

## Selector Specificity

Selector Specificity allows us to know what orders selectors will be used.  This is useful when trying to work out what a style hasn't been applied to an element.  Normally, CSS is read from the top of the file downwards, so something at the bottom of the css file will overwrite something defined at the top.

Selector specificity states how certain selectors are "higher priority" than others.  The specificity of selectors ranks from high to low as:

* style 
* id
* class
* element

So, for example if an element has the following css, the style associated with the id would be used instead of that of the class, so the element would be styled red.

``` css
#myId {
  color: red;
}

.myClass {
  color: blue;
}
```

```html
<h1 id="myId" class="myClass>...</h1>
```

A style can be defined as important by appending the `!important` tag, for example:

```css
.myClass {
  color: blue !important;
}
```

From what I've seen though this is considered bad practice as it breaks specificity and can override  what a system is meant to do.

## Summary

CSS wouldn't be CSS without selectors.  The [MDN WebDocs on Selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) and [MDN WebDocs on Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity) provide good indepth details.
A Practical Introduction To Graph Data Applications - Episode 144
Published: 2020-08-10 19:29:18

<p>Finding connections between data and the entities that they represent is a complex problem. Graph data models and the applications built on top of them are perfect for representing relationships and finding emergent structures in your information. In this episode Denise Gosnell and Matthias Broecheler discuss their recent book, the Practitioner's Guide To Graph Data, including the fundamental principles that you need to know about graph structures, the current state of graph support in database engines, tooling, and query languages, as well as useful tips on potential pitfalls when putting them into production. This was an informative and enlightening conversation with two experts on graph data applications that will help you start on the right track in your own projects.</p><p><a href='https://www.dataengineeringpodcast.com/practical-graph-data-episode-144/'>Listen Now!</a></p>