Better HN
topnewbestaskshowjobs
Log inSign up

qbasic_forever

10,505 karma · joined Feb 3, 2021 (5y ago) · 2,505 submissions

Submissions

comment 5y ago · link · parent

Like most things in software, it's ultimately just people and collaboration problems. I should be careful not to paint Debian in too bad of a light because ultimately it's what the people involved make it--good or bad. It's just that historically Debian enthusiasts have gravitated towards a lot of bad, old gatekeeping mindsets that have really made it difficult for the broader Linux community to grow. For example I think back to all the drama with the early days of Ubuntu and how many in the Debian community were vehemently against the idea that someone make a distro that's easier for people to use.

comment 5y ago · link · parent

Here's something to keep in mind that isn't super clear to newcomers, Linux != Debian. Linus Torvalds doesn't use Debian and nothing Debian does really impacts him or the core of Linux. Debian is just a highly opinionated take on Linux. You can totally dive in and be super productive with Linux without ever having to know about, use or, or care that Debian exists. (oh and Homebrew works great on Linux, give it a shot as it's a really easy way to move over from OSX).

Regarding the Debian package process, etc.--I'll be blunt and say that all of the pain you see is by design. It's not designed to be a super inclusive or friendly community for contributions. There are explicit gatekeeping checks in place to ensure everyone follows "the Debian way" (nevermind that there is no clear definition of "the Debian way" that anyone agrees on and it's only used to enforce power hierarchies in the project). It comes from an even older gatekeeping around "the Unix way". IMHO ignore all that rubbish.

comment 5y ago · link · parent

We actually have the technology to destroy life on the planet with one thing, the cobalt bomb: https://en.wikipedia.org/wiki/Cobalt_bomb It's a salted nuclear bomb made to throw an enormous cloud of radioactive cobalt into the atmosphere of a planet. It would be as if hundreds of Chernobyl powerplants exploded in the air and the fallout would circle the globe, fall on all the people and plants and slowly kill them over a few years. The ecosystem would be devastated and the planet would become unlivable for some time. Luckily we decided hydrogen and neutron bombs were about as bad a device as we wanted to build and left cobalt bombs on the drawing board.

comment 5y ago · link · parent

I think you're asking a perfectly valid question. IMHO authentication is still an enormous mess and new standards like OAuth did nothing to improve it on the server side.

On your phone app store there's a strong and trusted source of identity coming from Apple or Google. They know who you are, what you're allowed to do, etc. and can delegate that authority to your apps.

On the server though... welcome to the wild west. How does your server know the person on the other end of a TCP connection is really you, or the person you shared a document to view, etc? You can put your trust in a third party authority like Google, Facebook, Auth0, Okta, etc. but that usually comes with a financial cost. You can roll your own auth or self-host an auth server, but then you're taking on a huge security burden and it's a big leap in complexity to manage something like Keycloak, an LDAP server, etc. It's just not an easy problem to solve with the tools the web gives us today.

comment 5y ago · link · parent

Syncthing if you want continuous sync. Rclone if you want periodic rsync-style copies. Both have web UIs, although they're definitely aimed at the power user and not novices. If they're non-technical users you probably want to setup a nextcloud or similar system so they get a more dropbox-like experience.

edit: reddit.com/r/selfhosted always has good threads on self-hosted web file managers too

comment 5y ago · link · parent

I don't disagree either to be honest, but the reality is we live in a world where almost every business is dependent on a presence that shows up in web browsers. This puts enormous pressure and real dollars spent on making web browsers and the HTML & CSS ecosystem super fast, accessible, etc. Thousands of developers are trained every day how to make basic HTML & CSS experiences. Any UI system that throws all that away and tries to build up a similar ecosystem from scratch is going to be churning and churning for years.

Don't forget browsers are pretty spectacular runtimes. V8 and its JIT compiler is arguably one of the best runtimes of any language in the world. Sure the very first view of a page is going to do some parsing, etc. but as it runs it gets faster and faster with core functions and components compiled on the fly into platform machine code. The sandbox and security and encryption support in browsers is top notch and supremely battle-tested and hardened. With WASM now pretty mainstream we're starting to see entirely new frontend UIs coded in languages like C++, Go, Rust, etc. that are incredibly fast too. If you squint hard enough the browser is really no different than the JVM or .NET CLR these days--it just has 20 more years or so and an order of magnitude more developers working on improving it.

comment 5y ago · link · parent

We've had about 60 years and multiple huge attempts at it, and IMHO HTML & CSS _are_ the easy to use cross-platform GUI platform. Nothing else stuck--flash, java swing, qt, etc. were all super capable and promising but failed to gain mass usage. HTML & CSS is the way. Nothing in existence has as much capability, developer usage and talent pool, accessibility and internationalization features, etc. A good GUI system is much more than just getting boxes and text on the screen.

comment 5y ago · link · parent

Even basic things like reading and writing files from the filesystem are obnoxiously difficult in a pure browser or PWA environment. Storing state in general is full of enormous pitfalls and eccentricities, like 50mb limits for some browsers or just completely random total deletion of all app state at the browser's whim.

comment 5y ago · link · parent

Electron gives you far, far more access to native libraries and hardware than PWAs will ever dream about. People are still arguing about how to expose USB devices, bluetooth, etc. in the browser for example. With an electron app you can just npm install a few native wrapper libs and go to town. It's great for moving clunky old native GUI apps (IDEs, etc.) to a more modern cross-platform codebase.

comment 5y ago · link · parent

Modeling their migration off the Python 2 -> 3 migration. Bold move, let's see how that works out for them.

comment 5y ago · link · parent

And? Is it a documentation problem then, that the SQL alchemy devs don't think it's worth the time to explain to devs familiar with active record what they gain using SQLA?

comment 5y ago · link · parent

"75% of office employees report that they want a hybrid in-office and remote schedule"

massive, massive citation needed here

comment 5y ago · link · parent

When engineering and art combine though, you get beautiful things like 1970s NASA documentation: https://standardsmanual.com/products/nasa-graphics-standards...

comment 5y ago · link · parent

Why do you even need SVG if you're on the web already though? Nothing in these code pictures requires more than basic CSS and HTML. You can go wild with fonts, gradients, shadows, etc. to make beautiful looking pre and code elements. Tools like prismjs will syntax highlight with spans. Everything is in plain old semantic HTML with aria properties where appropriate.

comment 5y ago · link · parent

The auto lock on device removal with udev rule would be the same idea, in fact you could use any USB device like a basic flash drive if you wanted. Changing PAM's login to use the device for login would require a bit more device-specific stuff--I'd search around to see if Safenet already provides a module to drive PAM auth.

comment 5y ago · link · parent

Ooph, yeah this is going to be a nightmare for home insurance to unwind it all and deal with everything at such a big level.

comment 5y ago · link · parent

Consult your local regulations of course. But frozen pipes are no joke and can turn a brand new, perfect home into a condemned tear-down, rebuild in a matter of hours.

comment 5y ago · link · parent

Sewer systems, i.e. toilets and waste water.

comment 5y ago · link · parent

Good luck, and here's some advice from a midwesterner that has dealt with cold, ice, and snow forever. If it's cold enough to start freezing things inside then make sure you have some water flowing in your pipes. Keep your kitchen sink running on a low (very tiny) dribble. Maybe even keep a shower/bathrub running at a very low rate too. You do NOT want to be dealing with frozen, broken flooding pipes on top of no power. Can find more tips here: https://www.redcross.org/get-help/how-to-prepare-for-emergen... Good luck (and happy birthday)!

comment 5y ago · link · parent

The M1 laptops already have Thunderbolt 3 which is 40Gb/s and actually faster than PCIe 4.0 x16 (only ~35Gb/s).

Also these laptops have 8 CPU cores (4 high performance, 4 high efficiency) and 8 entirely separate GPU cores. It's a powerhouse of multiprocessing, especially when you consider it's in a laptop that gets 20 hours of real battery life.

comment 5y ago · link · parent

Haha I just had a horrifying throught about troubleshooting broken virtualenv installs and deadlocked dependencies, while on the side of the road with a car that refuses to start.

comment 5y ago · link · parent

It's still a perfectly valid question, how will this system work in the snow? Even flat featureless highways get covered in snow and ice.

comment 5y ago · link · parent

Adding the self driving option to a Tesla model 3 or S is up to what, like $3000 now? (on top of whatever extra tech package you have to add too) This is pretty competitively priced. A lot of folks spend more than that just on upgrading the stereo in their car.

comment 5y ago · link · parent

Since the early 2000's most cars have been using a drive-by-wire system for steering. They aren't exposed on OBD2 though, that's just for legacy emissions. Most are on a CAN bus but there isn't some big standard to control them all--it's very much a manufacturer by manufacturer thing right now.

comment 5y ago · link · parent

Yes, same person: https://www.theverge.com/2018/7/13/17561484/george-hotz-comm...

comment 5y ago · link · parent

Yeah if there were a one-click install _complete_ local distribution of Kubernetes with a GUI, and that just read and migrated all your docker-compose.yaml files I think it would see much less complaints and teeth-gnashing from new folks. The existing tools like minikube, kind, microk8s, are still too clunky and don't include everything you'd want for a good local setup (login/authentication, ingress, registry, easy mounting local host volumes, a good operations workflow with gitops primitives, etc.). Docker Desktop comes close with a one click turn on a kubernetes cluster, but the handwriting is on the wall for the end of docker & kubernetes tight integration. All of the pieces are out there to make a buttery smooth and slick local Kubernetes stack but unfortunately you have to seek them out and kludge it all together yourself.

But if you do feel ambitious, k8s + flux gitops toolkit + tekton CI/CD + knative serving & eventing + skaffold is one heck of a productive and amazing stack for development (and for bonus points switch your code to a bazel monorepo and rules_k8s for another awesome experience).

comment 5y ago · link · parent

Visual BASIC is even older than Delphi and was the benchmark for low/no code app development. We called them RAD tools, "rapid application development". If you really wanna go back, hypercard on Macintosh was kinda the original that inspired them all (and even inspired the web we have today).

comment 5y ago · link · parent

You don't get server-side rendering with a simple vue component though. I.e. when Google's crawler hits your site it just sees a blank html page with a div and nothing more, and your SEO is zero. For a content-heavy site like a blog this is a death sentence of discoverability, and it's why I mentioned you have to go down a deep rabbit hole of extra tech like SSR, static site gens like Gridsome, etc. to resolve it (all with a new set of tradeoffs to consider).

In contrast with alpine, you'd write all your content as plain HTML. Google's crawler sees it and indexes it like any other static content site. Then alpine sprinkles in a bit of interactivity on top for your users. Getting the same behavior with vue (static content with dynamic stuff attached to the DOM later) is non-trivial.

comment 5y ago · link · parent

Build a raytracer from scratch. It's a couple hundred lines of very straightforward C code, or much, much less with a higher level language. You will learn _a ton_ about the rendering pipeline, transformations, lighting, shading surfaces, etc. It is super satisfying the very first time you run and finally get some colorful shaded spheres floating in space--you'll remember that moment for a long time. This is just one of many resources to help get started with a raytracer: https://www.realtimerendering.com/raytracing/Ray%20Tracing%2...
1
8081828384