snippet - grive: error while loading shared libraries: libboost_program_options.so.1.62.0: cannot open shared object file: No such file or directory
16 Jan, 2017
Grive is built when you download it in ArchLinux. When boost package has had new versions. You need to rebuild Grive, so an easy re-download is required.
snippet - PHP: Check url for valid response code 200
9 Jan, 2017
PHP
Check the HTTP Status Code of the website header using PHP. Check that url is giving valid response code of 2xx. You can modify this for different purposes. For detecting 404 not found only or...
snippet - Get body tag using PHP Dom Document
22 Sep, 2016
PHP
How to use a DOM parser and get the contents of the body.
schema - Controlling 220v using Arduino relay board
20 May, 2014
This guide shows how to control 220 / 230 V using relay board. This is very general relay board, you can find it in ebay, amazon and even in some local stores. This is a general board 5v relay that...
snippet - Soap request with NTLM authentication
6 Dec, 2016
PHP
Doing private Soap reqests requires some kind of authentication. One of the most common ways is to use NTML authentication. PHP soap does not support this out of the box it. You can use this tftdias...
snippet - PHP: Download large file from url without loading it to memory
5 Dec, 2016
This snippet shows you how to download a file from url without loading it to memory. When you use file_get_contents() and file_set_contents() you load the content to memory and then to file. The...
written tutorial - PHP: Memory management
22 Feb, 2015
If you are using larger files like bigger data files or images, memory might become an issue. Even if not, it's always good practice to use optimal amount of memory. Clearing memory is just a part of...
snippet - Filename from path in PHP
22 Nov, 2016
Snippet shows you how to get filename from a path in PHP. Filename and extension separately. Can be used for extending filenames with timestamp or anything.
snippet - Select a random file from directory in PHP
22 Nov, 2016
Select a random file from directory. This can be useful if you want to display a random image on your website. For an example a background image randomly from a directory in your files.
snippet - Ansible add multiple lines to configuration file
27 Oct, 2016
Ansible add multiple lines to configuration file. Add multiple lines in your configuration file. The line will be replaced with the old one. You can set after what will the line be inserted. Use...