I’ve been slowly coming off meat since 2015. I first stopped cooking meat and then I slowly stopped eating meat at restaurants. Continue reading National Vegetarian Week 2021
I’ve recently got a Raspberry Pi 4 Model B 8GB. I wanted to have one just to try running Kubernetes on Raspberry Pi. Most resources on the web seem to be for a huge cluster with a dozen nodes but I wanted to do it with a single node.
As the operating system I chose Ubuntu because of its Pi support even though I prefer Red Hat based distros. Continue reading Single-node Kubernetes on Raspberry Pi
As a programmer I care about the keyboard and mouse I use whilst working. I’ve been a fan of Logitech since I was a teenager. I loved Logitech GT27 steering wheel, their mice, and keyboards which I used when I was younger. I guess I have a bit of a bias on Logitech products. Read my review to decide whether my bias shows.
I’ve been using Logitech K270 keyboard and Anywhere MX mouse for 9 years. I’ve bought the first keyboard and mouse set in 2012 (9 years before this post) and got a second pair in 2016 (5 years before this post). I use one of the pairs for home and one for the office.
Logitech K270 keyboard
As everyone, when the Coronavirus lockdown started, I followed the trend and started making bread. I’ve been baking a sourdough bread almost every weekend for more than a year. One of the main reasons I chose to make sourdough bread is that it doesn’t need any yeast. This blog post is to share my sourdough bread recipe.
I am sure every PHP developer has a colleague they hate because he/she coded the application they started maintaining. This is mostly because the code is old. New standards become common, they learn what they used to do was inefficient, unreadable, or complicated. As PHP is a language that changed significantly over the years, code written a few years ago will certainly look outdated.
That being said, this post is not about the old PHP code. This post shows how to be a bad programmer even when following standards. Please don’t be this person.
- Too many nested if statements
- Extra brackets and braces
- Unnecessary casting
- Useless checks
- Slow PHP built-in functions
- Long functions
- Too many function arguments
- Long lines
- Long if-else blocks
- Wrong function / class name casing
- Lack of coding standards
Too many nested if statements
This is probably the one I hate the most. It also makes the lines too long because of the indentation caused by each of the nested if statements.
Continue reading PHP Dos and Don’ts aka Programmers I Don’t Like
For those who don’t know, the Broadcom WiFi that comes with Dell XPS 13 is not supported by most current Linux distributions (kernel version < 4.4). Continue reading XPS 13: Replacing WiFi Adapter
I’ve recently bought a Dell XPS 13 9350.
I tried installing Fedora on it but the installer was not able to detect the SSD. I tried disabling UEFI and it worked. The problem was that as soon as I disabled it I was no longer able to boot into Windows 10. I tried different combinations and every change that resulted in Fedora installer seeing the drive, broke Windows 10 boot setup. I thought I would be able to enable UEFI after the setup and use Windows 10 whenever I needed it and decided to install Fedora.
Continue reading UEFI and GPT Mess with Windows 10 and Linux
Say hi to Oliver Radwell
My name is changing from “Omer Karadagli” to “Oliver Radwell”. This is a big change for me. This blog post explains the why and the how.
The name I have on my birth certificate is “Ömer Can Karadağlı”.
In this tutorial I will explain how to execute composer vendor binaries without typing vendor/bin every time. Continue reading Run Vendor Binaries w/o Typing vendor/bin
Recently I remembered that I had this little handy script that I used to backup my WordPress blog. The script contains only 2 actual commands.
I used nice while compressing / uncompressing the files to avoid CPU throttling since my blog is running on a shared hosting server.
This WordPress backup script doesn’t work without user interaction since it needs you to enter the password. Continue reading WordPress Backup Script