Posts by clarfonthey@toot.cat
(DIR) Post #A0rf3o0XbJtjhcNz8K by clarfonthey@toot.cat
2020-11-04T18:34:45Z
0 likes, 1 repeats
apparently, the reason why @Tusky was succumbing to Unicode Bidi exploits (e.g. forcing text outside of usernames, etc. to display right-to-left) was not because they weren't trying to do things right, but because Google's Unicode implementation is just wrong. huge thanks to @Tak for fixing it in the code after I helped point out how to fix this!https://github.com/tuskyapp/Tusky/pull/1976
(DIR) Post #A108mC8D7gULNocVkG by clarfonthey@toot.cat
2020-11-08T18:28:23Z
0 likes, 0 repeats
why is an IPv4 address record called A, and IPv6 address record called AAAA?because AA and AAA are there to power the DNS server
(DIR) Post #A2cgB6g2NEmyxHvRJI by clarfonthey@toot.cat
2020-12-27T02:28:48Z
1 likes, 1 repeats
so, here's a weird request:I'm really interested in how data is stored on disk for massive databases like MariaDB, PostgreSQL, Redis, etc. unfortunately, any actual resources you can find on designing databases is just about using these existing tools, rather than creating one on your own.essentially, I'm looking for resources to help understand stuff like:what kinds of data structures are most applicable for storing data on a disk, and when should you separate out data into different files?how do you optimise databases to work well on different filesystems?how do you make the decision on when to keep data in memory versus store it on disk? what kind of caching strategies are best?if you happen to know anywhere that would be good to look, or know someone who might be able to spare some time pointing out what things might be useful to study, let me know!
(DIR) Post #ACCIbOPT9UezmIuldo by clarfonthey@toot.cat
2021-10-09T18:53:33Z
8 likes, 25 repeats
stolen from Twitter: which HTTP 400-level code describes your sex life?original post: https://twitter.com/HappySinger/status/1369892766960869379
(DIR) Post #ACCJWkctDyJBBgXhFw by clarfonthey@toot.cat
2021-10-08T01:38:44Z
0 likes, 1 repeats
while attempting to figure out some requirements for a terminal theme, I decided to make a little script that would compare the colour contrast levels of the default VGA colour scheme so I have something to compare against, and here's the result for folks to see:https://ht.ltdk.xyz/contrast.htmthe page will respect your light/dark theme preferences while still showing you what the combinations look as both dark-on-light and light-on-dark.oh, and the entire thing is self-contained as a single HTML file, so, you can save it in your browser and reference it locally if you prefer
(DIR) Post #ADwQoBnozHQ3EV1G7c by clarfonthey@toot.cat
2021-11-30T23:10:45Z
0 likes, 1 repeats
on Twitter, it's extremely common to break up long thoughts or stories into threads of several posts, where each successive part of the larger "story" is a reply to the previous part. often, people will include the đź§µ emoji to indicate that it's a thread, rather than one poston the fediverse, imho, this is an anti-pattern. Twitter's character limit is not present here, and on some instances, the character limit is removed for posts with a CW; check with your instance admin!threading posts has the consequence of forcing users to publish incomplete thoughts before finishing them, or worse, not elaborate at all. this makes it incredibly easy for things to be taken out of context, and can make things much more difficult to followinstead, consider using the CW field as a subject for long posts, and just type out all of your thoughts in the post body! you can still reply after the fact if you have additional stuff to add, or you feel that there's a reasonable separation between the posts, but if you already know what you're going to say before you submit the first post, consider keeping it all together instead of threading
(DIR) Post #AH14qZcAXrYb1cPWme by clarfonthey@toot.cat
2022-03-02T18:02:00Z
0 likes, 1 repeats
bandcamp getting acquired by epic games is further evidence that no matter what, you cannot trust privately owned corporations even if they truly have people's best interests in heart, because with very little notice they can still be bought out by someone who doesn'tworker-owned is the only way to gohttps://blog.bandcamp.com/2022/03/02/bandcamp-is-joining-epic/in other news, fuck.
(DIR) Post #AImpsyU7FfQth5sJmK by clarfonthey@toot.cat
2022-04-23T13:15:11Z
0 likes, 0 repeats
@chriswood while I absolutely love this, I want to point out to the folks who may not know that WCAG's simple contrast algorithm is actually not necessarily the best tool for determining what colour combinations are best, for a couple reasons:it doesn't distinguish between foreground and background colours, when this actually makes a big differenceit doesn't make that big an effort to distinguish between what contrasts are appropriate for what situations, beyond the vague idea of "large text"it isn't really as friendly since it's not perceptually uniform, meaning that a contrast of 4.5 seems like half 7, but there's actually a big differenceright now there's a big project to create a separate system that does fix these problems and it also works as a percentage rather than a weird number between 1 and 21: https://github.com/Myndex/SAPC-APCAin case anyone else also finds this helpful!
(DIR) Post #ANQo2CGHAeULEeN0JU by clarfonthey@toot.cat
2022-09-10T19:18:55Z
0 likes, 1 repeats
I've got a Ubiquiti triplet of devices (router, switch, and access point) and I'm kinda fed up with them and want to move to something with preferably more portable configso, if you've got something that doesn't require multiple layers of non-standard software to configure that also runs well, I'd love to knowwould also prefer something with passthrough PoE that doesn't require multiple adapters to feed all three devices (thanks, ubiquiti, for not being compatible between even your own products)
(DIR) Post #AQFkTlx3sKo31naJLE by clarfonthey@toot.cat
2022-12-04T05:03:22Z
0 likes, 1 repeats
aaaaghokay, so, I've vented about this to a few people, but not specifically on fedi before.#RustLang has convinced me that shadowing is a good thing, actually. and here, by "shadowing," I mean reusing the name of an old variable to define a new one, and essentially banishing the old variable to the shadow realm. this is where, if I wanted to make a joke, I'd say that this is the etymology of the term, but I'm clearly better than that.anyway, one meaningful distinction about making a new variable instead of just modifying an old one is that the type can change during shadowing. for example, you might have a variable that's a string, and then you parse that string into a number, and you give the same name to the parsed result -- after all, it's the same thing, just with the types updated now that it's parsed!this kind of behaviour is extremely common in dynamically typed languages too, but it isn't called "shadowing" because you can just directly assign anything of any type back into the original variable. via an extremely weasely argument, "losing" this functionality is probably one of the reasons why people who often use dynamically typed languages get annoyed by statically typed languages, and rightfully so! so what if I use the same name for the parsed result? I don't need the original string any more!#TypeScript, which I have a lot of negative things to say about, does the Wrong Thing here. its parent, #JavaScript, lets you mutate any variable and change the type whenever you want, but TypeScript (wrongly) decides that directly assigning a value to a variable is not capable of changing its type. so, it's one of those languages where you might get annoyed because you tried to parse the string and assign the value back into the original name. "no," typescript says; "I know better than you"languages like Rust make the distinction between shadowing and mutation in the sense that you literally have a different syntax for them; x = y will assign y to x, whereas let x = y will create a new variable named x, with its value set to y. but in languages which already let you change the type at will, this distinction is meaningless! of course, type checkers added onto these languages decide to take the silly conservative approach by… just not allowing this.I recently discovered that mypy is… in the TypeScript camp, which is quite disappointing. I've basically been a fan of adding type checking to usually-dynamically-typed languages, and #Python has a reasonably well designed type system. in fact, this behaviour isn't explicitly required by Python's type system, but it is enforced by mypy, the de-facto type checker for Python.as another language which has done very well in terms of adding type checking: #PHP has type checking built into the language, and unlike Python, it's enforced at runtime! honestly, I'm a huge fan of languages doing this, since it helps people add some extra safety checks to an otherwise unsafe language. and as an extra point to PHP's camp, since these type annotations are only at function boundaries, this shadowing restriction doesn't actually apply, and it technically does better than Python does.anyway… I'm upset, and I just wanted to vent about it. hi.
(DIR) Post #AQbeQsdeESt8ePrOTo by clarfonthey@toot.cat
2022-12-14T18:50:10Z
0 likes, 1 repeats
this isn't particularly aimed at anyone but I honestly I don't really like the fake Twitter verified icons on usernames since verification on Twitter was… honestly, mostly a scam imho aimed at artificially elevating folks over otherslike I get it's the whole "on Twitter they decide who's important and now I can decide on my own terms that I am" but honestly, given the amount of elitism I saw among people with like "I only interact with blue checkmarks" I think it's not a particularly positive vibe to portray herenot gonna view anyone differently if they use one, just, sorta explaining my personal discomfort with it
(DIR) Post #ARdawMhz30mAWTkipM by clarfonthey@toot.cat
2023-01-14T15:00:00Z
0 likes, 1 repeats
"Hydrogen Will Not Save Us," by Sabine Hossenfelder https://youtube.com/watch?v=Zklo4Z1SqkE
(DIR) Post #ASorqRZj3CwsmSTSTo by clarfonthey@toot.cat
2023-02-18T22:51:22Z
0 likes, 1 repeats
As part of the #RustLang tracking issue on extra integer division methods, we've been discussing the relevance of flooring division, ceiling division, and their remainders.Right now, Rust has the standard truncating division (round toward zero) and Euclidean division (do whatever makes the remainder positive), but there's debate on how relevant the flooring and ceiling versions of division are, and whether their remainders are useful.It's been brought up that flooring division is useful for date calculations (rounding down to multiples of 400, 100, or 4 years for date operations, then using the remainder for smaller intervals) but it's unclear how useful ceiling division is.Do you know of a useful algorithm that requires ceiling division and its remainder? Would love some comments to share on the discussion.Tracking issue: https://github.com/rust-lang/rust/issues/88581#Math #Maths #Mathematics #Mathstodon
(DIR) Post #AUHq9sJLLWixMnVCJU by clarfonthey@toot.cat
2023-04-03T07:07:20Z
0 likes, 1 repeats
one thing that factorio does that seems obvious that more games should do is offer an "async save" mode that doesn't block the game during savingin some games this can be accomplished by implementing a complicated system where you can buffer the changes made between the start of the save and the end of the save, so that you don't save an inconsistent state of the gamebut really, the way factorio does this is by forking the process and stopping the game on the forked version, but not the actual running instanceand as factorio explicitly states, this functionality only works on MacOS and Linux, since Windows does not have a fork system call. this is likely why most games don't even bother implementing this kind of system, since game devs still have Windows Brain despite the larger push to create Linux-native gamesthe ability to fork-save is not only easy to implement (save a few minor synchronisation details between the main process and the saving one, to let the game know the progress of the save)but also, this is very efficient, too! in the OS itself, the memory pages with the original process data are labelled copy-on-write, so effectively the OS is keeping track of what's changing and what isn't for you, at the memory page level. instead of a bunch of complicated logic to buffer those changes, you can just let the native mechanisms that were there to begin with, do that for younow, I am probably still overselling this implementation since Factorio's async save feature was long listed as experimental during early access, since I believe they had to work out a lot of issues to ensure that save files weren't corrupted, but my guess is that this is because the game wasn't architected this way to start out, and because there was some code that was already trying to save to the file outside of the usual save routineanyway… this is just another indication that maybe we're actually missing out on a lot by choosing to continue making games Windows-exclusive, and/or "Proton is good so let's not make native games because I don't wanna deal with it"#GameDev #Factorio #Linux
(DIR) Post #AUxV0jyh0ocwYhMewK by clarfonthey@toot.cat
2023-04-23T23:01:52Z
0 likes, 1 repeats
I've posted this before, but I'll say it again and repeat it often:as an #ActuallyAutistic person who doesn't react well to sensory overload, having a pair of reusable nitrile gloves has been a lifesaver, and I genuinely think that every household should have at least one pair, or multiple to make sure you have the right size for everyoneeven if you're okay with washing dishes without a pair of gloves, here are some other things they're useful for:taking glass containers out of the microwave without burning your hands. the gloves provide a decent layer of insulation without destroying your dexterity like oven mitts or silicone grips mightcleaning with hotter water without burning your hands. something really stubborn that will easily melt off? no need to soak and waste water; just use gloves.doing proper cleaning work without getting your hands dirty. need to scrub down the bathroom? use gloves.worried you might mess up when cutting food for a meal? the thickness of the gloves can also protect your hands, although you'll have to replace them more often.and of course, cleaning dishes with gloves also can really be great in generalas you'd expect, there are tradeoffs. your hands may get sweaty inside the gloves, and that itself might be more unpleasant than whatever you're touching. for me, dealing with the singular gross sensation of sweaty hands in gloves is way easier than the multitude of gross sensations that come from cleaning, but YMMV.even if you're not neurodivergent, if you have kids, you might want to consider getting some and seeing if they prefer using gloves for cleaning. as a child, I hated cleaning dishes without gloves, and now that I know as an adult I don't have to, I have a much easier time.my recommendation is to get a small pack of gloves, maybe a pack of three or five, in the right size. depending on what chemicals they're exposed to, they can degrade more quickly, and you may find that you need to replace them every few months. if you use the gloves often, there are stands you can get that will let you hang the gloves upside down to dry, although you can also close the tips of a finger in a cabinet to help hold them in place upside down.please consider: gloves.
(DIR) Post #AV5iDCx9xgoAZFbNyq by clarfonthey@toot.cat
2023-04-27T22:26:00Z
0 likes, 1 repeats
curious question: how many folks running websites actually set up a www subdomain?this includes non-technical people who own domains, e.g. instance admins who don't host their instances themselves. would love to hear the reasons for some of these. my website used to be set up to use www subdomains, and as I'm setting up things again, I'm considering just dropping them, since I already use subdomains for most things anywayI know that there are sometimes legitimate reasons to use a www subdomain (logins/cookies for www.example.com explicitly don't apply to some.example.com, whereas cookies for example.com can) but a lot of them seem vestigial and a lot of newer sites are choosing to not use thembasically, wondering what folks think!
(DIR) Post #AXVhQTi992WslVwLSa by clarfonthey@toot.cat
2023-07-09T05:58:57Z
0 likes, 0 repeats
since I'm particularly looking to Stir Controversy lately: https://github.com/rust-lang/crates.io/discussions/6762I decided to open a discussion on the crates.io repository to remove the dedicated cryptocurrencies category#RustLang