Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,594 karma · joined Dec 4, 2013 (12y ago) · 4,862 submissions

email: I'll add a suitable email one of these days
Submissions

comment 4y ago · link · parent

I only discovered algorithmic stablecoins recently and I'm very curious about DAI: somehow they're there since a long time and they've been fine during turbulent ETH price action.

But DAI are basically very tied to USDC and it's not clear at all should Coinbase go bankrupt if they'd be using the assets backing the USDC to pay their debt or not. In a recent Coinbase report they said they may use customers' funds to pay back their debt should they go bankrupt but they said nothing about USDC.

I know USDC aren't directly emitted by Coinbase but by a joint-venture Coinbase is "only" part of but still sounds scary to me.

So it's not clear at all to me that DAI would still work in the face of Coinbase going belly up (COIN is at $48 before the market opens, that's -86% compared to its all time high so things aren't exactly smooth sailing and all the crypto exchanges are feeling the heat right now).

So, yup, DAI is more than fully collateralized, but it's relying on Coinbase / Circle not doing anything shady with the assets backing the USDC stablecoin.

comment 4y ago · link · parent

If Stuxnet was made to stop Iran from getting nuclear weapons, here's a headline from today (which may btw be the reason why articles on Stuxnet are reappearing now):

"Iran is closer than ever to a nuclear weapon as Biden runs out of options".

comment 4y ago · link · parent

> Speaking of landfills, most of those computers had RTC on board, and were powered by batteries, which tend to explode and "rot" away the board. It's likely very few of them will be salvageable in an easy-to-repair way if they sit for another 20 years.

Yup. During the lockdown I had time to waste and checked various YouTube videos and they scared me enough that I started checking my old computers for batteries. Found one in an old Apple computer (I forgot if it's a Classic or Classic II or Plus: one of those "inside" a 9" CRT) and indeed the battery had started leaking. I took it out, cleaned what I could, and the computer was still working. But a few more years and it would have been badly damaged.

And it's not just batteries: capacitors may sometimes start leaking and destroying the PCB too.

comment 4y ago · link · parent

> The definition of cool is, of course, at your discretion.

OK I'll bite... There's a very cool five letters dot com which exists since forever (I just checked on the Internet Wayback Machine and it has a copy of the site in 1998!). I'll say what it is but I'd rather not link it directly as I wouldn't want HN to kill it (and its owner deciding to pull the plug, you never know you know).

It's basically called "lost.com" (but in another language) and there are just two lines of text saying:

   Lost on the Internet?  Don't worry, we're going to help you
   * <--- You are here

I don't know who created it but that's my definition of cool!

comment 4y ago · link · parent

I'm also using something very stable, since years and years (so long I don't remember): I'm using the tiling "Awesome VM". 13 virtual desktops. One (keyboard) modifier assigned only to the WM and not anything else. I'm always putting my regular apps on the same virtual desktops: work email on virtual desktop '1', throwaway browser on '9', Emacs on '3', shitloads of xterms and cpu/disk/network monitors and whatnots on '5', etc.

It's minimal in its appareance: one-pixel border around windows, a tiny "useless gap" between windows (but not near the monitor's physical borders for the monitor's physical borders do, IMO, act as the "gap").

Been a happy camper since years.

comment 4y ago · link · parent

Same here. I love woodworking and got some tiny skills but I keep it totally separate from the digital world. Now: at times I wish I had a 3D printer and 3D modelling skills and could models some plastic pieces I'd need for this or that.

Power tool junkie FTW too.

comment 4y ago · link · parent

Not really but when a EU directive is decided, the member states have x months to translate it into national law. It's still the law of the specific country that applies: but, simply, each country has to adopt the EU directive.

It's kinda more complicated than this as many european states are divided into regions, so for many matters it's not even the individual states transposing the EU directives into national laws but regions transposing the EU directive into regional laws.

One example would be the EU deciding, a few years ago, that the age for cars to be considered "old timers" is 30 years. Before that some regions had 20 years, others 25, others 30, etc. Then all the regions had to adapt their legislation. In a single country, like Belgium, the three regions all transposed the laws in varying ways (and at different times). But in the end the result is the same: all european regions have "harmonized" the notion that an oldtimer is a vehicule 30 years old or older.

Now there are several matters on which the EU has no authority whatsoever. For example the EU has no fiscal authority: fiscality is decided by the countries/regions and the EU can shut the fuck up. (so far).

