Show newer

@RL_Dane in Tut it's ":tl n" - i.e. notifications are treated as one of the timelines. Haven't used toot but it might be a place to check.

@realcaseyrollins

No worries! I'll expand a little bit.

When you navigate to a webpage (`mywebsite.com/index.html` for instance), your browser:
(1) sends a DNS query to discover to which IP address(es) `mywebsite.com` resolves; let's suppose it receives `1.2.3.4` in response, and
(2) sends an HTTP request to `1.2.3.4` containing (a) an HTTP method: `GET`, (b) the name of the resource: `/index.html`, (c) the HTTP version: `HTTP/1.1`, and (d) the name of the site it wants: `Host: mywebsite.com`. It also probably sends some other information like the user agent, referrer, etc., but `Host` is the only *mandatory* header.

So now let's suppose you own `mywebsite.com` and you also want to run a site on the same machine at `beta.mywebsite.com`. You've configured your server so that when it receives the request described above, it responds with the file located at `/www/index.html`, and you want it to instead serve `/www-beta/index.html` when the user navigates to `beta.mywebsite.com/index.html`. You have to make both steps work.

First, you need an IP address at which you'll serve the beta site. This can be the same as the one you use for the main site, since they resolve to the same machine, but it doesn't have to be - a single computer can have multiple IP addresses and there's pros and cons to each approach. You'll then need your registrar to create a record so that when someone looks up `beta.mywebsite.com` they get the IP address.

Second, you need to instruct your server how to respond when it receives the request for `/index.html`. If you got a second IP address (let's imagine it's `4.3.2.1`) for your beta site, you have two options: you can configure your machine to serve `/www/index.html` to requests arriving at `1.2.3.4` and `/www-beta/index.html` to requests arriving at `4.3.2.1`, or you can set it up to serve `/www/index.html` to requests with the header `Host: mywebsite.com` and `/www-beta/index.html` to requests with `Host: beta.mywebsite.com`. Of course, if you are reusing the same IP address, both requests will arrive at `1.2.3.4` and you only have the second method available to you.

Some links for how you'd go about configuring an Apache server according to both methods:
httpd.apache.org/docs/2.4/vhos
httpd.apache.org/docs/2.4/vhos

