Searching txt.sour.is

Twts matching #1
Sort by: Newest, Oldest, Most Relevant
In-reply-to » It is such a nice feeling that Mu is such a capable little language 😅 And I decided to write code code in Mu by hand đŸ€š haha đŸ€Ł and start solving Project Euler problems, like Problem 8 which works out to be a nice elegant solution in Mu:

Oh man wow 😼 Problem 9 was quite hard đŸ˜± I had to build two new functions in the Mu stdlib for computing combinations and permutations, but then the combinations of range(1000) for triples such as a + b == c is enormous! So i had to write iterator versions of these to do lazy evaluation. Anyway solution follows:

#!/usr/bin/env mu

// Special Pythagorean Triplet

import "iter"

fn usage() {
  print("Usage:", args()[0], "<n>")
}

fn sqr(x) { x * x }

fn main() {
  if len(args()) < 2 {
    usage()
    exit(1)
  }

  n := must(int(args()[1]))
  print("n:", n)

  // For a < b < c and a + b + c == n, both a and b are strictly less
  // than n/2. Generate only (a,b) combinations and derive c directly. This
  // keeps the search lazy and reduces n=1000 from C(999,3) = 165,668,499
  // candidate triples to C(499,2) = 124,251 candidate pairs.
  pairs := iter.combinations(iter.range(1, n / 2), 2)

  triples := iter.map(pairs, fn(xs) {
    a := xs[0]
    b := xs[1]
    return [a, b, n - a - b]
  })

  // Enforce b < c; a < b is already guaranteed by combinations over an
  // increasing range, and a + b + c == n holds by construction.
  triples = iter.filter(triples, fn(xs) {
    return xs[1] < xs[2]
  })

  // Euler 9 has one answer for n=1000. find() stops the entire upstream
  // iterator chain as soon as the first Pythagorean triple is found.
  answer := iter.find(triples, fn(xs) {
    return sqr(xs[0]) + sqr(xs[1]) == sqr(xs[2])
  })

  print(answer)

  if answer != nil {
    print(answer[0] * answer[1] * answer[2])
  }
}

main()

​ Read More

It is such a nice feeling that Mu is such a capable little language 😅 And I decided to write code code in Mu by hand đŸ€š haha đŸ€Ł and start solving Project Euler problems, like Problem 8 which works out to be a nice elegant solution in Mu:

#!/usr/bin/env mu

// Largest Product in a Series

import "fp"
import "sys"

fn usage() {
  print("Usage: cat |", args()[0], "<n>")
}

fn products(xs) {
  return fp.reduce(xs, 1, fn(x, y) {
    if y == nil {
      return x
    }
    return x * y
  })
}

fn main() {
  if len(args()) < 2 {
    usage()
    exit(1)
  }

  s := must(sys.read_all(0))
  if len(s) == 0 {
    usage()
    exit(1)
  }

  n := must(int(args()[1]))
  r := fp.max(fp.map(fp.sliding(fp.map(s, int), n), products))
  print(r)
}

main()

​ Read More
In-reply-to » Ich könnt’ so platzen ob des ganzen Vibecoding-Schrotts, der dann jetzt doch wieder vor meinen FĂŒĂŸen landet 


@lyse@lyse.isobeef.org Ja und auch so: „Raus mit den Entwickler:innen! Das Marketing macht seine Software jetzt mit KI selber!!1!“ Kannste dir alles nich ausdenken. (Jaja, ist natĂŒrlich im Moment billiger. Aber diese Kurzsichtigkeit 
)

​ Read More
In-reply-to » Tell me which one of those “plus” icons on this screenshot you can click and which one is just decoration.

@lyse@lyse.isobeef.org Bingo!

Oh, yeah, newsboat is good. For this particular use case, I explicitly needed a graphical feed reader, though. 😅 I ended up using Thunderbird, which has its own interesting way of configuring/adding feeds:

https://movq.de/v/a3557e3dc9/vid-1784952576.mp4

Why are feeds categorized as “Mail”? What’s going on with that “Add” button on the left of the dialog? Why does the dialog indicate that there’s a folder called “list-files Recent Commits” which doesn’t really exist in the end? (Why does it take about 1-2 seconds to load 25 feed items?) And so on.

