Archive for the ‘tech’ Category

Mega Soundboard

It is hard to understand why PowerPoint never implemented this, but if you ever had to play a sound or music during a presentation, you had to peg the start of the audio to a particular slide, and once the audio starts there’s no easy way to stop.

Completely cumbersome if, say, the first time you teach some children to sing along a set of slides. You can’t skip forward to show a slide without activating the music; you can’t go back to the first slide without restarting the music; you can’t stop the music if you realise the kids need a bit more time to follow.

Mega Soundboard is the easiest and best answer to this problem. Its taken a long time for me to find this; none of the other soundboards, or hotkey solutions, or full featured media players (e.g. VLC, fubar2000) does this as simply and as elegantly as Tom4nt’s Mega Soundboard: you setup your selection of audio files, assign each a hotkey (which are global), and you just press the hotkey to play the desired audio without the program needing to be in focus (i.e. you need PowerPoint to be in focus to control the slides).

A start/stop global hotkey can be assigned as well to stop the audio at will.

Voila! Its open source to boot as well!

Upgrade to PHP 7.4 broke Moodle 3.3

Well, I thought, let’s go the other way then: upgrade Moodle first and then backtrack to PHP.

But Moodle 3.3 can’t go straight to 3.9 (which is the LTS I’m hoping to get it to) – 3.3 can only go as far as 3.5 – and Moodle and PHP documentation doesn’t say whether 3.5 will work with the existing PHP 7.0; time to take a gamble …

… and it paid off. Following these steps Moodle was upgraded to 3.5 and it worked with PHP 7.0

Then the upgrade to PHP 7.4 went smoothly.

Upgrade Debian 8 (Wheezy) to 9 (Stretch)

Upgrade of my Debian 8 server was long overdue; however, went headlong into it and ran into problems the first time round (i.e. MariaDB wouldn’t start properly. So I restored the server back to 8 (thanks Vultr for snapshots!) and tried again. This is what worked the second time round:

  1. Shutdown MySQL/MariaDB before attempting to upgrade Debian (a step I noticed after the failed first attempt; Section “Upgrading to MariaDB 10.1 from MySQL 5.5” of MariaDB’s documentation “Moving from MySQL to MariaDB in Debian 9”).
  2. Follow Steps 2 to 5 of phoenixNap’s guide– it had the easiest sources.list edits for switching to Debian 9 repositories.

As the primary function of this server is to serve PHP applications, it was also an opportune to upgrade the PHP version as WordPress will soon require at least version 7.2.

  1. Follow Steps 1 to 3 of Computing for Geeks guide – this will upgrade PHP to version 7.4
  2. Follow Section “Activating New PHP Version in Apache” in JiyuuLife’s guide for the quickest way for Apache to use the new 7.4 instead of the previous version (7.0 for Debian 8).

Led down the garden path

I want to Airplay a YouTube video to an Apple TV. According to this official support document from Google/YouTube:

As a reminder, if you’re casting from a mobile device, make sure to download the YouTube app. Casting from youtube.com in a mobile web browser is not currently supported.

https://support.google.com/youtube/answer/7640706?hl=en

So, downloaded the YouTube app, can’t find an Airplay icon anywhere. Some users claim its now subsumed under the Cast icon – no luck there for me either.

Turns out, playing the YouTube video directly from Safari shows up the Airplay icon.

*Sigh.

motorola razr

I must say, the form factor of the new Motorola Razr has me tempted to go back to Android. I love the pocketable design and with retro cool to boot! I do hope it was the ThinkPad team that Lenovo deployed to consult on the hinge design.

But its not even in the realm of possibility with that $1500 price tag …

WordPress stack

My new found favourite (free) stack for WordPress frontend work – and a little bit of backend tinkering are:

What is interesting is that Elementor and Ultimate Addons for Gutenberg is aiming to do the same thing – provide ready made widgets to drag and drop into the layout. However, I think its best to keep each page/post using one or the other; and both have widgets that are useful and not found in the other.

For the backend, I’ve been using Code Snippets for a long time. But recent discovery of PODS has revolutionised how I create, extend and change Custom Post Types and Custom Fields. It was simple to extend the Post type to have a Custom Field of Date, and easily display it in an Ultimate Addons Post Grid using a Hook in Code Snippets.

Integromat

Shout out to Integromat, an online service that connects other web services together, using a visual paradigm. Great customer service, even for the free tier.

After working out a few kinks, I’m now able to pipe custom fields from a Woocommerce order into a Airtable base, with relative ease.

partitioning a usb drive for mac and windows

Bought a 3TB Seagate usb portable harddrive, and wanted to partition it for both Macs (to have Time Machines on their own dedicated partition) and Windows (for general storage of files).

Can’t be done using Windows, at least not the free software I tried. Had to be done on Mac, but not without some strange phenomenon that required a few tries. Basically, Mac’s Disk Utility won’t partition the Seagate as-is, from what I can find its most likely due to a EFI that is smaller than 200MB (in fact, the Seagate doesn’t have a EFI partition), and also the Seagate has a Microsoft reserved partition that seems to serve no purpose.

Whatever the reason, I didn’t bother to figure it out. I decided to forgo Seagate’s default setup and start from a blank disk. So, in the Mac’s Terminal:

diskutil list
diskutil unmountDisk force disk2 //or whatever disk# the usb drive is]
sudo dd if=/dev/zero of=/dev/rdisk2 bs=1024 count=1024 //this will erase the entire usb disk
diskutil partitionDisk disk2 GPT JHFS+ "KnockDrive" 0g // this will partition the drive with a EFI and the remaining space as a partition of Apple's HFS format

Now open up Mac’s Disk Utility. Use the Partition function to segment the desired number of partitions; for the partition that will be used by a Mac, set it as Journal HFS, and for the partition that will be used by Windows, set it as exFAT.

Voila!

Credit:

  • https://mycyberuniverse.com/how-fix-mediakit-reports-not-enough-space-on-device.html
  • https://appuals.com/fix-mediakit-reports-not-enough-space-on-device-for-requested-operation/

X-Mouse Button Control

X-Mouse Button Control is the follow up to discovering Dual Monitor Tools. The usage scenario is as follows:

  1. The middle button on the scroll wheel for scrolling is never used.
  2. DMT is setup to move cursor between the two screens using ‘Win-Z’ hotkeys.

With XMBC, I can map the middle button to fire ‘Win-Z’, which in turn tells DMT to ‘teleport’ the cursor to the other screen. I now can switch between screens one handed!

XMBC even has a portable version. Gold!

worse thing about windows 10

Windows 10 is by in large quite nice to use. Its polished and responsive enough for basic tasks even on a low power processor like the Atom X5.

Except when Windows have to do an update. Oh the amount of time it takes to calculate and download!

I guess that’s always been the case with any of the Window versions. I think that’s also an often not-considered reason to go for a Mac: the update process is much more straightforward. I take it its because MacOS supports a gazillion less hardware combinations than Windows.