comment 4y ago · link · parent

As the others have answered... I don't have a TV but I've got a projector with a gigantic diagonal. I posted here several times that I don't understand why streaming from Netflix gives a worse picture than playing a torrent. The DRM itself may be the reason apparently (maybe the computer I use to stream from Netflix ain't powerful enough? No clue).

I'll just say this: sailing the high seas (well, kinda: I only pirate the movie which I have access to anyway and I'm subscribed to Netflix/Disney+/Amazon Prime Video/etc. + 140 channels as part of my Internet subscription) gives a better picture than streaming.

People underestimate the quality of streaming movies locally and playing FLAC files locally vs streaming.

comment 4y ago · link · parent

I'm more of the Marie Kondo style but couldn't get rid of the computers of my childhood: Atari 600 XL, Commodore 128, Amiga 500, Ti 99/4a (although that one I bought only a few years ago). My most prized possession is a very rare 5"1/4 floppy disk reader for the Amiga (which was supposed to have 3"1/2 floppies): not the official Commodore 5"1/4 floppy disk reader (also a rarity) but a bootleg one.

I've got two big boxes and when I move to another country, these come with me. We've already done three countries together. The Atari 600 XL and the Commodore 128 were still working during the first lockdown (I was stuck at home and took the time to test them).

Once in a rare while I boot the non-modded, time capsule, C128 of my teenage years and launch the game Commando just to hear the song on the SID chip.

I take it they still bring me some joy!

comment 4y ago · link · parent

Someone should make one for the various countries: "Is is a Ponzi? A framework for evaluating pension schemes".

comment 4y ago · link · parent

> Can we have a sample with allowed hosts, cors, auth, input validation, open api docs, request logging with true IP addresses, XSRF/CSRF attack protection and so on?

The 2000s called and want their "Pet Store" back!

comment 4y ago · link · parent

Wait: what about these higher certification? Is there going to be some kind of "master key", controlled by the FIDO alliance (?), that would somehow sign the keys produced by "complying" company X or Y? Making it impossible to come with a software implementation allowing to users to backup their keys? Or are you saying that a software implementation would be totally doable but just wouldn't be officially certified?

comment 4y ago · link · parent

What is really great with FIDO is that, if you're using a proper device the device also tells the user that he's authenticating to a site he previously registered on. So the user cannot be tricked into registering his key to, say, g00gle (with two zeroes) when he thinks he's actually authenticating with an already onboarded key.

A friend has got a U2F device (forgot its name) which has six buttons that serves to enter a PIN and the PIN to authenticate and the PIN to register are different ones.

Or the Ledger Nano S hardware wallet (and probably the X too) have a U2F app (so the "older" standard only atm) but there it's even better: the device not only tells you if you're registering the key for the first time or authenticating but it also displays the name of the site you're authenticating to.

This is one notch above many other authenticating methods: it doesn't just protect the server versus malicious users, it also protects honest users logging into malicious servers/websites.

comment 4y ago · link · parent

> Repeatedly typing the 'y' character into a Linux pipe is surely not that common, especially at that bit rate.

At that rate no but I definitely use it once in a while. For example if a copy quite a few files and then get repeatedly asked if I want to overwrite the destination (when it's already present). Sure, I could get my commmand back and use the proper flag to "cp" or whatever to overwrite, but it's usually much quicker to just get back the previous line, go at the beginning (C-a), then type "yes | " and be done with it.

Note that you can pass a parameter to "yes" and then it repeats what you passed instead of 'y'.

comment 4y ago · link · parent

> (Not a knock against this service, but just a testament to the complexity of ffmpeg lol)

I found a modified a ffmpeg shell script no later than yesterday that finds all my movies files and generates one jpeg with 16 "tiles" thumbnails for each movie to try to make sense of the countless family "MOV40931.MOV" and whatnots and I've got to say: I agree with you.

My big moment of solitude was when I started to work on parallelizing my shell script only to realize that, of course, ffmpeg already makes good use of all the cores so there's no point in parallelizing the shell script.

comment 4y ago · link · parent

> ... while in VSCode for example the file is opened immediately and things like LSP and syntax highlighting are loaded in the background.

I'm not saying you're not experiencing what you're describing but I find that weird because I use Emacs with LSP and the system is responsive while LSP loads up. And I'm using lsp-mode, not Eglot (I should really try Eglot). I mostly use it for Clojure: I'm using both Cider and lsp-mode and they work fine together. And as soon as I open any Clojure source file, I can keep using Emacs while LSP starts (which is not that slow btw: only about three seconds I'd say). LSP is one of those things that runs in another process, so it's one of those case, for me at least, where Emacs acts like if it was multithreaded. I haven't seen this lock up / freeze while waiting for some LSP server answer.