​ Read More
In-reply-to » @prologic @bender is it normal that twtxtapp's <tab> (white space) between the timestamps and posts look a bit shorter than the ones from jenny? just noticed that and thought maybe it's someting you'd want to know.

@aelaraji@aelaraji.com @david@daiwei.me @prologic@twtxt.net It depends on the tab size, but often, a tab aligns the following character to next column that is a multiple of eight.

1      8       |16     |24     |32
2026-07-12T08:11:34+02:00      Here goes the text
2026-07-12T06:11:34Z   Here goes the text

​ Read More
In-reply-to » We slept in the forest. It was really great except of my mate's fucking terror dog who was barking and snarling the entire night to each and every sound. I had maybe half an hour of sleep in total. Despite that, it was pleasantly warm. Well, the night, that is. The heat was brutal during the days. Literally streams of sweat were running down on us on the way there in the evening and back in the morning.

@prologic@twtxt.net Well, 15 shows the site. On the left, I had a roll mat on a tarp. I borrowed some “NVA tarps” from the scouts for this trip. The scouts got them from the National People’s Army, the German Democratic Republic’s armed forces after Germany was reunited. They’re 1.75m x 1.75m in size and weigh 1.3kg, quite heavy, but super awesome. One tarp on the bottom, another one to cover up the clothes, shoes and sleeping bag in order to protect against the thaw. Finally, a mosquito net over all that, hung from a rope between two trees.

My mate just used a hammock with a mozzie net on the right hand side. The third tarp served as the luxurious bedside carpet. :-)

We sat on my second tarp to chill and enjoy the sunset and surroundings. It was nice to notice birds etc. die down. It took a really long time for the last light to fade away. Since we have a very high risk of forest fires, we of course couldn’t have a camp fire. But after all the exhaustion, I didn’t even miss it for one second.

Since we had dinner at home before leaving, all we brought were two lye rolls, two grain rolls, two brezels, some sausage and chocolate biscuits for breakfast. From the 2.5l of water, I ended up using 2l. It’s always good to have a little extra, despite the unnecessary weight. We had brekkie a few kilometers further on a bench in the shade. The first bench was already in direct sun.

Our camp site was maybe 30m to the side and a few meters down of a summit path hidden behind some trees and bushes. We were quite lucky, the other side of the hill got quite a bit of a breeze at night. We could hear the leaved treetops making much more noise behind us.

@movq@www.uninformativ.de Yes, these kind of dogs should really be strictly forbidden!

It’s not illegal if you own the forest or ask the owner. :-)

@david@daiwei.me Yeah, no clue. But my mate said the dog is disqualified from such adventures in the future. :-)

The temps were supposed to hit 14°C just before sunrise. Since we didn’t bring a thermometer, I can’t tell for sure. I was rather hot in my sleeping bag, so I had to pull out my arms every now and then. My mate’s sleeping bag was a little lighter and, unfortunately, the zipper jammed up. Since it didn’t close all the way, it felt quite a bit cold I was told in the morning. When we got up at 6ish (we said, we don’t care about time at all), it was probably already 16°C if not more. I brought a jumper, but a t-shirt was already nice enough to wear. The jumper just served as my pillow. The mercury raised by the minute then.

Yeah, I circled the spot with a biro to keep an eye on it. Until now, there’s absolutely nothing to see. Looks like I got lucky.

​ Read More

15 years without reinstalling on this particular box.

$ head -n 1 /var/log/pacman.log
[2011-07-07 11:19] installed filesystem (2011.04-1)

Two more years and I’ll be celebrating the “20 years of Arch” anniversary.

​ Read More

@GabesArcade@gabesarcade.com The no-JS part is one thing, but you also have to disable the (nowadays common) forced-HTTP-to-HTTPS-redirect, because those old browsers can’t do modern crypto. And make sure that your webserver serves the correct page even if no Host header is sent by the client. And don’t even think about serving UTF-8 or even just putting utf-8 in the content type. 😅 And for the JPEG thumbnails I pass a special flag to ImageMagick so that IBM Web Explorer from OS/2 won’t trip. đŸ€Ł And always use link rel="stylesheet" for CSS, because some browsers render inlined CSS as literal text. And 
 probably more that I forgot by now. 😂

