teleren/devto huggingface dataset:
Tips for applying for jobs without experience
Published: 2023-07-27 21:45:00

Here are some additional tips to help you apply for jobs if you have limited work experience:

Know your motivation
Without demonstrated experience on the job, employers may want to know more about why you're interested in a specific career. During your job search, be as specific as you can in explaining why you're determined to work in this field. You may talk about a personal connection to the work or a moment that inspired you to pursue this career. You can also discuss your long-term career goals on your resume, in your cover letter and during an interview.

Related: How To Answer "What Are Your Long-Term Career Goals?"
Be consistent
Be consistent in your efforts when applying for new jobs. Create a schedule for yourself and set goals for your job search, such as sending a certain number of applications each week. Track the applications you send and follow up with companies to inquire about interviews. This dedication can help you earn job interviews and potentially get your first job.

Related: The Essential Job Search Guide (With Tips, Links and More)
Introduction
Published: 2023-07-27 21:41:40

If you're beginning your career, changing positions or transferring to a new industry, you may feel limited by a lack of experience. Fortunately, there are many ways you can emphasize your relevant skills and develop new ones to be successful in a new position. By implementing some thoughtful strategies, you can show employers you're the right candidate for a job, regardless of your level of experience.

In this article, we discuss eight ways to get a job with no experience and offer tips to help you gain confidence in your job search and become a stronger candidate.
TypeScript: Not Always the Answer
Tags: typescript, jsdoc, javascript
Published: 2023-07-27 21:03:28

JavaScript is a versatile and dynamic programming language that allows developers to build a wide range of applications. However, its dynamic nature can sometimes lead to errors and bugs that are challenging to detect during development. To address this, developers often turn to type annotations to provide clarity and ensure code correctness. Two popular approaches for adding type annotations to JavaScript code are JSDoc and TypeScript.

### Understanding JSDoc
JSDoc is a comment syntax that can be used to annotate JavaScript code with type information. JSDoc annotations are not enforced by the JavaScript compiler, but they can be used by linters and IDEs to provide static type checking. 
JSDoc annotations are written in the form of @tag, where the tag specifies the type or purpose of the annotated element. For example: 
```JS
/**
 * @type {string}
 */
const randomestring = "42";
```
JSDoc also supports more complex type annotations, such as custom objects, arrays, and function signatures.
```JS
/**
 * @typedef {Object} Foo
 * @property {string} bar
 * @property {number} nda
 */

/**
 * @type {Foo[]}
 */
const randomObj = [
  { bar: "the answer to life, universe and everything", nda: 42 },
  { bar: "random string", nda: 25 }
];

/**
 * @param {Foo} obj
 * @returns {string}
 */
function randomFunction(obj) {
  return `${obj[0].bar} is ${obj[0].nda}.`;
}
```

### Understanding TypeScript
TypeScript is JavaScript on steroids, adding optional static typing and other powerful features to the language. It allows developers to write a more strict form of JavaScript that helps write less error-prone code. 

> TypeScript needs to be compiled before it can be executed. 

```TS
interface Foo {
  bar: string;
  nda: number;
}

const randomObj: Foo[] = [
  { bar: "the answer to life, universe and everything", nda: 42 },
  { bar: "random string", nda: 25 }
];

function randomFunction(obj: Foo): string {
  return `${obj[0].bar} is ${obj[0].nda}.`;
}

```
### JSDoc vs. TypeScript: Choosing the Right Approach

- Scenario #1 If you are using a framework like Next.js or Vue, there is always a build step. Therefore, you can ignore JSDoc and use TypeScript.
- JSDoc is a favorable option over TypeScript in scenarios where faster shipping is crucial due to the absence of compilation steps. Additionally, it proves beneficial when working with third-party JavaScript libraries without TypeScript support, handling small projects or scripts, and when incrementally adding type annotations to existing JavaScript codebases instead of rewriting them in TypeScript.

