Searching yarn

Twts matching #c.
Sort by: Newest, Oldest, Most Relevant

Cet aprĂšm, j’ai jardinĂ©. Quelques rayons de soleil, c’était le bonheur. Ravi de voir que la terre s’amĂ©liore avec les multiples paillages. La salade est plantĂ©e, plus qu’à espĂ©rer qu’il y ait moins d’escargots

​ Read More

Nous admirons l’arbre qui atteint le ciel, mais c’est le sol qu’il nous faudrait remercier. – Becky CHAMBERS

​ Read More

You have a microwave oven at home, right?

You can type 3 and 0 for 30 seconds, 100 for a minute (shown as 1:00), or 200 for two minutes (2:00).

What would happen if you type 777 and Start?
A) Nothing
B) Self-destruction
C) Will run for 7 minutes and 77 seconds (boring!)

What about 7777 ?

​ Read More

2°C warming limit deemed impossible + 2 more stories
A climate expert declares the 2-degree warming goal unattainable; Israel readies for potential Gaza relocation under Trump’s contentious proposal; an innovative vaccine shows promise in preventing kidney cancer recurrence after surgery. ⌘ Read more

​ Read More

My hike today started off with a nice great spotted woodpecker right after the town sign. The -1°C didn’t feel all that cold in the sun. Even on the flat, I had to open my jacket with the sun on my back. The biotope got dug over, that’s now looking really sad. And they also fell a few large chestnuts. Surprisingly, there was actually snow on the mountain. Not much, maybe around three centimeters at most. It was melting and falling down the trees, which looked really cool. I enjoyed it a lot: https://lyse.isobeef.org/waldspaziergang-2025-02-04/

Crazy ice crystals on twigs

​ Read More
In-reply-to » @prologic Which one? I don't mind the ternary operator at all. In fact, I often find myself missing it in Go. I don't find the two alternatives particularly elegant:

@prologic@twtxt.net Yes, C has it. I even thought that C invented it, but it seems to stem from CPL.

The closest to get to if expressions at the moment is to use a lambda:

foo := func() {
    if bar {
        return "spam"
    }
    return "eggs"
}()

But that’s also not elegant at all.

​ Read More

J’ai eu une coupure de courant, ~15 min. C’est là que je me dis qu’il faut que je trouve des sous pour un onduleur. Mais c’est vraiment cher ces trucs et pas du tout prioritaire dans la liste des trucs à acheter :s

​ Read More

Ça souffle trĂšs fort ici
 Je me demande si je ne ferais pas mieux d’éteindre mon serveur en cas de coupure (je n’ai pas rachetĂ© d’onduleur, c’est cher :s)

​ Read More

envie de coder
 J’ai un bout de C pour renommer les fichiers que je voudrais continuer. Vivement qu’il y ait moins de boulot et de soucis pour rĂ©ussir Ă  me concentrer!

​ Read More
In-reply-to » Heck yeah, that's really cool! Let's hope for a clear sky: "On the evening of 28 February 2025, all seven of the other planets in the Solar System will appear in the night sky at the same time, with Saturn, Mercury, Neptune, Venus, Uranus, Jupiter, and Mars all lining up in a neat row – a magnificent sky feast for the eyes known as a great planetary alignment." https://www.sciencealert.com/a-rare-alignment-of-7-planets-is-about-to-take-place-in-the-sky

@movq@www.uninformativ.de Hmm yeah, you’re right. I should have checked for our location prior to getting too excited.

@aelaraji@aelaraji.com Yeah, a sore neck is always a win. :-P Here’s nothing really to see, all cloudy. And also a bit cold at -2°C. I don’t feel like standing still all that long outside at the moment. :-D

​ Read More

C’est drĂŽle comme j’ai plein de choses d’un seul coup hyper intĂ©ressantes Ă  faire, comme changer le thĂšme du curseur de ma souris ou tester un nouveau thĂšme GTK. Pile quand j’ai des tas de bulletins semestriels Ă  complĂ©ter. Bizarre đŸ‘Œ

​ Read More

For some reason, I was using calc all this time. I mean, it’s good, but I need to do base conversions (dec, hex, bin) very often and you have to type base(2) or base(16) in calc to do that. That’s exhausting after a while.

So I now replaced calc with a little Python script which always prints the results in dec/hex/bin, grouped in bytes (if the result is an integer). That’s what I need. It’s basically just a loop around Python’s exec().

$ mcalc 
> 123
         123        0x[7b]    0b[01111011]

> 1234
        1234        0x[04 d2]    0b[00000100 11010010]

