~sotirisp

London, UK

https://sotiris.papatheodorou.xyz

PhD student at the Smart Robotics Lab in Imperial College London.

~sotirisp/today

Last active 4 months ago

~sotirisp/public-inbox

Last active 6 months ago

~sotirisp/kindleto-discuss

Last active 1 year, 1 month ago

~sotirisp/kindleto-devel

Last active 1 year, 1 month ago

~sotirisp/kindleto-announce

Last active 1 year, 1 month ago
View more

Recent activity

[PATCH] Add missing chardet module 3 days ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

This fixes text encoding detection for gopher requests which was using
the chardet module without importing it.

Here's a URL that causes a crash before the fix:
gopher://sdf.org/0/users/d1337/textfiles/hacker_crackdown.txt

---
 CHANGELOG  |  3 +++
 offpunk.py | 16 +++++++++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 645d009..fb1e591 100644
--- a/CHANGELOG
[message trimmed]

Re: "set cache" to use a custom cache folder 2 months ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

Hello,

On 2023-01-26, Ploum wrote:
>As requested on offpunk-users, I’ve been toying with a custom cache 
>folder. I thought it would be trivial.

I would argue it is and needs no changes to offpunk at all :). Moving 
the cache is as simple as:

mv ~/.cache/offpunk /desired/path/
ln -s /desired/path/offpunk ~/.cache/offpunk

In other words, just make ~/.cache/offpunk a symbolic link to wherever 
you want the cache to be. I think this is enough for pretty much all use

Re: Cache format specification 2 months ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

Sorry for the previous garbage email.

On 2023-01-20, Ploum wrote:
>Now, before giving a detailed answer to your mail, just want to point 
>out that, yeah, I did some mistake as I didn't think of all the edge 
>cases.

I didn't mean my email to be a criticism of the current cache. Knowing 
you're planning on implementing a separate netcache tool, I though it 
would be best to figure out the cache format sooner rather than later 
since it would potentially be a big breaking change.


On 2023-01-20, Ploum wrote:

Re: Cache format specification 2 months ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

offpunk %s:^(finger|gemini|gopher|spartan):\/\/.+
transmission-gtk %s:^magnet:.+

Re: Cache format specification 2 months ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

On 2023-01-21, Anna (cybertailor) Vyalkova wrote:
>I vouch for using an SQLite-powered database (it's in the standard
>library).

This is probably the best solution for a robust, general-purpose 
archiver. However I don't think offpunk strives to be that and I must 
say I really like being able to browse and search through the archive 
without specialized tools and I could live with some rare edge cases.

All the best,
Sotiris

Cache format specification 2 months ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

I'm looking into implementing an offpunk-compatible page cache for my 
Gemini client for old Kindles and paid some more attention to the 
offpunk cache format. From my understanding the current cache paths look 
like this:

<scheme>/<hostname>/<path split on slashes>/<query split on slashes>

i.e. gemini://kennedy.gemi.dev:1966/search?foo/bar becomes 
gemini/kennedy.gemi.dev/search/foo/bar


# Non-default port numbers are lost
Non-default port numbers aren't saved in the path making the mapping 
from URL to path non-unique. It can be an issue if a host is serving

Re: [PATCH] Handle .. as an alias to the up command 3 months ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

On 2022-12-16, sourcehut@ploum.eu wrote:
>Writing the changelog while working makes releases a lot easier. It is
>also a tool I use almost daily to remind me of what I’ve been doing. I
>sometimes modify the lines when I feel it could be better said
>otherwise. It’s more convenient to me than git log (which is useful
>differently to ensure historical accuracy).
>
>But I guess it’s personal and, tbh, I like it the way it is now.

By all means, use whatever you find most convenient, I didn't mean to 
push my way onto the project, merely point out an alternative. It's 
really interesting how we both seem to get the same benefits out of two 
different workflows. Humans are weird :D

Re: [PATCH] Handle .. as an alias to the up command 3 months ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

Sorry for forgetting to update the changelog again, I'll really try to 
remember next time :D

In my own projects I use git shortlog to automatically generate a list 
of changes from the commit messages before making a release. For offpunk 
the changes since the last release (v1.8 currently) look like this:

$ git shortlog --numbered v1.8..HEAD
Lionel Dricot (3):
       fix crash when susbcribing without GI
       Default handlers have been removed.
       added a comment about a function because it took me 15 minutes to understand why it was there

Ben Winston - ben at benwinston.us (1):

[PATCH] Handle .. as an alias to the up command 3 months ago

From Sotiris Papatheodorou to ~lioploum/offpunk-devel

* It allows passing an argument as in the up command.
* Prevents some weird errors when passing an argument.
---
 offpunk.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/offpunk.py b/offpunk.py
index 39e38c3..9151db5 100755
--- a/offpunk.py
+++ b/offpunk.py
@@ -309,6 +309,7 @@ def less_cmd(file, histfile=None,cat=False,grep=None):

# Command abbreviations
_ABBREVS = {
[message trimmed]

I shall toil at a reduced volume 3 months ago

From Sotiris Papatheodorou to ~sircmpwn/public-inbox

Hello Drew,

Thank you for your blog all these years. I've found many interesting 
ideas and things I relate to. Thank you for the nice software and 
Sourcehut as well, one of the handful of ethical companies in the 
industry. I'm looking forward to your future work knowing it will be 
respectful to users and of high quality.

All the best,
Sotiris