teleren/devto huggingface dataset:
overfitting && underfitting
Published: 2024-03-30 17:14:56

**Validation Accuracy Artmıyorsa, Validation Loss Azalmıyorsa:**

Eğer validation accuracy artmıyor ve validation loss azalmıyorsa, modelin eğitimi tam olarak gerçekleşmiyor olabilir veya model underfitting eğiliminde olabilir. Model, veriyi yeterince öğrenememiş olabilir ve daha karmaşık bir model veya daha fazla eğitim süresi gerekebilir.

**Validation Accuracy Azalıyorsa, Validation Loss Artıyorsa:**

Eğer validation accuracy azalıyor ve validation loss artıyorsa, bu durum genellikle overfitting ile ilişkilidir. Model eğitim verilerine aşırı uyum sağlamış ve genelleme yeteneği düşmüş olabilir. Bu durumda, modelin basitleştirilmesi veya eğitim verisinde daha fazla çeşitlilik sağlanması gerekebilir.


**Validation Accuracy ve Validation Loss Değişmiyorsa:**

Eğer validation accuracy ve validation loss sabit kalıyorsa, modelin optimal performansa ulaştığı veya eğitimin henüz tamamlanmadığı anlamına gelebilir. Bu durumda, daha fazla eğitim veya modelin karmaşıklığını artırma/küçültme gibi adımlar düşünülebilir.

Özetle, eğitim sırasında validation accuracy ve validation loss'un hareketlerini dikkatle izleyerek, modelin overfitting veya underfitting eğilimlerini belirlemek önemlidir. Bu eğilimlerin belirlenmesi, modelin daha iyi genelleme yapabilmesi için alınacak önlemleri belirlemeye yardımcı olabilir.
Can Nft Be Recovered?
Tags: nft, cryptocurrency
Published: 2024-03-30 17:12:45

In the booming world of non-fungible tokens (NFTs), where digital art, collectibles, and virtual real estate are bought and sold for staggering sums, the question of NFT recovery looms large. Can lost or stolen NFTs be reclaimed? Enter Wizard Asset Recovery, a trusted name in the realm of cryptocurrency recovery, offering specialized assistance to those seeking to retrieve their valuable NFTs. In this article, we explore the intricacies of NFT recovery and the role that Wizard Asset Recovery plays in this evolving landscape.

Navigating the Complexities of NFT Loss

NFTs, which are unique digital assets stored on the blockchain, present unique challenges when it comes to recovery. Unlike traditional cryptocurrencies such as Bitcoin or Ethereum, which can sometimes be traced and recovered through forensic analysis, NFTs are often decentralized and stored across multiple platforms, making the recovery process more complex.

Expertise That Sets Them Apart

At the forefront of NFT recovery stands Wizard Asset Recovery, armed with a team of seasoned professionals who specialize in blockchain technology and forensic analysis. With years of experience in the field, they possess the skills and insights needed to navigate the complexities of NFT recovery with precision and efficiency.

A Personalized Approach to Success

Recognizing that every case is unique, Wizard Asset Recovery adopts a personalized approach to NFT recovery. They work closely with each client to understand the specific circumstances surrounding the loss of their NFTs, crafting tailored strategies that maximize the chances of success. Whether it involves tracing transactions through the blockchain, engaging with NFT marketplaces and platforms, or pursuing legal avenues, they leave no stone unturned in their quest to recover lost NFTs for their clients.

Transparent Communication Every Step of the Way

In an industry plagued by uncertainty, Wizard Asset Recovery shines bright with its commitment to transparent communication. From the initial consultation to the final resolution, clients are kept informed at every stage of the recovery process, ensuring peace of mind and clarity throughout.

Take the First Step Towards Recovery

If you've lost access to your NFTs and are in need of expert assistance, don't hesitate to reach out to Wizard Asset Recovery. Clients can contact them via WhatsApp at +1 (315) 756-1228 or email them at Wizardassetrecovery@gmx.us. With their dedicated team of professionals by your side, you can embark on the path to NFT recovery with confidence.

