teleren/devto huggingface dataset:
How to use Fab Component in Material UI ?
Published: 2024-02-29 18:25:23

Fab stands for Floating Action Button is which appears in front of all screen content, typically as a circular shape with an icon in its center. Material UI for React has this component available for us and it is very easy to integrate. It can be used to turn an option on or off. We can use the Fab Component in ReactJS using the following approach:

**Creating React Application And Installing Module:**
Step 1: Create a React application using the following command:

`npx create-react-app foldername`
Step 2: After creating your project folder i.e. foldername, move to it using the following command:
`cd foldername`
Step 3: After creating the ReactJS application, Install the material-ui modules using the following command:
`npm install @mui/material
npm install @mui/icons-material`

**Project Structure: It will look like the following.**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e2obacqxob6pb7bsage4.png)
Example 1: In this example, we will create a simple application that uses the Fab component to display a floating action button with an icon inside it. Please update the file App.js like below.

Filename: App.js

**Javascript**

```
import { Fab } from '@mui/material'; 
import React from 'react'; 
import EditIcon from '@mui/icons-material/Edit'; 

const App = () => { 

	return ( 
		<div style={{ 
			margin: 'auto', 
			display: 'block', 
			width: 'fit-content'
		}}> 
			<h3>How to use Fab Component in ReactJS?</h3> 
			<Fab color="secondary" aria-label="edit"> 
				<EditIcon /> 
			</Fab> 
		</div> 
	); 
} 

export default App;

```
**Step to Run Application: Run the application using the following command from the root directory of the project:**

`npm start`

Output: Now open your browser and go to http://localhost:3000/, you will see the following output:




![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eeusr90fcwg1d55a1fae.png)
Example 2: In this example, we will create a simple application that uses the Fab component to display various floating action buttons with different sizes. Please update the file App.js like below.


Filename: App.js


**Javascript**

```
import { Fab } from '@mui/material'; 
import React from 'react'; 
import EditIcon from '@mui/icons-material/Edit'; 

const App = () => { 

	return ( 
		<div style={{ 
			margin: 'auto', 
			display: 'block', 
			width: 'fit-content'
		}}> 
			<h3>How to use Fab Component in ReactJS?</h3> 
			<div style={{ display: 'flex', gap: '5px' }}> 
				<Fab size='small' color="secondary"
					aria-label="edit"> 
					<EditIcon /> 
				</Fab> 
				<Fab size='medium' color="secondary"
					aria-label="edit"> 
					<EditIcon /> 
				</Fab> 
				<Fab color="secondary" aria-label="edit"> 
					<EditIcon /> 
				</Fab> 
			</div> 
		</div> 
	); 
} 

export default App;

```
Steps to run the application:

Output:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dtdchzk1ncfxszhx0niw.png)
What is React Developer Tool?
Published: 2024-02-29 18:21:18

React Developer Tools is a Chrome DevTools extension for the React JavaScript library. A very useful tool, if you are working on React.js applications. This extension adds React debugging tools to the Chrome Developer Tools. It helps you to inspect and edit the React component tree that builds the page, and for each component, one can check the props, the state, hooks, etc.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4pfl1u8qkjwo4m4s9269.png)
React Developer tool also helps you to know whether in a particular application React.js has been used or not. It is also available in Firefox.