@realcaseyrollins yes, this is called virtual hosting. Two ways to do it: you can inspect the Host header in the HTTP request, or if you have different IP addresses (it's possible to have multiple addresses for a single machine) for the two domains, you can decide which files to serve based on the address at which the request arrived.

@RL_Dane I'll share a realisation I came to in similar circumstances. I enjoy tinkering with my stuff. So I set it up in ways that let me play with it - notably, FOSS in many contexts. Now, this isn't always as polished as commercial software, and it sometimes presents obstacles. Working around those obstacles can be its own kind of fun, and it's very satisfying when I get it right.

Did you see the words I used? Enjoy, play, fun, satisfying... I'm describing *toys*. Not because I've stocked them with game apps, or because I don't use them for anything serious, but because I configure them such that I spend time I don't need to on them just 'cause I like to.

Be careful about how much time you spend on your toys vs the people in your life.

Could or its GNOME equivalent be made to work as a plugin for ? I do like how Pidgin allows me to have my Matrix, IRC, Whatsapp, and Telegram all together, and it would really ice the cake to have access to my text messages there too.

@RL_Dane it works for me on , a Tusky derivative. You have to double-tap the image a couple times to get it to zoom in enough to be legible, but that means you need to scroll a bit to see the whole thing on a little phone screen.

@realcaseyrollins yeah this is the stuff. There's also a seasonal "breakfast" dark which I aim to try this winter if I can get my hands on it.

Brewdog isn't bad but they definitely cater to people who prefer hops over malt. The most recent variety pack I got from them consists of:
- Nanny State, a "hoppy ale";
- Punk AF, an IPA;
- Hazy AF, a hazy IPA; and
- Elvis AF, a grapefruit IPA.
They offer a decent coffee stout by the name of Wake Up Call but they don't really promote it and it's not easy to find.

Which Athletic flavours do you prefer?

Our favourite non-alcoholic beers @realcaseyrollins

Coconut on the left is my gf's, oatmeal on the right is mine

After losing about a week to (a) installing Arch for the first time and working through the accompanying learning curve and (b) illness, I'm back. I think I've caught up with the backlog of spam, but if you see any I missed please let me know!

@skyblond I remember reading about something similar in a pay-per-view TV context (or maybe it was streaming?). The publisher had a bunch of interns find links to bootleg streams, and then the publisher flashed a unique code on each subscriber's feed. The interns took screenshots of the streams they were watching and the publisher cross-referenced the codes to find out who was uploading the content. It wasn't difficult to see the codes, but the uploaders generally didn't know what they were or react in time to prevent their identifying code from being broadcast.

One thing I'm missing is the ability to control individual frames. Does anyone have a for an extension that restores the frame commands (reload, show only this, open in new tab) to a modern version of ?

Show thread

@freeschool you're talking to the wrong guy. I'm just a mod, which means my job is dealing with reports and removing content that violates our rules. Eugen is the author of the Mastodon software, and he's explicitly rejected[1] full text search in the past.

There was some technical work[2] done by glitch-soc to implement this but it doesn't seem to have reached production readiness. If the problems with that implementation get sorted out, freemo might be able to apply the same patches against QOTO's codebase.

@peterdrake

1: github.com/mastodon/mastodon/issues/594
2: github.com/glitch-soc/mastodon/pull/1502

Looks like the extensions situation is finally back to acceptable after all the XPCOM ones got dropped years ago. I kind of grew to like and Classic in the meantime, but I can't say I'll miss constantly fiddling with the configuration just to unbreak another website.

@realcaseyrollins they exist but they're pricey. For instance the Panasonic UBT1GL has the features you want

@thewk You can't prevent him from altering the HTML, but if he doesn't know what to alter it to, you can at least verify whether it has been altered.

For example, your server evaluates the answers submitted, and decides that the score was 68. It gives a results page saying:
User = Alice Cheatypants
Score = 68
Verification Code = 51ef2c256b08

Internally it calculates the verification code by concatenating "Alice Cheatypants" + "68" + "my_super_secret_password" and performing some cryptographic hash. As long as "my_super_secret_password" never leaves your server, the user can't know what the hash should be for "Alice Cheatypants" + "100" + "my_super_secret_password". So if the user edits the HTML so it says "100", you can compute what the hash should have been, note the mismatch, and flag the screenshot as invalid. And because it has the username as part of the plaintext, Alice can't just ask Bob what his verification code was, then edit her score and code to match his.

Note that this means the scoring of the test has to be done server-side. If you allow the user to tell you his *score* rather than his *answers* you completely negate the benefits because he can just tell the server to give him the code matching a higher score.

@peterdrake I'll toss in a recommendation for Xeonjia. It's a top-down RPG in the style of old Pokemon games, but the gimmick is that many floors are frictionless, so you can only change direction once you hit the far wall. Most walls hurt if you crash into them, so you have to plan your route carefully to minimise how much damage you take.

It is straightforward at first, but as the environments get more complicated, the number of possible paths undergoes combinatorial explosion, and you really have to think it through instead of attempting to solve the problem through trial and error.

gitlab.com/deepdaikon/Xeonjia

@trinsec @jalefkowit@octodon.social

K‮ly‬e boosted

@valleyforge It's not the greatest thing in the world for the engine's longevity, either. Going on a trip with a bike of similar vintage to mine but air-cooled would make me pretty nervous.

@tek_dmn no, the other host is some embedded thing which might be Linux-based, actually (there's a copy of the GPL in the printed manual, but no indication what it applies to). It can read files as a USB host, but not as a network client. Even so, per manufacturer support, it can only read NTFS and FAT.

It probably would've been worth buying another external disk so I could just copy everything once and be done with it, but it seems like a waste to buy a whole 'nother 8TB to only use it one time.

@RL_Dane

Show older

K‮ly‬e's choices:

Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.