Category: Technology

Every post that has something got to do with technology…whether it’s to do with computers, phone, the internet. It’ll be posted here

  • Change Post Author in Ghost

    Change Post Author in Ghost

    When I moved this website from WordPress to Ghost earlier this year, I used their tool to import the posts in.

    What it did, it created a 2nd user and associated the posts with that user while keeping the Ghost author (The main one that I would use) as a separate user. I didn’t want this, so I decided to tinker with the SQLite database and change that.

    Note: If you decide to follow my instructions, I am not responsible for any data loss or breakages to your site, ok? Good! 🙂

    Just for a bit of context, I am using Ghost on Docker via Plesk, (click here for instructions on how to set that up).

    To get into the terminal for your docker instance, run docker ps first and get the name of your docker container and then run docker exec -t -i container_name bash (replacing container_name with your own)

    You will need to ensure that you have sqlite3 installed. On Debian/Ubuntu, you can do this by running apt update && apt install -y sqlite3.

    • BACK UP YOUR DATABASE. This should be obvious. Back up your databases before messing with it.

      * Navigate to /var/lib/ghost/content/data and run cp ghost.db ghostdb-backup2021-10-11

    • While in /var/lib/ghost/content/data run sqlite3 ghost.db
    • You will need to first find out the author_id of your users, to do this, run the command SELECT id, name, slug FROM users;

    This will return the following:

    1|Padraig Fahy|padraig8df7s89f7sd98f7sd|Ghost|ghost7vc89x675x6c78x9c|Padraig Fahy|padraig-2(Note: The id's are different for every instance and are randomised here)

    From this, you might be able to determine which user is your WordPress user. But to be sure, go and view one of the posts that you would have created on the site and click on the link to the author, whether that would be a ‘See more from this author’ or similar link.  

    Then check the URL in the address bar to see what the ‘slug’ is. For me, all my WordPress posts where imported as ‘padraig-2’

    So the ID for ‘padraig-2’ would be 7vc89x675x6c78x9c and now we want to change that to 1 so that it is the Ghost user ‘padraig’

    • UPDATE posts SET author_id = REPLACE(author_id,'7vc89x675x6c78x9c','1');
    • Press enter. Then run:
    • UPDATE posts_authors SET author_id = REPLACE(author_id,'7vc89x675x6c78x9c','1');
    • And press enter again.

    This will update the posts themselves to be the correct user and then update the ‘authors’ page to point it to the correct user.

    When you try to go to the WordPress author page, it should return ‘0 Results’

    You can verify your work by going to your proper author page https://padraig.blog/author/padraig/ and seeing your posts.

    Repeat the process for the different authors if you have them.

    Exit sqlite3 by running .quit and pressing enter.

  • Fix Windows Security on Windows 11 Beta

    Fix Windows Security on Windows 11 Beta

    In the Windows 11 Beta, I experienced an issue with Windows Security (fka. Windows Defender) not working.

    The shield would appear in the system tray but clicking on it or opening Windows Security from the Start menu wouldn’t do anything.

    To fix this, open Powershell as Admin and copy paste the following:

    Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage

    Once you do that, you can go to: Start -> Settings >> Privacy & Security and click on “Open Windows Security” or type “Windows Security” into the Start Menu.

    Windows Security working on Windows 11 (Beta 22000.194)

  • How to upgrade Ghost 4 on Plesk Obsidian

    How to upgrade Ghost 4 on Plesk Obsidian

    This is a follow-on to my previous post about installing Ghost 4 on Plesk Obsidian.

    As with the previous post:

    I am not an expert in Docker, npm, node.js or related technologies. What I am documenting here is what worked for myself.

    (more…)

  • How to install Ghost 4 on Plesk Obsidian

    How to install Ghost 4 on Plesk Obsidian

    This has been superseded by the Ghost 5 install guide:


    Ghost 4 was released earlier today which brought some nice new features, mainly a way for you to easily create a subscription for your content.

    Note: I am not an expert in Docker, npm, node.js or related technologies. What I am documenting here is what worked for myself.

    (more…)
  • Alternatives to “BigTech” services

    Alternatives to “BigTech” services

    With people deciding to leave Twitter, Facebook and other social services, some are turning to alternative sites and services.

    Here are a few that I personally use:

    Alternative to Twitter:

    Mastodon – This is a decentralised Microblogging service that is on the Fediverse. It allows you to follow and interact with users that are on different servers (Instances). Think of it like emailing a Yahoo! user from a Gmail account.

    You can join one of the thousands of instances that have open registration or you can set up your own server for a “Single User Instance” – Having one of your own means that you can set the rules for your community.

    And with Mastodon having powerful tools for moderation, you can completely block domains from appearing on your instance.

    Gab, which is a far-right micro-blogging service, runs on a forked version of Mastodon and a lot of instances have it blocked.

    There are other micro-blogging services like Mastodon that run on ActivityPub (The tech that does the whole Federation bit) such as Plemora and GNUSocial (GNUSocial is the continuation of StatusNet which ran identi.ca back in the day)

    Alternative to Facebook:

    Diaspora* is a social media website similar to Facebook which launched back in 2010 with them launching their first ‘pod’  (Servers) they have been in active development since then with their last release being 6 months ago (from this post).

    While they haven’t made as much ‘noise’ compared to Mastodon, they would still be considered the first kids on the block to be running a decentralised social network.

    There is also MeWe, a newer social media site that opened up in 2012 and left Beta in 2015 and became popular with Hong Kong users in 2020. MeWe focuses on being a privacy-focused social media site. Unlike a lot of the other options in this list, it is NOT on the Fediverse, so the users on MeWe can only interact with members of MeWe.

    Alternative to Instagram:

    PixelFed started back in 2018 as an alternative to Instagram and got a lot of following from Mastodon users.

    It runs on the same technology as Mastodon (ActivityPub) and much like Mastodon, you can run your own instance of it or just join pixelfed.social which is the largest instance of the service.

    Alternative to WhatsApp/Facebook Messenger/Viber etc

    There is a couple of options here that you can download, but most of them are well-known:

    Some of these have different levels of privacy but all of the above have end-to-end encryption.

    Alternative to YouTube:

    I was alerted to this service a while back but had forgotten the link when creating this list. Odysee is a video-sharing site that is very similar to YouTube but it is on the Blockchain.

    Alternative to Twitch:

    (Added 10th October 2022)

    Twitch has slowly been shooting itself in the foot with recent changes to payouts if you are a partner on their platform and multiple cases of inconsistent bans and/or restrictions. Glimesh is a new platform that was born from the ashes of Mixer (Mixer was bought by Microsoft and shutdown) and offers a transparent 60/40 split for their streamers and no advertisements on the platform.


    If you know of alternatives, let me know on Twitter: @PadraigFahy

    Photo by Becca Tapert on Unsplash

  • Remove joe(.)ie “noscroll”

    Remove joe(.)ie “noscroll”

    For a while now, every time that I got to a joe (.) ie article, (A site I don’t particularly like), they have a “noscroll filter” which prevents you from scrolling.

    This is more than likely due to the adblocking and tracking being disabled by default on the site. (Thanks Vivaldi)

    So, I created this little script for Stylish or Stylus

    Create a new style and paste the following in:

    /* ==UserStyle==@name           Joe.ie StopNoScroll - 1/9/2021, 1:47:23 AM@namespace      github.com/crakila/joenoscroll@version        1.0.0@description    Get around the noScroll on Joe and scroll once more@author         Crakila==/UserStyle== */@-moz-document domain("joe.ie") {    @media (min-width: 767px) {        .noscroll {            overflow: unset;        }    }}

    (I will try to get the code up on GitHub tomorrow when I get my environment sorted)

    (Photo by Antonio Manaligod on Unsplash)