rglullis

joined 1 year ago
MODERATOR OF
[–] rglullis@communick.news 181 points 2 days ago (30 children)

FYI: it looks like Trump is going to win the popular vote on this one as well.

[–] rglullis@communick.news 5 points 1 week ago

The idea is not to have to talk with everyone in the circle, but to have enough people to create a long tail of niche interests.

[–] rglullis@communick.news 6 points 1 week ago (1 children)

Takahe is IMO the opposite of "single user software" . It shines when you want to host multiple users with multiple different domains and identities.

[–] rglullis@communick.news 1 points 3 weeks ago* (last edited 3 weeks ago)

Right, but the problem with them is "bad usability", which amounts to "friction".

Like I said in the original comment, I kinda believe that things will get so bad that we will eventually have to accept that the internet can only be used if we use these tools, and that "the market" starts focusing on building the tools to lower these barriers of entry, instead of having their profits coming from Surveillance Capitalism.

[–] rglullis@communick.news 4 points 3 weeks ago (4 children)

requiring a proof of identity or tracking users is a privacy disaster and I'm sure many people (especially here) would outright refuse to give IDs to companies.

The Blockchain/web3/Cypherpunk crowd already developed solutions for that. ZK-proofs allow you to confirm one's identity without having to reveal it to public and make it impossible to correlate with other proofs.

Add other things like reputation-based systems based on Web-Of-Trust, and we can go a long way to get rid of bots, or at least make them as harmless as email spam is nowadays.

[–] rglullis@communick.news 12 points 3 weeks ago (6 children)

Not even the biggest tech companies have an answer sadly…

They do have an answer: add friction. Add paywalls, require proof of identity, start using client-signed certificates which needs to be validated by a trusted party, etc.

Their problem is that these answers affect their bottom line.

I think (hope?) we actually get to the point where bots become so ubiquitous that the whole internet will become some type of Dark Forest and people will be forced to learn how to deal with technology properly.

 

I am using counsel with projectile mainly for two use cases:

  • counsel-projectile-ag for project-wide grep
  • counsel-projectile-find-file to get a list of file names by typing some characters.

I usually have them bound to C-C C-sand C-C C-f, which used to work well with any other major modes.

Recently, I switched to using tree-sitter and set it up to use python-ts-mode. I also started using lsp-mode. Since then, whenever I open any python file, C-c C-s and C-c C-f are bound to the functions from python-mode. I've tried adding

(unbind-key "C-c C-s" python-ts-mode-map)
(unbind-key "C-c C-f" python-ts-mode-map)

to python-ts :config on use-package, and similar to python-mode, but I am still getting

python-ts-mode-map), which is an interactive native-compiled Lisp
function in ‘python.el’.

It is bound to C-c C-s.

(python-shell-send-string STRING &optional PROCESS MSG)

Send STRING to inferior Python PROCESS.
When optional argument MSG is non-nil, forces display of a
user-friendly message if there’s no process running; defaults to
t when called interactively.

[back]

What would be the correct way to set the configuration to get this always bound to the counsel-projectile commands whenever I open a python file?

Caveat: I am using NixOS home-manager to manage my emacs installation, which means that I am not manipulating my .emacs directly.

The relevant sections of my nix file.

usePackage = {
python-ts-mode = {
        enable = true;
        mode = [ ''("\\.py\\'" . python-ts-mode)'' ];
        hook = [
          "hs-minor-mode"
          "(python-ts-mode . python-isort-on-save-mode)"
        ];
        bind = {
          "C-c C-s" = "counsel-projectile-ag";
          "C-c C-f" = "counsel-projectile-find-file";
        };
        config = ''
        (unbind-key "C-c C-s" python-ts-mode-map)
        (unbind-key "C-c C-f" python-ts-mode-map)
        '';
      };

python-mode = {
        enable = true;
        bind = {
          "C-c C-s" = "counsel-projectile-ag";
          "C-c C-f" = "counsel-projectile-find-file";
        };
        config = ''
            (unbind-key "C-c C-s" python-mode-map)
            (unbind-key "C-c C-f" python-mode-map)
        '';
      };
lsp-mode = {
        enable = true;
        command = [ "lsp" ];
        hook = [
          "((python-ts-mode java-mode vue-mode javascript-ts-mode typescript-ts-mode) . lsp-deferred)"
        ];
        bind = {
          "C-c r r" = "lsp-rename";
          "C-c r f" = "lsp-format-buffer";
          "C-c r g" = "lsp-format-region";
          "C-c r a" = "lsp-execute-code-action";
          "C-c f r" = "lsp-find-references";
          "C-c C-s" = "counsel-projectile-ag";
          "C-c C-f" = "counsel-projectile-find-file";
        };
      };
counsel = {
        enable = true;
        bind = {
          "C-x C-d" = "counsel-dired-jump";
          "C-x C-r" = "counsel-recentf";
          "C-x C-y" = "counsel-yank-pop";
        };
        diminish = [ "counsel-mode" ];
      };

      counsel-projectile = {
        enable = true;
        bind = {
          "C-c C-s" = "counsel-projectile-ag";
          "C-c C-f" = "counsel-projectile-find-file";
        };
      };
};

Any help appreciated.

[–] rglullis@communick.news 9 points 3 weeks ago

This is not a matter for instance admins but for proper community moderation.

[–] rglullis@communick.news 4 points 3 weeks ago

Yes, it is possible.

[–] rglullis@communick.news 1 points 3 weeks ago (1 children)

I am the instance admin, and I am asking you to check it precisely because I am trying to troubleshoot it...

[–] rglullis@communick.news 1 points 4 weeks ago

My point is that we should take their current approach as a good thing.

I"m not saying that we should blindly trust them, but I am saying that if we want corporations to Do The Right Things, then it's a lot better to let them have a seat at the table and participate with the community than to simply ostracize them forever because of their past wrongdoings.

[–] rglullis@communick.news 1 points 4 weeks ago (3 children)

Then I'd ask you to please check again your language settings, or talk with the admin of your instance. There really is no reason for it to be failing.

What happens if you try posting to the community? (I noticed now that my comments are only accepted if I let the language as "undetermined")

[–] rglullis@communick.news 1 points 4 weeks ago (5 children)

Can you try unsubbing and trying again? I checked with people with multiple different instances and it seems to be working fine...

view more: next ›