Blog

How to install Unreal Engine 4 on CentOS 7

Posted by on 8:27 pm in Knowledge Base | Comments Off on How to install Unreal Engine 4 on CentOS 7

I usually write about Unreal Engine over on my other website, because it tackles more 3D related topics – but compiling the engine from source is a bit more “blood and gore” thing so I thought it best placed here with all the other Linux topics. Anyway… Today we’re installing Unreal Engine on a CentOS 7 system. The latest version at the time of writing is 4.22.3 to be exact. Linux knowledge and a GitHub account are required, and your GitHub account needs to be linked against your EPIC Games account. While the...

read more

How to ignore a folder in GitHub Desktop

Posted by on 10:45 am in Knowledge Base | Comments Off on How to ignore a folder in GitHub Desktop

I had a whole folder that I didn’t want to include in my project. Although I like the desktop client, I did not like the idea of having to select several files and have the app add them all to my .gitignore file. There had to be an easier way, like there is from the command line. And of course there is, I just didn’t know what it was. If you’re in the same boat, then you’re in luck – because here’s how you ignore a whole folder in the GitHub Desktop App (works on Windows and macOS). On the main menu at the...

read more

How to install an rpm file on CentOS

Posted by on 7:25 pm in Knowledge Base | Comments Off on How to install an rpm file on CentOS

On extremely rare occasions (LOL) we get precompiled binaires we can install on our Linux systems. Depending on the distributions, we may end up with an rpm file. I always forget how to install them when this happens – probably it happens so very rarely. Here’s how we can do that. Installing rpm files with yum Yum can deal with both local and remote precompiled rpm files. For files already on our system, we can call this: yum localinstall yourfile.rpm Instead of a local filename, we can also pass a URL like so: yum localinstall...

read more

Did you know: Windows 10 has an Emoji Picker? 😮

Posted by on 8:20 pm in Knowledge Base | Comments Off on Did you know: Windows 10 has an Emoji Picker? 😮

I’ve often wished that I could bring up an Emoji Picker in Windows just as easily as I can use it on macOS, where it’s been available for years. All I need to do there is press CTRL + CMD + Space, and I’ll get a window with little graphic icons. iOS even has a whole Emoji Keyboard that can be added and used just as easily. But Windows? Not without additional headaches. Well until that secret Emoji Picker arrived with an update in 2018. How did I miss that? Either way, all we need is to press WIN + . (as in the Windows key...

read more

How to cancel you Amazon Prime Video Channels

Posted by on 1:00 pm in Knowledge Base | Comments Off on How to cancel you Amazon Prime Video Channels

I really like the how Amazon let you add new channel subscriptions to the existing Prime Video library. Julia and I are having great fun channel hopping through various British catalogues and catch up on UK telly. So far we’ve had Acorn TV, PBS and Britbox. What we don’t particularly like is that certain shows seem to move without notice from one provider to another. Programmes that were available on Channel X last week are now only available with a subscription to Channel Y. Bizarre – but that’s how it goes these...

read more

How to calculate elapsed years from the current time in WordPress

Posted by on 11:19 am in Knowledge Base | Comments Off on How to calculate elapsed years from the current time in WordPress

I’ve implemented a neat feature on the front page of my other website: it calculates how long Julia and I have been married. Rather than this being one of those items I will certainly forget to update in the future, it uses a shortcode in the regular page text to calculate this value. The WordPress function current_time() returns the value of “right now”, and the rest is PHP maths under the hood. Here’s how I did it: <?php function guru_yearsmarried() { // dates to be calculated $dateMarried = strtotime(...

read more

How to amend built-in WordPress Queries before execution

Posted by on 10:54 am in Knowledge Base | Comments Off on How to amend built-in WordPress Queries before execution

I wanted to update the order of posts shown on a regular category/tag archive page. At first I thought I’d have to write my own custom query for that, which would have meant a great deal of fudging an existing template that worked fine as it was. All I wanted to do was to amend a single parameter of the existing query WordPress was generating under the hood. Lo and behold, there’s the beautiful hook we can use for this very purpose: pre_get_posts(). This is fired after all parameters for a regular WordPress query are setup, but...

read more

Creating simple Shortcodes in WordPress

Posted by on 10:19 am in Knowledge Base | Comments Off on Creating simple Shortcodes in WordPress

I’ve built my very own shortcode in WordPress for the first time. Quite the adventure! It’s a very convenient and powerful way to call a function without resorting to writing code while you’re writing text. I needed to echo some text that would rely on something dynamic I wrote in PHP. In my post, all I wrote was [whatever], which would then be replaced by whatever came out of my function. I didn’t need any parameters to be passed to/from my shortcode, which is fairly easy. Here’s how I did it in principle:...

read more

How to re-open a closed Tab in Firefox

Posted by on 10:18 am in Knowledge Base | Comments Off on How to re-open a closed Tab in Firefox

Hey I’ve been there more times than I can count: close one or several tabs, only to think, “dang – I needed to keep that one open. What was that URL again?” Looks like I’m not alone, because many browsers support a feature that lets us re-open an accidentally closed tab. I use Firefox, and here’s how you do that: Right-click on your Browser Bar (next to the plus icon to open a new tab), then select Undo Close Tab. It’s genius! Your most recently closed tab will magically re-open, without having to...

read more

How to style the WordPress Login Page

Posted by on 11:35 am in Knowledge Base | Comments Off on How to style the WordPress Login Page

It’s relatively easy to add your own logo and a custom message to the default WordPress login page. Several plugins let you do that, but I’m a big fan of a little “hard coding”. It makes it easy to have all changes contained in your own files. Here are the four little helper functions I’ve used to make the login section on my own sites a little more palatable. All of these are done with hooks rather than hacking page templates by the way, so this is PHP and CSS only. Adding your own logo This is the most complex...

read more