> 0x7C00 + 0x3F + 512
       32319        0x[7e 3f]    0b[01111110 00111111]

> a = 10; b = 0x2b; c = 0b1100101
          10        0x[0a]    0b[00001010]

> a + b + 3 * c
         356        0x[01 64]    0b[00000001 01100100]

> 2**32 - 1
  4294967295        0x[ff ff ff ff]    0b[11111111 11111111 11111111 11111111]

> 4 * atan(1)
3.141592653589793

> cos(pi)
-1.0

​ Read More

Couldn’t find anybody to join me this arvo, so I went alone. Only in the forest I began to see real snow. And then of course with each meter of elevation gain. I reckon there were 5-6 cm at the summit, so there is still room for improvement. The weather was absolutely stunning, a sunny blue sky alternating with clouds, most of my hike hardly any wind and 1°C. Climbing the mountain was a different story, the wind hit me hard.

I just love the wind-brushed formations of ice on the twigs and branches. They look soooo incredibly cool. It was kinda hard to capture them on film with the wind pushing everything around.

On the way down I took the narrow and currently fairly slippery path that was closed for some weeks due to felling activity. It looks so different with heaps of trees on the ground now. They’ve also sawn down the tree with the small hole near the ground (which I think I’ve shown a few times in the past). The beech in 52 to 54 was probably hit by lightning a few months ago. At least it’s completely charred.

https://lyse.isobeef.org/waldspaziergang-2025-01-03/

Snow on trees and bushes

​ Read More

I saw a paraglider after sunset. Must have been super cold up there in the sky, we just had 1-2°C on the ground. And I passed a heron at just 5-6 meters distance. I think that’s a new record low. The sunset itself wasn’t all that shabby either. Hence, a very good stroll.

​ Read More

all of the software sucks, but i have a solution! we’ll write even more software! get more people involved, make it the Ideal Career, then we can write ALÌ”LÌŽ OÌ”F THÌšE ̧C̀ODEÌ·S. mountains of shitty garbage that kind-of does the thing. software will still suck, but T͜HE̕N oh then we can write compilers that let us run the old shitty code inside of our mountain of new shitty code. now all of the code is in a giant pile and we’re using it to control space ships that definitely never crash. the more code the better! we can represent NaN easily in undefined systems! developers aren’t particularly bright, so the language is simple and easy for them to understand. we know this, that’s why it was made this way. theÍĄ mounÍątain Í mÌ”us͜t Í nȩverÌą ÌŽwaÌĄveÌŽrÌ”. the more code the better. so instead of writing the code manually we cÌŽómpileÌš t͞orÌžt̕u͜red soÌ·u͜ls ͏i͞n͞to͝ ͟nice Íąb̀lÌ·oxeÌĄls ÌžofÍ  Ìžt̶anÌĄg͜l̀ed ͞nÌąeu͏raÌĄlÍ  ̕neÌąt͏w͟orkś.Ìž wÌše dÍ on’t́ know how iÌ”t Ì·w͟orkÌĄs, ÌŽbut Ì·tÌŽhe modelÌą ̶is̛ 5̛0GiB ́s̶o ͟i͞t s͞e͘rve͟s ÌŽtḩe̛ purpośe. WE̕ MÍ USÌŽT BÍąUÌąILD ͝T͞HE MO͝UN̶TÌšAÌ”IN.

​ Read More

J’en avais dĂ©jĂ  parlĂ©, mais je l’ai dĂ©sormais totalement fini est il est vraiment bien. Le #livre de SalomĂ© SaquĂ© ‘RĂ©sister’ se lit vite car c’est bien Ă©crit, c’est sĂ©rieux car sourcĂ©, et permet de disposer de faits concrets ainsi que d’idĂ©es pour faire face Ă  l’extrĂȘme droite. Il ne coĂ»te que 5€, moins en version numĂ©rique. Lisez-le, offrez-le! https://www.lalibrairie.com/livres/resister_0-11697790_9782228937597.html?ctx=397de3ecca38cf20254f77d136f28b52

​ Read More
In-reply-to » It’s been so rainy and windy and cold these last few days, I hardly left the house. đŸ˜©

@movq@www.uninformativ.de Yesterday, it was relatively nice at 11°C or so. Very windy and completely gray, though. Today, the sun was out at roughly just 5°C. The colors glowed much more in reality than in the photos: https://lyse.isobeef.org/morgensonne-2024-11-20/

I finally changed the broken gear shift bowden cable of my bicycle in a longer lunch break.

​ Read More

