The core rule of capitalism is to continually look for new ways to gain capital. Profit comes before ethics, even before the future of humanity and the existence of life on the planet. Some recent-born corporations vowed not to do evil. Some still think they do not do evil. A while ago, twenty-first century tech-giants came out of nowhere — or rather, out of garages or college basements. In most cases, they began as passionate, bright, juvenile, and non-toxic minds, whose work and passion changed the planet for good. Some of them made remarkable achievements. Continue reading “Why is Google trying to kill User Generated Content?”
Difference between htmlspecialchars_decode and html_entity_decode
There are quite a few similar functions in PHP. Some of them are almost identical like echo and print and some have subtle differences which are not obvious at the first glance. We can put htmlspecialchars_decode and html_entity_decode in this category. There is a lot of confusion between notions of HTML special characters and HTML entities so let’s look into the difference.
Continue reading “Difference between htmlspecialchars_decode and html_entity_decode”
MySQL slave to existing master tutorial
MySQL master-slave replication is well covered so I won’t go deep into explanations and details. This supposes to be a simple how-to tutorial. However, I’m going to pinpoint a few details that might lead you astray while doing this easy setup.
Multiple MySQL instances on one server
When you enter the field of multiple MySQL instances on one physical server you might run into the trouble. Lack of documentation, cryptic bugs, and insane settings is something you need to get used to. I almost quit a few times in the process and only my habit of trying unusual things when everything logical failed kept me up to the solution.
PHP – What is the difference between single and double quotes?
Difference between single and double quotes in PHP can be confusing. Moreover, it can lead to unexpected results, so it’s better to get familiar with it so you can avoid bugs.
Let’s dive into the details…
Continue reading “PHP – What is the difference between single and double quotes?”
Why is my computer or phone so slow? – part 2
Welcome to the level 2 of computer and programming guide. Remember all from level 1 guide for programmers?
The answer to the question from the title could be that you have RAM issues. RAM is the main memory of your computer or phone and it seems that your apps are eating to much RAM. Your whole operating system (Android, iOS, Windows) is slow because it requires more RAM but how it’s possible when you uninstalled some apps but nothing much is changed? It’s still slow.
Continue reading “Why is my computer or phone so slow? – part 2”
Beginners guide to programming – part 1
This series is meant to gradually introduce programming to the total beginners. And I mean like really total, like my father or mother which are actually using their computer without having the smallest clue how it works. As a matter of fact if the operating system freeze they may be able to restart the computer and that’s where their troubleshooting knowledge ends. Don’t get me wrong, restarting operating system helped me numerous times and it’s always one of the first choices I made in the path of troubleshooting.
However, if your plan is to become developer/ programmer you need to expand your knowledge of computer inner workings and I can assure you it’s more interesting than you might think. And it’s easy, at least to the level you need. Let’s begin …
GDPR cookie consent script (open source)
There’s no need to reiterate much about GDPR law and everything that came with it. In one moment nobody didn’t care about it like it’s just another obscure and annoying EU law. Then few weeks before actual enforcement date, the most companies started to implement some kind of implementation.
BIND server doesn’t work
There are many reasons for BIND server not to work. BIND is quite old and stable open source project so if it doesn’t work it’s usually something related to configuration and less likely something due to the compilation, installation or bug in the package. Also, there are more than few uses of BIND server so configurations can vary from one use case to another.
How do I get the size of a directory on the command line in Linux?
There are some situations when you need to check size of directories on your Linux server. Usually it’s due to logging which can consume your hard disk, especially if you have heavy traffic web site or if you log some common type events. Log rotation can help but you need to configure it properly according to your hard disk size.
Continue reading “How do I get the size of a directory on the command line in Linux?”