Better HN
topnewbestaskshowjobs
Log inSign up

qbasic_forever

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

Submissions

comment 4y ago · link · parent

Wow, nice yeah I'd love to know how github supports configuring a URL to 301 redirect!

comment 4y ago · link · parent

Is that coming back with a HTTP 200 response though and the made up HTML page? That doesn't seem right... at least, I dunno if google and such would actually index your page at the new URL vs. just thinking "huh weird looks like blog.eowyn.net is now called '301 Moved Permanently', better trash that down in the rankings".

comment 4y ago · link · parent

I don't think you can set a page or URL on github to return a 301 moved permanently response or similar 3xx codes. This can really mess up your SEO if you have a popular page and try to move off github, you'll basically lose all the clout on the URL and have to start fresh. It might not matter for stuff you're just tossing out there but is definitely something to consider if you're putting a blog, public facing site, etc. there.

comment 4y ago · link · parent

Run this on a linux host and it isn't that much different from running thttpd directly. There's just some extra chroot, cgroups, etc. setup done before launching the process but none of that gets in the way once it's running. Docker adds a bit of networking complexity and isolation, but even that is easily disabled with a host network CLI flag.

It's really only on windows/mac where docker has significant memory overhead, and that's just because it has to run a little VM with a linux kernel. You'd have the same issue if you tried to run thttpd there too and couldn't find a native mac/windows binary.

comment 4y ago · link · parent

I think the real value is just focusing on the absolute minimum necessary software in a production docker/container image. It's a good practice for security with less surface area for attackers to target.

comment 4y ago · link · parent

A more interesting bit of AOL era ephemera was that we used away messages as people use Twitter today. In the AOL client you could set a short message (just a few hundred characters) as an away message that others would see if they had you in their contacts. People started to constantly set themselves 'away' with messages about what they were up to, how they were feeling, etc. I'm sure this likely influenced Jack Dorsey and the other early folks at Twitter since they were growing up and using AOL at the same time.

comment 4y ago · link · parent

Yeah, people should think of this like "what if Google engineers started at $45k salaries instead of $120k+?" They could work for years to get up to that same $300k+ level but they're starting much lower and expected to just take it (and the ultra high mountain view/SF cost of living).

comment 4y ago · link · parent

There is definitely some PR speak, it's the paragraph that highlights "No this is _not_ as a result of a strike or labor situation!"

They're mortified of people making the connection that labor has real power right now. They need to set the narrative that something else--COVID, weather, etc.--is causing less pilots to be available.

comment 4y ago · link · parent

If you have a lot of different languages in the same repo (like a monorepo scenario), you might be better served using something like bazel. It'll abstract away all the language-specific build systems, for better or worse, and make it a bit more uniform to manage. It's not a panacea--basically everything now has a single annoying build system instead of everything having an annoyingly different native build system.

comment 4y ago · link · parent

Try out the micro code editor, it has more generic/windows-like key conventions (i.e. Ctrl-C/Ctrl-V copy and paste), full mouse support, etc: https://micro-editor.github.io/

It doesn't support everything VS code can do (notably it doesn't have LSP support), but it could be more accessible to you than vim or emacs.

comment 4y ago · link · parent

Judging by how my cat can disappear and reappear at will all around my place... I wonder if household cats already have that ability.

comment 4y ago · link · parent

Every major sea voyage of the past had a cat or two, they were necessary to keep rats from eating all the food supplies.

Apparently the cat on board the expedition that discovered New Zealand immediately upon reaching land jumped out and grabbed a small flightless bird (then a brand new species discovery) and dragged it on board to eat.

comment 4y ago · link · parent

Cats can be trained to sit on and use a human toilet seat. A space toilet with a vacuum would be more challenging but I bet a dedicated animal behaviorist with enough time and training could get a cat used to using a space toilet.

comment 4y ago · link · parent

Read the engineering blogs of big companies like Google, Netflix, Dropbox, etc. and especially read papers they publish. Google has a book out now about its software engineering practices too--although it's not specifically on architecture you can glean a ton of info about how Google services work internally from its software processes: https://abseil.io/resources/swe-book

comment 4y ago · link · parent

Maybe they've been the most profitable laptop, but they definitely have not or ever been the number one seller by volume.

comment 4y ago · link · parent

Yeah code-server is really nice and underrated as a remote coding option. The linuxserver.io docker container for it is super fast and easy to setup: https://docs.linuxserver.io/images/docker-code-server

comment 4y ago · link · parent

These days services are typically small containers with just enough binaries and dependencies to run the code, so bringing up a full X11 server session and tunneling it locally isn't really feasible or smart.

