teleren/devto huggingface dataset:
Data types in Python (Dutch)
Tags: python, dutch, nederlands
Published: 2020-02-23 13:56:23

Je kunt nooit een efficiënte programmeur zijn zonder de data typen en algoritmes te beheersen. 

Problemen oplossen bij het programmeren is onmogelijk zonder de basis. 
Ongeacht op welk aspect van de <a href="https://python.org">python</a>-programmering u zich wilt richten, kunt u niet voorbijgaan aan de data types.

Elke <a href="https://pythonprogramminglanguage.com/variables/">variable</a> heeft een datatype, ook al is deze niet expliciet gedefinieerd.


## Primitieve gegevensstructuren

*  Integers : Wordt gebruikt om numerieke gegevens weer te geven, meer bepaald hele getallen van negatief oneindig tot oneindig, zoals 2,3, -100000, 10000.

* Float : 'Float' staat voor floating point number. Het wordt gebruikt voor rationele getallen die gewoonlijk eindigen met een decimaal getal, zoals 1.1,1.2,3.93 enz.

* String : <a href="https://pythonbasics.org/strings/">Strings</a> zijn een verzameling van karakters, woorden of andere tekens. In Python worden strings gecreëerd door een reeks karakters in te sluiten binnen een paar dubbele of enkele aanhalingstekens. 

```python
x = "Hello World"
```

## Booleaan 

Het is een ingebouwd gegevenstype dat de waarden TRUE of FALSE kan aannemen.

```python
x = True
y = False
```

## Lijsten

Een lijst is een set van nul of meer objecten. Dit kunnen integers zijn maar ook floats, booleans of andere data typen

* Voordelen: Verwisselbaar en geordend. Gemakkelijk te begrijpen. Relatief efficiënt geheugengebruik.
* Nadelen: Zoeken is O(n).
 
Gebruik vierkante haakjes om een lijst te maken:

```python
    mylist = [ ]
    mylist = [1,2,3]
    mylist = ['a', 'b', 'c', [1,2,3] ] # 4 elementen 
```

##    Tupels
  
Onveranderlijke, geordende reeksen die verschillende objecten kunnen bevatten

* Voordelen: Onveranderlijk en geordend. Relatief efficiënt geheugengebruik (meer dan lijsten).
* Nadelen: Zoeken is O(n). Moeilijk te begrijpen voor veel Python-nieuwkomers.


```python
x = (3,)
y = (1,2,3,)
```

## Dictionary
    
Paren (sleutels en waarden) van objecten. Sleutels moeten hashable zijn.
    
* Voordelen: O(1) zoeken naar sleutels.
* Nadelen: Alleen zoeken met sleutel.

```python
x = { 'Dev':'Developer', 'Ops':'Operator' }
```
My coding playlist
Tags: discuss, codenewbie, beginners
Published: 2020-02-23 13:28:37


# The Playlist
{% spotify spotify:playlist:4HAXjLcuA4VT13MT9kSCQ3 %}

I've been making a coding playlist for the last couple of months and I thought it may be of interest to other devs out there.

The playlist is mostly electronic with lyrics, so if that distracts you then this is probs not the playlist for you. I find this genre of music helps me code for much longer periods of time.

I update the playlist pretty frequently so give it a follow if you like it!

https://open.spotify.com/playlist/4HAXjLcuA4VT13MT9kSCQ3?si=RTB_J6VdRo61WkGtTxlg2A
FTP Seer - A simple web based FTP file explorer
Tags: node, fullstack, svelte, ftpseer
Published: 2020-02-23 13:15:13

# I've developed a full stack app. 🎉 Yayy!!


If you need a full stack app which can explore FTP server directory and get file content through web, take a look at my project.

## Demos are below.💡
Backend API - https://ftpseer.herokuapp.com
Frontend UI - https://ftpseerclient.herokuapp.com

## Source code at 👾
https://github.com/m3yevn/ftp-seer and
https://github.com/m3yevn/ftp-seer-client

# Tech Stack : NodeJS, JsFtp, Svelte, Sapper

If you wish to contribute kindly create issues and pull requests.

Cheers! 🍺 🍺 🍺

Check me out @ https://kevinmoemyintmyat.gitlab.io
Daily Developer Jokes - Sunday, Feb 23, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-02-23 13:00:22

---
title: "Daily Developer Jokes - Sunday, Feb 23, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Sunday%2C%20Feb%2023%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12598ab1885.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ How do you stop a web developer stealing your stuff?