**How to Add the Extension?**
Follow the link {% https://chromewebstore.google.com/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en  React Developer Tools %}

Click on Add to Chrome.

- The tool has been added to your Chrome.
- Go to the Extensions Tab at the right on the top, click on it. On the dropdown, one can see that the extension has been added.



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

o remove the extension you will have to click on Remove from Chrome.

**Detecting whether the application uses React.js**

Open the application you want to check, now click on the extension tab and then on the React Developer Tools. If the extension remained colorful that means it is built with React.js and if it’s colorless then that means the application hasn’t use React.js


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

**Inspecting and Editing React Components**

On the application, right-click, from the dropdown go to Inspect or type Ctrl+Shift+I. It opens the Chrome DevTools, now on the top bar click on the double arrows, a dropdown shall open like this.

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

Clicking on the Components, the React Component tree will show up.

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

Here, one can inspect, edit the props, the state, understand the structure.

Similarly, clicking on Profiler. 


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

Clicking on profiler will allow you to record performance information.
Serverless APIs with Containers for Complex Workflows | AWS Lambda | CDK: Mastering
Tags: aws, cloudcomputing, learning, programming
Published: 2024-02-29 17:59:09

Serverless APIs represent an approach to building and deploying web APIs without having to manage the underlying server infrastructure.



**Note**: **API** is a set of definitions and protocols for building and integrating application software. 
Types: HTTP API(access token), REST API, WebSocket API. 
**API Gateway** is like an API management tool i.e. essentially a computer software that sits between a client and a collection of backend services.
Build to provide security, scability and highly availability.
**AWS API Gateway** is an AWS service for creating, publishing, maintaning, monitoring REST APIs, HTTP, and WebSocketAPIs
Unlocking Infrastructure Magic with Terraform
Published: 2024-02-29 17:57:10

Welcome to the world of Terraform, your key to unlocking the magic of infrastructure automation. Imagine a wizard's wand that turns your infrastructure dreams into reality with just a few commands. In this guide, we'll take a stroll through the wonders of Terraform, making the complex world of infrastructure management as simple as waving a wand.

**What's Terraform Anyway?**
Terraform is like your superhero for infrastructure – it helps you automate and manage resources effortlessly. Forget complicated setups; Terraform uses a language that's as easy as chatting with a friend. Just tell it what you want, and watch the magic happen!

**Meet HashiCorp Terraform: Your Cloud Conductor**
Picture Terraform as your backstage pass to the cloud. It's an open-source tool that makes cloud infrastructure a breeze. With Terraform, you can script your infrastructure using plain language, making it readable, shareable, and versionable. Say goodbye to complex setups – Terraform is here to simplify your cloud adventures!

**Infrastructure as a Code: The Cool Kid on the Block**
Ever heard of Infrastructure as Code (IaC)? It's like telling your computer what to do using simple code, rather than wrestling with complicated settings. Think of it as the autopilot for your tech world – set it up once, and let it do the heavy lifting.

**Terraform's Playgrounds: What Can You Do?**

Terraform is your all-in-one toolkit for cloud adventures. Need to create cloud resources like storage, networks, or applications? Terraform's got your back. It's like having a superhero sidekick that can handle everything, from managing multiple clouds to collaborating with your tech team.

**Terraform Providers: The Secret Sauce**
Ever wondered how Terraform talks to different clouds and services? Enter Terraform Providers – the behind-the-scenes magic that lets Terraform communicate with various platforms. It's like having a multilingual guide for your cloud journey.

**How Terraform Works Its Magic**
Imagine Terraform as your personal genie for creating and managing infrastructure. You describe what you want, and Terraform goes, "Your wish is my command!" It's a simple yet powerful tool that works across different clouds, making your tech life a whole lot easier.


**Why Choose Terraform? Because It's Your Tech Bestie!**

Terraform is like that trusty friend who can adapt to any situation. Whether you're in the cloud, dealing with data centers, or navigating hybrid environments, Terraform is your go-to companion. It's not just a tool; it's your tech bestie that simplifies and streamlines your infrastructure adventures.

In a nutshell, Terraform is your ticket to a hassle-free, automated infrastructure journey. No more tech headaches – just sit back, relax, and let Terraform do the heavy lifting. Happy coding and may your infrastructure dreams come true!
Demystifying Docker: Simplifying Application Deployment
Published: 2024-02-29 17:41:37

In the realm of modern software development, Docker has emerged as a game-changer. This open-source platform enables developers to containerize their applications, providing a standardized and executable component known as the Dockerfile. This file encapsulates the OS libraries and dependencies required to run the application, ensuring a consistent environment across different systems.

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

**What is Docker?**(Understanding Docker: A Developer's Companion)
Docker, at its core, is a platform that empowers developers to encapsulate their applications within containers. While containers were not a new concept, Docker played a pivotal role in popularizing them. The heart of Docker lies in two key components: the Docker Engine and Docker Hub. The former executes on your local system to run your application, while the latter acts as a cloud service, facilitating the sharing of Docker images globally.

**What is Dockerfile?**(Blueprint for Containerization)

At the heart of Docker lies the Dockerfile, a file written in a Domain Specific Language (DSL) that contains instructions for crafting a Docker image. Think of it as the source code of your image. This file meticulously outlines the processes necessary to swiftly generate an image. When developing your application, creating a Dockerfile is a best practice, as the Docker daemon meticulously executes instructions from top to bottom.

` Dockerfile is the source code of the image`

**What is Docker Image?**(Portable Software Package)

A Docker image is a sophisticated artifact composed of several layers, serving as a lightweight and self-sufficient executable package. It encapsulates all components essential for running a piece of software, encompassing the code, runtime, libraries, environment variables, and configuration files. Essentially, a Docker image ensures consistency and portability, making it an ideal choice for seamless software deployment.
**Docker Editions: Choosing the Right Fit**
Docker offers two editions - Enterprise Edition (EE) and Community Edition (CE). Tailored for different needs, EE caters to businesses and IT teams handling mission-critical production applications. On the other hand, CE suits smaller teams exploring Docker's capabilities. Understanding your project's scale and requirements will guide you in selecting the most suitable Docker edition.


In essence, Docker revolutionizes how developers design, distribute, launch, run, upgrade, and manage containers. It brings a level of standardization and efficiency to the software development lifecycle, making it a go-to tool for modern application deployment. So, whether you're orchestrating complex enterprise applications or just getting started with containerization, Docker has something to offer for everyone in the vast landscape of software development. Happy coding!
Starting a new project
Tags: webdev, javascript
Published: 2024-02-29 17:38:11

## Starting again ...

So I have decided to write again. The idea is to document and keep track of how things are growing with time, it is more of a 
keeping track of things for me. Initially when I was into web hacking, I used to write a lot of writeups for the machines I hacked (on hack the box platform) but I eventually left that and started working as a developer.

I have decided to write again regarding everything I do in tech. So, with that out of the way. lets start with the topic.

### Project

I recently came across the problem of updating the packages in `package.json`, It is quite a challenge when you have so many packages and don't know which packages are out of date so the only solution is to check each package manually.

So, in order to solve this problem I have decided to build a tool to help people see which packages are out of date and what is the latest version of the package.

It is going to be a mainly a frontend application where the user can upload a `package.json` file and the app goes through each package and lets the user see the latest version of the package.


### Next steps ...

The next step is to ACTUALLY build this thing, this is not a big project but more of a useful tool to have around (for some people at least). Even if someone decides to steal this idea, this post is going to be the proof of `I came up with it first`, although if someone has already built something like this, then they could say the same thing about me. Anyways, see you folks around.

_Will think of the name later on_
How to Set Up a Private NPM Registry
Published: 2024-02-29 17:34:12

**1. Description**
Managing and sharing your Node.js packages privately becomes a breeze when you have your own NPM registry. This guide will walk you through the step-by-step process of setting up your private NPM registry, empowering you to maintain control over your packages while ensuring security and convenience.

**2. Prerequisites:**
Before diving into the setup, make sure you have the following prerequisites:
Node.js installed on your machine.
Access to a version control system (e.g., Git).
Basic understanding of the command line.
**3. Describe the Content:**
In this guide, we'll cover:

Setting Up a Basic NPM Registry:
How to initialize and configure your private NPM registry using the 'verdaccio' registry.

Authentication and Authorization:
Securing your registry by implementing authentication and authorization mechanisms.

Integration with Version Control:
Connecting your private registry with a version control system (e.g., Git) for seamless package management.
**4. Features:**
User Management:
Create and manage user accounts for secure access to your private registry.

Package Publishing:
Learn how to publish your Node.js packages to the private registry effortlessly.

Scoped Packages:
Implement scoped packages to organize and categorize your packages effectively.
**5. Examples with Output:**
Setting Up a Basic NPM Registry:

```
# Install verdaccio globally
npm install -g verdaccio

# Initialize verdaccio
verdaccio

# Your private registry is now running at http://localhost:4873/
```
Authentication and Authorization:

```
# Install 'htpasswd' module for user management
npm install -g htpasswd

# Add a new user to the registry
htpasswd -b ./htpasswd <username> <password>
```
Package Publishing:

```
# Navigate to your project directory
cd your-project-directory

# Login to your private registry
npm login --registry=http://localhost:4873/

# Publish your package
npm publish --registry=http://localhost:4873/
```
**6. Reference:**
For further exploration and advanced configurations, refer to the official documentation:

Verdaccio Documentation
NPM CLI Docs - Publish

**Conclusion:**
By following this guide, you've successfully set up your private NPM registry, enhancing your control and security over Node.js packages. Experiment with user management, package publishing, and other features to streamline your package management workflow. Your private registry is now ready to cater to your specific needs, offering a robust and secure environment for your Node.js projects. Happy coding!
Portfolio Website - Devlog #5
Tags: webdev, react, beginners, api
Published: 2024-02-29 17:28:35

**Plan:**
TO use React as frontend (Client side) and Springboot the backend Server, 
Implement Bible Memorization tool (for personal use), when client calls (REST arch) backend, the response returned will have JS Object.

**Accomplished:**
Began work on Projects section with placeholders to add other projects. Added project at ../bible-app with Routes.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kzky5uy7eworm3s6fqvc.png)
Worked with BrowserRouters, Routes in 'react-router-dom'.

Worked with Fetch API to call backend Springboot server, and display verses return dynamically using Tertiary operator.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mutd382zvqrtcab6z0cc.png)
_After clicking:_
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6p85dyhy35a6yo3hj5e3.png)


