#0046: Impromptu time-limited repair of unbranded power bank

#0046: Impromptu time-limited repair of unbranded power bank

Preamble

(Wed 2026-10-28.) After coming home from work, I was suddenly asked by a family member if I could fix their broken power bank. They asked me this because it was the only one that they had, and they required this power bank to charge their ageing phone today – a necessity when working a 12-hour shift. This conversation occurred as they were preparing to head out to their job. The request was made at around 1615, and they needed to leave no later than 1700. I don’t know why, but I said yeah. Let’s go! Despite being tired from a ten-hour shift myself, I felt up for the challenge. Here’s how it went.

Device description

The power bank in question is an unbranded unit. It has a basic black plastic enclosure with a solar panel (model: YX-150X69) topside; and a torch composed of 6 SMD LEDs, behind a light diffuser panel on the bottom side. (Or vice versa.) It sports a battery capacity of approximately 10,000 mAh; and to service that, it comes with two USB-A power outputs, and a Micro-USB input.

I should note that it has “5V 2A” printed on the USB port side. But with no indication as to whether it is in reference to the input socket – that it is written immediately under, or for the two output sockets on either side of it. This is typical fare for low-end, unbranded Chinese electronics. It very likely can neither draw nor deliver that displayed wattage. Units like this typically sold at a price point of £12 to £20 quid in their time; from either online retailers like Amazon and eBay, or locally in street markets and electronic stalls.

Fault summary

Now to the faults. Plural. Long story short – the power bank was dropped, and landed very poorly. The injection-moulded plastic lip which mounts the solar panel onto the enclosure, simply disappeared at several key spots. Leaving the only thing keeping the solar panel around, being two little wires soldered into the main PCB. It was at this point that I realised that the panel was not mounted onto the case as expected. No-no-no. It was a case panel itself. An integral part of the enclosure. Without it, there’d be a large hole. It’s essentially a structural component. A load-bearing solar panel. Wow-wee.

Structural and design issues aside, the real fault that had this power bank thrust into my hands, was an issue that I am already quite familiar with myself. As it is the reason why my JuicEBitz® 10,000 mAh power bank is in the repair pile itself. (AKA “the big pile of shame/shit”.) Basically when dropped, damage was dealt to the stand-offs of the charging PCB. This is the PCB that is populated with the USB ports. The problem here is that with the stand-offs broken, cracked, missing, what-have-you: there is nothing to act as a backstop for the minor force generated by inserting a USB plug.

In other words, when a user pushes a plug into one of the sockets, there is nothing holding the socket in place. This is a necessity, because of the friction-fit nature of these connections. This means that when a user tries to insert a plug, the force involved causes the USB socket to just slide deeper into the device, as its PCB is pushed inwards. This makes it very tedious to form a firm electrical connection.

With the JuicEBitz® unit I own, I recall having to use a pen to pull the recessed socket back into place. Then push down-and-in at the same time when inserting a USB plug. This is to try to anchor the socket in place using a diagonal cross-force. Which partly makes the enclosure bottom, or lip of the socket opening act as the force backstop. A bit long-winded, but I hope the tedium of having this fault comes across. Frustrating, it is.

Tools and Materials used

Tools:

  • scissors
  • rubber-insulated locking tweezers
  • Phillips screwdrivers (PH00, PH0, PH1)
  • mini manual hand-drill (with 1.2 mm bit)
  • utility knife
  • hot-glue gun
  • metal pry-tool
  • watch/clock
  • camera (smartphone)

Materials:

  • duct tape
  • Kapton tape
  • hot-glue sticks
  • self-tapping screw

Repair procedure

Fault identification

I started by giving the power bank a good looking over to identify the obvious faults quickly. The most glaring of which was the solar panel hanging off by its two fragile wires; themselves only anchored via a pair of shoddy surface-mount solder joints. The injection-moulded plastic case had so many sections missing that had cracked off, that when combined with the stringent time limit, simply made repairing this device properly a non-starter. My lungs are pleased to hear that there would be no plastic welding today. I planned from the start to just duct tape this thing together. That is once I was done with the more concerning fault.

This main fault being the broken (let’s say) left-side PCB stand-off. This is the reason I was tasked to fix the power bank in the first place. As the annoyance of this fault made its owner offer the device to me to junk for parts, while I was eyeing it for the repair. They simply weren’t willing to tolerate it anymore. An offer that I immediately refused. Since as of late, I have become very cognisant of the fact that I am now more an electronics junk collector, than a hobbyist repair technician.

Repair prep

Back to task. The PCB stand-off unmoored itself from the chassis with a large crack. The stand-off’s stem was only present due to being connected to the PCB via the tiny self-tapping screw holding it in place. Attempting to unscrew it with a Phillips screwdriver alone made the whole screw-stand-off assembly spin in place. This old yarn… This was remedied with the use of a pair of rubberised locking tweezers, to grip the plastic stand-off and hold it in place. Which in turn enabled the self-tapping screw to be successfully extracted, and the stem discarded.

Once that was done, I was presented with an enclosure that had thinned internally where the missing stand-off used to be present; and a partially moored floating PCB. The USB sockets’ PCB was freely moving: rotating around the intact right stand-off, like a dog leashed to a post. This initial process of identification and prep took about ten minutes. Tick-tock.

Fault demonstration video

Prospective repair #1

I should note – it was suggested to me that I could just hot-glue the lot. And leave it at that. However I did not go with this quick-and-easy solution. The reason not to consisted of a fear of the hot-glue failing in the medium-to-short term. I.e. within a couple of months of daily use.

Consider a scenario where the user inserts a USB plug into the socket, and uses a little too much force. The excessive force could cause the solidified glue to break away from the smooth surface of the enclosure. Resulting in the hardened glue-glob being allowed to just slide and move alongside the PCB that it is enmeshed within.

Alternatively, under conditions where the device is significantly warmed, either due to environmental factors, or via use (charging/discharging): the glue could become soft again and simply receive and accommodate the moving PCB. Rather than butt against it as an intended structural component.

In either scenario, the recessed socket would be considerably more difficult to pull back to its original position. Due to the presence of the additional obstructive material. All the messy hot-glue in the device, at this point is now less than worthless. Because it is not performing its intended function, while simultaneously adding a relatively significant hurdle for any subsequent repair. At a baseline it adds an obstructive hurdle that needs to be jumped over. Thus increasing repair time by default.

However its obstructive nature also adds complications (i.e. difficulty) that increase repair risk as a consequence. This is the chance of accidentally killing the device while working on it. Imagine the additional task of having to remove glue from sensitive components. There is a real possibility that this additional task could go awry, and cause damage that could result in the device becoming inoperable.

For example: a technician, while in the process of physically removing the glue, might accidentally pull up tiny SMD components from the PCB. The resultant situation now requires either doing a more extensive repair than planned (possibly one that exceeds the device’s value in terms of costs), or scrapping it for parts. Hence ending its service life.

Prospective repair #2

I wanted this job to be a one-and-done. NO sloppy seconds! So I needed something more substantive than cheap filler adhesive. I needed a strong mechanical backstop. Not a weak chemical one. I needed to replace the plastic stand-off with something that does the same job, in the same manner.

Now there are many ways to skin a cat. For example if I had all of my plastic welding equipment to hand: such as my dedicated soldering gun, appropriate plastic-type donor rods, PPE; as well as adequate time, space, and ventilation… In that case: I would have slowly melted in a mound within the divot left by the missing stand-off.

After confirming that it has adequate height and strength for the application – I would snip/file off any excess material that got in the way of any other components. This includes filing the tip flat, so that it butts comfortably against the PCB that will be mounted onto it. Then using a mini manual hand-drill, I’d make a hole in the DIY stand-off. One sized for the original self-tapping screw. Which in turn will automatically cut and thread the hole as it is screwed in. That’s the “self-tapping” part. Hey presto! Done.

Unfortunately. This is all fantasy. The reality is that the time limit alone prevents this. Just carefully taking the device apart would take around thirty minutes, because it would need to be done in a mindful manner, while taking reference photos.

Speaking of which, all this humming and hawing has cost me around fifteen minutes. I am up to around twenty-five minutes into the repair at this point. I have used about 60% of my allotted time, and have yet to actually do anything. Is this a problem? No. I don’t think so. Proper planning takes time. Measuring twice often takes more time than cutting once. Still though, I would be lying if I said that I wasn’t antsy to get cutting.

Chosen repair method

After dismissing the previous two repair ideas I decided to compromise with something in between. I.e. crafting a quick mechanical backstop. For my chosen repair, I used a mini manual hand-drill with a 1.2 mm drill bit. I used this tool to drill a hole through the enclosure itself to the outside. The hole being located at the centre base of the missing stand-off.

I then used a PH1 screwdriver to drive a larger self-tapping screw in through the outer side. (Screw size: approximately ⌀4 mm × 7 mm.) This screw, when fully inserted into the enclosure, pushed itself into the PCB. Its tip entering the smaller PCB hole that the stand-off previously butted against, which the significantly smaller original self-tapping screw fitted into.

This larger screw damaged the PCB hole as it stretched it open. This is due to the screw’s thread cutting into and pulling the increasing girth of the screw shaft through the ~⌀2.5 mm PCB mounting hole. However the screw’s short length made it so that the PCB was snugly mounted on the new screw; at around halfway across the tip to the shaft, on the slope of the point.

This made it so that the PCB couldn’t fall down because the actual girth of the screw main body was larger than the hole. Nor could the PCB readily pop off the screw: because, for one thing, the threads cut into it, mechanically gripping it in place. Secondly, the layering of various adhesives assisted in keeping it in place. In addition to electrically isolating the whole area.

I covered the section in Kapton tape. Primarily to electrically isolate the metal screw from anything conductive potentially touching it. Kapton tape is an excellent material for this application, as it was designed specifically for use in and around electronic circuits. It is composed of heat-resistant materials, that are electric insulators. I.e. it operates as a non-conductive barrier while requiring a lot of heat to actually warp or alter its form. More than the local circuitry can produce under normal conditions.

More to the point. It had one more characteristic that works here. And that is that it is a rather dense material, one that resists puncture well. At least when compared to other adhesive tapes. This is good because I used layers of it to round off the sharp tip of the self-tapping screw. Note: I would have gently filed the tip off prior to insulating in this manner, if time wasn’t a factor here.

The Kapton tape was followed with a copious amount of hot-glue. This acted as an ancillary support to the screw, by gluing the PCB in place. Additionally it held the Kapton tape in place. This is beneficial for longevity since Kapton tape’s adhesive strength is its weakest point in my opinion. The hot-glue also filled in gaps in the assembled parts, thus preventing them from moving around within the power bank’s enclosure. This includes foreign objects, or loose components. Both of which could be made from electrically conductive materials.

So. That’s the repair. A self-tapping screw of appropriate size, inserted from outside the enclosure to act as a substitute stand-off for the PCB. With insulative adhesive tape and hot-glue supporting this functionality, by helping keep everything where it should be. I then wrapped the whole thing in duct tape, until it resembled a mummy. Et voilà!

This entire process took about fifteen minutes to complete. Allowing me to finish at approximately 1655. Just in time. The endeavour totalled 40 minutes from: “hey can you fix this?”, to “here you go mate. See you tomorrow.”

Thoughts on different repair types

It occurred to me that this type of repair falls under the category of a “life extension mod”. At least that is what I have taken to calling them. Repairs of this class are characterised by changing the subject device’s physical characteristics. This is either in a bid to regain lost functionality, or gain an analogous functionality to the one(s) lost. In this case replacing the stand-off with a self-tapping screw. They serve the same purpose.

Technically duct taping the cracked enclosure together is also a life extension mod. Especially when it covered the solar panel. Moving its use from virtually nothing, to nothing. Life extension mods include adding components that extend the device’s service life at the cost of upsetting the original design. The adding of foreign components is what makes it a modification. Modifications of this calibre typically sacrifice aesthetics, and secondary functionality, in order to facilitate the primary function of the device.

This type of repair is typically employed when a more conventional restorative repair is not viable. This could be due to a number of factors, including: parts availability, time, cost-effectiveness, etcetera. For example a laptop with a smashed screen, whose replacement display panel costs more than a whole “new” second-hand device. Due to this circumstance, the repair technician could opt to have the whole screen assembly removed. Then mount the laptop to the back of a spare monitor or television, and simply use it in conjunction with this display and external input peripherals. One has effectively extended the life span of the original device, and maintained its core functionality of being a computer in the process – albeit at the cost of its original form-factor, and all secondary functionality that that facilitated. (E.g. Portability.)

In the case of our power bank: had I initiated “prospective repair #2” as a base – this is the one where I rebuild the PCB stand-off using melted plastic, and the original screw. And once that was done, if I then added to it by using plastic welding to reform the enclosure to a degree where it could hold the solar panel without the need for adhesive tape. Then this scenario would be an example of a restorative repair, as I would have restored this damaged and faulty device to something resembling factory conditions / specifications.

I wish to discuss this particular subject in more depth; however, I will leave it to a dedicated article on repair types. This is sufficient for this article.

Thoughts on electrical safety

Let’s discuss electrical safety briefly. It is my judgement that the device is within acceptable safety parameters for its use case. My bodge repair did not make the device any more dangerous than it already was. At least in no meaningful manner. I believe that if anything, it actually made it marginally more safe than it otherwise would be, if its user kept using it in its current condition.

That being said I make no claim that it is universally safe for extended use and under myriad conditions. It is still very much dodgy. Just within acceptable margins for use within the scope of operation that it is currently under. I.e. to sit in a bag for 6 hours, to charge a phone during a lunch break, return to the bag for another 6, then to be recharged at home.

I will now opine on the condition of the device. The insertion of a metal screw from the outside of the enclosure and the embedding of it into the PCB, does not pose a noteworthy electrical safety risk in my opinion. The reason why is that the screw is very stable and secure, since it is acting as a stand-off.

Although conductive in itself, the chance of it moving (and consequently causing damage to other components) is minuscule. This is because it is a support piece, i.e. a fixed structural component. Any force sufficient to dislodge it from its position, would in the process have caused such severe collateral damage to other components in the device, that discussing this scenario becomes a moot point. Since the device would already be inoperable.

At the same time the only part that is likely to cause any damage to other components: the sharp point of the screw, is locked into place by being embedded into the PCB. Additionally it has been covered with layers of Kapton tape to prevent it piercing (and damaging or shorting) any loose components that may interact with it. On top of this initial tape layer, I also added a copious amount of hot-glue to further secure everything in place; as well as provide a physically thick insulation layer. One that the sharp screw tip simply cannot pierce or cut through, at least while its movement is arrested as it is.

Now for the PCB damage. This was done, slowly and deliberately. Just enough to embed the screw into the PCB securely. It entered the stand-off through-hole and enlarged it, partially delaminating and scoring the PCB in the process. Just enough to achieve a strong grip. However not so much that the damage incurred by the PCB interfered with the electrical circuits that are hosted on the board. Note: the stand-off PCB hole is not part of any circuit on the board. It is not a ground or anything like that. It’s just a hole in the corner of a simple board made of fibreglass.

Finally here is why I think that this repair actually has aided this device’s electrical safety, rather than hindered it. The main factor in play is the addition of insulative materials. Such as covering sensitive sections of the printed circuit board with Kapton tape. A tape specifically made for use around electrical components. Additionally all the hot-glue around the device further insulates any sensitive components around the board from what I believe is the main risk factor.

This being electrical damage caused by conductive foreign objects bridging traces (etcetera) and causing shorts within the circuit. For example liquids (drinks), graphite dust/shavings from pencils, tiny pieces of tinfoil (home-made sandwich wrapper). All of which could readily be encountered within a labourer’s work bag. Which is where THIS particular device is stowed when not in use.

These foreign objects are all something that the power bank’s internal circuitry now has an increased likelihood of encountering. This is due to all the new gaps in the enclosure post drop/break, with the missing sections acting as additional points of ingress. And by insulating the PCB directly, it gives the device back a small resistance to having these substances encounter live circuitry.

However, I do not want to oversell this. The added insulation in my opinion would only protect from errant particles. Such as a spray of water, or the odd raindrop that entered a hole in the enclosure. It is by no means a replacement for an intact enclosure. Since this represents an effort of localised insulation, rather than meaningful water resistance. Such as an intact enclosure with an IP rating would.

However that being said, it is still significantly better than bare circuitry, especially when paired with the outer duct tape covering most of the gaps in the enclosure. I.e. it is better than nothing. And nothing is what you had before. Dodgy is head and shoulders better than exposed.

Repair results

I am capping off this article for publishing a little over a month post repair. I have yet to hear any complaints concerning the device. In this case the absence of complaints can be considered praise. I know they’re still using it as a daily driver to charge their phone while on shift, and it is still going. That is enough feedback for me to consider this repair a success. Especially since it was initially given to me to scrap.

