teleren/devto huggingface dataset:
Here are some basic Kubernetes commands
Published: 2023-01-20 14:34:48

kubectl get pods - Show a list of all pods in the current namespace.
kubectl get services - Show a list of all services in the current namespace.
kubectl get deployments - Show a list of all deployments in the current namespace.
kubectl describe pod <pod-name> - Show detailed information about a specific pod.
kubectl logs <pod-name> - Show the logs for a specific pod.
kubectl exec -it <pod-name> -- <command> - Execute a command in a running container in a specific pod.
kubectl create -f <file-name.yml> - Create a Kubernetes resource from a YAML file.
kubectl delete -f <file-name.yml> - Delete a Kubernetes resource from a YAML file.
kubectl apply -f <file-name.yml> - Update a Kubernetes resource from a YAML file.
kubectl scale deployment <deployment-name> --replicas=<number> - Scale the replicas of a deployment.
Note: kubectl is the command line client for Kubernetes, this command is used to interact with the Kubernetes cluster.
3D Card Animation Using HTML CSS & JavaScript | CSS Animation | Slide Card | Rotate Animation
Tags: html, css, beginners, tutorial
Published: 2023-01-20 14:33:05

{% youtube dhWG8-Arrzk %}

https://my-store-d97fa0.creator-spring.com/

Hi Guys, today we want to show How To Create a 3D Card Animation Using HTML CSS & JavaScript | CSS Animation | Slide Card | Rotate Animation

Please, if you love it, Support us with Like & Subscribe.🙏🙏❤️❤️

Subscribe Link : 
👉👉 https://shorturl.at/gKWY9

In the comments, you can say what design you want so that we can prepare the video for you.

Download source file from Here : 
https://github.com/soudemy/Loading-An...

Timecodes
0:00 Intro
00:25 Switch Button
05:50 Card Design
13:40 Rotate Animation
15:00 Last Touch

#html #html5 #htmlcss #csc #htmltutorial #htmlcsstutorial #htmlcssjs #tutorial
ChatGPT vs Google? Here's what you need to know!
Tags: gpt3, chatgpt, googlecloud, opensource
Published: 2023-01-20 14:29:12

Google vs ChatGPT? Here’s what you need to know!
Let’s settle this debate once and for all:

ChatGPT from OpenAI is the biggest AI hype of all time. But there’s a great con Google and ChatGPT are both powerful AI technologies, but they are designed for different purposes. Google is known for its search engine, which uses complex algorithms to quickly and accurately provide users with relevant information. ChatGPT, on the other hand, is a language generation model that can be used for tasks such as text completion and conversation simulation.

Myths: There are several myths surrounding the competition between Google and ChatGPT. One such myth is that ChatGPT is a direct competitor to Google’s search engine. However, this is not the case as ChatGPT is a language generation model and Google’s search engine is an information retrieval system.

One of the biggest pros of Google over ChatGPT is that Google has been around for much longer and has a much larger user base. This means that Google has access to more data and can provide more accurate and relevant information. Additionally, Google has a wide range of other AI-powered services like Google Translate, Google Maps, Google Assistant, Google Earth, Google Lens, Nest, etc.

DeepMind’s Chatbot Sparrow, Google may now be seen as a direct competitor to ChatGPT in the market for language generation models. Sparrow, like ChatGPT, is trained with human feedback, which DeepMind claims will make it more helpful, accurate, and safe. Additionally, Sparrow will have access to the internet through Google, allowing it to integrate the latest information into its responses.
…..
Read my detailed article here:
https://asad.blog/google-vs-chatgpt-heres-what-you-need-to-know/
LinkedIn Discussion Thread: https://lnkd.in/g8NFXiGj

#chatgpt #google #chatgptvsgoogle #openai #GPT #learngpt #deepmind #deempmindsparrow #algorithms #ai #data
Debugger = God Mode Activated
Tags: webdev, vscode, devjournal, beginners
Published: 2023-01-20 14:14:41

It's been almost 2 years since I started learning how to code and this whole time I've been logging stuff to the console to check for errors. Why? All I can say is, ignorance is bliss.

