💾 Archived View for gem.hack.org › mc › log › 2023-01-24.gmi captured on 2024-05-26 at 14:40:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

-=-=-=-=-=-=-

2023-01-24

Evening, programs!

CPU reset in qemu?

Spent the day adding most of a hardware watchdog to our fork of qemu after trying it out on real hardware. Everything seems to work but I couldn't figure out how to do a CPU reset in qemu. No, qemu_system_reset() didn't do anything, and no wonder, because:

    MachineClass *mc;

    mc = current_machine ? MACHINE_GET_CLASS(current_machine) : NULL;
    if (mc && mc->reset) {
        printf("We have the reset function.\n");
        mc->reset(current_machine);
    } else {
        printf("No reset function.\n");
    }

Sadly prints "No reset function.". Dammit. What did I miss?

Calling Windows developers!

I've been spending some time trying to get some Windows developers to help us. That didn't work, either. Anyone know any Windows people that can help me:

It's OK with different people/companies doing any of the above. Anyone?

You can contact me directly at work at mc (at) tillitis.se.

Remove Pure GTK Emacs title bar

Ha! Finally managed to get rid of the huge title bar when running Pure GTK Emacs under Wayland. Just add:

(undecorated . t)

to your default-frame-alist! My own looks like this now:

      (setq default-frame-alist
            '((vertical-scroll-bars)
              (undecorated . t)
              (left-fringe . 2)
              (right-fringe . 2)
              (foreground-color . "#26cc00")
              (background-color . "#000")
              (cursor-color . "#dd9900")

Writing Gemtext

Dumped olivetti-mode. Instead I'm using visual-fill-column mode like this:

(setq visual-fill-column-width 72
      visual-fill-column-center-text t)

(defun mc-line-compose ()
    "Edit but use visual wrapping, not auto-fill."
  (interactive)
  (auto-fill-mode -1)
  (visual-fill-column-mode)
  (visual-line-mode))

(add-hook 'gemini-mode-hook #'mc-line-compose)

;; Ignore M-q when in visual-line-mode
(define-key visual-line-mode-map [remap fill-paragraph] 'ignore)

Pretty sweet.

Org Present

Talking about sweet, Org Present is a minimalist presentation mode for Org Mode. It's really neat, especially with a graphical Emacs. I did some initial presentations. It's so easy to whip something together and, better yet, you never leave Emacs! It's right there if you want to show some code or do something in an eshell.

I run it with the the cursor turned on and the presentation still in read/write. I want to see where the cursor is if I want to collapse some heading or something. And I want to be able to add stuff immediately while still in presentation mode.

https://github.com/rlister/org-present

Upcoming conferences

It seems I will be at DFRI, ISOC-SE, and SNUS combined winter conference on February 14 in Stockholm. I'll be giving a short presentation, probably with Org Present!

I'll do it again in Stockholm at the Netnod Tech Meeting on March 14.

Gone skiing

I'll be off with #1 next week skiing in the Swedish mountains. Leaving on Friday with a stop at my mom's over the weekend.

mc,

Prickle-Prickle, the 24 day of Chaos in the YOLD 3189

mc

mc's gemlog