teleren/devto huggingface dataset:
A Software Solution Concept For Server Access Control & Host Monitoring
Tags: monitoring, software, docker, rust
Published: 2024-01-20 18:24:01

**Introduction:**
This article explores a software concept for efficient server access, control and host monitoring. Specifically tailored for both Linux and Windows hosts, this solution is ideal for managing servers through API access and a web UI interface (Optional).

In environments where servers run headlessly, resource consumption is a key concern. The software addresses this by providing a lightweight, web-based interface, which is statically served, alongside a robust REST API for comprehensive host management. Whether for routine monitoring or critical management tasks.


**Low-Level Language Choice and Cross-Platform Compatibility:**
The choice of a low-level programming language is key to the software's performance and functionalities. Such
languages allow direct hardware manipulation, leading to optimized resource usage and faster
execution times.
Rust, known for its memory safety features, is an excellent choice. Ensuring that the language and libraries are
compatible with both Linux and Windows platforms is crucial for broader applicability.


**Efficiency and Security:**
 Security features like encrypted communication and robust
authentication protocols are key (SSL, IP whitelisting, etc).
Some implementations are listed below:
1. Multi-factor authentication (MFA) for added security.
Employ role-based access control (RBAC) to manage user permissions, ensuring users have access only to the features necessary for their role.
2. TLS/SSL encryption for all communications between the server and the client, including API calls and data transfer.
This encryption ensures that sensitive data, such as login credentials and server configurations, are not exposed during transit.
3. Configure local and remote access to the internet to prevent exposure to online threats.

The software can act as a secure gateway, managing and filtering internet access for updates or necessary external communications.



**Infrastructure as a Service (IaaS) and API Functionality:**
This embraces the IaaS model, the software can provide an API-first approach, allowing administrators to
manage infrastructure programmatically. This API-driven design simplifies the automation of varieties of host functionality and management offers a customizable user experience. This approach aligns with modern DevOps practices.

**Docker Image and Streamlined Host Integration:**
Docker encapsulation ensures consistent deployment across different environments. The software can
packaged as a Docker image, containing all necessary dependencies. Integration with host systems
is then designed for efficient resource use and seamless network configurations.