**Goals for next time:**
Display verses better in /bible-app project.
Add other project (either link Github / PDF).
Create Contact me page.
Final Styling.


Please let me know if you have any ideas regarding this project!

Thank you
Sam
Advice needed
Tags: groovy, jira, programming, career
Published: 2024-02-29 17:23:54

**Hello Everyone!**

I do not know, if this is the appropriate forum or site to ask my questions, but I am a bit lost.

Right now, I am working as a Jira / Atlassian developer at a company, which means, that I am coding quite a lot in Adaptavist Scriptrunner addon's built-in coding features. (Scripted post-functions, scripted listeners, scripted fields etc.)

The language the addon uses is Groovy, which is similar to Java, as some of you might know.
I feel like I am doing well in my job, also I love doing coding during my job.
That is the reason, that in the future I want to step up one level in coding, and **not** be a Jira / Atlassian developer, but work as a normal developer.

During the 2020-2021 pandemic, I was doing quite a lot of frontend coding, so I had a mediocre knowledge in HTML, CSS, SASS, Vanilla JS. I really liked that part, I even managed to recreate a boardgame I had, in plain HTML, CSS, VanillaJS. 
Until the realisation struck, that VanillaJS is not a viable career option anymore. 
I started learning React, then Angular...and they were overwhelming.
I gave some tries to both of them, but I couldn't get the hang of none of them. They were overwhelming, and I am totally unable to understand those frameworks/libraries, and unfortunately, that's a fact. They are not for me.

