Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

map, to random
@map@xoxo.zone avatar

TIL: One of the biggest German rappers is selling vapes called "Steve Jobs". 🤯

ctietze,
@ctietze@mastodon.social avatar

@map they probably wanted to call it "Apple" but got sued ;)

ctietze,
@ctietze@mastodon.social avatar

@map ok that doesn't help :D

hajovonta, to emacs
@hajovonta@mastodon.online avatar

I'm trying to create an user interface where the user should be able to edit a list, including the adding, removing and ordering of items.

Unfortunately, with the ordering requirement, I'm a bit stuck - how is it usually solved in Emacs?

#emacs

ctietze,
@ctietze@mastodon.social avatar

@hajovonta So what do you have at the moment?

widget.el based UI?
https://www.gnu.org/software/emacs/manual/html_mono/widget.html

tabulated-list-mode (like the Package mode)?

The latter is compatible with 'ewoc' which seems to be backed by a doubly linked list, so changing the order of items should be simple-ish

simonbs, to random
@simonbs@mastodon.social avatar

I have a four-day work week, allowing me to focus on my side projects on Fridays. Boy, I love Fridays! 😄

ctietze,
@ctietze@mastodon.social avatar

@simonbs yeah freedom like this is the best for hackers, I think :)

ctietze, to random
@ctietze@mastodon.social avatar

What's new in PHP 8.4 https://stitcher.io/blog/new-in-php-84

"Property Hooks" is a new feature and it looks just like Swift's, or the stuff in C#

ctietze,
@ctietze@mastodon.social avatar

@helge What does that mean? @pilky

ctietze,
@ctietze@mastodon.social avatar

@pilky It is! Worked on a small thing for Zettelkasten.de in January and it's nothing like the stuff I've been using in 2003 :)

ctietze,
@ctietze@mastodon.social avatar

@helge I see! I haven't tried to ship any scripting language executable in a while (tried a decade ago with Ruby IIRC). So yeah, a quick glance shows that you can get embedded PHP server processes maybe, but not much else. A C library/runtime (PH7) is also a reimplementation for feature parity. That's kind of wild.

ctietze, to neovim
@ctietze@mastodon.social avatar

Recently picked up that an "IDE" is a largely uncustomized, out-of-the-box experience, and that (Neovimmers) call the result of their customizations a "PDE", a "Personal Development Environment" instead.

Made me wonder:

Is the notion that IDE's are what they are, mostly unchangable, a common one?

ctietze,
@ctietze@mastodon.social avatar

@Flyingmana Hm, I wonder if VSCode counts as an IDE, and not a very customizable app that by defaults starts as a mere text editor.

Opposed to the regular Visual Studio application, which comes equipped with debugger and all.

grumpygamer, to random
@grumpygamer@mastodon.gamedev.place avatar

Good morning...

ctietze,
@ctietze@mastodon.social avatar

@grumpygamer do I read "grandmama" correctly with French pronunciation?

ctietze,
@ctietze@mastodon.social avatar

@stevenodb @grumpygamer True. I can't imagine it with a Texan accent (which is the only American one I can imagine)

gernot, to SwiftUI German
@gernot@mas.to avatar

Checking and formatting phone numbers for app signup in . How hard can it be?

(Turns out: Hard. And I suspected that… Still sucks though.)

ctietze,
@ctietze@mastodon.social avatar

@gernot @uliwitness If the parser is good enough, sounds like a somewhat simple transformation using a view model (name used intentionally and properly this time), though?

ctietze,
@ctietze@mastodon.social avatar

@gernot @uliwitness Can you explain?

It looks to me like it can parse "round trip" values, i.e.
String→PhoneNumber→String→PhoneNumber

You can have it parse any String input,

get a structured PhoneNumber value,
(display this in the UI),

encode that into a String (with the .e164 strategy, the other one uses a dictionary),

then parse that again.

If the UI starts with empty fields, and the user pastes +1234567 into a text field, that should work to kick-start things?

ctietze,
@ctietze@mastodon.social avatar

@gernot @uliwitness Oh dear, didn't notice the immutability! That is awkward.

You can initialize from dictionary or JSON though:
https://github.com/marmelroy/PhoneNumberKit/blob/7678318c0c5b88051b9e26fd86b7af6484463339/PhoneNumberKit/PhoneNumber%2BCodable.swift

Since that's possible, the same invariant protections should be available in a public initializer IMHO. PR Should be trivial

ndw, to emacs
@ndw@mastodon.social avatar

For the first time in...a few decades at least. Maybe ever. Emacs is regularly and unceremoniously segfaulting on me. Pretty clearly something to do with tree sitter, which is a bit frustrating. ( 29.3 on MacOS from brew)

ctietze,
@ctietze@mastodon.social avatar

@ndw I run into immediate crashes when selecting text and tabbing to indent in tree-sitter-enabled modes since last week or the one before, too

cabel, to random
@cabel@panic.com avatar

A powerful new ride spotted in Portland

image/jpeg

ctietze,
@ctietze@mastodon.social avatar

@cabel That's a beaut

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • ethstaker
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • rosin
  • mdbf
  • kavyap
  • DreamBathrooms
  • provamag3
  • ngwrru68w68
  • Durango
  • modclub
  • cubers
  • khanakhh
  • Leos
  • tacticalgear
  • cisconetworking
  • vwfavf
  • tester
  • anitta
  • normalnudes
  • JUstTest
  • All magazines