~kas

Bornholm, Denmark

https://kas.bio.link/

Fortune favours the lucky

~kas/public-inbox

Last active 3 years ago
View more

Recent activity

Re: Zettelkasten in Offpunk 13 hours ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

Ploum wrote:

> I’ve been wondering if offpunk could become my full zettelkasten
> and implemented support of "notes" in a branch as an experiment.
> 
> It worked so great that my zettelkasten is now already fully into 
> Offpunk.

I have never used lists or notes in offpunk, but for many years I have been on the lookout for a good textbased zettelkasten thing, so this sounds interesting. You have my attention.

> What name should it be ?  notepnk? zttlpnk? any idea?

I can only speak for myself, but the larger the edit distance is to the meaning or pronunciation, the less likely I am to (1) start using it, and (2) keep using it (because I can never remember what vowels or consonants to omit).

Re: Feature request: allow setting listen address 4 days ago

From Klaus Alexander Seistrup to ~bouncepaw/betula

Adam wrote:

> I noticed Betula listens on 0.0.0.0 by default.

Mine is listening to 127.0.0.1:1738, but I agree it will be desirable if port and host/ip were configurable. 

-- 
I ❤️  free software!

» IPython
» LNav
» OrganicMaps
» VirtualFish
» Eza

Re: Discussion about removing dependency on python-pillow 7 months ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

Ploum wrote:

> Thus, in offpunk, we use python-pil to extract the first frame
> of an animated gif if chafa is used and if chafa version < 1.10
> and if there’s no timg or if timg version <= 1.3.2.

I (AUR packager of offpunk-git) have removed the hard dependency on python-pil, and made versioned optional dependencies for chafa>=1.10 or timg>1.3.2 (Arch currently has chafa 1.14.1 and timg 1.6.0, so the versioned optional dependencies are not strictly needed, but I'll keep them for a little while).

> Also, I’ve seen that python-pil has been marked as a hard dependency
> for the Arch package. While this is not a big problem, I feed bad for
> having people installing a library and its dependency when it will
> probably never be used.

I agree.

Re: Moving cached certificates from .local/share to .cache 7 months ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

Sotiris Papatheodorou wrote:

> I would argue that both client and server certificates are important to back up.

I agree with this.

Perhaps offpunk could use the $XDG_STATE_HOME (default: ~/.local/state) directory instead of $XDG_CACHE_HOME. I wouldn't object to XDG_DATA_HOME (~/.local/share) but the data is not really “shared” with anyone — they're for offpunk only — so I prefer the state directory.

Cheers,

-- 
Kʟᴀᴜꜱ Aʟᴇxᴀɴᴅᴇʀ Sᴇɪꜱᴛʀᴜᴘ
https://kas.bio.link/ 🇩🇰

Re: ModuleNotFounderror on launch: cert_migration 8 months ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

ray.hubert wrote:

> works like a charm after adding `lxml-html-clean`. I also notified
> the packager (kseistrup) for the AUR version so they can add it as
> a dependency.

Yes, thank you so much for the notification.

In addition to adding `lxml-html-clean` I have made all importable python modules hard dependencies, and kept external programs like the clipboard stuff as optional dependencies, because even though offpunk is very liberal in its demands, the burden of sorting out inter-dependencies was placed on the shoulders of each individual user. This should now be a thing of the past.

If I may side-track the thread for a minute:

The pyperclip Python modules handles all the clipboard methods offpunk does, and then some (Qt and KDE clipboards), so if offpunk were using pyperclip we could drop the [optional] dependencies of xclip, xsel and wl-clipboard, and using it is as simple as `pyperclip.copy(f"{TEXT}")`.

Re: Support for Wayland clipboard in offpunk-trunk 8 months ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

Ploum wrote:

> I just added xclip in parallel to xsel. Could you please
> try if everything works fine in X11?

The `version` command says:

```
Nice to have:
- python-setproctitle       : Installed
- X11 clipboard (xsel or xclip)   : Installed
- Wayland clipboard (wl-clipboard): Not Installed
```

Re: Support for Wayland clipboard in offpunk-trunk 8 months ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

Ploum wrote:

>> [`fish_clipboard_(copy|paste)`]
>
> Do you think we should do the same in offpunk?

It seems like lightweight checks to do, so why not. It could even be implemented as two functions (e.g. `get_clipboard_copy()`) that is called upon first invocation and then memoized so that subsequent invocations already know what to do.

> Should it still be marked as a dependency or can we safely
> assume that at least one solution would work and throws a
> message in the rare case none of those work?

On AUR I have set these as optional dependencies: if people want e.g. image support, they should install this, if the want … they should install … and so on. And it should be visible in the version command if it works.

Re: Support for Wayland clipboard in offpunk-trunk 8 months ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

Ploum wrote:

> I’ve implemented support for both X11 clipboard (xsel) and Wayland 
> clipboard (wl-clipboard) in trunk.

Looks good.

The fish shell's `fish_clipboard_copy` and `fish_clipboard_paste` are using these heuristics to include Wayland, MacOS and Windows:

Copy:

```
if type -q pbcopy
  printf '%s' $cmdline | pbcopy

Re: Servers refusing connections from Offpunk 1 year, 1 month ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

Ploum wrote:

> The only hypothesis I have for that kind of behaviour is offpunk
> being considered as a bot/spam/crawler.

How would the site know that? Offpunk doesn't set/send anything like HTTP's User-Agent, does it?

> Any other hypothesis to explain the problem?

I would assume that I had made an error, rather than thinking that the world is against me.

I can see in netcache.py that offpunk does all sorts of things in order to set up a TLS connection. Specifically I see that it attempts to set the ciphers

  "AESGCM+ECDHE:AESGCM+DHE:CHACHA20+ECDHE:CHACHA20+DHE:!DSS:!SHA1:!MD5:@STRENGTH"

Re: Offpunk 2.1 1 year, 2 months ago

From Klaus Alexander Seistrup to ~lioploum/offpunk-devel

Ploum wrote:

> Just pushed a new annotated tag, should be fine now

Thanks. I bumped the package “epoch” on AUR because the old “g765f8f6-1” > the new “g1bbd317”, so now we're going from “2:2.1.r0.g765f8f6-1” to “3:2.1.r0.g1bbd317-1”.

That should solve it.

Thanks.

-- 
Kʟᴀᴜꜱ Aʟᴇxᴀɴᴅᴇʀ Sᴇɪꜱᴛʀᴜᴘ 🇩🇰
https://magnetic-ink.dk/kas