eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

196
active users

#techposting

0 posts0 participants0 posts today
Asta [AMP]<p>Any recommendations for decent used external SAS units? I have literally filled my tower with drives and need <i>moar</i><span> space. Something used I can get on the cheap is great, something new that isn't awful is also fine. I need to ideally reclaim some space in the unit, for that matter... I can get creative, but in doing so I'll be in "these aren't spots where hard drives were meant to go" territory.<br><br>4 to 8 is ideal, I'll never complain about larger.<br><br></span><a href="https://fire.asta.lgbt/tags/SASDrives" rel="nofollow noopener" target="_blank">#SASDrives</a> <a href="https://fire.asta.lgbt/tags/RAID" rel="nofollow noopener" target="_blank">#RAID</a> <a href="https://fire.asta.lgbt/tags/ZFS" rel="nofollow noopener" target="_blank">#ZFS</a> <a href="https://fire.asta.lgbt/tags/NAS" rel="nofollow noopener" target="_blank">#NAS</a> <a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a> <a href="https://fire.asta.lgbt/tags/techRecommendations" rel="nofollow noopener" target="_blank">#techRecommendations</a></p>
Asta [AMP]<p><span>Me: "wow, machine learning frameworks, so great! So efficient! So useful!"<br>ML frameworks: "yes we are. we are great. top engineering, the best."<br>M: "So how much memory are you going to use during training? It's analytically knowable, after all."<br>ML: "... uh"<br>M: "..."<br>ML: "... uh... what, your fingers broken?! you too good to dig into my bones and add hooks to capture memory information, huh?! you call yourself a coder?!"<br><br>hm<br><br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>
Asta [AMP]<p>this is explicitly <a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a> but people are <i>really weird</i><span> about hypervisor OSes<br><br>"your hypervisor should ONLY be doing VMs!!!!!"<br>"right but it also handles literally all the disk stuff, so why can't I just run NFS stuff on i-"<br>"ONLY VMS11111111!!!1"<br><br>I am not an enterprise, I am just a girl. Don't do weird enterprise purity stuff, they suck anyway.</span></p>
Asta [AMP]<p>heeeeeey <a href="https://fire.asta.lgbt/tags/python" rel="nofollow noopener" target="_blank">#python</a><span> cats!<br><br>anyone know of a decent multi-language text tokenizer?<br><br>To be clear: I am explicitly looking to use it for non-generative-AI and other [slop/scab/labor theft] purposes. <br><br>Not sure of the specific terms I need to be looking up, frankly, since I'm mostly just finding Python's built in tokenize library which seems to be focused just on Python code.<br><br>Thank you!<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>
Asta [AMP]<p><span>Came up at work but definitely a question of general interest:<br><br>I feel like when looking at a line-by-line diff of an XML file, it's just... </span><i>really</i> not super clear, even with highlighting and such. Is there any sort of graph-aware diff tool that might generate a visual graph and show the difference <i>that</i><span> way? So that rather than reviewing line by line, you can say "ah, a node has moved from being a child of this node to another", or "these two nodes have been merged into one".<br><br>I feel like it would be possible to gin something up in like, networkX or something, but if there's prior art...<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a> <a href="https://fire.asta.lgbt/tags/XML" rel="nofollow noopener" target="_blank">#XML</a> <a href="https://fire.asta.lgbt/tags/computerScienceTrees" rel="nofollow noopener" target="_blank">#computerScienceTrees</a> <a href="https://fire.asta.lgbt/tags/graphs" rel="nofollow noopener" target="_blank">#graphs</a> <a href="https://fire.asta.lgbt/tags/diffs" rel="nofollow noopener" target="_blank">#diffs</a></p>
Asta [AMP]<p><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a><span><br><br>Okay, well, did a crash course on pydantic and fastAPI last night; it’s cool how fast I was able to get activitystreams objects/types up and running with it, damn. Python is such a totally different (and better) language than it was 10 years ago.</span></p>
Asta [AMP]<p><a href="https://fire.asta.lgbt/tags/techposting" rel="nofollow noopener" target="_blank">#techposting</a><span> gripe<br><br>Stop playing shenanigans with exit codes. Staaaaaaaaaahp.</span></p>
Asta [AMP]<p><a href="https://fire.asta.lgbt/tags/techposting" rel="nofollow noopener" target="_blank">#techposting</a><span><br><br>just learned the hard way that </span><a href="https://fire.asta.lgbt/tags/groovy" rel="nofollow noopener" target="_blank">#groovy</a> syntax highlighting is <i>really really bad</i> and my brain hates it. I just thought syntax highlighting wasn't working... but no, it's basically just a blob of text, with or without their "I have to pay for every single pixel of color or bold text so I will use it as sparingly as possible" as far as my eyes are concerned.</p>
Asta [AMP]<p>hey hey <a href="https://fire.asta.lgbt/tags/Linux" rel="nofollow noopener" target="_blank">#Linux</a> <a href="https://fire.asta.lgbt/tags/FileSystem" rel="nofollow noopener" target="_blank">#FileSystem</a> <a href="https://fire.asta.lgbt/tags/ZFS" rel="nofollow noopener" target="_blank">#ZFS</a> <a href="https://fire.asta.lgbt/tags/RAID" rel="nofollow noopener" target="_blank">#RAID</a> <a href="https://fire.asta.lgbt/tags/XFS" rel="nofollow noopener" target="_blank">#XFS</a> entities! I'm looking for extremely opinionated discourses on alternatives to ZFS on Linux for slapping together a <a href="https://fire.asta.lgbt/tags/JBOD" rel="nofollow noopener" target="_blank">#JBOD</a><span> ("Just a Bunch Of Disks", "Just a Buncha Old Disks", "Jesus! Buncha Old Disks!", etc) array.<br><br>I like ZFS </span><i>but</i> the fact that it's not in tree in-kernel is an issue for me. What I need most is reliability and stability (specifically regarding parity) here; integrity is <i>the</i><span> need. Read/write don't have to be blazingly fast (not that I'm mad about it).<br><br>I also have one </span><a href="https://fire.asta.lgbt/tags/proxmox" rel="nofollow noopener" target="_blank">#proxmox</a> ZFS array where a raw disk image is stored for a <a href="https://fire.asta.lgbt/tags/Qemu" rel="nofollow noopener" target="_blank">#Qemu</a> <a href="https://fire.asta.lgbt/tags/VirtualMachine;" rel="nofollow noopener" target="_blank">#VirtualMachine;</a><span> in the VM, it's formatted to XFS. That "seems" fine in limited testing thus far (and seems fast?, so it does seem like the defaults got the striping correct) but I kind of hate how I have multiple levels of abstraction here.<br><br>I don't think there's been any change on the </span><a href="https://fire.asta.lgbt/tags/BTRFS" rel="nofollow noopener" target="_blank">#BTRFS</a><span> front re: raid-like array stability (I like and use BTRFS for single disk filesystems but) although I would love for that to be different.<br><br>I'm open to </span><a href="https://fire.asta.lgbt/tags/LVM" rel="nofollow noopener" target="_blank">#LVM</a><span>, etc, or whatever might help me stay in tree and up to date. Thank you! Boosts appreciated and welcome.<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>
Asta [AMP]<p><a href="https://fire.asta.lgbt/tags/proxmox" rel="nofollow noopener" target="_blank">#proxmox</a> cats w/ <a href="https://fire.asta.lgbt/tags/networking" rel="nofollow noopener" target="_blank">#networking</a> experience and/or <a href="https://fire.asta.lgbt/tags/network" rel="nofollow noopener" target="_blank">#network</a><span> individuals in general (you can also respond if you don't consider yourself a cat in one form or another):<br><br>let's say I have two servers; the one running internet facing services is connected to the "DMZ" port (uggghhhh I hate that term) and the other is part of the general network. The router/firewall is configured to send all HTTP/HTTPS traffic to the internet-facing server and is blocked from accessing the rest of the network. The rest of the network, however, can access the internet server.<br><br>If I used proxmox on both servers, would I be able to configure/manage them from one interface? Or would they both need to be in the same 'zone'?<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>
Asta [AMP]<p><span>question for tech-y storage people: I just nabbed 4 extra (used) disks with a 6 TB capacity from a place that re-sells electronics (oregonrecycles.com); I think they did some testing but obviously I dunno what to extent, and also, if it was just limited to stuff like SMART data, well...<br><br>anyway, I wanna RAID it, which is fine, but I don't know how much lifetime these have left on them. For four disks with unknown usage, should I use RAID6 or RAID10? It's not </span><i>job critical</i><span> data I'll be storing on these (mostly media and such). They'll eventually be migrated into a larger RAID array but that won't happen until I'm stable and can afford to rebuild my server so this is fine for now.<br><br>I wouldn't </span><i>mind</i><span> the better read/write performance that comes with RAID10 even though it has less parity. I suspect these disks were all used together so they might have similar wear/tear patterns; in that case, I'm wondering if RAID6's double parity actually buys me any extra life? Like, given 4 disks with the same history and a probably known disk failure rate, I'm not really clear as to whether double parity is going to make much of a difference (and that if one goes down, the others probably aren't too far behind).<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a> <a href="https://fire.asta.lgbt/tags/raid" rel="nofollow noopener" target="_blank">#raid</a> <a href="https://fire.asta.lgbt/tags/raid6" rel="nofollow noopener" target="_blank">#raid6</a> <a href="https://fire.asta.lgbt/tags/raid10" rel="nofollow noopener" target="_blank">#raid10</a> <a href="https://fire.asta.lgbt/tags/storage" rel="nofollow noopener" target="_blank">#storage</a> <a href="https://fire.asta.lgbt/tags/nas" rel="nofollow noopener" target="_blank">#nas</a></p>
Asta [AMP]<p>One day I'm going to sit computer scientists down and teach them about the concept of <i>reversibility</i><span> and how that might apply to verbs/functions/etc<br><br>the opposite of install should be 'uninstall', not remove (remove should work too though)<br>if I must call a method named </span><code>fromarray</code> to create an object from an array, should there not be a method named <code>toarray</code><span><br><br>arrrghhhhh<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>
Asta [AMP]<p>getting back into Python is weird because like <i>every time I do</i><span> there's a new fresh hotness to theoretically end all hotnessess re: package installation<br><br>and then the next time I get back in people are like, "that was such horseshit, </span><i>this</i><span> is the thing"<br><br>"wheel is bad, but poetry: so good!"<br>"poetry is </span><i>shit</i><span>, something something else is good (I dunno I kinda don't remember the name for this one)"<br>"we don't need that old one, we have WHEEL!"<br><br>motherfuckers<br><br>(yes, these are real things)<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a> <a href="https://fire.asta.lgbt/tags/pythonLang" rel="nofollow noopener" target="_blank">#pythonLang</a> <a href="https://fire.asta.lgbt/tags/pythonPackaging" rel="nofollow noopener" target="_blank">#pythonPackaging</a></p>
Asta [AMP]<p><span>I can't believe I'm voluntarily writing regex on the anniversary of Dune<br><br></span><code>(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)?((\/[a-zA-Z0-9_?=&amp;]*)*)?(\ ?HTTP\/(1\.1|0.9|1.0|2|3))?</code><span><br>I also can't believe I wrote it and that it works without having to remember </span><i>too</i><span> many things<br><br>(it's a basic start to parsing the first line of HTTP headers)<br><br>I am probably going to have to write a lot of regex for an HTTP server module, aren't I.<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a> <a href="https://fire.asta.lgbt/tags/regex" rel="nofollow noopener" target="_blank">#regex</a><span><br><br>just gonna tag </span><a href="https://social.treehouse.systems/@hipsterelectron" class="u-url mention" rel="nofollow noopener" target="_blank">@hipsterelectron@social.treehouse.systems</a> 😂</p>
Asta [AMP]<p><span>awwwwwww<br><br>I really wish they had called this "I Am A Teapot" and not "I'm a teapot" because a contraction isn't valid in a variable name<br><br></span><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418" rel="nofollow noopener" target="_blank">https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418</a><span><br><br>(I just called it </span><code>IAmATeapot</code><span> anyway)<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>
Asta [AMP]<p><a href="https://www.twitch.tv/lilithbythesea" rel="nofollow noopener" target="_blank">https://www.twitch.tv/lilithbythesea</a><span><br><br>why don't you come watch me stream as I program </span><a href="https://fire.asta.lgbt/tags/rustLang" rel="nofollow noopener" target="_blank">#rustLang</a> <a href="https://fire.asta.lgbt/tags/activityPub" rel="nofollow noopener" target="_blank">#activityPub</a><span> software very poorly and probably while cursing a lot<br><br>I'll try to say interesting things like "fucking christ" or whatever while doing it, I promise<br><br></span><a href="https://fire.asta.lgbt/tags/streaming" rel="nofollow noopener" target="_blank">#streaming</a> <a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>
Asta [AMP]<p>I kinda wanna try out the <a href="https://fire.asta.lgbt/tags/guix" rel="nofollow noopener" target="_blank">#guix</a> <a href="https://fire.asta.lgbt/tags/guixos" rel="nofollow noopener" target="_blank">#guixos</a> but I feel like since I use both <a href="https://fire.asta.lgbt/tags/plasmaDesktop" rel="nofollow noopener" target="_blank">#plasmaDesktop</a> and <a href="https://fire.asta.lgbt/tags/steam" rel="nofollow noopener" target="_blank">#steam</a><span> (plus a lot of non-free stuff) I feel like maybe I'm just setting myself up for trouble?<br><br>but the idea of one language for everything, including services, and all of it being treated like a first class citizen is really appealing. Plus I'm pretty sick of the </span><a href="https://fire.asta.lgbt/tags/nix" rel="nofollow noopener" target="_blank">#nix</a><span> community (fuck you, jon ringer, you warmongering garbage fucker).<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>
Asta [AMP]<p>The term array is pretty overloaded in programming, which is probably why I didn't realize immediately that it wasn't a situation of some sort of 'sized' vs 'unsized' thing... but also, their syntax is really, really similar. And it doesn't help that you can absolutely initialize arrays but specify the type of the variable as what is <i>apparently</i><span> a slice?<br><br></span><code>let str_slice: &amp;[&amp;str] = &amp;["one", "two", "three"];</code><span><br><br>is perfectly legit, it would seem. Hence why I assumed... (I mean, in this example, the variable is named str_slice, but it's on the slice documentation page, so obviously I did not see it before).<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a> <a href="https://fire.asta.lgbt/tags/rustLang" rel="nofollow noopener" target="_blank">#rustLang</a></p>
Asta [AMP]<p><span>alright, I feel like an idiot for for not fucking realizing that<br><br></span><code>[T]</code> is a slice in Rust and <i>not</i> just a shorthand for arrays (which are <code>[T; N]</code><span> where T is the type and N is the size)<br><br>Yesterday was fucking driving me crazy because I thought this goddamn dynamic dispatch function was asking for an array, so I was doing all this horseshit to send in a fucking array and then getting type errors about expecting </span><code>[T]</code> but receiving <code>[T; 3]</code><span> and you'd think I would have clued in to the fact that they're actual different types and not just some sort of memory/borrowing shenanigans, but I was already like 7 hours into my day so no, brain wasn't working.<br><br>Makes so much more sense now. Because I was like, how the hell is a dynamic dispatch requesting an array, which is fixed size and known at compile time and placed on the stack (usually).<br><br>blehhhhh.<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a> <a href="https://fire.asta.lgbt/tags/rustLang" rel="nofollow noopener" target="_blank">#rustLang</a><span><br><br>Probably would help if Google wasn't so shit nowadays and trying to google errors returns a bunch of unrelated crap. Hey, fuzzy search assholes: if I include some variant of "NOT" or "NO" or "DO NOT", please do return results for doing the thing.</span></p>
Asta [AMP]<p><a href="https://wandering.shop/@xgranade" class="u-url mention" rel="nofollow noopener" target="_blank">@xgranade@wandering.shop</a><span> blehhhhh I'm only doing this to save a few lines anyway. I'll take a break, come back later, <br><br>If you're curious about the situation I wrote myself into:<br><br></span><a href="https://codeberg.org/Astatide/satyr/src/commit/5ab68ab1c479330f0706b82d948a6c597684eb8e/src/database/database.rs#L139" rel="nofollow noopener" target="_blank">https://codeberg.org/Astatide/satyr/src/commit/5ab68ab1c479330f0706b82d948a6c597684eb8e/src/database/database.rs#L139</a><span><br><br>Basically the database is mysql/postgresql agnostic, so I have an enum that combines the different parameter types from each library. The postgresql one uses </span><code>dyn</code> in the argument list for the parameters of the query function, so I just try to pass that on as transparently as possible. But it's borrowing <i>hell</i><span>, basically.<br><br>I'm only saving myself two lines per function anyway. It's just the principle of the matter at this point.<br><br></span><a href="https://fire.asta.lgbt/tags/techPosting" rel="nofollow noopener" target="_blank">#techPosting</a></p>