teleren/devto huggingface dataset:
Politika ile Kullanıcıya veya Gruba Komut Çalıştırma Yetkisi Verme
Published: 2021-09-08 19:48:11

Liman üzerinden Domain eklentisi-> politikanız->
politika detaylarından "Yetkili Kullanıcı" altında 
"Komut İçin İzin Ver" kısmını doldurun.

![Screenshot from 2021-09-01 11-56-48](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6k451nu25h5svh6qducj.png)

Kullanıcı adı: Yetki vermek istediğimiz kullanıcı

Grup adı: Yetki vermek istediğimiz grup

Komut: Yetki verdiğimiz kullanıcının veya grubun çalıştırabileceği komut.

Bu komutu parolasız çalıştırmaya izin ver: Komutu çalıştırmadan önce parola isteyip istemeyeceğini seçin.


## Örnek Kullanım

taha adlı kullanıcıya "apt" komutunu çalıştırma yetkisi verme.


![Screenshot from 2021-09-01 13-53-57](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6955sqxp6zkktd4ozwc5.png)
Software Dev Weekly Update #6: "With our combined powers!"
Tags: javascript, beginners, webdev, mongodb
Published: 2021-09-01 15:52:59

I don't know it anyone remembers that old show Captain Planet and the Planeteers, but much like our planet saving heroes and with their powers combined we used MongoDB, Mongoose & Express to build a fully functioning CRUD (Create, Read, Update, Delete) web app!

> *Meet the most fully functional and inspired roadside farm stand application we've seen yet.* -Trendy News Today