So, right now, here I am, loving frontend development, not understanding the currently popping frameworks and libraries, and wanting to be a full time "coder"/developer.

And the question here is, what are my options in your opinion?
Any advice is kindly appreciated.

Thanks in advance for your feedback!
Undocumented Gem Incompatibilities with Rails 7.1
Tags: rails
Published: 2024-02-29 17:19:31

TLDR: Use [this script](https://gist.github.com/scpike/680ceb29a9bdff4eafb123986782c5c1) to check whether your app relies on any gems that are silently incompatible with Rails 7.1.

Upgrading Rails means first upgrading other dependencies that block the way. Some of these will have explicit incompatibilities documented in their gemspecs. If you try to run `bundle update rails` without upgrading these gems you'll see an error that bundler couldn't resolve the upgrade.

Other gems leave an open-ended rails requirement in their gemspec. This means bundler will allow a new version of Rails alongside your current version of those gems, but there's no guarantee from the maintainer that the two are compatible. This can lead to subtle bugs that don't get caught until production.

For example, take the popular [`data-migrate`](https://github.com/ilyakatz/data-migrate/blob/v9.2.0/data_migrate.gemspec#L22) gem. Its gemspec requires activerecord >= 6.1 with no upper bound. Looking at the changelog, though, you'll see that support for Rails 7.1 wasn't added until version 9.2.0. Older versions will hit [this exception](https://github.com/ilyakatz/data-migrate/issues/241) when someone tries to run migrations under the latest Rails, even though bundler installs the package with no warning.

These "silent" incompatibilities are often documented in the maintainer’s changelog even though they’re not available to bundler. My startup [Infield](https://www.infield.ai) keeps a database of every ruby package and its changelog, which we parsed to find any mention of adding Rails 7.1 support. Then we filtered those results to only new package versions where bundler would have already allowed Rails 7.1 in the previous version. We found 23 of these:

[Rails 7.1 compatibilities](https://docs.google.com/spreadsheets/d/1EHvzyCLyboiUMdilvg5hpmu8nlygIZ_96lCiHja7gjM/edit#gid=0)

Here’s a [script](https://gist.github.com/scpike/680ceb29a9bdff4eafb123986782c5c1) to check for these in your app - just point it at your Gemfile.lock. 

Hope this is useful!
The Best Social Media Marketing Company In Ambala
Tags: socialmediamarketing
Published: 2024-02-29 17:19:11

Social Media Marketing refers to the use of social media platforms that involves creating and sharing content on social media to boost brand awareness, drive website traffic, and generate leads. The goal is to build an online community and customer base for a brand through social platforms. Done right, social media marketing can help brands reach a wider audience and grow their business.

While other IT companies are stuck on the sidelines, TEEMERS is racing ahead as businesses' digital hype man. They know social media is more than mundane marketing - it's about creating viral value that captivates audiences. With strategic pitstops on Facebook, Twitter, and Instagram, TEEMERS fuels its community with captivating content. They showcase their tech magic with visually-dynamic posts and captions that spark curiosity. Whether it's insider industry tips or shining the spotlight on client success stories, TEEMERS pumps up its partners' brands to help them thrive. In this digital championship, there is no finish line. But with TEEMERS as their strategic teammate, businesses can continue taking the lead lap after lap.

Social media marketing is an ever-changing game that requires commitment and creativity. TEEMERS embraces the challenge, bringing passion and strategic expertise to the table. By leveraging social media's immense power, TEEMERS accelerates their partners' success in the digital landscape. With a top-notch digital teammate like TEEMERS, businesses can confidently level up their online presence and drive transformational growth.

For more info, visit our website : https://teemers.in/
Self Improvement.
Published: 2024-02-29 17:02:45

The person in train turned out to be an angel , He bought some food for me that helped me saving some dollars bill will it be same for me the next few days ,can't say that people now doesn't seems to be that helpful they give it when they get it from somewhere cant judge well.
pretty good for me homeless(maybe a beggar, which i have practically done, it seems like that i am exaggerating well don't have anything else to write.)to write that much of an life fucked para into breezed essay, Got have to think for an idea to generate income or will die in the late night wealth.