Yearly Archives: 2019

How to use a PS4 Controller on your PS3

Even after so many years of use, I still love my Playstation 3. I can’t imagine a life without it. As such, I get nervous thinking about the fact that native PS3 Controllers are no longer in production. What happens when my ever so slightly worn out two controllers give up? How will I play my favourite platform games?

Thankfully, Sony made it possible since software version 4.6 to use the newer Playstation 4 controllers on our Playstation 3 systems. Those are available in great numbers and colours, and from what I hear, they even have the same batteries inside as the PS3 controllers did.

Here’s how to pair a PS4 controller on your PS3 console:

  • switch you the PS3 console using a regular PS3 controller (attached or wireless, doesn’t matter)
  • head over to Settings – Accessory Settings
  • select Manage Bluetooth Devices
  • choose Register New Device (the button at the bottom)
  • on your PS4 controller, press and hold the PS and Share buttons together for a couple of seconds, until the light starts to flash
  • select it from the list when your PS3 console finds the controller

And that’s it! Now you can use your PS4 controller with your PS3 console. How cool is that? Now you can use a brand new controller on your old console, or play that multiplayer game you’ve never had a second controller for.

What works and what doesn’t

There’s a small caveat to this setup though: some things don’t work quite as expected. Thankfully that’s not during gameplay, at least I haven’t noticed anything detrimental yet on native PS3 games. Nevertheless, here’s a quick list of idiosyncrasies I’ve spotted:

  • you can turn the PS3 console on using the PS button on the PS4 controller (great!)
  • during gameplay, you cannot use the PS button to bring up the context menu and either quit the game, or turn off the console (not so great)
  • once paired with the PS3 console, the PS4 controller will no longer be paired to your PS4 console
  • even though no longer paired, the PS4 controller still manages to switch on BOTH the PS3 and the PS4 (that’s terrible)

This setup does not work for native PS2 games, like those you’ve bought before they were remastered, such as the GTA series. That’s because in emulation mode, the PS3 restarts and the controller needs to be re-connected, ignoring generic Bluetooth devices (such as the PS4 controller).

Reassigning Controllers

Right after pairing your PS4 controller for the first time, it’ll be dedicated as the next available controller slot. Since you need a regular controller to set it up, it’s likely to be Controller #2. That may not work for some games.

To adjust this, head over to the Settings – Accessory Settings – Reassign Controllers. You can pick which controller number you’d like the current controller to be. Choose 1 for most games.

Hope this helps!

How to add files to a ZIP archive on the Command Line

Before submitting ZIP files to various third parties, I often have the need to ether remove superfluous files from my archives. Until today I’ve never had the need to add a file to such archives. Had that happened in the past, I would have probably just deleted the whole archive and crated a new one from scratch.

Today I felt adventurous and researched a way to add files to existing ZIP files and found a (not-so-obvious) solution to this puzzle, using the -r switch.

Let me show you how it works:

