teleren/devto huggingface dataset:
Learning AWS Day by Day — Day 45 — AWS Lambda
Tags: aws, cloud, cloudcomputing, beginners
Published: 2024-04-23 17:28:31

Exploring AWS !!

Day 45:

AWS Lambda

AWS lambda is a serverless compute service where code is triggered in response to event occurrence and also manages underlying compute resources for us.

Features:

You don’t require servers, you just need to do is write the code and upload it to lambda.
Automatic scaling based on size of workload.
Pay what you use — amount of time the code of compute.

Concurrency — Reserved and Provisioned
Reserved concurrency guarantees the maximum number of concurrent instances for the functions.
Provisioned lets you request a certain number of execution which get initialized and prepared to respond immediately to the invocation of function.

What is AWS lambda?
comes under compute domain, allows you to execute code for any type of application, can be used to run code in response to certain events from other services, supports Java, Python, C#, Node.JS, etc.

Where its used?
In automation, like lets say used for processing the image into thumbnails when uploaded.

How does it work?
Requests sent are given to container which contains the code the user has provided to satisfy query. If multiple requests are sent then multiple containers are created.
Upload code to one or more lambda function
Lambda executes this code
After code is invoked Lambda takes care of provisioning and managing required servers.

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

To manually backup the data we can use lambda.
Create 2 S3 buckets → Create IAM role → Create lambda function to copy files between buckets → Testing it out.

Benefits and Limitation:
Benefits:
Serverless architecture
Code Freely
No VM needs to be created
Pay-as-you-go
Monitor performance
Limitation:
Max disk space 512 MB for runtime environment.
Memory volume varies between 128 MB and 3008 MB to function while execution.
Function timeout can be only 900 seconds (15 mins) default in 3 seconds.
Only languages available in lambda editor can be used.

Use Case:
Serverless websites, automates backups, filer and transform data
Building serverless allows to focus on code, no need to manage infrastructure
Schedule lambda events and create backups
Filter and transfer — transferring data between lambda and other Amazon services like S3, Database, Kinesis, we can filter data before sending, we can easily load and transform data.

AWS lambda with S3:
User → web → S3 → Lambda → Microservices
Demo:
Create function → provide trigger as S3 and choose bucket → Upload object to bucket → This would trigger lambda function → Go to monitoring tab under lambda console and check logs stream to confirm invocation of function.

Example of using lambda: You have different file formats like pdf, img, txt and you upload them to a S3 bucket, which is integrated with Lambda which filters the format and according to the format moves it to their specific buckets, like pdf goes to the pdf docs bucket, img goes to img bucket and txt to txt bucket.
React Class Component
Published: 2024-04-23 17:18:11

```
import React from "react";

class App extends React.Component{
constructor(){
super();
this.state = {
};
};
render(){
return(
<>
<h1>Hello World</h1>
<h1>Hi</h1>
</>
);
};
};

export default App;
```
Points to remember:

1. constructor is a function so syntax -> constructor(){}. Same for render(){}. And all other lifeCycle methods are called the similarly.
2. render should return() something  which is JSX.
How I am approaching becoming a better programmer...
Tags: beginners, programming, discuss, development
Published: 2024-04-23 17:17:29

Math puts your brain into logical thinking. It’s like a lifting session for your brain. Math will help you become a clear thinker and help you approach life more logically and help you solve any problem in a much easier way.

Today I was given a problem to implement a feature that would calculate the distance between two places and show the paths within those distances in a map. After some research and chatting with GPT, I came across the solution using the Haversine formula related to Trigonometry. Now I could implement that feature by implementing that mathematical algorithm and was thinking about doing that until I came across a helper function provided by the Google Maps api. Which would just take in the distances and calculate the number. Now since it is a development project, I would prefer using this helper function over writing one myself so I can focus on the core logic of the feature.

That's what I have been doing for a long time. Always picking up libraries to solve my problems quickly and easily. While it is a good development practice since I am focusing on shipping features but it kinda destroys my ability to create those functions myself.  Understand the behind-the-scenes of those functions and be more logical. It's about developing those muscles.

I realized that due to the extensive amount of library and helper functions usage, I am losing my maths muscles. Ability to be more logical which I should be as a programmer. While I am using those helper functions and getting my job done, I could create them myself and become a better programmer. 

Here's my CTA:

1. Put more focus on maths. Get better at maths
2. Leetcoding - Solve programming problems
3. Read books on DSA
4. Study and understand the behind-the-scenes of the libraries and frameworks I use daily.

A routine must be created in order to maintain those in the long term.

Let me know what advice you have regarding that.

It was a monologue blog, very different than my usual posts. I will share more of these in the coming days. Sharing my learnings and lessons.
Muntasir Mubin.CEO of WebDextro
Tags: webdextro, muntasirmubin, ceowebdextro
Published: 2024-04-23 17:14:49

**[Muntasir Mubin](mubin.webdextro.org)** is a dynamic and visionary leader in the world of development, serving as the CEO of **[WebDextro](webdextro.org)**. With a keen eye for innovation and a deep understanding of emerging technologies, Muntasir has successfully spearheaded WebDextro's growth and positioned the company as a leading player in the industry.
I'm a Web Developer for the past few years and I have gained a lot of experience in this field. I live in Bangladesh and have always dream of becoming an independent professional. The thought of being able to work independently while earning a decent income has always motivated me to learn more about programming languages like PHP, HTML5, CSS etc and build websites for small businesses or entrepreneurs which require some easy-to-understand design as well as content management. I believe that small businesses are the future of web development industry.I have been working as a freelancer for the past few years and I have gained a lot of experience in this field. I live in Bangladesh and have always dream of becoming an independent professional.
Email: [mubin@webdextro.org](mailto:mubin@webdextro.org)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efb2esb9ceedxnraa59h.jpg)
React Functional Component
Published: 2024-04-23 17:12:38

```
import React from "react"

const App = () => {
return (
<>
<h1>Hello World</h1>
<h1>Hi</h1>
</>
);
};

export default App;
```
Importing React is a good practice.
Functional component should always return(<>...</>) something and only 1 thing.
For the above reason even when we have 2 h1 tags we wrap them around in a fragment to return it as a single component.
Mastering React Challenge: Building a Timer App
Published: 2024-04-23 17:07:11


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d9yyrtq1jictj2mt227r.png)In this blog post, I'll guide you through building a robust timer application using React that meets specific requirements and integrates notifications for a seamless user experience. We'll cover essential features such as starting, pausing, resetting the timer, and ensuring accessibility for screen readers.

## Challenge Overview
The challenge involves creating a timer app with the following key features:
Displaying 'Hours', 'Minutes', and 'Seconds' fields without visible labels but ensuring accessibility and screen reader compatibility.
Implementing placeholder text for input fields.
Transitioning to a running timer with plain text representation of hours, minutes, and seconds upon pressing 'Start', along with 'Pause' and 'Reset' functionalities.
Zero-padding numbers during countdown (e.g., displaying '01' instead of '1').
Displaying notifications or alerts upon timer completion based on app permissions.


## Video Preview
To get a quick glimpse of the timer app in action and follow along with detailed implementation steps, watch my video tutorial here: Watch the Timer App Challenge Video