The sad thing about this device is that – even with this repair – it is still in the fourth quarter of its lifecycle. It is considered old for a budget consumer electronic device, being more than 3 years old. It has sustained damage that is not economically viable to repair, which also brings its resale value to £0, and now it has been repaired in a manner that makes it unsightly.

Meaning that the only thing it has left is its functional utility. Under these circumstances, I’d be foolish to conclude anything other than the device operating on borrowed time. The next stage from here is being parted out, recycled, or (realistically) landfill. There’s something sad about seeing things towards the end of their life. Unpleasant analogues to people keep popping into mind. You may see this power bank here again. If I do something with it once its user replaces it or it dies, I’ll link it below.

Acronyms used

AKA – Also Known As
DIY – Do It Yourself
IP – Ingress Protection
LED – Light Emitting Diode
PCB – Printed Circuit Board
PC – Personal Computer
PPE – Personal Protective Equipment
SMD – Surface-Mount Device
USB – Universal Serial Bus

Closing thoughts

Now on a more personal note. I really enjoyed this project. It was a quick-and-dirty repair. The tight time constraints coupled with the less-than-ideal circumstances, I believe, gave me permission to stand down any notion of perfectionism. Something that I really struggle with. Damaging my general net productivity. I mean did you notice how I didn’t even have a proper workspace to tinker on?

I was fixing this thing on a small surface that was made from a mini tablet PC covered with a plastic bread bag. This is the Lynx 1010L that I wrote half of this article on. Which in turn was precariously balanced on another PC. An old Amstrad PCW16 – a project for another year.

What I am trying to get at, is that I really wasn’t prepared to fix anything when this went down. And hey! If the project was so evidently rough and ready, why should the write-up be approached in any other manner? Getta’done.

Thank you for reading.

#0045: Resolving a website security compromise

#0045: Resolving a website security compromise

title image for removing spam article, depicts angry Pokemon Magnemite floating above a browser's diagnostics panel focused on A Tinkerers Blog . NET

Preamble

I find that I have gotten into the habit of using ChatGPT in my daily routine. Mostly asking it to make visual assets for my D&D Underdark campaign. But also as a general stepping off point for research. It has replaced Wikipedia in that regard. In this line of activity, I recently started asking it to review my articles. Initially out of curiosity; however later, because I genuinely found its output useful. I mean how often in life do you get someone who actually is willing to proof-read something that you wrote, give critical feedback, and on demand no-less. Rare as hen’s teeth almost.

Well the other day I decided to go one step further, and asked it on a whim to give me recommendations to improve my website as a whole. This is where our story begins. It listed a bunch of stuff. SEO things, formatting, general tips, a whole bunch of things that I frankly did not care about. However, in that list it also contained a directive to remove the spam links in the footer of my ‘post index page’. Just another line item. Reading this I was stunned for a moment. Holding my breath in disbelief. Then upon checking the website itself. There they were. And not just on that page. But all of the pages of my website. From the homepage to about-me. The same line of malicious spam links in the footer.

screenshot of post-index webpage displaying spam footer

Defining the security compromise

It was at this point that I realised that my website was compromised. The reason why I was so initially shocked is because: well, up until now running this website has had zero issues from a security perspective. I thought I was good. I just implemented basic turn-key solutions to get secured. And with both Bluehost and WordPress reporting no security issues. Nothing but green flags, err- icons. Naturally I thought that my little blog was fine.

  • screenshot of Bluehost displaying good site status
  • screenshot of WordPress displaying "good" site health

It was not. At the bottom of every page of my blog contained a line of text that I did not put there. It consisted of six hyperlinked words; with each connecting to a separate online domain. Initially they looked like nonsense words to me. A random computer generated string of letters followed by numbers. However a cursory (DDG search) look into the spam text itself, revealed that it consists of the names of online gambling platforms in east Asia. Albeit shady and rather low rent, judging from their advertising media.

Just look at the AI art they use to advertise themselves. Call me a hypocrite if you like, but I do not think it looks good employing this kind of art for a professional business. Just look at that lion’s tablet holding hand. Yikes. Who the heck green lighted this advert? It is signs like this that make the thing look shady. Oh yeah, and the whole injected spam links fiasco doesn’t help either. All signs point to scamming.

  • low quality AI generated advert image for Benteng786 gambling platform
  • low quality AI generated advert image for Benteng786 gambling platform
  • low quality AI generated advert image for Berjayatogel gambling platform
  • low quality AI generated advert image for Piton786 gambling platform
  • low quality AI generated advert image for Piton786 gambling platform

Now interestingly, the hyperlinked web-addresses behind the gambling platforms’ names, are actually for completely unrelated websites. They cover a varied mix of topics. At least judging by the web address names themselves. Things like ‘Arabian travel news’, ‘Chinese medicine’, ‘plan your website’, and ‘getting paid’. Not only this, but they also employ varying top level domains such as ‘.co’, ‘.com’, and ‘.org’. With the lack of any semantic connection to the hyper-linked text itself, coupled with the sheer variety of websites present: leads me to believe that these are potentially compromised websites themselves. Formerly legitimate domains that have been hijacked to be used for illicit purposes. It is the scenario that makes the most sense to me at the moment, with the limited information that I have.

image displaying spam footer's hyperlinked external websites

Alternatively they could be legitimate websites (i.e. a website that offers an actual legal service) – that have contracted a shady third-party agent to improve their traffic metrics. And the contracted agent decided to do that via injecting backlinks into WordPress blogs. Honestly, it is plausible. I mean there are a lot of WP blogs, and they all pretty much use the same security packages, setup, and general infrastructure. Once a vulnerability is found for one, chances are good it’d work for nigh all.

Either or, there is no reason to actually click any of these links to try to verify my claims. As there is nothing tangible to be gained from it, especially when stacked against the unknown risks of visiting a potentially malicious website. Now back to the spam itself. The footer read something like this below, albeit in a randomised order. Same names, same links behind them, just in a random order upon page refresh, or page change.

“benteng786 | piton786 | berjayatogel | benteng786 | benteng786 | benteng786”

So now we know what this essentially is: illicit advertising. Spam. Interestingly this is the main reason why I do not allow comments (or even ping-backs) on my articles. I removed that vector for spam as I did not want anything here like: malware links, or gibberish bot comments. Anything that I would have to actively manage and remove. As genuine reader comments are not worth the overhead that an open comment section would incur. And I don’t want to go to the lengths of employing things like CAPTCHA technology to filter them out. Or even use the built-in Akismet tech for that matter. My primary efforts (and attention) in regards to this website needs to go to producing content. Not reading and moderating comments.

Moving on. Here we have a scenario where an agent has managed to place its spam into my website’s footer. Where is it stored? How can I remove it? And how did it do this? These are the three questions that need answering. And even as I write this post initial fix: I am still not sure how to answer. As I am waiting to see if the spam comes back, using a regenerative method that I missed. One that is hidden elsewhere, deeper in the code.

ChatGPT v6 AI image of Edward from Cowboy Bebop wearing her hacking VR goggles. Which are displaying lines of code. She is in an Internet Cafe with the subtitle "Session #09 - Scamming with Edward".

My experience with tools and resource management

I have noticed something about technology in general, specifically software. Whenever you try to do something that is non trivial – very quickly it becomes apparent just how crap everything actually is made. How it’s all just assorted pieces of balsa wood, struck together with rubber bands and PVA glue. In this case dealing with the Bluehost interface, as well as WordPress’s. I had to bounce back and forth between them constantly. As core necessary functionalities were spread across both platforms. Not to mention the use of third-party tools, each with their own eccentricities and learning curves.

With regards to BH and WP: they did not work as expected half the time. Either functionality was hidden in segments that weren’t named in a manner where intuitive deduction would get a user to them. OR when they were found – they glitched out and did not function – either as expected, or as the tutorial explicitly demonstrated that they would. For example my Bluehost FTP section no longer loads. Just doesn’t load. Full stop. Do I have connections available? Yes. I know this because I am using them. Can I see them on Bluehost? No.

Honestly if it wasn’t for the AI chat bots holding my hand, as well as Bluehost’s tutorials I would be lost at sea on this one. So thank you both. ChatGPT, and Bluehost AI. They saved me a lot of time trawling through forums like Stack Overflow, or asking in IRC. Time I honestly can’t afford right now. Because time isn’t just flat time, it is also momentum. Starting and stopping projects like this with large breaks to work and take care of responsibilities seriously staggers these types of efforts.

screenshot of BH FTP not loading

Tools used

  • web-browsers (Brave, Firefox)
  • FTP client program (Filezilla)
  • online host provider (Bluehost)
  • website management suite (WordPress)
  • online file manager (cPanel File Manager)
  • local file manager (Nemo)
  • text editor (Xed)
  • AI chatbots (ChatGPT & Bluehost AI)

Troubleshooting procedure – step summary

Step 0.0 – back up the website (using either FTP or in-browser download)

Step 1.0 – process all files and remove vulnerability vectors in a systematic sweep (test between each sub-step)
Step 1.1 – eliminate possibility of active hack via login credentials (change PW, install 2FA)
Step 1.2 – update core software suites/services (WordPress, SQL, PHP)
Step 1.3 – process all WP plug-ins (delete unused, update in-use)
Step 1.4 – process all WP themes (delete unused, update in-use)

Step 2.0 – target location of suspect file(s) in other areas
Step 2.1 – identify suspect file(s)
Step 2.2 – confirm presence of malicious code within any suspect files

Step 3.0 – remove infected file(s) from codebase
Step 3.1 – verify spam footer removal

Step 4.0 – housekeeping (closing tasks)
Step 4.1 – clear/setup website page cache (via WordPress settings)
Step 4.2 – reduce page revisions (via WordPress settings)
Step 4.3 – close FTP functionality (via host provider settings)
Step 4.4 – verify that the job (and clean-up) is done.

Troubleshooting procedure – write up

Step 0.0 – back up the website (using either FTP or in-browser download)

The first hurdle arose before the main troubleshooting actually began. Step 0 is making a backup of my website as it is. All read sources as well as common sense recommended this as an initial action. Unfortunately this proved to be an issue because firstly the website was larger than I expected. It turned out to be around 8-9 GB. Downloading this archive using the Brave browser, from Bluehost itself throttled the speed to around 200-300 Kb/s. This took around 10 hours total. Nothing I could do about the speed.

The first night the damn thing failed five hours into it, while I slept. The second time it succeeded however. I had it running in the background while I used the computer during the day. I took time to pause and resume the download using the Brave browser’s functionality. As I rather irrationally thought that this action ‘refreshes’ the download. I mean why did it fail during the night when left alone? Yet succeeded during the day with far more potentially destabilising activity around it, as well as active tampering? The truth is that there is actually no way to know at this level. We’d need to expend a huge amount of resources to find out. That’d be a far bigger project than this one.

An alternative method of backing up my blog includes downloading to my local machine using FTP protocol. I used Filezilla as my program of choice. Good reviews, popular, well documented, works for Linux. Also took about the same time. Albeit without the binary pass/fail of downloading via the browser. Since I could just stop downloading at anytime, shut the PC down. Then start-up later and just resume on the specific files and folders that I left off on. The entire website wasn’t packaged into a single archive file, as it was above. The versatility of using FTP is a far superior method for this reason.

screenshot displaying the download speeds of website archive file. As well as the 4.9 GB size of the failed file.

Step 1.0 – process all files and remove vulnerability vectors in a systematic sweep (test between each sub-step)

Now that I think I know what I am dealing with. It is time to do something about it. Let’s start by trying to answer the first question. Where is it stored? In other words: where is the actual code for this bullshit written. What file, and in what folder of my website is it in? ChatGPT recommended that the compromising code could be hiding in a number files. It could be within out-of-date or compromised third-party plug-ins, WordPress website themes, or software suites, or put into the website itself using hacked user credentials.

Step 1.1 – eliminate possibility of active hack via login credentials (change PW, install 2FA)

I had little suspicion that it was the latter because I only access my website via the one account, on the one computer, on the one network. So it’s not like they’d get a chance to capture my credentials on a public network or anything like that. Additionally I use Bluehost’s two-factor authentication (2FA). Which sends me an email with an extra temporary code every time I try to log into my website. So a malicious agent hacking into my account and getting past all that – just to then post spam links in the website’s footer and seemingly nothing else – seems dubious to me. There are cheaper ways to achieve this given result. Never-the-less, change the password.

Step 1.2 – update core software suites/services (WordPress, SQL, PHP)

What are those cheaper ways? The one that jumps to mind is exploiting a known vulnerability in an underlying software service. I don’t keep up with the niche news, but anyone who does would naturally know them as they are made public. So the first thing I did in this regard is try to plug all these potential holes by updating all the software that I use. Specifically the WordPress suite, as well as what SQL and PHP versions the site was running.

WordPress was up-to-date, SQL and PHP were not. I don’t recall what version SQL was before updating to the current version. This updated within WP. Now PHP I updated from the 8.2.x version that I was running to the current 8.5.x version (as of 2026-10). This was done on BH because WP could do nothing but recommend I write an email to my host provider asking for an update. It genuinely made me laugh to read that.

Once SQL and PHP were updated I checked the website to see if the spam footer was still there. Yes, it was. I took a little time off, refreshed everything, then checked again. Confirmed that I was indeed running the latest version, then checked once more. At this point I think it is fair to say that the malicious code itself was not embedded into whichever database or PHP components that I have installed to run on my site. In other words the malicious code is not part of the PHP/SQL codebase currently underlying the website. Since its presence is still observable post update, with new and intact versions running.

I do suspect that a vulnerability in an outdated version, specifically of PHP may have been used as an ingress point to put the malicious code into my website initially. However with the update to current, this potential point of ingress should now be plugged. It’s not definitive, nothing is at this high level. However this effort does represent a genuine hardening of security.

(As an aside, can you tell that I don’t actually know what either SQL or PHP are or do? I don’t want you to walk away thinking that I’m more knowledgeable than I am. I’ve heard about them before. I know one is used for managing databases, and the other is critical to the underlying internet infrastructure as a whole. That’s about it. Honestly it’s more sorcery than science to me. Additionally I am not sure why I completely dismissed SQL as an attack vector at this stage. I likely tunnel-visioned on PHP, because I knew that it could be used to actively do things like inject malicious code. Whereas SQL is just a type of databasing language to my limited knowledge.)

screenshot of drop-down menu containing PHP versions

Step 1.3 – process all WP plug-ins (delete unused, update in-use)

Moving on. The next suspect consisted of the host of out-of-date plugins that I had installed. Active, and deactivated alike. I removed many that I had no longer use for. Then updated the ones that survived the purge. Thirdly, I set these survivors to auto-update. After this I tested the website again. Refresh, look, wait, refresh, look again. Look again on another device. And unfortunately the spam links where still there.

Plugins processed:

  1. Akismet Anti-spam: spam protection
  2. Code Embed
  3. Embed HTML5 game
  4. Enhanced Text Widget
  5. Jetpack
  6. Mouse cursor customizer
  7. Stop User Enumeration
  8. The MOJO marketplace
screenshot displaying all the plugins that were processed

Step 1.4 – process all WP themes (delete unused, update in-use)

Once the plugins were sorted, I turned to the themes. All were out-of-date. Same procedure. Delete anything that is not of use, and update all that are. I removed all except the actively employed theme. Deleted number one to four. And updated five. Then set it to auto-update.

After this the website was tested again. The spam links were still there, on every page as before. To eliminate the active theme from suspicion of harbouring malicious code, I installed and applied a completely new theme. Named “BlogArise” by Themeansar. And sure enough the spam links were still present in this new theme’s footer. With a little deductive reasoning, we can conclude that the active malicious code is not in the free WordPress “Coral Dark” theme that I use. As it did not go with it.

Themes processed:

  1. Twenty Twenty-Two
  2. Twenty Twenty-Three
  3. Twenty Twenty-Four
  4. Twenty Twenty-Five
  5. Coral Dark
  6. BlogArise
  • screenshot of WP themes
  • screenshot of BlogArise theme page
  • screenshot of TB splash-page with original Coral Dark theme
  • screenshot of TB splash-page with alt BlogArise theme
  • spam footer theme comparison image

Step 2.0 – target location of suspect file(s) in other areas

At this point I have eliminated the main hiding places for the malicious code. It is not in the up-to-date Coral Dark theme. It is not in the updated plugins. And it is not in any of the infrastructure software suites: WordPress, PHP, and SQL. All of which were recently updated, and verified.

Before we go on I will acknowledge that nothing is 100%. Obviously I could have missed it in my sweep, and it is hidden in one of these things mentioned. I know that, however for expediency one cannot keep second guessing oneself. All these vectors were sufficiently addressed. As in there is nothing that immediately pops to mind that I could do further to validate their file health. I.e. confirm a lack of infection.

Step 2.1 – identify suspect file(s)

