Latest Articles

Use the navigation at the bottom to see older articles

How to add File Upload Capabilities to the Contributor Role in WordPress

I never noticed this before, but it appears that the Contributor Role in WordPress does not come with ability to upload files to an instance. That’s slightly weird, given that most users will probably assign this role to users who shall be able to write content for a site, and with good content inevitably come images in this day and age.

According to WordPress, the roles included with WordPress are mere examples or “capability collections” so to speak, and we’re free to create our own, or add/remove capabilities from any role if we so desire. I did some digging and found out how that the add_cap() and remove_cap() functions do just that.

In this article I’ll show you how to add the upload_files() capability to the Contributor Role, without the need for yet another plugin.

Read more

How to install Blender on CentOS 7

I’ve been trying to build Blender from source on CentOS for many years, but never had any luck making it work. There was always one package missing, or something else that needed to be configured. Depressed and resentful, I gave up and never got a chance to try Blender on CentOS.

Recently, the Blender Devs have started releasing a pre-compiled version of Blender for CentOS for download. This should work on RHEL and Fedora just as well. Huzzah!

With a fresh installation of CentOS looking at me from my old Samsung Q330 laptop, I thought I’d try it out. It works great! Here’s what I had to do to make it work, step by step.

Read more

How to revert a yum update on CentOS

Every so often, a yum update brings unexpected results with it, like services no longer working due to spurious error messages that don’t tell you what’s actually wrong. This only very rarely happens though, and we may need to revert to the state of our system before such an update took place. Thankfully, yum has … Read more

How to create a read-only channel in Discord

Some of the simplest things to do often turn out to be the hardest ones – only because we have no idea how to do them properly. One of those tasks is setting up a simple read-only channel on Discord.

What I mean by that is a channel that you and perhaps an admin can post in (like a welcome or rules channel), readable by everybody, nut you don’t want anyone to be able to leave reactions or post messages in it. I’m fairly new to Discord, and while many features appear very intuitive, this one neither of us could work out for the longest time. Looks like I’ve finally found out how to do this, so let me share it with you before I forget.

Read more

Redirecting a secure domain in Plesk

There are several ways to make two domains resolve to the same content in Plesk. The easiest option is to setup a Domain Alias. That way, domain1.com and domain2.com both serve the same content from the same subscription. This worked great for non-SSL domains, but if you have a secured domain, the redirection will be … Read more