teleren/devto huggingface dataset:
Identity and Access Management (IAM)
Tags: aws, cloud, security, iam
Published: 2024-04-10 23:43:31

IAM is like the security guard of the cyber world, making sure only the right folks get into the digital VIP lounge. It's all about managing who can access what on a computer network. IAM systems let organizations decide who gets the keys to the kingdom, what they're allowed to do, and the conditions for entry. These systems are also handy for keeping things compliant, auditing, and monitoring security. 

Now, let's break down some IAM methods:

1. Multi-Factor Authentication (MFA): Think of this as a double-locked door. MFA demands users show more than one proof of identity before they can waltz in. It usually combines something you know (like a password), something you have (like a phone or a token), and something you are (biometric features). This helps keep out the baddies and protects against phishing and stolen credentials. 

2. Identity as a Service (IDaaS): IDaaS is like having a bouncer for your cloud party. It's a cloud-based service offering identity, security, and access management. Features include single sign-on, multifactor authentication, passwordless access, identity governance, and a universal directory. IDaaS is the cool kid that cuts costs, boosts security, and plays nice with various apps and devices. 

3. Role-Based Access Control (RBAC): RBAC is like assigning roles at a workplace. Each user gets permissions based on their job function or authority level. It's a neat way to manage users, enforce the principle of least privilege, and handle different tasks. Combine it with other factors for even more precise access policies. 

4. Biometric Authentication: This one is straight out of a spy movie. Biometric authentication matches unique physical or biological features (like fingerprints or facial patterns) to verify a user's identity. It's accurate, convenient, and offers non-repudiation. Just watch out for the privacy and spoofing pitfalls.
hollw my sister
Published: 2024-04-10 23:29:35