This involves picking over all directories to find a suspect file. Now with a lot of the file base eliminated, it narrows the search perimeter to those files that were not in the initial sweep. Looking over the directories I located more plugins. Within the WordPress “Plugins” directory, under the “Must-Use” sub-directory. This sub-directory was not featured in the initial sweep. It contains 3 items.

‘Must-use’ plugins:

  1. Endurance Page Cache
  2. SSO
  3. worked.php

One of these is not like the other two. Both “Endurance Page Cache” and “SSO” had version numbers, credited authors, as well as being easily searchable with plenty of hits describing exactly what each does. Whereas “worked.php” had none of these things. No version, no author, and no real hits when looking it up. Plus it is the only one with the ‘.php’ affix in its display name. Likely mirroring its actual file name. A little rough touch that gives it away. Especially when viewed in conjunction with everything else. Still at this point it was just mounting suspicion. I did not have anything concrete.

From the WordPress UI I could not enter to view nor edit this file. However it did contain the direct file path directory for these specific (3) plugins. In this case “/wp-content/mu-plugins”. In hindsight I realised that the sentence around this file path directory is yet another clue. One that explains the observable behaviour of the spam links themselves. See below.

“Files in the ‘/wp-content/mu-plugins’ directory are executed automatically.”

Alternatively, if I did not find the suspect file in this manner. Then I would have tried to track it down more directly via a web-browser’s diagnostic tools while the file is actively running on my website. This could be done by pressing ‘F12’ (in Brave & Firefox) while observing a webpage. This will allow one to view the HTML code for the webpage. From this one could navigate to the subject element. Then inspect it for clues. In the example image, I should have clicked the ellipsis to expand this out. From this one could potentially get the file name, and/or its location in the codebase.

If not that, then weaker (i.e. less direct) clues. For example the HTML for the spam footer has a class name of “pdn-footer-links”. With “pdn” likely standing for “Public Display Network”: i.e. advertising. (Source ChatPGT.) In addition this HTML class name is found verbatim in the ‘worked.php’ file as part of a function name.

If all else fails then a hail-Mary Ctrl+f keyword search on the whole local codebase could be done. Example known keywords: footer text names (e.g. “piton786”), hyperlinked domains, or any class names found in method above. Any hits would likely be contained within a lead file, if not the target file containing the malicious code itself. This is is also a good way to find supporting files. Such as code regeneration files, designed to reinstall the main file once/if it’s deleted.

Step 2.2 – confirm presence of malicious code within any suspect files

To access the “worked.php” file itself: I used my OS’s file-browser to locate the local copy that I had on my computer using the above file-path. Sure enough. The code is malicious. Upon opening the file in a text editor I found this (below).

Code snippet:

