teleren/devto huggingface dataset:
🔥 10 Git Commands Every Developer Should Know 👨🏻‍💻
Tags: beginners, opensource, git, codeziper
Published: 2023-08-01 19:11:36


## Git Commands 📢

1.Create a new local repository

```
git init
```

2.List new or unmodified files.

```
git status
```

3.Stage all changed files

```
git add .
```

4.Stage a file

```
git add < File >
```

5.Commit previously staged changes

```
git commit
```

6.Switch to a branch and update

```
git checkout < Branch Name >
```

7.Check the current branch

```
git branch
```

8.Fetch a remote version of a branch and update it locally.

```
git pull < Remote > < Branch Name >
```

9.Push the committed changes to a remote repository.

```
git push < Remote > < Branch Name >
```

10.Merge the specified branch into the current working branch.

```
git merge < Branch Name >
```

---


## Help me out! 💡
If you found this article helpful in providing a concise understanding of **Git commands**, I would greatly appreciate it if you could show your support by giving it a ❤️. Your positive feedback encourages me to create more valuable content.
And feel free to share your thoughts in the comments section below.!! 💬

---

Thank you for your interest!😊
Team [Codeziper](https://codeziper.com/blogs) 🎉
DATA ANALYSIS JOURNEY
Tags: datascience, algorithms, ai
Published: 2023-08-01 18:34:45

In a bustling city, a young analyst named Alex, armed with a passion for numbers, uncovers a hidden talent for data analysis. With a curious mind and a knack for patterns, Alex dives into heaps of raw information, extracting insights that others fail to notice. 
Their unyielding determination and late-night coffee-fueled sessions lead to groundbreaking discoveries, catching the attention of a renowned tech company. 

Alex's journey proves that data analysis isn't just about numbers—it's about unleashing the power of information to shape the future.


Working of data analysis.

Data analysis is the process of examining and interpreting raw data to extract meaningful insights, patterns, and trends. 
It involves using various statistical and computational techniques to transform data into useful information. Through data analysis, businesses and researchers can make informed decisions, identify opportunities, and address challenges. It helps in understanding customer behavior, optimizing processes, and improving performance. 
Data analysis plays a crucial role in fields like finance, healthcare, marketing, and research. 

By organizing, cleaning, and analyzing data, analysts can unveil valuable knowledge that drives innovation and progress in diverse domains.
AWS, Azure, and Google share spotlight on Cloud Day 2023
Tags: aws, cloud, serverless, news
Published: 2023-08-01 18:19:40



The Pacific Northwest National Laboratory (PNNL) Cloud Day, hosted in Richland, WA, USA, showcased an impressive array of technological innovations and real-world applications of #aws #azure #gcp.

PNNL is actively engaged in expediting research through the use of cloud service providers: AWS, Microsoft, and Google.  In order to share what’s possible at PNNL, the laboratory hosts a yearly cloud day which took place in Richland, WA, this July 19, 2023.

The Cloud Day keynote from Kelly Marquardt with NEXTSilicon is a good reminder that hardware and software design for high -performance computing is key to unlocking the future of high -speed computing.  I remember my own computer science training when designing software to work well on hardware was an important part of being an IT Engineer.  The growth of computing during the past 20 years has led to this approach being less of a focus.  When you need to do high -performance computing with exaflops though, the software / hardware integration can be the difference between ho hum compute and revolutionizing computation for researchers.

Cloud Day hosted many vendors including #SPLUNK #Atlassian #Gitlab and #IBM.  Each cloud service provider had a day long track to share workshops, new product releases, and community learning sessions.  The Google EarthWall made an appearance which is a nine monitor system that displays geospatial data supporting research efforts.  Everything from agricultural impact of the war in Ukraine to rainfall impacts on flooding in the USA.  Azure presented on Generative AI integrations and AWS shared a workshop using IOT Core (https://aws.amazon.com/iot-core/) to provide sensor data to a dashboard that can determine wind turbine effectiveness.  Check out the workshop details here:
-	EnergyKit Workshop Public Link: https://catalog.workshops.aws/energykit-workshop/
-	EnergyKit Workshop repository: https://github.com/aws-samples/aws-energy-kit-workshop

Community interest groups named “Birds of a Feather” (BOF) took place in an open “hybrid” circle with a laptop and speaker in the middle showcasing how well PNNL includes its remote attendees.  A great Serverless BOF took place where open discussions on Azure Functions, and AWS Lambda was discussed and debated based on use cases.  A good time was had by all!
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cf0bp7xhdnr9kdahd1gj.jpg)
It is a terrific event and one that brought in over 900 people from across the USA as PNNL brought in a cadre of the remote workforce, vendors, and cloud service provider subject matter experts.  This is a single day event that is part of a larger week -long #Techfest held yearly at PNNL.