[React Timer App Video is here](https://www.youtube.com/watch?v=REVHmBek3kA&list=PLF7ny2pVBcm29ri1Z50QXOo3gIiWbVs6u&index=2)

## Key Learnings
Throughout the tutorial video and accompanying blog post, you'll learn:
How to structure a React component-based timer app.
Techniques for managing timer state and handling user interactions.
Integration of notifications for timer completion using browser APIs.
Strategies for handling app permissions and fallbacks for unsupported features.

## Conclusion
Building a timer app is a great way to enhance your React skills and understand important concepts in modern web development. By following this tutorial and watching the video, you'll gain practical experience and insights into creating interactive and accessible React applications.
Ready to dive in? Watch the video above and let's build an awesome timer app together!
Bas' Take on Tech: Edge Computing, Digital Markets Act, Job Data
Tags: community, cloud, career
Published: 2024-04-23 16:30:00

# 📊 Sneak Preview: Job data

I had a couple of follow-up coffee chats with people I talked to back in 2022. The conversations were very insightful again. 

However, the perception of the current economic situation was surprisingly different for each person I’ve talked to. 

So, I decided to have a look at some data. I started analyzing the job postings on Hacker News and collected other economic data from different sources.


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

I’m still not done with the analysis, but here are some preliminary findings:

- The oft-cited story of overhiring during Covid and the subsequent job cuts is supported by the data
- The situation appears to have stabilized since the second half of 2023, albeit at a low level

In other news, Walmart’s Ibotta IPO’d with a rise of 17% on the first day.

Expect a more detailed analysis of the job data in one of the next newsletter issues.


[Read more](https://open.substack.com/pub/basc/p/bas-take-on-tech-edge-computing-digital?r=20mg42&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true)
#BitNest #BitNestLoop #BitNestPureContract
Published: 2024-04-23 16:17:57

BitNest: The Leader of the Digital Finance Revolution

BitNest is a leading platform dedicated to driving digital financial innovation and ecological development. We provide comprehensive cryptocurrency services, including saving, lending, payment, investment and many other functions, creating a rich financial experience for users.

Our story began in 2022 with the birth of the BitNest team, which has since opened a whole new chapter in digital finance. Through relentless effort and innovation, the BitNest ecosystem has grown rapidly to become one of the leaders in digital finance.

The core functions of BitNest ecosystem include:

Savings Service: Users can deposit funds into BitNest's savings system through smart contracts to obtain stable returns. We are committed to providing users with a safe and efficient savings solution to help you achieve your financial goals.
Lending Platform: BitNest lending platform provides users with convenient borrowing services, users can use cryptocurrencies as collateral to obtain loans for stablecoins or other digital assets. Our lending system is safe and reliable, providing users with flexible financial support.
Payment Solution: BitNest payment platform supports users to make secure and fast payment transactions worldwide. We are committed to creating a borderless payment network that allows users to make cross-border payments and remittances anytime, anywhere.
Investment Opportunities: BitNest provides diversified investment opportunities that allow users to participate in trading and investing in various digital assets and gain lucrative returns. Our investment platform is safe and transparent, providing users with high-quality investment channels.
Through continuous innovation and efforts, BitNest has become a leader in digital finance and is widely recognised and trusted globally. We will continue to be committed to promoting the development of digital finance, providing users with more secure and efficient financial services, and jointly creating a better future for digital finance.
React Refs
Published: 2024-04-23 16:06:29

**_<u>Refs</u>_**

It is short for reference and as the name suggests it is a pointer to a DOM element.

**Why do we need Refs?**
1. If there are a lot of states particular to a react component can make it cumbersome so we use Refs instead.
2. in case of Refs -> unnecessary re-rendering is ruled out because it maintains it's value during re-renders.
3. In case of validity checking states perform before hand checking as they re-render but refs do that only when the page is submitted.
4. Whenever we want to focus on for eg. a text field on a clik event, we use Refs to to refer to that input box and focus the field.
5. Refs can be used both in Class and Functional Component.
6. In class -> we use React.createRef() an function -> useRef();
7. React.createRef() has default value null and can't be given while useRef() can be given a default value.

Disadvantage ->
Debugging of Refs is difficult
Refs are generally not recommended.
BitNest#cryptocurrency
Published: 2024-04-23 16:00:07

BitNest: The Leader of the Digital Finance Revolution

BitNest is a leading platform dedicated to driving digital financial innovation and ecological development. We provide comprehensive cryptocurrency services, including saving, lending, payment, investment and many other functions, creating a rich financial experience for users.

Our story began in 2022 with the birth of the BitNest team, which has since opened a whole new chapter in digital finance. Through relentless effort and innovation, the BitNest ecosystem has grown rapidly to become one of the leaders in digital finance.

The core functions of BitNest ecosystem include:

Savings Service: Users can deposit funds into BitNest's savings system through smart contracts to obtain stable returns. We are committed to providing users with a safe and efficient savings solution to help you achieve your financial goals.
Lending Platform: BitNest lending platform provides users with convenient borrowing services, users can use cryptocurrencies as collateral to obtain loans for stablecoins or other digital assets. Our lending system is safe and reliable, providing users with flexible financial support.
Payment Solution: BitNest payment platform supports users to make secure and fast payment transactions worldwide. We are committed to creating a borderless payment network that allows users to make cross-border payments and remittances anytime, anywhere.
Investment Opportunities: BitNest provides diversified investment opportunities that allow users to participate in trading and investing in various digital assets and gain lucrative returns. Our investment platform is safe and transparent, providing users with high-quality investment channels.
Through continuous innovation and efforts, BitNest has become a leader in digital finance and is widely recognised and trusted globally. We will continue to be committed to promoting the development of digital finance, providing users with more secure and efficient financial services, and jointly creating a better future for digital finance.
Looking for someone to make music for my game. (character modeler needed too!)
Tags: music, sounds, roblox, help
Published: 2024-04-23 16:00:00

Hello! You can call me Apro_Mechanics! I am currently looking for someone to make music for my game! This is a horror game, so it needs creepy/mysterious music. I also need a hard-hitting fast paced song for the chases. The trailer songs need to be pretty good too. If you can help, please comment below. I also need help with modeling, so if you can model and rig characters in blender that would be amazing. Here are some snapshots!


 *EVERYTHING IS SUBJECT TO CHANGE*


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



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5nzpc3rfad5wvavso050.jpg)

A bit of the main enemy in development(help wanted)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g4c7xhci2a269qoakie0.png)
OEM Keto Gummies 2024 - A method to improve the overall health of the body.
Published: 2024-04-23 15:58:09