function pbn_footer_links_config() {
		return array(
			array(
				'url'    => 'https(colon)//planyoursite(dot)com/',
				'anchor' => 'benteng786',
				'title'  => 'benteng786',
			),
      ...

Step 3.0 – remove infected file(s) from codebase

To remove the file from the online website’s live codebase itself; I connected utilising the FTP protocol via the Filezilla client; and the previously established host settings to enable this functionality. Within Filezilla I used its built-in file-browser to navigate to the same directory as I did in the local version. Then simply deleted the malicious file within Filezilla. And hey presto! It is gone. That’s it. (As an alternative you can use the cPanel file manager from the host provider.)

Step 3.1 – verify spam footer removal

After refreshing my website the spam footer was gone. If it is not gone, check that the file is indeed gone in the WP UI. If it is then move to step 4.1: clearing the page cache. As likely the live website that you are viewing is a cached version of the one that you are editing.

Step 4.0 – housekeeping (closing tasks)

Housekeeping. I define ‘Housekeeping’ as the assorted miscellaneous tasks that are not part of the core repair, however they are necessary for properly finishing off a job. For example: When repairing my bicycle, housekeeping in that job consists of cleaning and putting all the various tools away properly. Back in their proper place where they won’t get damaged or lost. It is essentially clean up, with the aim to prevent any future complications.

Step 4.1 – clear/setup website page cache (via WordPress settings)

Here we start with purging all cached copies of the website. In my case I did not have any, I (unknowingly) never set the site to create them. I only thought that I did because I confused it with page revisions. This is where WordPress would make copious copies of anything that I publish every time that I edit it. I decided to correct this situation by setting up a website cache.

Caching tools are within the host provider’s settings section. Specifically with Bluehost it is under the ‘Performance’ tab Bluehost. Here within ‘Caching Control’ it gave three options for enabling caching. ‘Assets Only’, ‘Assets & Web Pages’, and ‘Assets & Web Pages – Extended’. I chose the middle option and left it at that. Done. My website is now cached.

Coincidentally there are other relevant tools on this page. ‘Clear Cache’ to remove any cached copies when desired. Obvious, really. However a very important step, I would have had to take if I had any cached copies of my website. A more interesting tool is Google’s ‘Page Speed Insights’. This seem like a tool that loads up a website and then assigns a score out of 100 to represent the speed that it loaded in.

Initially with no cache I got a 98/100, then once I set up a cache and retested. I got a 100/100. Honestly I don’t put too much stock in these types of tools when they report too positively like this. On one hand yes my blog is primarily simple images and text. And little more. However when it is a little more, things go south quickly. Loading video times is abysmal. It slows everything down. Including trying to navigate off page. Obviously this tool did not try to load up an article containing embedded video clips otherwise the score would not be as it is.

Before moving on I will say one thing. It occurred to me while editing this article for publication: if my website did have a cached version active, then my entire workflow would have been upset by it. This is because any changes made would not immediately be live to see. Since I would be visiting a cached copy each time I clicked to check on the footer. It only occurred to me now at the end of process. With that in mind I think it would be good practice to clear and remove website caches at the start of the process going forwards, just after backing up the website. I guess it’s true what they say about experience.

“Experience is something that you don’t get until just after you need it.” – Steven Wright.

Step 4.2 – reduce page revisions (via WordPress settings)

Now that the cache is all sorted. It is time to do something about reducing the website size. I wanted to try to do this by reducing the number of page revisions. That way I didn’t have to store every past copy of an article. However as I was looking in to it. I realised that I could not find it in the settings. Any of them. And upon getting frustrated and asking ChatGPT. It told me that there is no setting in the WordPress GUI for it. Upon reading this I decided that this tangent was simply not worth the time and effort. Of trying, testing, and verifying. At least not at this moment. It is a project in itself. We have to keep moving while we have momentum.

(You may wonder as to why I would keep this section here, if nothing got done? It is because I am documenting my workflow. And often I would hit dead-ends like this. Although this isn’t necessarily a dead end; it’s just a side-quest that is going to take more time and effort than which I have portioned for it. It is important to know when to move on with these things. I will pin it for a future visit however, as I find the topic interesting.)

Step 4.3 – close FTP functionality (via host provider settings)

This is a perfect exemplar that demonstrates the clean up analogy I used previously. Here we put away our tools so that they don’t cause any issues in the future. Here we close/remove the FTP connections that we setup in order to access and download the website previously. This closes a potential attack vector to the website going forwards. If you need to use FTP again, just set it up again if and when you need it. Keep it while you need it, and then remove it when the job is done. It is good general OPSEC.

Step 4.4 – verify that the job (and clean-up) is done.

Verify stage. Test the website thoroughly. Flip through a lot of pages, scroll, refresh. Close it and reopen. Across different devices (mobile/desktop), and browsers. Until one’s mind is set to ease. This is the final housekeeping task. It is the last look before turning off to do something new. Once satisfied that nothing was missed. Nothing in the project. Either the project piece itself, or the clean up after. Then we are actually done.

Acronyms used

AI – Artificial Intelligence
BH – BlueHost
ChatGPT – Chat Generative Pre-trained Transformer
DDG – DuckDuckGo
GUI – Graphics User Interface
FTP – File Transfer Protocol
HTML – Hypertext Markup Language
IRC – Inter Relay Chat
LLM – Large Language Model
OPSEC – Operational Security
OS – Operating System
PC – Personal Computer
PHP – “PHP: Hypertext Preprocessor” (recursive acronym)
PDN – Public Display Network
PVA – Polyvinyl Acetate (glue)
PW – Password
SEO – Search Engine Optimisation
SQL – Structured Query Language
SSH – Secure SHell
SSO – Single Sign On
TFA/2FA – 2/Two Factor Authentication
UI – User Interface
WP – WordPress

Closing thoughts

I am finishing this article on the 22nd of October 2026. Around two/three weeks after this issue was fixed and it seems like it has not resurfaced. In the interim a mechanism for replanting the spam footer file has not been activated. This means that in all likelihood I solved this problem. I identified and removed the malicious file causing the spam footer, and likely purged the files that constituted the security hole that allowed ‘worked.php’ to be implanted within the ‘mu-plugins’ directory in the first place.

Unfortunately I did this without knowing the exact file vector that the hacker used to infiltrate my website. It was likely one of the out-of-date themes or plugins that were deleted. However I cannot know for certain at this point. Additionally I did not record key information that could serve as clues, such as the file creation date/time of “worked.php”, or last modification date/time of all the themes/plugins. Alas. What I do know is that A Tinkerer’s Blog seems safe (enough for now).

Since I now have a copy of the website archived locally (while actively infected); with all the out-dated themes and plugins. I could pore-over them to see if their code deviates from the official versions of that same revision (version number). To compare and contrast, looking for modifications. OR edit timings that match up with ‘worked.php’.

Additionally I could try to look up news of security holes within their general architecture. (If no code mods are found.) However that is like looking for a needle in a haystack in my opinion. Including using AI, because the robustness of an LLM’s output for extremely technical or niche things such as this, often relies on excellent prompting. Guided prompts that require a high degree of working knowledge on the subject. Something that I do not have.

Without labouring the point too much – I want to say that there is a lot more that I could do with what I have here. In order to find out exactly what happened. However that would require an order of magnitude more concerted effort on my behalf to get results. Something that I am not inclined to do at this season of my life. I hope that I do not sound like I am lazy, it’s more that I have pressures on my time and attention that are of a higher priority than finding out exactly how my website was compromised.

If I do decide to pursue this in the future. I will of-course post about it here.

Thank you for reading (my spam free article <3).

#0044: How I make basic pixel art animations

#0044: How I make basic pixel art animations

Preamble

I wanted to make a guide to how I cobble together the basic pixel art animations for A Tinkerer’s Blog. This is before learning how to do this type of stuff at a more professional level; by learning the methods in a formal course. Something I intend to pick up once my workload lightens. This is just the way I do it now. Something I wish to document for posterity. Please note that my skill level is very basic. However, I think it is also very serviceable for decorating Mein Blog. And that is enough for now. Additionally, this guide will include how to make other GIFs from images as well. Not just pixel art. Enjoy.

Tools used

Hardware:

  • Lenovo Thinkpad X230 laptop (Intel Core i5)

Programs:

  • GIMP
  • ImageMagick
  • image viewers (qview, xviewer)
  • browsers (Brave, Firefox)
  • xed text editor
  • VLC media player

Making pixel art images (using GIMP)

Creating initial image

I start by opening GIMP, my graphics editor of choice on the Linux platform. Here I created a 16×16 pixel square (256-pixel image). This is the blank slate for most of my art. With a 16×16 grid, a single-pixel (1×1) sized pen/pencil tool can be used to draw effectively. As it makes a really clean line, that also fits well mathematically for making symmetrical images.

I will use my “Tired Smiley” image as an example. The symmetry of it makes it easy to make. First thing I do is draw out guidelines. In this case an ‘x’ cross that segments the image space into 4 identical quadrants. A ‘+’ plus sign cross is good too, as are both of them overlaid. Although the plus sign would have to be 2 pixels thick to be symmetrical within this grid. Use whichever you feel you need.

I recommend using bold colours for guidelines to make them pop. I.e for easy visibility. Like a hi-viz vest in a forest. The only rule for colour choice is that the chosen colour (or a similar colour) must not be used within the image itself. Because of that I tend to go for: hot pinks, neon hues, bright reds, or bright blues. Any colour that will heavily contrast against the image’s general colour palette.

Now, using the guidelines it becomes a simple enough endeavour to key in something resembling a curve in one of the quadrants. Then using GIMP’s built-in functionality: copy that quadrant, paste it onto a new layer, then flip/rotate that layer to cover one of the other three quadrants. Repeat until we have a full circle across four different layers, then flatten to a single layer. This is a very easy way to make a circle.

After this I drew in the facial features, and saved that as a single layer. Then made several other versions, and had them on their own layers. Cleaned up the image, hid the guidelines and background. Then exported each face layer as its own image. And named them accordingly.

Naming files

I chose to name them ‘PA_TS_0_16x16’, and incremented the number for each additional image. It stands for ‘Pixel-Art_Tired-Smiley_0_16x16’. I recommend inserting the image dimensions as a filename addendum. This is especially useful when working with varying sized versions of the same images. Something we will be doing here.

Continuing. The incremental filename numbering makes it easy to keep adding images into a sequence (i.e. animation frames). This is as opposed to descriptive naming, which would require active thinking for naming each individual image. Incurring unnecessary mental overhead (i.e. fatigue). In addition it will extend the length, as well as remove the uniformity of the filenames. Two factors that are undesirable when organising the files for the animation. Especially when using a TUI.

I like to keep the names short since we will be working with them in the terminal. In other words we’ll have to write them out, and have to read them there too. Long names (or overly differentiated descriptive names) can make the output confusing, especially once they start spilling over into new lines. Additionally, for formatting: it is advisable to NOT have any spaces in the filenames. It makes working with them more cumbersome, since one will have to use quotation marks each time a reference to that filename is made.

While discussing file naming conventions, I’ll add that since this is a blinking animation I like to thematically link the zero in the filename with an open eye, and the 1 with a closed one. Because typographically they look like that. So I assign them accordingly. A silly little detail I know, and one hardly worth mentioning. However it is solely because I try to work with, not against my built-in eccentricities; as they can undermine my efforts later on in the process if ignored in the moment.

This comes usually in the form of incorrect implicit assumptions when working with data. Where one forgets the actual setup between sessions; leaving the internal schemas, biases, and implicit assumptions to kick in, in a bid to unconsciously bridge gaps in one’s knowledge. Often upsetting the workflow later down the line, when the errors are finally revealed. This is something to be cognisant of. Try to work with yourself when you can. Use the tool YOU have. Otherwise get used to going back and correcting a session’s worth of contributions. Ask me how I know.

Animation mock-up demonstration

Separate project files for each image

Next. I decided to edit each exported image in its own XCF project file. Here I scaled up each image by ten times to 160×160. Be mindful to set the ‘Interpolation’ under the ‘Quality’ settings to ‘None’. Otherwise the resultant scaled-up image would have blurry/fuzzy edges. And translucent border pixels, something that will become an issue later. At the very least this spoils the sharp pixel art aesthetic.

I recommend scaling each image in its own dedicated project file, as a final task. Because if you scale-up the main project file. You’ll have to undo it back to 16×16 every time you wish to make an edit to the core images. I stipulate ‘undo’, and not say scale back down; because scaling down from a larger image to a smaller one often damages the fidelity of that image. It is unlikely in my opinion to regain a pixel-perfect copy of the original image in this manner. This is because image scaling relies on algorithms. It is a machine guessing at what an image should look like at different sizes, with different pixel densities. Hence, it is fine for a project to have multiple project files to avoid this, as long as they are labelled descriptively. Once ready: export each image in PNG format.

Additionally before I move on, I will say that to make longer or taller images; one could either add another 16×16 to the initial canvas size, before the scale up. Or alternatively make a separate 16×16 image then join it to the primary after the resize; on a larger canvas used for the composition and layout of the final image. The example image below, is not a perfect example because I don’t remember whether I employed this particular method, or something analogous.

Making the animation (using ImageMagick)

Basic method

Now that we have the four 160×160 PNG images ready. It is time to make the animation. This is where ImageMagick comes into play. Within the terminal we will use the ‘convert’ command from the ImageMagick suite. There are two relevant parameters with arguments to pass to the program. The first is ‘-delay’, this denotes the time (in 10 milliseconds) each frame is shown within the animation. (I.e. ‘-delay 100’ = 1 second.) The second is ‘-loop’, this denotes how many times the animation sequence loops. 0 being infinite.

The example below uses a wildcard marker (‘*’) to include all files in that directory that contain the ‘.png’ file extension. However, alternatively one could name all the files manually. This is useful when the ordering of the files is especially important. Such as when reusing previously used images for more than one frame in an animation sequence, or when desiring some frames to be displayed longer than others.

Syntax:

$ program_name -parameter argument -parameter argument input_files(list_of_images.png) output_image.gif

Example command:

$ convert -delay 120 -loop 0 *.png result.gif

Exploring causes of visual errors

The first result – a four frame test animation using the method above – has a colour error within it for some reason. Frames 2 and 3 are colour inverted. Why? I don’t know. At least I did not know initially. ChatGPT tells me that there is no notable issue within the GIF file outputted. And after a little A-B testing, I realised that this display error only occurred within the ‘xviewer’ image viewer program, and not others such as ‘qview’. Additionally when displayed via a browser it also rendered as expected. So this was an issue particularly within my default image viewer program. This is something that you should be aware of. Just because a file displays oddly, doesn’t necessarily mean that the issue is within the file itself. As is often assumed.

Animated GIF displayed on xviewer

Animated GIF displayed on qview

Information on image formats

Before moving on I will make you aware of one thing here. Different image formats have different intrinsic qualities that you should be aware of. In this case, PNG images support a varying or gradual alpha level. In other words: image/pixel translucency. Whereas GIF images have a binary alpha level. A given GIF pixel is either opaque or transparent. Nothing in between. It is not a problem for my pixel art in general, as I do not make use of translucent pixels. However, it would be if, say, I wanted to make an animated GIF of the Pokemon Ghastly with its vapours clouding around it. That is an issue for another day. :/

Using a plan file

ImageMagick has a fair few parameters one could pass to it. Ones that stipulate the background, alpha, colour mapping.. all sorts. However, my personal credo is KISS. Keep it simple stupid. In this regard, I only use the absolutely necessary ones that I need to use.

However, there is one complication that I need to add. Instead of the wildcard selecting all files in order, as I mentioned above – I wanted to manually list the image files in the order that I wish them to appear. While reusing images, and having other images stay displayed for twice the allotted standard time. To do this start with an image sequence plan.

Extract from plan file:

// animation setup
Animation sequence: 0,0,0,0, 0,1,0,1, 0,1,1,0, 2,3,0,1, repeat.
Frame speed: 1.2 seconds

// terminal command
convert -delay 120 -loop 0 PA_TS_0_160x160.png PA_TS_0_160x160.png PA_TS_0_160x160.png PA_TS_0_160x160.png PA_TS_0_160x160.png PA_TS_1_160x160.png PA_TS_0_160x160.png PA_TS_1_160x160.png PA_TS_0_160x160.png PA_TS_1_160x160.png PA_TS_1_160x160.png PA_TS_0_160x160.png PA_TS_2_160x160.png PA_TS_3_160x160.png PA_TS_0_160x160.png PA_TS_1_160x160.png PA_tired_smiley_animation.gif

You see all the code written above? Imagine having to go back and forth tweaking that. It looks tedious honestly. That is why I recommend as a best practice, to create a separate plan file for your animated image. This doesn’t take long. However it makes it significantly simpler/easier to organise the animation. As it has all the information required for the animation, as well as the (easily editable) command written within the text editor. I recommend writing the shell command fully within the text editor, saving it (for posterity), then when ready to execute – just copy and paste it into the terminal. This avoids any back and forth, editing within the terminal.

Pixel Art Tired Smiley Animation image

no alpha version

GIF plan file

Making a non-pixel art GIF animation

This is very easy: simply capture the images you wish to use as animation frames, then size them appropriately for the GIF. This usually means reducing their dimensions. Use interpolation if you don’t need the clean sharp lines of pixel art. Convert files to GIF format. This lets you preview something of the final quality, or at the very least appreciate the step-down in image fidelity. You may have another within the outputted animated GIF. Although it shouldn’t be as large of a step-down incurred by the initial conversion from PNG to GIF. Moving on. Make sure all image files are uniform in dimension. Then create a plan file like above, and run the command when you are satisfied with it. Done.

For my example: I used VLC player’s snapshot feature while watching a Cowboy Bebop episode. Caught 2 frames of Edward blinking in shock after an explosion. Using GIMP I scaled them down by 50% and trimmed their canvas to 480×360. Then converted their file type from VLC’s PNG to GIF. This caused a notable loss in image quality. That’s fine. It came with a significant file-size reduction. (-66%.) Then I wrote a plan file for how I wanted the animation to display the two frames. Wrote out the command within the plan file. Tweaked it until satisfied. Then. Copy, paste, run. Done.

Image quality side-by-side comparison

File size reduction demonstration

Edward blinking animation image

GIF plan file

Closing thoughts

The technical process of creating animated GIFs is actually very simple. Because of that, there is little commentary to have on it here that hasn’t already been said. So instead I will opine on a tangential matter. The cool thing about the Linux platform is that the majority of software available is FOSS. On this platform, users have access to robust productivity tools, that are provided free of charge. And with little to no tangible usage restrictions. So any method I demonstrate here, will have no financial barriers preventing people from achieving their goals. These being in the form of commercial programs, or paid services.

I wanted to write this article as a way of documenting this process. A process whose fruits are evidenced on dis blog. This is the method that I personally use to create my pixel art animations. (As of 2026-10-30, and likely going forwards.)

Thank you for reading.

Acronyms used

FOSS – Free and Open Source Software
KISS – Keep It Simple Stupid
GIF – Graphics Interchange Format
GIMP – GNU Image Manipulation Program
PNG – Portable Network Graphics
TUI – Text User Interface
VLC – VideoLAN Client (i.e. VLC media player)
XCF – eXperimental Computing Facility

Links, references, and further reading

#0042: Creating a charging cable for a pair of Hatteker RFC-691 electric hair clippers

#0042: Creating a charging cable for a pair of Hatteker RFC-691 electric hair clippers

Preamble

This article will contain a guide to creating a basic DIY replacement charging cable. This cable is for a battery powered portable pair of electric hair clippers. Brand “Hatteker”, model “RFC-691”. A simple Chinese brand cheap pair of clippers whose proprietary charger has been misplaced. In addition to the tutorial itself, I will also opine on the value of ad-hoc crafts such as this.

Technical specifications (from device label information)

Description: Battery powered portable shaver
Brand: Hatteker
Model: RFC-691
Input: 5V DC @ 1000mA
Battery: 1x Li-ion 18650 – 1200mAh
Charge time: 1.5 hours

Hatteker RFC-691 official cable examination

The cable being replaced here is a simple DC-to-DC charging cable. It has a male USB-A plug on one end, and an IEC 60320 C7 style female plug on the other. Albeit miniaturised, polarity-keyed, and proprietary. It only has 2 lines, positive and negative. Additionally it has no active electronics. Simply passing the power directly from any standard USB-A power source to the clippers. The cable’s device is rated for 5 watts. Specifically: 5 volts direct current, at a 1 ampere max current. (It is assumed that the official cable would be built to that specification.) Very straight forward, very simple.

Why make a charge cable in general?

Why make a charge cable over buying a replacement? There are several reasons. These may include: saving time, saving money, being unable to source a replacement, or simply wanting to for fun.

With regards to saving time: it may be quicker to simply make a replacement, here and now from junk. Then it is to buy another one and wait for delivery. This is whilst also having to deal with all the potential issues that could arise within that process. One may not have the luxury of waiting the time required in order to get one’s device operable again. It may need to be working ASAP.

Now with regards to saving money. There are two factors to consider here. One is: whether or not it is in the budget. If there is no money for it, then there is no money for it. Period. It doesn’t matter how small the sum. However in my case, I simply do not want to spend the £5 odd pounds that I am seeing for what essentially is a low quality random after-market cable. One that is likely to break in a few months simply from use. Not when I can either make a better one that will last, or a free one (monetarily speaking) of comparable quality that I can then replace/fix whenever it does break.

The third reason I listed is being unable to source the exact accessory for my specific make and model. This is an issue that I have encountered after a cursory search on eBay (at the time of repair in 2025). The cable that I have found supports both model RFC-690 and RFC-692. So in all likelihood it will support my RFC-691. However it doesn’t explicitly state that it supports model RFC-691. So there is a chance that I could end up wasting time and money on an incompatible cable, even if I return it. Since I will have to pay return postage.

The fourth reason stated is for fun (aaaand profit). It’s enjoyable to make things. It is even more enjoyable to make useful things. Since one will be periodically reminded of their own abilities and competency whenever they use an item that they actually made themselves. It’s human nature. It provides a Rimworld style small mood buff: “+3 mood: used self-made tool”. (Or maybe I am just talking for myself.)

2026: Do! Not Buy.

One final reason to make this cable is that this is inline with this year’s (2026) assigned theme for my personal growth and improvement. This year’s theme is: “Do! Not Buy.” This means I am trying to focus on DO-ing more things to get to my goals, rather than BUY-ing things, that give the dopamine/illusion of progression. I am trying to build up my general skill-set experience, and simultaneously save money across the board. So make make make.

Tools and materials used

Tools:

  • snips
  • helping hands (Neilsen brand 240mm soldering aid pliers)
  • utility knife / precision knife
  • multimeter (Neoteck NTK098)
  • lighter
  • power-bank (Intempo EG0289MIX)
  • marker pen
  • nylon pry tool
  • soldering iron (Yihua 937D)
  • soldering iron wool cleaner

Materials:

  • [2x] crocodile clip jumper cables (black and red)
  • USB-A (power) cable
  • leaded solder
  • rosin solder flux
  • assorted heat shrink

PPE:

  • nitrile gloves
  • safety glasses

Build procedure summary

  1. insure that all relevant tools and materials are identified and within reach.
  2. acquire donor parts: USB-A to USB-C power cable and 2 crocodile jumper cables (AKA test leads).
  3. using snips cut off the USB plug that is not being used.
  4. using a utility knife slice down the outer insulation of the USB-A cable to expose the inner wires.
  5. using pry-tool: splay open and pull back the outer insulation, then pull out inner wires.
  6. using snips nip the insulation on the inner wires ~1cm in from the end then pull it off.
  7. twist each wire’s exposed copper strands into a tight braid.
  8. using snips cut off one side of each of the red and black crocodile test leads.
  9. using snips nip off around 1cm of the insulation of each test lead, and pull the insulation off.
  10. twist each wire’s exposed copper strands into a tight braid.
  11. plug the USB-A cable into a power-bank, and test voltage polarity of the wires using a multimeter.
  12. slide heat-shrink onto each individual wire, and onto the crocodile pair and USB-A outer cable.
  13. pair the crocodile clip wires (+/-) with their respective USB-A counterparts.
  14. wind the paired wires together into a mechanical bond (western union splice).
  15. using a soldering iron, leaded solder and solder flux – solder the western union splice.
  16. using a pair of snips: Neaten the splice profile. Remove any excess solder blobs or wire.
  17. cover the soldered splice with heat shrink then use lighter to tighten the shrink over the splice.
  18. repeat with the larger cable heat shrink to add protection and support to lead.
  19. inspect the created adaptor cable for any visual flaws.
  20. using multimeter test the outputs on the shaver, then mark them positive and negative on the device.
  21. using a power-bank, test the created cable by connecting it to the shaver.
  22. assuming success: discard waste materials from the job, and stow all tools and materials used.

Build procedure write-up

  1. Get, prepare, and test the parts.

Get a donor (known good) USB-A to USB-(irrelevant) cable. I used a random cheap power cable that came with a miscellaneous USB powered device. If you routinely buy USB powered devices, then you should have plenty of cables of this calibre on hand. As they seem to come boxed in as standard.

Cut off the irrelevant plug. Likely either a Micro-USB or USB-C plug. Then carefully slice down the outer insulation sheathing, and splay open the wires within. Unsheathe the insulation on the two wires within. If you used a data cable then they’d be more wires within. A typical USB-A to micro-USB cable contains four wires. Two power and two data wires. Typically colour coded as red (positive power), black (negative power), green and white (data +/-). Key word: typically. I recommend using a power-only cable: as they are both cheaper (to replace), and simpler to work on.

Regardless of what you have, the next step is to prep the wires and test the cable out. Splay out all the individual wires, then carefully snip the sheathing at about 1 cm down their length. Pinch this point with your finger nails and pull the insulation off. Repeat for all wires. Next use a multimeter test each wire to find the power positive and power negative. To verify the negative wire, test its continuity with the male USB-A plug’s outer metal. They are usually connected. Since this line is also typically used as a ground.

Alternatively test point the negative pin, once you have already identified the positive pin. Since it is its paired opposite. To test for positive power: plug the USB-A into a power bank, then using DC voltage mode on the multimeter test each cable until you came across something approximating +5 volts. Then do a continuity test from that wire to one of the two large edge pins within the USB-A male plug. This is the positive pin. With power positive and return identified, cut down and seal any other wires as they are not necessary.

Next prepare the crocodile clip jumper wires (or test leads as they are otherwise known). I like to use both a red and black cable to differentiate polarity. However you could alternatively just cut one test lead into 2 halves, and use both sides of it for the adaptor cable that we are making. Just have a way to mark the polarity of the otherwise identical clips. I chose to just use two differently coloured cables to save on confusion. I also have more of these cables then I need in the foreseeable future. So I had little reason to save on materials in that way. Using a pair of sharp snips, carefully nibble at each wire’s insulation at around the 1 cm from the tip of each wire. Then carefully pull the insulation off using finger nails.

  1. Setup inline heat-shrink!

This stage is the one easiest to overlook. I even forgot about it while writing this up – skipping straight to the splice segment. I have been in situations where I soldered a splice I was proud of – only to find out that I forgot to slide in some heat-shrink prior. And now facing a situation where I will have to either cut it open and start again; or just use tape to insulate the cable. Both are bad choices. There is a third choice but it involves a specialised tool: liquid insulation. You could paint the joint with liquid insulation providing that you have it to hand.

I actually made a mistake at this stage and that was that I did not employ enough heat-shrink. I used four pieces of heat-shrink. One to directly insulate each exposed copper line (yellow), one to bind the opened insulation of the USB cable (blue), and one to cover and bind the 2 crocodile lines and the yellow splice heat-shrink (red). This setup works fine. However it would have benefited from having one more large piece to cover the whole assembly.

With regards to choosing specific sizes of heat-shrink. I recommend purchasing a kit of assorted sizes, and use whichever fits the specific diameters of your wires at the time. This is because wires (in the wild) come in a myriad of non-standard sizes. (I.e. independently variable wire conductor, and wire insulation diameters.) Keep in mind that most cheap heat-shrink, shrinks to around half its default size. So size it to be snug, but leave room to allow for bumps. Sometimes you may even have to use short segments of shrink to cover just the conductor if the insulation on that wire is too thick to both snugly cover a wire’s thin conductor and bridge its fat insulation segments. This is especially true for cheap wires which skim on copper conductors, but employ a thicker insulation to give the impression of being a larger gauge wire than they are.

After doing this, then use a larger sized, longer piece of heat-shrink to cover the whole patch. This is to provide a strong protective layer for the joint. With my piece I failed to do this, thus leaving a hole into the layers of insulation which could be a path of ingress for dirt, dust, and other contaminates. I’ll just seal it with a little tape. (Not pictured.)

  1. Splice the wires together.

Next individually (and gently) twist all four wires exposed copper strands in a tight braid that resembles a solid core wire. Now pair up the wires. The positive end of the USB-A, with the end of the red crocodile clip wire. And negative with black crocodile.

Now twist the paired strands together using my splice of choice: the Western Union splice. This is done by making an “X” by crossing the 2 lengths of wire over each other. This should be done at a middle point for both wires. I will call the exposed copper of each wire between the intersection of the “X” and the rest of the wire the standing end, and the copper past the “X” the working end. Just like knot tying.

Carefully fold and twist one end of each wire’s working end over the other wire’s standing end. Repeat until the two wires are tightly twisted into each other. One tip, make sure that you are twisting the wires together in the same direction (counter/clockwise) as you twisted the individual wires themselves. This is so that they tighten, rather than loosen their structure when they are making the WU splice. Once the splice is complete: trim any excess that stands out. As this could cause an obstruction when applying heat-shrink. The sharp ends could also pierce holes in the heat-shrink once applied.

  1. Solder the splice.

Now that there is a strong mechanical (or physical) bond (or knot) connecting the two pairs of wires together. It is time to solder the connection. Making it permanent. When soldering I typically start by warming up and cleaning the iron. This is done by applying leaded solder and repeatedly dipping the iron into a metal mesh cleaner. Do this until all dark oxidation is removed, and the iron wicks solder readily. You could also apply rosin flux in this process to aid it. I personally just dip the hot iron into the flux dish as I go.

I mention this because in my opinion when it comes to soldering: preparation is of paramount importance to the successful execution of the task. Especially when using bog standard or subpar tools. As you can not rely on a tool of this quality to work readily despite poor conditions.

The actual soldering is easy enough. Apply flux to the wire joint. Then apply a little solder to the iron, enough that it adheres to iron without forming an unwieldy blob. Now line up a section of leaded solder wire to the joint. Then run the iron across the (fluxed) joint, while feeding the solder wire into the iron; and letting it melt and run into the wires of the WU splice.

Be careful to manage the heat that is put into the splice. Too little heat and the solder won’t take to the splice, too much heat and the insulation at either end of the splice will burn, melt, and curl back. Exposing more wire than desired. Perhaps more than the prepared heat-shrink could even cover. I have even had heat shrink that was placed too close to the joint shrink on me in situ. Before being positioned. So be cognisant of how much heat is actually put into the wires.

Now. Once the soldering is completed go over it with a pair of snips to remove any bumps, excessive solder blobs, or wire ends that the solder adhered to and exaggerated its profile.

  1. Apply the prepared heat-shrink.

Heat shrink should already be present on the wire at this stage. Slide it over the exposed segments then apply heat to activate it. Start with the smallest diameter segments to cover the exposed conductors, then move on to applying the larger bands that tidy and seal off the wires. Be careful not to accidentally apply any heat to heat-shrink that is not in place yet. As it will tighten and lock into place where ever it currently is. I used a simple disposable lighter for this. Alternatively you could use a heat gun or hot air rework station if you have one to hand. I KISS-ed this simple job. There was no need for anything more.

  1. Testing the hair clipper.

Before we go on. We need to gauge the status of the hair clipper. Specifically I needed to know the polarity of its two pins. To do this, just apply a multimeter across its pins. Set in an appropriate DC mode. Note the read out, then swap the probes with each other and test the pins again. Note this result.

If the result is positive. It means that the positive probe is on the positive pin; and if the result is negative, then it means that the negative probe is on the positive pin. Once the positive and negative pins have been identified: mark them on the device. This is to prevent accidentally reverse charging the clipper. Which risks damaging it, and/or the charging circuitry. (Powerbank, PSU, USB wall outlet, etcetera.)

  1. Cable test.

Test the finished cable. This involves a visual inspection. Does it look good? Fit for purpose? Is there anything notably broken on it? If it looks good; then perform a handling test. Pick it up, handle it roughly like you are actually using it without taking mindful tender care of it. Does it hold up to rough handling well? Or does it crack and fall apart? Better it breaks now, than in the moment when you need it.

Providing it passes (reasonable) rough handling. It is now time for an electrical test. I chose to use a powerbank as a power source. This is because it creates an isolated system. And limits any damage caused by short-circuits etcetera to just the created cable, clippers, and powerbank. Use a multimeter to verify polarity and electrical continuity.

  1. Final test.

With everything else worked out. Now is the time to plug it all in and see if the cable actually charges the hair clippers. Providing that the product passes this final testing. Then it is done. If it charges as expected from the power bank, then enough confidence in the cable is present for it to be plugged into a wall charger, to charge the clippers properly. Observe the first charge cycle for signs of heat build up, shorts, or any malfunctions. Otherwise: job done.

Acronyms used

AKA – Also Known As
ASAP – As Soon As Possible
CM – Centimetre
DC – Direct Current
DIY – Do It Yourself
IIRC – If I Remember Correctly
KISS – Keep It Simple Stupid
PSU – Power Supply Unit
USB-A/C – Universal Serial Bus (A type / C type)
WU – Western Union

Closing thoughts

A brief note on time. This little project was actually completed in June of 2025. This article is one of many that have been sitting in stasis for an extended time. It feels like I only did this a couple of months ago, however to my surprise, and according to the picture file names: they were taken in 2025-06. Only recently (2026-09) did I wrap up this article and make it publishable. This “wrap up”, included additional content that makes it relevant to 2026. Such as the incorporation of this year’s theme. Forgive me this deception.

With that out of the way, there is not much to say about this article or project that I haven’t already covered above. So let’s go for a more personal note. This cable was made out of junk I had on hand, and with a time limit. A family member lost the charger for the hair clippers and needed to trim their hair by Monday, it was the weekend IIRC. The point is that there was a time limit preventing the sourcing of a ready replacement. This is the perfect scenario where an electronics hobbyist should come in clutch with a DIY cable or what-have-you. (Akshully. This cable was made shortly after this time limit, I remember just charging the clippers using a bench PSU for an hour or two. But that is a less compelling story… Apocryphal story telling == More deception!)

The point is that these types of situations will emerge, they will come suddenly with little/no notice, and usually at an inconvenient time. So it pays to become accustomed to doing this type of work at the drop of a hat, and using whatever you happen to have on hand at the time. Such is the way of things. Keep in mind that a bodged solution is still a solution. Even if it only lasts as long as it takes to source a better quality replacement. As as long as it solves the problem in the moment it arises. Buying time in process. Then it is a success.

That being said the cable I created here is of decent quality, and will last as long as it is not abused, or misused. The only issue with it is that it doesn’t have the idiot-proofing; protecting the device from user error – that the original cable had. Due to the plug’s polarity keying preventing it from being inserted backwards. That’s my final point here, be cognisant of your creations’ weaknesses. And inform the user(s) of them, while also disclaiming any damages that may be caused by using the ad-hoc component that you provided. This is key to maintaining good customer relationships. From experience it often pays to overstate the risk. This is because it causes them to take active responsibility for employing it.

In the cable’s defence, as of 2026-09 I have noticed that it is still employed by my family member. More than a year after its creation. This is a genuine credit to its quality since they evidentially haven’t felt a need to replace it in the interim. How’s that for (real-world) feedback. 😀

Thank you for reading.

#0039: How to access the URL address of YouTube video adverts

#0039: How to access the URL address of YouTube video adverts

Preamble

If you are anything like me: then at one point or another you have come across an interesting YouTube advert. One that you may have wished to save for whatever reason. This article is a brief guide as to how to go about doing that. Primarily, this article is focused upon quickly acquiring an advert video’s unique URL. This is the direct address of the video itself. This can be done as and when an advert appears, without using any external tools.

However, once you have acquired an advert video’s URL – you may then wish to apply additional tools to download the video file itself. A few of which are recommended below. By the way, this method only works on desktop PCs. (I.e. not mobile device OSes such as Android or iOS.) This is because the specific steps illustrated here require a typical desktop web-browser. Although, there is very likely an alternative method for mobile operating systems; that achieves this same goal. However, that method is outside the scope of this article.

A note on the time sensitive nature of information presented herein

Please be advised: since the information presented here pertains to a specific niche functionality within the live version of the YouTube website. A website that is in a state of constant iterative development. I cannot speak to the forward looking accuracy of this information.

In other words: This method may cease to work on any given day. This is especially true if any significant changes are made to any of the website functions referenced within this method. Or even to underlying/invisible support functions not mentioned. The likelihood of which increases with time elapsed since initial publication of this article. This method works as of December of 2023.

[2026-05-14] EDITOR’S NOTE: This method works as of May of 2026. I kept the original written date in to demonstrate how long some of these articles can remain in stasis. I.e. Done. But not published for whatever reason.

What is an “unlisted video”?

Before we go on, we need to understand something of the nature of the files that we are after. Within the context of the YouTube website: an unlisted video is a video with zero discoverability. Basically, it does not show up when using either YouTube’s video search functionality; or a third party search engine like Google, Bing, or DuckDuckGo’s video search functionality. This is because search services of this kind only return publicly listed videos. In addition, unlisted videos are also not served to users via recommendation algorithms, for the same reason. They are simply not in the pool of applicable videos. You could even navigate to a specific YT channel that hosts known unlisted videos and they would not appear.

The “unlisted” status is typically used for videos that are intended to remain undiscoverable to the general public. Although these videos can still be distributed, albeit in an alternative and limited manner by design. Broadly speaking there are three main ways to distribute unlisted videos. Manually, private directories, and distribution algorithms.

Manually. This is usually done by the video owner providing the recipient(s) with a direct URL address. (E.g. via email, Whatsapp, X, or whathaveyou). Simple. The second method is by listing the video address in a directory somewhere for selective/limited discoverability. For example using YouTube’s (comparatively excellent) infrastructure to host videos that are then linked behind a paywall in a member’s only section of a third-party website. Such as in the case of a WordPress hobby blog wanting to deliver videos to its paid membership as a premium user perk.

Imagine a blog where someone paints Warhammer 40K miniatures, and writes about their painting techniques, choice of paints, tools, and general work-flow. It’s all images and text. In addition to this they have a 3 hour long video of painting the miniature in real time, for premium members who wish to see the methods implemented in this manner. WordPress cannot natively host this video, however you could embed the video into the article, and have a banner over it asking the user to log in to access it. (Please verify this claim.)

Now, this type of thing was more prominent before YouTube started hosting members-only videos itself. Likely as a response to this exact phenomenon. Since it used to cost them money hosting and delivering the media in this manner, albeit with no reciprocal benefit. I don’t even think YT runs adverts on unlisted videos by default. “Think” being the operative word here. I just don’t see many people actually seeing the unlisted video in its default state to enable an ad to be ran on it. In addition many unlisted videos would be delivered in a particular way where a pre-roll ad would not be viable. For example if the unlisted video was an advert itself (look below).

So why are we discussing unlisted videos? Unlisted videos are specified here because all of the videos (that I have encountered) being actively used for advertisement purposes are unlisted in status. Only existing on YouTube’s servers for the purpose of being served to an audience under select conditions. Such as a 15 second video configured for an un-skippable pre-roll ad spot, or a 3 minute skippable video designated for a mid-roll ad spot. And since these are the exact videos that we are trying to acquire, we must acquaint ourselves with the circumstances and characteristics that they are presented in, and with respectively.

Tools used

  • Desktop computer (laptop) running a Linux Mint OS
  • Mozilla Firefox (web browser)
  • (optional) OS built-in screenshot software
  • Xed (text editor program)
  • 3rd party video downloading programs/services
  • “Easy Youtube Video Downloader Express” (Firefox add-on program)
  • “youtube-dl” (Linux terminal program)
  • “turboscribe.ai/downloader/youtube/video” (website service)

Method: Step-by-step

1) Quickly pause the advertisement video before it ends.

2) Right-click on the video and choose the “Stats for nerds” option.