@david@daiwei.me Not sure, actually. Let’s see. Those are the ones where I still have the original disks (or have bought them on eBay again):

  • SuSE Linux 6.4 (it’s a massive 7 CD distro with a huge manual, best thing ever)
  • OS/2 2.1
  • OS/2 Warp 3 (red and blue spine because $reasons)
  • OS/2 Warp 4
  • PC DOS 7
  • MS-DOS 6.22
  • Windows 3.1
  • Windows for Workgroups 3.11
  • Windows 95 C
  • Windows 98
  • Windows NT 4 Workstation (still in the mail, though 😅)
  • Windows 2000
  • Windows XP Professional (last Windows I ever used on my private PCs)

(Plus a few “classic” office products as can be seen here: https://movq.de/blog/postings/2024-05-23/0/POSTING-en.html )

​ Read More
In-reply-to » @arne Das "alte" RechenzentrumsgebĂ€ude wurde 2020 leer gezogen und einige Jahre spĂ€ter abgerissen. Einen kleinen Einblick ins Innere gibt es in der URZ-Chronik von 2009.

@arne@uplegger.eu Whoah! „Schaffung eines Aufenthaltsraumes fĂŒr Nichtraucher!“ Irre, dass es einen solchen vor dem 1. Mai 1975 nicht gab. Kann man sich heute ĂŒberhaupt nicht vorstellen.

Cool, schönes Heftchen hast Du da gesetzt. :-) Die Lochkartenanzahlen sind auch der absolute Wahnsinn.

​ Read More

Java 1.3 on Windows 95 with Proton as the editor could be another option for next Advent of Code.

Win95 runs pretty smoothly on my old box (no surprise, that box came with Win95) and I like Java, so 
 why not 


Not sure about the speed, though. đŸ„Ž

Image

​ Read More
In-reply-to » @movq https://movq.de/blog/postings/2026-07-03/0/POSTING-en.html Oh yeah, the toolbar handles. You could actually move the toolbars around and sometimes even customize them. I have no evidence, but to me it feels like a lot of programs don't allow that anymore nowadays.

@lyse@lyse.isobeef.org This apparently depends on the program now 
 Some Qt6 programs still allow that, others don’t. I can’t remember if GTK ever had that feature. đŸ€” But yeah, this whole “move stuff around as you please”-mentality is mostly gone.

I know I keep referring to StarOffice 3.1 a lot, but it’s just such a good example for all these things. All the toolbars and panels could be rearranged:

Image

(This is running in Wine, btw.)

LibreOffice is the descendant of StarOffice and it doesn’t support anything like that anymore.

Maybe it was deemed too confusing for users? “Oh no, I mis-clicked something and now that bar is gone! How do I get it back? I don’t even know what it’s called!” đŸ€”

​ Read More

Interesting, HTTPS is almost twice as slow as plain HTTP on my server (~72 ms vs. ~135 ms):

$ hyperfine -r 50 "curl -so /dev/null 'http://movq.de/blog/postings/2024-05-23/0/t/word11a.jpg.jpg'"
Benchmark 1: curl -so /dev/null 'http://movq.de/blog/postings/2024-05-23/0/t/word11a.jpg.jpg'
  Time (mean ± σ):      72.7 ms ±  17.2 ms    [User: 6.2 ms, System: 4.8 ms]
  Range (min 
 max):    49.5 ms 
  99.7 ms    50 runs

$ hyperfine -r 50 "curl -so /dev/null 'https://movq.de/blog/postings/2024-05-23/0/t/word11a.jpg.jpg'"
Benchmark 1: curl -so /dev/null 'https://movq.de/blog/postings/2024-05-23/0/t/word11a.jpg.jpg'
  Time (mean ± σ):     135.5 ms ±  28.9 ms    [User: 17.8 ms, System: 5.6 ms]
  Range (min 
 max):    93.2 ms 
 198.5 ms    50 runs

​ Read More
In-reply-to » I went to check on the fireflies this season. But I didn't see any. Instead lots of moths. At first, I thought it might have been still too light, but it was already dark enough for me to miss and destroy a snail shell. Bummer. Maybe it was too wet tonight. Although, it's probably just another or two weeks until my glowing friends will finally show up.

