teleren/devto huggingface dataset:
Liman: Invalid Credentials Hatası Çözümü
Tags: liman, aciklab
Published: 2021-10-06 12:21:46

Ekranın sağ alt köşesinde ve bazı yeni eklenen sunucularda görülmektedir.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kw58n49elqxyqcfcvk5l.png)

Bu durumun 2 farklı şekilde çözülmektedir.

## 1. Sambahvl Eklentisinin Ayarlarının Düzenlenmesi

` Eğer hatanın alındığı sunucu üzerinde Sambahvl eklentisi yoksa direkt 2. adıma geçiniz.`

Liman arayüzünde "Sambahvl" eklentisine sahip olan sunucunun eklenti arayüzüne gidilir.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/10v4p4j9ya3i6c25ny4y.png)

Sağ yukarıdan eklenti ayarları simgesine girilir.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h1odvpmgme4zt8pj3y03.png)

Açılan arayüzde domain oluşturulurken belirlenmiş admin kullanıcısı ve parolası girilir ve kaydedilerek çıkılır.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6x5au2tln3i6k20kf4rt.png)

## 2. Kasadan Sunucu için Yönetici Anahtarı Alınması
Bu işlem için önce liman arayüzünde sol alt kısımda bulunan "Kasa" seçeneği seçilir.
 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qlemwadwrjuybkowdiul.png)
 
Daha sonra "Anahtar Ekle" seçeneği seçilir.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/619fx2r44577b287al56.png)

Gerekli sunucu seçilir. Kullanıcı adı ve şifre kısmına admin kullanıcısı ve parolası girilir. Daha sonra "Anahtarı Ekle" butonuna basılır.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hcg82pziqyjv7fhkwneg.png)
 
Böylelikle tekrardan sunucu arayüzüne gelindiğinde hata alınmayacaktır.
Lombok: Corrigindo problema de cobertura de código no SonarQube
Tags: java, devops, testing
Published: 2021-10-06 12:20:43