According to the man page, the r switch actually replaces an existing file in the archive, so this command can be used to update files in the ZIP file too. I’ve added the v switch for convenience (it means “verbose” and can be omitted.

Works on Linux and macOS.

Show Me The Cookies: How to list all cookies on your WordPress site

I’ve been working on a new plugin for WordPress called Cookies. It shows you a list of all cookies on your current site. Once activated, you can find this list under Appearance – Cookies.

In addition, you can also display this list to your visitors by adding the shortcode [cookies] to any post or page. Many of those cookies are used by WordPress to track things such as “are you logged in”, so I’ve added an option to filter WordPress related cookies out. This list is available with the [cookies-nowp] shortcode.

I’m still putting the finishing touches on the plugin, but I’m planning to submit it to the WordPress repository. For now, feel free to download it from my GitHub repository.

Let me tell you a bit about how this plugin came to be.

Continue reading Show Me The Cookies: How to list all cookies on your WordPress site

Child Theme Wizard – Version 1.3 released

This morning I felt like a bit of coding, and something that’s been on my to-do list for a while was to update my Child Theme Wizard plugin. It’s been making over 10.000 users happy since 2013.

The main reason for the update was to update the compatibility flag with WordPress 5.1 – it was already compatible with the latest version, it just wasn’t explicitly set. On this occasion I found a couple of other items I could improve upon:

  • updated the link to the WordPress Codex about Child Themes
  • verified compatibility with WordPress 5.1
  • updated social media links (added YouTube and Patreon, removed Google+)
  • added theme version to query, as suggested in WordPress Codex

The last item was new to me and doesn’t make a difference to how your child themes are created, however since the Codex suggests to create child themes this way, I thought I’d better follow best practices.

And one final thing I’ve streamlined was the code itself, both in the plugin and in the generated code. It’s now a bit more spaced out, improving readability and updatability (if that is in fact a word).

You can get the latest version either from GitHub, update from within WordPress, or download it from the official WordPress repository.

How to copy Windows.old to an external drive

After a recent Windows 10 Refresh, I found myself with most of my data missing from my installation – a bit of a surprise, having done Windows refreshes before and seeing that I selected the option to “keep all my data”. Ah well…

However, Windows was kind enough to preserve much of my previous configuration in an folder called Windows.old. As such, I could at least go back to some of the system data that I needed. Thank you, Windows 🙂

Before moving on with major re-installation work, I thought it would be wise to preserve the Windows.old folder on an external drive and make some room on my main SSD. I thought it’s just a simple matter of dragging the folder over – but that was not the case. When I tried, only perhaps 1GB of the total 30GB the folder contained was copied over.

What’s going on here? Why is this happening? My user name is exactly the same as before, why can I not create an exact replica of the whole folder somewhere else?

Continue reading How to copy Windows.old to an external drive

How to disable the Login with WordPress.com prompt

One of my self hosted WordPress sites kept offering me to login with my WordPress.com credentials. I find that mindnumbingly annoying, since I don’t use WordPress.com (nor can I remember my credentials).

Thankfully there’s an easy way to switch this prompt off. This integration comes courtesy of Jetpack. There’s an option under Jetpack – Settings – Security in which we can turn this feature on and off.

After flicking the switch, this setting is saved automatically and WordPress won’t offer anything other than a regular credentials window at login.

How to use OBS Studio to record your screen

In this episode I’m going to show you how to use the excellent free OBS Studio for screen recordings. This is an open source, cross platform tool with amazing capabilities, yet it can be a little daunting to get started with it. While OBS Studio is commonly used for live streaming, it can do simple screen captures too. I’ll show you how to do that.

I’ll begin by explaining the interface philosophy, then I’ll show you how to add a desktop to your scene, how to add a webcam as an overlay, how to add audio, and finally how to pick the right preset and file format for your capture. When we’re done, you’ll be good to start editing your recording in your favorite application.

Any questions, please let me know.

Catch this episode on my WP Guru Podcast:

How to use the GoPro Microphone Adapter for HERO 5/6/7 Black

In this episode I’ll explain how to use the GoPro 3.5mm Microphone to USB-C adapter with your GoPro HERO 5, 6 and 7 (Black versions).

It’s a rugged piece of technology I find incredibly helpful when I make videos on my bike. This little gadget has been getting terrible reviews – probably because there’s little to no documentation available on how to use it, or what settings it unlocks. In this video I’ll show you all.

You can buy the adapter here

I’m using it with this ZAFFIRO Microphone

Catch this episode on my WP Guru Podcast:

Using Multiple Desktops in Windows 10

Ever since I’ve discovered how useful Spaces are on my Mac, I’ve been wanting a similar functionality in Windows. I’ve come across this feature in KDE and Gnome on Linux, but not in Windows.

Until yesterday evening, when I wanted to switch between applications that were stacked on top of one another, using the familiar ALT + TAB shortcut. By where accident I’ve pressed WINDOWS + TAB, and imagine my surprise when I found this:

This super exciting feature is actually a new addition to the Windows 10 Fall Creator Update if I remember correctly, called the Task View. It’s the same view that opens when we click that little icon to the left of the Cortana Search bar in the Task Bar.

Besides a history if everything we’ve been doing, we get to create new independent Desktop environments at the top. This allows us to launch different apps on different Desktops, instantly decluttering our already all too crowded workflow. For example, have a browser open in one Desktop, and a full screen app in another, without having to stack them on top of each other, or using separate monitors. Your neck will be forever grateful.

I find this functionality particularly useful for streaming purposes: to switch scenes live in OBS, I really need a second monitor… but my desk is too small for that. By operating OBS on an independent Desktop, I can quickly switch over there and do what I need to do, without interrupting whatever is happening on my main Desktop that’s going live to air

Here’s Microsoft’s Support Article about Multiple Desktops.

Enjoy Mac Spaces – now available in Windows 🙂

How to swap displays with a Shortcut in Windows 10

On my Windows 10 system, I frequently connect other monitors and display devices to my various graphic card outputs. This often happens “ad hoc” and only temporarily, and because my configurations seem to vary by situation, Windows inevitably chooses an option that’s not right for me.

One example is that I plug a monitor in that’s switched off, with the intention of duplicating the displays, and all I see now is a “blank screen”, because Windows thinks the “switched off” monitor is probably my main one. As a result, I can’t see anything or change the display settings to what I’d like to do. Right clicking on the desktop brings up the Display Settings dialogue, but of course that shows up on the wrong desktop. Sigh!

The solution would be a keyboard shortcut with which I could toggle how Windows uses this second display: duplicate, extend, replace and switch off, that sort of thing.

And guess what? That keyboard shortcut actually exists! Drumroll please: it’s…

Windows + P

Pressing the Windows Key and the P key together switches modes, just like the ones we get when we use the Project option from the Task Bar (on the right). The options are

  • PC Screen Only
  • Duplicate
  • Extend
  • Second Screen Only

Make sure you wait a few seconds between each key press so your displays and GPU have a moment to react accordingly. Eventually, a display configuration you can at least work with (like Duplicate) will appear that lets you adjust your Display Settings more appropriately (either from the Cortana Search Box or a right-click on your empty desktop).

This shortcut works intuitively well with two displays… but when you have THREE attached to a system, it can get hairy. Either way, happy Display Swapping 🙂