tutorial

Detaching an EC2 Instance from Autoscaling – A Practical Example

Detaching an EC2 Instance from Autoscaling – A Practical Example

Autoscaling is a powerful tool in AWS that automatically adjusts the number of EC2 instances based on current traffic. It's ideal for production environments where resource demands can change dynamically. However, in some cases—such as during development testing—having stable and predictable resources is critical. Example: Stable Testing Environment for a Development TeamImagine a company that needs a testing environment for one of its development teams. The main production environment uses autoscaling to automatically adjust the number of EC2 instances according to traffic. However, the developers need a stable environment for their specific tests, which will not be affected by autoscaling…
Read More
Let’s build an AI app – pt. 2

Let’s build an AI app – pt. 2

As AI continues to make headlines, with Mistral releasing their first multi-modal model and OpenAI releasing a “reasoning” model, becoming an AI developer continues to be at the forefront of a lot of people's minds. And for most developers, knowing how to go from nothing to a functional website is the goal, so that’s what I’m here to attempt to teach you. If you’re already developing AI apps, I would love to hear about the tools you’re using, what you’re trying to do, and especially anything you’re struggling with. If you want the quick and dirty of it - here…
Read More
How to Use Shadow DOM and Honeypots to Deter Crawlers

How to Use Shadow DOM and Honeypots to Deter Crawlers

This is a short introduction and demonstration on how we can increase security on forms, especially against crawling, it's noticeable that it's most likely overkill for most applications but very interesting for those who want to understand a bit more about such practices as and how it's possible to undermine them. Disclaimer: This post was inspired by Felippe Regazio, on a late-night coding stream, make sure to give him a follow. Huge thanks. Also, I'm not a senior dev, so please feel free to double-check any information you believe I could've misstated so that we can correct/improve it together. Next.js…
Read More
4 Best Rate Limiting Solutions for Next.js Apps (2024)

4 Best Rate Limiting Solutions for Next.js Apps (2024)

When implementing rate limiting in a Next.js application, there are several effective solutions available. Let's take a comprehensive overview of the best rate limiting options for Next.js: This middleware for Express applications is widely used for managing how many requests a client can make in a given time frame. Integration: You can use it in your Next.js API routes by importing the package and applying it as middleware. Example: import rateLimit from 'express-rate-limit'; const apiLimiter = rateLimit({ windowMs: 15 * 60 * 1000, // 15 minutes max: 100, // limit each IP to 100 requests per windowMs message: 'Too many…
Read More
Provide storage for the public website

Provide storage for the public website

Table of Contents Introduction Types of Storage for Public Websites Key Considerations for Public Website Storage Common Storage Solutions for Public Websites Task Conclusion What is Storage for a public website? The infrastructure and technology needed to store and manage the many kinds of data that a website needs, including HTML files, photos, videos, stylesheets, scripts, and databases, are referred to as storage for a public website. A public website's storage solution makes sure that users may access content quickly, securely, and scalable across the internet. Types of Storage for Public Websites Web Hosting Storage Content Delivery Networks (CDN) Object…
Read More
How to Set Up a Cost-Effective AWS Environment: A Step-by-Step Guide for Startups and Small Businesses.

How to Set Up a Cost-Effective AWS Environment: A Step-by-Step Guide for Startups and Small Businesses.

Every unnecessary cent spent brings your organization one step closer to the end of it's runway, a grueling fundraising round, or even the end of your startup. As a founder, you want to focus on innovation and finding that perfect product-market fit, not worrying about infrastructure or unexpected costs. According to RightScale, small and medium-sized companies overspend by an average of 35% on cloud resources. This equates to $6.4 billion in annualized wasted cost for AWS alone. One way many startups manage costs is by opting to use flexible AWS cloud infrastructure. With this in mind, Here is a how-to…
Read More
What is the Difference Between API and SDK?

What is the Difference Between API and SDK?

In the world of software development, APIs and SDKs are two of the most common terms you’ll encounter. Both are essential tools that help developers build, enhance, and integrate applications more efficiently, but they serve distinct purposes. APIs (Application Programming Interfaces) allow different software systems to communicate with one another, enabling developers to add features or services to their applications without having to build them from the ground up. SDKs (Software Development Kits), on the other hand, provide a complete toolkit that includes libraries, documentation, and tools to create applications for specific platforms. While both APIs and SDKs are crucial…
Read More
End-to-End AWS KMS Encryption and Decryption Tutorial

End-to-End AWS KMS Encryption and Decryption Tutorial

We're excited to share our new tutorial on Keyper. Keyper v0.0.3 now supports AWS (in addition to GCP) for end-to-end data and file encryption and decryption. Whether you're a data engineer, platform engineer, or security analyst, this guide will help you securely manage encryption keys and protect sensitive data in your AWS cloud environment using AWS IAM and KMS in three simple commands. ➡️ Go to the Keyper AWS tutorial now Why Use Keyper and AWS KMS for Data Security? Data security is increasingly important, and encryption is one of the most effective ways to defend against unauthorized access. Keyper…
Read More
Optimizing Laravel Queries: The Right Way to Chunk Data

Optimizing Laravel Queries: The Right Way to Chunk Data

Why Should You Avoid Using chunk? It's better to use chunkById instead of chunk to avoid missing rows during batch updates. Using chunk can shift the offset of subsequent queries after updating rows, causing unprocessed rows to be skipped. For example: Post::where('processed', 0)->chunk(100, function($posts) { foreach($posts as $post) { $post->processed = 1; $post->save(); } }); Enter fullscreen mode Exit fullscreen mode The above code generates the following queries. select * from `posts` where `processed` = 0 limit 100 offset 0 select * from `posts` where `processed` = 0 limit 100 offset 100 ... Enter fullscreen mode Exit fullscreen mode The…
Read More
Types of Machine Learning you must know!

Types of Machine Learning you must know!

There are 4 Major types of Machine Learning Supervised Learning Regression Classification Unsupervised Learning Clustering Dimensionality Reduction Anomaly Detection Association Semi Supervised Learning Reinforcement Learning Lets Explain one by one for a clear idea that what exactly they are about! Supervised Learning If we have a dataset with both input and output, our job is to understand the relationship between them. Then, we can use that understanding to predict the output for new input. This type of learning is called supervised machine learning. Example: Lets take 1000 Students Data. Now the ML model will create a mathematical link between the…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.