*Photo by [Scott Rodgerson](https://unsplash.com/@scottrodgerson?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)*

No meu projeto atual temos um fluxo de CI/CD automatizado e uma das responsabilidades desse fluxo é detectar se estamos cumprindo a taxa mínima de cobertura de código estabelecida pelo time. 

Entretanto, mesmo possuindo uma cobertura de código com 84% o SonarQube estava sempre informando 30% como resultado, por causa dessa taxa tão baixa o processo de CI/CD parava e o deploy não acontecia.

Demorou um tempo para eu entender que o SonarQube também estava computando a parte do código criada pelas anotações do Lombok.

## A solução para o problema:

A solução é muito simples. Precisei criar um arquivo chamado `lombok.config` na pasta java *(/../src/main/java/lombok.config)* com os valores abaixo:

```
config.stopBubbling = true
lombok.addLombokGeneratedAnnotation = true
```

## Para que serve essas configurações?

O `config.stopBubbling` está informando que a pasta onde o arquivo se encontra é a raiz do projeto e o Lombok não deve procurar arquivos de configurações em outras pastas.

Enquanto `lombok.addLombokGeneratedAnnotation` está configurando o Lombok para adicionar uma anotação `@lombok.Generated` em todos os métodos criados por alguma anotação.

E é exatamente isso que queremos porque o plugin Jacoco responsável por coletar a cobertura de código do projeto e informa ao SonarQube vai passar a ignorar todos os métodos que tiverem essa anotação.

Pronto, problema resolvido. Depois que você aplicar essas configurações a cobertura de código do seu projeto deve voltar ao normal.

## Finalizando...

Se você gostou desse post, por favor não deixe de dar um like e compartilhar 😄

Se quiser saber o que ando fazendo por aí ou tirar alguma dúvida fique a vontade para me procurar nas redes sociais como @ [malaquiasdev](https://twitter.com/malaquiasdev) .

Para ler mais post meus acesse [MalaquiasDEV | A Vida, o código e tudo mais](http://malaquias.dev/) .
freeRASP Update: Flutter is supported!
Tags: freerasp, flutter, android, ios
Published: 2021-10-06 11:49:38

Three words you wanted to hear: Flutter is supported!

Are you a Flutter dev? Jaroslav wrote a story about freeRASP's origin for you!

https://medium.com/@talsec/missing-hero-of-flutter-world-699bba780fd3

freeRASP provides multiplatform (Android, iOS, Flutter) mobile all-in-one protection for mobile applications free of charge.

The protection features:

✔️ Tamper protection

✔️ Repackaging/Cloning protection

✔️ Runtime analysis protection

✔️ Threat alerts & monthly security reports
Imposter syndrome😩
Tags: webdev, beginners, programming, learning
Published: 2021-10-06 11:41:26


## What the heck is Impostor Syndrome?
simply refers to a psychological phenomenon in which people are unable to internalize their accomplishments. Despite external evidence of their competence, those with the syndrome remain convinced that they are frauds and do not deserve the success they have achieved.

Proof of success is dismissed as luck, timing, or as a result of deceiving others into thinking they are more intelligent and competent than they believe themselves to be. Notably, imposter syndrome is particularly common among beginners or new learners in general...



#"👀The Oh crap Moments, I don't know what I'm doing, and everyone's going to find out."



#####This is simply where your brain turns against you🥺 

+ It's awful because you can't take pride in your own work.
+ It's awful because you can't admit when you don't know something.
+ It's awful because it prevents you from asking questions.
+ It's awful because it prevents other people from having perspective.

#You’re not alone✨.
^ Psychological research studies have found that at least 70% of people feel like impostors at one time or another.

"The exaggerated esteem in which my lifework is held makes me very ill at ease. I feel compelled to think of myself as an involuntary swindler."

-Albert Einstein.


####There are ways to prevent this!🤪
#####Talk about it!
+ You're more likely to hear people feeling the same way, and you get validated.
+ People might be able to talk some sense into you.

#####Watch your language!
+ "Just" and "Only"
+ "I think" and "I don't know if"
+ "I'm not a REAL ______"
+ "Used to"
+ "Should"

#####Watch Out When!
+ You talk yourself into thinking you're less experienced!
+ Convinces you of your lack of authority.
+ Convinces you that you're a phony.
+ Puts your accomplishments in your past.
+ This has a lot of implied meaning to it. It's a club you beat yourself up with. It says you're not living up to something.

#####Teach what you know⌛
^ Even if you think you don't know it!


#####Ask questions📞
^ It's hard because you don't want people to know that you don't know what you're talking about.

^ If you don't know something small, Imposter syndrome can take over and you’ll work slower on something because you’ll dwell on not knowing, rather than just asking a question and moving forward with confidence because you have the answer you need.

#####Get perspective🔑
^ A friend can be on your project, on a completely different team, or not even in your own company. Just ask for a second pair of eyes.

#####List your accomplishments and own them!😁
^ We have #victory, my manager asks what I'm proud of

#####Practice accepting compliments😑
^ If you don't accept compliments, it convinces your brain that your accomplishments are minimal.

#####Remember that you are awesome😇.
^ You're not where you are just because you're a diversity figure, or because you knew someone, or because you lucked out. You got here because you earned it.

#Thanks!


🙌credits to @cassidy williams [cassidoo.co](https://cassidoo.co)
Top 10 articles of the week for beginners🐵.
Tags: beginners, webdev, javascript, productivity
Published: 2021-10-06 11:35:47

---
title: Top 10 articles of the week for beginners🐵.
published: true
description: Most popular articles for beginners published on the dev.to in this week
cover_image: https://source.unsplash.com/featured/?coding
tags: beginners,webdev,javascript,productivity
series: Weekly Beginners top 10
---

DEV is a community of software developers getting together to help one another out. The software industry relies on collaboration and networked learning. They provide a place for that to happen.

> "A journey of a thousand miles begins with a single step." - Chinese Proverb

{% tag beginners %}

Here is the most popular articles published on this platform.
{% post /jburroughs/bookmark-these-8-front-end-websites-now-gl0 %}

{% post /olanetsoft/12-github-repositories-to-help-you-ace-your-job-interview-2a08 %}

{% post /muthuannamalai12/10-github-repository-every-web-developer-should-know-10pm %}

{% post /techworld_with_nana/kubernetes-crash-course-for-absolute-beginners-35pc %}

{% post /itnext/instantly-set-up-a-new-dev-environment-using-containers-and-vs-code-51g8 %}

{% post /ericchapman/create-a-backend-in-javascript-nodejs-module-system-4165 %}

{% post /alserembani/javascript-object-is-loopable-too-7fo %}

{% post /shantanu_jana/skeleton-screen-loading-animation-using-html-css-1ec3 %}

{% post /toluagboola/type-aliases-vs-interfaces-in-typescript-3ggg %}

{% post /pascavld/10-javascript-tips-that-can-help-you-understand-this-programming-language-better-3fi0 %}
Enjoy these articles.
Follow me for more articles.
Thanks 💖💖💖
How to create associative table in laravel?
Tags: laravel, php
Published: 2021-10-06 11:16:37

I want to create associative table , I have Many to Many relationship between L_Examen_Categorie and L_Examen_SousCategorie. My associative table named L_Examen_Categorie_Souscategorie where i am going to insert id_categorie and id_soucsategorie .

By the way I am getting the data from other tables P_Examen_Categorie and P_Examen_SousCategorie

Here is it my code: 

 $categorie = DB::table('P_Examen_Categorie as p')

                ->where('p.id_examen', '=', $id_examen)
                ->get();

            foreach ($categorie as $cat_item) {

                $l_cat_item = array(
                    'code' => $cat_item->code,
                    'libelle' => $cat_item->libelle,
                    'id_examen' => $cat_item->id_examen,
                    'Note' => $cat_item->Note,
                    'coefficient' => $cat_item->coefficient,
                    'id_lexamen' => $id
                );
                L_Examen_Categorie::insert($l_cat_item);
                $idcat=L_Examen_Categorie::get('id');
                    $cat_item = DB::table('P_Examen_SousCategorie as p')
                        ->select('id', 'code', 'id_categorie', 'libelle', 'Note', 'coefficient')
                        ->where('p.id_categorie', '=', $cat_item->id)
                        ->get();

                
                    foreach ($cat_item as $item) {
                        $l_souscat_item = array(
                            'code' => $item->code,
                            'libelle' => $item->libelle,
                            'Note' => $item->Note,
                            'coefficient' => $item->coefficient,
                            'id_categorie' => $item->id_categorie,
                        );
                        L_Examen_SousCategorie::insert((array)$l_souscat_item);
                        $model = array(
                            'id_categorie' =>$cat_item->id,
                            'id_souscategorie' =>$item->id,
                        );
                        L_Examen_Categorie_Souscategorie::insert($model);
                    }
            } 


#Laravel #php
Wednesday Links - Edition 2021-10-06
Tags: jvm, docker, kotlin, maven
Published: 2021-10-06 11:05:36

Accelerate your Maven builds (8 min) 🏃‍♀️
https://blog.frankel.ch/faster-maven-builds/1/

Assert collections as a pro (14 min) 👻
https://reflectoring.io/assertj-lists/

Storing UTC is not a silver bullet (28 min) 🔫
https://codeblog.jonskeet.uk/2019/03/27/storing-utc-is-not-a-silver-bullet/

Unwrapping block of code in IntellIJ (15s read) 👌
https://twitter.com/tnurkiewicz/status/1443186106309267458

Advent of code solved with help of idiomatic Kotlin (9 min) 🤩
https://blog.jetbrains.com/kotlin/2021/09/idiomatic-kotlin-traversing-trees/

How to replace Docker with Podman on Mac (7 min) 🥲
https://www.redhat.com/sysadmin/replace-docker-podman-macos

Spring @Transactional mistakes everyone did (5 min) 🙈
https://medium.com/javarevisited/spring-transactional-mistakes-everyone-did-31418e5a6d6b
Event Streaming Diagrams
Tags: eventdriven, kafka, purescript
Published: 2021-10-06 10:56:48

I'm working on tool for drawing event-streaming diagrams. We spend a lot of our time over here explaining event streaming, so making it easy to create supporting pictures will be a huge help.

So, for my inaugural dev.to post, here's a sneak preview of an example:

![Specimen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/krp7sd2en7nu7qx0e0x2.gif)

I'll post some pictures of the editor soon enough. It's so simple that this diagram took about 60s to put together.
Hello to me! Joined DEV Co...
Tags: hacktoberfest, hactobarfest2021
Published: 2021-10-06 10:53:57

hey! I'm new on DEV Community.I'm learning different laguages and also I'm pursuing my Final Year of Engineering in Computer Science.
There are lot of oppourtunities in Information Technology.
I also ready to learn new things which is related to technology.
Now I've joined DEV community hope that here I'll many more thing which I haven't learnt anywhere.
Explore the world of open source
Tags: hacktoberfest, beginners, opensource, github
Published: 2021-10-06 10:32:53

Hello everyone!
My full name is Tran Nguyen Thuong Truong. Also known as [@thuongtruong1009](https://github.com/thuongtruong1009) on Github.
I am a 3rd year Computer Science student at International University, Ho Chi Minh City - Vietnam.
This is my first time participating in Hacktoberfest!
I've been on Github for a year and am starting to enjoy the platform, so I'm looking to expand my understanding of the world of programming and open source. By chance on the internet, I came across the Hacktoberfest held in October every year. I realize that this is a very good opportunity for me to learn and explore your amazing projects. So I joined dev.to for development. Thereby, I look forward to accompanying you in the future. If you like me, give me 1 star at [Snake-Game-OOP](https://github.com/thuongtruong1009/Snake-Game-OOP).
I will try to create more and more great open source projects coming up to help you and us learn and collaborate.
Thank you very much!
How we solved AWS Lambda timeouts... and improved performance
Tags: aws, lambda, cdk, api
Published: 2021-10-06 10:08:07

> ##### TL;DR
> - CDK sets default lambda memorySize to only 128MB
> - CPU power of lambda scales with memorySize
> - Node needs quite some RAM
> - Performance of Lambdas can be improved considerably by increasing memorySize

#### Our AWS tech stack

One of our microservices uses a Node-v14 runtime and runs on AWS Lambda using AWS API Gateway.

We build the infrastructure with [AWS CDK](https://aws.amazon.com/de/cdk/), which is a `Infrastructure as Code` (IaC) framework to create AWS resources, and use [AWS SAM](https://aws.amazon.com/de/serverless/sam/) with its CLI to do local development.

This local development unfortunately is far from resembling the cloud environment, which has caused us already quite some trouble (thinking of CORS handling, binary media types, DynamoDB permissions, ...), and now we had another issue with a new Lambda even though it ran fine locally in a couple of seconds.

#### The lambda timeout... again

When investigating why the newest function did not work as expected, we realized through the CloudWatch Logs, that the lambda timed out after 60 seconds. 
That is way too long for our lambda, which was just fetching some data from DynamoDB and creating and storing some of it in Google Sheets. So we spent quite some time figuring out whether there were configuration issues with DynamoDB or the newly introduced [googleapis](https://www.npmjs.com/package/googleapis) had any problems connecting.

But everything was setup correctly - so what could it have been? At the very end, we realized that we had been using all of the available `128 MB` RAM allocated to the lambda, you can see that in your CloudWatch Logs in the last `REPORT` entry. 

#### Increasing the memory size

128 MB seemed rather low anyway, so while looking up how pricing scaled up, I also found out that *lambda CPU power scales proportionally with memory size* ([see this](https://aws.amazon.com/de/about-aws/whats-new/2020/12/aws-lambda-supports-10gb-memory-6-vcpu-cores-lambda-functions/#:~:text=AWS%20Lambda%20customers%20can%20now,previous%20limit%20of%203%2C008%20MB.&text=Since%20Lambda%20allocates%20CPU%20power,to%20up%20to%206%20vCPUs.)).

So it was about time to give that Lambda some more power to play with. By simply increasing the `memorySize` from `128` to `384` the functions were running fine, and even saved us money, since they ran a lot faster. A simple function that just created an entry in DynamoDB now ran **4x faster** than before, so overall being even cheaper than the previous, slow and low RAM version.

Now that we have this in mind, we are experimenting with different memory sizes to see what fits best in terms of performance/price for our use case.

We never had issues with this prior, because our previous services were built with [Serverless Framework](https://www.serverless.com/) which sets a default memory size of `1024 MB`.

For CDK, you can set `memorySize` as a property in your `lambda.Function` [constructor props](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-lambda.Function.html#memorysize).
How to Become a Full Stack Web Developer🔥
Tags: beginners, webdev, devops, startup
Published: 2021-10-06 10:01:59

#Intoduction
##How to become a full stack web developers ?
If you want a become a full stack developer,you need to know HTML,CSS,JAVASCRIPT along with a BACK-END but making the right choice in an error where there are a lot of options creates a lot of confusion for New developers.

The Bucket Technique
As apart of this technique. we wil study each technology just enough to start building sites.

##List of BACK-END and FRONT-END Developers
##FRONT-END
*80% HTML
*60% CSS
*50% JAVASCRIPT
*20% DATABASE

After you finishing learning all these technologies,you will be able to build good designs but it is not possible to build a stunning website without Graphic designing skills.
you need to either to be a good designer or refer to some design which is good enough for your site to look fabulous.

You can also refer the free website to build designers or degisn resources for developers.
###rainboestrykr

##BACK-END
*PHP
*NODEJs
*JAVA
*C#
*GOLANG

That's for the Back-end developers 
*PHP = Easy to Learn, best for beginners,limited support of libraries.
*NodeJs = JavaScript whisch you already know from frounted,Its difficult to learn JavaScript concepts like callbacks are used
Djoango/Flask[Python based back-end Frameworks] includes ORM, Great set of python libraries need to learn python Not Recommended for beginners Front-end Frameworks are amazing.
YOU also need to master HTML,CSS,JAVASCRIPT.

#Tools every Web Developers Should know about.
a] UX wing for Icons.
b] PixaBay for free Images
c] FreeHtml5 for Free Tamplates
d] UnSplash for Image API
e] Json Placeholder for fake Online REST API
f] More Resources are available on here
 
Also view the Video From the you Youtube
fullstack developers


If you liked this turtorial,you can support me and follow me..
New tool for generating Ingress configurations from OpenAPI/Swagger
Tags: kubernetes, opensource, restapi, openapi
Published: 2021-10-06 09:59:44

If you're adopting an OpenAPI/Swagger first approach for your REST APIs running under K8s this one might be for you.

We've recently released [Kusk](https://github.com/kubeshop/kusk) - a tool for automatically generating Ingress configurations from an OpenAPI definition, including settings for things like CORS, timeouts and rate-limiting - all thanks to an x-kusk OpenAPI extension.

Kusk currently supports the following Ingress controllers:

- Nginx-Ingress
- Traefik 2.X
- Ambassador 1.X / 2.X
- Linkerd

Kusk makes your OpenAPI definition the source-of-truth for the deployment of your API and it works nicely with both manual and automated CI/CD workflows (ArgoCD, etc).

Check out the [documentation](https://kubeshop.github.io/kusk/) for more details on all the above!

We'd greatly appreciate any feedback - so have a look and let us know what you think!
ZX - Replace bash Scripting using Javascript
Tags: javascript, zx, bash
Published: 2021-10-06 08:20:05

From time to time, I found myself need to write some scripts for an automation process.
Then I found myself starting to remember the bash syntax. 
Bash is great, but when it comes to writing scripts, 
I prefer to choose a more convenient programming language. 
JavaScript is a perfect choice, but the standard Node.js library requires additional hassle before using. 
The ZX Google package makes it easy and readable.

I will show you a quick example.
First, you install it globally
```javascript
npm i -g zx
```
Then copy the script below.
It asks you for a name to create a folder then it git init and init a package json file.
You need to save to file as mjs.

```javascript
#!/usr/bin/env zx
let folderName = await question("Please give me a name to create a folder? ");
await $`mkdir ${folderName}`;
cd(`${folderName}`);
await $`pwd`;
await $`git init`;
await $`npm init -y`;
console.log(chalk.green.bold(`You are set to go - ${folderName}`));
```