teleren/devto huggingface dataset:
Why you need polaris code
Tags: transfer, code, how
Published: 2023-02-14 03:29:25

[https://www.bankfanz.com/how-to-check-polaris-bank-account-balance/](https://www.bankfanz.com/how-to-check-polaris-bank-account-balance/#utm_source=backlinks&utm_medium=search&utm_campaign=darry+ring+us&utm_content=Michelle)

https://plaza.rakuten.co.jp/polarisbank18/diary/202302140000/
https://www.divephotoguide.com/user/polarisbankcode24
https://www.producthunt.com/@241_polaris
https://www.provenexpert.com/polarisbankcode24/
https://vocal.media/authors/polaris-bank-code-24
https://wakelet.com/@polarisbankcode24147
https://www.lifeofpix.com/photographers/polaris_bank_code24/
https://rosalind.info/users/polaris-bank-code24/
http://phillipsservices.net/UserProfile/tabid/43/userId/198938/Default.aspx
https://camp-fire.jp/profile/polaris_bank_code24
https://app.roll20.net/users/11627204/polaris-bank-code-24-p
https://seedandspark.com/user/polaris-bank-code-24
https://plazapublica.cdmx.gob.mx/profiles/polaris_bank_code24/activity
https://www.metal-archives.com/users/polaris_bank_code24
https://trabajo.merca20.com/author/polaris_bank_code24/
https://www.intensedebate.com/people/Polaris_24
https://www.mifare.net/support/forum/users/polaris_bank_code24
https://pinshape.com/users/2574021-polaris-bank-code24#designs-tab-open
https://www.kiva.org/lender/polarisbankcode246845
https://www.credly.com/users/polaris-bank-code-24/badges
https://www.myminifactory.com/users/polarisbankcode24
https://www.sqlservercentral.com/forums/user/polaris_bank_code24
https://guides.co/a/polaris-bank-8303
http://foxsheets.com/UserProfile/tabid/57/userId/120888/Default.aspx
https://storium.com/user/polaris_bank_code24
https://speakerdeck.com/polaris_bank_code24
https://www.kompasiana.com/polarisbankcode24
https://www.longisland.com/profile/polaris_bank_code24
https://myanimelist.net/profile/Polaris_code24
https://leanin.org/circles/polaris-bank-code-24
https://social.msdn.microsoft.com/Profile/polaris_bank_code24
05: Setup Email Microservice
Tags: spring, redis
Published: 2023-02-14 03:00:51

This felt like a natural starting point, with this being the most independent out of all the microservices. It can be built and deployed without other services running.

I'm intending to use Spring [Batch](https://spring.io/batch/) for this service paired with a [Redis](https://redis.io/) db. 

For sending emails, I'll make use of Amazon Simple Email Service (SES). Later on, I'll also hook this up with our messaging solution of choice (Kafka, RabbitMQ).

I'll be adding more info to this as I build the service.
Understanding Networking Protocols for nailing your next DevOps Interview
Tags: devops, devjournal, networkingprotocols, interview
Published: 2023-02-14 02:34:00

Networking protocols are the most important concepts to excel as a DevOps engineer. Unfortunately, most of them don't seem to understand the basics. Here's a crash course to make you an expert in OSI Model:

OSI stands for Open Systems Interconnection. It provides a standard for different computer systems to be able to talk with each other. 7 layers of OSI model are defined as follows:

## L7. Application Layer:
It interacts directly with the user. Browsers rely on it to initiate communications. Responsible for protocols and data manipulation that the software relies on to present meaningful data to the user. Like HTTP and SMTP.

## L6. Presentation Layer:
Responsible for preparing data so that it is usable by the application layer. Responsible for translation, encryption, and compression of data.

## L5. Session Layer:
Responsible for opening and closing communication between the two devices. The duration between opening and closing is called a session. Ensures that the session stays open long enough to transfer all data that's exchanged.

## L4. Transport Layer:
Responsible for end-to-end communication between two devices. Chunks data from the session layer into segments. Handles flow and error control in inter-network communication.

## L3. The Network Layer:
Responsible for facilitating data transfer between two networks. Routes data by finding the best physical path for the data to reach its destination. Breaks up segments from the transport layer into packets.

## L2. The data link layer:
Similar to the network layer, except it facilitates data transfer between two devices on the SAME network. Breaks packets from the network layer into frames. Responsible for flow and error control in intra-network communication.

## L1. The physical layer:
Includes physical equipment like cables and switches for data transfer. This is where data gets converted to a bit stream, a string of 1s and 0s.

As a DevOps engineer, the OSI model helps you understand cloud infrastructure and plays a crucial role when it comes to determining where technical risks and vulnerabilities may exist.

I hope this thread has helped you to understand it better.


![7 layers of OSI Model](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dxqbtdbutkq70f43w2lj.png)


Thanks for reading this.

If you have an idea and want to build your product around it, schedule a call with [me](https://calendly.com/pragyanatvade).

If you want to learn more about DevOps and Backend space, [follow me](https://dev.to/pragyanatvade).

If you want to connect, reach out to me on [Twitter](https://twitter.com/pragyanatvade) and [LinkedIn](https://www.linkedin.com/in/pragyanatvade/).
Getting started with Nextjs
Published: 2023-02-14 02:17:08

Next.js is a relatively new JavaScript framework for building applications with React.

**Why Nextjs?**

Nextjs generates static html pages which reduce the initial loading of reacts application and its super friendly for SEO purposes

In this blog post, we'll take a closer look at how Next.js works and how you can get started building your own web applications with this powerful framework.


**How Next.js Works**

Next.js is built on top of React and uses the React component model to define your application's pages and components. It handles all the complicated tasks of rendering your pages on the server, so you can focus on writing the code that defines your application's functionality. 


Here's a high-level overview of how Next.js works:

1. The Client Makes a Request: When a user visits your Next.js application, the client sends a request to the server for the requested page.

2. The Server Renders the Page: Next.js will handle the request on the server and generate the HTML for the requested page. This HTML will include the content of your React components and any data that needs to be passed from the server to the client.

3. The Server Sends the HTML to the Client: Once the HTML has been generated, Next.js will send it to the client, which will display the page in the user's browser.

4. The Client Renders the Page with React: The client will then use React to render the page and handle any dynamic interactions. This makes it possible to build rich, interactive web applications with Next.js.



Nextjs offers four types of rendering:

**1. Server-Side Rendering (SSR):** This type of rendering generates the HTML for your pages on the server and then sends it to the client. SSR provides a better user experience as pages load faster, and it's ideal for dynamic web applications that require server-side processing.

**2. Static Site Generation (SSG):** This type of rendering generates a static version of your website that can be served without the need for a server. SSG is a great solution for websites that don't require any dynamic content or user interactions 

**3. Client-Side Rendering (CSR):** This type of rendering generates the HTML for your pages on the client side using JavaScript. CSR is ideal for applications that require fast and smooth user interactions, but it can have negative effects on the initial loading time of the page.

**4. Incremental Static Regeneration (ISR):**  ISR is a combination of Static Site Generation (SSG) and Server-Side Rendering (SSR), and it provides the benefits of both. With ISR, you can have pages that are pre-rendered as static HTML at build time, and then updated incrementally on the server as data changes. This provides the fast loading times of SSG, with the ability to handle dynamic data updates, just like in SSR.



**In conclusion**, Next.js is a powerful and versatile framework for building modern web applications. With its focus on server-side rendering, it provides a fast and efficient solution for building websites and web applications with dynamic content.
Explain CORS Like I'm Five
Tags: explainlikeimfive
Published: 2023-02-14 02:10:24

At a basic level, I think I understand CORS. I've read the wiki and have seen the diagrams. I have even been able to solve a couple of CORS issues I have had. However, I would love to hear simple explanations on the subject to get a different perspective. This will also help me explain the subject to other people who may not be familiar with the issues that arise with it.
Unleash Your Coding Potential with Stacker -Your Personal Coding Mentor
Published: 2023-02-14 02:02:00

Hey Developers!

Do you ever find yourself struggling to understand and solve a coding error or bug? Well, the wait is over! Introducing Stacker - the ultimate coding bugs solver! This extension provides real-time feedback and solutions to your error problems, reducing your debugging time and maximizing your learning time. It's like having a personal mentor for free!

With Stacker, you'll be able to get quick and concise answers to your coding questions. Whether you're a beginner or an experienced developer, this extension has got you covered. No more googling for hours to find a solution. Stacker provides instant solutions to the most common coding errors and bugs.

Stacker also provides a wealth of information on coding best practices, tips, and tricks. With Stacker, you'll be able to improve your coding skills and enhance your knowledge of coding concepts.
YouTube: {% youtube 3ZtIY2mP-_8 %}
So, why wait? Start using Stacker today and take your coding to the next level. It's available for free on the VSCode Marketplace .Trust us, once you start using Stacker, you won't want to code without it.

Get started today and let us know your thoughts in the comments!
Untiy Game Development with thirdweb Gamingkit
Published: 2023-02-14 01:31:59

Implementing a cryptocurrency-based tokenization system using the ThirdWeb Unity Gaming Kit can increase user engagement and enhance the in-depth storytelling of role-playing games. By using cryptocurrency tokens as in-game currency, players can acquire unique in-game items and gain access to exclusive content. This creates a more immersive gaming experience, encourages player loyalty, and can increase the revenue of game developers. Additionally, combining a well-crafted storyline with the use of cryptocurrency tokens can create a more dynamic and engaging game, leading to higher player retention and better overall game performance.
Simple Encode And Decode With Javascript
Tags: javascript, beginners, tutorial, programming
Published: 2023-02-14 01:34:03

In this short article, we will try to encode and decode a string using JavaScript easily and practically. Sometimes we are faced with conditions for encoding and decoding when coding. Javascript has several methods for doing this, but in this short article, we'll try to do it easily and practically.

## Base64
One method that is quite popular for encoding and decoding a string is base64. For those who are familiar with the PHP language, this method seems familiar. The question now is, how to do it using javascript. Here's how to do it:

![Decoding and encoding with base64](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ms023a7o7sjb0dfpld6.png)

the method above is how to do encoding and decoding using javascript.

## Hex (Alphanumeric)
Using base64, the results that appear may contain special characters, such as the "=" character. If we want the result without using special characters, we can use another method, namely with hex. Here's how to do encoding and decoding using the hex method:

![Decoding and encoding with hex](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1gh5g52x0kju3einmczz.png)

the method above is how to do encoding and decoding using hex in javascript. Using this method, the encoding results will be free of special characters, and produce alphanumeric results.

---

## Epilogue ☕
Thank you for reading this article, I hope this article is useful for you, if you learn something new from this article, please provide feedback on this article, or give us criticism, suggestions so that it can be even better. Maybe you want to buy me a cup of coffee?

[![Buy Me A Coffee](https://cdn.buymeacoffee.com/buttons/default-black.png)](https://www.buymeacoffee.com/catur.dev)
Best time to Buy and Sell Stock
Tags: leetcode, javascript, beginners, algorithms
Published: 2023-02-14 00:03:41

I am going to start posting about [Blind 75 LeetCode Questions](https://leetcode.com/discuss/general-discussion/460599/blind-75-leetcode-questions).

Today I will be solving the [Best time to Buy and Sell Stock Problem](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)

Let`s set up the problem first.

We are being asked to return the maximum profit you can achieve from the transaction and if we cannot achieve any profit, we should return 0.


We will need to start defining two variables 


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

The first variable is where we will store the final value, the second variable is to store the first price value.

Now we will see how will be the for loop we are going to use.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h2x9p602om2iipfooc3z.png)

On the first line we will start the for loop where we will define the "sell" variable with one, then we will make it to go over it just when "sell" it is less than the price length and finally summing 1 for every loop.

The next line there is a variable where we are storing the value "prices[sell]" where sell is the loop to every value.

The next line we are creating a variable called "profit" where we are doing a subtraction between "sellPrice" and "minPrice".

The next line we are re defined "maxProfit" in order to get the max profit with the "Math.max" function.

The next line we are making an if statement checking if "sellPrice" is smaller than "minPrice" and if this statement is true we will define "minPrice" equal to "sellPrice".

I will leave the hole code here.


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


Thanks, i will be uploading every day. 
Hope someone found it useful.

Lautaro.
Páginas para Desarrollador UX/UI 👨‍🎨
Tags: ux, programming, design
Published: 2023-02-13 23:58:34

# Tools:
- https://www.toools.design/
- https://www.bluevertigo.com.ar/

# Icons:
- https://iconos8.es/
- https://ikonate.com/
- https://boxicons.com/
- https://iconmonstr.com/
- https://fontawesome.com/
- https://www.flaticon.com/
- https://ionic.io/ionicons/
- https://fonts.google.com/icons
- https://icons.getbootstrap.com/
- https://es.piliapp.com/facebook-symbols/

# Images:
- https://getwaves.io/
- https://slidesgo.com/
- https://www.canva.com/
- https://app.haikei.app/
- https://unsplash.com/es
- https://www.freepik.com/
- https://freedesignfile.com/
- https://www.pexels.com/es-es/
- https://www.designspiration.com/
- https://pixabay.com/illustrations/
- https://www.toptal.com/designers/subtlepatterns/

# Mockups:
- https://mockupgratis.com/
- https://www.mockupworld.co/free/category/mockup-generators/

# Storybook:
- https://www.hyperui.dev/
- https://mui.com/material-ui/
- https://m3.material.io/components
- https://ant.design/components/overview
- https://vaadin.com/docs/latest/components
- https://carbondesignsystem.com/components/overview/

# Prototypes:
- https://balsamiq.com/
- https://whimsical.com/

# Typography:
- https://www.myfonts.com/
- https://www.fontpair.co/
- https://fonts.google.com/
- https://lingojam.com/CoolTextFonts
- https://www.designermill.com/category/free-fonts/

# Compressor:
- https://tinypng.com/
- https://compressor.io/
- https://www.iloveimg.com/es
- https://www.img2go.com/compress-image

# Illustrations:
- https://absurd.design/
- https://www.drawkit.com/
- https://www.humaaans.com/
- https://illlustrations.co/
- https://undraw.co/illustrations
- https://icons8.com/illustrations
- https://www.manypixels.co/gallery
- https://delesign.com/free-designs/graphics/
Award Budget Cuts
Tags: java, leetcode, tutorial, programming
Published: 2023-02-13 23:45:58

Sergei Golitsyn provides solutions to popular algo problems.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dn47dvpdeyplnl7sd53u.jpg)
Aloha guys today we have a Pramp.com problem Award Budget Cuts:

## Description
Given an array grantsArray of the original grants and the reduced budget newBudget, write a function findGrantsCap that finds in the most efficient manner a cap such that the least number of recipients is impacted and that the new budget constraint is met (i.e. sum of the N reallocated grants equals to newBudget).

Analyze the time and space complexities of your solution.

Example:

```
input:  
grantsArray = [2, 100, 50, 120, 1000], 
newBudget = 190
output: 47 
And given this cap the new grants array would be
[2, 47, 47, 47, 47]. 
Notice that the sum of the new grants is indeed 190
```


## Solution
This problem was mind-blowing for me. First, let's concentrate on the example and figure out what is happening. 
We have an array of old budgets and want to distribute new ones. In the best-case scenario, we want to distribute it evenly. For example, if `arr = [10, 10, 10]` and `newBudg = 3`, the correct `result should be 3`. We will put 1 to all grants. 
Let's add more examples. `arr = [10, 3, 4, 200]` and `newBudg = 8`, `result = 2`. Do you see a pattern? `arr = [10, 1, 2, 20]` and `newBudg = 7`, `result = 2`. You can ask me why result 2 is correct in the last example. It happens because we can fill grand with budget 1, then we have the rest of the budget as 6. And we can evenly distribute it to 3 other grands.
Hmm, so we have a pattern of how to solve this problem. 
   

- First of all, let's sort out the grants array.
- Then we can add variable `cap = newBudg / grants.length`. 
- After it, we should iterate over the collection and check the cap and current element.
- If the current element is lower than the cap, we can subtract it from the budget and recalculate the cap again with a lower length.
- We want to do it till we find the first `grand > cap`. After it, it doesn't make sense. 
Our algorithm ready for implementation. Let's deep dive to the code implementation
   
## Code

```
static double findGrantsCap(double[] arr, double newBudget) {
   // your code goes here
   Arrays.sort(arr); // O(N*LogN)
   int n = arr.length-1;
   double cap = newBudget/n+1;
   for(int i = 0; i < n; i++) { // O(N)
     if(arr[i] < cap) {
        newBudget -= arr[i];
        cap = (newBudget/(n-i));
     } else {
       return cap;
     }
   }
   return cap;
}
```
AWS Cloud Quest: Triggers - Aggregating Data Study Note
Tags: aws
Published: 2023-02-13 23:14:58

This is the DIY challenge of the Triggers - Aggregating Data in AWS Cloud Quest.


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



### DIY Steps:
1. Create a new DynamoDB table `total_votes` with partition and sort keys.

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

2. Update Lambda `dynamodbstreams-newvotes`
```
# Runtime: Python 3.7
# This Lambda function ilustrates how to handle DynamoDB Streams.
# Please review the comments for each code block to help you understand the execution of this Lambda function.
import boto3

# This will instantiate DynamoDB client for later use.
dynamodb = boto3.resource('dynamodb')

def check_record_pattern(record):
    if 'dynamodb' in record and 'NewImage' in record['dynamodb']:
        new_image = record['dynamodb']['NewImage']
        return 'improvement' in new_image and 'region' in new_image and 'S' in new_image['improvement'] and 'S' in new_image['region']
    return False

def lambda_handler(event, context):
    # Here you can find the documentation about the event and a sample of the event:
    # https://docs.aws.amazon.com/lambda/latest/dg/with-ddb-example.html
    print("Received Stream Event: " + str(event))
    for record in event['Records']:
        print(record['eventID'])
        print(record['eventName'])

        if check_record_pattern(record):
            improvement = record['dynamodb']['NewImage']['improvement']['S']
            region = record['dynamodb']['NewImage']['region']['S']
            print("Vote for " + improvement + " from region " +region)

            # Below code will enable you to use update_item API to increment 1 vote
            # for a given improvement and region to total_votes table.

            # For UpdateItem expressions check
            # https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.UpdateExpressions.html
            # For boto3 update_item check
            # https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Table.update_item

            table = dynamodb.Table('total_votes')
            table.update_item(
                Key={
                    'improvement': improvement,
                    'region': region
                },
                UpdateExpression="ADD total_votes :votevalue",
                ExpressionAttributeValues={
                    ':votevalue': 1
                }
            )
        
    return 'Successfully processed {} records.'.format(len(event['Records']))
```
AWS Community Builders partnership with Techne Summit Cairo 2023
Tags: aws, summit, community, awscommunitybuilders
Published: 2023-02-13 23:08:40


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbyt49ckczw4vmniamuv.jpg)
[AWS Community Builders](https://aws.amazon.com/developer/community/community-builders/) are proud to announce our partnership with Techne Summit Cairo 2023. Techne Summit is coming to you on MAR. 11 - 12. There will be lots of exciting things planned for you with a lot of Content planned, over several Industry-Focused Tracks! Hurry up and book your ticket now.
[https://cairo.technesummit.com/2023#tickets](https://cairo.technesummit.com/2023#tickets)
MAPS
Published: 2023-02-13 22:35:13

Map, Map, Map, Map

Think super objects 

Use the syntax

new Map([
['key', 'value']

])

to update a map you can use the set method

const myMap, = new Map([
['key', 'value']

]) 

myMap.set('key', 'value')

to see all of your key-value pairs, 

myMap.forEach(value, key) => {console.log(key, value);
});

WeakMap is useful for if you want to use an object as a key.