Shop Now:- https://allsupplementstore.com/oem-keto-gummies-buy/ 

Product Name :- OEM Keto Gummies

Main Benefits:- Weight Loss, Official Store And Price

Composition:- Natural Organic Compound

Side-Effects:- NA

Rating:- ⭐⭐⭐⭐⭐

Availability:- Online

Where to Buy:- Official Website – {Buy Now Here — Click Here}

OEM Keto Gummies:- 

Busy professionals - If you're a busy professional with a lot of schedules, these OEM Keto Gummies provide you with a convenient way to maintain your ketosis even while you're on the go. Whether you are at the office in a meeting or just traveling, they offer you quick access to ketone support.

Official Website:- https://allsupplementstore.com/oem-keto-gummies/ 
Facebook:- https://www.facebook.com/OEMKetoGummiesUS/ 

Jimdo.Site:- https://oem-keto-gummies-usa.jimdosite.com/ 

PDF.SITE:- https://publuu.com/flip-book/476913/1071822 
https://flipbooklets.com/pdfflipbooklets/oem-keto-gummies 
https://issuu.com/yuentonyk/docs/oem_keto_gummies 
https://anyflip.com/mqdbe/rvkm 
https://online.fliphtml5.com/vnduw/jdpp/ 

Official Blogs:- 
https://sites.google.com/view/oem-keto-gummies/ 
https://oem-keto-gummies.blogspot.com/2024/04/blog-post.html 
https://groups.google.com/g/oem-keto-gummies-us/c/fYQHThddnAk 
https://medium.com/@yuentonyk/oem-keto-gummies-instant-fat-burning-boosts-digestion-boosts-metabolism-controls-your-7e4f5be8ed60 
https://medium.com/@yuentonyk/oem-keto-gummies-exposed-reviews-price-hype-hoax-alert-161d85083f1e 
https://www.linkedin.com/events/oemketogummies-weightloss-price7188239593039695872/ 
https://oemketogummies.mystrikingly.com/ 
https://sketchfab.com/3d-models/oem-keto-gummies-negative-side-effects-revealed-9c5b1e3bd4bc46caac74396efd0f320e 
https://in.pinterest.com/pin/1041950063782555131/ 
https://oemketogummiesusa.godaddysites.com/
https://oem-keto-gummies.hashnode.dev/oem-keto-gummies-scam-exposed-oem-keto-gummies-2024-ingredients-price-and-hidden-side-effects-of-oem-keto-gummies  
https://oem-keto-gummies-us.company.site/ 
https://gamma.app/docs/OEM-Keto-Gummies-WEIGHT-LOSS-DARK-SIDE-YOU-MUST-KNOW-BEFORE-ORDER-qep1ztraqpl6eq5 
https://teeshopper.in/products/OEM-Keto-Gummies-Weight-Loss-Price-Scam-2024-Works--Where-To-Buy 
https://www.quanshotit.com/group/quanshotit-group/discussion/c8dda6f8-501f-4214-b796-4772d5692cc9 
https://www.latinoleadmn.org/group/leadership-action-team/discussion/b5d73004-376c-46bd-8664-a7338adef26d 
https://www.eventbrite.com/e/oem-keto-gummies-review-scam-or-legit-warning-dont-buy-until-you-read-this-tickets-887787374937?aff=oddtdtcreator 
https://www.cbaps.org/group/grupo-cbaps/discussion/812293e1-9545-47ff-ab7b-e3cb538b136a 
https://www.irvac.org/group/mysite-200-group/discussion/a6a75485-1b79-48ea-a146-00cc87042a2d 
https://ecosoft.microsoftcrmportals.com/en-US/forums/general-discussion/aa6fae40-d500-ef11-a81c-6045bda1d753 