![Farm Stand Web App Demo](https://i.imgur.com/poDNK0O.gif)

Ok... it's not so pretty to look at and it is probably missing some functionality *but* it successfully combines those technologies into a great example of something more complex than static HTML and the fake JSON database files that we've been working with so far.

To make this project happen, we learned about a few key topics:
- [MongoDB Common Commands](https://github.com/RealNerdEthan/web-dev-bootcamp-2021/blob/master/Section%2036%20-%20Our%20First%20Database%20MongoDB/commands.txt)
- [Connecting Mongoose to MongoDB](https://mongoosejs.com/docs/index.html)
- Mongoose [Schema](https://mongoosejs.com/docs/api/schema.html) & [Model](https://mongoosejs.com/docs/api/model.html)

Those combined with the HTML templating we spoke about in [update #4](https://dev.to/realnerdethan/software-dev-weekly-update-4-new-tools-new-community-1kbl), gives us the bones to build something more complex.

##What the heck is Mongoose?

Nick Karnik over at FreeCodeCamp has a great writeup about Mongoose and he says: 
> *Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB.*

![Technology Flowchart](https://cdn-media-1.freecodecamp.org/images/0*b5piDNW1dqlkJWKe.)

I **highly** recommend you [check out his writeup](https://www.freecodecamp.org/news/introduction-to-mongoose-for-mongodb-d2a7aa593c57/) if you want to know more about Mongoose and how it connects with MongoDB and NodeJS.

##Week In Review##
![Trees and a Path](https://i.imgur.com/OOiWrWk.jpg)
This week was about combining past knowledge with the last missing piece of the pie, MongoDB. We finally made something that can persist data across sessions and from here on out we'll be refining our knowledge of the basics to build better web applications.

Our next major focus is to expand on existing knowledge and start building the capstone project, something called YelpCamp. I will share more on that over the next few weeks.

I'm no where near out of the woods yet, but I'm on a good path.

> *"Education is the key, and perseverance opens the door."* - [Zach Al-Kharusy](https://www.linkedin.com/in/zach-al-kharusy-7850a612a/)

---
I hope you enjoyed the read!

Feel free to follow me on [GitHub](https://github.com/RealNerdEthan), [LinkedIn](https://www.linkedin.com/in/ethan-goddard-a4376952/) and [DEV](https://dev.to/realnerdethan) for more!
Tracking guest users
Tags: help
Published: 2021-09-01 16:17:08

How does an app like tiktok track a device that is not signed up on the app, but might signup later; therefore, initially missing an accountId stored in a data warehouse? My dim_users table can only insert rows given the null accountId attached to that device machineId. I still can track the activity of this device but won’t know exactly who they’re initially.
Operador CortoCircuito
Tags: javascript
Published: 2021-09-02 03:08:16

En el camino del aprendizaje de cualquier lenguaje de programación te encuentras con ciertas cosas que para unos son obvias y para otros no tanto en este post voy a compartir ciertos tips interesantes que puede servir también en otros lenguajes.

Adicional te quiero recordar que los trucos son interesantes y divertidos pero de nada sirve si no se aplican.

Empezemos

**Evaluación de corto-circuito**

Este concepto se describe así mismo pero de que forma?, partiendo que en JavaScript y en los lenguajes de programación los operadores lógicos (&&  || !) se evaluan de izquierda a derecha en el caso del OR ( || ) si el primer valor es verdadero se provoca un corto-circuito y ni si quiera evalua la segunda expresion.
Observemos ejemplos


```javascript
let a
let b = null;
let c = undefined;
let d = 4;
let e = 'five';

let f = a || b || c || d || e;

console.log(f);

```

Cual seria el resultado el valor de f?

Claro 4 porque es el primer valor que no es falso podría ser **e = 'five'** pero este valor no se alcanza a evaluar por el cortocircuito provocado

Otro ejemplo ya aplicado en algo muy común es en nodejs cuando se usa para conectarse a una base datos 

Forma Larga

```javascript
let dbHost;
if(process.env.DB_HOST){
  dbHost = process.env.DB_HOST;
} else {
 dbHost = 'localhost'
}
```

Este fragmento de código es para usar colocar el valor del host a usarse, y se resume de la siguiente forma: si existe usa una variable de entorno 'DB_HOST' caso contrario usa 'localhost' se entiende fácilmente pero ahora veamos la versión abreviada

Forma Corta


```javascript
let dbHost = process.env.DB_HOST || 'localhost' ;
```
Apiumhub achieves highest growth in 7 years
Tags: apiumhub
Published: 2021-12-01 09:42:21

---
title: Apiumhub achieves highest growth in 7 years
published: true
date: 2021-09-02 09:28:06 UTC
tags: Apiumhub
canonical_url: https://apiumhub.com/tech-blog-barcelona/announcement-apiumhub-achieves-highest-growth/
---

##### Barcelona, Spain – September 2, 2021

Apiumhub, the leading provider of quality working software architecture solutions, recently opened multiple software development positions in Barcelona & Madrid, to accommodate rapid growth and leverage the area’s diverse high-technology talent pool. 

In addition to the main development team, the new open positions workforce aims to support the company’s growth strategy. Apiumhub’s recent growth contributed almost 67% to turnover, last quarter Apiumhub doubled the developer workforce and the plan for the last semester of 2021 is to double it again. This is a growth that Apiumhub has never experienced before and is currently sustainable with a 95% retention rate. This demonstrates the company’s commitment to quality throughout the value chain, i.e. from software design to ready-made digital products. 

“It feels great being able to create jobs in these pandemic times. But it feels even better getting an instant connection with a candidate and knowing that this relationship is there to last” said Evgeny Predein, CEO. “We have the opportunity to further expand software architecture teams in different countries, creating a powerful team of software development experts and entering new markets.” 

### Apiumhub focus on quality

Apiumhub creates exceptional software and products, empowering motivated software developers to deliver world-class software architecture, scalability, and automation to medium-sized and big companies. Apiumhub powers multiple organizations, delivering software architecture, web development, mobile app development, DevOps, product ownership & data-driven services and processing 4 million euro in payroll this year. For more information, visit [apiumhub.com](https://apiumhub.com) 

#### Media Contact 

Ekaterina Novoseltseva, CMO

[ekaterina.novoseltseva@apiumhub.com ](mailto:katerina.novoseltseva@apiumhub.com)
💻 TinyGo: Good Things Come in Small Packages
Tags: go, tinygo, programming
Published: 2021-09-02 14:31:48

#### 📚 TinyGo is Golang’s baby brother. Read more about it on a beginner's guide into the world of IoT with TinyGo.

### <br>

**TL;DR:** The concept of coding for IoT devices, CLIs and WebAssembly is not a new concept. However, what if I told you that it is possible to use Golang for all three. [TinyGo](https://tinygo.org/) is a specialized project specifically designed and used for development in small places. This article explains the benefits of TinyGo, what it is, and how you can use it. It also provides you with a Golang IoT code example for you to see TinyGo in action.

## What Is TinyGo?

TinyGo is Golang's baby brother. It is a compiler that allows a user to write the Golang code they are familiar with and run it in places people wouldn't have thought were possible. What this means is that the barriers to entry into some tech spaces are being gradually lowered. I say this because I am writing through experience.

## How Is TinyGo Different from Golang?

Out of the box, Golang is a feature-rich, highly-performant, compiled language, which means that Golang is compiled to machine-readable code (those funky `1` 's and `0` 's everyone talks about).

In turn, being compiled to machine code allows it to run directly on the hardware &mdash; all that CPU/RAM power! Another really cool feature of Golang is that when building a binary of the written program, it includes extensive cross-compatibility for a wide from of different system architectures.

Once a binary has been built, it can be run on any compatible distribution/architecture, providing it has been specified during the build process. To find the list of supported architectures (after installing Go on your machine), run this command into your terminal: `go tool dist list`.

The output will look something like this:

```bash
aix/ppc64
android/386
android/amd64
android/arm
android/arm64
darwin/amd64
darwin/arm64
dragonfly/amd64
freebsd/386
...
```

So, how is TinyGo different? Well, it's the same Golang you know and love, but TinyGo is a smaller compiler based on [LLVM](https://llvm.org/) technologies. It has essentially cherry-picked a number of important and available libraries and trimmed a lot of the fat from the core language.

By doing that, TinyGo becomes an even more powerful and efficient language that you can run in unexpected places. As an example of fat that's been trimmed, the library `html/template` cannot be imported by TinyGo as it relies upon other dependencies, which in turn are not able to be imported.

> To read up on the packages supported by TinyGo, visit the [documentation pages](https://tinygo.org/docs/reference/lang-support/stdlib/).

[Read more...](https://auth0.com/blog/tinygo-good-things-come-in-small-packages/?utm_source=content_synd&utm_medium=sc&utm_campaign=golang)
September 2nd, 2021: What did you learn this week?
Tags: weeklylearn, discuss, weeklyretro
Published: 2021-09-03 01:39:45

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

<center>

![A picture it a dog waving their paw with the caption “Learning, cool at school or at home”](https://media.giphy.com/media/1xpm1nTQiRL96Di3Q6/giphy.gif)
</center>

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}
Animation React - Bem-te-vi
Tags: react, javascript, webdev, design
Published: 2021-09-03 03:09:54

Today I'm bringing another animation made with GSAP / React, you can see in my github all the code.

This animation is for those who like the bird "Bem-te-vi", if you have ideas for improvements, the code is open, I'll be happy to receive your PR.

When accessing the site, I recommend opening the sound.

Hope you like it:

![Gustavo Scarpim](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/plakf88rcrvd0c0xfgfr.gif)

See the complete code here on GitHub <a href="https://github.com/GuScarpim/bird-animation" target="_blank"><b>Click here</b></a>

Check out the Project in action <a href="https://bem-te-vi.netlify.app/"><b>Deploy</b></a>

Thanks for reading.
A simple tip to keep GitHub commit history less cluttered
Tags: github, git, sourcecontrol, tutorial
Published: 2021-09-04 16:34:55

No matter what Git branching strategy you are using, you’ll still open a pull request (PR) for peer review. No one is perfect and anyone hardly remembers their code after few weeks😬

Once PR is reviewed and approved, you would merge it to the destination branch. But, at this point when we're merging the PR, we can decide whether to use "**Merge pull request**" or "**Squash and merge**". Any of these options will ultimately merge the code into the destination branch, however, we can control how commit history is propagated to the destination branch.

![options to merge](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/upxg550jmmn7oemfyflf.png)

The recommendation is to choose the "**Squash and merge**" option, as it just creates one single commit in the destination branch, hiding all the commits coming from the source branch i.e. as the name says, it squashes all commits into one commit.

![clean commit history](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2fz5d4ayfdf6ia0f791d.png)

And yet we have the option to see commits that came from the source by traversing through the newly created commit. In other words, by clicking on the PR number that was merged e.g. #1 in the above screenshot. This helps to keep the destination/main branch's commit history neat and tidy.

![access to commit history](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h7de811kac6o0x3uqfo0.png)

Whereas, if we choose the "**Merge pull request**" option, all commits along with a new commit for the PR will be created in the destination branch. And that looks like finding commit in a haystack.

![clutter commit history](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/do5cowti33ddvkne9l97.png)

But in the end, it's up to you how you want to maintain your branch's commit history😃. Whatever you choose, **May the force be with you**!

_If you have reached here, then I did a satisfactory effort to keep you reading. Please be kind to leave any comments or ask for any corrections. **Happy Coding!**_
Introduction to Omit typescript utility types
Tags: typescript, nextjs, node, angular
Published: 2021-09-03 06:28:13

The Omit utility construct a type by picking all properties from type and then removing keys. This allows you to remove property from any object .


``` 
interface Todo {
  title: string;
  description: string;
  completed: boolean;
  createdAt: number;
}
 ```
1. Single Omit

```
type TodoPreview = Omit<Todo, "description">;
 
const todo: TodoPreview = {
  title: "Clean room",
  completed: false,
  createdAt: 1615544252770,
};
 
todo;
```

2.Multiple Omit

```

 
type TodoInfo = Omit<Todo, "completed" | "createdAt">;
 
const todoInfo: TodoInfo = {
  title: "Pick up kids",
  description: "Kindergarten closes at 5pm",
};
 
todoInfo;




```
New EyeDropper Web API
Tags: todayilearned, webapi, eyedropper
Published: 2021-09-03 14:21:30

So, there is new cool Web API which currently is in draft state, but has all chances to be released in all modern browsers. EyeDropper lets you pick colors not only in your browser, but in other windows, which is cool for online editors like Figma, for example.

You can look at specs [here](https://wicg.github.io/eyedropper-api/) and [here](https://github.com/WICG/eyedropper-api).

To try new API we need to download Chrome Canary (the exact support is starting from Chrome 95 version).

First, let's make classic check for Eyedropper support:

```js
if (window.EyeDropper == undefined) {
    console.error('EyeDropper API is not supported on this platform');
}
```

This will ensure, that we have support of this feature and can go on.

Now, time for magic 🪄

```js
await new EyeDropper().open()
```

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

To be more specific, I've prepared a little demo of how this might work.

{% codesandbox eyedropper-api-test-etjt4 %}
Old MacDonald
Tags: python, computerscience, functional
Published: 2021-09-03 18:14:52

```python
# exercise1.py
#   This program prints the lyrics for five different animals to the
#   "Old MacDonald" song to demonstate functions.
# by: Scott Gordon

# Create functions for verses that repeat
def verse1():
    return "Old MacDonald had a farm, Ee-igh, Ee-igh, Oh!"


def verse2(animal):
    return f"And on that farm he had a {animal}, Ee-igh, Ee-igh, Oh!"


def verse3(sound):
    return f"With a {sound}, {sound} here and a {sound}, {sound} there."


def verse4(sound):
    return f"Here a {sound}, there a {sound}, everywhere a {sound}, {sound}."


# Create a function to run all the functions through
def song_verse_creator(animal, sound):
    print(verse1())
    print(verse2(animal))
    print(verse3(sound))
    print(verse4(sound))
    print(verse1())

# Run 5 different functions
song_verse_creator("cow", "moo")
print()
song_verse_creator("chicken", "cluck")
print()
song_verse_creator("dog", "woof")
print()
song_verse_creator("duck", "quack")
print()
song_verse_creator("horse", "neigh")

```
Photo by <a href="https://unsplash.com/@calanthe?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Zosia Korcz</a> on <a href="https://unsplash.com/s/photos/farm-animal?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Why I haven't committed to React (yet)
Tags: javascript, react
Published: 2021-09-03 18:34:32

JSX is the one contribution to my overall development experience over the last few years, I have used JSX / TSX in Vue.js and really preferred it over SFCs for a good long while.
Then I picked up lit-html and saw another more natural way to write templates, but then google kind of merged the project with lit-element. It's okay... But lit-element added a ton of boilerplate on top of the simple templating language I was attracted to, mostly declaratively defined OOP which I will tolerate but not enjoy.

Finally I finished my trip to obscurity with another JSX powered beast, Stencil - a way of writing web components that is so good, for two years, I couldn't bring myself to learn React, and not stand out. Stencil like Svelte is a compiler and scores incredibly well in performance out of the box, 100 performances, yes please! It also manages to do SSR with web components, yeah, no idea how 🧙‍♂️, today I'm not going to learn about that.

React is kind of the jQuery of today (in it's popularity and future tech debt hangover), so everyone must know it, which sucks for me because I could pick up React projects which I often do, but am I a React expert? Kinda, sorts, no.. so no CV entry 😅

But React functional components, they look nice, and all the libraries I personally will never finish in order to get to my end goal, well they already exist In React... So today with great caution, I am going to try and get React on my CV, like everyone else, I'm so mainstream.

useEffect go!
AWS CloudFormation - Hands On
Tags: aws, cloud, devops, tutorial
Published: 2021-09-06 03:02:49

Last article we studied what is AWS CloudFormation in this article we will create a basic AWS cloud formation template. To setup a template in AWS CloudFormation follow the steps below:-

* Search for AWS CloudFormation in the search bar and go to AWS cloud formation

* You will get to the dashboard click on create stack
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/trw5awu30rd2qwk7brng.png)

* In the prepare template select `Template is ready`. Here we can select other options to like use `Sample template` which uses an already created template or you can also choose to `Create template in designer` which helps you create templates visually.
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4pj6c6asrl4mzv4hh0g2.png)
 

* After that select `upload a template file` You can also select a templete file form your S3 bucket. Upload the following `aws-example.yaml` file

```yaml

Resources:
  HelloBucket:
    Type: AWS::S3::Bucket
 ```
You can also click on `View in Designer` to visually see how your stacks looks like 
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjlw7nbavn96dcrhcrxl.png)

*  Click next enter a stack name like `CloudFormationdemo` and click next
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9tdfkklvhcuy8bs12as3.png)

* Next you can add tags to identify your cloud formation resources and r![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c94zfmv11e90jm5xpc9f.png)
oles to give access to various services we don't need roles and set the tag as name `CloudFormation` you can use any other tag.

![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cqxum9bmnhpz9pv2uqre.png)
 
. Then click on next. You can review all your values are correct and click on create stack
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/npq595tf4lnj8mqi39qw.png)

* It will show you all the events that happened while creating a cloud formation template
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rytaue5fby0fi7bz0t8z.png)

* Go to your S3 console and you can see that there is a bucket Cloudformationdemo
![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/evc6qxn3ohih8skqx21x.png)

* This is way to create a Cloud Formation Stack don't forget to delete your CloudFormation stack if you are doing this as a demo

Next we will study about Amazon Beanstalk.