This will give you a pop-up containing detailed information regarding the currently displayed video. Note that, at the time of writing, YouTube’s right-click menu for advert videos has significantly less menu items than their regular videos. Including the menu item “Copy video URL”. Which is basically what we are trying to do here.

3) Look at data labelled “Video ID”.

It’s an alphanumeric code that should look something like this: “MEOZkf4imaM”.

4) Copy that code.

Either highlight it with the mouse, right-click and select “copy” from the drop-down menu. Or if that ability is disabled for whatever reason, then use the keyboard shortcuts CTRL-C CTRL-V to copy and paste the URL. You could even manually type the code into a text editor. Be mindful however: it is case-sensitive. Additionally, I would recommend taking a quick screenshot at this point for future reference. Just in case it all disappears whilst you’re faffing about with this.

[2026-05-14] EDITOR’S NOTE: YT no longer allows this text to be highlighted. Let alone copied to clipboard. It now needs to be manually transcribed by eye into a text document. This is an example of an underlying or invisible functionality that was changed in the interim of time. The loss of being able to highlight this text has made the process notably more laborious.

5) Use the basic YouTube video URL address below as a template, and swap out the alphanumeric video code within it for your one.

Example: “https://www.youtube.com/watch?v=dQw4w9WgXcQ“

6) Input this modified URL into the browser address bar, and press enter.

Done. That should bring you to the actual webpage containing the unlisted YouTube video for the advert.

7) (optional) download the video using additional tools.

At this point you may decide to use third-party tools to download the video file itself. Tools such as the Firefox addon “Easy Youtube Video Downloader Express”. Alternatively, the Linux console program “youtube-dl”: could be used to download the video by inputting the URL alone into it. Another option is to use an online website that downloads YT videos like “turboscribe.ai” – just to name a random one that worked at the time of publication. Not necessarily recommending it here.

Note: please keep in mind that YouTube itself does not want third-party services like the ones mentioned downloading its videos. As this competes directly with a paid service they provide. Namely YouTube Premium, which offers a local video download functionality amongst other services. However a YTP downloaded video is inferior to a third party downloaded video.

This is because the YTP video has a whole host of limitations imposed upon it. Such as only being viewable via the YouTube app. As well as copy-protection, and timed deletions. Basically the app functions as DRM software for the video files stored locally on your device. Curbing users’ ability to manipulate the files as they wish.

This is simply a no-go for me because the main reason I download files is to archive them. The second reason is to play the videos on random ancient devices that serve specific purposes. Such as my tinkering workbench’s android tablet which is solely used to host device manuals/documents and relevant YouTube tutorial videos. This use-case demands files not have any copy protection, nor have any app dependencies, or internet linked features such as timed deletion.

Because of third parties providing a superior service to YouTube itself in this regard; one that affects it’s bottom line. There has been a long going game of cat-and-mouse in regards to YouTube changing the technical format of how it hosts and serves its videos. This is in order to curb the utility and usability of third party tools of all stripes. In a similar vein as to how it handles/fights Ad-blockers. So try out lots of different tools and use whichever works at the time. Also don’t be surprised when the tool that you have become comfortable using for a while, suddenly ceases to work. As that is simply the way of things here. Adapt, adjust, and move on.

Example use-case: blog article

Say I want to write an article about YouTube allowing actual – I mean alleged (no sue plz) scammers to advertise on their platform. I could use the above method to acquire evidence (a copy of the video ad) that I can then store locally without limitations. This is so that it can’t just randomly disappear at a moment’s notice. Case in point – the videos are still up at the time of publication. (Probably because it costs them nothing to leave them up on YT.) However the website that the videos link to is gone-ski. AND their domain is currently (2026-05) available to purchase on the market! Double-dong done-ski!

https://self-sufficiency-network.com/energy/create-unlimited-free-electricity

Just in case they come back from the dead: I’ll say that in all seriousness – obviously these guys are NOT scammers. They just have a method of “harnessing an endless supply of free electricity in the ground” that can be used to power your house. For free. For ever. Which for some reason they can not articulate the basic principles of without invoking fanciful conspiracies of “big energy companies” hiding a “simple device” for a “100 years”. These types always tell a story, spin a narrative in this manner. Then push their audience to click the link in their bio and probably send them money at the least.

The video even ends with a odometer-style counter quickly ratcheting up numbers so you know they are serious. Evoking a sense of urgency as you sympathetically visualise your energy bill rise. With these NOT scams – they either use something like this, or a countdown timer – to evoke a similar sense of urgency. Time is running out! Limited time offer! Hurry before they are all gone! Simple FOMO. (Almost sounds like Latin, eh? Pricks.)

The whole video presentation is obviously targeting non-technical laymen people. The fear angle working especially well on the vulnerable, as it dangles hope in front of them. Hope for a better tomorrow, that could easily be attained with little effort on their behalf. A simple and accessible solution for their life problems. I hate this kind of stuff. Everything from the clueless desperation of the herd, leading themselves to slaughter; to the merciless predation of the scavengers, targeting the weak and the sick. It is a part of our humanity that I do not like dwelling on.

On a more personal note. (Feel free to skip.) Honestly I cannot relate to these types of people in the slightest. I don’t even want to put my face on the consequence-less crap that I write here. Mostly because I want it to stand on its own merits in the void. But also for privacy reasons. As I like having a small online footprint – since it allows me to be nimble in social situations and very often it gives me the opportunity to curate a first impression with a new party. Something that you cannot do when your personal life (or face) is online.

Look at these people: their faces are forever linked to this (alleged) scam for anyone willing to look them up. It is a forever black mark against them. One that could potentially undermine all future prospects. Business, employment, romance, anything – and at any time. You could be halfway through a deal, when the other party are sent this vid of you (allegedly) scamming online a decade ago. And they would be in their right to sever the relationship on the grounds that you may not be an ethical actor. At the very lest it would erode trust/credibility, making future deals less likely. It could genuinely be a reason as why a current employer may sack you, if your work requires elevated trust. Such as working with money or vulnerable people.

The internet is forever… and unforgiving. Don’t forget that. Learn from the mistakes of others. Think of it this way, imagine if any of these men walked into your shop/life. Knowing that they participated in organised (alleged) scams in the past. Would you do business with these tools, even if it happened a while ago? I personally wouldn’t – let someone else take the risk on ’em.

Video Examples

Please note: the featured videos below are used here under fair-use for the purpose of criticism.

American English version

https://www.youtube.com/watch?v=6kz3mkD6LCo

British English version

https://www.youtube.com/watch?v=VvDsH8Fkxd

Acronyms used

DRM – Digital Rights Management
FOMO – Fear Of Missing Out
OS – Operating System
PC – Personal Computer
URL – Uniform Resource Locator
YT – YouTube
YTP – YouTube Premium

Closing thoughts

Firstly, did you enjoy the mini-article within this article. It got preachy quick didn’t it?

Back on task. I like simplicity in most things as a rule. This method is not an exception. Here, I tried to use as few external tools as possible. Using only my default desktop web-browser (any will do) and YouTube’s native functionality in order to access “unlisted” videos. Couple with with common/default OS tools like a text editor, and screenshot program.

As a side and final note: I always find the comments to be interesting under unlisted videos (if they are present that is), because they tend to be made by a select type of individual. The generally inaccessible nature of the video’s homepage acts as a filter for normal people. They tend to say things that are screen-grab worthy. If they haven’t already been deleted that is. Enjoy it when you come across it. Honestly it makes me feel like a net diver. Seeing things that are a little bit off the beaten path like this. It’s cool.