For example I'll typically open a Cojure file, lsp-mode shall begin loading automatically and then I manually launch Cider: everything happens "simultaneously" and I'm not blocked.

I'll play more attention with other LSP servers (like the CSS one) but nothing strikes me as slow or frozen.

If there's one thing I could complain about is that when I'm busy doing other things (because my Emacs ain't blocked), I see spurious LSP messages telling me where it's at kinda distracting me.

Now I take you're using a native-comp Emacs? And a fast JSON parsing lib?

Emacs 28, native comp, lsp-mode, AMD 3700X, NVMe SSD, 16 GB of RAM. A good machine but nothing crazy fast.

comment 4y ago · link · parent

I think he meant "inverted U". An upside-down U if you want.

comment 4y ago · link · parent

> Sans-serif will get you ugly fonts, such as Arial on Windows, and likely DejaVu Sans or Liberation Sans on Linux.

Exactly. I find Liberation Sans very good but I cannot stand DejaVu Sans (which is the sans serif font all too often when browsing sites from Linux).

comment 4y ago · link · parent

> but after that it's just a scattershot list of guesses that will often be wrong.

What do you mean? If it's wrong, the font ain't there. If the font is there, it's the correct font (according to the desire of the one who made the stack). If my stack has "Liberation Sans", it means that if your system has Liberation Sans, then it's going to be used. And it's very often better than the default system font ("Deja Vu Sans", for example, is a typical fallback on Linux and sucks big times compared to Liberation Sans and compared to many other sans-serif fonts).

The way I see it that's the entire point of these "scattershot list of guesses": you can put several, it absolutely doesn't matter. The goal is to find one that matches before falling back to the default.

comment 4y ago · link · parent

It's great to see that "Liberation Mono" is added (it's a great font family available on some Linux systems, some of which may not have Ubuntu). But please always add "Liberation Sans" and "Liberation Serif" to the other stacks too. You risk nothing doing it and they render very well when present (says "Liberation Sans" renders better than the default sans-serif this stack would fall back to).

comment 4y ago · link · parent

That's kinda the point of these font stacks right!? You want to fall back to the default sans-serif font only if you didn't some better font first.

comment 4y ago · link · parent

It's 3 Gbps down and up and the router has a SFP+ 10 Gbit/s port (AFAICT), so that's good. But it's "only" 50 GBP for 24 months, then it's the full 99 GBP (about 116 EUR).

