teleren/devto huggingface dataset:
AWS EC2 to S3 Access Issues: 'Unable to Locate Credentials' Error
Tags: aws, ec2
Published: 2024-03-31 21:30:25

I’m writing this post because I recently came across a perplexing issue while setting up a new EC2 instance, and what’s even more frustrating is that the solution turned out to be quite simple. I only managed to resolve it on my own after many unsuccessful searches on the Internet.

### Introduction

Everything seemed fine with VPNs and access, but my EC2 instance just couldn’t seem to talk to any AWS resources. To make things even more fun, when I installed the AWS CLI, I got hit with the “**unable to locate credentials. you can configure credentials by running aws configure**” error.

After some quality time troubleshooting and closely inspecting what was going on, I had a facepalm moment — it turned out **I had forgotten to set up the IAM role** when creating the EC2 instance.

Here’s the straightforward fix for when you find yourself in the same pickle:

1. **Creating the EC2 Instance**

Start creating your EC2 instance as usual. When you get to the “**Advanced details**” part, keep an eye out for the “**IAM instance profile**” option.

2. **IAM Instance Profile Setup**

Click on “IAM instance profile” and give it the permissions it needs. In my case, I needed to adjust this configuration in **the IAM to match my specific requirements**. You can use the following IAM policy as a guide, **but don’t forget to tweak it according to your own needs**:

```json
{  
    "Version": "2012-10-17",  
    "Statement": [  
        {  
            "Effect": "Allow",  
            "Action": [  
                "s3:Get*",  
                "s3:List*"  
            ],  
            "Resource": [  
                "arn:aws:s3:::trusted-data-credits-ACCOUNT-ID",  
                "arn:aws:s3:::trusted-data-clients-ACCOUNT-ID"  
            ]  
        },  
        {  
            "Effect": "Allow",  
            "Action": [  
                "s3:Get*",  
                "s3:List*",  
                "s3:PutObject*",  
                "s3:DeleteObject"  
            ],  
            "Resource": [  
                "arn:aws:s3:::analytics-data-credits-ACCOUNT-ID",  
                "arn:aws:s3:::analytics-data-clients-ACCOUNT-ID"  
            ]  
        }  
    ]  
}
```

3. **Instance Launch**

Carry on with the EC2 instance creation process like you normally would. When your shiny new instance starts up, it’ll have the right IAM role attached, granting it the permissions it needs to play nicely with AWS resources.

#### Conclusion

In a nutshell, in the wild world of AWS, sometimes it’s the little things that trip you up. But by remembering to configure that IAM instance profile when you’re setting up your EC2 instance, you can save yourself from some serious troubleshooting headaches and ensure your AWS resources are just a connection away.

Happy cloud adventures!
Discover Premium Leather Fashion at LeatherifyShops
Published: 2024-03-31 21:00:43

