It's a feature of X (so works in any app running in X, not just FF and your terminal emulator). Wayland changed clipboard behaviour (along with many other things) and decided the selection clipboard was too large a security hole to keep. It's pretty useful though, so Gnome added it back, on top of Wayland. It's still a large security hole though!
Separately, PuTTY has a similar mechanism for copy, though this goes in the normal Windows clipboard.
A web page with Javascript can see & send off something you paste into a text box as soon as it appears. So if you accidentally paste some confidential information, like a password, that's a security hole even if you notice and delete it straight away. This happens even for totally innocent reasons, like search-as-you-type.
Ctrl-C/Ctrl-V copy and paste is not such a big issue because far more people are familiar with it, and it requires more deliberate actions on both sides (copying and pasting). So you're less likely to accidentally copy something around that you didn't mean to.
> So if you accidentally paste some confidential information
So nothing like a "large security hole" that needs to be fixed, right?
I mean at this point, "SSH is a large security hole because people may enter their password while someone looks at their keyboard". I wouldn't consider that a reason to remove SSH.
Restarting the DB is unfortunately way too slow. We run the DB in a docker container with a tmpfs (in-memory) volume which helps a lot with speed, but the problem is still the raw compute needed to wipe the tables and re-fill them with the fixtures every time.
But how does the reset happen fast, the problem isn't with preventing permanent writes or w/e, it's with actually resetting for the next test. Also using overlayfs will immediately be slower at runtime than tmpfs which we're already doing.
Resetting is free if you discard the overlayfs writes, no? I am not sure if one can discard at runtime, or if the next test should be run in a new container. But that should still be fast.
If your db is small enough to fit in tmpfs, than sure, that is hard to beat. But then xfs and zfs are overkill too.
EDIT: I see you mentioning that starting the db is slow due to wiping and filling at runtime. But the idea of a snapshot is that you don't have to do that, unless I misunderstand you.
Yeah unfortunately I think that it's not really possible to hit the speed of a TEMPLATE copy with MariaDB. @EvanElias (maintainer of https://github.com/skeema/skeema about this) was looking into it at one point, might consider reaching out to him — he's the foremost mysql expert that I know.
There's actually a potential solution here, but I haven't personally tested it: transportable tablespaces in either MySQL [1] or MariaDB [2].
The basic idea is it allows you to take pre-existing table data files from the filesystem and use them directly for a table's data. So with a bit of custom automation, you could have a setup where you have pre-exported fixture table data files, which you then make a copy of at the filesystem level, and then import as tablespaces before running each test. So a key step is making that fs copy fast, either by having it be in-memory (tmpfs) or by using a copy-on-write filesystem.
If you have a lot of tables then this might not be much faster than the 0.5-2s performance cited above though. iirc there have been some edge cases and bugs relating to the transportable tablespace feature over the years as well, but I'm not really up to speed on the status of that in recent MySQL or MariaDB.
LVM snapshots work well. Used it for years with other database tools.. But make sure you allocate enough write space for the COW.. when the write space fills up, LVM just 'drops' the snapshot.
US treasuries (bonds, notes and bills) are mostly considered as good as cash. They're used heavily in the international banking system (for payments, and as loan collateral themselves). They're also held to maturity by large institutional investors with predictable liabilities (ie payments) like pension and insurance funds. Banks will hold some of their assets (eg deposits) in treasuries too.
Also foreign governments and central banks will have holdings. Tether (the cryptocoin) is largely backed by US treasuries.
This is great: I've wanted a personal extension for a while (roughly to replace my userscripts but with more power and better sync) but was put off by it having to be public or manually installed. Now I can make this!
I have to reinstall my personal extension every time Firefox restarts. It's so annoying that I ended up writing an AutoHotKey script just to automate it (go to about:debugging#/runtime/this-firefox -> load temporary extension -> select manifest.json). Glad to see the announcement!
You can already use web-ext to sign it; it doesn't need to be published (you can keep the extension private). It's just that you need to be logged in to download it and can't really provide a "share link" (but you can of course upload/send that .xpi to anyone).
I have a few private extensions like this (e.g. for HN, GOG, my own new tab page, etc.). I don't have the exact steps for this at the handy, been meaning to do a write-up at some point, but my mk script is just "$webext sign --channel unlisted --api-key $jwt_issue --api-secret $jwt_secret" – I don't recall if you need to create it the extension in the Mozilla web UI first, but I don't think so(?)
Thanks! I thought this was impossible. Gonna try it out today.
Edit: I successfully signed the key on AMO. Here are the steps:
Get an access token from https://addons.mozilla.org/developers/addon/api/key/
In manifest.json, add browser_specific_settings.gecko.id and set it to something like "myext@example.com"
Run command: web-ext sign --api-key=<jwt-issuer> --api-secret=<jwt-secret> --channel=unlisted
That command will upload your extension to AMO. After an automatic review, you can download the .xpi file from AMO.
That said, it's not ideal for me since I make extensions for work. Looks like a human reviewer can check your code at any time.
> Looks like a human reviewer can check your code at any time.
Yeah, not entirely sure how this works. I've been doing this for a few years with a bunch of extensions, and thus far it's always just been automatically approved (although that does take a few minutes).
>but was put off by it having to be public or manually installed
Even prior to this there was an option to upload an extension to AMO for "private distribution". Mozilla will sign your extension so it installs without a fuss, but it won't be hosted on AMO. You can still host it on your personal website, or share the .xpi file though.
Wow so I can upload my extension to firefox servers privately and without needing review process maybe ? and install it on all my device ? (via autosync I suppose?)
Thats handy.
This is cool! The simulator was useful for understanding what was going on, I hadn't realised until I watched a few that the roons can push marbles out in between squares.
Thanks! Glad to hear the simulator was worthwhile, took me ages to hack it into shape.
I did actually experiment with adding markings on the edges of the path roons, so that when you put them together, the "phantom channel" becomes visible. Ended up looking pretty cluttered though so I scrapped it.
I don't see planning mentioned much in the article or comments. The Town and Country Planning act is a large cause of high development costs in the UK. Roads, rail, public works, nuclear power stations, onshore renewables and above all housing have all suffered significantly because getting things approved is so difficult.
Most other affluent nations have some form of zoning instead, which make planning much much easier. Most other affluent nations have more central control over planning too, which makes consensus over megaprojects easier to reach.
This feels similar to heat pumps being >100% efficient though? Perhaps a less misleading headline would be 'Very low-power LEDs also convert heat to light'
Ukraine's drones are already partly automated because of the jamming environment: they can visually lock the drone onto a target from up to 10km away.[0][1] They're also using drones that trail a fibre optic over several kilometres to avoid jamming.[2]
> already partly automated because of the jamming environment: they can visually lock the drone onto a target from up to 10km away
This capability is basically a reinvention of the walleye television bomb, which locked onto targets using edge detection on a signal from an internal television camera. 1960s technology.
Wire guided is still the primary means of guiding torpedos from submarines, because it gives you an unjammable, un-interceptible, consistent communication interface, and in torpedoes the wire spools out for tens of kilometers.
If you want something really cool, look up old fashioned TV guidance. We built weapons that guided based a TV signal, and edge detection in that signal. In 1958.
Well, the chargers won't be pulling 1MW continuously, so you can smooth this out by installing batteries with the chargers. The grid demand becomes a more constant trickle into the batteries co-located with the charger
the idea would be to slowly charge the capacitor to its capacity in the breaks between the charger being used. That way when you arrive at the charger, the capacitor would be fairly full and able to quickly transfer that energy to your car. The charger would then replenish that capacitor more slowly (meaning that the charger wouldn't be able to be used for a bit).
I don’t know that they’d need to be, though. British-style baked beans come in tomato sauce. I just checked my tins, and they’re 36% tomato according to the ingredients list. Unfortunately they’re not that cheap anymore. We pay over CDN$2+tax per tin these days if you buy the multipack. A far cry from the CDN$1.50 all-in those Tesco beans would be.
Separately, PuTTY has a similar mechanism for copy, though this goes in the normal Windows clipboard.
reply