In conclusion, Wizard Asset Recovery stands as a trusted ally for those seeking to reclaim their lost NFTs. With their expertise, personalized approach, and unwavering dedication to client success, they lead the charge in providing effective NFT recovery solutions and restoring peace of mind in the digital asset realm.
Need help with if command
Tags: webdev, help
Published: 2024-03-30 16:52:48

I am trying to use the new @if command within a template using version 17.
I would like to display a message instead of just displaying the value of the 

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

Can someone help?

Thanks
Deep Linking for Andriod and Apple in Next.js
Tags: webdev, javascript, nextjs
Published: 2024-03-30 16:48:53

Today I will discuss about how to create Android & Apple Deeplinking.

## For Android 

1. You have `assetlinks.json` file .
2. Create "assetlinks.json" file. Include the file inside `public/.well-known` folder .
3. The route is --> `domainname/.well-known/assetlinks.json` .

## For Apple

1. Apple requires that your website has a file at the path `/.well-known/apple-app-site-association` on your URL.
2. Create an API route
3. Create a file at this in your project location:

`pages/api/.well-known/apple-app-site-association.ts`

```
import type { NextApiRequest, NextApiResponse } from 'next'

const BUNDLE_ID = 'YOUR-APPLE-APP-BUNDLE-ID' // replace with your bundle ID

const association = {
  applinks: {
    apps: [],
    details: [
      {
        appID: `${BUNDLE_ID}`,
        paths: ['*', "/"],
      },
    ],
  },
}

export default (_: NextApiRequest, response: NextApiResponse) => {
  return response.status(200).send(association)
}
```

##  Add a redirect
Finally, Apple expects this file to exist at the exact path `yourdomain.com/.well-known/apple-app-site-association`.

Since the file we created above is an API route, we need to create a redirect in next.config.js:

```
const nextConfig = {
  // ...
  async redirects() {
    return [
      {
        source: '/.well-known/:file',
        destination: '/api/.well-known/:file',
        permanent: false,
      },
    ]
  },
}

```



## Test your app
First, you'll need to make sure you publish your website on the domain you used.

Thanks for reading
Nvidia free AI course - what about MacOS?
Tags: ai, rag, macos, windows
Published: 2024-03-30 16:45:35

After spending most of my time as a developer on Windows platform, I was advised to have a look at a Mac as the development platform. This happened some 10 years ago and I converted to MacOS completely.

Now, discovering Nvidia AI course, I am wondering how to use it without having to use Windows again (maybe Linux??). 

Can someone explain to me why does Nvidia ignore MacOS?
Learning AWS Day by Day — Day 21 — VPC Hands-on — Part 3
Tags: aws, cloud, cloudcomputing, learning
Published: 2024-03-30 16:39:08

Exploring AWS !!

**Day 21:**

**VPC Hands-on: Part 3**

**Task:**

1. Create 2 EC2 instances in any public subnet of any VPC and name them Master and Client
2. Using security groups, make sure that Client instance can only be accessed (SSH) through the Master instance

Solution to the task:

1. Create a VPC

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


2. Create a public subnet

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


3. Create Internet Gateway

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


4. Attach VPC to Internet Gateway

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


5. Add routes in Route Table

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


6. Edit the subnet association under Route Tables, and add the public subnet we created.

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


7. Go to EC2 instances 

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


8. Create 2 instances namely- Master and Client

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


9. Edit the inbound security rules and give Private IP of Master for Client

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


10. Security Group will be created

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


11. Connect and update instance and install apache2

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


12. Install Filezilla locally and Using Filezilla add the key file

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


13. Try to load the key and connect to Client via Master

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