Anyway. Thank you for reading.

Links, references, and further reading

https://www.reddit.com/r/youtube/comments/jiignt/do_your_downloaded_videos_get_deleted_after_you/
https://www.yourvideofile.org/
https://github.com/yt-dlp/yt-dlp
https://turboscribe.ai/downloader/youtube/video
https://logos-world.net/wp-content/uploads/2020/04/YouTube-Logo.png
https://www.linuxmint.com/

#0037: Tip for securing a cabled USB type-A plug and socket together

#0037: Tip for securing a cabled USB type-A plug and socket together

Preamble

This is a quick budget tip for securing a cabled USB type-A male and female plug and socket together. This technique could probably be extrapolated for use with other plug types. However I have yet to do so.

Tip for securing a USB type-A male and female plug and socket together

Now onto the tip. Simply put, I use an elastic band to hook the two plugs together. That’s it. Done. Thank you for reading…

Still here? Okay, now onto the part where we explore in excessive detail such a simple concept. One so simple you probably have immediately intuited the basic theory of operation. If not then here it is. Basically, the elastic band applies a pulling pressure that keeps the plug and socket engaged. This is especially useful when you have an otherwise loose connection, typically caused by issues such as weak retention springs within the female socket. Something that seems common to USB extension cables in my opinion. At least the ones I have encountered.

Method of application

I like to start by using a basic cow hitch to lasso one of the plugs. This is done by folding the band into a loop and simply inserting a plug into this loop. Then tightening it around the plug’s plastic shoulders. That’s a basic cow hitch.

Now, with the other side of the elastic band wind it around the plastic shoulders of the second plug a couple of times until the elastic is reasonably taught. Then insert the male into the female plug. And done. The band should now exert force that will keep pulling them together.

Elastic band application demonstration video

Best practices

For best results, I recommend using a reasonably strong elastic band. I also recommend only wrapping it around the plug’s plastic enclosure itself, and not involving their respective cables. This is so that no force is applied to the cables themselves. Force which may aid in the development of faults such as repetitive flex damage, or a kink in the cable. Additionally when the band is secured on the plug body it focuses and directionalises the force in a way that better pulls the cable ends together.

An attentive reader may notice that in one of my example images, the one with the beige elastic. The upper band loop is a little bit too high up, and sits on the plastic wire strain relief itself, rather than the plastic plug body. What can I say? Do as I say, not as I do. 😉 Its really not a huge deal either way. Securing the loop on the plug body is just what I consider best practice.

Why not use adhesive tape instead?

Alternatively to using elastic bands, you may think: why not use tape to adhere the two ends together? Briefly put, tape is messy – it leaves glue residue when removed, it’s too permanent or hard to remove, and probably most importantly: it doesn’t put pressure on the plugs to keep them together. So as time passes the plug could slowly but steadily slip out of it’s respective socket. Due to things like vibration, gravity, or general handling.

Closing thoughts and my use-case summary

In my particular use-case, I use elastic bands like these to keep the USB extension cables attached to my 4 Watt USB lights and their switches. The weak retention springs within the female USB sockets on the extension cables allow any plugs inserted into them to eventually slip out.

I used to use electrical tape to manage this but, as time went on the tape lost it’s adherence. Yet left a mess of melted glue residue. After this I switched to using duct tape, but it was too strong, and too difficult to easily remove when I wanted to. Hence the bands. Third time the charm it seems.

So far, just common garden variety elastic bands seem to work best for me in this application. Whatever you can find is fine. Funny thing is, I didn’t even buy them. I just collected the ones that my mail man keeps dropping around my door.

All in all. This is an example of a zero budget application of junk that has gained value via use. At least I found it to be so. Anyway, I hope this article is of use to you. At the very least I hope I can raise a little awareness of the genuine potential uses of random household miscellanea. And that it may assist you in exploring alternative DIY solutions to purchasing one’s way out of any given problem. I know I have been guilty of that.

Thank you for reading.

#0035: repair and analysis of a talon style folding lock knife

#0035: repair and analysis of a talon style folding lock knife

Preamble

I was recently given this folding lock knife to fix for someone. The internal mechanisms of which I found mildly interesting, so I figured it would be worth the time to document it. It may also prove useful for future reference incase I come across something similar.

Initial observations

The first thing that I noticed whilst examining this unit is the unusual blade shape. This is a talon type blade. It is a single edged, crescent shaped blade that curves forwards and terminates in a single point. It’s crescent shape, coupled with the blade edge being on the inner concave curve: give it both a visual as well as function resemblance to the talons of birds of prey. The blade is designed to roughly function in the same way: to pierce and then to hook. This shape of blade can easily convert slashing motions into pierces, due to the blade tip being the leading contact point.

The blade description above may lead you to think that the pictured example knife is a deadly weapon. And that would be the case, at least if not for my second immediate observation. Which is that this knife is a mass produced (I assume) chinese special tacticool toy knife.

It is rather cheaply made, and only really aesthetically resembles the weapon that it is aping. This pictured knife is just a box cutter. That is also it’s literal function currently. Its what the knife’s owner, who is a warehouse operative uses it for. It is also the only thing that it can be used for in my opinion.

Faults

The main thing that was wrong with this unit is that it was not maintained properly. The owner did not tighten the various torx screws on this thing as they worked themselves loose. This led to various joints and mechanisms developing too much play in them. This then resulted in the blade being seated at a crooked angle. Which in turn allowed the blade tip to scratch the handle as it was retracted into it.

Additionally due to the owner’s negligence: some of the various screws that loosened over time, fell out entirely and were consequently lost. This is rather unfortunate, because these fittings consisted of a paired torx screw and socket nut; that where sized to fit flush into the recesses of the handle plates. The socket nut especially is rather annoying to replace. Requiring a specific purchase as it is rather uncommon, and wouldn’t likely be present in any of my bins of miscellaneous salvaged hardware.

The blade itself also has an issue. The main one being that it is made from a miscellaneous soft junk metal; and the second one is that it was currently dull. So it required a basic sharpening, in order to make this knife operable. At least for the relatively short time period that the blade’s soft metal can maintain a serviceable edge.

Parts list

A complete version of this locking knife consists of several discrete components:

  • 1 x camouflage painted outer metal knife handle plate (left)
  • 1 x camouflage painted outer metal knife handle plate (right)
  • 1 x black painted metal inner frame with spring compartment insert gap
  • 1 x black painted metal inner frame with blade locking wedge
  • 1 x black painted metal finger guard with box cutter point
  • 1 x grey painted talon style blade
  • 1 x metal spring
  • 1 x metal spring compartment
  • 2 x plastic washers
  • 4 x smaller black painted metal hex screw and blind nut set
  • 1 x larger black painted metal hex screw and blind nut set
  • 1 x black painted metal trouser clip
  • 3 x black painted hex screws for the trouser clip

Tools and materials

Tools:

  • Round edge metal file
  • Knife sharpener rod
  • Torx screwdrivers (T7, T9)
  • Tweezers

Materials:

  • plumber’s grease (or equivalent)

Repair

There really isn’t much to say on the repair itself, as its pretty straight forward. I disassembled then reassembled the knife; fixing everything dodgy about it as I went.

Actions:

  • Completed knife disassembly.
  • Bent the blade locking wedge on the inner frame so that it stops the blade from folding closed more reliably.
  • Greased the blade’s damaged plastic washers to help prevent future wear.
  • Bent the blade spring’s hook into a right angle in order to get a better hold on the blade.
  • Re-greased the blade spring within the spring compartment due to presence of dry grease here.
  • Re-tightened all the screws and socket nuts that keep the housing together.
  • Added a stand-in replacement for a missing screw and socket nut pair that consists of two screws and a salvaged threaded brass insert nut.
  • Added a plastic screw and nut to help hold frame. I chose plastic so that I could cut down the screw and round off the nut easily so that it doesn’t snag the user’s hand.
  • Performed a basic sharpening on the blade using a metal file, then honed the edge using a knife sharpening rod.

The actual repair itself is hardly anything to be proud of. It wasn’t a hard repair and didn’t even take long. However this knife has been saved from going into the rubbish bin, for at least another couple of months, and that should be the main take home. This thing is ready for work again; and should stay that way for quite a while.

Before and After video demo

Before

After

Recommended modifications

1) Grinding the blade edge and sharpening.

The knife blade could use a proper grinding and sharpening: if it to be used for anything more involved than opening boxes. I recommend grinding the blade down so that the angle of the blade edge slopes smoothly up to the mid-ridge. That way the blade can have more acutely angled edge.

This will consequently make the blade sharper than it currently is. A smaller angle will also remain sharper for longer whilst in use, due to the relative thinness of the new blade edge. Even as it dulls. Although the blade will also likely become more brittle and likely to snap as a consequence of the severe loss of material this newly angled edge will require.

2) Installing a blade backstop.

A blade backstop will stop the blade from over-rotating when it is extended. It will also prevent the blade from wobbling when extended by sandwiching it between the backstop and the blade locking wedge.

This knife likely already had a blade backstop of sorts, as it already has the screw holes where on could be mounted. However it was probably lost during use. As it is the blade overextends backwards when it comes in contact with any material that resists it.

3) Thread locker on the screws.

Thread locker such as “Locktite 243” when applied to screws prevents them from slowly working themselves loose during operation, due to factors such as vibration. This will extend the lifespan of this knife when applied to the screws that hold the frames together, as it will mean that they will (largely) no longer need to be checked and re-tightened at intervals.

And since we have already established that this knife’s owner is averse to maintaining his equipment: the lower the level of maintenance this knife needs, will be proportional to the extension of it’s operational lifespan. I.e. it will last as long as it lasts, if the thread locker can keep it together for longer, than it will last a little longer as a consequence.

4) Installation of additional retaining bolts.

I think that installing a few additional bolts and nuts to keep the frame together would greatly increase the overall structural strength of this folding knife. As it would share the strain of keeping the unit together amongst more points. This would allow this knife to be used in applications that require more force.

Although one has to be careful not to drill and install any bolts within the blades seating area within the knife handle housing, or within it’s pathway. Common sense right?

Post mod roles

As it is this knife tool is weak and too dull for any real work beyond cutting the tape off of cardboard boxes. however I theorise that if the above mods are made, then one would end up with a stronger, sharper, and more stable tool.

This would then allow the tool to used in a broader array of applications. For example light wood working, or bush craft applications. A talon style blade is good in both of those applications. The sharp hooked point is good for carving detail into wood. The concave blade is good for gripping and working with rounded objects like natural woods (sticks and branches). For example: for sharpening sticks, or for feathering wood to create tinder. It is also good for harvesting (in this case smaller) plants; as the concave blade helps bundle the stems together when cutting. Like a miniature sickle.

I could go on but I hope you get the point. The issue here is not with the knife’s design, it is with it’s flawed construction. If that could be remedied (or at least alleviated), then this knife could actually become a useful tool. It just requires work to get there.

Closing thoughts

Honestly, I actually rather dislike these types of low-cost low-quality mass produced items. This knife for example: it’s low-cost promotes replacement rather than repair: as it can very quickly make many repairs in it’s owner’s eye deemed as uneconomical. And that is assuming that the owner has a mend-and-make-do mentality to begin with. Most contemporary consumers do not. They have a use and replace mentality.

The main reason why a person may want to repair these things in my mind: is either philosophical (i.e. environmental conscientiousness, fiscal responsibility, anti-consumerist sentiments, etcetera); emotional sentimentality (e.g. hand-me-down from a relative); or if they are in severe financial strife and literally can’t afford to replace a £3.99 work knife.

Now look at it’s cheap build and materials. This factor exacerbates the issue above. Chiefly because it lowers the tools operational lifespan. This is the time it is in use, before it somehow breaks on it’s owner. Hence sooner putting them in a position to make the call on whether or not to either repair or replace the tool.

I do consider a knife like this to have been built with planned obsolescence in mind. Even though the term is hardly used for mechanical hand tools like knives; as it is usually reserved for electronic or computer products.

However, consider this: if the user does no maintenance on this knife. Then there are only so many operational hours that it is capable of before completely falling apart, or at the very least becoming inoperable. It’s shoddy build quality purposefully limits this simple hand tools lifespan. And when it is over, the user is expected to then purchase another one. That is a form of planned obsolescence.

I hate preaching, but please consider not buying this kind of shite. There are better alternatives available. Such as buying second hand quality tools. I always advise that people do the requisite research first. Then spend what they can afford in order to get the best value tools that they can, for their specific use case.

I said “Best value”, not most expensive. A chrome-vanadium spanner is a chrome-vanadium spanner at any price. Just because a person pays more for a brand name, doesn’t necessarily mean that their chrome-vanadium spanner is better than the off brand one.

Nowadays, it’s rather likely that they were both made in the same factory from the same material stock. An idea that would be laughable, if it wasn’t also true. Many brands on the market don’t manufacture anything. They purchase orders from the same OEMs then label the products as their own.

*proceeds to mount high horse.

If you absolutely have to purchase at the bottom of the market because you absolutely have no more money to spend. Then spend time instead. Time upgrading, fortifying, and maintaining your tool. This is so that it can last as long as you need it to. Or at the very least extend the time intervals between new purchases.

That being said, it is an unfortunate reality that most people who do mindlessly purchase bottom of the market products like this knife: are either unable; or more commonly, unwilling to invest time in their tools. They are in many cases content to use the shoddy tool in the short time until it breaks. Then purchase another bottom of the market shoddy tool to replace it with. Repeating this loop of short-sighted wasteful false-economy ad infinitum.

*proceeds to dismount high horse.

I feel that I should somewhat qualify my rather negative sentiments against these types of bottom market products. In the past I have worked within a small recycling facility, one that primarily serviced my local community on behalf of the local council, as well as the surrounding areas. (The point is that we weren’t shipping it’s garbage in.) I worked there as a materials sorter.

It gave me a certain perspective on the sheer volume of material wastage people engaged in. For a supposedly poor community, the amount of waste of useful materials was astounding. Every night I came across hundreds (not hyperbole) of very useable tools of all kinds. Everything from: screwdrivers, knives, drill bits, and spanners, to pots, pans, skillets, as well as whole bicycles some nights. All of that thrown away for recycling.

Many of these things were in decent conditions. Conditions that required either basic maintenance such as: sharpening, some hammering, replacing a handle, or realigning, or even a simple old fashioned cleaning. Gasp! Working there made me dislike a lot of these products; as when I now see them new: I think of where they’ll likely end up in less than a years time … In the fucking trash.

I just don’t like companies purposefully making tools/products that have such a short lifespan designed into them. I doubly don’t like it when these same products are purchased, used, and then wastefully discarded, by people whom I have heard a thousand times: claim poverty. But that’s another rant entirely.

Thank you for listening. It really helps.

Term glossary

OEM – Original Equipment Manufacturer

#0034: Repair and analysis of a tap cartridge

#0034: Repair and analysis of a tap cartridge

Preamble

I recently had to repair a constantly dripping kitchen faucet, and thought that I may as well document it. Especially since I found the construction of the cartridges within the tap to be rather interesting. Although I must say that the title does make me feel a bit silly.

Tools and Materials used

Tools:

  • crescent wrench / 17mm wrench
  • nylon spudger / pry tool
  • phillips screwdriver
  • soft bristle toothbrush
  • plastic container
  • pipette
  • teaspoon

Materials:

  • petroleum jelly / plumber’s grease
  • vinegar
  • water

Tap cartridge inspection

I’d like to start by examining the water faucet’s cartridges themselves, as this information will be relevant later during the repair. The two pictured cartridges were taken from a quarter turn kitchen tap. This is a tap that only requires the handle to be turned 90 degrees around it’s axis, in order for it to go from a fully shut to a fully open state, and vice versa.

This type of cartridge is designed so that water flows into it from the central hole at it’s bottom inlet. This water then flows up inside it’s shaft, and through the two holes within the first ceramic disc. It is then diverted out through the two radial holes on it’s side via the second ceramic disc. At which point the water has a direct route to the faucet head.

This particular type of cartridge has two ceramic/plastic discs within it, that in conjunction with each other operate as a single water control valve. They do this by establishing a water tight seal between them; a press fit seal that is created by the two discs merely pressing against each other in a way that eliminates any gaps between them.

This seal is demonstrated within the video below, where you can see a suction effect take place between the two discs. This suction helps the two discs adhere to each other when wet. This is only possible due to the absolutely smooth surface of the first disc, coupled with the hollow cups present on the second disc’s contacting surface.

These two ceramic valve discs are both keyed to fit into their brass metal shaft in one particular orientation. This orientation has the bottom disc operate as a fixed or stationary valve. Whose job it is to split the ingressing water into two separate streams. It does this via the two distinct triangular quarter-circle holes within it. This lower disc is keyed to fit into the inner wall of the cartridge’s cylindrical housing in a way that makes it immovable.