The main reason I started striving to break into tech is because of the "constantly improving" mindset it fosters. "There's always a better way" is practically a mantra for me. Saying all that and I never once tried to understand how a debugger worked for any IDE until last week. My instructor at my current bootcamp is _VEHEMENTLY_ against logging stuff to the console as a form of bug hunting. With the patience of a saint, he showed us all repeatedly how to set up the configuration in VSC.

Now? It's beautiful. My instructor will ask if anyone has a problem and if someone does (myself included), they'll speak up, but then just say, "actually, I'm going to run the debugger first". Watching that debugger run line by line feels like reading the Matrix. It's like when Neo started to believe. I look back at these last two years absolutely flummoxed on how I got by with just console logs....
What does CDK Synth do in AWS CDK
Tags: aws, awscdk, iac, cdk
Published: 2023-11-07 08:40:19

---
title: What does CDK Synth do in AWS CDK
published: true
date: 2023-01-20 14:00:42 UTC
tags: #aws #awscdk #iac #cdk
canonical_url: https://blog.mikaeels.com/what-does-cdk-synth-do-in-aws-cdk
---

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

AWS CDK (Cloud Development Kit) is an open-source software development framework that allows developers to define cloud infrastructure in code. One of the key features of the AWS CDK is the ability to use CDK Synth to generate CloudFormation templates from the code.

CDK Synth is a command-line tool that takes the code written in the CDK and converts it into a CloudFormation template. This allows developers to easily manage their cloud infrastructure as code, making it easier to version control, test, and automate deployments.

To use CDK Synth, you first need to have the AWS CDK installed on your machine. Once you have the CDK installed, you can use the "cdk synth" command to generate a CloudFormation template from your CDK code.

For example, let's say you have a CDK code that creates an S3 bucket. The code would look something like this:

```
import * as cdk from 'aws-cdk-lib';
import * as s3 from 'aws-cdk-lib/aws-s3';

export class MyStack extends cdk.Stack {
    constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
        super(scope, id, props);

        new s3.Bucket(this, 'my-bucket');
    }
}

```

To generate the CloudFormation template for this code, you would run the following command:

```
cdk synth

```

This would generate a CloudFormation template that creates an S3 bucket. The template would look something like this:

```
{
    "Resources": {
        "my-bucket": {
            "Type": "AWS::S3::Bucket"
        }
    }
}

```

This is a simple example of what CDK Synth can do, but it can be used for much more complex infrastructure as well. For example, you can use CDK Synth to generate a CloudFormation template for a multi-tier application that includes an S3 bucket, an Elastic Beanstalk environment, and an RDS database.

In conclusion, CDK Synth is a powerful tool that allows developers to manage their cloud infrastructure as code. By using CDK Synth, developers can easily version control, test, and automate deployments of their cloud infrastructure. With the use of CDK Synth, developers can easily create and manage their cloud resources.
Being a Developer Advocate: Week 18
Tags: devrel, learninpublic
Published: 2023-01-20 13:59:51

This week was a wild ride. It consisted of focusing on documentation again which led to some major refactorings along the way.