comment 4y ago · link · parent

You might need to install all the language servers and extensions on the remote host too. Typically VS code realizes they're missing and prompts to install them. But if there's an issue you might need to dig around and see why it can't install the LSP services there (perhaps you don't have permission or access to get them).

comment 4y ago · link · parent

Mac never has grown beyond a small slice of the overall personal computer market. iPod, iPad, iPhone, etc. were absolutely revolutions that created and dominated entire markets, even today. However IMHO Apple still never got beyond a niche of the market for desktop/laptop computers. They build beautiful desktop/laptop hardware but the market seems happy with cheap devices that run Windows.

comment 4y ago · link · parent

This isn't a threat, this is a warning to be careful about how police and investigators operate with little knowledge of how the internet actually works. If someone were hosting a web server with child porn tunneled through your bore.pub service the authorities would only see bore.pub IPs in traffic logs, and they would definitely contact the DNS and IP block owner to figure exactly who runs that bore.pub server (you) and get a warrant to seize their computers.

comment 4y ago · link · parent

Testing and developing a web service. Run the service on your localhost, like straight from your IDE with a debugger attached, and get a public internet facing bore.pub address for it. You can then point anything at it--your staging/integration or even production service, or maybe just a friend or coworker who wants to see in development work.

comment 4y ago · link · parent

It's not really a user concern. It's highlighting that open relays like this are infamously abused and the people that run them can face pretty serious investigations or worse. It would not be fun to be woken up by interpol or the FBI yanking you out of bed with guns drawn because someone was using your public bore.pub service to host or send malicious or criminal content, control a botnet, etc.

comment 4y ago · link · parent

NextCloud is what I think of when I think of self hosting a webdav, caldav, etc. setup.

comment 4y ago · link · parent

> Is Bazel designed in a way that make it impossible to do JS monorepos well?

Not impossible, but you really need to go all in with it and follow its conventions and practices. See this for the main docs: https://github.com/bazelbuild/rules_nodejs

One thing in particular that doesn't work well in the bazel world is doing your own stuff outside its BUILD.bazel files. If you're used to just npm install and jam some code in your package.json scripts... that doesn't usually work in the bazel world. If you have a lot of logic or tools in your build you'll likely need to go all in and make bazel starlark rules or macros that recreate that logic. Nothing is impossible, but expect to spend time getting up to speed and getting things working the bazel way.

comment 4y ago · link · parent

distrobox to manage the container: https://github.com/89luca89/distrobox Then just install XFCE and tiger VNC server inside it. Using VNC makes it easy to connect into a little isolated session that has its own theming, etc. vs. trying to send geany to my native X11/wayland server (which wouldn't theme it like windows 95).

You could also just run it in a browser window with a VNC HTML bridge, this would be a good base for that: https://github.com/accetto/ubuntu-vnc-xfce-g3

The easiest way to get Chicago95 setup is to run its GUI installer python script. I don't try to script it in a dockerfile or container setup.

comment 4y ago · link · parent

I'm with you in that a lot of TS use seems dogmatic or ritualistic today. I have a strong feeling in the near future we're going to see the bow string snap back and simple zero build, basic dynamic use of pure JS comes back in vogue.

comment 4y ago · link · parent

If you're doing something new it's pretty straightforward to start with bazel and do everything from the start 'the bazel way'. If you're pulling in an existing codebase and a lot of dependencies along with it, you could be spending a lot of time to make it work 'the bazel way'. There's a very narrow path that bazel forces you to be on--this is what makes it work so well but make it difficult to stray off that path.

comment 4y ago · link · parent

I'm sad JS needs a build step. The best build system is none at all IMHO. I'd love to see native support everywhere for typescript or other things we typically depend on a build for today.

comment 4y ago · link · parent

I have a container I setup with XFCE and this awesome Windows 95 theme: https://github.com/grassmunk/Chicago95 Geany works perfectly inside it for a little retro dev environment. It looks and feels just like old Visual Studio versions, but I can code any modern thing I want.

comment 4y ago · link · parent

In the kind of setup you'd use with mutagen your dev tools and compilers are typically inside the container, while your code and editor are outside the container and being synced inside the container on every change. If the container is running on another machine/cloud service then yeah it could be that your compiler is running outside your machine. But much more likely it's still running as a container on your machine. The typical use case for this is making your dev environment accessible to anyone, just send them a dockerfile and they can almost perfectly reproduce it and get going with building your software (vs. having to laboriously setup the exact version of each dev tool and compiler you use).
1
474849
84