Whereas the top disc is keyed into the rotating tap handle cylinder attachment. This allows the tap handle to control the rotation of the upper disc. This upper disc is cut in a way that either blocks the two water channels provided by the bottom disc when closed; or when open: diverts water from the holes of the bottom disc outwards to the radial holes in the cartridge housing. This water is then further diverted up and out of the tap for use.

The reason why it only takes a quarter turn to fully open the water channels of this type of cartridge: is due to the placement of holes and channels within these ceramic discs. The first (bottom) disc has two oppositely placed holes within it. Each taking up approximately a quarter section of the circular valve.

This quartering is then reflected within the top ceramic disc. Which consists of two opposing cupped flat plates, and two opposing angled wedges: which veer off to the radial holes within the brass cartridge housing. And since these channels take up opposing quarters of their discs – it only takes a quarter turn to either align both holes of the bottom plate with the upper disc’s water outlet ramps, which then allows water to pass; or with the flat plates, which then blocks the water at both holes.

Cartridge operation demo video

Valve operation demo video

Suction effect demo video

Dripping fault Analysis

Dripping fault cause theory

The fault that causes a dripping tap can be due to a number of different factors. Probably the most straight forward scenario includes water simply making it’s way around the rubber o-rings and/or water gasket. This could happen if the rubbers have gotten old or heat damaged, and started contracting or cracking as a result. Alternatively, they could’ve been disturbed or are otherwise not seated correctly in order to form an effective water barrier.

This means that whatever water does manage to get around these seals can then bypass the cartridge altogether and shortcut it’s way to the faucet head. The severity of the leak in this case would be directly proportionate to the ineffectiveness of the rubbers to seal out water.

Another issue could be within the cartridge itself. With water entering the cartridge and then passing through the cartridge valve by squeezing between the two ceramic disc plates due to an imperfect seal. This pressure fit seal between the two disc plates could be undermined by a number of different factors.

The most likely of which are a build up of limescale on the the ceramic discs themselves. Limescale is a broad term to encompass residual build up of the carbonates present in drinking water; such as calcium and magnesium carbonate. Water rich in minerals like this is often referred to as “hard water”.

Limescale build up on the contact surfaces between the ceramic discs, can cause them to then become uneven as the limescale adheres to them. Specifically the drip issue is caused because the valleys in this now uneven surface provide the water a small pathway across the pressure seal’s threshold when it is closed.

Another issue that could cause the valve to no longer function effectively is scoring of the inter-disc surface. Essentially scratches that then allow some water to pass through their valleys when the valve is closed. A likely cause of this could be something as basic as wear and tear. The two discs grinding each other down over an extended period period of time due to standard use. This happening with just the minor friction created from repeated opening and closing over time, eventually compromising the watertight seal as disc surface material is lost.

Before moving on, I should mention that this section is largely speculation. Basically educated guesses based on my observations during the disassembly. That being said these theories above are the one’s that I went into this repair with.

Dripping fault effect

A continuous drip may initially seem like a minor fault, because it is. However, this fault incurs a waste of resources. A slow but continuous one, that is hard to easily assess. Simply put it wastes water, and probably more than you might expect as well. Just because it only wastes a drop at a time, it doesn’t mean that it isn’t wasting a lot cumulatively. It just makes it difficult to easily see the totality of wastage.

Sampling methodology

Let’s try to get a rough idea of how much water is lost due to this fault. Note that this is not going to be very scientific. It is just a test to get a rough idea of water wastage. With that in mind, there are two discrete pieces of information that are required: 1) is the average water droplet volume; and 2) the number of water drips within a set period of time. In this case the sample time will be 1 minute.

I captured a single drop using a teaspoon. Then sampled it using a random plastic pipette that I had on hand. I repeated this a few times and found the droplets to be rather consistent in volume. Unfortunately, due to the pipette’s lack of precision, I was forced to visually estimate this volume between it’s labelled increments.

Collected observations

  • This leaky tap consistently provided around 13 drips within any one minute period.
  • With each drop having a volume of approximately 0.3 ml each.

Water drip rate and predictive volume lost

  • 1 minute: 13 drips @ 3.9 ml
  • 1 hour: 780 drips @ 234 ml
  • 1 day: 18720 drips @ 5616 ml (~5.6 litres)
  • 1 week: 131040 drips @ 39312 ml (~39 litres)
  • 1 month: 524160 drips @ 157248 ml (~157 litres)

Leaking faucet demo videos

Droplet sampling demo video

Leak conclusion

Interesting result. If a household either has a limited water supply (e.g. off-grid), or is on a metered supply where they pay for water by volume; then 157 litres lost in wastage in a single month by a single tap is not insignificant.

I hope this has illustrated how important it is to fix even minor faults such as this as soon as possible. 157 litres of water used could very well cost a metered household more money on the fault’s first month on the household’s monthly water consumption bill, than a complete cartridge replacement for that tap otherwise would have.

Repair process

Getting at the parts

First thing first. Common sense. I switched off the water by closing the main water valve for the house. This was located under the kitchen sink for me. This is an essential step in the same way as one would switch off the electricity before working on an electrical outlet, one needs to turn off the water before working on a water outlet. You’d think that was common sense right? But I have seen too many plumber fail videos online that say otherwise.

After giving the kitchen faucet a once over, and looking online I decided that the tap cartridges are the most likely suspects for the drip, so I set upon getting at them. Since I have never taken a kitchen sink tap apart before, I engaged in what I call an exploratory disassembly. Prodding and poking the device looking for hidden clips and screws.

To cut to the point: I used a nylon spudger to pry open the (metal coloured) plastic screw cover on each tap. I recommend using a plastic pry tool to avoid scratching the finish off of any part of the tap. Next. I unscrewed the phillips metal screws which attached each tap handle to the rotatable cartridge cylinder section below them. After setting aside the tap handles, I then removed the full cartridge assembly from the faucet housing using a wrench. As for disassembling the cartridges themselves, they come apart toolessly in-hand. That’s it. Easy.

Inspection

Like every repair, this one begun with a thorough inspection. A basic visual inspection did not reveal anything obviously wrong with either cartridge to my eyes. However once I disassembled both hot and cold units, I noticed that the internal plastic disc valves on the cold water side felt rough to the touch. Likely indicating a build up of limescale. Most notably this was even apparent on the surfaces between the two valves. And since these two surfaces come together to form the press fit seal that controls water flow: I concluded that this was likely the specific cause to this particular leak.

Limescale build up is nothing unusual for my particular location, as I do live in a heavy water area. However the odd part was that all the limescale build up was on the cold water side cartridge of our kitchen tap. With little to none on the hot water cartridge. This is really unusual in my opinion because I believe that higher temperatures should exacerbate limescale build up. The average water kettle should be a testament to this theory. However in this case the limescale build up was only sufficiently present on the cold water side.

A working theory I have concerns the on demand water heater which directly supplies this tap – a boiler which my household recently (1.5 years) had professionally installed. I believe that it has some-kind of water filter (or softener, or descaler…) that has been fitted to minimize limescale build up within the unit as it heats water. This means that the hot water provided by it to the tap would have less mineral contaminants (i.e. be softer) than the cold side. I would verify this, but it is not a pressing issue and not worth digging the unit out at this moment to confirm.

Cleaning the cartridge

Once I decided that it was limescale that was undermining the valves press-fit seal, I decided to take the already disassembled cartridges and submerged them into a vinegar solution. The idea is that the mild acid of vinegar will react with the alkaline limescale and dissolve it into the liquid solution.

After about an hour, I removed the parts and brushed them all down with a basic toothbrush in order to remove any loosened remaining debris. I did however take care not to scratch or score the plastic valves as any scoring would also undermine their ability to form a watertight seal; as this would allow water would pass through the miniscule divots that would be present on the seal’s contacting surfaces.

With regards to this method, I should note that I made exceptions for the rubber parts of the cartridges. The blue o-rings and red/blue rubber gasket. I just did not feel comfortable submerging them in an acidic solution for extended periods. I feared that it may affect the chemistry of the rubber material and ‘dry’ it out. Thus causing it to crack or split; and consequently be no longer effective as a waterproof seal. (FYI the pictures below are lying.)

Testing

After a quick rinse in tap water I decided to reassemble the cartridges and put them back into service for extended testing. Although the leaking was significantly reduced as it didn’t drip continuously as before: it still dripped regularly. This was tested by leaving an empty cup under the tap head overnight. I’d regularly find the typical coffee cup I used at least half-full come morning.

This lead me to surmise a number of scenarios:

1) That the water was making it in between the the plastic valve seals. Likely due to surface scoring caused by either my cleaning/brushing of the valve discs; or the limescale itself being ground into the discs as they operated over the years.

2) Water is making it’s way around the gaskets and o-rings, in addition to bypassing the valves. And that I have only remedied/alleviated one issue.

Greasing the cartridge components

With these conclusions I decided to then purchase some plumber’s grease. Thinking that it would be perfect for the application of assisting the plastic disc valves and rubber gaskets to form water tight seals. The Ebay listing for it explicitly stated just that.

However once the product arrived, I decided that I wouldn’t be testing it’s efficacy as I decided that it was not fit for use. The reason why: was that the little tin came with a whole host of warnings on it’s label. Warnings typically associated with poisonous chemical products.

Particularly the “Do not eat, drink, or smoke …” around this product warning gave me pause. Especially when coupled with the fact that the very vapours from this thing were an irritant. It emitted a vapour that was a mild irritant to the eyes and nose, smelling almost minty like the ointment “tiger balm”.

So despite the labelling assuring me that it is indeed appropriate for use within water faucets, I decided that this was not something that I wanted coming in contact with my drinking water – and ultimately ending up inside me. Maybe I am just paranoid. Maybe not.

Either way if an irritant chemical has warnings not to ingest it, and by using it for it’s intended purpose you are essentially guaranteeing ingestion. Maybe don’t use that chemical. Ultimately, it all just comes down to personal choice, and how much you trust anonymous Ebay sellers over your own intuition.

Personally I just found a substitute: Petroleum Jelly. A non irritant, non toxic chemical that routinely comes in contact with human skin and lips. So chances are good that it won’t do any harm if you accidentally ingest some with your drinking water.

Additionally unlike the plumber’s grease, the jelly can be used with rubbers like the o-rings and gaskets. I used to use some back in school within the science lab. A small amount was applied to the mouth of a bunsen burner’s rubber gas hose in order to help form a gas-tight seal between it and it’s brass attachment. I remember it even hydrating the dry red rubber of those hoses. Although I am pretty sure that petroleum jelly is also flammable so I’m not sure if that was a particularly safe application for it. :/

However within this application: my only concern with petroleum jelly is it’s longevity in the system, and heat resistance. However those are considerably less concerning than putting poison in a drinking tap. So after greasing everything up: the o-rings, the rubber gasket, and the plastic valve discs, then tighten everything down properly – I did note further improvement. Now the faucet barely leaks at all. Barely being the keyword here.

Jobs a gudd’un mate.

Post repair review

I left some time after the repair for observation before writing this review and it seems the leak is slowly returning after a month. A month of constant use keep in mind. I am still chalking it up as a success because this repair really only needed some basic tools and materials. The only consumables used are just household sundries like vinegar and pure petroleum jelly. So it can be done for next to nothing.

There are even more things I could do short of purchasing replacement cartridges, and that would be to use an additional o-ring under the main water ingress rubber gasket. This will put more pressure on the plastic disc valves. Squashing them together to form an even tighter pressure fit seal between them.

Although there are likely drawbacks to this, including and not limited to: firstly, a stiffer tap – the more downward pressure on the cartridge mechanism, the harder it would be to rotate it; and secondly, the higher pressure on the discs themselves would cause them to grind against each other more, and likely shorten their lifespan by promoting scraping of their contact surfaces.

Although if you are repairing it in the first place, chances are that they are already well towards their end-of-life, in which case this fix will extend it couple of months before they likely fail into a unrepairable state. At which point replacing the ceramic discs will be needed. Just my guess.

Closing thoughts

Not much to say here really, I surmised my thoughts on the repair itself within the Post repair review above. So I’ll go with a more personal note here.

I actually enjoyed looking at this tap cartridge more than I thought I would. It really is amazing what people are capable of creating through iterative design and mass production. It reminds me of the gaming concept of min-maxing: of getting the most out of the lest.

I mean look at the simple design and construction of this cartridge. It uses two plastic/ceramic discs to create a watertight seal by just pressing against each other. Undoubtedly the results of iterative cost cutting to the point of being adequate or acceptable, and little more.

I know that when I usually talk about cost cutting, especially when discussing mass produced goods: its usually in a negative light. That’s because the stimuli or catalyst for those tangential rants tends to be a product that is sub par, and in my opinion not fit for purpose. Products that I refer to as “factory fresh e-waste”.

However that is not the case here, these cartridges are fit for purpose. But they are also (in my humble opinion) built down to a price point. One that makes economical sense. Look at the bill of materials here for example: a brass housing and insert, a retaining clip for the insert, a metal washer, two o-rings, a water gasket, a metal screw, two plastic/ceramic discs, and maybe one or two additional miniscule hidden parts that I missed. That is a list that has been reduced to the absolute necessities and little more, but nothing less either. I admire the philosophy honestly.

Anyway, enough gushing about the tap. Since I repaired it: it’ll do that itself in a year or two ;). Upon looking up the Ebay prices for replacements, I noticed that they are very cheap. (At least the generic versions.) The average price for a set of two is £10; and if you wanted to repair your own two cartridges with a kit of replacement o-rings, gaskets, and ceramic discs, then that’ll set you back around £2.50. Very doable.

As a final note, if you found yourself confused as to why I kept referring to the cartridge discs as both made out of plastic and ceramic. Well, this is because the unit I was working on (pictured) felt like plastic to me. A hard somewhat brittle plastic.

However upon looking them up online, apparently they are all ceramic. I also wrote the repair section during the repair process prior to this; and I decided to leave it as plastic because that’s what I felt that material was while I was handling it. Although I am by no means an expert on such things, if the internet says that it’s ceramic then I guess it likely is.

Thank you for reading.

Links, references, and further reading

https://en.wikipedia.org/wiki/Hard_water

#0032: Instructions on digitising physical documents

#0032: Instructions on digitising physical documents

Preamble

This will be a quick guide to anyone who may be interested in creating their own digital archives of physical documents. Although there are undoubtedly any number of different ways to achieve this task: I only intend to show you one method. The method that I specifically use (at the time of writing) in order to create, label, modify, and archive document files. Files such as the ones hosted on this website’s “Device Document Scans” page.

Hyperlink: https://www.tinkerersblog.net/device-document-scans

Tools and equipment

Hardware:

  • flatbed scanner
  • personal computer

Software:

  • Linux Mint (operating system)
  • Bash terminal (TUI program for accessing other TUI programs)
  • simple-scan (GUI scanning program)
  • GIMP (GUI WYSIWYG image manipulation program)
  • ImageMagick convert (TUI image manipulation program)
  • img2pdf (TUI file format conversion program)
  • xviewer (GUI image displayer program)
  • xreader (GUI PDF displayer program)

Process overview

1) Scanning the physical document.
2) Initial edit, and virtual file export of scanned images.
3) Edit of image dimensions and watermark application.
4) Creation of alpha-less versions of the edited images.
5) Compilation of all alpha-less images into a single PDF file.
6) Test, organisation, and archiving of files.

Process explained

1) Scanning the physical document.

I use the flat bed scanner on a Pantum M6607NW laser printer scanner combo, in conjunction with a standard GUI GNU/Linux program called simple-scan. One by one I scan all the document’s pages using a 300 DPI (Dots Per Inch) image fidelity setting.

2) Initial edit, and virtual file export of scanned images.

I use simple-scan to export all the raw scanned images in a lossless PNG image file format.

Although simple-scan has some basic image editing functionality, such as image rotation and cropping; I tend to shy away from cropping images here due to the lack of precision available with the tool. However a rough crop to minimize image file size can be useful at this stage. Especially when scanning documents with a smaller page size (e.g. A5); which would otherwise have a lot of needless (memory consuming) white-space in each image.

Additionally, I find that rotating whole images at this stage using simple-scan to be a better experience than rotating them later using GIMP (or even xviewer). This is because, anecdotally: it seems to use less system resources for some reason. It’s just a smoother experience.

As for the outputted files themselves: I like suffixing metadata information onto the file name. In this case “_300DPI_scan”. This is to help identify specific files when they all get archived together.

It also adds a certain element of future-proofing because I may want to create higher or lower DPI versions of the same documents for specific purposes in the future; without it causing a naming conflict, and upsetting my global naming scheme.

Output:

generic_manual_p1_300DPI_scan.PNG
generic_manual_p2_300DPI_scan.PNG
generic_manual_p3_300DPI_scan.PNG …

3) Edit of image dimensions and watermark application.

I use GIMP (GNU Image Manipulation Program) to crop each page image with pixel perfect uniformity (i.e to the same image dimensions). Then I apply my watermark to each page and then export them as PNG images again. I mark the exported PNG files with the ‘WM_’ prefix to differentiate them from the original PNG images, which would otherwise have the same file name.

