teleren/devto huggingface dataset:
Which conferences are you submitting CFPs to?
Tags: conference, talks, discuss
Published: 2019-01-28 14:47:29

---
title: Which conferences are you submitting CFPs to?
published: true
description: 
tags: conference, talks, discuss
---

A bunch of us on the DEV team submitted to RailsConf last week! If you're one to give a talk/workshop, which conferences are you hoping to speak at this year?
Business Analysis Content Repository
Tags: uncategorized
Published: 2019-02-12 20:34:43

---
title: Business Analysis Content Repository
published: true
tags: Uncategorized
canonical_url: http://blog.paulorobertoelias.com.br/index.php/2019/01/28/business-analysis-content-repository/
---

[![](http://blog.paulorobertoelias.com.br/wp-content/uploads/2019/01/ba-1-1024x575.png)](https://prelias.github.io/businessanalysis/)<figcaption>Layout inicial e atual do site</figcaption>

Gostaria de compartilhar aqui uma ideia que tive em meio a um curso de BPM, que tive o prazer de participar, na empresa em que eu trabalho.

No curso, tive acesso a diversos conteúdos interessantes e eu já possuía também alguns outros salvos em sistemas como o Pocket, mas senti falta de um espaço onde eu pudesse ter acesso a eles de forma realmente simplificada, utilizando-se inclusive, de alguns conceitos pregados pelos próprios conteúdos: catalogue, armazene, distribua, torne o acesso fácil e rápido. E foi assim que surgiu o “Business Analysis Content Repository”.

Para acessar, basta clicar na imagem do post ou neste link: [https://prelias.github.io/businessanalysis/](https://prelias.github.io/businessanalysis/)

Como eu cito na introdução do próprio site, a ideia é também, que ele venha a ser um espaço colaborativo, por isso ele foi construído como um repositório do GitHub. Sendo assim, sinta-se à vontade para fazer um fork do projeto ou entrar em contato comigo caso queira participar.

Um abraço.
Using SDL2 in C (and with C++, too)
Tags: sdl, c, cpp
Published: 2018-10-29 03:52:18

## What is this?

I'm asking the same question right now to myself. This is the first article I've written on Dev.to so I'm new to this and I'm not sure how this series will be structured. Of course, I could preplan this before I made this series, however, I want to start writing articles and start getting a feel for this.

But back to the question.

_What is this?_

This is a series that teaches using SDL2 in C, and perhaps in C++ also. This series isn't designed to make you understand everything about SDL2. Instead, it will (hopefully) teach you enough where you can start writing applications/games in SDL2.

### What is SDL2 and should I care?

For starters, SDL is an acronym for **S**imple **D**irectmedia **L**ayer and is a cross-platform library designed to give low-level access to audio, keyword, mouse, graphics and more with a simple to use C API.

Why should you care? Well, because many applications such as playback software, emulators, and popular games from Valve use SDL2. SDL2 depending on your platform uses OpenGL or Direct3D. Instead of using Direct3D or OpenGL directly you can have a nice layer atop to help avoid touching Direct3D or OpenGL.

### Getting started

#### Windows

For Windows users, go to the [SDL2 website](libsdl.org) and head to the download page. Under _Development Libraries_ choose SDL2-devel-[VERSION NUMBER]-VC.zip if you're using Visual Studio which I assume most C/C++ developers on Windows use. If you use MinGW, choose the one underneath for VS.

Unzip and you will see several folders with the names _docs_, _include_, and _lib_. _include_ contains the header files which we will be needing soon. Create a simple C++ VS project and copy/move the _include_ directory in your project folder. Same thing with _lib_.

Now in _lib_ there exists two folders: _x64_ and _x86_.

In _x86_ contains the 32-bit version of the library whereas in _x64_ contains the 64-bit version. The one you want to use depends on what you're targeting for. If unsure, use the 32-bit version.

Unfortunately, this is as far as I can go. I quit using Windows a while back and have been using Linux ever since. You'll have to configure Visual Studio or whatever IDE you are using to search for the _include_ directory and search for the _lib/x64_ or _lib/x86_ directory depending on what architecture you are targeting and linking against the libraries within.

#### Linux

For Ubuntu and its derivatives can use the following command to install the development version of SDL2:

`sudo apt-get install libsdl2-dev`

For Manjaro users and other similar Linux distributions like Antegros can use the following command:

`sudo pacman -S sdl2`

#### What will be next?

In the next part, we'll get a window up and running and get an image loaded onto the screen.
Data loss in crawling
Tags: crawling, webcrawling, scraping, proxy
Published: 2019-01-28 13:40:13

---
title: Data loss in crawling
published: true
description: Comparing two web data extraction tools
tags: crawling, webcrawling, scraping, proxy
---
Hello! 
Was checking [Oxylabs](oxylabs.io/web) and what kind of tools they offer for web crawling. Maybe anyone has tried them out and checked if there is any kind of data loss between their two offered data extraction methods - real-time and callback?
Running node in UTC instead of local timezone
Tags: node, todayilearned
Published: 2019-01-28 13:29:44

---
title: Running node in UTC instead of local timezone
published: true
description: Running a local node process in UTC instead of local timezone
tags: node, til
---

Set the env variable `TZ` to `utc` to run a node process in UTC instead of your local timezone. This enables debugging DateTime issues locally because servers often run in UTC.

e.g. `TZ=utc node index.js`
Contributing vs Dumping
Tags: writing, meta, discuss
Published: 2019-01-28 12:43:54

---
title: Contributing vs Dumping
published: true
description: 
tags: writing, meta, discuss
---
One of the things that have drawn me to DEV was that it mostly consists of individuals willing to share their experience, knowledge, and discuss things.

That's in contrast to some other sites that became a dump for companies willing to advertise themselves or their products with low-quality, para-technical content.

Sadly, my today's DEV experience shows some room for improvement in this area:

![](https://thepracticaldev.s3.amazonaws.com/i/s9t2acji0wgnn4df0sr2.png)

This is not meant to be an attack on Octoparse or anyone else. I'd just like to feel that all members are at least trying to contribute to the community, not just using it as a means to another end.

If I'm being too harsh or shouldn't sweat over an isolated case, let me know and I'm sorry in advance!
Data privacy Day 2019
Tags: privacy, privacyday
Published: 2019-01-28 10:37:19

---
title: Data privacy Day 2019
published: true
description: Data privacy Day 2019
tags: privacy, privacyday
---

This #PrivacyDay get back control over the #extensions installed in your browser. 

@firefox - https://addons.mozilla.org/en-US/firefox/addon/permission-inspector

@googlechrome - https://chrome.google.com/webstore/detail/permission-inspector/ahfoecogpaccmnaiilgchbfemajmkcdi 

`#advocate4privacy #DataPrivacyDay`
const vs. let
Tags: javascript, variables, beginners
Published: 2018-10-28 21:13:12

---
title: const vs. let
published: true
description: 
tags: JavaScript, Variables, Beginner
---

If you're new to JavaScript and coding like me, then you may be wondering why people use const or let. I come from a science/mathematics background and constant means to me that the constant will not vary or change. In JavaScript, const means that the variable assigned cannot be reassigned and it only exists in the block of code where it has been declared or lexical scope.

 ![Attempt of logging a const outside of its lexical scope](https://thepracticaldev.s3.amazonaws.com/i/e90wzs2gvda9ktgtihak.png)

In the example above, I logged sum outside of the function in which it was created and it returned an error because sum is only defined inside the function.
 
![Logging a const within its scope](https://thepracticaldev.s3.amazonaws.com/i/u0xc0gb10x2konumqpua.png)

Just to validate my explanation, I provided a log within the variable's lexical scope. Let works in a similar fashion except let can be reassigned, which makes it useful for loops and mathematical purposes.

![] (https://thepracticaldev.s3.amazonaws.com/i/gvhnxdj8qv5r6ouig45a.png)

So I made a basic addition function much like the previous examples, except this function takes an array of numbers. This is where let becomes mandatory. If I were to make the variable sum into a constant, then the code will return an error because we are attempting to reassign its value. The same rule applies for the loop where I let i = 0. If I set const i = 0, then it will never equal anything other than zero. When the code attempts to increment the constant variable, the console returns an error saying "assignment to constant variable". 

So that's the difference between const and let. This is my second blog post ever so let me know what you liked or didn't like and I will try to improve on that in my next post.
I created a Discord channel meant for developers to come together/think of an idea/work on a project together.
Tags: discord, javascript, node, projects
Published: 2019-01-28 07:49:46

---
title: I created a Discord channel meant for developers to come together/think of an idea/work on a project together.
published: True
description: Validated an idea that there are many people looking for a community such as ours.
tags: Discord, JavaScript, Node, Projects
---

Hi Dev.to!

For me, it's always been difficult to find like-minded developers or find a place for the sole purpose of thinking of an idea and working together. Because of that, Developers Grove was created! I created a Discord channel meant for developers to come together, think of ideas, and work on those ideas together as a project. It started 3 days ago and now we're over 120 members strong! Many people in the chat have told me they've been looking for something like this as well. I'm really glad I wasn't the only one feeling like this and knowing that the idea has been validated. 

I wanted to invite the Dev.to community to this Discord channel as well.

Here is the link to the Discord channel: https://discord.gg/29TK6DW 

Come and introduce yourself, let others know what project ideas you have, are interested in, and see if you want to join any projects yourself! We'll be waiting for you in the Grove! :)
Debugging Python in VS Code
Tags: python, vscode, debugging
Published: 2019-01-28 07:46:09

---
title: Debugging Python in VS Code
published: true
description: How can we debug code in VS code 
tags: python, vscode, debugging
---
![debug](https://thepracticaldev.s3.amazonaws.com/i/xxbci17j9b769rgrjnul.jpg)

I've covered getting started with installing [Pep8 and Pylint](https://dev.to/j0nimost/setting-up-pep8-and-pylint-on-vs-code-34h) in your virtual environment. So you've written some Flask/Django/Normal Python code and would like to debug your application. How do you go about it? Well this post will paint a vivid picture of how to do it.

First you need to open a terminal in VS Code you can do this by using ![ctrl + escape](https://thepracticaldev.s3.amazonaws.com/i/8jles7knwriapmkq8y3r.png)
Once the terminal is opened enable your virtualenv if you named your virtualenv `env` then the command will look like
 
```

$ source env/bin/activate

```

We can now enable debugging in vscode you can do this by using `f5` or 
by clicking debug from menu tab the start with debugging
![debug start](https://thepracticaldev.s3.amazonaws.com/i/qd3ql8gzpft0qehufqq2.png)
When activated you should see a debug panel. The python package for vscode comes with a number of pre-configured debug environments for different python frameworks. We need to set environment variables to debug our application, from the new debug panel select the settings icon, then add environment variables to run your application in. For my case I added `env` and defined some environment variables to run my Flask app.
![add env](https://thepracticaldev.s3.amazonaws.com/i/to7coexi5sha9vfmnr63.png)

From the python drop down list select the debug environment of your choice. This will allow the application run in a debug environment bundling up the requirements set to run the application in that environment.
![enable debug](https://thepracticaldev.s3.amazonaws.com/i/495g0r8ru4zyytiyeb2x.png)


Finally, you can now set [breakpoints](https://en.wikipedia.org/wiki/Breakpoint) which will allow you to follow method calls and application running cycle. You can add a breakpoint by clicking on the left position of a line number of the line you want to break/pause during debugging. When the debug pauses it should look something like this.
![breakpoint](https://thepracticaldev.s3.amazonaws.com/i/67k7v2o33s703k41xwoy.png)
You can follow method calls using the debug controls provided at the top.
![debug controls](https://thepracticaldev.s3.amazonaws.com/i/h2vi4tw4802x6wza3bbz.png)
Starting from the left; 
- The first control continues running and ignores that breakpoint
- The second control ignores method calls in that breakpoint and jumps to the next line of code
- The third control follows the method calls in that line of code
- The fourth control returns to the parent method call
- The fifth control restarts the debugging session
- The sixth control stops the debugging session.

### Note:
Debugging in VS Code applies to all supported languages and the settings may vary.
Brand new look for LaravelCollections.com
Tags: laravel, php, design, sideprojects
Published: 2019-01-28 07:07:16

Hi There,

I am happy to announce the brand new look for [LaravelCollections.com] (https://laravelcollections.com/?utm_campaign=update-redesign)

Users suggested a better design for the site, so I have something to show you. I have tried to keep it simple, but I am no designer.

Thanks to everyone providing valuable feedback about the site.
Why Are Some Developers so Allergic to IDEs?
Tags: discuss, productivity, programming
Published: 2019-01-28 06:58:25

---
title: Why Are Some Developers so Allergic to IDEs?
published: true
description: Countless times I meet developers who prefer simpler editors. And by “prefer” I mean that they have strong negative feelings towards any IDEs, especially the ones that one needs to pay money for. Let’s discuss why is that?
tags: discuss, productivity, programming
---

Countless times I meet developers who prefer simpler editors. And by “prefer” I mean that they have strong negative feelings towards any IDEs, especially the ones that one needs to pay money for.

Now, it’s worth mentioning that my path through coding tools over the last 20 years went like this:

Notepad -> Turbo Pascal Editor -> Delphi -> Visual Studio -> Gedit -> Sublime Text -> Vim -> Emacs -> Emacs (Evil mode) -> Atom -> Vim -> IntelliJ Idea (settled for now).

The switch to IDE had happened when I attended a Software Craft meet-up. I’ve paired with another developer who’ve shown me something that looked like magic to me at a time.

Basically, I’ve felt doubts about the tooling of my choice, since this IDE that was in front of me (in the hands of an experienced user) could allow me to do development at a 5x-10x rate of what I could currently.

Now the question is: **why do we, developers, feel such negative feelings towards a paid tool that can boost our productivity so much?**

Let’s discuss!
Python TDD with Pytest  -- Getting Started
Tags: python, tdd, tutorial, learning
Published: 2019-01-28 06:35:06

Test-Driven Development is great. If you're a Pythonista, it gets even better with pytest - a framework that makes building simple and scalable tests easy. 

In this series, I'll be exploring the cool features that pytest offers to help make testing Python code a breeze.

## Preparing your python environment
Let's set up our testing environment with `virtualenv`. We'll be working with Python 3. `cd` into your working directory and create a new virtual environment:

```shell
python3 -m venv env
```

Activate the virtual environment:

```shell
source env/bin/activate
```
### Installing `pytest`

```shell
pip install pytest
```

That's all you need to do to get pytest ready. You can check the installed version by running:

```shell
pytest --version
```

## Creating your first test
Say we need to create an app that says hello to the name you give it when it runs (I know, very original 😅). 

```python
# simple hello world test

def hello_world(name):
    pass

def test_hello():
    assert hello_world("World!") == "Hello World!"	
```

You'll notice that our test function name begins with the word _test_. That's how pytest discoveres test methods. Also, :

* Test files should be named `test_<something>.py` or `<something>_test.py`
* Test classes should be named `Test<Something>`

Running `pytest hello.py` should return:

```shell
collected 1 item
hello.py F                         [100%]

===================== FAILURES ======================
    def test_hello():
>       assert hello_world("World!") == "Hello World!"
E       AssertionError: assert None == 'Hello World!'
E        +  where None = hello_world('World!')

hello.py:6: AssertionError
```

Pytest shows why the test failed: `AssertionError: assert None == 'Hello World!’`. Obviously, we have no code in our hello function so let’s fix that.

```python
def hello_world(name):
    return "Hello {}".format(name)

def test_hello():
    assert hello_world("World!") == "Hello World!"
```

Running `pytest hello.py` should now return:

```shell
collected 1 item     
hello.py .                       [100%]

==================== 1 passed in 0.04 seconds ======================
```

As you can see, it’s pretty easy to get started with testing in python with pytest. Now that we have everything set up, we’ll be going into more advanced features as the series continues.
LWC – First Look – Handle DOM Events
Tags: lwc, salesforce, video
Published: 2019-02-01 18:44:10

---
title: LWC – First Look – Handle DOM Events
published: true
tags: LWC,Salesforce,video
canonical_url: https://wipdeveloper.com/lwc-first-look-handle-dom-events/
cover_image: https://wipdeveloper.com/wp-content/uploads/2019/01/Screen-Shot-2019-02-01-at-12.00.41-AM-3.png
series: Lighting Web Components - First Look
---

{% youtube YaCbbmbXHQA %}

Hello, I’m Brett with WIPDevelopers.com. Now that we’ve used properties to expose data from our JavaScript to our HTML template, why don’t we look at how to handle DOM events and react to it in the JavaScript file. Here we have our HTML template.

## DOM Events

What I want to do is handle when somebody clicks.

It would help if I spelled it correctly. When somebody clicks on this `h1` one I wanted to

I wanted to call a method called `handleClick` on my class

and the JavaScript on the `h1` I’ve assigned to an `onclick` attribute without quotes the name of the method I want to call on my JavaScript file, and that is surrounded by the curly braces.

So we’ll go into our JavaScript file and add that as a method.

Since this is a JavaScript class, we do not have to type function.

First thing I’m going to do is saying that it was clicked in the console

To get rid of the square braces call `window.console.log`.

Now this isn’t gonna be terribly exciting. So let’s also change the value of our label.

I’m going to split it and I’m going to reverse it. Then we will join it with no spaces or no characters, and I should definitely reassign it to itself.

So what I’m doing here is I take the label or split it on every character into an array and I reverse the array and then I rejoined it into a string and reassign it back to the label. Once deployed out.

Now we can refresh the page now if I click on it, it reverses.

We can keep clicking an arrow key person.

But what if we want to handle another kind of event

instead of handling and `onclick` method, what’s handle `onmouseover`?

Now as my when my mouse goes over it, it reverses.

Not terribly useful but we now know how to wire up an event in HTML directly to our JavaScript.

## That’s it for now.

Remember to sign up for **[The Weekly Stand-Up!](https://wipdeveloper.com/newsletter/)**  and you can get updated with any new information we have on WIPDeveloper.com.

The post [LWC – First Look – Handle DOM Events](https://wipdeveloper.com/lwc-first-look-handle-dom-events/) appeared first on [WIPDeveloper.com](https://wipdeveloper.com).
How to organize programming projects?
Tags: discuss, programming, devtips
Published: 2019-01-28 05:54:49

---
title: How to organize programming projects?
published: true
description: 
tags: #discuss, #programming, #devtips
---

I'm slowly working on getting my assortment of code organized, so I can put some of it on github. I have stuff scattered all over, most in a code directory, but some in other directories I've copied over from various other sources.

I read {% link nickjj/how-do-you-organize-source-code-on-your-computer-i49/ %} and several other articles that came up in a google search, so I'm starting fresh with a ~/dev/ directory, and giving each project their own directory. However, I have some projects I've done in multiple languages, for a example, a guess the number game in Java, and bash. I also did a few of the problems on [Project Euler](https://projecteuler.net/), and at least one I solved in more than one programming language.

I'm wondering what the best or recommended practice is for naming projects done in multiple languages. For example, should I create separate directories for the number guessing game, named guess-java, guess-shell, etc, or should I nest them, for example guess\java & guess\shell even though a lot of the advice I read was to not group projects by language
From Teacher Mama to Coder Mama
Tags: beginners, webdev, career, productivity
Published: 2019-01-28 04:44:17

---
title: From Teacher Mama to Coder Mama
published: true
description: The start to a career change, from education to tech, with a little bootcamp magic + lots of Googling
tags: #beginners, #webdev, #career, #productivity
---

Introductions are so intimidating! It's the same sort of paralyzing fear that I associate with middles school dances, or awkward first dates. What is cool? Who should I associate with? What impression will be made? 

SO, Hi. I'm Alexandra, a 30-something mom of two.  I have no idea what's cool, and few associations, but I've long been driven by an overwhelming love of learning - so if any impression should be made, it's that.

Most recently, I was a high school English teacher. By recently, I mean for I've been in education since 2010, until I decided last fall that teaching secondary education had become more draining than uplifting. After turning in my resignation and faced with the quiet refrain of "so what are you doing next?", I turned to coding. Returned, really, as I spent two years out of college designing and coding email newsletters. There's been a long path here, of in and out of tech, that I'll get into another day. But for a long time, I never thought of myself as smart enough or tech-y enough to succeed as a developer. Those days are over with. 

So now I have enrolled in a bootcamp of sorts, but not the typical coding bootcamp. Rather, as a member of the first cohort of MomsCan:Code Develop Camp, I'm honing a lot of developer soft skills - personal branding, remote working, peer programming, and more - while also working through coding tutorials and building products. And it's AMAZING. I'm energized. I'm learning. I have accountability, peer support, AND an amazing mentor in tech. 

In the long term, I want to converge these constant threads in my life. Learning, technology, teaching, design, coding, stories. I haven't figured out how I'm going to do that yet, but the journey is half the fun - right?

As long as I don't let that paralyzing fear get in my way.