Do follow me on LinkedIn: [LinkedIn](https://www.linkedin.com/in/saloni-singh-b78130176/)
Should I Pursue A Computer Science Degree?
Tags: webdev, computerscience, coding, codenewbie
Published: 2024-03-30 16:36:56

In the vibrant tech industry, the journey to success is not one-size-fits-all, especially when considering educational pathways. This article dives into whether pursuing a computer science degree is the optimal route to entering and thriving in the tech field. It highlights the traditional computer science degree’s benefits, including a comprehensive foundation in key technical skills, structured learning, and valuable networking opportunities. However, it also points to the drawbacks, such as the significant financial and time investment and the risk of learning potentially outdated technologies by the time of graduation.

Furthermore, the piece explores alternative routes into the tech industry, such as coding boot camps and self-teaching, which have become increasingly popular due to their focus on practical skills, shorter timeframes to employment, and lower costs. These alternatives, while lacking the formal degree’s prestige, emphasize the importance of hands-on experience and the ability to showcase skills through projects and contributions.

The decision between a traditional degree, boot camps, or self-directed learning should be based on personal learning preferences, career goals, and financial situations. This article underscores that success in the tech industry is achievable through various educational paths, each offering unique advantages and challenges. Whether through a structured university program, an intensive boot camp, or a self-taught journey, the key is finding the path that best aligns with your ambitions and learning style.

For a comprehensive exploration of these paths and thoughtful guidance on making the right educational choice for a career in technology, read the full article [here](https://devtuneup.com/is-a-computer-science-degree-worth-it-2/).
Automate daily MySQL and PostgreSQL database backups
Tags: mysql, postgres, saas
Published: 2024-03-30 16:35:36

## Introduction

In today's fast-paced digital landscape, the importance of a robust disaster recovery plan cannot be overstated. Yet, it's a facet of business operations that often gets overlooked until it's too late. Picture this: you're running a development agency, managing numerous web applications hosted on EC2 servers or Digital Ocean droplets. The last thing you want is to be caught off guard by data loss due to unforeseen circumstances. That's where a reliable database backup solution becomes your knight in shining armor.

## The Solution 💡

Introducing [DatabaseBackup.dev](https://databasebackup.dev) – a game-changing, low-cost product designed to streamline database backups for both companies and individuals dealing with MySQL and PostgreSQL databases. Our platform empowers users to effortlessly configure their preferred storage provider – whether it's S3, Google Cloud Storage, Google Drive, or SFTP – and schedule daily, weekly, or monthly backups with just a few clicks.

But we didn't stop there. We understand the importance of user experience, which is why we've invested considerable effort into crafting a sleek, user-friendly interface. Our goal? To deliver a product that's not only simple and affordable but also just works, every single time.

![DatabaseBackup.dev Interface](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfuycyd40jqq6ky46t82.png)

Curious about our development journey? Dive into the behind-the-scenes action in this enlightening [Twitter thread](https://twitter.com/gregorip02/status/1769554269198311638).

## Security and Storage 🔐

Security is paramount when it comes to handling sensitive data. That's why we've left no stone unturned in ensuring the utmost protection for your information. Our platform leverages advanced encryption techniques, utilizing OpenSSL with AES-256 and AES-128 encryption algorithms, to securely store your database and storage provider credentials. With DatabaseBackup.dev, you can rest easy knowing that your data is in safe hands.

## Conclusion

In the ever-evolving digital landscape, a proactive approach to data management is non-negotiable. As the old adage goes, it's better to be safe than sorry. Don't wait until disaster strikes – take charge of your data's destiny today with DatabaseBackup.dev.

Ready to experience peace of mind like never before? Sign up for our free version, allowing you to add a database and storage provider of your choice. Trust us, your future self will thank you. Create an account now at [DatabaseBackup.dev](https://databasebackup.dev).
How the `.then()` method interacts with the JavaScript event loop.
Tags: promises, javascript, then, resolve
Published: 2024-03-30 16:28:35





## Async via Web APIs

Why do we need them? So that we can have non-blocking operations. We have our code and javascript executes synchronously so what if we need to fetch some data on a remote server. Execution stops until the data is fetched. That is hardly efficient. We rely on the Javascript environment that gives us Web APIs to make async non-blocking operations possible. One popular option to do this fetching of data and no block the main thread is via Fetch API. But what actually happens underneath.

## Promises

To understand what happens underneath, I will use a more simple API -> setTimeout in conjunction with Promise, since the same process is relevant for any other Web API. We rely on setTimeout to extract the callback we pass into it from the call stack (main thread) so as to not block it until some moment in the future (with setTimeout we know the minimum amount of time this moment will expire in).

Consider the following example for any future reference:

```
new Promise((resolve) => {
    setTimeout(()=>resolve('Done!'), 100);
})
    .then(result => console.log(result))
```

The function we pass into the setTimeout is actually the resolve of a Promise. So, in effect, we want the promise to be resolved after the setTimeout is executed (meaning being extracted from the main thread, set as a macroTask, await the clearing up of the main thread and finally re-introduced and executed in the main thread). To truly understand Promises, you have to understand the connection between resolve and .then().


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

## [[PromiseFulfillReactions]]

Promises in JavaScript represent an eventual completion (or failure) of an asynchronous operation and its resulting value. The `[[PromiseFulfillReactions]]` and `[[PromiseRejectReactions]]` are internal properties of a Promise that hold the functions (handlers) to be executed when the Promise is fulfilled or rejected.


The [[PromiseFulfillReactions]] has among others a PromiseReaction field with [[Handelers]], meaning what we put in the .then(). This field gets triggered when the promise is fulfilled. When does the promise get fulfilled -> when the acync operation that was in the task Queue gets pack in the call stack and is executed.

So basically, we have an async operation (setTimeout), that async operation has the resolve of the Promise. When the async operation gets back into the call stack and gets executed, the resolve of the promise gets executed.
Namely, the Promise becomes fulfilled and it triggers the PromiseFullfillReaction Handler (which is the code inside .then()). result => console.log(result) is set onto the microTask Queue until the call stack is free and when it is free, it finally gets the actual parameter 'Done!' applied to be executed.
3-Tier WEB Application: A Simple Blueprint for my Application on AWS
Published: 2024-03-30 16:25:29

In today's digital landscape, building robust and scalable applications is crucial. For my latest project, I opted for a 3-tier architecture on AWS, and I'm excited to share the details with you! This architecture offers a clean separation of concerns, making the application easier to maintain, secure, and ultimately, more efficient.
###What is a 3-Tier Architecture?
Imagine a well-oiled machine with three distinct parts working together seamlessly. That's the essence of a 3-tier architecture. Here's a breakdown of the tiers in my AWS implementation:
- Presentation Tier: This is the frontline, handling user interactions. It can be a web application, a mobile app, or even a desktop application. In my case, [insert details about your presentation tier -  web application built with React, mobile app built with Kotlin, etc.].
- Application Tier (Business Logic Tier): The brains behind the operation! This tier processes user requests, performs calculations, and interacts with the data tier. Here, I'm leveraging [mention your choice of service - EC2 instances running Node.js, a serverless architecture with AWS Lambda functions, etc.].
- Data Tier:  The heart of the application, storing all the crucial information.  For my project, I opted for [mention your database service - Amazon RDS for a relational database like MySQL, MariaDB, Postgres].

###Benefits Galore!
This 3-tier architecture with AWS has brought several advantages to my application:
- Scalability: The ability to handle increasing user traffic without breaking a sweat.
- Security: Built-in AWS features and robust security groups ensure a strong defense.
- Maintainability: Clean separation of tiers makes it easier to manage and update different parts of the application.
- Cost-Effectiveness: Auto Scaling and efficient resource management help optimize costs.

###Conclusion
Building a 3-tier architecture on AWS has been a rewarding experience. It empowers my application to be robust, secure, and ready to scale as needed. This approach not only simplifies development but also paves the way for future enhancements.
Feel free to share your experiences with 3-tier architectures or AWS deployments in the comments below! Let's get the conversation going!
Middlewares = Magic? 3 Reasons Every Dev Should Adopt This Magic! ✨🔥
Tags: webdev, javascript, beginners, programming
Published: 2024-03-30 16:21:42

## 🤔 aNaLoGy

Imagine you're throwing a big party and want everything to go smoothly.

You want your guests to dress right and feel great but can't check on everyone by yourself.

So, you ask some friends to help out. They stand at the door; check invites, and make sure everyone fits the code and all, before they get in.

This way, you only deal with guests who are all set to party.

On websites, there's something similar called "middleware."

**Middleware checks before a request from a user reaches the server.**

**Middleware allows for the secure transmission of data from one point to the other.**

This helps keep the web app well-organized and running smoothly.

Middleware is key in building web apps because it makes the app **more secure and fast**.

It's used a lot in creating websites with tools like Express.js for Node.js, helping with different tasks to make sure everything runs well.

![Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rx6aaqj83flxx396fil6.png)
<figcaption>https://www.geeksforgeeks.org/what-are-the-two-broad-classes-of-middleware-in-client-server-environment/</figcaption>

***

## 3️⃣ Reasons To Use Middlewares

- It **separates tasks** like authentication, logging, and error handling, so developers can focus on building specific features.

- Allows developers to **reuse code** across different projects. Instead of rewriting the same functionalities, they can tend to save time and effort.

- Middleware acts as a **bridge for different components**, modules, or systems within a software application. It provides a standardized way for these components to communicate with each other.

***

## 📚 Final Thoughts

Learn more about them here:

- https://www.redhat.com/en/topics/middleware/what-is-middleware (RedHat - Article)

- https://azure.microsoft.com/en-us/resources/cloud-computing-dictionary/what-is-middleware (Microsoft Azure - Article)

- https://youtu.be/1oWPUpMheGk (IBM - Video)

- https://www.youtube.com/watch?v=lY6icfhap2o (Web Dev Simplified: Express.js - Video)

- https://www.youtube.com/watch?v=xrvul-JrKFI (Codevolution: Next.js - Video)

Comment your thoughts about this tech!

Okay, that's it for today!

Connect with me @ [Linktree](https://linktr.ee/arjuncodess/).

Happy Coding! 🚀
Thanks for 25998! 🤗
Differnce between import , export , export default in React
Published: 2024-03-30 16:01:00

In React (and in JavaScript/ECMAScript modules in general), import, export, and export default are used for modularizing code and managing dependencies. Here's a brief explanation of each:

Import: The import statement is used to import functionalities (variables, functions, classes, etc.) from other modules into the current module. It allows you to use the exported members of other modules within the current module. You can import specific named exports or import the entire module.

Example of importing a named export:

> import { Component } from 'react';
Example of importing the entire module:


> import React from 'react';
Export: The export statement is used to export functionalities (variables, functions, classes, etc.) from a module, making them available for other modules to import. There are two main types of exports:

Named Exports: You can export variables, functions, classes, etc., using the export keyword followed by the name of the item being exported.
Default Exports: You can export a single value or functionality as the default export using the export default syntax. Each module can have only one default export.
Example of named export:


> export const myFunction = () => { /* function code */ };
Example of default export:

> const myComponent = () => { /* component code */ };

> export default myComponent;
Export Default: The export default statement is used to export a single value or functionality as the default export from a module. When you import a module that has a default export, you can choose any name for the default import.

Example of exporting a default component:


> const MyComponent = () => { /* component code */ };
> export default MyComponent;
Example of importing a default export:



> import MyComponent from './MyComponent';
In summary, import is used to bring in functionality from other modules, export is used to make functionalities available for other modules to import, and export default is used to export a single value or functionality as the default export from a module.