demander Ă  perplexity quelle est la meilleure matiĂšre scientifique, et lire que c’est incontestablement la matiĂšre que j’enseigne, ça me fait jubiler d’avance pour embĂȘter mes collĂšgues XD

​ Read More

Ouiii, j’ai de nouveau internet! En fait, #sfr a changĂ© l’armoire, a dĂ©branchĂ© tout le monde sans prĂ©venir personne, et maintenant les autres fournisseurs doivent venir rebrancher leurs clients. C’est malhonnĂȘte
 Bref, si3t.ch et puffy.cafe sont de retour

​ Read More
In-reply-to » Numbers are hard. I just almost accidentally sent 33k€ to someone via bank transfer, because the banking website interpreted 334.90 as 33490,00. 😬 This is germany, so it wants a comma, not a dot 


@movq@www.uninformativ.de Yeah, the Swiss and C++ programmers use apostrophes. :-) My grandpa had an electronic desk calculator that also used some kind of apostrophes as the thousands separator on its cool display. Maybe it consisted of Nixie tubes, can’t remember anymore.

I think non-breaking spaces are preferred nowadays to avoid the confusion.

​ Read More

Went on a really cool walk today after the sun came out this arvo. Just 11°C and a fair bit of wind required a scarf and beanie. I love the autumn colors a lot and never tire of looking at them.

On the summit the view was absolutely terrible, because there were super low hanging clouds. But it still looked fairly spectacular. Very surreal, I could not make out the edge of the Swabian Alb. The haze just blended with the rest of the sky. Towards the sun it was just one giant white wall after half a kilometer or so. That doesn’t happen all that often here.

After dusk I saw five deer on a meadow. Well their outlines against the remaining backlit sky.

https://lyse.isobeef.org/waldspaziergang-2024-11-04/

Beautiful colors in the woods

​ Read More
In-reply-to » i'm so glad i gave up christianity. i might be a little less glad when i get purged, but at least i won't be doing the purging. jesus of nazareth has some chill teachings, but the whole thing is poisoned by the actual history of the religion. genocide, book burnings, and ethnic cleansing are not exactly noble teachings.

@prologic@twtxt.net that’s still a generalization. which religion, which historical trends, which extremes, &c. otherwise you aren’t actually saying anything about religion, you’re expressing disapproval of extremes. which is valid, but doesn’t make for a substantial critique, if that makes sense.

​ Read More

*PSHHHHT. Vous avez entendu? C’est le son de la boisson houblonĂ©e pour me fĂ©liciter d’avoir terminĂ© la correction de mes paquets de copies haut comme l’avant bras la veille des #utopiales2024. Yeah!

​ Read More
In-reply-to » After the behaviour of a clearly very angry feed author over the past few days, I'm very tempted to give up on Twtxt and allow it to go back to being dead. What really is the point of building and supporting a way to exchange little pieces of text with one another in a completely decentralised way, if you're just going to keep humping up against such hostility? I don't know why I do this anymore.

the test would be: how often does unwanted content get pushed on your feed? do incongruent posters easily disrupt harmonious connections? &c. less about the community, more about how the social dynamics play out as various groups and individuals interact.

​ Read More
In-reply-to » @aelaraji And pray tell/share with us what these magical commands do? đŸ€Ł