___A:___ Write 403 on it.
 -->
Help me choose my next book
Published: 2020-02-23 12:46:57

---
title: Help me choose my next book
published: true
description: Can't choose between two developer books, Pragmatic Programmer or Fowler's Refactoring book
tags: 
---
As an experienced developer, I always want to sharpen my saw and thus I try to keep up with blogs, articles and books. 

I planned on reading the new version of [The Pragmatic Programmer](https://pragprog.com/book/tpp20/the-pragmatic-programmer-20th-anniversary-edition) but then came across Martin Fowler's book [Refactoring, Improving the Design of Existing Code]( https://martinfowler.com/books/refactoring.html)

And now I am in doubt. I can only read one book at a time, so which one should I pick? Pragmatic Programmer is interesting, but as a developer with 26 years of experience (or 35 if you count my child years as well) I might profit more from the Refactoring book.

What would you suggest?
Origen de rotación
Tags: codepen
Published: 2020-02-23 12:31:02

### CSS - Origen de rotación / Rotation origin

Cambiar dinámicamente el origen de rotación de la figura para entender un poco la propiedad `transform-origin`.


#### Translation to English

Dynamically change the rotation origin of the figure to understand a little the `transform-origin` property.

{% codepen https://codepen.io/dlunamontilla/pen/vYOyMRR %}
🕶 Adding users on WildFly 18
Tags: devops, wildfly, java
Published: 2020-02-23 11:15:22

**Step 1:**

Navigate to WildFly 18 into **bin** directory and open **add-user.bat** file.

```bash
What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
```

**Step 2:**

Press the first option as Management User to access into WildFly console.

```bash
Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : opantazos
```

**Step 3:**

Follow the password recommended solution.

```bash
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should be different from the username
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
Password : athens
```

```bash
WFLYDM0099: Password should have at least 8 characters!
Are you sure you want to use the password entered yes/no? yes
```

```bash
Re-enter Password : athens
```

**Step 4:**

Declare the group that you are connected on it.

```bash
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]: profile
```

```bash
About to add user 'opantazos' for realm 'ManagementRealm'
Is this correct yes/no? yes
```

```bash
Added user 'opantazos' to file 'C:\Users\orest\OneDrive\Desktop\wildfly-18.0.1.Final\wildfly-18.0.1.Final\standalone\configuration\mgmt-users.properties'
Added user 'opantazos' to file 'C:\Users\orest\OneDrive\Desktop\wildfly-18.0.1.Final\wildfly-18.0.1.Final\domain\configuration\mgmt-users.properties'
Added user 'opantazos' with groups profile to file 'C:\Users\orest\OneDrive\Desktop\wildfly-18.0.1.Final\wildfly-18.0.1.Final\standalone\configuration\mgmt-groups.properties'
Added user 'opantazos' with groups profile to file 'C:\Users\orest\OneDrive\Desktop\wildfly-18.0.1.Final\wildfly-18.0.1.Final\domain\configuration\mgmt-groups.properties'
Is this new user going to be used for one AS process to connect to another AS process?
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? no
```

```bash
Press any key to continue . . .
```

**Step 5:**

Access to WildFly console on local machine.

Access to WildFly web console via your credentials that you have entered earlier in bash mode on IP local address http://localhost:8080/ with username: opantazos and password: athens.
How to Use Serverless with NestJS
Tags: nestjs, node, mysql, typescript
Published: 2020-02-23 11:14:16

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

Need an example of how to get started with NestJS and Serverless framework?

NestJS is a back-end framework for creating scalable applications.

# Getting Started

### NestJS

To start playing with NestJS you should have node (version >= 8.9.0) and npm installed. You can download and install Node from the official website.

### Create a database automatically

```sh
docker run --name mysql57 -p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=superpassword \
-e MYSQL_USER=user \
-e MYSQL_PASSWORD=pass \
-e MYSQL_DATABASE=mydb \
-d mysql/mysql-server:5.7
```

### Serverless framework

For serverless you need to install the required package globally:

`npm install serverless -g`



To follow this tutorial, you are going to need clone repository [NestJS-Serverless-TypeOrm](https://github.com/kop7/serverless-nestjs-typeorm)


Now just start application:

` npm run sls:offline`

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




Let's create the first author in the application

![](https://media.giphy.com/media/WTESQLYZpFMDM95cPZ/giphy.gif)
![](https://media.giphy.com/media/Y15E6Z6PoI04AzjHfd/giphy.gif)


You can try crud operations on Author


# That's it!

Feel free to ask questions, make comments or suggestions, or just say hello in the comments below.
Open a Pull Request In Azure Devops From Powershell
Tags: powershell, git, azuredevops, cli
Published: 2020-02-23 10:50:32

I'm naturally lazy and I like to be able to do things from the terminal as much as possible, so I came up with a small Powershell function to open a new pull requests in Azure Devops.
Feel free to adopt and adapt this to your own needs.

## The code
```powershell
Function Open-PullRequest([string]$targetRef="develop") {
  if (-not (Get-Command git)) {
    Write-Host 'Could not find git!' -ForegroundColor Red
    return;
  }

  $branch = git rev-parse --abbrev-ref HEAD --
  $remote = git remote get-url origin

  # This repo uses SSH
  if ($remote.startsWith('git@ssh.'))
  {
    $remote = $remote.replace('git@ssh.dev.azure.com:v3/', '')
    $remote = $remote.split('/')
    $remote = "$($remote[0])/$($remote[1])/_git/$($remote[2])"
    $url = "https://dev.azure.com/$remote/pullrequestcreate?sourceRef=$branch&targetRef=$targetRef"

    # Open default browser
    Start-Process $url
  }
  # This repo uses HTTPS
  else {
    $remote = $remote.split('@')
    $remote = $remote[1]
    $url = "https://$remote/pullrequestcreate?sourceRef=$branch&targetRef=$targetRef"

    # Open default browser
    Start-Process $url
  }
}
```

## Installation
Copy this function into your Powershell profile.

## Usage

```powershell
Open-PullRequest # Will open a new pull request from your current branch to develop
Open-PullRequest -targetRef REMOTE_BRANCH # Will open a new pull request from your current branch to whatever branch you choose
```
![New Pull Request Page](https://dev-to-uploads.s3.amazonaws.com/i/5oj4excdzuygiig5rcqh.png)

## Caveat
I've only tested this with Powershell Core 6.2.4 on windows 10
Nikema's 100 Days of Code - Days 6 and 7
Tags: 100daysofcode
Published: 2020-02-23 10:41:31

I wrote a lot on GitHub, so I'll keep it short here and provide a link to my log and the day's tweets.

https://github.com/prophen/100-days-of-code/blob/master/Day-6-7.md

It kind of looks like I'm all over the place but I'm not. Everything I'm working on is something I need to learn for my company work or the contract I'll be starting soon.

# The Tweets
-----

{% twitter 1231322299669762049 %}
- https://twitter.com/dev_nikema/status/1231324685633122304?s=20
- https://twitter.com/dev_nikema/status/1231422919697321984?s=20
- https://twitter.com/dev_nikema/status/1231522505849892865?s=20
[No Code]Using MemberStack? Frustrated when your Dashboard button only shows after a page refresh?
Tags: nocode, showdev, visualdevelopment
Published: 2020-02-23 10:24:52

Frustrated when your Dashboard button only shows after a page refresh when using MemberStack?

Yea... it's common, it's not just you 😉

Why does this happen?

The problem is not with MemberStack specifically, the problem is integrating any 3rd party service will have a natural latency.

Meaning… there is time that it takes to send a request to a service across the web, for that service to do something, and then send the results back to you across the web again.

This is what happens when using MemberStack from, say Webflow. It takes a few seconds.

How do I fix this?

Here's the 8 minute step-by-step video walk through to fix it:

{% youtube jKxS3IfLZhU %}

### If you prefer, there is a [downloadable 123 page PDF Guide](https://nocodequest.com/memberstack-dashboard-button/) with 230 screenshots to walk through this setup at your own pace.
PDF file manipulation with python 3 (Problem)
Tags: python, help, question
Published: 2020-02-23 10:16:19

Hi, I have a problem I would like help with, i'm working on a project/script with python 3 where I want to manipulate a large PDF file (50-60 plus pages long) where I would like to find a specific keyword in that file, this keyword is repeated multiple times in the file and each time this keyword is referring to a different data set, then save how many times the keyword was found, in what pages was found and then split those pages from the original file and then merge those pages together in a single file.

I will use multithreading of course, because this script will run alongside other's in a small in-house server and it's already running quite a lot, other scripts.

I found some things online but no luck in what my problem is, except some python libraries that is possible to do what i'm looking for, but i have no idea how i will found this keyword in the file, because the keyword isn't in the same page order in the files, it's different in every file!!
Web app to Generate Soft-UI CSS code 😍😄😁
Tags: html, css, javascript
Published: 2020-02-23 10:06:01

---
title: Web app to Generate Soft-UI CSS code  😍😄😁
published: true
description: Web app to Generate Soft-UI CSS code
tags: html, css, javascript
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/e5rnxkb8qtyarafa6peg.png
---


Hey coding people, hope you guy's enjoying  :fire: Sunday. Me learning about [neumorphism](https://uxdesign.cc/neumorphism-in-user-interfaces-b47cef3bf3a6) (soft UI) from Google then I have found this amazing web app called [Neumorphism.io](https://neumorphism.io) in this web app you guy's can generate Generate Soft-UI CSS code which is designed and coded by [Adam Giebl](https://www.instagram.com/adamgiebl.io/).

in my :seedling: [previous article](https://dev.to/atulcodex/neumorphism-soft-ui-4aij), I have shown you to make soft UI by code but after this web app you will increase your productivity more  :muscle: 

:maple_leaf: See some example images below and use this app to make your next Soft UI project.


![Atul Prajapati Soft ui](https://dev-to-uploads.s3.amazonaws.com/i/9tdd2drawll92fhzvg20.png)

![Atul prajapati soft ui](https://dev-to-uploads.s3.amazonaws.com/i/8mrjku0qj6ide5sixy4g.png)

![Atul prajapati freelancer](https://dev-to-uploads.s3.amazonaws.com/i/cl2yqymcvzbmounxs3ce.png)

![Atul Prajapati ecommerce](https://dev-to-uploads.s3.amazonaws.com/i/1v205qc3zhmzqickmn4o.png)

![Atul Prajapati freelancing](https://dev-to-uploads.s3.amazonaws.com/i/cdv508wqidp2yq5r8w7u.jpg)

Currently, I am :zap: [learning advance CSS Course](https://www.eduonix.com/web-development-css3-scratch-till-advanced-project-based/UHJvZHVjdC0xMzE1MDIw) :zap: to make such amazing looking UI.
Tango is on the scene 💃
Tags: server, accesslogs, go, tool
Published: 2020-02-23 09:37:36

---
title: Tango is on the scene 💃
published: true
description: Tango is a dependency-free command-line tool for analyzing your access logs
tags: server, access logs, golang, tool
---

Everybody, Tango is on the scene 💃

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

I have released a simple CLI tool to streamline access log analyzing workflow 🎉

Wondering what's inside?

https://github.com/roma-glushko/tango

Tango is designed to generate different reports to be helpful during log analyzing routine:

- analyzing how incoming traffic affects website performance
- investigating security incidents and their impact on the website
- filtering/aggregating logs to get other kinds of insights from them

Currently, the following reports are available for you 🛠:

- Custom Report: converts access logs to CSV format with the ability to filter records
- Geo Report: collects GEO information for all IPs that accessing the website with the ability to sort by countries and continents.
- Browser Report: groups requests by browsers/crawlers
- Request Report: see which URLs were requested and how many times on the website
- Pace Report: check how many requests were sent during a certain time frame by each IP

It is possible to install Tango on macOS/Linux/Windows 📦

```bash
# macOS (via Homebrew)
brew tap roma-glushko/tango
brew install roma-glushko/tango/tango

# Linux (via Snap)
sudo snap install tango

# Windows (via Scoop)
scoop bucket add tango https://github.com/roma-glushko/scoop-tango.git
scoop install tango

```

Finally, here are some examples of usage:

```bash
# generate the pace report
tango pace -l access-log.log -r custom.csv

# get all requests from 128.2.3.4 IP
tango --ip-filter "128.2.3.4" custom -l access-log.log -r custom.csv

# get all requests to /newsletter/subscriber/new URL
tango --keep-uri-filter "/newsletter/subscriber/new/" custom -l access-log.log -r custom.csv

# get all IPs that requested /admin URL with GEO data
tango --keep-uri-filter "/admin/" geo -l access-log.log -r custom.csv
```

Give it a try today and you won't be disappointed:

https://github.com/roma-glushko/tango 💃💃💃
How to solve Netfliy 'command not found' problem
Tags: netlify, terminal, beginners
Published: 2020-02-23 09:35:59

Sometimes you get stuck on something which is supposedly really simple, but you can't figure out how to proceed. 
I had to deploy a static site to Netlify. I opened an account and went ahead and installed the Netlify command line tool on my macbook. Thing is, while the terminal prompted me with an installation successful output, I couldn't run any Netlify commands. No matter what I tried I got a command not found.
*Fortunately, it is easy to solve.*
Good chances are that the problem is actually that you need to update your $PATH env to make Netlify and other packages accessible to you everywhere.
Here is how you solve it:
1. (You probably already did this if you are here), install Netlify cli:
    ```npm install netlify-cli -g```
    Now, pay close attention to the prompt you are receiving on your terminal. It  will show the installation directory which you need to copy, and will look something like this:
    ```/Users/username/.npm-global/bin/ntl -> /Users/kobyofek/.npm-global/lib/node_modules/netlify-cli/bin/run
/Users/username/.npm-global/bin/netlify -> /Users/kobyofek/.npm-global/lib/node_modules/netlify-cli/bin/run``` 
    Specifically, you need to copy this part:
    ``` /Users/username/.npm-global/bin/ ```

2. Now, we need to add that to our .bash_profile. 
    How do we do that? Easy, fire up your vim editor and insert the following lines:
    ``` export PATH=/Users/username/.npm-global/bin/:$PATH ```
    If you need to freshen up a bit on your vim skills, don't forget to use `i` to insert some text where your cursor is positioned and `:x` to save and quit.
3. run the following:
    ```source ~/.bash_profile```
    You should now be good to go and Netlify should be available for you in your terminal.
How to exclude long lines in your grep results?
Tags: grep, bash, unix
Published: 2020-02-23 08:59:12

When we `grep` for anything on a Mac or Linux:

```bash
grep -ri ContactComponent . 
```

the output can have really long lines, from the "compiled output" or the webpack results. To filter out those results, we can add an alias to our Bash `.bashrc`:

```bash
alias excludelonglines='grep "^.\{0,300\}$"'
```

So then we can do:

```bash
grep -ri ContactComponent . | excludelonglines
```

in the future.  It will exclude any lines that are more than 200 characters long for you.

If you want, you can name the alias `exlong` instead, to make it easy for typing. Or on many systems, you can type `excl` and press the <kbd>tab</kbd> key, and if you don't have other alias or command that starts with `excl`, it will auto-complete for you. In fact, nowadays I just simply alias it as:

```bash
alias excl='grep "^.\{0,300\}$"'
```

so I can do

```bash
grep -ris ContactComponent . | excl 
```

I recommend using at least `300` as the length, because when the first grep result is obtained, the file name and path is already there, which could easily take up 80 or 100 characters, so if you do:

```bash
grep -ris ContactComponent . | grep import | excl 
```

then your `excl` is only including the lines that are about 200 characters long.  If you use `200` in the alias, then the length is 100 characters long and you may miss something if it happens somebody has a line that is 120 characters long.

Sometimes, there can be error messages that make the output messy (such as soft link not exists, etc, which sometimes happen to `./node_modules`). In such case, you can use

```bash
grep -ris ContactComponent . | excl 
```

to silence the errors. Or redirect `stderr` to `/dev/null`:

```bash
grep -ri ContactComponent . 2> /dev/null | excl 
```
or
```bash
grep -ri ContactComponent . 2>&- | excl 
```

The `2` above is the file descriptor for the [standard error](https://en.wikipedia.org/wiki/Standard_streams) `stderr`. `/dev/null` is the "[null device](https://en.wikipedia.org/wiki/Null_device)" (also called the bit bucket or black hole). The `>&-` is to close the file descriptor, and `2>&-` is to close `stderr`.
Video version: Who is speaking on your behalf?
Tags: beginners, networking, career
Published: 2020-02-23 08:39:56

---
title: Video version: Who is speaking on your behalf? 
published: true
description: How to improve career in tech
tags: beginners, networking, career
---

On some many occasions, I found it difficult to read some of the best articles here and craved for audio or video version I could listen to or watch passively.


Therefore, I decided to covert some articles on this platform to videos after taking permission from their real owners.


Check this one out and leave your comment.


[Who is speaking on your behalf?](https://dev.to/unicodeveloper/who-is-speaking-on-your-behalf-2c5e)
 -- by Prosper Otemuyiwa.

Video version:

{% youtube wdHZ9hR1Hfw %}