Categories
Life

Short post day – charging laptops with weak chargers

How long would it take to fully charge my Mac from 0 to 100% with my 5 W charger? Why this question? Well, I have a cheap Chinese power bank that claims a battery capacity of 10,000 mAh. No doubts whatsoever. This is most definitely a 10,000 mAh power bank: OK maybe it’s not 10,000 […]

Categories
DIWhy

Repasting my 2018 MacBook Pro

This is going to be a short article, because I neglected to record anything. I was going to initially disassemble the entire thing, then reassemble it, then start recording again as I went through the process. In reality, I only disassembled it once and gave up all hopes on re-disassembling it, because it is that […]

Categories
Developer

School phishing email analysis

Big notice before we begin Before you start reading, please delete the email you have received. Do NOT click on the link. If you have clicked on the link contact IT support to have your password changed. Seems like people at our school really need a basic computer security training. But that’s OK, because for […]

Categories
Android Apple Developer Linux

Benchmarking OEM responses to GPL requests

This is a continually-updated list of OEM responses to GPL requests. In some cases we don’t even have to request – most sources are available online already (Samsung and Apple, though Samsung partially as you will see below.) This is not a comprehensive list. I’ll continue adding more companies as I come across their products […]

Categories
Developer

School malware email analysis

Around 10:24 AM most of the students at our school received this email from our IT administrator: Dear fellow students, As you may already be aware, there is a scam email circulating around campus.  So be careful. This computer virus probably infected someone’s home computer (our school computer has anti-virus program installed and it can be […]

Categories
China

List of Chinese apps for foreigners

This list will be continuously updated! Or, at least until I leave China. Android CAUTION – Before installing any of the APKs listed below, consider uploading them to VirusTotal to make sure nothing nasty has been done to the installers! 饿了么 (Èle me) – Direct APK link (open this on your Android phone)淘宝 (Táobǎo) – […]

Categories
Developer

Flush any DNS cache

Windows Thanks Microsoft, for making this easy and consistent across all Windows versions! You only need to remember one command: That’s it. macOS In stark comparison, Apple decided to Think Different™ and make 20 different commands to flush the DNS cache. And there’s only one valid command in each macOS version. sigh Let’s get to […]

Categories
Linux

Back up your WordPress site (manually)

TL;DR – don’t use automated solutions. Do it properly and do it manually Create a temporary directory to work in: Time to dump the MySQL database! It’s not that hard. Quick note before you run this – this is assuming your MySQL installation authenticates via UNIX sockets. If you have password authentication I suggest moving […]

Categories
Android Apple Developer Linux

Properly handle network connections in your app

You, as a developer, probably want a utopia where all network connections establish at once and never drop, giving you fast throughput with low ping. But this is the real world where that almost never happens. So when you’re designing your app, there are some tips to keep in mind in order to make your […]

Categories
Android Apple Developer Linux

How to encrypt everything in your life

Big warning before we begin Encryption is only as strong as the schema that supports it. If the software has a vulnerability then your encrypted data may be as good as unencrypted data in the hands of adversaries. So make sure you keep all of your software up to date and follow best practices. I’m […]