Tutorials

Step-by-step technical guides on Docker, Linux, Python, Go, and more.

Page 25 of 36

4 min readBeginner

C Programming: If-Else Statement Guide

Knowning how to program in C is a good desicion. Learn here how the if else statement works. See some examples to learn with more details how C code works.

1 min readBeginner

How to search for a package in Arch Linux

In this tutorial we are going to explain how to use pacman and pkgfile to search for packages in Arch Linux. With pacman use "pacman -Ss packageName" and with pkgfile use: "sudo pacman -S pkgfile". Check here for more details on how to use and install the tools.

2 min read

How to Split a string in C++?

In this tutorial we are going to show how to split a string separated by spaces. We will use istringstream and copy functions to save the result in a vector with the tokens. Our last example code will split the string with any delimiter using c++ and the standard library.

1 min readBeginner

Ubuntu: Recursive chmod for Directories

You can use the parameter -R to apply permission recursively on all directories using chmod. If you only want to apply the execution permission to subdirectories use the option a+rX, check here for more details.

5 min readBeginner

How to Convert Int to String in Python [5 Methods with Examples]

Learn 5 ways to convert int to string in Python: str(), f-strings, format(), % operator, and repr(). Includes examples and performance comparison.

1 min readBeginner

How to Change a DOM element's class with JavaScript

If you want to change element class using javascript you can try: document.getElementById("ElementId").classList.add('NewClass') to add a new class. Alternative methods are remove and contains. Check here for more examples and alternatives using jQuery or coe for older browsers.

2 min readBeginner

What is the correct way to return JSON content type?

Here we explain the proper MIME types to return for Json. You must know that returning the wrong MIME type could compromise the security of your application. We also cover which is the proper way to return a JSONP.

2 min readBeginner

SQL: INNER JOIN vs OUTER JOIN Explained

For beginners when learning JOIN it's a common error to ignore different types of JOIN. Some junior developers could use a wrong JOIN that looks like correct when it's not the case. Make sure you learn differences between LEFT JOIN and RIGHT JOIN

1 min readBeginner

How to check if an element is hidden in jQuery?

To check if an element is hidden use: $(element).is(":visible");

1 min readBeginner

How can I concatenate strings in Bash?

Check here some string concatenation examples using bash. Lean how to program bash and manipulate strings, in this case using concatenation. We propose different approaches to solve the problem with bash.