teleren/devto huggingface dataset:
Meme Monday!
Tags: discuss, watercooler, jokes
Published: 2022-05-30 12:05:26

Welcome to the second **Meme Monday** post! Today's cover image comes from my favorite submission from [last week's thread](https://dev.to/ben/meme-monday-3o3m).

DEV is an inclusive space! Humor in poor taste will be downvoted by mods.
Elixir Meetup #6 hosted by Curiosum
Tags: elixir
Published: 2022-05-30 12:02:49

I will be presenting my "Learning Erlang and Elixir through Exercism and the Advent of Code" at the [Elixir Meetup #6](https://elixirstatus.com/p/NnZQo-elixir-meetup-6-hosted-by-curiosum)  hosted by [Curiosum](https://curiosum.com/) (a consulting company from Poznan, Poland) on June 8th, 2022, 18h00 Central European Time (CET). 18h00 Central European Time (CET) is 13h00 here in Curitiba, Brazil, which is on UTC-3.

My friend Gustavo Oliveira, from [elx pro](https://www.youtube.com/channel/UCLzHBFuE6oxPdP6t9iqpGpQ), will be presenting "Use TDD step by step with LiveView". LiveView, in this context, is Phoenix LiveView, a library for the Phoenix web framework that ["provides rich, real-time user experiences with server-rendered HTML"](https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html).


If you want to have an idea of the content of my talk, take a look at [my slides for the same talk at Code BEAM Europe 2022](https://github.com/adolfont/pensandoemelixir/blob/main/palestras/2022/codebeam_europe.md).

I will also be presenting the same talk, but in Portuguese, at [Code BEAM A Coruña 2022](https://www.codebeamcorunha.es/en).

See you there!
Content-Marketing und Bloggen Leitfaden
Tags: bloggen, content
Published: 2022-05-31 14:13:05

---
title: Content-Marketing und Bloggen Leitfaden
published: true
date: 2022-05-30 11:57:54 UTC
tags: Bloggen,content
canonical_url: https://bloggerpilot.com/content-marketing/
---

![Content-Marketing und Bloggen](https://bloggerpilot.com/wp-content/uploads/2022/05/content-marketing.png)

Content-Marketing ist mehr als nur ein Trend, sondern einer der...

Der Original-Artikel erschien auf [Content-Marketing und Bloggen Leitfaden](https://bloggerpilot.com/content-marketing/).

Content Marketing ist etwas, das Marken schon immer versucht haben, aber es kostet Zeit, Mühe und Geld. Heutzutage können die Inhalte selbst über Erfolg oder Misserfolg einer Marke entscheiden, und das gilt besonders für kleine Unternehmen. Zum Glück ist die Welt des Content-Marketings viel leichter zugänglich geworden, mit kostengünstigen und kostenlosen Plattformen wie Hubspot und Ahrefs, die es jedem leicht machen, zu lernen, wie man Inhalte für die Online-Präsenz seiner Marke erstellt. In dieser Einführung in das Content Marketing erfährst du, warum es ein so wirkungsvolles Instrument ist und wie du seine Vorteile am besten nutzen kannst.

Content Marketing bezieht sich auf die Erstellung und Verbreitung von Online-Informationen, um eine klar definierte Zielgruppe anzusprechen, zu gewinnen und zu binden, mit dem Ziel, profitable Kundenaktionen auszulösen.

## Content Marketing in B2B

Content Marketing ist zu einem wichtigen Teil der Strategie für jedes Unternehmen geworden, das wachsen und wettbewerbsfähig sein will. Immer mehr Unternehmen, vor allem aus der Tech-Branche, integrieren es in ihre Marketingpläne. Wenn du immer noch versuchst herauszufinden, was Content Marketing ist, bist du nicht allein. Viele Unternehmer und CEOs aus dem Tech-Bereich wissen immer noch nicht, was Content Marketing ist und wie es funktioniert.

Im Grunde genommen ist Content Marketing der Prozess der Erstellung und Verbreitung relevanter und wertvoller Inhalte, um eine klar definierte und verständliche Zielgruppe anzusprechen, zu gewinnen und zu involvieren - mit dem Ziel, profitable Kundenaktionen auszulösen.

Zusammenfassend lässt sich sagen, dass Content Marketing (CM) die Erstellung von Inhalten ist, die den Kunden einen Mehrwert bieten, die Markentreue stärken und die Effizienz des Unternehmens steigern. Geschäftsinhalte wie Whitepapers, Fallstudien und Präsentationen helfen Käufern, sich über ihre Branche und ihr Geschäft zu informieren. Mit Fallstudien können Unternehmen zeigen, was ihr Produkt oder ihre Dienstleistung leisten kann.

Whitepapers liefern wertvolle Informationen über die Produkte des Unternehmens. Laut dem Content Marketing Institute kostet Content Marketing etwa 62% weniger als traditionelles Marketing.
C++ Loopga doir masalalar. Chap Pascal Uchburchagi.
Tags: cpp, algorithms, programming, beginners
Published: 2022-05-30 11:53:44

### Raqamlardan foydalanib Chap Pascal Uchburchagini chop etish.

Natija (inputga 7 kiritildi deb tasavvur qilinsin):

```
            1 
          1 2 
        1 2 3 
      1 2 3 4 
    1 2 3 4 5 
  1 2 3 4 5 6 
1 2 3 4 5 6 7 
  1 2 3 4 5 6 
    1 2 3 4 5 
      1 2 3 4 
        1 2 3 
          1 2 
            1       
```

Kod:

```cpp
     
    cout << "Chap Paskal Uchburchagi qatorlari sonini kiriting = ";
    cin >> qatorlar;

    cout << "Chap Paskal Uchburchak shakli\n"; 

    for(i = 1; i <= qatorlar; i++)
    {
    	for(j = i; j < qatorlar; j++)
		    {
          cout << "  ";
        }
        for(k = 1; k <= i; k++)
          {
            cout << k << " ";
          }
        cout << "\n";
    }	

    for(i = qatorlar; i >= 1; i--)
    {
    	for(j = i; j <= qatorlar; j++)
		{
            cout << "  ";
        }
        for(k = 1; k < i; k++)
        {
            cout << k << " ";
        }
        cout << "\n";
    }
	
 	return 0;
}
```

Savol va Takliflar uchun [Telegram](https://t.me/davron_js) ❤️.
SDLC
Tags: webdev, beginners, discuss, productivity
Published: 2022-05-30 11:42:18

    

## The phases of the **software development life cycle**
are which describes how to develop, maintain particular software.
The life cycle aims to develop a good quality product/software.
High quality, lowest cost in short time.

<u>Requirement Phase</u> : most critical phase, SRS (Software Requirement Specification) is a detailed description of softwares' requirements

<u>Design Phase</u> : Logical to physical designing.

<u>Build/Development Phase</u> : Coding, longest phase.

<u>Testing Phase</u> : try it before deploy.

<u>Deployment/Delivering Phase</u> : except critical one, defects' solution waits for the next version.

<u>Maintenance</u> : maintain its operational effectiveness
I finally got mine! - PiBox unboxing
Published: 2022-05-30 11:32:36

---
title: I finally got mine! - PiBox unboxing
published: true
description: I look into the PiBox that arrived in the mail the other day. In this unboxing video, I go through the PiBox features and talk about what's in the box and what you could use it for, and how the hardware is put together.
tags:
cover_image: https://i.ytimg.com/vi/hCbgnDyPKeE/maxresdefault.jpg
---

{% youtube hCbgnDyPKeE %}

I look into the PiBox that arrived in the mail the other day. In this unboxing video, I go through the PiBox features and talk about what's in the box and what you could use it for, and how the hardware is put together.
Agile...
Tags: beginners, webdev, discuss
Published: 2022-05-30 11:31:04

##Agile Principles;

1. satisfy customer
2. work together
3. welcome changing requirements
4. deliver frequently (shorter timescale)
5. support trust
6. working software
7. face-to-face conversation
8. sustainable development
9. continuous attention
10. simplicity
11. self-organizing teams
12. reflect and adjust

##Scrum and Kanban :

- **Scrum** has rigid deadlines(sprints) while **Kanban** is more flexible.
- **Scrum** has roles like scrum master, product owner, development team while **Kanban** has no certain roles.
- **Scrum** board is changed at the start of each sprint, while **Kanban** board is used throughout the project.
PHP multi threads - Setup PHP7.2 cli with pthreads
Tags: php, php7, devops
Published: 2022-05-30 11:27:54


[PHP multi threads - Setup PHP 7.2cli with Multiple Threads (pthreads) on Ubuntu](https://peham.dev/devops/php-with-multiple-threads/)

In this article I'm going to write steps required to setup PHP multi threads on your server.

**Why PHP multi threads - CLI Version: **

Running app on PHP 5.6 for web app but need PHP7.2 (pthreads) with multiple threads to run tasks at background so we can run multiple independent business logics without interfering with main web app.

﻿

**Install required libraries**

```
sudo apt-get install libc-client-dev libkrb5-dev libgmp-dev apache2-dev libzip-dev bison autoconf build-essential pkg-config git-core libltdl-dev libbz2-dev libxml2-dev libxslt1-dev libssl-dev libicu-dev libpspell-dev libenchant-dev libmcrypt-dev libpng-dev libjpeg8-dev libfreetype6-dev libmysqlclient-dev libreadline-dev libcurl4-openssl-dev
sudo ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
```
﻿

**Download & Build  PHP**

```
wget https://github.com/php/php-src/archive/php-7.2.19.tar.gz
tar --extract --gzip --file php-7.2.19.tar.gz
cd php-src-php-7.2.19
./buildconf --force
```

﻿

```
CONFIGURE_STRING="--prefix=/etc/php7 --with-bz2 --with-zlib --enable-zip --disable-cgi \
--with-apxs2=/usr/bin/apxs2 --with-gmp --with-imap \ 
--enable-soap --enable-intl --with-openssl --with-readline --with-curl --enable-ftp \
--enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-sockets \
--enable-pcntl --with-pspell --with-enchant --with-gettext --with-gd --enable-exif \
--with-jpeg-dir --with-png-dir --with-freetype-dir --with-xsl --enable-bcmath \
--enable-mbstring --enable-calendar --enable-simplexml --enable-json --enable-hash \
--enable-session --enable-xml --enable-wddx --enable-opcache --with-pcre-regex \
--with-config-file-path=/etc/php7/cli --with-config-file-scan-dir=/etc/php7/etc \
--enable-cli --enable-debug --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data \
--with-mcrypt --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop \
--enable-pthreads --with-tsrm-pthreads --enable-maintainer-zts"
```
﻿
```
./configure $CONFIGURE_STRING
```

```
make && sudo make install
```

﻿

Check it's installed (this should print 1)

```
/etc/php7/bin/php -r "echo PHP_ZTS;"
```

Read remaining steps on [peham.dev](https://peham.dev/devops/php-with-multiple-threads/)
What is Penetration Testing ?
Tags: linux, hacking, security
Published: 2022-05-30 11:26:08

Penetration testing is a process of security audit that evaluates the organization's security, infrastructure, network and Applications against internal and external threat actors. It is helpful way to determine the security policies and controls. This process involves active evaluation of security by simulating an attack similar to real attackers. Main objectives are to test and analyze design weakness, technical flaws and vulnerabilities.  

**Security Audit** 
Security Audit checks whether an organization is following the standard security policies and procedures. 

**Vulnerability Assessment** 
A vulnerability assessment focus on discovering the vulnerabilities in the system but without any evidence that these can be exploited. Also it lacks the information to evaluate how much damage it can cause to the System security 

**Compliance Oriented Penetration testing** 
This type of testing is driven by compliance requirements. It is determined to evaluate compliance requirements about standards, frameworks, laws, acts etc. 

**Red-Team-based Penetration testing** 
Red-team-based testing covers all areas of security testing. It includes assessing people, networks, application ad physical security.

**Black-Box Testing**  

1. limited knowledge about target

2. Requires a lot of research and information gathering 

3. Resource and time consuming 

**White-Box Testing** 

1. Complete information about target 

2. Less time and resource consuming 

3. Bugs and vulnerabilities can be patched quickly 

**Gray-Box Testing**

1. Combination of black and white Testing 

2. usually limited information (depends on target scope)

3. Security testing and assessments are performed internally 

 
 **Basic-Skills of a Penetration Tester**

- Networking (most important)

- knowledge of Firewalls, Routers and Intrusion detection systems 

- Open Source Techniques

- Web Servers, mail, SNMP stations and Access devises 

- Operating System knowledge 

- Web Application architecture (frontend-backend,)  
_Ability to read, learn and enhance Every day_
How to get value from wx.DirDialog
Published: 2022-05-30 11:13:06

Hello!
I want to get value from wx.DirDialog to use as load path. How to do this?

My example:

self.source_dir = wx.Button(panel, label="Choose", size=(70, 30))
gr.Add(self.source_dir, pos=(1, 4))
self.source_dir.Bind(wx.EVT_BUTTON, self.source_dir_func)

@staticmethod
def source_dir_func(self):
    dlg = wx.DirDialog(None, "Choose a directory:",
                      style=wx.DD_DEFAULT_STYLE | wx.DD_DIR_MUST_EXIST)
    try:
       if dlg.ShowModal() == wx.ID_OK:
       dwn_path = dlg.GetPath()
    finally:
       dlg.Destroy()


Please help me!
YouTube tutorial video: Flotiq Forms
Tags: tutorial, html, headlesscm, webdev
Published: 2022-05-30 11:11:52

## How to generate HTML form for your website?

One of the problems we solve every day is adding forms to our websites, recording the data and keeping them up to date. In **[Flotiq](flotiq.com)** you are just a couple of clicks away from total happiness. 

Check our youtube video to see how to generate HTML form step by step 

{% embed https://youtu.be/bcyQuFuvMVs %}


In the Flotiq dashboard select your content type, generate a form and paste three lines of code into your website.  

![flotiq dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g3pue0vmdd1imn8hfp1h.png)
 
Once you add them your Flotiq form will automatically sync with your content type definition. 

The form is fully customizable and can be easily adapted to your site steam, once you drop onto the page you are ready to collect the data. And with Flotiq webhooks and other integrations like Zapier or other Power Platform, the possibilities for these are endless. 

Finally, anytime you make changes in the content type definitions, the form will be automatically updated to reflect that.

Check our video for more details and let us know if it worked for you! 

More information about Flotiq Forms you will find in our docs. 

And of course, don't forget to like the video and subscribe to our chanel.
What shuld be the reason for not getting output from the MOTION GC library?
Published: 2022-05-30 11:10:12

I'm working on the "STEVAL-MKI182V2" mounted on the STEVAL-MKI109V3 development board. Initially, I downloaded the Standard c Drivers from the following link https://github.com/STMicroelectronics/STMems_Standard_C_drivers where I found the .ioc file called _prj_MKI109V3 which is specifically developed for the MKI109V3 board.

Then after I have added the ISM330DLC driver files and example code called ism330dlc_read_data_polling.c from the following link https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/ism330dlc_STdC after adding I was just calling ism330dlc_read_data_polling function in the main while loop.

Now the issue is, after dumping the code I'm able to get the raw data from the sensor but when I'm passing the same data to the library function ahead

MotionGC_Update(&data_in, &data_out, &bias_update);
but here one thing I observed is that the data_out buffer is always zero which means the calibration buffer is not getting updated with the calibrated data.

Now, this issue I tried to post it on the ST Forum but I haven't got any help from your side felt really disappointed about the response from the ST Forum. Now I really need help because the project is getting delayed and still, we are stuck with this issue for almost 1 and a half months now.
OWASP TOP 10 - SSRF
Tags: owasp, security, devsec, programming
Published: 2022-05-30 11:07:00

A [OWASP](https://owasp.org/) é uma entidade internacional sem fins lucrativos que atua de forma colaborativa com o fortalecimento da segurança de software no mundo todo.

De anos em anos ela atualiza a sua lista com as dez vulnerabilidades mais comuns na atualidade. A mais recente, de 2021, é: 
```
OWASP TOP 10: 2021

1. Broken Access Control
2. Cryptographic Failures
3. Injection
4. Insecure Design
5. Security Misconfiguration
6. Vulnerable and outdated components
7. Identification and Authentication Failures
8. Software and Data Integrity Failures
9. Security Logging and Monitoring Failures
10. Server-Side Request Forgery (SSRF)
```

Nesse artigo, iremos explorar a vulnerabilidade 10, além de ver algumas formas de previnir ataques SSRF da ótica da pessoa desenvolvedora de software.

## SSRF

Server-Side Request Forgery - ou SSRF - é uma das adições da OWASP à lista de 2021. Ele funciona "enganando" o servidor, o levando a fazer uma requisição a uma rede externa, mas de forma que pareça estar sendo realizada uma requisição para uma rede interna. Assim, os atacantes conseguem acesso a áreas que não deveriam ser acessadas externamente, como intranets ou páginas administrativas. Este tipo de ataque pode expor dados sensíveis como metadados da cloud onde o serviço é hospedado, arquivos internos com informações sensíveis ou até mesmo executar ataques RCE ou DoS dentro do servidor.

## Como se proteger via software

A forma mais simples de evitar este problema é proteger a entrada do usuário, garantindo que somente as informações que são esperadas sejam permitidas. A melhor forma de garantir isso ainda é com uma boa cobertura de testes, tanto unitários quanto e2e. Desabilitar redirecionamentos HTTP, o uso de um URL Schema, port e destination, com uma lista das entradas autorizadas, o não envio de raw responses para o cliente e a garantia de consistência da URL também são medidas recomendadas para mitigar os riscos de um ataque SSRF.

Na camada do frontend, a OWASP tem uma recomendação extra: o uso de criptografia de rede (como por exemplo VPNs) para lidar com grupos de usuários dedicados e/ou gerenciáveis.

Existem ainda outras 9 vulnerabilidades, das quais iremos tratar em artigos posteriores.

### Lista de referências

[OWASP - Server-Side Request Forgery Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)
[CWE-918 Server-Side Request Forgery (SSRF)](https://cwe.mitre.org/data/definitions/918.html)
[SSRF bible](https://cheatsheetseries.owasp.org/assets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet_SSRF_Bible.pdf)
 

_Imagem de <a href="https://pixabay.com/pt/users/652234-652234/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1670222">Hands off my tags! Michael Gaida</a> por <a href="https://pixabay.com/pt/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1670222">Pixabay</a>_
How to Convert Unix Time to Datetime and Vice Versa in Python
Tags: python, programming
Published: 2022-05-30 10:50:38

Unix timestamps are unreadable to humans, Datetimes are unreadable to machines. Time often needs to converted between Unix and Datetime. I'll demonstrate how you can do that in Python.

##Unix to Datetime 
```python
import time
from datetime import datetime
#convert unix to datetime
print(datetime.utcfromtimestamp(time.time()).strftime('%Y-%m-%d %H:%M:%S'))
```

##Datetime to Unix
```python
import time
from datetime import datetime
#convert unix to datetime
dtm = datetime.utcfromtimestamp(time.time()).strftime('%Y-%m-%d %H:%M:%S')

#convert datetime back to unix
dtt = datetime.strptime(dtm, '%Y-%m-%d %H:%M:%S')
print(datetime.timestamp(dtt))
```
Pseudo Code - build program in your own language.
Tags: beginners, tutorial, codenewbie, productivity
Published: 2022-05-30 10:34:09

Hi everyone😎,

From the last post, [Programming Concept - #Algorithm](https://dev.to/momokid/programming-concept-1-3755), I discussed what algorithm is and also gave an example. Now this post is not about Data Structure and Algorithm, yet!. The idea behind this series is to take you from the beginner level to advanced level in programming so make sure you stay tuned 📻.

Pseudo code as mentioned early is basically a false code. Computers understand only two vocabularies i.e. 0 and 1. For every programming language, there is a syntactic rule to follow but with pseudo code, you can write the code in your own language and that is the beauty of it.

Algorithm is all about performing a task and before doing any task, you must first understand what the task is. Every task has it's own requirements and there can be multiple ways to perform the same task. 

Let's take look at an example;

![Pick-up location map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4d3beic98pyuha40hp76.png)

The bus driver has this map to pick up the school kids from their home labeled A, B, C. Can you guess the shortest route to use from point A, B and C?

1. School -> A -> B -> C -> School
2. School -> C -> A -> B -> School
3. School -> B -> A -> C -> School

Above are 3 possible options to visit all points. Can you pick out the "best" option? Of course, it will be the second option. Why? Because the driver might consider the using less fuel and shortest time. Though we have multiple options, we will always consider the most efficient one. Efficiency is one of the key characteristics of a good algorithm.   

Let's write down the pseudo code for the first option:

- Start the bus 🚌
- Move from School 🚌🏫
- Go to Point A 🏠🚌
- Move from Point A 🚌🏠
- Go to Point B🏡🚌
- Move from Point B 🚌🏡
- Go to Point C 🏘🚌
- Move from Point C 🚌🏘
- Go to School 🏫🚌
- Stop bus engine 🚌


....and that's it. See how simple you can write down the pseudo code? And this can be used as a blueprint to write code in different programming language.

It's always good to write down the steps when solving a problem in the form of a pseudo code. You can then further break it down into smaller modules making your program easy to manage.

Key characteristics to note about pseudo code:
- All actions for each step must be doable.
- Each step must be precisely define with no ambiguity
- Each step of the algorithm must be finite i.e. it must have an end

Note that your algorithm must also have a starting point and the end point just as every program cannot run infinitely.

In the next article, I will discuss how to write the algorithm graphically using flow chart.

Have a great day 👋 and see you on the next one.
How do you learn about new technologies and frameworks?
Tags: discuss, watercooler, programming, webdev
Published: 2022-05-30 10:20:00

It's important to stay up-to-date with new trends, frameworks, technologies, or general changes in the tech world.

How do you stay updated with new technologies and frameworks? And is it part of your day-to-day routine or is it not a high priority for you?

P.S: [Medusa](https://github.com/medusajs/medusa) is holding a mini-contest and the winner gets a free t-shirt! Learn more about it and how to participate in [this post](https://dev.to/medusajs/customize-the-homepage-of-our-nextjs-storefront-and-win-a-t-shirt-from-medusa-2fde).
Change input’s placeholder color with CSS
Tags: css, html, webdev, jetthoughts
Published: 2022-05-30 10:04:54

Most modern browsers support the simple pseudo-element:
```css
::placeholder {
  color: #9400d3;
}
```
but what if you need to apply color to a placeholder in older browsers?

## WebKit, Blink, and Edge
WebKit, Blink (Safari, Google Chrome, Opera 15+), and Microsoft Edge are using a pseudo-element `::-webkit-input-placeholder`
```css
::-webkit-input-placeholder {
  color: #9400d3;
}
```

## Mozilla Firefox 4 to 18
Using a pseudo-class: `:-moz-placeholder`
```css
:-moz-placeholder {
  color: #9400d3;
  opacity: 1;
}
```
Firefox’s placeholder appears to be defaulting with reduced opacity, so needs to use `opacity: 1` here.

## Mozilla Firefox 19+
Using a pseudo-element: `::-moz-placeholder`, but the old selector will still work for a while.
```css
::-moz-placeholder {
  color: #9400d3;
  opacity: 1;
}
```

## Internet Explorer 10-11
Using a pseudo-class: `:-ms-input-placeholder`
```css
:-ms-input-placeholder {
  color: #9400d3;
}
```