Tutorials and How-to guides

A collection of tutorials about things I've learned or discovered. Most of the tutorials are easy to read and to learn, but some tutorials require a basic knowledge of a topic covered.

Change number in file with Bash script

My goal was read the number in the file, and if the number is smaller than three add one to it, and if bigger reset the number to one. Write new to the file.

How to create a simple contact form

HTML Forms are one of the main points of interaction between a user and a web site. This tutorial teaches you how to make one.

01.01.2017
, ,

Flickr photo albums on ProcessWire

A tutorial how to set up Flickr photo galleries on ProcessWire. I modified Sergio's photo downloading script and made Photobox effect for galleries.

Offsetting anchor links with fixed header

Using anchor links with a fixed header is a problem, as the body text may be hidden underneath the header.

04.10.2016
,

How to leverage browser caching

Page load times can be significantly improved by asking visitors to save and reuse the files included in your website.

12.09.2016
,

Use rsync to sync local and remove files

Rsync is a powerful tool that facilitates the transfer and synchronization of data between both local and remote systems.

Drupal Commerce: Apply taxes after discount

Drupal Commerce is an open source eCommerce framework. This tutorial fixes the VAT + Sale Prices problem for Checkout and Commerce Email.

25.06.2016
,

How to automatic backup data in Linux

Backups are one of the most important things when running a server and these scripts help backup your important data automatically.

Animated smooth scrolling effect

Every one-page website needs animated smooth scrolling effect, and this script will rock your site.

Add or remove class on vertical scroll

A tutorial to show how use JavaScript and CSS to change appearance of when scrolling down on the website.

Add images to Drupal Views Search Page

Drupal Views is a powerful tool for all kind of mixed results but how to add images to Views' Page when url have "?". Blocks can't help, but PHP can.

25.06.2016
,

The 10 most common mistakes with PHP

Are you guilty of one of these common PHP mistakes? Refer to this list next time you’re debugging PHP code.

25.06.2016

A beginner's guide to Drush

Drush is a command-line shell and scripting interface for Drupal. This tutorial help you understand how Drush works and how it makes your life easier.

How to parse an XML Flickr feed

This simple XML Flickr feed parser fetch newest photos and show them with links and thumbnails.

18.06.2016
, , ,

A beginner's guide to MySQL

A basic tutorial how to take control of MySQL server, how to make a database and a user, and how to store information in the MySQL database.

Parse an XML document with PHP5

A simple PHP script which can store an XML document as a file to the server and use it for the website. Replaces file older than 24 hours.

18.06.2016
,

How to set up TeamSpeak 3 server

Tutorial how to set up and run a TeamSpeak 3 server as service on Linux.

How to generating SSH keys

SSH keys serve as a means of identifying yourself to an SSH server using public-key cryptography and challenge-response authentication.

How to create a simple popup

Simple PHP / JavaScript popup created for Drupal but can be used with any platform. Popup works only once and again after the cookie is cleared.