}

Tutorials Index Page 10

beginner

Golang: How to Check If a File Exists Before Using It

Learn GO lang with basic examples, we tech you how to check if a file exists using GO os package. Checking if a file exists could be a little tricky since we focus on the error returned instead of a result.

beginner

How To Known what DNS Servers Address you are using

To see you dns servers on linux execute: cat /etc/resolv.conf. For windows ipconfig /all. check this artcile for more details.

beginner

Learn how To Use grep Command.

Improve as a system administrator or as a software developer and learn how to use the very useful command grep. We cover some basic usage and some advance usage. Learn here how to use regular expression with grep and how to search recursively with grep.

beginner

Learn programmign: How to write If else statement in C Program

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.

beginner

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.

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.

beginner

How to set chmod for a directory and all of its subdirectories and files using the Ubuntu terminal?

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.

beginner

How to convert integer to string in Python?

Converting an integer to string in python is straighforward to do it. Just use the built in function str(). Here we explain with more details and example hot convertion from integer to string works.

beginner

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.

beginner

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.