Then we had a wholesome and interactive virtual coffee meet with the wonderful [KarenTestsStuff](https://www.youtube.com/@KarenTestsStuff)([here is the Meetup](https://www.meetup.com/automation-advocates/) if you want to join us some time).

Right after the meetup I noticed my Twitter account got permanently suspended, which was a real bummer with no chance to appeal as the mailserver of Twitter Support broke down 😥. Any help is appreciated to get it back...

And I tried out Github Codespaces and Stackblitz out of curiosity.

## Docs Again
With our goal for the next two and a half months to improve our onboarding drastically, we looked again at our docs.

We found several issues and solutions:
* Too many clicks to even get to the _Getting Started_-Page -> Remove everything before it and link straight to it.
* Our terminology is all over the place having several terms for the same thing -> Create a menu item _Terminology_ to get a clear understanding (I learned something there, too 😂)
* Rework the whole structure, so a user can follow along a given path. Before it was all mixed up.
* Add a _Start_-page where you can choose between two paths to trying out our product and local installation.

## Trying out Github Codespaces and Stackblitz

First impressions of Github Codespaces:
* Easy to start directly from your Repository without any configuration
* With blazingly fast startup times for default containers (they are prebuilt I believe)
* Feels like Gitpod
* If you use a customized container the startup times are the same as with Gitpod

First impressions of [Stackblitz](https://stackblitz.com):
* The startup times are in the seconds
* Webassembly based, thus running completely in your browser
* Stripped down operating system

Maybe I will try out Stackblitz for my personal blog as it feels really well done 🥳
Authenticated Routes inside <Routes>
Tags: help, react, webdev, routes
Published: 2023-01-20 13:57:10

I am trying to created an Authenticated route(/login and /signup) that will only appear if a user is not logged/signed up into a website.

I am following along with the video [here](https://youtu.be/vzkGTZFjbiE?t=677).

I have set my AuthRoute as such:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bkskf4d7398zem6w6h40.png)

I have added my AuthRoute to App.js like this:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t728qqbqa0kyh0ljknvl.png)

But I get the error: `[AuthRoute] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`

I have tried changing the AuthRoute in App.js to 
`<Route element={<AuthRoute exact path="/signup" authenticated={authenticated} element={<Signup/>} />}/>`

But now I get the error: `No routes matched location "/signup" `
AWS Community Day Pune 2022
Tags: aws, awscommunityday, awscommunity
Published: 2023-01-20 13:54:03


🎉🎉  𝐀𝐖𝐒 𝐂𝐨𝐦𝐦𝐮𝐧𝐢𝐭𝐲 𝐃𝐚𝐲 𝐏𝐮𝐧𝐞 2022 🎉 🎉




> “The greatness of a community is most accurately measured by the dedicated actions of its members.”


With the continuous flow of overwhelming reviews and feedbacks on LinkedIn, Twitter, and Emails about AWS User Group Pune and AWS community day Pune 2022, I could really feel this greatness and I am feeling 😇 lucky to be a part of leading  team and 🤩 proud of my team behind this grandly successful event with around 600+ happy participants.


𝑰 𝒉𝒐𝒑𝒆 𝒚𝒐𝒖 𝒂𝒍𝒍 𝒉𝒂𝒅 𝒂 𝒈𝒓𝒆𝒂𝒕 𝒕𝒊𝒎𝒆 𝒂𝒕 𝑨𝑾𝑺 𝑪𝒐𝒎𝒎𝒖𝒏𝒊𝒕𝒚 𝒅𝒂𝒚 𝑷𝒖𝒏𝒆 2022, 𝒂𝒏𝒅 𝒚𝒐𝒖 𝒉𝒂𝒅 𝒂𝒏𝒐𝒕𝒉𝒆𝒓 𝒍𝒆𝒗𝒆𝒍 𝒐𝒇 𝒍𝒆𝒂𝒓𝒏𝒊𝒏𝒈 𝒂𝒏𝒅 𝒏𝒆𝒕𝒘𝒐𝒓𝒌𝒊𝒏𝒈 🤝  𝒆𝒙𝒑𝒆𝒓𝒊𝒆𝒏𝒄𝒆! 



Planning for an event where we expected 550+ participants is not at all easy!, But the past experiences with ACD Pune 2020, passion and willingness about community, and with strong foundational mentorship and leadership support from Toshal Khawale, along with the forthright contribution from our core team members Dheeraj Choudhary, Somesh Srivastava Atul Kumbhar Akshay Ithape Anshul Upadhyay and others, we could plan and execute pre-event and event day activities, by overcoming many hurdles with the real hard team work and few sleepless nights! Post-event activities and success celebrations 🎊 🎂  are still going on! 🤗 

 

> 𝘓𝘦𝘵 𝘮𝘦 𝘵𝘢𝘬𝘦 𝘵𝘩𝘪𝘴 𝘮𝘰𝘮𝘦𝘯𝘵 𝘵𝘰 𝘵𝘩𝘢𝘯𝘬 𝘵𝘩𝘦 𝘸𝘩𝘰𝘭𝘦 𝘵𝘦𝘢𝘮, V𝘰𝘭𝘶𝘯𝘵𝘦𝘦𝘳𝘴, 𝘚𝘱𝘰𝘯𝘴𝘰𝘳𝘴, 𝘚𝘱𝘦𝘢𝘬𝘦𝘳𝘴, S𝘶𝘱𝘱𝘰𝘳𝘵𝘦𝘳𝘴, V𝘦𝘯𝘥𝘰𝘳𝘴, 𝘢𝘭𝘭 𝘰𝘵𝘩𝘦𝘳 𝘴𝘵𝘳𝘰𝘯𝘨 𝘱𝘪𝘭𝘭𝘢𝘳𝘴 𝘢𝘯𝘥 𝘢𝘭𝘭 𝘵𝘩𝘦 𝘶𝘯𝘴𝘶𝘯𝘨 𝘩𝘦𝘳𝘰’𝘴 𝘣𝘦𝘩𝘪𝘯𝘥 𝘵𝘩𝘪𝘴 𝘨𝘳𝘦𝘢𝘵 𝘦𝘷𝘦𝘯𝘵. 𝘛𝘰𝘨𝘦𝘵𝘩𝘦𝘳 𝘸𝘦 𝘳𝘢𝘪𝘴𝘦𝘥 𝘵𝘩𝘦 𝘣𝘢𝘳 𝘢𝘨𝘢𝘪𝘯 𝘵𝘰 𝘮𝘢𝘬𝘦 𝘵𝘩𝘪𝘴 𝘢 𝘣𝘦𝘴𝘵 𝘦𝘷𝘦𝘯𝘵. 🙌 


**It wouldn't have been possible without the constant support from Shafraz Rahim 🌤 Farrah Campbell Ridhima Kapoor Rohini Gaonkar Jason Dunn Karissa Fuller and AWS User Group India Team! Thanks 🙏 **





💪Thanks to AWS UG Pune community and its 9000+ members for all the support and love ❤️. 

Let's make it bigger and stronger by continuing to contribute and share knowledge, and expanding our network with like-minded great people! 🤝 



_The 🗾 Roadmap for 2023 🗓  is set, planned with many exciting meetups, workshops and sessions and we shall ensure the members benefit whomever they associate with. Let's build more with Amazon Web Services (AWS) ☁ !_

👋 See you all at the next meetup! Follow and Keep watching the posts from AWS User Group Pune page for updates!





#acdpune2022 #aws #awscloud #awsugpune #awsugindia #awscommunity #awsusergroups #awscommunityday #awscommunitybuilders #awsheroes #aws #serverless #awscommunity #awscertified #awscloud #aws #cloudcomputing #awscommunitybuilders #awsdeveloper #awsdevops #devops #share #thankyou #tech #pune #community #india #awsusergroup #awsusergroups #team #success
My First Post:
Tags: beginners, blog, firstpost
Published: 2023-01-20 13:51:23


![My First Blog](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/szbyxb5t5jju7tqldgmr.jpg)

Hi everyone, My name is **Chandana**. Two years ago, I thought of starting a blog but, I was doubting myself. 

 

_> “Can I even write?”_

Then, after seeing many blog posts, I just realized, I just have to start. Nothing has to be perfect the way we think it should be. Last year, I also joined as a Content Writer Intern to improve my writing skills. This experience gave me the confidence for writing my own blog. 

So, I am a Computer Science graduate and a Statistics post-graduate. I’m currently **working as a Software Engineer** in one of the top MNCs in India. I work with the language Java and its framework Spring Boot. I also have deep knowledge of Python, HTML, CSS, and SQL. I’m also interested in learning about Data, Data Science, and Statistics.

It is a short and sweet introduction about me.
map() - how processing iterable without a loop
Tags: python, pylls
Published: 2023-01-16 13:03:47

---
title: map() - how processing iterable without a loop
published: true
description: let's talk about map()
tags: #python #pylls
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-01-15 12:13 +0000
---
It is common to have to work with list or iterable by manipulating the values of their elements. Usually, this is done by using a for loop or a list comprehension but
Python allows the user to do that using a mapping technique via the built-in function _map()_.


The syntax is
```python
map(function, iterable)
```

This function can be useful in a variety of situations, including

 - transforming data
 - performing calculation
 - combining multiple iterables.

Following we'll see some, very, simple examples.

## Transforming data
You can use it to uppercase a string or convert a list of integer in string format into int type.

*Example 1*
```python
def upper_char(char: str):
    return char.upper()

lower_str = 'hello world'
print("".join(map(upper_char, lower_str)))
# 'HELLO WORLD'
```

*Example 2*
```python
input_str = ['1', '2', '3', '4']
input_int = list(map(int, input_str))
print(input_int)
# [1, 2, 3, 4]
```
The last one can be usefull when you have to parse a numeric input read from a file or stdin (standard input). I.e. if you have tried to  solve [AoC](https://adventofcode.com/)  (Adventure of Code) exercises you have to parse a file and convert data from string to int.


## Performing calculation

Calculate the square value for each element of a list of int.

```python
def square(x):
    return x*x

data = [1, 2, 3, 4]
print(list(map(square, data)))
# [1, 4, 9, 16]
```

## Combining multiple iterables

_map()_ can be used to apply a function to corresponding elements of multiple iterables. 
In fact the real syntax is

```python
map(function, iterable, *iterables)
```

As you can see it can accept more than one iterable and in that case, it pass a single item for each iterator to the function in parallel.
For example, you can use _map()_ to add corresponding elements of two lists together, or perform other types of operations on multiple iterables.

```python

def add_elements(x, y):
    return x + y

list_1 = [1, 3, 5, 7]
list_2 = [2, 4, 6, 8]

print(list(map(add_elements, list_1, list_2)))
# [3, 7, 11, 15]
```

If more iterables are passed to _map()_ it stops when the shortest iterable is exhausted.

# Conclusion

In summary, the _map()_ function is a useful tool for manipulating data. By allowing you to apply a function to each element of an iterable, it enables you to make transformations, perform calculations, and combine multiple iterables in a concise and efficient manner. This versatility makes it a valuable tool.
Develop your profile as a web developer
Tags: webdev, beginners, programming, career
Published: 2023-01-20 13:36:06

There are several things you can do to develop your profile as a web developer:

1- Build a portfolio: Create a website that showcases your work and skills as a web developer. This can include examples of websites or web applications you have built, as well as any relevant code samples.

2- Learn new technologies: Keep yourself up-to-date with the latest web development technologies and trends. This will demonstrate to potential employers that you are constantly learning and improving your skills.

3- Get involved in the web development community: Join online forums, attend local meetups, and participate in hackathons to network with other web developers and learn from more experienced professionals.

4- Contribute to open-source projects: Participating in open-source projects is a great way to gain experience and contribute to the web development community.

5-Participate in online coding challenges and hackathon to increase your visibility and showcase your skills

6- Get certified in a specific technology or framework, like React or Angular, to demonstrate your expertise.

7- Start your own blog or create video tutorials, this will help you to share your knowledge and experience with others.

8- Finally, a good LinkedIn profile and Github account can be helpful in showcasing your skills and getting noticed by potential employers.
Making my BETA website design
Published: 2023-06-12 17:13:22

---
title: Making my BETA website design
published: true
date: 2023-01-20 13:26:24 UTC
tags: 
canonical_url: 
---

 **Step 1. Font selection**

To begin this project, I carefully selected two fonts: Playfair Display and Inter, which I felt captured the modern and beautiful aesthetic I desired for the beta redesign.

**Step 2. Prototype in Figma**

After that, I started making a prototype in Figma with a design that was clear, organized, and fast.  
The results were satisfactory, and I liked the design. The prototype website featured my logo in a small font at the top, a header, a description, projects with a Show More button (a significant upgrade from the original website), and a slider with social links (another significant upgrade).

![The resulting figma sketch. Looked quite nice, for me!](https://cdn.hashnode.com/res/hashnode/image/upload/v1673170343260/9de9fe66-327e-48f5-b903-838e69586787.png)

Wow, for me looks nice! Now, the most difficult part: make it work. As usual, I coded everything on [Glitch.com](https://glitch.com/): It's a nice interface, with autosave, and HTTPS domains, and works fast.

After working some time creating the initial preview with Glitch, I got an honestly nice result:

![The HTML+CSS+JS website I made](https://cdn.hashnode.com/res/hashnode/image/upload/v1673188549746/d9ff0f78-bf12-4d77-85ef-2b56608f346d.png)

I was quite happy with the result. [Splide](https://splidejs.com/) worked well with the slider: some small customization and I was good to go.

**Step 3. Make it work**

I added multiple things to actually _make the website work_:

- I added a title animation (the one saying "Howdy"). [Moving letters](https://tobiasahlin.com/moving-letters/) provided some outstanding ones, and were easy to integrate. I decided to go with _#7_. I also added a waving hand APNG from emojipedia.

- I also added a language picker

- I connected my spreadsheet with data to the website ([see this post](https://dev.to/tiagorangel2011/connecting-my-website-with-google-sheets-4ikm-temp-slug-1029404))

- I also added much more features and _I am_ adding more features, so [check out my website](https://tiagorangel.com/)!
É possível se destacar com Javascript em poucos meses?
Tags: javascript, career, beginners, programming
Published: 2023-01-20 13:20:25

## Introdução
A programação é uma área em constante evolução, onde novos frameworks e tecnologias surgem a todo momento. Muitas pessoas passam de curso em curso na tentativa de se atualizar e se destacar como desenvolvedores, mas acabam se frustrando por não conseguir escalar seus projetos e aplicar as técnicas aprendidas na prática.
Para construir projetos robustos, flexíveis e escaláveis, é necessário dominar uma stack de tecnologias específicas e aplicar conceitos avançados como lógica de programação, conceitos de banco de dados, orientação a objetos, protocolos de comunicação e arquitetura de sistemas. 
É importante também aplicar esses conhecimentos na construção de aplicações complexas e na arquitetura de sistemas divididos em camadas, evitando acoplamentos e facilitando a manutenção a longo prazo.

## Tá mas...E o Javascript?

Se você está buscando se destacar como desenvolvedor Javascript, é importante entender que não existe uma fórmula mágica para alcançar esse objetivo em poucos meses. A construção de software de qualidade requer conhecimentos sólidos e habilidades técnicas que vão além dos frameworks populares.

Para alcançar esse objetivo, é preciso seguir alguns passos fundamentais:

Passo 1: Adquirir conhecimentos básicos em lógica de programação, conceitos de banco de dados, protocolos de comunicação e desenvolvimento web (HTML, CSS e Javascript). Essas habilidades são fundamentais para construir projetos sólidos e robustos.

Passo 2: Aplicar esses conhecimentos na construção de aplicações complexas que envolvam a implementação de regras de negócios. Isso é o que realmente faz um sistema de software ser útil e gerar ou economizar dinheiro.
Passo 3: Arquitetar sistemas divididos em camadas, com limites bem definidos entre a camada de dados, a camada de regras de negócios e a camada de interface gráfica. Isso evita acoplamentos indesejados e torna o sistema mais fácil de manter a longo prazo.

Se você quer ser um programador foda, precisa estar ciente de que é uma jornada longa e desafiadora. Não é fácil, e requer constante estudo e atualização. As habilidades técnicas e complementares são fundamentais para o sucesso. Não pegue atalhos, e especialize-se em algo que você ama, como front-end. Existem muitos cursos bons no mercado, mas é importante escolher com cuidado.

Se você está buscando seguir esses passos e alcançar o sucesso como desenvolvedor Javascript, o bootcamp CrazyStack pode ser uma excelente opção para você. 
Ele ensina esses conceitos avançados através da construção de uma aplicação completa de um sistema de agendamentos online.
Esse bootcamp foi criado para ajudar pessoas a elevar seu conhecimento e habilidades como desenvolvedores, e possibilita a construção de projetos robustos, flexíveis e escaláveis.
Além disso, ele oferece um desconto exclusivo de 55% para os primeiros inscritos utilizando o cupom JANEIRODOIDO válido até 31 de Janeiro.