teleren/devto huggingface dataset:
AWS Network Connectivity Options
Tags: aws
Published: 2024-06-21 16:42:34

🚀 Exciting News! 🚀

I am thrilled to announce that I have achieved my AWS certification! 🎉 After months of hard work and dedication, I am now certified with this certificate. This accomplishment signifies my commitment to mastering AWS services and best practices, enhancing my skills in cloud computing and infrastructure management.

I am grateful for the support of my colleagues, mentors, and the invaluable resources provided by AWS. This journey has been incredibly rewarding, and I look forward to applying my knowledge to deliver innovative solutions and contribute effectively to our projects.

Thank you all for your encouragement and belief in my abilities. Let's continue to strive for excellence together!
Weekly Updates - June 21, 2024
Tags: couchbase, community, learning, appdev
Published: 2024-06-21 16:34:44

Hi everyone! :wave: 
We hope you had a great week. 

- 👏 **Exciting updates for Developers!** - The CouchbaseVSCode Extension now supports GitHub Codespaces, Google Project IDX, and other remote development environments! [*Learn more here >>*](https://www.couchbase.com/blog/couchbase-vscode-remote-development-environments/)
<br> 


- :book: **New Blog: Building Modern Apps with Couchbase in Q1** - We recently celebrated a successful quarter and some accomplishments we had. We want to share some customer highlights with you! [*Read about our first quarter and some of our customers here >>*](https://www.couchbase.com/blog/building-modern-apps-couchbase-q1-fy25/)
<br>

- 💻 **Level up your career with Couchbase!** We're searching for talent to join our global teams across engineering, sales, marketing, and more! [*Explore our various job openings here >>*](https://www.couchbase.com/careers/open-positions/)
<br>


- :mortar_board: **Free 90-minutes hands-on course for developers coming to a time zone near you!** Check out our FREE hands-on course for Developers. In just 90 minutes with a dedicated instructor, you'll learn everything you need to get started with Couchbase Capella and kick off your Couchbase certification journey. [*Find a course that suits your time zone here >>*](https://www.couchbase.com/couchbase-capella-test-drive/?utm_campaign=adaptive-apps&utm_medium=event&utm_source=meetup&utm_content=webinar&utm_term=developer)

Have a great weekend!

Team Couchbase
AWS Networking Gateways
Tags: aws
Published: 2024-06-21 16:33:14

🚀 Exciting News! 🚀

I'm thrilled to announce that I've achieved AWS certification! 🎉

After months of dedicated learning and hard work, I am now officially certified with this certificate. This journey has been incredibly rewarding, and I'm looking forward to leveraging this knowledge to drive innovation and efficiency in cloud computing.

A huge thank you to everyone who supported me along the way. Your encouragement and guidance meant the world to me.

Let's continue to push boundaries and explore new possibilities with AWS! 💡
Protecting your Instance with Security Groups
Tags: aws
Published: 2024-06-21 16:32:29

🚀 Exciting News! 🚀

I am thrilled to announce that I have achieved my AWS certification! 🎉 After months of hard work and dedication, I am now certified with this certificate. This accomplishment signifies my commitment to mastering AWS services and best practices, enhancing my skills in cloud computing and infrastructure management.

I am grateful for the support of my colleagues, mentors, and the invaluable resources provided by AWS. This journey has been incredibly rewarding, and I look forward to applying my knowledge to deliver innovative solutions and contribute effectively to our projects.

Thank you all for your encouragement and belief in my abilities. Let's continue to strive for excellence together!
I used react-router but not for routing
Tags: react, javascript, storytelling, performance
Published: 2024-06-21 16:31:57

I was working on my React project, fetching some data using `fetch`, and looking for a good way to do something like this Python code:

```python
"{a} {b}!".format(a = "Hello", b = "World") # == "Hello World!"
```

> 💡 Why not use JavaScript string interpolation, you may ask? I want to put the params elsewhere, not within the string.

So I ~~spent hours doing Regex~~ went code scavenging on Stack Overflow, and I found [this](https://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format). It’s interesting that there is a function named [`formatUnicorn`](https://stackoverflow.com/a/18234317) right on Stack Overflow’s website, which does exactly what I was looking for:

![Stack Overflow's formatUnicorn](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h38wfy9jqfkk7txm6ywg.png)


But I was hesitant to loot the code. I want to keep my code base as strongly typed as possible, and modifying the String prototype makes me feel insecure. What’s more, I would like to have at least some validation in case someone else forgot to pass in `a` and/or `b`. Implementing that seems beyond my scope of work, and installing another library is overkill. I was staring at the import section (just to make sure that I don’t import so much 3rd party stuff to keep our SPA app startup fast since FCP is crucial to our business), and that’s when I saw `react-router` import…

React Router lets you register routes with params like this:
```js
path: "teams/:teamId",
```
So they must have implemented that “unicorn format” somewhere. I skimmed over their exports hoping that they would expose that unicorn function so I could use it, and thankfully they did:
![import { generatePath } from "react-router";](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ar1103vfjnsr5q79px7.png)

And the function is unicornly strong typed:
![IDE code completion and type checking for params](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tpc2ue511kqf3dk25l8q.png)

> 💡 Did you expect that TypeScript can infer substrings as types like above? I didn’t!

### The moral of the story

Sometimes, installing one more library may not be necessary because what you need is already (unexpectedly) available elsewhere within your project. Bundling too many libraries can greatly affect performance if it is crucial to your business.

I hope my story was inspiring!
AWS Network - Monitoring and Troubleshooting
Tags: aws
Published: 2024-06-21 16:22:17

🚀 Exciting News! 🚀

I'm thrilled to announce that I've achieved AWS certification! 🎉

After months of dedicated learning and hard work, I am now officially certified with this certificate. This journey has been incredibly rewarding, and I'm looking forward to leveraging this knowledge to drive innovation and efficiency in cloud computing.

A huge thank you to everyone who supported me along the way. Your encouragement and guidance meant the world to me.

Let's continue to push boundaries and explore new possibilities with AWS! 💡
Amazon RDS Service Primer
Tags: aws
Published: 2024-06-21 16:21:32

🚀 Exciting News! 🚀

I am thrilled to announce that I have achieved my AWS certification! 🎉 After months of hard work and dedication, I am now certified with this certificate. This accomplishment signifies my commitment to mastering AWS services and best practices, enhancing my skills in cloud computing and infrastructure management.

I am grateful for the support of my colleagues, mentors, and the invaluable resources provided by AWS. This journey has been incredibly rewarding, and I look forward to applying my knowledge to deliver innovative solutions and contribute effectively to our projects.

Thank you all for your encouragement and belief in my abilities. Let's continue to strive for excellence together!
1052. Grumpy Bookstore Owner
Tags: php, leetcode, algorithms, programming
Published: 2024-06-21 16:20:07

1052\. Grumpy Bookstore Owner

Medium

There is a bookstore owner that has a store open for `n` minutes. Every minute, some number of customers enter the store. You are given an integer array `customers` of length n where `customers[i]` is the number of the customer that enters the store at the start of the <code>i<sup>th</sup></code> minute and all those customers leave after the end of that minute.

On some minutes, the bookstore owner is grumpy. You are given a binary array grumpy where `grumpy[i]` is `1` if the bookstore owner is grumpy during the <code>i<sup>th</sup></code> minute, and is `0` otherwise.

When the bookstore owner is grumpy, the customers of that minute are not satisfied, otherwise, they are satisfied.

The bookstore owner knows a secret technique to keep themselves not grumpy for `minutes` consecutive minutes, but can only use it once.

Return _the maximum number of customers that can be satisfied throughout the day_.

**Example 1:**

- **Input:** customers = [1,0,1,2,1,1,7,5], grumpy = [0,1,0,1,0,1,0,1], minutes = 3
- **Output:** 16
- **Explanation:** The bookstore owner keeps themselves not grumpy for the last 3 minutes.

  The maximum number of customers that can be satisfied = 1 + 1 + 1 + 1 + 7 + 5 = 16.

**Example 2:**

- **Input:** customers = [1], grumpy = [0], minutes = 1
- **Output:** 1

**Constraints:**

- <code>n == customers.length == grumpy.length</code>
- <code>1 <= minutes <= n <= 2 * 10<sup>4</sup></code>
- <code>0 <= customers[i] <= 1000</code>
- `grumpy[i]` is either `0` or `1`.


**Solution:**


```
class Solution {

    /**
     * @param Integer[] $customers
     * @param Integer[] $grumpy
     * @param Integer $minutes
     * @return Integer
     */
    function maxSatisfied($customers, $grumpy, $minutes) {
        $satisfied = 0;
        $madeSatisfied = 0;
        $windowSatisfied = 0;

        for ($i = 0; $i < count($customers); ++$i) {
            if ($grumpy[$i] == 0)
                $satisfied += $customers[$i];
            else
                $windowSatisfied += $customers[$i];
            if ($i >= $minutes && $grumpy[$i - $minutes] == 1)
                $windowSatisfied -= $customers[$i - $minutes];
            $madeSatisfied = max($madeSatisfied, $windowSatisfied);
        }

        return $satisfied + $madeSatisfied;
    }
}
```



**Contact Links**

- **[LinkedIn](https://www.linkedin.com/in/arifulhaque/)**
- **[GitHub](https://github.com/mah-shamim)**
AWS Foundations : Cost Management
Tags: aws
Published: 2024-06-21 16:12:50

🚀 Exciting News! 🚀

I'm thrilled to announce that I've achieved AWS certification! 🎉

After months of dedicated learning and hard work, I am now officially certified with this certificate. This journey has been incredibly rewarding, and I'm looking forward to leveraging this knowledge to drive innovation and efficiency in cloud computing.

A huge thank you to everyone who supported me along the way. Your encouragement and guidance meant the world to me.

Let's continue to push boundaries and explore new possibilities with AWS! 💡
📌 Linux ate my ram 📌
Tags: devops, linux, redhat, performance
Published: 2024-06-21 16:10:33


Have you ever checked your Linux system's memory usage and panicked because it seemed like all your RAM was being used? Don't worry your RAM is fine! This video will explain how Linux manages memory, why it looks like your RAM is full, and why you shouldn't be concerned.
{% embed https://youtu.be/M1RqPePwkRw %}

🙋‍♂️ Now the question is, what's Going On?
When you see high memory usage on Linux, it's primarily because of disk caching. Linux uses available memory to cache disk operations, making the system faster and more efficient. This cached memory is borrowed when not needed elsewhere and can be instantly released for applications when required.

🙋‍♂️ The next question is, why does Linux use disk Cache?
Disk caching improves system performance by keeping frequently accessed data in memory. This reduces the time it takes to read data from the disk, making the system more responsive. So what is the downside? It can confuse users into thinking their memory is low, but this isn't true.

🙋‍♂️ Let's understand How Memory is Managed
Linux categorizes memory usage as follows:
✅ Used Memory is the memory actively used by applications.
✅ Free Memory is the one not used at all.
✅ Available Memory is used by the disk cache but can be repurposed for applications instantly.
When you need to understand your system's memory, focus on the "available" memory rather than "free" memory.

🙋‍♂️ Another confusing question is, do You Need More Swap?
Probably not. Disk caching uses idle RAM and returns it to applications as needed. Swap is used when physical RAM is fully utilized. If applications require more memory, the kernel reallocates it from the disk cache, ensuring minimal swap usage.

🙋‍♂️ How to Verify Memory Usage
To accurately check your memory usage, use:
free -m comand
Look at the "available" column to see how much memory is actually available for your applications. This provides a true picture of your memory usage.

🙋‍♂️ The important question is When to Worry.
While disk caching is generally beneficial, there are signs of genuine low memory:
✅ Available memory is nearly zero.
✅ Increasing or fluctuating swap usage.
✅ The o o m killer is active, which can be checked with dmesg.

🏁 to sum up
Understanding how Linux manages memory can alleviate unnecessary worry about your system's performance. Disk caching makes your system faster and more responsive, and the memory used can be reclaimed for applications instantly. Focusing on "available" memory gives you a clearer picture of your system's health.

🖼 Image ref: https://www.linuxatemyram.com/atemyram.png
📚Book link:
https://pratimuniyal.gumroad.com/l/cracking-the-devops-interview
Differences Between Security Groups and NACLs
Tags: aws
Published: 2024-06-21 16:01:46

🚀 Exciting News! 🚀

I am thrilled to announce that I have achieved my AWS certification! 🎉 After months of hard work and dedication, I am now certified with this certificate. This accomplishment signifies my commitment to mastering AWS services and best practices, enhancing my skills in cloud computing and infrastructure management.

I am grateful for the support of my colleagues, mentors, and the invaluable resources provided by AWS. This journey has been incredibly rewarding, and I look forward to applying my knowledge to deliver innovative solutions and contribute effectively to our projects.

Thank you all for your encouragement and belief in my abilities. Let's continue to strive for excellence together!
AWS Storage
Tags: aws
Published: 2024-06-21 15:57:42

🚀 Exciting News! 🚀

I'm thrilled to announce that I've achieved AWS certification! 🎉

After months of dedicated learning and hard work, I am now officially certified with this certificate. This journey has been incredibly rewarding, and I'm looking forward to leveraging this knowledge to drive innovation and efficiency in cloud computing.

A huge thank you to everyone who supported me along the way. Your encouragement and guidance meant the world to me.

Let's continue to push boundaries and explore new possibilities with AWS! 💡
Age of Spagetti Code
Tags: webdev, javascript, beginners
Published: 2024-06-21 15:56:42

I writen this game POC (2015), before I knew about git and js building system, so whole program written in a single JS file 11277 LOC on the final version.

I write not just a code, but the "documentation" also. I found a 1400 LOC single I wrote down my thights, and that part is just a greatest continous "markdown" parts.

Technically this is not just 1 game, but a 2D pixi.js powered CCG and a Three.js powered 3D space station are, where I can even go inside one of spaceship interiour, where is a room with a alien player play this card game around a table.

Suddenly this project ended, when startup ( hired me as graphic designer ) are splited and after finished.

But my coding practice at that time was really simple: I just open my editor: notepad ++, and open program local on browser.

## develop / build process:
> before age of hot reload
- write a code
- ctrl + S : save
- ctrl + R : refresh the browser 

## perfect editor setup:
I using following 3 shortkey to navigate in code at lightning fast:

- alt + left arrow : mark/delete jump point to current line
- alt + up arrow : jump to previous jump point
- alt + down arrow : jump to next jump point

KISS
Day 25 of my progress as a vue dev
Tags: webdev, vue, typescript, tailwindcss
Published: 2024-06-21 15:54:12

**About today**
Today was an interesting one. I ended up wasting half of it because I overslept and then for rest of the half I was extremely productive and I also ended up removing a lot of distractions today which is a good thing I believe to achieve the flow state. I worked on my landing page and I have a few creative ideas to make it a little bit more complex to test out my development skills.

**What's next?**
I will be done with my second landing page tomorrow. I am enjoying this process so far and I would like to continue this for a couple of more reps so I have a few pages to showcase on my github as well as the my portfolio website/landing page I will be working on after this.

**Improvements required**
Currently the pages look a little too generic which is not sitting right with me, so I really want to test out new tings to make them look advanced but not messy.

Wish me luck!
NetDisco
Tags: networking, windows, linux, python
Published: 2024-06-21 15:53:22

## Presentation:

- A versatile app designed for both Windows and Linux platforms. This tool efficiently scans the LAN network, displaying detailed information such as IP addresses, MAC addresses, and host names of devices connected to the same Wi-Fi network as the host PC. Its capability to execute seamlessly across different operating systems enhances user accessibility and provides valuable insights into network connectivity, making it an invaluable tool for both home and professional use.

## Use:

- When you run the app, it initiates a scan of your local LAN network, systematically searching for connected devices. The interface displays ongoing progress as it identifies each device, showcasing detailed information such as IP addresses, MAC addresses, and host names. This real-time visibility into your network environment provides a comprehensive view of all devices connected to the same Wi-Fi network as your PC, ensuring you stay informed about your network's status and security
- **_Captures_**:

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

- If you want to initiates another scann press **Update** button:

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

## Download:
-  You can download the app by pressing [Download](https://github.com/77AXEL/NetDisco/raw/main/NetDisco.exe?download=)
- On Windows, you can launch the executable directly. However, on Linux-based systems, you'll need to use an emulator like Wine to run the application: 

```
wine NetDisco.exe
```

This setup allows the app to function seamlessly across different operating environments, ensuring compatibility and accessibility for users on varying platforms

## URLs:
- You can also view the project on GitHub: [https://github.com/77AXEL/NetDisco/](https://github.com/77AXEL/NetDisco/)
Amazon S3 Cost Optimization
Tags: aws
Published: 2024-06-21 15:50:21

🚀 Exciting News! 🚀

I am thrilled to announce that I have achieved my AWS certification! 🎉 After months of hard work and dedication, I am now certified with this certificate. This accomplishment signifies my commitment to mastering AWS services and best practices, enhancing my skills in cloud computing and infrastructure management.

I am grateful for the support of my colleagues, mentors, and the invaluable resources provided by AWS. This journey has been incredibly rewarding, and I look forward to applying my knowledge to deliver innovative solutions and contribute effectively to our projects.

Thank you all for your encouragement and belief in my abilities. Let's continue to strive for excellence together!
Amazon S3 File Gateway
Tags: aws
Published: 2024-06-21 15:49:22

🚀 Exciting News! 🚀

I'm thrilled to announce that I've achieved AWS certification! 🎉

After months of dedicated learning and hard work, I am now officially certified with this certificate. This journey has been incredibly rewarding, and I'm looking forward to leveraging this knowledge to drive innovation and efficiency in cloud computing.

A huge thank you to everyone who supported me along the way. Your encouragement and guidance meant the world to me.

Let's continue to push boundaries and explore new possibilities with AWS! 💡
How Mobile App Developers can use Wearables?
Tags: wearablle, wearabledevices, development, developers
Published: 2024-06-21 15:49:06

I recently started exploring the intersection of mobile app development and wearable technology, and I'm amazed at the potential these devices hold. Whether it's smartwatches, fitness trackers, or even smart glasses, wearables are becoming an integral part of our daily lives. For developers, especially those diving into [wearable application development](https://www.cubix.co/wearable-app-development), the opportunities are endless.

First off, wearables provide a unique way to enhance user experience. Think about fitness apps that can track your heart rate, steps, and even sleep patterns. This data can be seamlessly integrated into mobile apps, providing users with real-time feedback and personalized insights. For example, a health app could use data from a smartwatch to offer customized workout plans or alert users to irregular heart rates. Developers focusing on visionOS application development can leverage the immersive capabilities of wearables to create even more engaging and interactive experiences.

Moreover, wearables can significantly improve user safety. Features like fall detection and emergency alerts can be lifesaving. Imagine an app that can detect when a user has fallen and immediately alert emergency contacts or services. This not only enhances user safety but also adds a layer of trust and reliability to the app.

From a business perspective, incorporating wearable technology can set your app apart from the competition. It's an exciting way to offer new functionalities and keep users engaged. For instance, integrating wearable data into a visionOS application can create immersive experiences for users, like virtual fitness coaches or interactive training modules, which could be a game-changer in the fitness industry.

However, with all this data being collected, it's crucial to prioritize user privacy and data security. Ensuring that all data is encrypted and securely stored is essential to maintaining user trust. Also, providing clear information about how the data will be used and obtaining user consent can help in building a transparent relationship with your users.

I'm curious, how are you guys planning to integrate wearables into your apps? Have you already started, or are you still exploring the possibilities? Let's share our thoughts and experiences!