• 0 Posts
  • 55 Comments
Joined 2 years ago
cake
Cake day: July 9th, 2023

help-circle


  • A closed group of users can all have a seed ratio above 1.0, but it’s a bit of a contrived set up. For simplicity, in the following examples we assume that each file is the same size, but this also works for other combinations.

    Consider the smallest group, two users. If user A seeds a file and user B downloads it, whilst B seeds a different file, which A downloads, both users will have a ratio of 1.0 as they’ve up and down loaded the same amount.

    For three users, A seeds a file, B and C then download a different half each, which they then share with each other. A has a total (upload, download) of (1,0), whilst B and C have (0.5,1). If you repeat this with B seeding and A and C downloading, then C seeding to A and B, you get each peer uploading 2 files worth of data, and downloading 2 files worth, for a ratio of 1.0 each.

    You can keep adding peers and keep the ratios balanced, so it is possible for all the users on a private tracker to have a 1.0 ratio, but it’s very unlikely to work out like that in real life, which is why you have other ways to boost your ratio.


  • I’ve read the NYT article, and I can’t see anywhere where the author ‘sincerely considers the idea that Rachel Griffin-Accurso, the popular children’s entertainer known as Ms. Rachel, might be financially compensated by Hamas.’ Instead they report that ‘the advocacy group StopAntisemitism’ ‘sent a letter urging Attorney General Pam Bondi to investigate whether Accurso is receiving funding to further Hamas’s agenda.’

    The article as a whole seems pretty positive towards Miss Rachel, and uses her comments to point out how bad things are in Gaza, and insinuates that StopAntisemitism are the problematic ones.


  • Yes. We normally count in ‘base 10’, which means each digit can go from 0 to 9 as we count up, then the digit to its left increases by one. The rightmost position is the units, the next the tens (because we use base 10), the next hundreds (or 10 times 10), and so on, with each position worth 10 times the one to its right. So the number 12 means you have 2 units plus 1 ten. 123 means 3 units, 2 tens, and 1 hundred.

    Binary is ‘base 2’, so as we count up each digit can only go from 0 to 1 before incrementing the position to its left, and each position is worth 2 times the one to its right. So 1 still means one, but 10 is 0 units plus 1 two, and 100 is 0 units, 0 tens and 1 four, totalling 4.




  • It might already be packaged for whichever OS you’re running, and it comes with a utility to do the conversion. On Debian or Ubuntu it should be as simple as installing the pst-utils package and running something like readpst <path to .pst file> and it’ll leave an mbox file for you. It’s been a fair few years since I used it, so reading the documentation would probably be wise, but I remember it being pretty straightforward.

    I don’t have a Redhat machine handy right now, but it looks like the package is called libpst there. On a Mac you’d need to follow the build instructions in the git repository, but it’s not python, the main library and utils are written in C. The tarball they refer to it just a tar of the source, that you can download form the releases page. I can’t help you if your running windows, I don’t have a machine running it, and haven’t used it in many years.




  • Before you can decide on how to do this, you’re going to have to make a few choices:

    Authentication and Access

    Theres two main ways to expose a git repo, HTTPS or SSH, and they both have pros and cons here:

    • HTTPS A standard sort of protocol to proxy, but you’ll need to make sure you set up authentication on the proxy properly so that only only thise who should have access can get it. The git client will need to store a username and password to talk to the server or you’ll have to enter them on every request. gitweb is a CGI that provides a basic, but useful, web interface.

    • SSH Simpler to set up, and authentication is a solved problem. Proxying it isn’t hard, just forward the port to any of the backend servers, which avoids decrypting on the proxy. You will want to use the same hostkey on all the servers though, or SSH will refuse to connect. Doesn’t require any special setup.

    Replication

    Git is a distributed version control system, so you could replicate it at that level, alternatively you could use a replicated file system, or a simple file based replication. Each has it’s own trade-offs.

    • Git replication Using git pull to replicate between repositories is probably going to be your most reliable option, as it’s the job git was built for, and doesn’t rely on messing with it’s underlying files directly. The one caveat is that, if you push to different servers in quick suscession you may cause a merge confict, which would break your replication. The cleanest way to deal with that is to have the load balancer send all requests to server1 if it’s up, and only switch to the next server if all the prior ones are down. That way writes will alk be going to the same place. Then set up replication in loop, with server2 pulling from server1, server3 pulling from server2, and so on up to server1 pulling from server5. With frequent pulls changes that are commited to server1 will quickly replicate to all the other servers. This would effectively be a shared nothing solution as none of the servers are sharing resources, which would make it easier to geigraphically separate them. The load balancer could be replaced by a CNAME record in DNS, with a daemon that updates it to point to the correct server.

    • Replicated filesystem Git stores its data in a fairly simple file structure, so placing that on a replicated filesystem such as GlusterFS or Ceph would mean multiple servers could use the same data. From experience, this sort of thing is great when it’s working, but can be fragile and break in unexpected ways. You don’t want to be up at 2am trying to fix a file replication issue if you can avoid it.

    • File replication. This is similar to the git replication option, in that you have to be very aware of the risk of conflicts. A similar strategy would probably work, but I’m not sure it brings you any advantages.

    I think my prefered solution would be to have SSH access to the git servers and to set up pull based replication on a fairly fast schedule (where fast is relative to how frequently you push changes). You mention having a VPS as obe of the servers, so you might want to push changes to that rather than have be able to connect to your internal network.

    A useful property of git is that, if the server is missing changesets you can just push them again. So if a server goes down before your last push gets replicated, you can just push again once the system has switched to the new server. Once the first server comes back online it’ll naturally get any changesets it’s missing and effectively ‘heal’.


  • notabot@lemm.eetoSelfhosted@lemmy.worldTesting vs Prod
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    I manage all my homelab infra stuff via ansible and run services via kubenetes. All the ansible playbooks are in git, so I can roll back if I screw something up, and I test it on a sacrificial VM first when I can. Running services in kubenetes means I can spin up new instances and test them before putting them live.

    Working like that makes it all a lot more relaxing as I can be confident in my changes, and back them out if I still get it wrong.


  • I’m not sure where you are, but typically even if you rent rather than owning you pay the normal taxes, either directy or via your landlord, so they have little to do with owning a property, and more to do with occupying one, as a proxy for the demands you put on communal services. In most places you would also not lose your home for not paying them, you’d get dragged through the courts, possibly jailed for some period, and the tax authority in question would just end up with a lien on the property, entutling them to recompense when you sold or refinanced it.

    I’m not discounting the possibility you live sonewhere with different property tax laws, but you’ve been making extremely broad and general statements that don’t match reality in many places.


  • As @[email protected] said in another comment, there’s concentration and there’s flow (aka the zone).

    Concentrating takes effort, is often tiring, and requires disipline to block out distractions. It can feel good to consentrate on a problem or task, give it all your mental energy, and achieve your goal. It can be a fragile state though. If a distraction does break through it can completely disrupt your thought processes, causing you to lose track of everything you had in mind, and effectively sending you back to square one. Practice helps avoid that, but concentration is inherently mentally taxing.

    Flow is different. You will probably only reach it through concentration, and may not jnitally be aware of the transition, but you’ll know it afterwards. The complex becomes simple, stuctures untangle themselves at a thought, you feel mental clarity unlike any other time, everything you’d been struggling with becomes effortless, and time ceases to have any importance. It’s more like a trance or meditation than a normal mental state, and you can stay in that state until your body physically runs out of energy. I’ve ended up sitting at my desk for nearly 24 hours without rising, and without eating or drinking, utterly engrosed in the task at hand, not noticing the sun setting and rising again, and felt entirely calm and rested at the end of it.






  • I think you’re going to struggle to find something that can carry 200lb and be collapsible. Most carts seem to either be for much less than that, or much more. I found several that looked a bit like what you may want by searching for ‘vendor cart’.

    You may well be better off building/comissioning something to your spec though as a lot of the bigger carts are designed to be food stalls when stationary, so they’re probably unnecesarily heavy. I think you’d be able to make something along the lines of what you wanted with parts from your local DIY store.