@lyse@lyse.isobeef.org take a small video, pretty please! I would love the see them shining in the fields! On the pics, 1 is mine, all mine! đŸ„°

​ Read More
In-reply-to » @lyse In what way was KDE 3’s menu organized? KDE 1 is the only KDE version I ever used. 😅 We’re talking about this one, right?

@movq@www.uninformativ.de Yes, this screenshot. However, not the Dutch but rather the German version, no wonder it looks so crazy!!1!11

It’s been a hot minute or two since I last used KDE, so I don’t remember exactly. I just vaguely recall that I found myself thinking multiple times that the KDE application categories were better matching or there were more or something like that. Most of my classmates were on Windows and had one giant long list of all sort of stuff in there. You even had to scroll in the menu. Sure, they installed all kind of garbage, which didn’t exactly help. Where in KDE, they were actually grouped by Office, Internet, Graphics, Multimedia, Games, etc. In Windows, applications usually hid themselves in a sub folder named after the software vendor. At least in the later (?) days.

I only used Win 95, 98 and XP at home. For maths class with computer algebra system (Maple), we had a Cassiopeia with Win CE: https://en.wikipedia.org/wiki/Casio_Cassiopeia At school, there was probably also Win 2000, but I don’t know anymore for sure.

​ Read More
In-reply-to » @movq Regarding https://movq.de/blog/postings/2026-06-16/0/POSTING-en.html:

@lyse@lyse.isobeef.org In what way was KDE 3’s menu organized? KDE 1 is the only KDE version I ever used. 😅 We’re talking about this one, right?

Isn’t Notepad++ and Python cheating!? :-D

Well, Python was certainly already a thing back then, but Notepad++ is from 2003, right. I think I used https://www.wintotal.de/download/proton/ at the time? Maybe? I don’t know. 😅

​ Read More

The dairy farm has a new milk vending machine. The prices increased by 20%. One liter is now 1.20€ instead of 1.00€. But I don’t complain.

In a few meters of shrubs there were easily 50 butterflies. That was crazy, I’ve never seen this many in one spot. I should have taken a video.

The grain field in the beginning was looking so great. Crazy colorful and very yummy looking. I would have loved to take a bite. Or at least lie down right in the middle.