Welcome to **[LeatherifyShops](https://leatherify.shop/shop/)**, your premier destination for premium leather jackets and apparel. With our carefully curated collection, we offer a wide range of options to suit every style and preference. From classic black jackets and rugged brown options to trendy bomber jackets, chic biker styles, and cozy hoodies and sweaters, we have something for everyone. Each item in our collection is meticulously crafted with the finest materials and attention to detail, ensuring durability and timeless elegance. Shop now and experience the luxury of premium leather fashion at LeatherifyShops.

Shop our collection of **[Men's leather jackets](https://leatherify.shop/product-category/mens-leather-jacket/)**, including classic black jackets, rugged brown options, trendy bomber jackets, chic biker styles, and cozy hoodies and sweaters. Each piece is carefully crafted with the finest materials and attention to detail, ensuring durability and timeless elegance. Elevate your wardrobe with LeatherifyShops today.

Discover the epitome of luxury fashion at LeatherifyShops. Our curated collection features premium leather jackets and apparel for both **[Women leather jackets](https://leatherify.shop/product-category/women-leather-jackets/)**. From classic black jackets to rugged brown options, trendy bomber jackets, chic biker styles, and cozy hoodies and sweaters, we have something for every fashion enthusiast. Each item is meticulously crafted with the utmost attention to detail and quality, ensuring durability and timeless style. Shop now and elevate your style with LeatherifyShops.

Experience the luxury of premium leather fashion at LeatherifyShops. Our curated collection features a wide range of styles, including classic black jackets, rugged brown options, trendy bomber jackets, **[biker leather jackets](https://leatherify.shop/product-category/mens-leather-motorcycle-jackets/)**, and cozy hoodies and sweaters. Each piece is crafted with the finest materials and attention to detail, ensuring durability and timeless elegance. Shop now and elevate your wardrobe with LeatherifyShops.
How To Upload Files To AWS S3 Using Serverless Lambda Functions
Tags: aws, s3, serverless, lambda
Published: 2024-03-31 21:00:03

With the release of serverless infrastructure, running code without managing servers has never been easier.

Only a few years ago, if you wanted to run server code you would need to provision a server or several servers, manage them to make sure they were well maintained and debug when problems arose.

Now with the rise of serverless functions or Functions as a Service (FaaS) you could run server code from nothing, no hardware within mere minutes...

Read the full article here:
https://medium.com/success-with-aws/how-to-upload-files-to-aws-s3-using-serverless-lambda-functions-9fc040513f59
Enhance Your Tech Life: Top 5 Must-Have Gadgets from i-Tech Groups
Tags: onlineshopping, techgadgets, electronicgadgets, techinovation
Published: 2024-03-31 20:39:46

**Introduction:**
At [i-Tech Groups](https://itechgroups.co.uk/), we're passionate about bringing you the latest and greatest in technology. From smart home devices to wearable tech and gaming gear, we've got everything you need to elevate your tech experience. In this blog post, we'll highlight five must-have gadgets that are sure to enhance your life.

**1. Smart Thermostat:**
Transform your home into a smart home with a smart thermostat. Control your home's temperature from anywhere using your smartphone and save energy in the process.

**2. Fitness Tracker:**
Stay on top of your fitness goals with a fitness tracker. Monitor your daily steps, heart rate, and sleep patterns to optimize your health and wellness.

**3. Wireless Earbuds:
**Enjoy music and podcasts on the go with **[wireless earbuds](https://itechgroups.co.uk/product-category/audio/earphones/)**. Say goodbye to tangled cords and hello to convenience and freedom.

**4. Gaming Console:**
Immerse yourself in the world of gaming with a gaming console. Experience stunning graphics and captivating gameplay that will keep you entertained for hours.

**5. Portable Power Bank:**
Never run out of battery again with a portable power bank. Keep your devices charged while you're on the move and stay connected wherever you are.

**Conclusion:**
These are just a few of the must-have gadgets available at i-Tech Groups. Explore our full range of products and discover how you can enhance your tech life today!
🔍 Seeking Guidance from the Community: Object Detection and SMS Integration 📲👀
Published: 2024-03-31 20:37:06

Hey folks! 👋 I'm diving headfirst into the fascinating world of object detection, with an ambitious goal in mind: creating my very own full-body tracking model. But here's the twist – I want to take it a step further by integrating SMS notifications into the mix.

I'm reaching out to this awesome community for some guidance and advice. Here are the key areas I'd love some input on:

Object Detection Frameworks: Which frameworks have you found most effective for object detection tasks? Any personal favorites or recommendations?

Training Data and Annotations: How do you suggest approaching data collection and annotation for full-body tracking? Any tips for building a diverse and comprehensive dataset?

Model Training Tips: What strategies have worked well for fine-tuning object detection models, particularly for full-body tracking? Any pitfalls to watch out for?

SMS Integration: Have you ever integrated SMS notifications into a project like this before? Any pointers on choosing the right API/service and handling message triggers effectively?

General Advice and Best Practices: Any other words of wisdom or lessons learned from your own experiences in the field of computer vision and/or SMS integration?

I'm super grateful for any insights, resources, or personal anecdotes you can share.🌟 Thanks in advance for your help!
From 12th Final Project to an ATM Management System: Leveraging ChatGPT 4 for PDF Analysis
Tags: chatgpt, gpt4, promptengineering, pdf
Published: 2024-03-31 20:25:29

> Artificial intelligence is the future, but the journey of embracing it lies in bridging the past with the present, crafting innovation that transcends time.
- ChatGPT 4


## 12th Standard 10% Final Project

Back in my 12th standard, my partner and I faced a daunting task: creating a final project for our AISSCE Computer Science Subject. The challenge? Build a system that connects Python with MySQL using the mysql-connector-python library. Our mission was clear: submit a comprehensive project PDF complete with code and output.

The problem? We had no idea how to tackle it. Desperate to finish before our board exams loomed, we turned to the internet. There, we stumbled upon code snippets and output examples related to an “ATM Management System.” With a sense of urgency, we pieced together our project, hastily crafting the PDF using the resources we found online and had gotten full marks for it. Little did we know that this seemingly rushed endeavor would come back to surprise me later.


## Forgotten and Rediscovered

Fast forward to my college years. I found myself at [IIIT Delhi](https://iiitd.ac.in/), a prestigious tier 1 computer science engineering college. Around the same time, ChatGPT emerged, shaking the world more vigorously than COVID-19. As fate would have it, I gained temporary access to [ChatGPT 4](https://chat.openai.com/) which runs on [GPT 4](https://openai.com/gpt-4), and curiosity piqued my interest.

Could ChatGPT 4 analyze PDFs? Could it do more than its predecessor, ChatGPT 3.5? I wondered if it truly excelled at dissecting PDF documents. That’s when I remembered my old 12th standard final project—the “ATM Management System” PDF.

I dug through my old emails, retrieved the relic, and uploaded it to ChatGPT 4. My goal? To see if it could extract the entire codebase, including backend and database files. After a few prompts and an hour of anticipation, the results were in.


## The Revelation

Lo and behold, ChatGPT 4 delivered! It provided the required code files, revealing the inner workings of our long-forgotten ATM system. The journey from a rushed high school project to an AI-powered analysis felt like a time-travel adventure—one that bridged the past with the present.

[Prompt Chat: Explore the conversation here](https://chat.openai.com/share/266c6225-9932-4323-a0d0-2cd25e0b0dc9)

[Source Code: GitHub - ATM Management System](https://github.com/Vikranth3140/ATM-Management-System)


## Sharing the Tale

And so, dear readers, I share this tale with you—a testament to the unexpected twists and turns that technology brings. Our humble ATM project, once forgotten, now stands as a testament to the power of AI. As ChatGPT continues to evolve, who knows what other hidden gems it might uncover?

Stay curious, keep coding, and remember: sometimes, even a rushed project can become a time machine to the past, connecting us to the future.
Nuxt3 : limitation on Layers & Modules
Tags: nuxt, nuxt3
Published: 2024-03-31 20:09:41

Nuxt is a good framework.

I've been using it for a few months now and it's good, but I found some limitations that were annoying for a professional use.

## Layers & modules

Nuxt's [Layers](https://nuxt.com/docs/getting-started/layers) and [modules](https://nuxt.com/docs/guide/concepts/modules) allows you to split your code as reusable parts.

- a layer for your shared UI components
- a layer for your auth system
- ...

But each layer can requires specific packages for it's business.

## Limitation

- With Nuxt <= 3.11.1 at least
- Using layer/module [linked on github or so](https://nuxt.com/docs/guide/going-further/layers#git-repository).

If your layers/modules requires dependencies to work, **Nuxt will not install these dependencies** on `npm install` or `npm build` on your projects and you won't be able to run em.

Documentation is very poor and unclear about theses two features.

## Workaround

I tested a lot of tricks, asked the community but there is **no workaround for now** except **manually install your layers'/modules' dependencies into each one of your projects**.

It's very limitative and annoying if you want to use your layers/modules on several projects and this make it loses all the interest of these features: easy reusability.

In my opinion, layers and modules are most of time useless in this state.

Keep this in mind before starting a big and professional project with it. 😣
WebRTC API
Tags: frontendchallenge, devchallenge, javascript, webdev
Published: 2024-03-31 20:04:01

_This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature._

## Explainer
WebRTC lets browsers share data without plugins, enabling things like video calls & file sharing right in the browser. It uses peer-to-peer connections whenever possible to connect with devices in the local network, which can reduce strain on servers. 

## Additional Context
[Snapdrop.net](https://snapdrop.net/) is one of many examples of the uses for this API, using it with [WebSocket API](https://websocket.org/) allows endpoints on the same local network to distribute files and send data between them.
We can find the source code for the project [here](https://github.com/RobinLinus/snapdrop).
Help please, Problem with Logout
Tags: laravel, react, programming, axios
Published: 2024-03-31 20:01:21

Hi, I'm new using Laravel, I'm developing an application with laravel and react, but when I try to logout a session, console shows this:

Config.jsx:11 
 POST http://localhost:8000/api/v1/auth/logout 401 (Unauthorized)
:8000/perfiltitular:1 Uncaught (in promise) 
AxiosError {message: 'Request failed with status code 401', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
code
: 
"ERR_BAD_REQUEST"
config
: 
{transitional: {…}, adapter: Array(2), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}
message
: 
"Request failed with status code 401"
name
: 
"AxiosError"
request
: 
XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, upload: XMLHttpRequestUpload, …}
response
: 
{data: {…}, status: 401, statusText: 'Unauthorized', headers: AxiosHeaders, config: {…}, …}
stack
: 
"AxiosError: Request failed with status code 401\n    at settle (http://[::1]:5173/node_modules/.vite/deps/axios.js?v=7c27b233:1203:12)\n    at XMLHttpRequest.onloadend (http://[::1]:5173/node_modules/.vite/deps/axios.js?v=7c27b233:1420:7)\n    at Axios.request (http://[::1]:5173/node_modules/.vite/deps/axios.js?v=7c27b233:1780:41)"
[[Prototype]]
: 
Error

Could someone help me please? This is my getLogout in Config.jsx
getLogout:()=>axios.post(`${base_api_url}/auth/logout`)

And here It's my route in api.php
Route::group(['middleware' => 'auth:sanctum'], function () {

        //::auth
        Route::post('/auth/logout', [AuthController::class, 'logout']);
Glam up your form using vanilla js!!
Tags: frontendchallenge, devchallenge, css, javascript
Published: 2024-03-31 19:49:34

_This is a submission for DEV Challenge v24.03.20, Glam Up My Markup: Camp Activities_

## <u>What I Built</u>

I've built an interactive form panel using CSS and Vanilla JS . Already provided with an HTML snippet for the form,I've added a nice simple UX for an user filling the form.

## <u>Demo</u>

### Code
{% embed https://github.com/kaustav1810/Glam_My_Markup.git %}

#### Please view the live demo [here](https://kaustav1810.github.io/Glam_My_Markup/) !!


![Form Snippet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/80bk7j6z6qlc8z8x70f7.png)

## <u>Journey</u>

I learnt about many new CSS pseudoselectors such as **:not ::after, ::before** among many others. Also I learnt about new dom manipulation techniques using vanilla js for add/update elements in the DOM TreeNode.

Dev username: @kaustav1810
History API - Frontend Challenge
Tags: frontendchallenge, devchallenge, javascript, webdev
Published: 2024-03-31 19:24:01

_This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature._

## Explainer
The History API allows web developers to manipulate the browser history, enabling navigation within a single-page application without full page reloads, and improving user experience by allowing seamless transitions between states.

## Additional Context
The History API lets you change the browser's history for websites that don't reload the whole page as you navigate, like many single page applications.
Shiba Inu Token Faces Significant Investor Confidence Drop 😟
Published: 2024-03-31 18:59:22


📉 The popular meme token Shiba Inu (SHIB) is experiencing a significant drop in investor confidence. This follows a massive liquidation of 533.6 billion SHIB tokens by a single organization across 11 wallets.

💰 A sale worth $15.99 million in stablecoin DAI occurred about 24 hours ago, resulting in a gain of $8.24 million or 106% in less than a month for the seller. The SHIB community speculates about the seller's next move as the 11 wallets still hold the acquired DAI.

🌑 The large transaction has cast a shadow over SHIB's recent rally, despite a slight increase in price to $0.00003033 in the last 24 hours. Market sentiment appears to be cooling, with SHIB's trading volume decreasing by 32.27% to $550.84 million.

💼 Data from CoinGlass shows a 1.51% decrease in open positions in Shiba Inu in the last 24 hours, signaling a possible decrease in trading excitement and investor strategy shift. The market continues to monitor the impact of the significant sale wave on SHIB and the broader cryptocurrency market.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4xg0arcvecxcwtx8czub.png)
🔮 What to Expect from Bitcoin as We Enter the Second Quarter of 2024 🚀💰
Published: 2024-03-31 18:59:04



🔮 As Bitcoin hovers around $70,000, the future looks dynamic and unpredictable. The Federal Reserve's stance on interest rates and the upcoming halving are key factors shaping Bitcoin's trajectory. Jerome Powell's reassurance on economic stability fuels Bitcoin's resilience. 🚀💰

📉 Speculation surrounds potential rate cuts in June, while inflation remains a focus. The halving, historically pivotal, spurs debate between caution and optimism. Predictions abound, with experts like Robert Kiyosaki bullish on a $100,000 Bitcoin. 🎲

💡 Bitwise CEO Hunter Horsley highlights the halving's impact on supply-demand dynamics. This sets the stage for an intriguing second quarter, where scarcity intersects with market sentiment and economic trends. 📊

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b17qmflvjoq3c61q97l4.png)
🔮 Solana and Jupiter Price Prediction for This Week 📈✨
Published: 2024-03-31 18:58:51


📈 Solana (SOL) surged toward $200 once more as meme coin trading activity surged in March. The rise in unique addresses ensured demand for the network, which could see the token rally past $209, the local high, in the coming weeks. 🚀

🔍 The market structure of SOL remained bullish on the 12-hour chart, with minimal odds of bears flipping it in their favor. The trading volume diminished in the second half of March, suggesting a lack of bullish conviction from earlier in the month. 💼

🔮 Jupiter (JUP) climbed toward its all-time high at $2 with a strongly bullish outlook. The market structure on the 6-hour chart was firmly bullish, with evidence of sustained buying pressure from eager bulls. 🪐

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ami856ait1dqenh9ir4.png)
🚀 Bitcoin Poised to Hit $170,574 Within 12 Months 📈🔥
Published: 2024-03-31 18:58:26

📈 Bitcoin has experienced unprecedented success in 2024, setting a new record high of $73,679 on March 13, maintaining its value around $70,000 since then. This surge represents an impressive growth of over 140% compared to the previous year. 💰

🌐 During its peak this year, Bitcoin momentarily eclipsed silver, becoming the eighth most valuable commodity worldwide by market capitalization. Looking ahead, projecting similar growth rates into the future suggests that by April 2025, Bitcoin could potentially hit $170,574. 🔮

💡 This forecast not only positions it above silver but also surpasses major corporations like Amazon, Alphabet (Google), Saudi Aramco, Nvidia, and Microsoft in CompaniesMarketcap’s rankings of top commodities by capitalization. These projections are grounded in Bitcoin’s recent yearly growth of about 144.82%. If this trend continues, Bitcoin could see its price soar to $170,574 by next year, boosting its market cap to approximately $3.224 trillion, thereby overtaking Microsoft. 🚀

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bte3tndltxxo3k95xdkr.png)
🚀 Ethereum Price Surge: Analyzing the Underlying Factors 📈
Published: 2024-03-31 18:58:08


📈 Ethereum‘s price began to climb today, surpassing $3,630 with a 3.5% increase since March 31. The price of Ethereum has risen by 18.75% from the local low of around $3,050 set just over a week ago. So, what are the factors supporting
Ethereum’s price increase in recent days? Let’s take a look. 🚀

💰 Ethereum’s ongoing rise against the US dollar coincides with equally strong gains against Bitcoin. The widely followed ETH/BTC pair gained approximately 2.5% in value on March 31, reaching 0.051 BTC, indicating a possible short-term capital rotation. Moreover, Ethereum’s performance against the broader cryptocurrency market has significantly improved in the last 48 hours, as highlighted by a 2.16% increase in the Ethereum Dominance Index (ETH.D) from its lowest level on March 29.

🐳 This trend underscores a growing capital inflow from rival altcoin projects into the Ethereum market, bolstering Ethereum’s value in dollars. According to blockchain data analytics platform Glassnode, organizations holding between 1,000 and 10,000 Ethereum increased their reserves by approximately 1.15% in March. Interestingly, this accumulation pattern often precedes significant price increases in the ETH/USD pair, as witnessed today.

💼 Ethereum’s price increase today coincided with a sharp rise in funding rates in the futures market. Notably, as of March 31, the funding rate for Ethereum futures contracts reached its highest level since March 12, at 0.0591% every eight hours or 1.24% weekly, indicating an increased cost of holding long positions. At the same time, Ethereum’s open interest, or the total number of outstanding futures contracts, stabilized around $14 billion after reaching an all-time high three days prior.

📈 The rising funding rates, along with the stabilized open interest, suggest that investors are borrowing more to finance their long positions, expecting the asset’s price to rise and hoping to increase their returns.

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