teleren/devto huggingface dataset:
Top 5 FREE Resources to Learn Kubernetes in 2022
Tags: kubernetes, containers, raftlabs, shiplikeapro
Published: 2022-03-16 12:39:15

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yowo2sbwcwvwr35mjnwr.png)
Kubernetes is an open-source container orchestration platform used to manage containerized applications at scale. Kubernetes clusters together groups of hosts running containers and helps you quickly and efficiently manage those clusters.

Kubernetes automates many of the manual processes involved in deploying, managing, and scaling containerized applications. It does this by providing a clean separation between components and services and automating container configurations by managing the scheduling, service discovery and load balancing, and resource management.

#### 1\. Introduction to Kubernetes

This course offers an introduction to Kubernetes and includes technical instructions on how to deploy a stand-alone and multi-tier application. Users will learn about ConfigMaps and Secrets and how to use Ingress.

Upon completion, developers will have a solid understanding of the origin, architecture, and building blocks for Kubernetes. They will be able to begin testing the new cloud-native pattern to begin the cloud-native journey.

Created by edX.

[More info](https://www.edx.org/course/introduction-to-kubernetes)

#### 2\. Kubernetes by Example

Kubernetes by Example is coursework that teaches the users everything about Kubernetes using examples. It is very effective as developers can do something in Kubernetes rather than simply reading or watching videos. The site provides videos, write-ups, and code snippets as well.

Created by the KBE team.

[More info](https://www.kubernetesbyexample.com/)

#### 3\. Getting started with Kubernetes

This coursework guides you through Kubernetes basics. The coursework also covers Kubernetes concepts, configuration, and deployment.

Created by Instruct.

[More info](https://play.instruqt.com/public/topics/getting-started-with-kubernetes)

#### 4\. Learn-Kubernetes by interactive browser-based Scenarios

Solve real problems and enhance your skills with browser-based hands-on labs without any downloads or configuration. The site provides 24 real-world scenarios where you can put your skills to work.

Created by Katacoda.

[More info](https://www.katacoda.com/courses/kubernetes)

#### 5\. An ultimate Kubernetes Hands-on labs

It is the advanced Kubernetes tutorial for Beginners, intermediates, and advanced developers. Users will get hands-on experience with problems and get to learn everything they need to know about Kubernetes. The coursework has 1169 stars on GitHub and has been positively reviewed by many.

Created by collabnix.

[More info](https://collabnix.github.io/kubelabs/)

*Originally posted at* [*raftlabs.co*](https://raftlabs.co/development/top-5-free-resources-to-learn-kubernetes?utm_source=devto&utm_campaign=crosspost)
Pilas y Colas
Tags: spanish, tutorial, computerscience, español
Published: 2022-03-16 12:38:25

Si acabas de encontrar esta publicación, antes de continuar te recomiendo que le des un vistazo a los demás artículos de la serie.

---

Las pilas y colas son estructuras de datos lineales, donde existen restricciones para insertar y eliminar elementos. Son casos particulares de la estructura lista, y se pueden implementar mediante vectores o listas enlazadas.

### Operaciones elementales sobre Pilas y Colas
- Insertar: Push -> apilar (Pila), Queue -> encolar (Cola)
- Eliminar: Pop  -> desapilar (Pila),  Dequeue -> desencolar (Cola)

## Pilas
Una Pila o Stack es un caso particular de la lista donde la inserción y eliminación de elementos se realizan solo por un extremo que se denomina cima o tope _(top)_. Funciona exactamente como su nombre lo indica, y con numerosas analogías en la vida real: una pila de libros, una pila de monedas, pila de platos, etc.

Este comportamiento está basado en el principio _"último en entrar, primero en salir"_, también conocido como **LIFO**, por su nombre en inglés _"last-in, first-out"_, que dicta que el primer elemento que fue añadido a la pila será el último en ser removido de la misma.

![Pila](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/39h6f6hguqiecj2915dx.png)

## Colas
Una **Cola o Queue** es un caso particular de la lista donde la inserción y eliminación de elementos se realizan por los extremos de la lista; las eliminaciones se realizan al principio de la lista, o el frente _(front)_ de la misma, y las inserciones se realizan en el otro extremo, el final _(rear)_. Algunas analogías en la vida real:  cola de personas en el banco, cola de vehículos en el semáforo, etc.

Este comportamiento está basado en el principio _"primero en entrar, primero en salir"_, también conocido como **FIFO**, por su nombre en inglés _"first-in, first-out"_, que dicta que el primer elemento que fue añadido a la cola será el primero en ser removido.

![Cola](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j87zynigppdrtql0ymjh.png)

---

¡Gracias por leer!

Ponte en contacto en Twitter [@sZalimben](https://twitter.com/sZalimben), y si te gusta mi contenido puedes realizar una donación *[invitándome un café](https://www.buymeacoffee.com/szalimben)* que me será de mucha ayuda!
Web Tech We Don't Talk About | PHP, JQuery, WordPress and More!
Tags: webdev, podcast
Published: 2022-03-16 12:30:06

{% spotify spotify:episode:2J4oC0yLP0DUQZqQXdr1nz %}

## What is HTML All The Things

HTML All The Things is a [web development podcast](https://www.htmlallthethings.com/) and [discord community](https://discord.com/invite/jweMCx9) which was started by Matt and Mike, developers based in Ontario, Canada. 

The podcast speaks to web development topics as well as running a small business, self-employment and time management. You can join them for both their successes and their struggles as they try to manage expanding their Web Development business without stretching themselves too thin.

## What's This One About?

There is a lot of web tech that isn't talked about in social media or making headlines. Instead, these pieces of tech sit in the background, silently forming the foundation of what we call the internet. Thousands of sites powered by WordPress, web apps built in PHP, jQuery as a dependency, and much more. In this episode Matt and Mike discuss these pieces of tech, what they are, and why they're so important.


## Show Notes

Tech we talked about:
* PHP
* WordPress
* MySQL
* JQuery
* Ruby on Rails
* Angular
* COBOL


## Resources

* [https://2021.stateofjs.com/en-US/](https://2021.stateofjs.com/en-US/)
* [https://www.youtube.com/c/Fireship](https://www.youtube.com/c/Fireship)



## Thank you!

If you're enjoying the podcast consider giving us a review on [Apple Podcasts](https://podcasts.apple.com/us/podcast/html-all-things-web-development-web-design-small-business/id1412209136) or checking out our Patreon to get a shoutout on the podcast. 

**[Support us on Patreon](https://www.patreon.com/htmlallthethings)**


You can find us on all the podcast platforms out there as well as

[Instagram (@htmlallthethings)](https://www.instagram.com/htmlallthethings/)
[Twitter (@htmleverything)](https://twitter.com/htmleverything)
[TikTok (Html All The Things)](https://www.tiktok.com/@htmlallthethings)
Top 20 Valuable Startup in Australia | Australian Startups
Published: 2022-03-16 12:19:35

Many professionals seek something unique and ask themselves, “Now what?” as the economy begins to recover at varied rates across industries.  Australia`s startup industry has grown from a little outpost with little activity to a bustling center of talent and capital in the past few years.  The [Australian startup](https://www.ateamsoftsolutions.com/top-20-valuable-startup-in-australia-australian-startups/) industry has the potential to generate $109 billion in revenue or 4% of the country`s GDP.  According to a poll, in the Startup Genome Ecosystem Index, for example, Sydney is ranked 12th out of 20 cities. 

 Cities like Sydney, Melbourne, and Perth are fast establishing themselves as favored [Australian startup](https://www.ateamsoftsolutions.com/top-20-valuable-startup-in-australia-australian-startups/) centers.  The[ Australian top startup](https://www.ateamsoftsolutions.com/top-20-valuable-startup-in-australia-australian-startups/) market has set the benchmark when it comes to entrepreneurial growth and innovation. 
.
Top 10 Mobile App Development Companies in Australia
Published: 2022-03-16 12:16:12

 [Mobile app development](https://www.ateamsoftsolutions.com/top-10-mobile-app-development-companies-in-australia/) is progressing naturally among its industry, in the market and is turning out to be more famous on the planet.  But before going there, let us provide you with the [top 10 mobile app development](https://www.ateamsoftsolutions.com/top-10-mobile-app-development-companies-in-australia/) companies in Australia and comprehend the reason for its popularity.  Looking for a top 10 Mobile App development company in Australia?
.
Top 10 Mobile App Development Companies in Brisbane 2022
Published: 2022-03-16 12:11:51

With this expansion comes a plethora of options for mobile app developers in Brisbane and engineers to supercharge their apps and provide their consumers with top-tier experiences.  As more consumers choose to purchase online, many businesses are moving towards digital platforms and collaborating with [app developers ](https://www.ateamsoftsolutions.com/top-10-mobile-app-development-companies-in-brisbane-2022/)Brisbane to improve the shopping experience.  In contrast to e-commerce, mobile commerce (or m-commerce) includes online purchases made using a smartphone app rather than web pages or websites.  The key cause for this shortcoming is the failure to detect and integrate the most current [mobile app technological developments](https://www.ateamsoftsolutions.com/top-10-mobile-app-development-companies-in-brisbane-2022/). 

 To help you make the best decision possible, we have compiled a list of the [top 10 mobile app development](https://www.ateamsoftsolutions.com/top-10-mobile-app-development-companies-in-brisbane-2022/) companies in Brisbane. 
.
Top 10 ecommerce development companies in Australia 2022
Published: 2022-03-16 12:07:51

Sortlisting the top [eCommerce development](https://www.ateamsoftsolutions.com/top-10-ecommerce-development-companies-in-australia-2022/) companies in Australia, there are a few factors that should be considered for great business.  As far as the future of the top [eCommerce development companies](https://www.ateamsoftsolutions.com/top-10-ecommerce-development-companies-in-australia-2022/) in Australia in the 21st century, specialists expect promising and great figures.  Accordingly, winning to future patterns, e-commerce will have immense likely development in sales and promotion.  Currently, the web sales blast the establishment for superb eCommerce future. 


.
Setting Up Postman and Automatically Adding Bearer Tokens
Tags: postman, devops, api, node
Published: 2022-03-16 12:03:41

## How to automatically set a Bearer Token for your Postman requests?

Some developers face this small issue which when testing REST APIs they need to fetch and attach bearer tokens to make testing REST APIs every each time when tokens expire. So,  here's the solution to avoid repeating the same process of fetch and attaching bearer tokens all the time. 

All you need to write a few lines of code in the pre-request script in the request collection. In this guide, you will learn how to use a pre-request script to fetch and attach bearer tokens to make testing your REST APIs easier, check below the example.

### This is the authentication API that generates bearer tokens. API [A]


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



### This is the API request that needs to attach the bearer token in it. API [B]


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



### These are a few lines of code you need to write in a pre-request script in the API [B] and you can make a call request without fetching bearer token from API [A] and attach it in API [B].

BASE_URL_NAVITAIRE = the URL and sets as an environment variable
NAVITAIRE_TOKEN = bearer token and sets as an environment variable


```
const baseUrl = pm.environment.get("BASE_URL_NAVITAIRE")

pm.sendRequest({
    url: baseUrl + '/nsk/v1/token',
    method: 'POST',
    header: {
        'content-type': 'application/json'
    },
    body: {
        mode: 'raw',
        raw: JSON.stringify({ 
        "credentials": {
        "username": "TOPWCHCKINSTG",
        "password": "6F6wSzBa*qBD"
    }})
    }
}, (err, res) => pm.environment.set("NAVITAIRE_TOKEN", res.json().data.token));
```


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/huy16dxbgosig2mzafdx.png)
Wednesday Links - Edition 2022-03-16
Tags: java, jvm, architecture, kafka
Published: 2022-03-16 10:11:57

JDK 18 G1/Parallel/Serial GC changes (6 min)🗑️
https://tschatzl.github.io/2022/03/14/jdk18-g1-parallel-gc-changes.html

Java 19 could be big (2 min)🎡
https://www.infoworld.com/article/3652336/java-19-could-be-big.html

How to Stop a Java Thread Without Using Thread.stop()? (3 min)🛑
https://4comprehension.com/how-to-stop-a-java-thread-without-using-thread-stop

Migrations Done Well: Typical Migration Approaches (10 min)🧳
https://blog.pragmaticengineer.com/typical-migration-approaches

What problems does Kafka solve in distributed systems? (13 min)✍🏻
https://blog.softwaremill.com/what-problems-does-kafka-solve-in-distributed-systems-39eafe476383

Lessons learned from previous projects (5 min)🦉
https://blog.frankel.ch/lessons-learned-previous-projects

The Code Review Pyramid (2 min)🔺
https://www.morling.dev/blog/the-code-review-pyramid

Anatomy of a JWT (7 min)🔍
https://fusionauth.io/learn/expert-advice/tokens/anatomy-of-jwt

Rewriting Bash scripts in Go using black box testing (8 min)📜
https://stackoverflow.blog/2022/03/09/rewriting-bash-scripts-in-go-using-black-box-testing

Node.js Reference Architecture (3 min)🏛️
https://github.com/nodeshift/nodejs-reference-architecture

Evaluating Range Predicates (6 min)📐
https://richardstartin.github.io/posts/range-predicates

Gradle 7.4 Introduces Aggregated Test Reports (5 min)🧪
https://www.infoq.com/news/2022/03/gradle-7-4

LogMasker lib (1 min)🥸
https://gitlab.com/pazvanti/logmasker
E/spannablestringbuilder: span_exclusive_exclusive spans cannot have a zero length
Tags: java, android
Published: 2022-03-16 11:56:13

Problem :
I have the below Activity class it contains the following:

public class TestFirstActivity extends Activity { 
public void onFirstCreate(Bundle savedFirstInstanceState) {
    super.onFirstCreate(savedFirstInstanceState);
    setContentView(R.layout.activity_test);   
  }
}
When I try to run this on my mobile device I get the below error:

SpannableStringBuilder
SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
*I have tried the above code with and without the TextView but the error still remains,

I must be doing something fundamentally very wrong for such a basic layout to cause this error.*

Does anyone have any clue on how I can get this to load without the above error?

Solution :
To try to debug your error, first, you should go to your android terminal/console and then execute the below command:

ps | grep THE_ERROR_PID_YOU_GET_(IT_IS_A_NUMBER)
*After this, if the output comes out as your app then certainly it is your app that is causing the error.

Try to look for empty Strings that you have passed into the layout.*

*I had this exact same problem in the past and it was my fault as I was passing the empty String into my then layout.

After changing my "" to " " above error went away.*

Hope this will help you in resolving your issue.
Terminal komandalar | Part 5
Tags: terminal, beginners, uzbek, cpp
Published: 2022-03-16 11:54:27

### `ls` 
- joriy papka ichidagi fayllarni ro'yxatini chop etadi

### `clear` 
- terminal oynasini tozalaydi

### `rm` (remove)
- berilgan faylni o'chiradi

### `rm -r` (remove recursive)
- papkani o'chirish uchun ishlatiladi

### `mkdir {papka_nomi}` 
- **papka_nomi** nomli yangi papka yaratadi

### `g++ main.cpp` 
- _main.cpp_ faylni compile qilib dasturni _a.out_ fayliga saqlaydi

### `g++ main.cpp -o dastur` 
- _main.cpp_ faylni compile qilib natijani dastur nomli faylga saqlaydi

### `g++ main.cpp -o dastur && ./dastur`
- main.cpp nomli faylni kompilatsiya qiladi va birdan ishga tushiradi

### `alias run='g++ main.cpp -o dastur && ./dastur'`
- yuqoridagi komanda uchun **run** degan taxallus beradi. 
- endi shu papkadagi main.cpp faylni kompilatsiya qilib birdan ishga tushirish uchun `run` komandasi kifoya
How to redirect to another page in php on button click?
Tags: php, javascript
Published: 2022-03-16 11:53:21

Problem
I build some kind of interactive menu using PHP, HTML and JavaScript. I need redirect the page on click to some URL. Itried the following code, but it does not work:

<input type="button" value="Start" class="btn btn-primary" id="btnStart" onClick="<?php header("Location: /start.php"); ?>" />
What is wrong with my code?

Solution
The root cause of the issue is, that you are trying to call PHP (server-side) code from JavaScript (the client-side). When JavaScript is acting – PHP (the server-side code) does not exist. It can be called during the server-side page rendering page only. Getting back to the original problem code sample, the statement:

<?php header("Location: /start.php");
will cause a JavaScript error, since it is not a valid JavaScript. What you can do? In case the “Start” button should always redirect to start.php you can redirect the browser to the static URL, like that:

Markup

<button id="btnSart">Start</button>
JavaScript

var btn = document.getElementById('btnStart');
btn.addEventListener('click', function() {
  document.location.href = 'start.php';
});
Another approach will be to use inline JavaScript

<button id="btnSart" onclick=” document.location.href = 'start.php'”>Start</button>
Incase the URL is dynamic – it is up to server to decide what should be the redirect URL, the inline approach will be easier to implement:

<button id="btnSart" onclick=” document.location.href = ‘<?php echo “Start.php”?>’”>Start</button>
This technique called inline PHP, the server will generate the output, the browser will receive the following line:

<button id="btnSart" onclick=” document.location.href = ‘Start.php’”>Start</button>
You can use the inline PHP in the JavaScript section (the first example) as well:

Markup

<button id="btnSart">Start</button>
JavaScript

var btn = document.getElementById('btnStart');
btn.addEventListener('click', function() {
  document.location.href = '<?php echo "Stasrt.php"?>';
});
Tip:
There is a short cut for <?php echo … , you can use <?=’text’?> instead. For example:

<button id="btnSart" onclick="document.location.href = '<?= "Start.php"?>'">Start</button>
So, there are several ways to redirect pages from the client-side, choose the one you like more.
Java Error - at least one public class is required in main file
Tags: java, class, inheritance, public
Published: 2022-03-16 11:52:35

Problem:
Hi there! I have been learning to program for a long time now and I recently learned inheritance in Java. I wrote the following program for practice:

class Institutions {
    public void print_institutions()
    {
        System.out.println("This is an institution");
    }
} 
class School extends Institutions{
    public void print_school()
    {
        System.out.println("This is a school");
    }
}
class Academy extends School {
    public void print_academy()
    {
        System.out.println("This is an academy");
    }
} 
class Call{
     public static void main(String[] args) {
          Institutions institute = new Institutions(); 
          School school = new School();
          Academy academy = new Academy();
          
          institute.print_institutions();
          school.print_school();
          academy.print_academy();
     }
}
When I run this program, the compiler throws the following error:

Error - At least one public class is required in main file
I have never seen this type of error before, therefore,
I have no idea what is causing this error.

Can anybody here please clarify the cause of the error and its solution? Thanks!

Solution:
Your program does not have any issues.
If you try running it on an online compiler, it does not generate any error. But, the solution to this error is quite simple,
as the error itself says that there must be a public class in the main file,

then you must set the access modifier of your "Call" class to the public. Once your "Call" class is public, this error will not be thrown by the compiler.

The other solution to this error,
in general, is to set the name of your file the same as the public class of your program.

For instance, if you have a file named "Test.java" and you have a public class named "Hello", this error will generate in this scenario too. So, try to save your file with the public class’s name.

I hope this will help you
Thanks
Types of Social Media Apps You Should Know About
Tags: socialmediatrends, socialmediaapps
Published: 2022-03-16 11:52:34

With so many [social media marketing](https://externlabs.com/social-media-marketing.php) platforms on the web, it can be difficult to choose the one that works best for your business. Should you be in it all? Do you have the budget and resources needed to operate a few channels? What types of social media sites are relevant to your marketing goals? What kind of social media users are you trying to reach?


Knowing the answers to these questions can help you connect with your nation, grow your audience and your business. That is exactly what we are going to talk about in this list of outstanding types of social media that you should pay attention to in 2022.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vy3v71cdv3ybag1d77xt.png)
Mantiqiy operatorlar | Logical operators
Published: 2022-03-16 11:48:50

> `Binary` operator deb 2ta obyekt qabul qiluvchi operatorlarga aytiladi. *Masalan:* `+` operatori ikkita obyekt ustida ishlatiladi **a** `+` **b**

> `Unary` operator deb 1ta obyekt qabul qiluvchi operatorlarga aytiladi. *Masalan:* `!` operatori 1ta obyekt ustida ishlatiladi **!true**

#### `true` va `false` mantiqiy qiymatlar
- `true` qiymat deb to'g'ri/rost/mavjud qiymatga aytiladi
- ko'p dasturlash tillarida `0` dan tashqari *lyuboy* qiymat `true` bo'ladi
- `false` qiymat deb yolg'on/yo'q qiymatga aytiladi.

> **true** - 6, 123123, -1, 0.1
> **false** - 0

### `AND` - `&&`
- binary
- logik qiymat (true/false) qaytaradi
- ikkila obyektlar *true* qiymatga ega bo'lsa **true** qaytaradi

| A    | B | `&&` |
| ----------- | ----------- | ------- |
| *false*      | *false*   | **false** |
| *true*      | *false*   | **false** |
| *false*      | *true*   | **false** |
| *true*      | *true*   | **true** |


### `OR` - `||`
- binary
- logik qiymat (true/false) qaytaradi
- kamida 1ta obyekti *true* bo'lsa **true** qaytaradi

| A  | B | `OR` |
| ----------- | ----------- | ------- |
| *false*      | *false*   | **false** |
| *true*      | *false*   | **true** |
| *false*      | *true*   | **true** |
| *true*      | *true*   | **true** |

### `XOR` - `^`
- binary
- logik qiymat (true/false) qaytaradi
- ikkila obyektlari **bir xil** *mantiqiy* qiymatga ega bo'lsa **true** qaytaradi

| A  | B | `XOR` |
| ----------- | ----------- | ------- |
| *false*      | *false*   | **true** |
| *true*      | *false*   | **false** |
| *false*      | *true*   | **false** |
| *true*      | *true*   | **true** |

### `NOT` - `!`
- unary
- logik qiymat (true/false) qaytaradi
- obyektning mantiqiy qiymatini teskarisini qaytaradi

| A  | `NOT` |
| ----------- | ----------- |
| *true* | **false** |
| *false* | **true** |