That was another great time in the outdoors. The 21°C were killing us, though. We were always glad when we reached a shady spot with a little breeze. I’m not gonna survive the 35°C later this week. :-(

https://lyse.isobeef.org/waldspaziergang-2026-06-15/

​ Read More

FIFA World Cup 2026 Live updates: Germany thump Curacao 7-1 as Japan take on the Netherlands
The Netherlands and Japan kick-off our coverage this morning before we take the Ivory Coast take on Ecuador and later, Sweden v Tunisia. Follow all the action. ⌘ Read more

​ Read More

FIFA World Cup 2026 Live updates: Germany thump Curacao 7-1 as Japan take on the Netherlands
The Netherlands and Japan kick-off our coverage this morning before we take the Ivory Coast take on Ecuador and later, Sweden v Tunisia. Follow all the action. ⌘ Read more

​ Read More

Formula 1 LIVE: Russell leads the grid for Barcelona-Catalunya GP with Piastri in seventh
Brits George Russell and Lewis Hamilton lead the grid for the Barcelona-Catalunya Grand Prix. Can a seventh-placed Oscar Piastri spoil their fun? Follow all the action ⌘ Read more

​ Read More
In-reply-to » Every now and then, I think that I have carefully proof-read my message enough times and hit the "Add message" button in tt. But then, in the message tree, I spot another missed typo. My process is then to go to my twtxt.txt and fix it by hand. However, I still have to clean up tt's cache. This is rather tidious:

@lyse@lyse.isobeef.org Is it this one? https://github.com/rivo/tview It’s almost 10 years old but hasn’t seen a 1.0.0 release yet? đŸ€”

​ Read More
In-reply-to » Oh boy, I absolutely hate this stupid trend of not writing changelogs anymore! Why the fuck would one seriously consider it to be a viable option to just let some shitty bot spew all merge requests on a goddamn GitHub release?! First of all, these merge request titles suck balls. The order of the changes in this "changelog" is completely random (well, probably merge time, which is as useless as the dick on the Pope). They are not grouped by anything at all. Additions, changes, removals, deprecations, etc. randomly mixed up in one giant list. And then "Add feature X", seventeen kilometers further down "Revert 'Add feature X'". Fuck you! Don't include this shit in the first place!

@movq@www.uninformativ.de You may want to include another antipattern to avoid in your article:

  • bump $same_dependency from 1.0.0 to 1.0.1
  • bump $same_dependency from 1.0.1 to 1.0.2
  • bump $same_dependency from 1.0.2 to 1.1.0
  • bump $same_dependency from 1.1.0 to 1.2.0

​ Read More

FIFA World Cup 2026 LIVE updates: Scotland up against Haiti, Brazil and Morocco draw 1-1 in New Jersey, Australia’s Socceroos start campaign against Turkey
Scotland are leading against Haiti, before the Socceroos begin their World Cup campaign against group favourites Turkey. Follow all the action. ⌘ Read more

​ Read More

FIFA World Cup 2026 LIVE updates: Scotland up against Haiti, Brazil and Morocco draw 1-1 in New Jersey, Australia’s Socceroos start campaign against Turkey
Scotland are leading against Haiti, before the Socceroos begin their World Cup campaign against group favourites Turkey. Follow all the action. ⌘ Read more

​ Read More

FIFA World Cup 2026 LIVE updates: Brazil and Morocco draw 1-1 in New Jersey, Australia’s Socceroos start campaign against Turkey
Brazil and Morocco go head-to-head before the Socceroos begin their World Cup campaign against group favourites Turkey. Follow all the action. ⌘ Read more

​ Read More

Every now and then, I think that I have carefully proof-read my message enough times and hit the “Add message” button in tt. But then, in the message tree, I spot another missed typo. My process is then to go to my twtxt.txt and fix it by hand. However, I still have to clean up tt’s cache. This is rather tidious:

  1. Recall the sqlitebrowser ~/.local/share/twtxt/tt2.sqlite from my shell history.
  2. Switch to the “Browse data” tab.
  3. Go to the messages table and wait a second or two until it’s loaded.
  4. Sort by the created_at column twice, so that I get descending order.
  5. Select the first message, which is typically the one in question.
  6. Find the “Remove currently selected row” button in the tool bar.
  7. Commit the changes.
  8. Close sqlitebrowser.

So, I finally implemented the removal of messages from the cache in tt. I can now hit d and confirm the removal. Bam! Should have done that ages ago!

Image

Next up is the search, I think.

​ Read More

Australia news as it happened: Coalition leaders rubbish idea of One Nation non-compete clause; Optus breached privacy rules; JB Hi-Fi to refund customers over misleading prices
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Coalition leaders rubbish backbencher’s suggestion of seat sharing deal with rising One Nation; Optus breached privacy rules in White Pages data bungle
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; One Nation continues to dominate political debate
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; JB Hi-Fi to refund 200 customers over misleading prices
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Experts demand inquest for Epstein survivor Giuffre
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Chalmers launches most impassioned defence of budget yet
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Iranian officials confirm Strait of Hormuz closed as US strikes Iran
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Iranian officials confirm Strait of Hormuz closed as US strikes Iran
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Iranian officials confirm Strait of Hormuz closed as US strikes Iran
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Iranian officials confirm Strait of Hormuz closed as US strikes Iran
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Iranian officials confirm Strait of Hormuz closed as US strikes Iran
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Iranian officials confirm Strait of Hormuz closed as US strikes Iran
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Australia news LIVE: Hanson’s fundraising blitz raises more than $1.5 million on first day; Iranian officials confirm Strait of Hormuz closed as US strikes Iran
Follow along as we bring you the latest live news updates from Australia and beyond. ⌘ Read more

​ Read More

Ask HN: Are most corporate SWE jobs performative?
The large companies I’ve worked at (including FAANG) seemed to thrive on kudos via performative actions. Like the majority of the team is doing useless stuff that management thinks is impressive while the couple all stars get the team closer to the goal.

Meanwhile, a lot of managers calendars are purely just 1:1s with devs on the team which clearly has very little value add to the team.

Anyone else notice this? Not sure if there’s a word for it, but it’s somewhat demoral 
 ⌘ Read more

​ Read More