For the sake of clarity I should state that I keep all the original files (raw scan images) just incase I need to work with them again, and for some reason I do not wish to use the edited versions. It’s good practice to always keep and archive the original unadulterated images for instances like these.

Input:

generic_manual_p1_300DPI_scan.PNG
generic_manual_p2_300DPI_scan.PNG
generic_manual_p3_300DPI_scan.PNG …

Output:

generic_manual_p1_300DPI_scan.PNG
generic_manual_p2_300DPI_scan.PNG
generic_manual_p3_300DPI_scan.PNG …

WM_generic_manual_p1_300DPI_scan.PNG
WM_generic_manual_p2_300DPI_scan.PNG
WM_generic_manual_p3_300DPI_scan.PNG …

4) Creation of alpha-less versions of the edited images.

I use the terminal “convert” program to remove the alpha layers of every PNG image. This is because “img2pdf” can not compile PNG images into a PDF that contains alpha layers. (I.e. clear sections/layers within an image). If you try to, img2pdf will return an error message that contains additional instructions. Unfortunately it will still also output a 0 byte PDF file which you will have to delete.

Error message:

WARNING:root:Image contains transparency which cannot be retained in PDF.
WARNING:root:img2pdf will not perform a lossy operation.
WARNING:root:You can remove the alpha channel using imagemagick:
WARNING:root: $ convert input.png -background white -alpha remove -alpha off output.png
ERROR:root:error: Refusing to work on images with alpha channel

The “convert” command options assigns the background colour to the image as white. This is the colour that replaces any clear (or alpha) sections of the image. Next the alpha sections of the image are removed, then all alpha functionality of the PNG file is switched off.

Please note the exact order that the command options are passed to the program is not important, I only state this order for human understandability. Additionally the “convert” program does not actually convert the original files inputted into it, it instead outputs a modified copy. It will however overwrite the original file if you give the output file an identical name.

I suffix the “_no_alpha” label onto the the outputted files to differentiate them from their predecessors. Although as you can see the file names are getting long and unwieldy, especially if the manual itself already has a long name. However the various prefixes and suffixes all serve a purpose and are necessary for file version distinction.

Command:

convert WM_generic_manual_p1_300DPI_scan.PNG -background white -alpha remove -alpha off WM_generic_manual_p1_300DPI_scan_no_alpha.PNG

Input:

WM_generic_manual_p1_300DPI_scan.PNG
WM_generic_manual_p2_300DPI_scan.PNG
WM_generic_manual_p3_300DPI_scan.PNG …

Output:

WM_generic_manual_p1_300DPI_scan.PNG
WM_generic_manual_p2_300DPI_scan.PNG
WM_generic_manual_p3_300DPI_scan.PNG …

WM_generic_manual_p1_300DPI_scan_no_alpha.PNG
WM_generic_manual_p2_300DPI_scan_no_alpha.PNG
WM_generic_manual_p3_300DPI_scan_no_alpha.PNG …

5) Compilation of all alpha-less images into a single PDF file.

I compile all the watermarked no alpha layer versions of the image files into a single PDF file using “img2pdf” via the terminal.

Command:

img2pdf WM_generic_manual_p1_300DPI_scan_no_alpha.PNG WM_generic_manual_p2_300DPI_scan_no_alpha.PNG … -o generic_manual_300DPI_scan.PDF

Input:

WM_generic_manual_p1_300DPI_scan_no_alpha.PNG
WM_generic_manual_p2_300DPI_scan_no_alpha.PNG
WM_generic_manual_p3_300DPI_scan_no_alpha.PNG …

Output:

generic_manual_300DPI_scan.PDF

6) Test, organisation, and archiving of files.

This stage firstly involves testing if the PDF actually works as expected. Whether or not it is functional and whether or not all the pages contained therein are in the correct order. As well as rendering and scaling correctly. To do this I just try to open the file using Mint’s default PDF viewer program (namely xreader), and skim through the document’s pages.

This stage also involves putting each different collection of images from the various stages of this process into their own labelled ZIP format archive file. Then placing all these files into another container ZIP alongside the ultimate resultant PDF.

It is then placed into the local “device_document_scans” folder. Which is then copied over to the backups. Finally, I also upload the PDF by itself onto this website.

Output:

generic_manual_300DPI_scan.ZIP

Containing:

generic_manual_300DPI_scan.PDF
imageset_no_alpha.ZIP
imageset_raw.ZIP
imageset_watermarked.ZIP

Thoughts on tools and equipment

Hardware

As far as hardware requirements go, its just the bare essentials really: a decent scanner and computer. Neither devices need to be anything special, just fit for purpose.

Computer

As for computers, whatever computer you are currently using is likely to be just fine. The main thing that may become an issue is probably system RAM size; and even then only when scanning large (600+ DPI) multi-page documents at the same time.

This is because the scanning program will have to hold all these rather large images uncompressed within the RAM as you scan through the document. RAM may also become an issue when using image manipulation software like GIMP. If it is too low it may limit how many images you may work on concurrently. At the very lest it may limit your ability to do other things on the machine as you process these images. For example running a RAM greedy application such as a modern internet browser (e.g. Firefox or Google Chrome).

Another thing that may be a limiting factor with computers is CPU processing power. When converting file formats or compiling a series of images into a portable document file: your system may freeze or become unresponsive. Especially if the programs used/running aren’t optimised to be multithreaded. Resulting in the instruction sets all getting queued on the same CPU core and thread. This in turn causes the unresponsiveness as user input is queued behind these instruction sets.

To sum it up, any computer with more than 2-4 gigabytes of RAM and an early generation Intel i3 processor will likely suffice. However there are too many variables that may affect whether or not these system requirements are adequate; such as the desired scan image size, resource use of the operating system, scanning program, as well as background processes.

Scanner

Now onto the scanner. Most if not all modern flat bed scanners should be adequate. Chances are if they connect to your computer via USB 2.0 protocol or better than they are new enough to provide the 300 DPI (dots per inch) image quality that I use for digitising my manuals. If you are scanning photographs you may require a higher DPI rate such as 600 DPI to maximize image detail retention.

However since the value of my manuals is rather utilitarian in nature, 300 DPI is a fine image quality for my use case. By ‘utilitarian’ I mean that the information printed onto the manuals is what I am primary preserving, and not each page’s visual aesthetic. Because of this I just need them to be legible without necessarily preserving every minute page detail.

Heck, an argument could even be made to go down to a 75 DPI scan setting: as it’s perfectly useable whilst also minimizing all file sizes; including all intermediary portable network graphic images, as well the final portable document file.

However I find that working with 300 DPI images (which translate to a maximum of 2550*3507 pixels for an uncropped full scan) are a good compromise between image detail and workability/use-ability.

Example of 1200 DPI scanned image unable to be displayed with xviewer

Scan DPI example files


(Feel free to download and test these files on your own system.)

Scan image metadata translations

(Translations based on a scan of the full scanner bed of a PANTUM M6607NW)

Key: scan quality (Dots Per Inch) / image dimensions (pixels) / file size (bytes)

  1. 75 DPI / 637*876 p / 870.9 kB (lossless PNG)
  2. 150 DPI / 1275*1753 p / 4.2 MB (lossless PNG)
  3. 300 DPI / 2550*3507 p / 17.5 MB (lossless PNG)
  4. 600 DPI / 5100*7014 p / 62.8 MB (lossless PNG)
  5. 1200 DPI / 10200*14028 p / 211.9 MB (lossless PNG)

Software

Since my operating system of choice is Linux Mint running the Cinnamon desktop environment, I just use the programs that are either available with the initial install package as standard; or downloaded from the standard Ubuntu repository if necessary.

Simple-scan comes preinstalled with Linux Mint. It is the default scanning utility program. There are more robust alternatives such as ‘xsane’; however my philosophy with regards to tools like this is that one only upgrades tools or seeks alternative tools when the default tools are found to be wanting. I.e. when there’s a particular functionality or quality that the current toolset doesn’t provide; and since the default simple-scan program provides adequate functionality, I don’t need to seek alternatives just for the sake of it.

Moving on. Both GIMP, Image Magick and ‘img2pdf’ are available within the standard Ubuntu software repository. So both can be downloaded using the ‘sudo apt-get install’ commands. However it is recommended that you first use “apt-cache search [program]” command to ascertain whether or not they are available within whatever repository that you are using, if you are using another Linux distro to Linux Mint.

sudo apt-get install gimp
sudo apt-get install imagemagick
sudo apt-get install img2pdf

To sum up GIMP. If you are coming from Windows, you may be used to other image manipulator programs like ‘paint.net’ or ‘Adobe Photoshop’, if not GIMP itself since it is a multiplatform program and available on Windows. Anyway if you have used any modern full-suite WYSIWYG image manipulation program, then GIMP will be an easy enough program to jump on to.

Finally Image Magick. This is a software toolkit that you access via the Bash terminal. Many people, including myself prefer TUI based programs like this due to their ease of use, user interface uniformity, and functional robustness.

I often write scripts including commands that utilise programs that can be accessed via Bash. The programs provided by Image Magick are no different. Once a person gets used to using them, it becomes a natural progression to create scripts which then automate the process.

This would be useful for situations such as batch conversion of multiple files: as scripting allows the user to go AFK or do something else, rather than babysit the process. Scripting and chaining commands like this is probably the greatest strength of CLI/TUI programs over GUI programs.

Closing thoughts

If you aren’t already accustomed to using any Linux based distro, then one thing I recommend keeping in mind is hardware compatibility. It is probably this platforms biggest weakness.

This is specifically because most companies build their products to target the Windows platform. Often facilitating device functionality by using proprietary drivers, and oft times even programs: such as with proprietary controller programs for LED keyboards. These drivers are sometimes absent in Linux. However in most cases there are open-source alternatives.

In the past this used to be a bigger issue. Thankfully the list of supported peripheral devices has gotten much better as of late. As it is at the time of writing, and according to my personal experience as well as as some online reading: most devices work flawlessly plug-and-play; however, some devices work for the most part but are missing some advanced functionality, and some devices don’t work at all.

Unfortunately the best way to tell whether or not your device will work, is by simply plugging it in and fiddling with settings and open source drivers; until it either eventually works, or you give up. Whichever comes first.

As an example: I had quite a few issues with my system not recognising my Pantum M6607NW printer-scanner combo properly, despite official Linux drivers being available on the standard repository, and via the companies website. Even now, after resolving that problem and getting the thing working, I am still having some minor issues with the device.

For example if you paid attention to the images above, you may have noticed that Simple-scan allows for a 2400 DPI scan in conjunction with the Pantum M6607NW. Unfortunately this setting doesn’t work as expected. It does scan the document, and it does it noticeably slower than on the 1200 DPI setting. Which is as expected, due to scan heads collecting more detail from each page segment. However the resultant image has the same pixel dimensions as a 1200 DPI scan. So if there is a higher detail density, it isn’t reflected in a larger image dimension – as is the case with all other DPI settings.

Although xviewer failed to open images of this size, the Firefox browser did not; and upon visual inspection and detail comparison between the 1200 and the 2400 DPI scans: I have concluded that they are identical. See for your self, the files are listed in this article. Knowing this, it is likely that simple-scan is providing an option that the scanner can not support. Although the Pantum’s slower read speed on the 2400 setting has me doubting this conclusion. Since it seems to exhibit a programmed hardware response to this setting.

I could likely find the solution eventually by combing through the official generic M6600 series online manual for my machine, then hunt down more specific documentation … although it is frankly not a priority at this point. As I am not planning on using a 2400 DPI scan setting anytime soon. I only highlight this specific issue to make you aware of the kind of troubleshooting fun to expect on this platform.

So if you are moving to a Linux based platform for productivity purposes, well you can’t say that you haven’t been warned. Having said that, don’t let that stop you from using this platform for this purpose. When it works it works fantastically, and when it doesn’t there is always something that you can do yourself to make it work. You have to get used to being your own tech support.

Best of luck archiving your documents, and as always:
Thank you for reading.

Glossary of terms

AFK: Away From Keyboard
Bash: Bourne Again SHell
CLI: Command Line Interface
DPI: Dots Per Inch
GIMP: GNU Image Manipulation Program
GUI: Graphics User Interface
PDF: Portable Document File
PNG: Portable Network Graphic
PnP: Plug and Play
TUI: Text User Interface
WYSIWYG: What You See Is What You Get

Links, references, and further reading

#0023: Repairing short circuit damage within a ribbon cable

#0023: Repairing short circuit damage within a ribbon cable

Preamble

Sometimes you might come across damage within a ribbon cable similar to the example. The minor burn damage on the example featured was done by a liquid causing a short circuit between two exposed copper pads. As it burned, it created a break between an exposed pad, and it’s respective trace. Cutting the circuit in the process. The short also caused some of the other pads to oxidise, and some minor burning of the ribbon cable’s plastics. This will be a quick tutorial on repairing such a fault.

Please note: I have no images before the initial cleaning and prepping stage. This is because I was halfway through this repair, when I decided that it may be good to document it.

Tools and materials:

  • scalpel
  • tweezers
  • isopropyl alcohol
  • cotton earbuds
  • soldering iron
  • lead solder
  • copper strand from a wire
  • side cutters
  • multimeter

Step 1: Identifying and logging the damages

This should always be a first step before attempting a repair. The reason for this is that the initial pre-work cleaning, is likely to clean away a lot of contextual clues about the location and severity of all the damages. A good visual inspection and initial assessment can save time later on, due to not having to track down any circuit damage that got masked or hidden by cleaning.

Step 2: Cleaning the local area

First thing I did after identifying the location of any potential damage I wanted to repair, was to clean it. In this case I needed to first scrape off the more obvious patches of oxidation and burnt/melted materials using a scalpel. Then thoroughly clean off the pads of the ribbon cable using isopropyl alcohol and a cotton earbud. I paid special attention to the tiny burn hole next to the most damaged pad, making sure to remove any conductive materials from it by scraping it out thoroughly.

Step 3: Test to confirm faults

Using a multimeter in continuity mode, I tested for continuity between the pads surrounding the burnt spot. Perhaps it still contained conductors (such as pieces of the broken pad) that may cause a future short. After being satisfied that it did not; I focused on the particular pad that sustained the most damage, and tested for continuity across this pad and it’s respective trace to see if it was still connected. It was not. All other pads had continuity with their respective traces.

Step 4: Fixing confirmed faults

After identifying only a single fault; this being a break between a pad and it’s trace. I moved to repair it. Firstly I endeavoured to bridge the gap by just tinning across it from the pad to it’s trace. The thought process was that that the mere mass of the solder itself would be enough to bridge the tiny gap. It did not. After that initial failure, I decided that I required a bridging medium; something for the solder to adhere to. In this case I decided to use a single copper strand from a wire.

Using a scalpel, I removed some insulation from the ribbon cable trace above the broken pad. This was in order to have something on that side to comfortably solder the copper strand to. After which, I soldered the wire whilst using a pair of tweezers to hold the tiny copper strand down in place.

Step 5: Cleaning up after a repair

The next step involves cleaning up any messes I might’ve caused during the repair. In this case, whilst trying to initially tin the broken pad, I also tinned the neighbouring pads accidentally. In trying to remove the bulk of the solder, I caused further damage by starting to burn the plastic that the pads are set into. In the end I decided to just leave it be. The repair needed to be functional, not aesthetically pleasing. I did consider using a desoldering braid to remove all the solder, however I was very likely to cause more damage trying, so I opted to just leave it be.

In the end the after-fix clean consisted of just clipping off the excess wire with a side cutter and cleaning off any flux residue with an isopropyl dipped cotton earbud.

Please note: There is no electrical connection between adjacent pads. The burnt plastic between the pads just looks like solder. I told ya it was ugly.

Step 6: Testing the repair

Next. I performed a quick continuity test on the repair with a multimeter; both testing for continuity across the pad to it’s trace; and testing for a lack of continuity across neighbouring pads. These tests take basically no time to do and can set my mind at ease. I do these types of tests even when a visual inspection indicates that it’s not necessary.

The real test is putting the device back into service and seeing if it functions as expected. In this case the ribbon cable that I repaired was from a laptop’s integrated keyboard. Although the ribbon cable fitted more snugly into it’s receptacle or socket than I wanted. It still fitted and functioned properly. The keyboard was fully functional after this repair. Huzzah!

Closing thoughts

I apologise if this article came off as a little patronising; especially given the quality of the example repair, the missing “before” picture, and the fact that it contains mistakes front and centre. Generally, I find step-by-step guides like this one difficult to write, without sounding either needlessly pedantic or excessively didactic. Anyway, even if the exact specifics are not useful to you, I hope the general steps would be. Identify. Clean. Test. Fix. Clean. Test. Then Profit. That is if it works, if not: then go back to testing for faults.

Thank you for reading.