Aug 202015

Script to backup an entire folder

I use Total Commander every day and it has an useful option to backup the entire folder.

Usually I’ve done this way:

  1. clicked ALT + F5 (poped up a window to compress files)
  2. I gave the name of the archive by adding a date at the beginning of the file
  3. clicked OK
  4. I’ve moved created ZIP file into a directory called “backup” where I kept all archives

It wasn’t a very convenient solution, which is why I created a simple .bat script that makes the work easier.

Read more …

Tagged with , , , , 0 comments
Sep 202014

Convert your blog from qTranslate to mqTranslate

For many years I used the qTranslate plugin, which is responsible for language versions in Wordpresie. It is free, but it has been a major disadvantage – it is rarely updated. This causes problems after almost every Wordpres update . Sometimes it was possible to fix it manually by editing the plugin file, but after the latest WordPress 4 release it was completely broken. I was looking for any different plugin to keep the blog in two languages. Read more …

Tagged with , , , , , , , , 0 comments
May 212012

Encrypt USB Flash Drive – how to secure pendrive with password?

Due to the nature of the work I sometimes use a pendrive or external USB hard drive to transfer various materials. However, the problem in case of loss or theft will not only its physical loss but also loss of data.

To prevent that, you should encrypt such a disk, allowing access to data contained on it will be possible only after entering a password. For this purpose, we use TrueCrypt program to create a container encrypted by AES , and then prepare a drive to have it automatically decrypted after entering correct password.
Read more …

Tagged with , 22 comments
Feb 052012

Buying at discount stores and looking for the manufacturer’s?

To learn how to make mobile pages, I’ve prepared the mobile website to search for the original manufacturers of different products (cheap brands) sold in discount stores (Tesco, etc.).

Example: cheap chips “TOP chips” are actually manufactured by Lorenz Snack-World – manufacturer of brands such as Crunchips.

Read more …

Tagged with , , , , , 0 comments
Jan 232012

Cufon IE delay

For many years it was not possible to attach arbitrary fonts for web pages so that they look identical in the leading browsers. Instead, you had to use images.

Then it was time Cufon library where everything was beautifully rendered. Everything, but not everywhere. In IE visible ugly gap (about half a second) when loading the page, but managed to find a solution.

Read more …

Tagged with , , , 0 comments
Jan 022012

How to parse large XML files in PHP?

Some time ago I was faced with the problem of parsing large XML files in PHP. While the small files are no problem and all is quickly parsed, an attempt to pare larger files often causes timeout or Internal Sever Error. Such large files, however, are often used for remote updates of offers (eg, published by the wholesalers).

This is because PHP has set a limit to use, a standard method for parsing files (such as DOMDocument) can be effectively use that limit.

The solution is to use the XMLReader class, by default, available in a standard configuration of PHP 5.1.0.

Read more …

Tagged with , , 3 comments
1 2