Searching yarn

Twts matching #cats
Sort by: Newest, Oldest, Most Relevant

Just some light Sunday afternoon entertainment: Printing from NetBSD on the dotmatrix printer by dumping data to /dev/ulpt0. The netbook doesn’t have a parallel port, so this must be done over USB. NetBSD.escp was created by a little custom ESC/P converter written in C. 🥳

https://movq.de/v/14b09c47a5/print-small.mp4

Video description:

Video begins with a view of the netbook’s screen: 3 windows are open, one of them showing the typical NetBSD logo to print, the other one shows the commands I ran in preparation:

magick /usr/X11R7/include/X11/pixmaps/NetBSD.xpm -depth 8 -alpha set /tmp/NetBSD.pam
./pam2escp /tmp/NetBSD.pam /tmp/NetBSD.escp

The other terminal shows a root shell with this command:

cat /tmp/NetBSD.escp >/dev/ulpt0

I hit Enter, the printer starts printing.

Camera pans to show the printer, an Oki ML 3390. Continuous paper. Once finished, I manually feed the paper a little bit to better show the result.

(If you turn up the volume enough, you can hear “Leaving” by “Chill Carrier” from 2008.)

⤋ 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

For this week’s #Caturday, I have an image that requires a bit of backstory…

Shortly after Emperor Maximilian I retained us as his caretakers (over 8 years ago), we would often return home from our travels to find a handful of pairs of socks scattered around the floor, typically taken from our son’s sock drawer (which was usually overflowing and therefore often left slightly open). We weren’t sure if it was Max (as he was not the only cat in the house) until the day we came home to find this:

⤋ Read More
↳ In-reply-to » Since I keep missing #Caturday, I figured I'd change it up today with pics of our pibble, The Princess Peaches, framed by the light of the window.

@david@daiwei.me @GabesArcade@gabesarcade.com Thanks.

The cats don’t actually care much (since they’re cats), but Princess Peaches is prone to bouts of extreme jealously, and has been giving me the side-eye for sharing pictures of the cats rather than her.

I say the world needs both more princesses and more Peaches! 😄

⤋ Read More
↳ In-reply-to » The original twt is unavailable. It may have been edited or deleted, or is from an unknown or muted feed.

@aelaraji@aelaraji.com wow, look who the cat dragged in! 😂 I was thinking about you just yesterday, when testing the twtxt.app, and seeing your avatar photo broken. And today, here you are! Nice to “see” you mate!

⤋ Read More
↳ In-reply-to » Alright, this yarnd installation has been properly fixed.

cat /etc/mokou/yarnd.conf
exec=/usr/pkg/sbin/daemonize -c/var/db/yarnd -u www -p /var/run/yarnd.pid /usr/pkg/sbin/chpst -e /usr/local/etc/yarnd /usr/local/sbin/yarnd -b 127.0.0.1:[classified information]

I know this might seem a bit overengineered, but the previous command until now had the secrets exposed on the process list

⤋ Read More
↳ In-reply-to » Three weather services with three different forecasts. We got a little bit rained on, so at least some of them were not completely wrong. The timing was off by an hour, though. And nobody expected the Spanish inqui^W^Wthunder either. It was a nice walk.

It was raining cats and dogs for a few minutes, I almost couldn’t see the houses down in the valley anymore. Pretty sick. :-)

@bender@twtxt.net Haha, yeah, we’re also better off rolling dice sometimes. I usually don’t mind liquid sunshine either. But I have to be prepared for it. As a matter of prudence, I brought my rain jacket along. In the end, I was wet from the inside as well, though. The breathability of this plastic bag isn’t as good as they always claim it to be. Especially in summer.

@movq@www.uninformativ.de I couldn’t agree more! :-)

⤋ Read More
↳ In-reply-to » After around 3 years, I managed to make my "smallest recognizable canine", even smaller. So here's the all new, smallest recognizable canine 2.0: Media

@movq@www.uninformativ.de Thanks, glad you like it, but sadly I’m not sure, if there’s still a way, for this particular project, to continue.

Reducing 38 pixels (previous smallest) to 27, inside of a 7x7 square canvas, is a result I’m really happy with. Now it seems I can only shave off single pixels and get a lot worse looking results - to the point it doesn’t even look like my mascot, to me.

There doesn’t seem to be a hard cap for drawing tiny dogs. It’s possible to arrange 5 pixels, in a way someone recognizes them, as some kind of a dog. The record for cats, is currently a single orange pixel: https://youtu.be/gzeK8NKuzmg

The only way to beat that, is either a monitor, with just a single red diode lit, inside one of its pixels, or an image file that’s broken and empty, on purpose.

⤋ Read More

Soy el detective Baldo. Aún recuerdo cuando esa gatita salvaje entró en mi caja contoneando su cola. Le habían robado el cascabel de oro. Acepté el caso sin dudarlo, quería meter los bigotes en ese caso. Olía a pescado podrido.
#catsoftwtxt

⤋ Read More