kevincox

joined 4 years ago
MODERATOR OF
[–] kevincox@lemmy.ml 25 points 1 day ago (1 children)

This was intentional. The goal was to discourage the adoption of non-free codecs. They were partially successful, now AV1 is very widely supported (basically only older iThings that don't have hardware decoding support don't support it) which is a huge win because anyone can now deliver video on the web without needing a license to a proprietary codec. I would consider this fact alone a huge benefit and worth them holding other browsers asses to the flame.

[–] kevincox@lemmy.ml 9 points 1 day ago

Firefox on iPhone isn't Firefox in the way that matters here. All iOS browsers are forced to use Safari's rendering engine. iOS alternate browsers are just different UI and things like bookmark management on top of Safari.

[–] kevincox@lemmy.ml 4 points 3 days ago (2 children)

IDK, how are we counting? Digestible calories? I don't think you are getting much energy from any amount of swords that you can fit in your stomach.

[–] kevincox@lemmy.ml 3 points 3 days ago (1 children)

To be fair in this case I don't think we have much right to make fun of them until tolls get placed on the DVP.

[–] kevincox@lemmy.ml 32 points 3 days ago (1 children)

The government is too big, why are we paying for healthcare, school, welfare and whatever else? It is unfair to those who don't use those services.

...oh, except roads and the military, everyone must pay for those.

It's amazing how many of these policies are posed as a simple fair rule (people should pay for what they want, not have the government decide where spending goes) but in actuality is just a convenient excuse for dismantling institutions that they personally don't like.

[–] kevincox@lemmy.ml 2 points 6 days ago

Oops, I linked the wrong one and got fooled because the most recent post is actually open again.

!opensignups@lemmy.ml is more active. (Although not bustling either)

[–] kevincox@lemmy.ml 5 points 6 days ago

Yeah, this is basically how it goes. It depends what country you grew up in. Canada is the same way, almost everyone who grew up in Canada can swim (not necessarily well, but able to manage). This is partly due to the number of lakes that exist near populated areas so swimming is a common passtime and boating accidents are a fairly high cause of accidental death. There are some countries where it is much more rare.

[–] kevincox@lemmy.ml 1 points 6 days ago (2 children)

!opensignups@lemmy.world is active enough.

[–] kevincox@lemmy.ml 3 points 6 days ago (1 children)

Yeah, public trackers definitely raise your chance of a notice by at least an order of magnitude. New content also tends to be more noisy than old content. I also found a drop by selecting "require encryption" although I can't imagine why it would help (IIUC most of these scanners just connect to everyone in the swarm, not sniff random internet traffic.

[–] kevincox@lemmy.ml 3 points 6 days ago

I've been using nginx forever. It works, I can do almost everything I want, even if more complex things sometimes require some contortions. I'm not sure I would pick it again if starting from scratch, but I have no problems that are worth switching for.

[–] kevincox@lemmy.ml 1 points 6 days ago

IIUC it isn't censored per se. Not like the web service that will retract a "bad" response. But the training data is heavily biased. And there may be some explicit training towards refusing answers to those questions.

[–] kevincox@lemmy.ml 7 points 6 days ago (1 children)