I'm in France atm and received my fibre router a few days ago (but it's not installed yet): next week the technician should bring the FTTH and then we should be able to plug it in the router. I'll be enjoying 2 Gbps/down and 600 Mbit/s up. The router OTOH shall not offer a 10 Gbit/s SPF+ port so I'll be "stuck" a 1 Gbit/s on my desktops (I don't think the router offers 2.5 Gbit/s ethernet ports). Cost is 72 EUR / month.

Crossing fingers because it's a house in the middle of nowhere and it's been years they promised fiber was coming. I'll believe it when I'll see it.

It'd be a big upgrade compared to the 50 Mbits/ down // 6 MBits/up I'm currently using.

(as a sidenote France had a plan for 100% fiber coverage for 2022 but things got delayed a bit due to covid and due to the issue of training enough technicians to install the fiber)

comment 4y ago · link · parent

> 1) Bandwidth. The users internet can only handle so much network throughput, so for fast paced games (where you're sending data to each client at a rate of 20+ frames per second) it becomes important to optimize your per-frame packet size. This means using techniques like binary encoding and delta compression (only send diffs).

Games like Blizzard's Warcraft III / StarCraft II and Age Of Empire linked here in this thread (1500 archers on a 28.8 k baud modem) and oh so many other games approach that entirely differently: the amount of user inputs users can input is tinier than tiny. So instead of sending diff of the game state they send user inputs and the time at which they happened. Because their engine are entirely deterministic, they can recreate the exact same game state for everybody from only the timed user inputs.

Fully deterministic games engine also allow for lots of easy to reproduce bugs and they also allow for tiny save files.

Negligible network traffic. Tiny save files. Bugs are easy to reproduce. When the game allows it, it's the only reasonable thing to do.

comment 4y ago · link · parent

> why don't more people act as their own architect / build more of their housing themselves?

In Europe at least legality of the process. I do a shitload of DIY in the home and so does my brother in his home. Fancy hotel-looking closet with lighting and whatnots? (this sure give a "luxury" feel): we got it. But I'm not allowed to build a house from scracth. I'd love to: my grandfather build a chalet all by himself in the fifties and that chalet still exists.

For the architect plans you kinda can do it yourself and then find an architect that'll adapt and sign the plans.

But the concrete, the electricity: you need stamps/approval from professional and the state does send people verifying that everything is kosher.

You can have the wall and electricity lay out and then do a lot yourself, but you now have the issue that the price you'll pay for "stuff" aren't the discounted prices the professionals do get.

comment 4y ago · link · parent

> I think this is largely because people are writing JS on the frontend, and it's easier to do SSR with the code you've already got

That and those writing JS on the frontend are, among all the devs out there, those the more likely to be working on SSR pages.

comment 4y ago · link · parent

> You can also tax based on engine volume, in order to penalize gas-powered vehicles more and still penalize curb weight indirectly.

It's basically what many countries in the EU do. France leading the charge (buying for example a Ferrari with a shitload of horsepower will be accompanied with a one-time tax of $40 000 USD (well, EUR) you have to pay to the state) and, no, people paying 200 K EUR for a brand new car are not happy about paying 240 K EUR so the tax "works".

It's also why the "downsizing" of ICE is happening: much smaller engines, but with turbos. And they do consume less fuel.

Of course now that all the EU countries pushed like crazy for sales of hybrid and EVs, they're now coming up with new legislation in the work that is going to take weight into account (because EV batteries tend to be heavy and they have to find a way to tax EVs).

I mean: those in the EU who bought an EV are kinda getting ripped of... The price of electricity is through the roof (in some cities like Brussels it simply doubled YOY) and they'll now be facing soon a tax on weight (it's going to be a EU directive so all the countries will have to adapt).

What a way to thank people for not buying gas guzzlers!

comment 4y ago · link · parent

Agree with what? That's not the original point. The original point was that Linux font rendering "doesn't come close to Windows or Mac".

You're all shifting the goalpost.

Nobody is saying that fonts on a retina display on OS X do not look better than fonts on a non-retina display on Linux.

What we're disputing is that fonts rendering on Linux is so bad that it's "uncomfortable".

Now we may have a discussion as to whether everybody should be using retina display or not but that'd be another topic.

comment 4y ago · link · parent

I think you misunderstood me. I've actually worked in print. I've written and typeset more books than I can count using professional DTP software (and LaTeX too). I know a thing or two about fonts.

I do not expect a non-retina display to display fonts as beautifully as a retina display, just to make things clear.

What I'm saying is that fonts under Linux aren't bad to the point of being uncomfortable.

And just to make it clear: I've got Windows and Linux, on non-retina displays, showing the same sites. Linux ain't worse.

There's a big difference between saying: "Retina displays are better than non retina ones" and saying: "Linux font sucks".

Yup: not everyone is on 4K / retina display. We know that. It doesn't make font rendering on Linux broken.

comment 4y ago · link · parent

Is it really as bad as you make it out to be? I've got everything at home: old non-retina MacBook Airs running OS X, a M1/retina MacBook Air running OS X, Windows (well, wife's computer) and then Linux laptops and desktops.

Fonts on my main Linux "workstation" may not be as perfect as on the M1 Mac I use from the couch but it's because my 38" monitor ain't retina and it's a far cry from making "browsing uncomfortable".

Yes, many of the CSS stacks (even for the big sites which really should know better) are totally broken when it comes to Linux (they don't list enough fonts that various distro will have by default, they list fonts that many distro will not have by default and unsurprisingly end up defaulting to shitty fonts) and as soon as one site started using that one CSS stack, they all started the copy/pasta. But I wouldn't go as far as saying that browsing on Linux is "uncomfortable": many people do that on a daily basis and are perfectly happy.

Also not all websites have broken CSS font stacks for Linux. Some saw the light.

1
137138139
163