RECENT TAGS:-

#OEMKetoGummies
#OEMKetoGummiesBuy
#OEMKetoGummiesOffer
#OEMKetoGummiesPrice
#OEMKetoGummiesOrder
Pandas DataFrame
Published: 2024-04-21 15:38:12

Pandas DataFrame, 2 boyutlu bir veri yapısıdır ve farklı türdeki verileri (sayısal, string vb.) saklayabilir. Her sütun ayrı bir veri türüne sahip olabilir.

Öncelikle pandas kütüphanesini import edelim:

`import pandas as pd`

Bir DataFrame oluşturalım:

```
data = {
    'İsim': ['Ahmet', 'Mehmet', 'Ayşe', 'Fatma'],
    'Yaş': [25, 30, 35, 40],
    'Şehir': ['İstanbul', 'Ankara', 'İzmir', 'Bursa']
}
df = pd.DataFrame(data)
```

Bu kod, aşağıdaki gibi bir DataFrame oluşturur:

```
     İsim  Yaş      Şehir
0   Ahmet   25   İstanbul
1  Mehmet   30     Ankara
2    Ayşe   35      İzmir
3   Fatma   40      Bursa
```

### DataFrame'deki verilere erişmek için:

### 'İsim' sütununa erişim:
`print(df['İsim'])`

```
0     Ahmet
1    Mehmet
2      Ayşe
3     Fatma
Name: İsim, dtype: object
```


### İlk iki satıra erişim:
`print(df[:2])`

```
     İsim  Yaş     Şehir
0   Ahmet   25  İstanbul
1  Mehmet   30    Ankara

```

### Belirli bir satır ve sütuna erişim:
`print(df.loc[1, 'Yaş'])`   1 numaralı indeksteki kişinin yaşını döndürür.(30)

DataFrame üzerinde çeşitli işlemler yapabiliriz, örneğin:

### Yaş ortalamasını hesaplama:
`print(df['Yaş'].mean())`
=>32.5

### 'Şehir' sütunundaki benzersiz değerler:
`print(df['Şehir'].unique())`
['İstanbul' 'Ankara' 'İzmir' 'Bursa']

Bu örnekler, pandas DataFrame'inin temel kullanımını gösterir. Pandas, veri analizi ve manipülasyonu için çok daha fazla 
işlevsellik sunar.


# Ek olarak iloc ve loc farkı

Pandas kütüphanesinde, DataFrame'ler üzerinde belirli satır ve sütunlara erişmek için iloc ve loc kullanılır. Ancak, bu iki fonksiyon arasında önemli bir fark vardır:

iloc: iloc, tamamen tamsayı tabanlı bir indeksleme yöntemidir. Yani, iloc ile DataFrame'deki satır ve sütunlara onların tamsayı indekslerine göre erişebiliriz. İndeksleme 0'dan başlar ve son indeks dahil olmamak üzere çalışır. Yani, iloc[0:5] ifadesi 0'dan 4'e kadar olan indeksleri alır.

Örneğin:

df.iloc[0:5, 1:3]
Bu kod, DataFrame'deki ilk 5 satırı ve 2. ve 3. sütunları seçer.

loc: loc ise etiket tabanlı bir indeksleme yöntemidir. Yani, loc ile DataFrame'deki satır ve sütunlara onların etiketlerine (veya isimlerine) göre erişebiliriz. loc'da son indeks dahildir. Yani, loc[0:5] ifadesi 0'dan 5'e kadar olan indeksleri alır.

Örneğin:

df.loc[0:5, 'column_name']
Bu kod, DataFrame'deki ilk 6 satırı ve 'column_name' adlı sütunu seçer.

Özetle, iloc tamsayı tabanlı indeksleme yaparken, loc etiket tabanlı indeksleme yapar. Bu nedenle, hangi yöntemin kullanılacağı, veri setindeki satır ve sütunlara nasıl erişmek istediğinize bağlıdır.