Announcement
Welcome to noted.do
A public journal for people who write in Standard Notes. What noted.do is, why it exists, and how to bring a Listed blog across before Listed closes.
Write it. Publish your notes from Standard Notes. Share it.
Announcement
A public journal for people who write in Standard Notes. What noted.do is, why it exists, and how to bring a Listed blog across before Listed closes.
noted.do/@you. You get a private token to publish with.https://noted.do/plugin/ext.json, then turn it on under Quick Settings, Tools.If you've ever kept a spreadsheet of anything (customers, books you've read, expenses), you already understand most of what a database is. You've got rows, you've got columns, every row is one thing and every column is one fact about it. A relational database is that idea, made strict and fast and able to handle millions of rows without your laptop fan taking off. The strict part is the important difference. A spreadsheet lets you type "twelve" into a column that's supposed to hold numbers, leave half the cells blank, and spell the same customer's name three different ways. A database makes…
There's an old sticker that says "There is no cloud, it's just someone else's computer." It's a joke, but it's also the most useful way I know to think about where your stuff actually lives. When your photos "go to the cloud," they get copied over the internet to servers in a data center owned by Apple, Google, Microsoft, Dropbox or whoever. Real machines, real disks, in a real building somewhere. The company keeps several copies so a dead drive doesn't lose anything, and lets you reach them from any device. That's genuinely great. Most people's cloud copy is better protected against hardware…
SQL injection is one of the oldest web vulnerabilities around, and it still turns up constantly. The reason is simple. The vulnerable version of the code is the most obvious way to write it. Picture a search box that looks up a user by email. The natural first attempt in PHP looks like this: It works. Type in an email, get a user back. The problem is that you've taken text from a stranger and pasted it directly into a command your database will run. The database has no way to tell which parts you wrote and which parts the visitor wrote. It just sees one string of SQL. So if someone types…
Bluetooth has a reputation, and it earned it. Headphones that connect to the wrong device. A speaker that cuts out when you walk to the fridge. A mic that makes you sound like you're calling from a submarine. It's tempting to assume it's just bad technology, but it's more that Bluetooth has been asked to do a very hard job with very little to work with. Start with the radio. Bluetooth uses the 2.4 GHz band, the same one used by a lot of Wi-Fi, wireless mice and keyboards, baby monitors, and your microwave. It's an unlicensed band, so anyone can use it, and everyone does. Bluetooth copes by…
You download a video, double-click it, and get either an error, a black screen with sound, or sound-less moving pictures. The file isn't broken. Your player just doesn't speak its language. To understand why, you need two words that get mixed up constantly: container and codec. The container is the file format, the thing the extension tells you about. MP4, MKV, MOV, WebM. Think of it as a box. Inside the box are separate streams: usually one video track, one or more audio tracks, maybe some subtitles, plus information about how to keep them in sync. The codec is how each of those streams is…
A laptop that feels painfully slow is very often not actually broken. It's usually a few specific bottlenecks, and some of them cost very little to fix. Before it goes in a drawer or the recycling, it's worth an hour of poking at it. The single biggest fix, if the laptop still has a spinning hard drive, is swapping in an SSD. Old hard drives are the reason so many older machines take ages to boot and freeze when you open a browser. An SSD makes the whole thing feel like a different computer. Check what kind of drive slot it has first (most older laptops take a standard 2.5-inch SATA drive,…
A login system looks like a weekend task. Two fields, a button, check the password, set a session. You could write it in an hour. And that hour of code would probably work, in the sense that the right person gets in and the wrong password gets rejected. The problem is everything around it. Here's a partial list of what a login system actually has to handle once real people use it: Storing passwords with a slow, salted hash (not encryption, not plain SHA-256) Password reset by email, with tokens that expire, can only be used once, and can't be guessed Rate limiting and lockouts so nobody can…
There's a specific kind of stomach drop that comes from realizing your database password is sitting in a public Git repository. Bots scan public repos constantly looking for exactly that, and API keys for cloud providers and payment services are a favorite. This is one of those problems where a few habits up front save you from a really bad day. What counts as a secret Anything that grants access. Database passwords, API keys, OAuth client secrets, private keys, webhook signing secrets, SMTP passwords, encryption keys, the app's session secret. If someone with that string could do something…
AI chatbots are useful. I'm not going to pretend otherwise. They're great for drafting, explaining a concept you half understand, turning messy notes into something readable, or getting unstuck on a bug. But they have one habit that causes almost every horror story you've heard: they sound exactly as sure of themselves when they're wrong as when they're right. There's no hesitation, no "um," no change in tone. A made-up court case reads just like a real one. A function that doesn't exist in a library looks just like one that does. That's the part that burns people. Not that the tool is wrong…
Before anything else: any second factor beats no second factor. Even the worst option on this list stops the most common attack, which is someone trying a password they found in an old breach. So if you only have SMS available on some account, turn it on. Then come back and read the rest. That said, the methods are not equal, and the differences matter most against the attacks that actually work today. Here's how I'd rank them. 6. Security questions These aren't really a second factor, but sites treat them like one, so they get a spot. Your mother's maiden name, the street you grew up on,…
Git has a reputation for being confusing, and some of that is earned. The commands are named inconsistently, the error messages assume you already know what went wrong, and there are about four ways to do everything. But the core idea is simple, and you only need a handful of commands to get real value out of it. This is the version I'd hand to someone on their first day. The one idea that matters Git takes snapshots of your project. Each snapshot is called a commit. A commit records what every tracked file looked like at that moment, who made it, when, and a short message explaining why.…
The person who'll read your documentation most is you, a few months from now, at a bad moment. The server is down, or a renewal broke, or you need to change one setting and can't remember where it lives. That person has no context and very little patience. Write for them. Most documentation fails because it's written for the wrong reader. It explains how the code is organized, which you can figure out by reading the code. What it leaves out is everything you can't figure out from the code: why you made a weird choice, which server it runs on, where the credentials are kept, what to do when it…
Someone in a forum told you to "just forward port 8080" so your home server or game or camera would be reachable from outside. Before you do it, it's worth knowing what that setting actually does, because it's one of the few router options that can change your home network from "pretty safe by default" to "open to the whole internet." Quick background. Your router has one public IP address. Everything inside your house uses private addresses that nobody outside can reach directly. When your laptop starts a connection out, the router keeps track of it and lets the replies back in. But when…
If your app has user accounts, at some point you're storing something derived from people's passwords. The question isn't whether your database will ever leak. Plan as if it will. The question is how much damage that leak does. Good password storage turns "attackers have everyone's password" into "attackers have a slow, expensive puzzle per user." That gap is huge, and it mostly comes down to picking the right function and not getting clever. Hashing, not encryption First thing to get straight. Encryption is reversible: anyone with the key can get the original back. That's exactly what you…
The marketing around 5G promised self-driving cars, remote surgery and smart cities. What most people noticed was a different icon in the corner of their phone. Both of those things are kind of true, and the gap between them is worth understanding, because it tells you what to actually expect. 5G is the next generation of the standard your phone uses to talk to cell towers. Like 4G before it, it's a set of rules for how radio signals carry data. The big improvements are more capacity (a tower can serve more people at once without slowing to a crawl), higher peak speeds, and lower latency,…