Tutorials

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

Page 27 of 36

2 min readBeginner

Python: How to Parse String to a Number (Float or Integer)

We explain how to parse numeric expression like 3.144 to float or 42 to intefers using python.

2 min readBeginner

Which is the proper way to compare strings in Java?

When comparing string in java you could get confused with unexpected result using ==. Should you use equals() in java to compare strings?

1 min readBeginner

How to Redirect using HTML

To redriect using HTML add a meta with the desired url. Check here for more details

1 min readBeginner

Python: Recursive File Search in Directories

How to search files and directories using python (recursively file search with python). Code examples for python 2 and 3.

1 min readIntermediate

How to write IF...THEN in an SQL query? (sql server)

In this tutorial we are going to explain how to wirte an IF...THEN statement with SQL Server. We use the sql standard CASE and also explain the IIF statement.

2 min readBeginner

CloudFlare: How to log original IP with nginx

4 min readBeginner

Analysis of travel salesman problem

Travel salesman problem (TSP) is a very well know computer science problem which is really easy to understand but it's a NP-hard problem. The problem is about finding te shortest possible route that visits each city and returns to the origin. Here we analyze the problem and variants of it.

4 min readBeginner

JavaScript Tips for Better Development

How to improve as a javascript developer. If you are an intermediate programmer and stuck at your level try to read this article and study the ideas here with more details.

1 min readBeginner

Clone All Repos from Git Server

Check this tutorial to learn how to clone all git repos for gitolite, bitbucket or gitlab. We are going to show you bash code to clone all repositories of your username.

1 min readBeginner

Reliable reverse ssh tunnel that avoids connection lost

Have you ever use SSH tunnel from work to avoid firewalls? If yes, you probably lost ssh connection which casues to lose the connection to your server or machine. To solve this issue we use autossh with will reconnect on conneciton lost, check this tutorial to use it as a reverse ssh tunnel