## useful links
- [Rich Harris (creator of Svelte) talks about Typescript and JSdoc.](https://www.youtube.com/watch?v=MJHO6FSioPI)
Too many tools
Tags: devops
Published: 2023-07-27 20:08:00

I'm feeling a little frustrated with the devops tools. Too many. 
AWS, Azure, Networking, Terraform, Github Actions, Ansible, Fargate, docker compose, Prometheus, Grafana, Redis, Solr, Snyk, you name it.

Isn't there an easiest way to deal with everything without having to jump back and forward, the context changes between tools bothers me a lot. 

How do you deal with it? What other tools do you use that also are a pain in the ...
React Authentication: Best Practices For Handling Token Securely using HOC.
Tags: javascript, react, webdev, programming
Published: 2023-07-27 19:47:14

There are some edge cases and considerations you might want to address to make the implementation more robust and secure. Here are some additional points to consider:

- **Token Expiration**: Currently, the HOC only checks if the authentication token is present in localStorage. However, most authentication tokens have an expiration time. You should check if the token has expired or if it is still valid before considering the user authenticated. If the token is expired, you might want to redirect the user to the login page.

- **Handling Async Authentication**: If your authentication mechanism involves asynchronous calls (e.g., verifying the token on the server-side), you should handle the asynchronous nature properly. For example, you can show a loading state while the authentication check is being performed.

- **Token Refresh**: If your authentication uses refresh tokens, you might need to implement a token refresh mechanism. When the access token expires, you can use the refresh token to obtain a new access token without requiring the user to log in again.

- **Logout Mechanism**: Implement a proper logout mechanism to clear the authentication token from localStorage when the user logs out.

- **Error Handling**: Handle any errors that might occur during authentication, like network errors, server errors, or issues with the token validation process.

- **Component Re-renders**: Consider how the HOC behaves when the wrapped component re-renders or updates. Ensure that the authentication check is only performed when the component initially mounts and not on every update.

- **Authentication Redundancy**: Check if the wrapped component or its parent components already perform authentication checks. Avoid redundant checks to improve performance and avoid unnecessary redirects.

- **Protecting Sensitive Data**: If you store sensitive data in the authentication token, be mindful of where and how you use it on the client-side. Avoid exposing sensitive information in the React components.

- **Security Best Practices**: Follow security best practices for authentication, like using HTTPS, securing token storage, and protecting against cross-site scripting (XSS) attacks.

- **Testing**: Test the HOC thoroughly to ensure it behaves as expected in different scenarios, including authenticated and unauthenticated states.

I hope u have liked this article any questions related to this I would love to answer those you can find me on [Twitter](https://twitter.com/amangupta_jsx) let’s connect.
📳 Header con busqueda Responsivo
Tags: codepen, css, responsive, javascript
Published: 2023-07-27 19:34:33

<p>Se utilizo toggle para agregar la clase con la funcion de Javascript y habilitar vista responsiva.
NOTE: el color y tamaño de background en menu se habilita al tamaño del viewport-Y del navegador No del DOM.</p>

{% codepen https://codepen.io/Josue-GO/pen/JjeMQNK %}
Insert Date Format to MySQL
Published: 2023-07-27 19:15:35


    public function TglSimpan($tglindo)
    {
        //27-07-2023
        $tgl     =  substr($tglindo,0,2);
        $bln    =  substr($tglindo,3,2); 
        $thn     =  substr($tglindo,6,4); 
        return  $thn.'/'.$bln.'/'.$tgl;
    }
create UDF in pyspark to join 2 tables
Tags: pyspark, python
Published: 2023-07-27 19:12:39

Need the help of this community, unfortunately creating udfs is not my strongest skill set.

I need to create UDF that will join two tables together, the problem is that one table has two id columns

Name Table has id1 and id2

Transaction Table has only id

I need to join Transaction table with id table. the constraint is if id2 in name table populated then join with id2 else join with id1

I have tried some things but none of them is 100% correct

Thanks 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gj7ll9qqgl07vkl3m380.JPG)
Things I need to work on...
Published: 2023-07-27 18:35:43

As I finish up the DPI assignments for this week, I realize how important it is for me to organize my work. I think that has been the most difficult part of learning to code. What has also been difficult for me is organizing my tabs while I work on my coding assignments. I have decided to move my work from my laptop to a desktop for extra space. I was starting to get anxiety from all the tabs I was working with...This is something I will continue to work on as I am now realizing it has been one of my weaknesses. I also realize how important it is to commit, I lost my code on the day it was due and I found myself stressing to rewrite it.
What are your favorite coding-related podcasts?
Tags: podcast, beginners, codenewbie
Published: 2023-07-27 18:27:20

Hey hey!

@michaeltharrington has for a long time run a beloved series called [Music Monday](https://dev.to/devteam/music-monday-what-are-you-listening-to-wrestler-entrance-songs-edition-3d29) over here on DEV that is one of my favorite posts of the week! I have always needed a good balance between music and podcasts in my rotation and as I work closely on the [CodeNewbie Podcast](https://www.codenewbie.org/podcast), I have gone super deep down a podcast hole. 

I figured I might use this as an opportunity to ask for coding podcast recommendations from you all, since I know so many of you have podcasts, or are featured on podcasts, or probably also listen to quite a few podcasts too!

**Modeled after Music Monday, drop the things you have been listening to lately and feel free to browse others' suggestions.**

Thanks for entertaining my passions, I'll drop a comment to share what I have been listening to as well because this is one of my favorite things to talk about. Have a great day y'all!

---

_Also, if you're interested in having other discussions about podcasts, check out our #podcast tag!_

{% embed https://dev.to/t/podcast %}

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more discussions and online camaraderie! [Also, check out our podcast!](https://www.codenewbie.org/podcast)

*{% embed* https://dev.to/codenewbieteam *%}*
Connect Four On Your Terminal
Tags: programming, python, gamedev, beginners
Published: 2023-07-27 17:40:24

Using basic class and objects in python I created the connect four game on your terminal. I created this program to cement my understanding of the fundamentals of the programming language of Python.


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


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

A link to my GitHub repository that house the code I used on this project is shown below:

[https://github.com/froglegs1/Python-Connect-Four](url)

Any feedback to better my code would be appreciated, have a good day!
Getting Started with React.js: A Beginner's Guide
Published: 2023-07-27 17:35:34

## Introduction

React.js, a popular JavaScript library developed by Facebook, has become a go-to solution for building user interfaces. This guide will walk you through the basics of getting started with React.js, focusing on the latest version, React 18, as of the time of writing.

## Setting Up Your Environment

Before you can start coding, you need to set up your development environment. Here are the steps:

Install Node.js and npm: React.js requires Node.js and npm (Node Package Manager) to manage dependencies. You can download Node.js from the official website (https://nodejs.org/). npm is included with Node.js.

Install Create React App: Create React App is a command-line tool that helps you create a new React.js application. Install it globally by running npm install -g create-react-app in your terminal.

## Creating Your First React.js Application

With your environment set up, you're ready to create your first React.js application. Follow these steps:

In your terminal, navigate to the directory where you want to create your application.

Run npx create-react-app my-app, replacing "my-app" with the name of your application.

Navigate into your new application's directory with cd my-app.

Start the development server with npm start. Your application will be available at http://localhost:3000.

## Understanding the Basics

A React.js application is made up of components. A component is a reusable piece of code that represents part of your user interface.

Each component is defined in a JavaScript file. For example, your application's main component is defined in App.js.

Components can have state, which is data that can change over time and affect what the component renders.

## Learning Resources

For those who wish to delve deeper into React.js, I recommend the following resources:

The official React.js documentation (https://reactjs.org/)
The React.js section of the MDN Web Docs (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises)
The React.js tutorial on freeCodeCamp (https://www.freecodecamp.org/news/learn-react-js-in-5-minutes-526472d292f4/)

Remember, learning a new technology like React.js is a journey. Take your time, don't rush, and most importantly, enjoy the process.
Game Bắn Cá Đổi Thưởng - Cổng game bắn cá giải trí đổi thưởng ăn tiền uy tín
Tags: gamebanca
Published: 2023-07-27 17:33:07

[Game Bắn Cá](https://gamebancaonline.org/) là một trong những cổng game bắn cá đổi thưởng nhận tiền thưởng quốc tế đã hoạt động tại Đông Nam Á trong nhiều năm.
Website: [https://gamebancaonline.org/](https://gamebancaonline.org/)
Email: Gamebancaonline.org@gmail.com
SDT: 0788973368
Địa Chỉ: 404A Đ. An D. Vương, Phường 4, Quận 5, Thành phố Hồ Chí Minh, Việt Nam
#Bancaoline #Gamebancaonline #Bancadoithuong
"The Technologica Kingdom and the Magic of DevOps: A Lesson in Collaboration".
Published: 2023-07-27 17:31:44

Once upon a time, there was a kingdom, not just any kingdom, but one made entirely of code, bytes, data, and floating clouds, named Technologica Kingdom. This kingdom was ruled by a monarch known as King Binary. One day, King Binary heard of a new kind of magic called DevOps. Although he didn't fully understand what it was, he decided that he must have a DevOps wizard in his court.

King Binary decreed, "Whoever is capable of wielding this new magic called DevOps will be welcomed in my kingdom and rewarded with mountains of bitcoins." However, there was a problem, neither the king nor anyone in the kingdom knew exactly what a DevOps was, so they started to pile all of the kingdom's technological responsibilities onto this mysterious role.

But then, a wise wizard appeared, who resembled Gandalf a lot, although his beard was made of fiber optic and his staff was a magical keyboard. His name was Syntax, the Code Wizard.

"King Binary," Syntax began, "A DevOps is not simply a title or a decorative figure. It's not a varlet that solves all the technological problems of the kingdom. No, my lord, a DevOps is an architect of fluency. They work in the integration between software development and operations, ensuring that everything runs like a magical clock."

But he didn't stop there, and continued: "Similarly, we have DevSecOps, who are like the knights of the kingdom. They ensure the defense of the castle walls, in our case, they are in charge of security in the development process, protecting our codes from external threats."

"On the other hand, IT Support are the healers of our kingdom. They fix problems, resolve doubts, and keep everything running. It's not their task to maintain the walls, build new paths, or defend against invaders, they simply heal what's broken."

"Finally, DataOps are the cartographers of the kingdom. They work with the data, maintaining the information flows, ensuring its quality, availability, and security. They are like the librarians of the Great Data Library."

Upon hearing these words, King Binary burst into laughter. "So, I've been looking for a superhero instead of a team." The entire room burst into laughter.

From that day on, Technologica Kingdom began recruiting the right ones for each role, DevOps, DevSecOps, IT Support, and DataOps, forming a harmonic symphony of teamwork, and thus, blooming in its digital splendor. And of course, King Binary never forgot the important lesson that Syntax taught him, keeping a smile on his face every time he remembered his humorous initial confusion.
Gestiones24 Certificado Digital Persona Física
Published: 2023-07-27 17:21:21

**Gestiones24 Certificado Digital Persona Física:**

Introducción a los certificados digitales
 Los certificados digitales son una herramienta esencial en la era digital. Proporcionamos una forma segura de identificar personas y organizaciones en línea. Mediante el uso de certificados digitales se pueden proteger los datos sensibles y las comunicaciones electrónicas. Los certificados digitales se utilizan en muchos contextos, incluida la autenticación de usuarios, la firma electrónica, la seguridad de la información y la aplicación de la ley.

**¿Qué es un certificado digital?**

Los certificados digitales son documentos electrónicos que contienen información sobre el titular del certificado, como su nombre, dirección, fecha de nacimiento, etc. Nos utilizan para identificar a las personas en Internet y proteger su información. Los certificados digitales se pueden utilizar para firmar documentos electrónicamente, acceder a servicios en línea seguros o enviar correos electrónicos cifrados.

**¿Para qué sirve un certificado digital?**

Los certificados digitales se utilizan para proteger la información y la identidad en línea. Podemos ser utilizados para firmar electrónicamente y enviar correos electrónicos, verificar el estado de una transacción y mucho más. Los certificados digitales se pueden comprar en línea o en las oficinas de correos.

**¿Cómo se obtiene un certificado digital?**

Para obtener un certificado digital, primero debe tener una cuenta de correo electrónico. Luego, ingrese al sitio web del Certificado Digital del Ministerio de Tecnologías de la Información y las Comunicaciones (MIC) y haga clic en el botón 

"Crear Certificado Digital".

En la siguiente pantalla, ingrese su dirección de correo electrónico y haga clic en el botón "Continuar".

El sistema le enviará un correo electrónico con un enlace para que pueda activar su certificado. Haga clic en el enlace y siga las instrucciones que aparecerán en la pantalla.

Cuando haya terminado, el sistema le pedirá que introduzca su contraseña. Introduzca su contraseña y haga clic en el botón "Continuar".

Finalmente, el sistema te mostrará una pantalla en la que aparecerá el número de tu certificado. Imprima esta pantalla o guarde una copia en su computadora.

**Conclusión:**

Si necesitas obtener un Certificado Digital de Persona Física, Gestiones24 puede ayudarte. Simplemente llámenos y lo configuraremos con el certificado que necesita.

**Para más detalles visítenos:**

**[https://gestiones24.es/](https://gestiones24.es/)**
Kubernetes Metric Server – cannot validate certificate because it doesn’t contain any IP SANs
Tags: kubernetes, api, certmanager, certificate
Published: 2023-07-31 13:29:53

---
title: Kubernetes Metric Server – cannot validate certificate because it doesn’t contain any IP SANs
published: true
date: 2023-07-27 17:09:32 UTC
tags: Kubernetes,API,certmanager,Certificate
canonical_url: https://veducate.co.uk/kubernetes-metric-server-validate-certificate/#utm_source=rss&utm_medium=rss&utm_campaign=kubernetes-metric-server-validate-certificate
---

 **The Issue**

Whilst trying to install the Metric’s server:

```
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
```

so I could use `kubectl top node` for it’s metrics on Node resource useage, I found the pods were not loading, and upon inspection found the following:

```
> kubectl logs -n kube-system metrics-server-6f6cdbf67d-v6sbf 

I0717 12:19:32.132722 1 server.go:187] "Failed probe" probe="metric-storage-ready" err="no metrics to serve"
E0717 12:19:39.159422 1 scraper.go:140] "Failed to scrape node" err="Get \"https://192.168.49.2:10250/metrics/resource\": x509: cannot validate certificate for 192.168.49.2 because it doesn't contain any IP SANs" node="minikube"
```

**The Cause**

The issue here was due to the installation of Cert-Manager and setting up some TLS configurations within the CNI and Self-Signed certificates, the metric’s server wasn’t able to validate the authority of the Kubernetes API

**The Fix**

As this is communication within the cluster, I could simply fix this by telling Metric Server container to trust the insecure certificates from the API using the below  
`kubectl patch` command:

```
kubectl patch deployment metrics-server -n kube-system --type='json' -p='[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--kubelet-insecure-tls"}]'
```

 

Regards

[Follow @Saintdle](https://twitter.com/saintdle)<script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

[Dean Lewis](https://uk.linkedin.com/in/saintdle?trk=profile-badge)

The post [Kubernetes Metric Server – cannot validate certificate because it doesn’t contain any IP SANs](https://veducate.co.uk/kubernetes-metric-server-validate-certificate/) appeared first on [vEducate.co.uk](https://veducate.co.uk).
React localization with i18next and react-i18next libraries
Tags: react, i18next, softwaredevelopment
Published: 2023-07-27 17:00:53

🌐 Don't miss this amazing blog on React localization with i18next and react-i18next libraries! 🚀 Learn how to create multilingual React apps and reach a global audience.

🔍 Understand the importance of localization, how to implement it in React, and discover best practices followed at neeto for localization.

🔗 Read the blog here: https://www.bigbinary.com/blog/react-localization
D4 #100DaysOfOSS
Tags: 100daysofcode, 100daysofoss, opensource, programming
Published: 2023-07-27 16:58:30

D4 #100DaysOfOSS with #saucedopen

Had a good day reviewing PR for the Intro & Pizza-verse projects by saucedopen and the Nextjs project by vercel. It's great to see what others are working on and to help each other out.

#100DaysOfCode #opensauced #nextjs #vercel
📸 Gallery-Flex:Hover
Tags: codepen, css, responsive, web
Published: 2023-07-27 16:49:16

<p>Simple diseño de galeria, donde el principal actor de transiction es flex * 8s 
el diseño puede ajustarse a diferentes resoluciones</p>

{% codepen https://codepen.io/Josue-GO/pen/LYXeKyb %}