[شيخ روحاني](https://www.rauhane.net/)
[جلب الحبيب](https://www.eljnoub.com)
[رقم ساحر سعودي](https://www.elso9.com)
[رقم ساحر سعودي](https://www.s3udy.org)
[رقم ساحر حقيقي](https://www.q8yat.org)
[hobbyhuren berlin](https://hurenberlin.com)
AI With Alex | S1 Ep. 2 Coming Soon!
Tags: ai, watercooler, podcast
Published: 2024-04-10 23:26:35

##I excited to announce that S1 Ep. 2: Generative AI is coming soon!

Make sure to subscribe to **_[Alex The Dev](https://www.youtube.com/channel/UCRv9Mn_msloRYmyahAEMqHw/)_** to be posted when its's released!

![Flyer for Ep. 2, featuring Yomi](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sbh6njc9luk2fjpncg8s.jpg)
Don't "Trust" GitHub Code Just Because It's Got Lots Of Stars
Tags: beginners, learning, github, algorithms
Published: 2024-04-10 23:13:00

I was reviewing data structures and algorithms for interview prep. So I went on GitHub and find this organization [TheAlgorithms](https://github.com/TheAlgorithms) and its repo collecting data structures and algorithms in many different languages. It was a treasure for sure, but I also find some code that looks really terrible to even a amateur like me: bad function naming, confusing class organization and some other heavy code smells. Although it was some good material for a foundation to modify with and it could be regarded as some OK refactoring practices, it was a bit annoying to refactor the code that was kinda supposed to be polished.

The message of this story is that you should not take code from GitHub as good, finished, polished code, especially when the code is from (below are my hypothesis):
1. "Hot" repos that got a lot of stars, not necessarily because it is widely used but because it is a "resource collection" and people just "wishlist" it by starring (e.g. the "awesome" series of repos).
2. Non-production code base or code base for educational purposes
What Will You Choose?
Tags: programming, python, github, beginners
Published: 2024-04-10 23:10:39

# Python Game Project
This game was made as a portfolio project for Codecademy. This was an open-ended project where I could choose between a practical application or a game. I decided to take the more fun route and create a game. This project wasn't intended to be a completely original idea, just a way to practice coding skills and practice using GitHub.


# Doors of Fate
Doors of Fate is a simple game where the user is asked to choose between two options. Each decision then leads to another choice until 10 decisions have been made, or until a particular decision has triggered another action. The user could win, lose, restart, or have a setback and have to make up to 3 additional choices. At the end, the game will determine the user's fate based on the choices made. The game was implemented using Python and runs in the terminal.


#Link to project on GitHub
https://github.com/StephRP12/Python-Game-Project


To conclude, because I'm still a beginner, this project was created for practice and to have fun. Please check it out and tell me what you think! Thanks!


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0g7jpmr5be4stnpt2m0.png)
Adding Generative AI to your Power Apps with AI Prompts
Tags: ai, promptengineering, powerapps, powerplatform
Published: 2024-04-10 22:53:17

Did you know that you can harness the power of GPT in your Power Apps applications? You can leverage the built-in AI Builder Create Text with GPT model to create your own custom prompts and use those easily in Power Apps by adding them as a data source. 

Check out this video to see how it's done:

{% embed https://youtu.be/l8tv4SwDhuE?si=9elaA-n3ILc-Q9vj %}

If you want to learn more:

Use your prompt in Power Apps: https://aka.ms/powerapps-ai-prompts

Explore prompt ideas: https://aka.ms/power-prompts
Bot Protection
Tags: bot, protection, security
Published: 2024-04-10 22:52:35

## Technologies

[reCaptcha Enterprise](https://cloud.google.com/recaptcha-enterprise)
The recaptcha enterprise its a little solutions has:

- Option to be invisible (do not require user interaction).
- SDK Web and Mobile.

---


**Usefull links**

- [Documentation](https://cloud.google.com/recaptcha-enterprise/docs/libraries?hl=en)
- [SDK Web](https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages)
- [SDK Android](https://cloud.google.com/recaptcha-enterprise/docs/instrument-android-apps)
- [SDK iOS](https://cloud.google.com/recaptcha-enterprise/docs/instrument-ios-apps)
- [Price](https://cloud.google.com/recaptcha-enterprise/pricing?hl=pt-br#recaptcha-enterprise-pricing)

---


**Articles**

- [Cloudflare - Annoucing Turnstile, a user-friendly, privacy-preserving alternate to CAPTCHA ](https://blog.cloudflare.com/turnstile-private-captcha-alternative/)
My history about being the only programmer in the company
Tags: productivity, discuss, codenewbie
Published: 2024-04-10 22:45:01

I don't want to sound like a crybaby, but I want to talk about my sad history of being forced to be the leader in my department and then be the only programmer in the company.

Well, this started when i just wanted to be a _Jr Dev_ in a short company, I was working before as a freelancer dev, so I thought: What can be bad about having a normal job? This was a wrong decision.

Now I have the full perspective and I know that they don't even know what the necessities in the company are. How can I say that? My technical interview was only to do a script in Python that can detect the prime numbers. An extremely easy technical interview. So, if in my test I used python I thought that I'll be a python dev, but no. They send me to do "apps" using PowerApps (That isn't even programming).

Everything goes good but then having a discuss my boss want and multiplatform application via internet for everyone in the company and they can use the app wherever they want. So, I decided to use Flutter! with Django, oh my god... wrong decision again. 

I started developing with a team of four people, but I was the only one that knows Flutter, the other two know a little bit of Django and the other one never touched another thing that doesn't be PowerApps (GREAT!) So, the formidable journey to developing the apps was good, in three months we had an impressive app ready to deploy in AWS! But omg... They want to launch the internet FREE! So, we had to configure a server with an exposed IP, but ha-ha, the company doesn't want the extra free to have an exposed IP (really? Yes)

The team was tired of coding and one left; the other one was a practician, and the PA guy didn't even understand what we did. Four months later it was just me in the department. Coding alone (That wasn't too bad), doing my comments, having my workflow and silence.

But I didn't even see that all the work pending of the new apps will come for me...

After 9 months in this company, I finally today decided to leave the company because i got an impressive job offer with Reac.js. The new company seems bigger and has a lot of standards.

And that's all with ugly short company, please don't do what I do.
Top 5 Vscode Alternative Worth Consider
Tags: tutorial, programming, beginners
Published: 2024-04-10 22:41:06

1.Sublime-Text
-Sublime-Text Are Most Popular Editor, Although The Extension Is Not Much As Vscode Because It Was Rely On GitHub

2.Code-Server
-Website Based Vscode



3.Vim
-Unlike Vscode Already Integrate With Terminal In Vim Users Must Switch Into Terminal-Mode To Run/Debug Code And There’s Vscode Extension To Enchant And Refine The Use Of Vim

4.NotePad++
-Lightweight Although It’s Lack Feature And Doesn’t Have Extension Like Vscode




5.Cursor-Ai
-The code editor integrates traditional coding methods with AI-powered features and functionality.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p8s2mfqk7nohzfqxweds.jpeg)
A Comprehensive Overview of IQOS HEETS TEREA in Dubai and UAE
Tags: tereadubai, tereauae, iqosheetsterea
Published: 2024-04-10 22:34:45

## A Comprehensive Overview of IQOS HEETS TEREA in Dubai and UAE

In recent years, the popularity of IQOS HEETS TEREA has surged in Dubai and the UAE. presenting a viable alternative to traditional smoking methods. This guide will delve into the details of this innovative product, its benefits, availability, and how it fits into the regulatory landscape of the region.

## What are IQOS HEETS TEREA?

IQOS HEETS [TEREA UAE](https://tereauae.ae/) are designed tobacco sticks intended for use with the IQOS device. Unlike conventional cigarettes that burn tobacco. IQOS HEETS TEREA are heated at controlled temperatures. producing a flavorful nicotine-containing vapor instead of smoke.

## Benefits of IQOS HEETS TEREA

Reduced Harm: IQOS HEETS TEREA are believed to produce fewer harmful chemicals compared to regular cigarettes, making them a less harmful alternative for adult smokers.

Enhanced Experience: Users often report a cleaner and more refined taste experience with IQOS HEETS TEREA. which may appeal to those seeking a modernized smoking experience.

Convenience: The IQOS system is designed to be portable and easy to use. offering a convenient way for smokers to enjoy tobacco with reduced odor.

## Availability in Dubai and UAE

IQOS HEETS TEREA can be found in select retail outlets across Dubai and the UAE.  authorized IQOS stores and certain tobacco shops are the primary points of sale. It's essential to buy IQOS HEETS TEREA from legitimate sources to ensure quality and authenticity.

## Regulatory Landscape

In Dubai and the wider UAE, the use and sale of tobacco products. including heated tobacco products like IQOS HEETS TEREA, are regulated by local authorities. It's crucial for consumers to be aware of these regulations to avoid any legal issues.

## Transitioning to IQOS HEETS TEREA

For smokers considering a switch to [IQOS HEETS TEREA](https://iqosiluma.ae/). it's advisable to consult with experts or authorized retailers. Understanding how to use the device is key to maximizing the benefits and reducing potential risks.

## Conclusion

IQOS HEETS TEREA represent an intriguing advancement in tobacco technology. offering a less harmful way for adult smokers to enjoy nicotine. With its growing availability in Dubai and the UAE. consumers have a viable alternative to traditional smoking methods. But, it's essential to stay informed about regulations and use the product.
DevLog #8 - Code review in XP
Tags: agile, programming
Published: 2024-04-10 22:29:11

In Extreme programming Agile methodology, code review is a main practice which improve the code quality and reduce the defect count. In a agile team, there are several ways that can review codes and I will reflect my opinion on each.

1. Peer review: The code will be reviewed by the team member in the same level or with same experience. In this level, it is expected to share the knowledge as well as reduce issues in the code. And since the coder and the reviewer are in the same team, it leads to have a conversation about the coding techniques that have been implemented and it will help to share knowledge.

2. On the other hand, experienced team member can review the code that written by inexperienced member. It will mainly help to find issues and defects in the code. Then reviewer can advice the coder to improve the code quality.

In our project, we can implement both the ways since we have 3 inexperienced members and one experienced member. Among inexperienced members,  we can arrange peer reviews and experienced member can review the code after that. Then we can share the knowledge and reduce the defects count also.
Portfólio - Aula 08
Tags: programming
Published: 2024-04-10 22:18:33

Nesta aula conversamos sobre conceitos de paradigmas funcionais no âmbito matemático. Segue abaixo programa que dado um número retorna a tabuada e segue até que o usuário digite o número 0 para sair do programa.

```
#include <stdio.h>

void tabuada(int num) {
    printf("\nTabuada do %d:\n", num);
    for (int i = 1; i <= 10; i++) {
        int result = num * i;
        printf("%d x %d = %d\n", num, i, result);
    }
}

int main() {
    int num;

    do {
        printf("Digite um número ou 0 para sair: ");
        scanf("%d", &num);

        if (num != 0) {
            tabuada(num);
        }
    } while (num != 0);

    return 0;
}
```
Execute o código aqui: https://onlinegdb.com/XiA3aSNdA
How to create and connect to a Windows 11 Pro Azure Virtual Machine. By John Sakor.
Tags: azure, cloudcomputing, virtualmachine, windows
Published: 2024-04-10 22:04:55



## Steps required to creating a VM on Azure
1. SIGN IN TO AZURE PORTAL
2. CREATE YOUR VIRTUAL MACHINE

## Create a virtual machine


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1fv3fhp4hjwa9d7zlmxv.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z40db9a51fgu7zvcmaxp.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kv2efva5bir1zjs5v78h.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ck830jpnzcfsj28scewm.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ort4fu0hev8uez3jp72g.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l9pri1zqnhkk7us9au7a.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/392dz2e9skwo3g6o2r09.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ht05ob0likrfw458avti.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xj2whmsr71v036ftvuoi.JPG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sbih8b0ir5ggkkz3gqi1.jpeg)
How to deploy a Ktor app on Railway
Published: 2024-04-10 20:51:44

Deploying Ktor onto Railway isn't too popular, but I have found two different ways to do it.

## Option 1
- use https://start.ktor.io/ and just download the baseline project there
- On railway set build command to `./gradlew buildFatJar`
- On railway set deploy command to `./gradlew runFatJar`
- On railway Set a variable of PORT to 8080

Note: In railway free tier, `./gradlew runFatJar` seems to sometimes time-out so you can instead use `java -jar thejarname-all.jar` seems to work fine without causing issues

## Option 2
- use https://start.ktor.io/ and just download the baseline project there
- On railway set PORT variable to 8080
- Add a nixpacks.toml to the root of your project containing...

```
[start]
cmd = 'java $JAVA_OPTS -jar build/libs/*-all.jar'
```

(Basically the same as setting the start command in option 1)

## Option 3
Docker or Docker Compose
https://ktor.io/docs/docker.html
https://ktor.io/docs/docker-compose.html



## Bonus tips: 
Downtime/503's should be non-existent if you use railway's health-check feature + set the overlap time. This will make sure that your old service is still running until the new service is actually up and running.

1. Set a healthcheck path at railway > [Your Project] > Settings > Healthcheck https://docs.railway.app/reference/healthchecks

2. Set the `RAILWAY_DEPLOYMENT_OVERLAP_SECONDS` [more info](https://docs.railway.app/reference/variables#user-provided-configuration-variables)

3. You can skip setting a PORT variable in Option 1, 2 and railway will randomly assign one. Then in your ktor code you can use `System.getenv("PORT")` to get the port from railway.

4. Instead of using nixpacks.toml you can use railway.json since it will do schema validation for you.

```
{
    "$schema": "https://schema.up.railway.app/railway.schema.json",
    "build": {
        "builder": "NIXPACKS",
        "buildCommand": "./gradlew -p server clean build -x check -x test"
    },
    "deploy": {
        "startCommand": "java $JAVA_OPTS -jar server/build/libs/*-all.jar"
    }
}
```


Thanks [@Brody](https://buymeacoffee.com/brody192) and [@Aleks](https://buymeacoffee.com/aleksr) for all of your help!
SO
Published: 2024-04-10 21:53:10

so.hpp

```
#ifndef so_hpp
#define so_hpp

#include <iostream>
#include <assert.h>

class process {

    class node {

  char _id;
  int _time;
  int _priority;
  node *_next;

  public:

    node(char i, int t, int q);

  char id() const { return _id; } //cual es el id
  int tme() const { return _time; } //cual es el tiempo
  int prty() const { return _priority; } //cual es la prioridad
  node *next() const { return _next; } // cual es el siguiente apuntador
  void next(node *p) { _next = p; } // cambia el siguiente ap
  };

  int n; // Capacity of process
  int s; // Size of process

  node *head; // First item in queue
  node *tail; // Last item in queue

public:

  process(int);
  ~process();

  void push(int);
  int pop(void);

  int capacity() const { return n; }
  int size() const { return s; }

  bool full() const { return s==n; }
  bool empty() const { return s==0; }

  void print();
};

#endif /* so_hpp */
```


so.cpp

```
#include "so.hpp"

  process::node::node(char i, int t, int q) {
      _id = i;
      _time = t;
      _priority = q;
      _next = nullptr;
  }

  process::process(int c){

      n = c;
      s = 0;
      head = nullptr;
      tail = nullptr;
  }

  process::~process(){

      while(head != nullptr) {

          node *p = head;
          head = head -> next();
          delete p;
      }
  }

  void process::push(char i, int t, int q){

      assert(!full());
    node *p = new node(i, t, q);
    if(empty()) {
        head = p;
        tail = p;
      }else{
        tail -> next(p);
        tail = p;
    }
    s++;
  }

  int process::pop(){

      assert(!empty());
          char i = head -> id();
          int t = head -> tme();
          int q = head -> prty();
          
          node *p = head;
          head = p -> next(); 
          delete p;
          s--;
          return x;
  }

  void process::print(){

      node *p = head;
      std::cout<<"[ ";
      while(p != nullptr){
      std::cout << p -> data() << " ";
      p = p -> next();
      }
  std::cout << "]" << std::endl;
}



```
Short Trailer #2
Published: 2024-04-10 21:38:21

{% youtube g1IcBcr5MBM %}

Short 1 min trailer of some gameplay


Indie game dev project. Solo dev so far in this project. Aiming for a fast-paced top down action/strategy game with some basic base building mechanics - vehicle construction etc. With help, this would be a fun multiplayer game!
Next step is to make a demo map and a tutorial for new players to learn the weapons systems It will definitely require a tutorial for new players to learn the manual reload, which that is bound by different mouse gestures, each weapon unique in its gestures.
Lessons from open-source: try..catch(_)?
Tags: javascript, opensource, nextjs, react
Published: 2024-04-10 21:34:21

This lesson is picked from [Next.js source code](https://github.com/vercel/next.js/blob/canary/packages/next/src/client/resolve-href.ts#L103). In this article, you will learn that you can use an underscore “\_” to intentionally ignore error in your catch block.

![catch(_)](https://media.licdn.com/dms/image/D4E12AQFPzeII4zah8g/article-inline_image-shrink_1500_2232/0/1712783512424?e=1718236800&v=beta&t=K20-FhjT1lx6X8nIXK985N8Yl5ss2wiPOQ_Tm9vVu78)

Reasons why you want to ignore error parameter in your catch block:

1.  There’s no further processing required when an error is encountered.
2.  Implement a fallback that does not rely on error.

> [Learn the best practices used in open source](https://tthroo.com)

Where else is catch(\_) used in Next.js source code?
----------------------------------------------------

This [search result](https://github.com/search?q=repo%3Avercel%2Fnext.js+catch+%28_%29&type=code) shows that catch(\_) is used in quote some places across the nextjs source code.

![catch(_) usage](https://media.licdn.com/dms/image/D4E12AQHphiNyPpxlVA/article-inline_image-shrink_1000_1488/0/1712783514208?e=1718236800&v=beta&t=ram5Gvo-DqcvCsG9C0HGtB2MGacfkQCVd57QP2ioH8A)

Conclusion:
-----------

May be it is a common convention to use ‘\_’ to ignore parameters but this was not my style. Now I know what to do, should I choose to skip declaring a parameter in a function. I simply write \`catch(\_)\`
Ace Your Next Sprint Planning with This Step-by-Step Guide to Planning Poker 🃏
Tags: agile, scrum, webdev, react
Published: 2024-04-10 21:27:16

Are you looking to improve your agile development process? One powerful technique is Planning Poker, a collaborative estimation method that helps teams reach consensus on task complexity and effort required.

At Kollabe, we've created a comprehensive guide to help you run successful Planning Poker sessions:

📌 Step-by-Step Guide to Running Successful Planning Poker Sessions

In this guide, you'll learn:

🎯 The fundamentals of Planning Poker and its benefits
👥 How to prepare your team for effective estimation sessions
🗳️ Techniques for facilitating productive discussions and reaching consensus
📊 Tips for integrating Planning Poker results into your sprint planning

Whether you're new to agile or looking to refine your processes, this guide will help you and your team make the most of Planning Poker.

[Check out our planning poker guide here](https://kollabe.com/posts/planning-poker-for-agile)