The most likely situation is that the torrent isn't good. I would also force a recheck of the torrent to double-check that the files on your disk haven't been corrupted. But if that file is still saying "0 B" remaining (don't just look at 100% as it may be rounded) after the recheck then I would bet pretty good money on a broken torrent. If this is a public tracker it is fairly common.

However even if it is broken you may be able to play by using a different players. Different apps can skip over different forms of corruption, so you may get lucky.

 

Is there any service that will speak LDAP but just respond with the local UNIX users?

Right now I have good management for local UNIX users but every service wants to do its own auth. This means that it is a pain of remembering different passwords, configuring passwords on setting up a new service and whatnot.

I noticed that a lot of services support LDAP auth, but I don't want to make my UNIX user accounts depend on LDAP for simplicity. So I was wondering if there was some sort of shim that will talk the LDAP protocol but just do authentication against the regular user database (PAM).

The closest I have seen is the services.openldap.declarativeContents NixOS option which I can probably use by transforming my regular UNIX settings into an LDAP config at build time, but I was wondering if there was anything simpler.

(Related note: I really wish that services would let you specify the user via HTTP header, then I could just manage auth at the reverse-proxy without worrying about bugs in the service)

 
15
submitted 10 months ago* (last edited 10 months ago) by kevincox@lemmy.ml to c/toronto@lemmy.ca
 

This is frustrating. I live in a small apartment and my nearest beer store is over 20min walk. I can get to at least 6 LCBOs in that time and dozens of grocery stores that sell alcohol. I'm not even the worst off..

Note that in the map posted the middle location is Yonge and Dundas which doesn't accept bottles. So if you live in the downtown core you can be walking 30min easy (each way).

You can see a map here, but which ones accept bottles or not aren't indicated until you click "show details". https://www.thebeerstore.ca/locations

How is this acceptable? I am forced to pay a deposit on every bottle but have nowhere to return them. Either I save up and haul a giant bag 20min or drive. Either way a waste of space in my apartment and I don't even drink that much.

It seems that we need a solution.

  1. Make LCBOs take bottles back. (or anywhere that sells alcohol, including Beer Store delivery)
  2. Remove the deposit and recommend recycling (sucks for bottles which are better washed and reused rather than crushed and reformed).
  3. At least make the Yonge and Dundas store accept empties. This would at least give options in downtown core that are less than 15min away. Still not great but closes a gaping hole.
 

I'm reconsidering my terminal emulator and was curious what everyone was using.

 

cross-posted from: https://beehaw.org/post/551377

Recently my kernel started to panic every time I awoke my monitors from sleep. This seemed to be a regression; it worked one day, then I received a kernel upgrade from upstream, and the next time I was operating my machine it would crash when I came back to it.

After being annoyed for a bit, I realized this was a great time to learn how to bisect the git kernel, find the problem, and either report it upstream, or, patch it out of my kernel! I thought this would be useful to someone else in the future, so here we are.

Step #1: Clone the Kernel; I grabbed Linus' tree from https://github.com/torvalds/linux with git clone git@github.com:torvalds/linux.git

Step #2: Start a bisect.

If you're not familiar with a bisect, it's a process by which you tell git, "this commit was fine", and "this commit was broken", and it will help you test the commits in-between to find the one that introduced the problem.

You start this by running git bisect start, and then you provide a tag or commit ID for the good and the bad kernel with git bisect good ... and git bisect bad ....

I knew my issue didn't occur on the 5.15 kernel series, but did start with my NixOS upgrade to 6.1. But I didn't know precisely where, so I aimed a little broader... I figured an extra test or two would be better than missing the problem. 😬

git bisect start
git bisect good v5.15
git bisect bad master 

Step #3: Replace your kernel with that version

In an ideal world, I would have been able to test this in a VM. But it was a graphics problem with my video card and connected monitors, so I went straight for testing this on my desktop to ensure it was easy to reproduce and accurate.

Testing a mid-release kernel with NixOS is pretty easy! All you have to do is override your kernel package, and NixOS will handle building it for you... here's an example from my bisect:

boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux_6_2.override { # (#4) make sure this matches the major version of the kernel as well
  argsOverride = rec {
    src = pkgs.fetchFromGitHub {
      owner = "torvalds";
      repo = "linux";
      # (#1) -> put the bisect revision here
      rev = "7484a5bc153e81a1740c06ce037fd55b7638335c";
      # (#2) -> clear the sha; run a build, get the sha, populate the sha
      sha256 = "sha256-nr7CbJO6kQiJHJIh7vypDjmUJ5LA9v9VDz6ayzBh7nI=";
    };
    dontStrip = true;
    # (#3) `head Makefile` from the kernel and put the right version numbers here
    version = "6.2.0";
    modDirVersion = "6.2.0-rc2";
    # (#4) `nixos-rebuild boot`, reboot, test.
  };
});

Getting this defined requires a couple intermediate steps... Step #3.1 -- put the version that git bisect asked me to test in (#1) Step #3.2 -- clear out sha256 Step #3.3 -- run a nixos-rebuild boot Step #3.4 -- grab the sha256 and put it into the sha256 field (#2) Step #3.5 -- make sure the major version matches at (#3) and (#4)

Then run nixos-rebuild boot.

Step #4: Test!

Reboot into the new kernel, and test whatever is broken. For me I was able to set up a simple test protocol: xset dpms force off to blank my screens, wait 30 seconds, and then wake them. If my kernel panicked then it was a fail.

Step #5: Repeat the bisect

Go into the linux source tree and run git bisect good or git bisect bad depending on whether the test succeeded. Return to step #3.

Step #6: Revert it!

For my case, I eventually found a single commit that introduced the problem, and I was able to revert it from my local kernel. This involves leaving a kernel patch in my NixOS config like this:

  boot.kernelPatches = [
    { patch = ./revert-bb2ff6c27b.patch; name = "revert-bb2ff6c27b"; }
  ];

This probably isn't the greatest long-term solution, but it gets my desktop stable and I'm happy with that for now.

Profit!

view more: next ›