#dev 2024-03-22

2024-03-22 UTC
[tantek] joined the channel
#
btrem
I've finished the icon for h-event. But the corners on the indieweb version are more rounded than the ones in my rendition. I'm using a simple path, no fill, with stroke-linejoin set to 'round'. But it's not as rounded as the path in the original.
#
btrem
The option is to modify the path in the original, but it's a somewhat complicated path, and I need to expand it's dimensions to match the format of SuperTinyIcons.
#
btrem
Sorry, I think this is supposed to be in #meta. Moving there now.
rrix joined the channel
#
[tantek]
if anyone here is using Redis, FYI: https://techcrunch.com/2024/03/21/redis-switches-licenses-acquires-speedb-to-go-beyond-its-core-in-memory-database/ — unlikely to effect non-profit personal sites I'm guessing, IANAL and all that
geoffo joined the channel
#
aaronpk
sounds fine to me
[tw2113] joined the channel
#
[tw2113]
I've heard of it, but don't knowingly actively use it
#
sknebel
biggest annoyance with the redis change for personal uses is probably that it'll be thrown out of the distro repos everywhere (otoh its not like its under massive development, so someone will probably fork the last open-source version, do minimal maintenance on that and that will be what people use as a drop in)
[Scout], [qubyte], [Murray] and [lcs] joined the channel
#
[Murray]
With http://Brid.gy, is it expected that replies to comments on a bridged post would not be sent? As in, I've recently noticed that Mastodon posts linking back to my site are sending direct replies, but if I or someone else responds to one of those comments on Mastodon, those replies-to-replies don't come through. The result is a partial conversation back on the article page
#
[Murray]
I wasn't sure if that was expected behaviour or not?
mahboubine joined the channel
#
mahboubine
How can I show the post I am replying to with webmentions like this
#
Loqi
[preview] [Aaron Parecki] also fwiw, that kind of spam usually comes in via pingback, so you can just not include the pingback tag to webmention.io and accept only webmentions instead
#
mahboubine
is aaron scraping twitter or is this something else?
#
capjamesg
mahboubine I think that was from before the Twitter API shut down.
#
mahboubine
makes sense.
[contact898] joined the channel
#
mahboubine
capjamesg: since I have you here, any advice on how to get better at low-level coding?
#
mahboubine
I can code pretty well when I have a framework to work with, especially on the web
#
mahboubine
usually everything I may want to do on a site (authentication, animations, etc..) is well documented
#
mahboubine
but I don't think I'd be able to write a programming language like you're doing at the moment
#
mahboubine
I picked programming language as just an example but you get the idea
#
capjamesg
mahboubine Great question! I choose projects like "make a programming language" because I like to start problem first. I find I learn better with a problem, then I have to go and figure out how to solve it.
#
capjamesg
In the case of programming languages, I researched what pieces you need to make one. There are a couple of pieces you need: a lexer, which reads text in a file and turns it into a tree that you can parse, then a parser, which takes the tree and does something with it. From there, I started figuring out what parts of the problem had already been solved so that I can focus on a single one at a time. I use a lexer that's already been made
#
capjamesg
To practice my skills, I sometimes like to implement single algorithms with a (relatively) clear specification. I did this for the bloom filter, BitCask data storage algorithm, the trie (which is an amazing way to learn about, and develop the ability to reason with, trees!).
#
capjamesg
For example, there is a cool data structure called a piece table, which is used to store changes to text in a text editor. I was like: this looks cool! So I looked and found a blog post that explained it, then I tried to write code that would replicate what was in the blog post: https://github.com/capjamesg/piece-table (my implementation), https://darrenburns.net/posts/piece-table/ (what I used as a reference).
#
Loqi
[preview] [capjamesg] piece-table: An implementation of the piece table data structure in Python.
#
mahboubine
Got it, I think I usually try to dive in without splitting the project into pieces
#
capjamesg
If you had said to me two years ago that I should write a programming language, I'd be scared and be like "I can't do that!" They seem intimidating! Just as data structures do, too! But there is usually something on the web that can help you go in a direction of understanding a concept. And if there isn't, you can break down your problem even more until you find something that is where you are. This might mean reading _about_ how somet
#
capjamesg
I'm a very hands-on programmer, too. I like to see the output of something and tinker with it. So if I have a list of lists, I like to write code and look at the output at every stage where the lists would change, so I can see how everything works. This is much more intuitive (for me) than reading a blog post and trying to develop only from theory.
#
capjamesg
I hope this is helpful! I should probably write a blog post on this at some point 😄
#
mahboubine
It _is_, thank you!
#
mahboubine
and I'll read the post if you do publish it
sandra, to2ds, Guest6 and [Paul_Robert_Ll] joined the channel
#
[Paul_Robert_Ll]
@btrem [tantek] SVGs for the building block icons can be found in this repo: https://github.com/getindiekit/indieweb-icons Let me know where you are trying to use the icons and I’ll see if I can help out.
#
Loqi
[preview] [getindiekit] indieweb-icons: A unified set of icons to represent IndieWeb concepts, formats, and protocols.
#
jeremycherfas
capjamesg I'm with you on printing out things at every stasge. My Python is littered with print statements for that reason, and when I think I've finished I comment them out but leave them in place for the next time I want to tinker.
[pfefferle] joined the channel
#
jeremycherfas
But if I can hijack this conversation, I'd like to learn more about how to build my own modules that I can call, instead of copy pasting bits from one program into another. Is there anywhere you would recommend to start understanding that?
#
[snarfed]
logging++
#
Loqi
logging has 1 karma over the last year
#
mahboubine
if I use bridgy to POSSE from my site to mastodon, but not include the post link, will I still get webmentions for replies?
#
[snarfed]
mahboubine only if you include a `u-syndication-of` link in the post on your site. https://indieweb.org/u-syndication
#
[snarfed]
otherwise, the feature request to integrate Bridgy Publish automatically like you're thinking is https://github.com/snarfed/bridgy/issues/1029
#
Loqi
[preview] [gijswijs] #1029 Use Bridgy Publish records for original post discovery in backfeed
#
to2ds
logging++
#
Loqi
logging has 2 karma over the last year
#
mahboubine
I plan to publish my /notes h-feed through bridgy. these notes in their nature are short. so adding a link under each one makes it a bit clunky
#
mahboubine
but I also still want webmentions
#
mahboubine
also, how would I know what u-syndication link to put when publishing the article, because bridgy will create the post (link) afterwords
#
jeremycherfas
Thanks snarfed -- but is that also applicable if my goal is not to distribute but to use myself only, locally?
#
to2ds
I think so. Been starting to reuse some of my Python stuff in multiple places.
#
to2ds
Across different virtual environments.
#
jeremycherfas
I'm using virtual environments, very handy. But I currently cut and paste defined functions, and I want to learn about defining my own classes and methods. At least, I think that's what I want to do. Packaging it up may come later.
to2ds joined the channel
#
to2ds
Good point. Not sure if I need installable packages just yet.
#
to2ds
jeremycherfas++ That's a great reference!
#
Loqi
jeremycherfas has 1 karma in this channel over the last year (8 in all channels)
#
jeremycherfas
Found that after lots of highly-ranked but inaccessible crap in Medium
#
to2ds
Sometimes you just want to read an article without jumping through hoops :)
#
Loqi
[preview] Learning lower-level programming
#
mahboubine
that was quick 😅. will be reading this evening.
#
capjamesg
mahboubine++ for the inspiration!
#
Loqi
mahboubine has 1 karma over the last year
#
[manton]
[snarfed] I tried to write up some thoughts from that session at FediForum about ActivityStreams types… Not sure it’s quite right, happy for feedback. https://www.manton.org/2024/03/22/fep-for-supported.html
#
Loqi
[preview] [Manton Reece] FEP for supported ActivityStreams types
[Tilley] and [aciccarello] joined the channel
#
Loqi
capjamesg has 45 karma in this channel over the last year (179 in all channels)
#
to2ds
capjamesg++ Great post!
jonnybarnes joined the channel
#
[tantek]
[manton] what's the equivalent Micropub extensions for querying supported types? Maybe worth mentioning in your blog post so folks see the prior art
#
[snarfed]
mahboubine you're right that you'd need to add the synd link after you get it back from Bridgy Publish. and it doesn't have to be user-visible! it can have no text
to2ds, [dominik] and ttybitnik joined the channel
#
[manton]
[tantek] Oh yeah, I actually brought that up during Micropub as prior art! Very similar.
#
[manton]
Er, during FediForum, I mean.
geoffo, ttybitni`, [KevinMarks] and [jacky] joined the channel
#
[jacky]
do we have something for querying post types?
#
capjamesg
aaronpk I queried you on my knowledge graph based on my blog posts.
#
capjamesg
The result:
#
mahboubine
hey aaronpk I wanted to test out something with my webmentions so I deleted a webmention from my own site and re-sent it again
#
mahboubine
now the api is saying the source URL is blocked, even though I didn't block the entire URL. I just deleted that single webmention'
#
mahboubine
If the entire domain isn't blocked, than it's fine. the blocked post doesn't have many webmentions anyways
#
mahboubine
I just think maybe we could highlight this somewhere on the page
#
aaronpk
deleting a webmention from webmention.io blocks that URL
#
aaronpk
otherwise it's not really a delete since it can be re-sent
#
aaronpk
if you wanted to test, you can just send it again without deleting it
#
mahboubine
makes sense, thanks.
[Joao_Paulo_Pes] joined the channel
#
[Joao_Paulo_Pes]
[capjamesg] wow, that's awesome! do you have more info on how you build/query this knowledge graph?
#
capjamesg
[Joao_Paulo_Pes] it was great seeing you at Homebrew website club this week!
#
capjamesg
And yes!
#
capjamesg
The pip package isn’t up to date yet, but you can build the code from that repository.
#
capjamesg
I used GPT to generate the triples from my blog. It isn’t 100% reliable, though, so some parts of the graph are a bit off. But it’s close enough to be useful!
#
capjamesg
[tantek] has also given me the idea of enriching the graph with generic information about things I have mentioned (perhaps from Wikipedia), to help create more connections in the graph.
geoffo joined the channel
#
capjamesg
My knowledge graph on blogging:
jeremycherfas joined the channel