@prologic@twtxt.net Sure!! gg=G auto-indents your documents, as for the rest it’s:

  • v for selection mode, c for change and d for delete actions as usual.
  • followed by either ‘afor around ori` for inside/in-between whatever special character comes after it
    _ the [, (, “ 
 special characters define the perimeter/extent of the action.

i.e: ci" would be change the text under the cursor between quotes and da[ _delete text and brackets included_‹‹I’ve linked a reference in the first twt, hope you find it useful.

​ Read More
In-reply-to » There we go!

@prologic@twtxt.net Regarding the new way of generating twt-hashes, to me it makes more sense to use tabs as separator instead of spaces, since the you can just copy/past a line directly from a twtxt-file that already go a tab between timestamp and message. But tabs might be hard to “type” when you are in a terminal, since it will activate autocompleteâ€ŠđŸ€”

Another thing, it seems that you sugget we only use the domain in the hash-creation and not the full path to the twtxt.txt

$ echo -e "https://example.com 2024-09-29T13:30:00Z Hello World!" | sha256sum - | awk '{ print $1 }' | base64 | head -c 12

​ Read More

Aujourd’hui, petits changements de formatage de mes documents sur le style RFC. Le titre apparaĂźt dĂ©sormais au centre et en haut de page. On a aussi la date de rĂ©daction suivie de la date de derniĂšre mise Ă  jour. Que c’est beau :)

​ Read More

Gemini/Gopher Twtxt feeds account for less than 1% in existence:

$ total=$(inspect-db yarns.db | jq -r '.Value.URL' | awk -F'//' '{if ($1 ~ /^https?/) print "http/https:"; else print $1}' | sort | uniq -c | awk '{sum+=$1} END {print sum}'); inspect-db yarns.db | jq -r '.Value.URL' | awk -F'//' '{if ($1 ~ /^https?/) print "http/https:"; else print $1}' | sort | uniq -c | awk -v total="$total" '{printf "%d %s %.2f%%\n", $1, $2, ($1/total)*100}' | sort -r
7 gemini: 0.66%
4 gopher: 0.38%
1046 http/https: 98.96%

​ Read More
In-reply-to » @movq @falsifian @prologic Maybe I don't know what I'm talking about and You've probably already read this: Everything you need to know about the “Right to be forgotten” coming straight out of the EU's GDPR Website itself. It outlines the specific circumstances under which the right to be forgotten applies as well as reasons that trump the one's right to erasure ...etc.

@aelaraji@aelaraji.com This is one of the reasons why yarnd has a couple of settings with some sensible/sane defaults:

I could already imagine a couple of extreme cases where, somewhere, in this peaceful world one’s exercise of freedom of speech could get them in Real trouble (if not danger) if found out, it wouldn’t necessarily have to involve something to do with Law or legal authorities. So, If someone asks, and maybe fearing fearing for
 let’s just say ‘Their well being’, would it heart if a pod just purged their content if it’s serving it publicly (maybe relay the info to other pods) and call it a day? It doesn’t have to be about some law/convention somewhere 
 đŸ€· I know! Too extreme, but I’ve seen news of people who’d gone to jail or got their lives ruined for as little as a silly joke. And it doesn’t even have to be about any of this.

There are two settings:

$ ./yarnd --help 2>&1 | grep max-cache
      --max-cache-fetchers int        set maximum numnber of fetchers to use for feed cache updates (default 10)
  -I, --max-cache-items int           maximum cache items (per feed source) of cached twts in memory (default 150)
  -C, --max-cache-ttl duration        maximum cache ttl (time-to-live) of cached twts in memory (default 336h0m0s)

So yarnd pods by default are designed to only keep Twts around publicly visible on either the anonymous Frontpage or Discover View or your Timeline or the feed’s Timeline for up to 2 weeks with a maximum of 150 items, whichever get exceeded first. Any Twts over this are considered “old” and drop off the active cache.

It’s a feature that my old man @off_grid_living@twtxt.net was very strongly in support of, as was I back in the day of yarnd’s design (nothing particularly to do with Twtxt per se) that I’ve to this day stuck by – Even though there are some 😉 that have different views on this đŸ€Ł

​ Read More
In-reply-to » Could someone knowledgable reply with the steps a grandpa will take to calculate the hash of a twtxt from the CLI, using out-of-the-box tools? I swear I read about it somewhere, but can't find it.

@prologic@twtxt.net I ran the same command and got an even different result xD

~ » echo -n "https://twtxt.net/user/prologic/twtxt.txt\n2020-07-18T12:39:52Z\nHello World! 😊" | openssl dgst -blake2s256 -binary | base32 | tr -d '=' | tr 'A-Z' 'a-z' | tail -c 7
p44j3q

​ Read More

An alternate idea for supporting (properly) Twt Edits is to denoate as such and extend the meaning of a Twt Subject (which would need to be called something better?); For example, let’s say I produced the following Twt:

2024-09-18T23:08:00+10:00	Hllo World

And my feed’s URI is https://example.com/twtxt.txt. The hash for this Twt is therefore 229d24612a2:

$ echo -n "https://example.com/twtxt.txt\n2024-09-18T23:08:00+10:00\nHllo World" | sha1sum | head -c 11
229d24612a2

You wish to correct your mistake, so you make an amendment to that Twt like so:

2024-09-18T23:10:43+10:00	(edit:#229d24612a2) Hello World

Which would then have a new Twt hash value of 026d77e03fa:

$ echo -n "https://example.com/twtxt.txt\n2024-09-18T23:10:43+10:00\nHello World" | sha1sum | head -c 11
026d77e03fa

Clients would then take this edit:#229d24612a2 to mean, this Twt is an edit of 229d24612a2 and should be replaced in the client’s cache, or indicated as such to the user that this is the intended content.

​ Read More