Better HN
topnewbestaskshowjobs
Log inSign up

b3n

1,029 karma · joined Sep 21, 2007 (19y ago) · 153 submissions

Hello, world!
Submissions

comment 4mo ago · link · parent

Hi dakra!

> is there something Ghostel is missing

eshell allows me to manipulate text as I would in any other Emacs buffer. If I have a function which wraps a word in quotes, and bind it to a key, I can be confident it will work in eshell like it does anywhere else. It's a real killer feature. If I use evil-mode, or xah-fly-keys, or simply want to use ispell to correct the spelling of a word, it all works.

Unfortunately with Ghostel none of this works. It's not integrated in the same way. There are extensions like evil-ghostel-mode, but they are limited.

Are there any plans to improve this, or is it a limitation Ghostel has to live with?

A Ghostel equivalent of eat-eshell-mode would be amazing.

comment 6mo ago · link · parent

Go is a turn based game without this feature (or bug?) because you aren't forced to move, you can instead pass. Both players passing in a row implies neither player thinks they can improve their position and the game ends.

comment 8mo ago · link · parent

This was already done, see: Grokipedia.

comment 8mo ago · link · parent

I'm surprised no one has yet mentioned Eshell has a module built in for exactly what you want, you just need to `(push 'eshell-rebind eshell-modules-list)`. Now C-p, C-r, etc. work as you are used to.

5.

Privacy Pass Authentication for Kagi Search(blog.kagi.com ↗)

939 points · by b3n · 1y ago · 341 comments

comment 1y ago · link · parent

Nice! I made WikTok[1] in the past, but your version looks much better. :-)

[1] https://wiktok.org/

comment 2y ago · link · parent

Guix even comes with a Nix service[0] which is easy to enable if you would like to also use Nix packages.

[0] https://guix.gnu.org/manual/en/html_node/Miscellaneous-Servi...

8.

NoML Proposal for Fair Use of Content in AI and Search(blog.mojeek.com ↗)

3 points · by b3n · 3y ago · discuss

9.

Google Calendar Is Down(google.com ↗)

17 points · by b3n · 3y ago · 2 comments

comment 3y ago · link · parent

This is a Google company, it has nothing to do with Musk.

comment 3y ago · link · parent

But there's plenty of transpilers: ClojureScript, Nim, etc.

comment 3y ago · link · parent

Guix comes with a service for using Nix packages[1], if that's what you want. It's very simple to setup, and would allow you to use Nix's Firefox package without any issue.

[1] https://guix.gnu.org/manual/en/html_node/Miscellaneous-Servi...

13.

Tell HN: Pushes to GitHub PRs are not working(githubstatus.com ↗)

9 points · by b3n · 3y ago · 1 comment

comment 3y ago · link · parent

Thank you for taking the time to share all this great feedback! Appreciate it :)

I agree with all your points. I will only comment on a few, but will go through each of them and fix what I can.

> I assumed it didn't matter but turns out right goes back, but after you go back, left swipe gives you a new article instead of going back to the article you went back from

This is actually a bug, it's supposed to go forward but it seems `window.navigation.canGoForward` is not implemented in Safari. I'll add a workaround, and then think about better ways to navigate between articles.

> preload the next page

This is supposed to happen already (the API is queried in advance), but it might be slow due to updating the DOM. I'll see if there's a way I can pre-render the next page (might work well with your visual feedback suggestion).

> does the algorithm track how I scrolled the page, which words I dwelled on etc.?

No but I'd like to try something like this and see if it helps the suggestions.

> letting people see more of what you track, like what articles they've read and show them long lists of related articles for the current article, so that you can see that you're making progress instead of feeling that it's an endless pit of information

That's a great idea! Once I've fixed the numerous bugs I'll try and add some interesting/fun stats.

> Will you open source this?

Yes! The only reason it's not already open source is because I'd like to clean up the code a little first.

15.

Show HN: WikTok – A Recommendation UI for Wikipedia(wiktok.org ↗)

73 points · by b3n · 3y ago · 11 comments

comment 3y ago · link · parent

Availabe on F-Droid at https://f-droid.org/en/packages/org.gnu.emacs/

17.

Emacs for Android(git.savannah.gnu.org ↗)

4 points · by b3n · 3y ago · 3 comments

comment 3y ago · link · parent

> I feel ashamed to live on this side of the Atlantic, sometimes.

Let's not forget that DeepMind is of EU origin, and they were one of the forces that kick started this whole AI renaissance.

comment 3y ago · link · parent

But at that point you may as well use TRAMP[1] and let Emacs do the multiplexing for you. Yes, (e)shell works over TRAMP too. ;)

[1] https://www.gnu.org/software/tramp/

comment 3y ago · link · parent

What is "blatant"? I don't think sister sites[1] are frowned upon. The code is released under a permissive license, after all.

[1] https://github.com/lobsters/lobsters/wiki#sister-sites

comment 3y ago · link · parent

These runs (also known as "handroll combos") are one thing that the Colemak layout optimizes for.

See: https://colemak.com/Hand_alternation

comment 3y ago · link · parent

You can also use the built in rgrep functionality with ripgrep, just do something like

    (grep-apply-setting
           'grep-find-command
           "rg --no-heading ")

comment 4y ago · link · parent

> not usable at work for me (lack of MacOS support - just 4 of my eng org's ~25 folks use Linux)

In case you're not aware, you can easily create a Guix pack[1] in the Docker image format that can be run on MacOS.

[1] https://guix.gnu.org/manual/en/html_node/Invoking-guix-pack....

comment 4y ago · link · parent

No, the GNU AGPL does not force that. Maybe you are thinking of MongoDB's SSPL[0]?

[0] https://en.wikipedia.org/wiki/Server_Side_Public_License

comment 4y ago · link · parent

From your link:

> Web mining is infeasible due to the large memory requirement and the lack of directed rounding support for floating point operations in both Javascript and WebAssembly.

comment 4y ago · link · parent

> While I understand and agree with most of the GNU mantra of free software, it was simply difficult and unwieldy to use my laptop since it required non-free software

One easy solution is to use Guix's Nix service[1], which lets you install packages from the Nix package manager.

[1] https://guix.gnu.org/manual/en/html_node/Miscellaneous-Servi...

comment 4y ago · link · parent

> If anyone knows a quick fix, please let me know!

I don't use `use-package` (or `flycheck`, what advantage does it have over the built in `flymake`?), but I suspect adding `(require 'use-package)` after `(straight-use-package 'use-package)` would fix it.

comment 4y ago · link · parent

Another approach to the problem would be to install Emacs packages with GNU Guix[1].

[1] https://guix.gnu.org/manual/en/html_node/Application-Setup.h...

comment 4y ago · link · parent

> The function will generally only work on a subset of types for given variable.

This is true for many functions defined in statically typed languages too. Just because your function says it works with an integer, doesn't mean it's necessarily going to work with _any_ integer (think `1/n`). Very often the type used isn't narrow enough.

Modern dynamic languages understand this, see for example Clojure's spec[1].

[1] https://clojure.org/about/spec

123456