**Development**
A basic sample application has been built in Rust and is available on [Github](https://github.com/iNerdStack/web-system-monitoring)

**Conclusion**
This software solution represents a considerable process in server host management, focused on efficiency,
security, and ease of use.
Do not use cloud run
Tags: google, coud
Published: 2024-01-20 18:15:44

[Nextjs on Google cloud run](https://www.frontendeng.dev/blog/34-know-this-before-you-use-cloud-run) is pretty cheap but do not use it for anything other than a small website which you just want to showcase. 

It had high latency, terrible pricing model and overall it is good for small testing purposes and useless for production grade deployments.
ez-bundle – Javascript tool to research JSON keys in a target directory
Tags: javascript, tooling, webdev, programming
Published: 2024-01-20 18:15:16

As a web developer, the task of internationalizing a web application can often lead to the accumulation of large and unwieldy language bundles over time. These bundles, containing key-value pairs representing translated strings, can become outdated or unused as the application evolves.

Have you ever wondered: _Are all JSON keys still being used by my application?_

This **tool** addresses this issue by providing a simple yet effective means to verify whether a specified directory contains all the keys defined in a JSON file provided as input.

It helps ensure that your language bundles are accurate, up-to-date, and efficiently utilized, minimizing the risk of translation errors and inconsistencies.

## How it works

In order to be executed, it needs three things:

- A JSON file containing your bundle of keys to verify
- A target directory where you want to look for the keys in the bundle
- A list of comma-separated file extensions to search for

After the execution, this utility will create an `entries-not-found.txt` file containing the unused keys as shown below:

```
widget.caseDetail.details
widget.caseDetail.identifier
widget.caseDetail.priority
widget.caseDetail.progressBar
...
```
## How to execute it

The following command is necessary: 

```bash
node index.js bundle.json src/ js,ts,html
```

Where _bundle.json_ and _src/_ are examples of arguments passed as input to the script, and _js,ts,html_ is an optional argument, otherwise, the default is **ts,html**.

## Performance

For large bundles, it may take a while, for example:

```
[2023-09-14T10:34:22.663Z] [INFO] Number of keys: 1422
[2023-09-14T10:34:22.666Z] [INFO] Starting process...
[2023-09-14T10:51:52.683Z] [INFO] End process!
```

In an _Angular_ application using the _ngx-translate_ library, with 1422 keys and more than 950 files to scan, it takes about 17 minutes to complete.

Of course, the script could always be improved from a performance point of view. It should be okay as an initial version because I don't expect it to be executed that often 😉

## Constraints

Currently, this tool only works on **Linux** shells because it uses the **grep** command internally. For Windows, you can run it on shells like [git bash](https://git-scm.com/download/win).

## Repository

Here you can find the script, download it, try it or use it for yourself:
{% embed https://github.com/rstanziale/ez-bundle %}
Frontend developer role
Tags: frontend, frontendjobs, javascript
Published: 2024-01-20 18:11:16

**Job Title: Frontend Developer (React/Next.js/Sevlet.js)**

**About Us**
We are a dynamic startup seeking a talented and enthusiastic Frontend Developer to join our team. We are focused on the next big thing in the ecommerce market, specifically related to clothing.

**Responsibilities**
Develop and implement the frontend of our website using React, Next.js, Sevlet.js, or any other JavaScript framework. The choice of the framework is flexible, as long as it can build a stable, speed-optimized, production-level website.

Collaborate with the design and backend teams to ensure seamless integration of user interfaces.

Optimize website performance for speed and responsiveness.

Stay updated with the latest frontend technologies and best practices.

**Requirements**
Strong proficiency in React/Next.js/Sevlet.js or any other JavaScript framework.

Proven experience in building and optimizing frontend websites.

Ability to work independently and collaboratively in a fast-paced startup environment.

No specific degree or background required – we value skills and passion over formal education.

Ideal for college students or women restarting their careers.

Ability to take responsibility on your own, as we are a startup, and sometimes decisions have to be made for the good of the company.

**Compensation**
Initial 6 months: 5% equity in the startup.

Post 6 months: Competitive salary based on revenue generation.

Future: Opportunity for shares, competitive salary, and additional benefits.

**Benefits**
Ownership: Become a key member of the founding team with the opportunity to own shares in the startup.

Learning Opportunities: Continuous learning and growth as you contribute to the development of the company.

Inclusive Culture: We welcome individuals from all backgrounds and experiences.

**Note**
We understand the value of your time and skills. While we cannot provide a salary for the initial 6 months, we believe in compensating your hard work through equity. Rest assured, our commitment is to ensure fair compensation, and as soon as we generate revenue, a competitive salary will be provided. We never endorse working for free and prioritize the well-being and success of our team members. We have a revenue shortage currently, and for this reason, we are not providing a salary for the first 6 months. Join us on this exciting journey, and let's build something great together!

**REACH OUT FOR MORE DETAILS, SHARING YOUR PROJECTS, PORTFOLIO, OR PAST EXPERIENCES ON OUR MAIL: contact.stylester@gmail.com**
Title: Techack Chronicles: A Day of Innovation, Connections, and Code
Tags: techacks, mlh, logitech, 3coder
Published: 2024-01-20 17:45:53

 Subtitle: "Inceptive Exploration"

Enthusiasm radiated through our team as we stepped onto the university grounds for the highly anticipated TechHack event. The objective was crystal clear - immerse ourselves in the realm of technology, connect with fellow tech enthusiasts, and tackle the challenges of the impending hackathon.

Exploring the University Campus and Environment

Our initial foray led us through the expansive university campus, a vast repository of knowledge. The dynamic atmosphere set the stage for what promised to be a stimulating day.

 Registration for Tec Hack: Opening Doors to Innovation

After navigating the campus, we swiftly proceeded to the registration desk—the gateway to Tec Hack. Armed with badges and fervor, we formally became part of an event that attracted tech enthusiasts from diverse backgrounds.

The Grand Opening Ceremony: A Tech Extravaganza

As the sun dipped below the horizon, the grand opening ceremony unfolded. Industry giants such as MLH, Logitech, AMD, Orchus, GitHub, Google Cloud, and more graced the stage, underscoring the significance of the event. Mentors and judges then shared insights from their journeys in the ever-evolving world of technology.



Dinner Break: Nourishing Bodies and Minds

As night approached, a dinner break provided an opportunity to recharge. Amid delectable meals and casual conversations, we struck a balance between self-care and building the teamwork essential for innovation.

### Continuing the Journey: Into the Night

Post-dinner, we returned to our workstations, carrying the day's energy into the night. Coding persisted, punctuated by discussions, problem-solving, and the shared aspiration of creating something extraordinary.

As the inaugural day of Tec Hack concluded, reflections on the experiences commenced. It wasn't merely a hackathon; it was a voyage through technology, mentorship, and collaboration—a day setting the tone for the innovation ahead. The adventure had just begun, and the thrill of discovery lingered, propelling us into the subsequent chapter of the Tec Hack Chronicles.

 Exciting New Blog Alert! 📣

Hey everyone! I just published a brand new blog post on my website and I'm super excited to share it with you all. 🎉

In this blog, I take you on a journey through the highly anticipated Tec Hack event, where we immersed ourselves in the realm of technology and tackled the challenges of a hackathon. 🚀

From exploring the university campus to registering for Tec Hack and attending the grand opening ceremony, this blog covers it all. I even share some amazing pictures and videos from the event that you don't want to miss! 📸🎥

If you're a tech enthusiast like me, this blog is a must-read. So grab a cup of coffee ☕ and head over to my website to check it out. Let's dive into the world of innovation together! 💡

#TechHack #Innovation #TechEnthusiast #Hackathon #TechnologyJourney
Myth: "There is a Best Frontend Framework Out There, and Once I Find It, I Will Live Happily Ever After" 🧐
Tags: javascript, beginners, react, vue
Published: 2024-01-20 17:42:47

Finding the best frontend framework is a **myth**.

That's what I realized after **3+ years** of frontend development experience.

If there were an ultimate one, new frameworks wouldn't pop in so often, and we would all be using the same.

Instead, follow these rules to pick one 👇:

## How to pick a framework depending on your situation:

- **You are a complete newbie 🐣.** At this stage, don't bother with frameworks. Instead, focus on understanding JavaScript fundamentals. Without a strong foundation, mastering any of these frameworks will be challenging.

- **You understand JavaScript deeply 💪.** Great! Build a project using Vanilla JavaScript first, and then replicate it with any of the frameworks you're interested in. This way, you can compare and determine which one you find more comfortable.

- **You are a junior developer looking for a job 🕵️.** Go through the job descriptions and identify the requirements. If most of the jobs you're interested in demand React, then learn React. If they lean towards Vue, pick up Vue, and so on. Simple, isn't it?

- **You just started a job as a junior developer 🎉.** Congrats! Learn the framework your team is using. If they aren't using any, find out the reasons behind it. If there's no clear basis and you believe a framework could benefit the team, talk to them about how to introduce one.

- **You are working on your side hustle 🍳.** Just choose one or stick to Vanilla JS based on your skills and goals.

- **You are self-employed 🤳.** Choose any framework or stick to Vanilla JS. Just be cautious about selecting an overly niche framework, as it could be hard to hire in the future.

- **You dream of an unicorn 🦄.** Fantastic! Choose the most comfortable one or none at all, as your focus should be on validating your ideas.

To sum it up, as a developer, your goal is to build something, and any of these frameworks can help you achieve that. So, don't sweat about finding the perfect one—just choose the one that aligns with your goals and skill level.

---

Thank you for reading this post 🙏.

Leave a comment 📩 to share how you picked a framework.

And Don't forget to Drop a "💖🦄🔥".

If you like articles like this, join my **FREE** newsletter, **[FrontendJoy](https://frontendjoy.substack.com/)**, or find me on [X/Twitter](https://twitter.com/_ndeyefatoudiop).
Deploying Apps to AWS with Terraform - S3 Backend
Tags: tutorial, aws, terraform
Published: 2024-01-20 17:37:25

## 6. Configuring Terraform State with AWS S3 Backend

**Introduction**

This lesson is focused on learning how to persist your Terraform state in an AWS S3 backend. Terraform backends are crucial as they determine how the state is stored, which can be either locally on your disk or remotely in a solution like AWS S3.

**Understanding Terraform Backends**

Terraform backends play a vital role in managing the state of your infrastructure deployment. By default, Terraform stores state files locally, but for more robust solutions, especially in collaborative environments, remote storage options such as AWS S3 are preferred.

**Configuring the AWS S3 Backend**

To configure Terraform to use AWS S3 as a backend, you must modify the Terraform block in your project code. This includes specifying the backend type (in this case, S3), the region, the S3 bucket name, and other necessary configurations. It's important to note that currently, Terraform does not allow interpolation of variables in the backend configuration, though this may change in the future.

**Prerequisites**

Before you begin writing your Terraform code to utilize an S3 backend, you need to have an [S3 bucket ready](https://dev.to/randiakm/deploying-apps-to-aws-with-terraform-create-s3-b76). Ensure that you have the necessary IAM permissions to create, delete, and modify buckets as required for your Terraform project.

**Step-by-Step Guide**

**1. Create an S3 Bucket:** First, create an S3 bucket where Terraform will store its state files.

**2. Write Terraform Configuration:** In your Terraform project, create a backend.tf file and define the backend configuration with details like the S3 bucket name and AWS region.

`backend.tf`

```
terraform {
  required_version = ">= 1.2.0"
  backend "s3" {
    region  = "eu-west-2"
    profile = "default"
    key     = "terraformstatefile"
    bucket  = "terraform-bucket1995"
  }
}

```

**3. Initialize Terraform:** Run terraform init to initialize the backend configuration. This step is crucial as it sets up Terraform to use the specified S3 bucket for state storage.

**4. Format Terraform Code:** Optionally, run `terraform fmt` to format your Terraform code, ensuring consistency and readability.

**5. Init the Terraform Code:** Run, `terraform init`
Casino bez sťahovania
Published: 2024-01-20 17:13:56

Áno, pamätám si dobu, keď ste si museli sťahovať samostatnú aplikáciu, aby ste mohli hrať svoje obľúbené online kasínové hry. Tieto časy sú už vzdialenou minulosťou, plnou technických problémov a bolestivej pomalosti. Dnešné online kasína sa dokážu prispôsobiť takmer všetkým digitálnym zariadeniam, čo poskytuje používateľom pohodlný herný zážitok. Údržba a opravy, ktoré kedysi boli neustálymi úlohami, ovplyvňujúcimi kvalitu hry, sú dnes menej problematické. [https://soglasheniemerov.eu/](https://soglasheniemerov.eu/)

V porovnaní s minulosťou, kedy bola ponuka hier obmedzená, dnešné online kasína ponúkajú širokú škálu možností. Je ťažké si predstaviť súčasné moderné kasína bez pôvodných prototypov online kasín, ktoré položili základy pre ich následný rozvoj. Ako hovorí príslovie, malé kroky vedú k veľkým výsledkom, a to platí aj pre online kasína a technologický pokrok. S nárastom počtu používateľov smartfónov a rýchlosti internetu sa online kasína rýchlo vyvíjajú. Teraz môžete hrať bez potreby sťahovať akýkoľvek softvér na svoje zariadenie.

Ak hľadáte vylepšený zážitok z online kasína, mobilné aplikácie sú ideálnou voľbou. Ich kvalita a široký výber hier prekonávajú kvalitu webových stránok, ktoré vyžadujú stiahnutie, a poskytujú bezkonkurenčný herný zážitok.
📌 What's new in Brainboard?
Tags: cloud, infrastructureascode, design
Published: 2024-01-20 17:00:00

## 🚀 Contextual Smart Autosuggestions

Based on AI, the smart suggestion understands the context of the parameters of the resources and suggests an accurate list of values. It’s also organized into categories for efficient retrieval & selection. This allows you to build faster and avoid back and forth to the documentation.

![Smart Autosuggestions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3901sk6uqsnut3kfwwa0.gif)

## 🎨 Enhanced Node UI - First Look

We've reviewed how you design your cloud infrastructures in Brainboard and revamp our UX:

- Advanced Node Options Bar: Effortlessly access styling features like background color through our redesigned options bar. Located conveniently near your selected node(s), it's now just a click away for seamless customization.

- Versatile Contextual Menu: Right-click to discover a world of possibilities! Our new contextual menu houses all essential actions, from 'open cloud configuration' & 'hiding from code' to 'transforming into data', ensuring every action you need is right at your fingertips.

Stay tuned for our upcoming second iteration, promising even greater ease and flexibility in your Brainboard experience.

![Node UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sxtssohdd8kl5bn026t5.gif)

## 🎁 Recent Product Improvements

- Revamped UI/UX for the ID Card: Experience a fresh, user-friendly interface with the ID card, now featuring a 'stick-to-top' header for easier navigation as you scroll.

- Resource Rotation on Design Canvas: Introducing the ability to rotate resources on the canvas, adding a new dimension to your design capabilities.

- Connector Enhancements: We've implemented 20 significant fixes to our Connectors, ensuring a smoother, more reliable experience.


![Resource Rotation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ynbgc3f2x9omv5ot30a.gif)

Start designing your cloud infrastructures here 👉 https://app.brainboard.co
Defer in Golang
Tags: go
Published: 2024-01-20 16:28:17

In my last [blog](https://dev.to/amitiwary999/recover-from-panic-in-go-5hki) I used defer function and use resolve inside it. defer is one of the important feature of golang. defer statement execute just before the function, in which defer added, returns.

One of the main uses of a **defer** statement is to clean resources like network connection, open files etc. After program is done with these resources then these resources should be closed to avoid program limit exhaustion and the resource wastage. In last [blog](https://dev.to/amitiwary999/recover-from-panic-in-go-5hki) recover is added inside defer function that make sure that if program panic then before exit defer statement execute and recover from panic. Take below code as an example.

```jsx
func TryPanic() {
	defer func() {
		fmt.Println("inside main function first defer")
		recover()
	}()
	fmt.Println("inside main function")
	panic("panic in main")
}
```

The output is

```jsx
inside main function
inside main function first defer
```

This function panic still program doesn’t exit because we have recover inside defer.

Example of free up resource after the use

```jsx
func createFile() error {
	file, err := os.Create("inside-defer.txt")
	defer file.Close()
	if err != nil {
		fmt.Println("failed to create file")
    return err
	}
  _, err = io.WriteString(file, text) 
  if err != nil {
    fmt.Println("failed to write to file")
    return err
  }
 return nil
}
```

Once we are done with the file and before the program exit, it’s important to close the file so that resource can be saved.

We can add multiple defer statement in a function although single defer statement can work. Multiple defer statement can helps to write the readable code where we clean different resource in separate defer statement. The multiple defer statement execute in LIFO order i.e that last defer execute first.
From 'School Dropout' To Software Engineer
Tags: developer, computerscience, psychology, webdev
Published: 2024-01-20 16:21:01

Primary school was like a prison to me,
a tedious and soul-draining journey to nowhere.

In 8th grade, I made a _choice_.
By 9th grade, I took _action_.
**I quit.**

_What's next?_

- Thinking
- Reading
- Community College

I climbed the academic ladder, 
earned some achievements and awards, 
and transferred to a top-tier university.

- 8 Dean's List Awards
- Phi Theta Kappa
- Psi Chi
- Magna Cum Laude

I earned an honors degree in **Psychology** 
while learning **Web Development** on the side.

Ever experience a shift in your passion?
After graduation, I enrolled in **Computer Science**.

One semester covered the foundations,
but the program was padded with filler classes.

🗣️ _"Ain't nobody got time for that!"_

I left behind traditional schooling,
designed my own curriculum,
integrated it with reputable online resources, 
and accelerated my learning.

A few months later — **I accepted an offer!**
And so began my career as a developer!

_The Takeaway?_

**Embrace life's unexpected turns.**
It makes the ride more enjoyable.