PNNL is a research institution funded by the Department of Energy specializing in areas such as national security, nuclear materials, non-proliferation, nuclear fuel life cycle, and energy production.
{% embed https://keprtv.com/amp/news/local/pnnl-hosts-techfest-2023-this-week-in-richland %}
🚀 5 Python One-Liners You Should Know
Tags: python, programming, tutorial
Published: 2023-08-01 17:50:35


## Format JSON

```bash
cat file.json | python -m json.tool
```
The `|` operator is a "pipe" between the two commands, hence the output of `cat` is sent to Python's `json.tool`

## Save a string to a file
```python
print("Hello, World!", file=open('file.txt', 'w')) 
```
The default value of `file` is `sys.out`, which leads it to print to the console.

## Hidden user input
```python
import getpass
 pwd = getpass.getpass("ENTER PASSWORD:" )
```
`getpass` is a built-in Python library

## Validate spellings [EN]

Let's see if the word "hello" is a valid English word. 
```python
if "hello".casefold() in open('/usr/share/dict/words/').read(): return True
```
Most of the unix-based machines have a "words" file in the system that is basically the English dictionary with 200k+ words. We can check if the given word exists in the dictionary to validate the spelling. The name and location of this file might be different for you.

## Start a quick, local server
```python
python -m http.server 8000
```
This starts a local server on port 8000 from the current working directory

_Source: [Snekletter](https://www.pythongasm.com/#snekletter); weekly code nuggets._
Keeping ACF Data When Renaming Fields: An Installable Plugin 🚀
Tags: wordpress, php
Published: 2023-08-01 17:31:56

If you're are a seasoned wordpress developer and have worked with the popular Advanced Custom Fields (ACF) plugin in WordPress, you've probably stumbled upon the unpleasant surprise of losing data after renaming a custom field. It can be a frustrating and challenging situation to resolve. But fret not! I have a solution I want to share with you.

## The Problem 😓

When you rename a field in ACF, the data associated with the previous field name gets lost (unliked to the new field name key). This can cause many headaches, especially if you're working on a large project with numerous custom fields.

## Solution Found 💡

After hours searching online for a solution for this, I found a solution at [WP For The Win](https://wpforthewin.com/update-acf-field-name-without-losing-data/). I took that solution and turned it into an installable WordPress plugin called "ACF Keep My Data." Now, I want to share this plugin with you so you can benefit from it as well.

### Key Features

- **Preserves Data**: Keeps previous values saved in your posts after renaming custom field names.
- **Automation**: Once activated, the plugin will automatically work to keep your data consistent.
- **GPL License**: You can use, modify, and distribute as you wish, but with no warranties.

### Precautions 🚧

Before installing and using this plugin, it's strongly recommended that you make a complete backup of your database. This step can help you recover your data if anything goes wrong. Always test the plugin on a staging site before deploying it on a live site.

Keep in mind this solution have NOT been tested to the full extent of ACF's capabilities.

## Installation 🛠️

1. Download the plugin files.
2. Upload them to your WordPress plugins directory.
3. Download this repo zip and activate the plugin through the 'Plugins' screen in WordPress.

## Conclusion 🎉

"ACF Keep My Data" can be a helpful tool for managing custom field renaming. I invite you to give it a try and share your feedback.

You can find the plugin on [my GitHub repository](https://github.com/slipnox/acf-keep-my-data). If you have any questions or need help, feel free to reach out to me.

I hope this solution helps you as much as it helped me. Until next time!
Where To Learn Java For Android App Development
Published: 2023-08-01 17:24:40


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

In my pursuit of becoming a proficient Android developer, I have undertaken the following tasks and i'd recommend the same for beginners as well.

- Research Android App Development: I will delve into the current trends, best practices, and popular frameworks for Android app development. Understanding the industry will help me stay up-to-date with the latest technologies and demands.

- Learn Java Programming Language: Recognizing that Android apps are primarily developed using Java, I will focus on learning Java programming thoroughly. I will explore various online courses, tutorials, and resources to help me get started on this journey.

- Explore Android Development Tools: To enhance my efficiency and productivity in Android app development, I will familiarize myself with Android Studio, the official Integrated Development Environment (IDE). I will learn its features and how to use it efficiently.

- Set App Development Goals: I will identify specific app ideas and set clear development goals. I will decide whether to build personal projects or work on client-based projects to further my skills.

- Join Developer Communities: I understand the value of networking and learning from experienced developers. Therefore, I will actively engage with Android developer communities both online and offline. I will participate in forums, attend meetups, and join developer groups to gain valuable insights.

- Build a Portfolio: To showcase my capabilities, I will start working on small Android projects that demonstrate my skills. I will create a portfolio website or GitHub repository to display my completed projects.

- Learn about UI/UX Design: As an Android developer, I recognize the significance of user interface (UI) and user experience (UX). Hence, I will study design patterns and practices that enhance the usability of my apps.

- Consider Specialization: I will explore various areas within Android development, such as game development, mobile app security, or IoT integration. Based on my interests, I will consider specializing in a particular domain.

Stay Updated with Android Updates: I will keep a close eye on Android updates and new releases. Google frequently introduces new versions, features, and changes that may impact app development, and I want to remain informed.

Explore Monetization Options: To increase my income through app development, I will explore different monetization strategies, including in-app purchases, advertisements, or subscription models.

By diligently working on these tasks, I am confident that I will progress significantly in my Android app development journey and achieve my goals as an Android developer.
Hello, World! in Rust
Tags: rust, programming
Published: 2023-08-01 17:21:15

Hi devs,
Welcome to my ` Blog-A-Thon `. I just thought of writing a blog a day, for the rest of the month. So, quick decisions. I will write whatever that comes to my mind. The idea is to develop the habit of writing, no matter `how shitty the writing is!`. Please bear with me.

### About Today's work:
I need to connect to clients Virtual Desktop Infrastructure (VDI) for work. Usually, it doesn't work properly and will take some time to respond to our inputs. Today also falls into same category. I just worked for 3hrs(I forgot to mention, I need to be in War Room Call in MS Teams from `9 AM to 7PM`) properly and remaining hours to just frustrate why VDI is slow as hell. I helped my colleagues with some code(Finally, one positive thing). I don't why but I like solving user stories of others than mine(:sick). I am stopping it there. 

### Rust
I am a front-end React Developer. I like  writing JavaScript ( yeah , you heard it right!) but hate when I need to spend so much time messing my code and UI design with CSS ( padding, margin, display, position, font-weight, button:hover). I am longing to switch to backend from so many days. Not only backend but just be  away with CSS for some time, at-least outside the work. So, I made up my mind to learn Rust,, just like that. 

I am using Ubuntu OS and Rust,Cargo were installed almost a year back; 

### Cargo 
Cargo is a package manage they say. I don't know anything completely. As I am from JavaScript world,I assumed it similar to Node Package Manager. Some say it is and I don't know what the other says and don't wanna know for now!!

I am following and may follow this [Rust book](https://doc.rust-lang.org/book/title-page.html) to learn Rust initially.

### Hello, World!
I created the new Rust project with` cargo new project`. It created `project` folder with `Cargo.toml` and `src/main.rs` .

and inside `src/main.rs`, there is already something written inside it. It is
```rust
fn main() {
    println!("Hello, world!");
}
```
I opened the `src/rust.rs` file and closed it again. I didn't any line of code to it. I ran `cargo run`. It compiled and logged `Hello, world!` on the terminal. So, my rust code is just running  cargo commands instead of anything. Yeah, I liked it. Need to see weather I will like it or hate it. 

I started following the second chapter `Guessing Game`, will write about it tomorrow. Its already 10:47PM now, need to wake up early!!! 



I want to code a TO DO app by the end of this week with rust. 




----------------------------------------------------

Aug 1, 2023
10:50 PM
Visakhapatnam
Vasanth Kumar Cheepurupalli
Generate YAML Manifests with Ease! 🚀
Tags: kubernetes, microservices, webdev
Published: 2023-08-01 17:14:52


🚀 Kubernetes Pro Tip: Generate YAML Manifests with Ease! 🚀

Are you tired of manually creating YAML manifests for your Kubernetes pods? Here's a handy trick to make your life easier! 😎

The `kubectl run` command is a powerful tool for deploying containers in Kubernetes. But did you know it can also help you generate YAML manifests effortlessly? 📋

Let's say you want to deploy an Nginx pod. Instead of crafting the YAML file from scratch, you can use the `--dry-run` flag to preview the YAML output without actually creating the pod. Here's how you can do it:

1️⃣ Open your terminal and ensure you have `kubectl` installed.

2️⃣ Use the following command:

```bash
kubectl run nginx --image nginx --dry-run=client -o yaml > pod-definition.yaml
```

3️⃣ Ta-da! You've just generated a YAML manifest named `pod-definition.yaml` for your Nginx pod.

The `--dry-run` flag prevents the pod from being created, and the `-o yaml` flag instructs `kubectl` to output the YAML representation of the resource.

Now, you can easily modify this YAML file to suit your specific needs. Adjust resource limits, add environment variables, or define volume mounts—all without starting from scratch! 🛠️

So, the next time you need to deploy a new pod, save time and effort by using `kubectl run` with `--dry-run` to create your YAML manifests like a pro! 💪

Happy YAML manifesting! 😄🎉
Policies and Permissions in Amazon S3
Tags: aws, awss3, cloudcomputing
Published: 2023-08-01 17:11:58

According to AWS documentation; Amazon Simple Storage Service (Amazon S3) is an object storage service that offers “industry-leading scalability, data availability, security, and performance”. Amazon S3 can store and protect any amount of data for a range of use cases, such as data lakes, websites, mobile applications, and many others.

## Amazon S3 Bucket
Data are kept as objects within buckets using the object storage service Amazon S3. A file and any associated metadata are both considered objects. Every object in Amazon S3 is stored in a bucket. Before you can store data in Amazon S3, you must create a bucket.

Simply create a bucket, give it a name, and choose an AWS Region in order to store your data in Amazon S3. Then, you upload your data as Amazon S3 objects to that bucket. If you want to learn more about creating a bucket on Amazon Simple Storage Service you can visit the documentation page.

## Policies and Permissions
You can control who has access to particular Amazon S3 storage resources using an object called an S3 bucket policy. You can establish permissions for each resource to permit or prohibit a principal’s requested actions (a user or role). You should set a policy granting the necessary permissions to the primary roles of the data forwarder when you create a new Amazon S3 bucket. Following are the elements of a policy:

**Resources** — You can grant or deny rights for the following Amazon S3 resources: buckets, objects, access points, and jobs. The resource is identified by its Amazon Resource Name (ARN) in a policy.

**Actions** — Amazon S3 offers a variety of actions for each resource. By employing action keywords, you can specify which resource operations you’ll approve (or reject).

**Effect** — What will happen when the user requests a particular action — this might either be allow or deny.

**Principal** — the user or account with access to the resources and actions listed in the statement. The user, account, service, or other entity that is granted this permission is the principal in a bucket policy.

**Condition** — Conditions can be added to an Amazon S3 access policy using both AWS-wide and Amazon S3-specific keys.

## Example of AWS S3 Policy and Permissions
You can see the effect, principal, action, and resource parts in the following example bucket policy. That policy grants the s3:GetObject, s3:PutObject, and s3:DeleteObject permissions on the “bucket1” bucket to User1, who is a user in account <Account-ID>.

```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "1",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::Account-ID:user/User1"
            },
            "Action": [
                "s3:GetObject",
                "s3:PutObject",
                "s3:DeleteObject"
            ],
            "Resource": "arn:aws:s3:::bucket1/*"
        }
    ]    
    
}
```
Oops! you cant manage Node versions
Published: 2023-08-01 17:02:40


Avoid hard labor dealing with node version of different projects.
Use NVM to manage different node versions.NVM allows to install different versions depending on the project you working on via CLI.

1: In the [nvm-windows repository Readme](https://github.com/coreybutler/nvm-windows#readme), click on "Download Now!":

![NVM installation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/utxc4gb5676xsgbx9kcb.png)

2: Download and Install .exe file of the latest release.

3: check nvm version.

4: The installation process from above should automatically add the nvm configuration to your profile. If you're using zsh, that would be `~/.zshrc`. If you're using bash, that would be `~/.bash_profile`...or some other profile.

If it doesn't automatically add nvm configuration, you can add it yourself to your profile file:

`export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s"${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"`

5: Reload the shell configuration `source ~/.bashrc`

6: check nvm version: `nvm -v`

Note: 
1: Can use nvm to install and use node versions below commands.

   ```
 nvm install latest - // install latest version
 nvm install vX.Y.Z - // install specific version
 nvm alias default vX.Y.Z - // set default version
 nvm use vA.B.C - // use a specific version

  ```
TypeChat: Eliminating Hallucinations in AI with TypeScript
Tags: typescript, javascript, openai, chatgpt
Published: 2023-08-01 17:00:00

Modern AI systems face a challenge called "hallucinations", where a Large Language Model (LLM) generates made-up responses to prompts. Even **ChatGPT** by OpenAI can experience this issue. ☠️

While it's okay for creative prompts, like "_create a story about flying elephants playing soccer_", we need often need reliable and accurate responses. That's where [Microsoft's TypeChat](https://microsoft.github.io/TypeChat/) comes to the rescue with its schema engineering approach.

Developers can define intent types using simple TypeScript. TypeChat then transforms prompts into JSON payloads matching with your business logic.

With just 5 minutes of setup, you're good to go! Say goodbye to AI hallucinations and welcome reliable and accurate responses with TypeChat:

{% youtube XMoAQSzOlpk %}
Crea una API en minutos con CRUDCRUD
Tags: webdev, api, spanish
Published: 2023-08-01 16:46:02

¿Alguna vez has querido hacer una prueba rápida de un webservice pero no quieres hacer todo el backend?🤔

Puedes ocupar la herramienta de http://crudcrud.com que es una página web que te ayuda a generar una API en minutos de manera fácil y sencilla.

Tienes todas las operaciones básicas como lo son:

- GET: Obtener todos los objetos.
- GET: Obtener un objeto en especifico por ID.
- POST: Crear un objeto, creando persistencia.
- PUT: Actualizar un objeto por ID.
- DELETE: Eliminar un objeto por ID.

Tu puedes crear un objeto con las características que necesitas o emular los datos que sean necesarios para hacer pruebas rápidas. El inconveniente que tiene es que solo dispones de 24 horas de esos recursos antes de que desaparescan.
Unleash the Power of ChatGPT: 5 Irresistible Prompts to Spark Your Creativity and Boost Your Productivity
Tags: chatgpt, programming, promptengineering, javascript
Published: 2023-08-01 16:45:05

**The introduction of powerful language models has transformed our interactions with artificial intelligence.**

ChatGPT stands out as a strong tool that allows developers and creatives to generate human-like writing by using simple suggestions. 

ChatGPT can help you unlock your creativity and boost productivity whether you're a seasoned coder or an aspiring writer. 

In this blog post, we'll look at the top 5 ChatGPT prompts that can spark your creativity and open up new doors.

1. **Explain like I'm a beginner**
Explain [topic] in simple terms. Explain to me as if I'm a
beginner.

2. **Let's make easier for ChatGPT to help you**
I am a content creator, and I am new to using ChatGPT. Can you give me a list of essential ChatGPT prompts that will help content creator get more done and save time.

3. **Brainstorm unique content idea**
Topic: How to go viral on Instagram using AI tools. Come up with unique and innovative content ideas that are unconventional for the topic above.

4. **Enhance your problem-solving skills**
Share a step-by-step systematic approach for solving [ specific problem or challenge]

5. **Create a crash course**
I have 3 days free in a week and 2 months. Make a crash study plan diving into English literature and grammar.

Get information about 3000+ latest AI tools at one place: [AI Toolhouse](https://aitoolhouse.com)

Want more stuff like this sent to your inbox? 

Then don't forgot to subscribe to our FREE newsletter: [Newsletter](http://subscribepage.io/aitoolhouse-newsletter)