pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev2026-03-11 01:39 am
Entry tags:

Question thread #149

It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
dreamatdrew: The iconic all-in-one Apple computer icon, frowning and crying. (Sad Mac)

It's dev related I swear....

[personal profile] dreamatdrew 2026-03-14 05:42 am (UTC)(link)
So, For Reasons(TM), I am once again gonna be a Mac user.
The issue: Since I have been mostly-off MacOS for *cough* years, I am very out-of-the-loop for good tools. And I know there are at least 3 MacOS people who've done dev here.
To that end: Any recommendations for apps for person-who-pokes-at-code?
Things I'm specifically thinkin of:
A suitable analogue to Notepad++ for plain-text-editing with syntax highlighting
Good terminal emulators (For both local and ssh/telent [yes I know telnet is ancient and insecure; I still have cases where I need to use it]) to replace putty
SFTP client to replace WinSCP.

And, to be honest, I'm open to hearing recs about anything I should look at. But the above is why I thought it to be tangentially related. (Mods, feel free to smite/screen if not-sufficiently-related-enough.)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: It's dev related I swear....

[staff profile] denise 2026-03-14 11:32 am (UTC)(link)
  • BBEdit is the best text editor in the universe, and the paid version also is a scp client that lets you edit on-server so you don't have to mess with transferring files

  • The built-in Terminal works for just about anything you'd use PuTTY for! At least I've never found a reason to need something additional.

dreamatdrew: An orange leopard gecko half hiding behind the leaf of a 'lucky bamboo' plant, looking directly at you. (Default)

Re: It's dev related I swear....

[personal profile] dreamatdrew 2026-03-16 02:02 am (UTC)(link)
BBedit is officially in the list. TY.
thothxv: A bird-man holding a staff. Behind him is a sword with a pentacle in the hilt. (Default)

Re: It's dev related I swear....

[personal profile] thothxv 2026-03-15 01:46 pm (UTC)(link)

I've always found sftp to work well enough for me, but if you want a graphical client I'm pretty sure Cyberduck is as good as it ever was.

I think ssh and telnet still come preinstalled on macs? The default terminal is fairly decent, but if you want something fancier there are options. Ghostty and kitty are what all the cool kids are using right now, but Wezterm and Alacritty are also quite solid. iTerm2 is also still around, but I don't think there's any compelling reason to use it over wezterm or really any of the others here.

dreamatdrew: An orange leopard gecko half hiding behind the leaf of a 'lucky bamboo' plant, looking directly at you. (Default)

Re: It's dev related I swear....

[personal profile] dreamatdrew 2026-03-16 02:04 am (UTC)(link)
How did I forget about Cyberduck?
incorrecthorse: a horse with blue hair and rainbow wings (Default)

journal style question

[personal profile] incorrecthorse 2026-03-19 09:45 pm (UTC)(link)
is it possible to make the "expand/collapse cut tags" buttons be text and not images? (in a way that'd replace the images with text in the html, i know i have the option of doing some very hacky custom css that hides the images and adds text through :before and :after)
etfb: (Default)

[personal profile] etfb 2026-03-29 01:37 pm (UTC)(link)
Had a sudden thought that I'd like to build something that creates a Facebook-style feed of my DW Reading page -- FB-style in the sense that it has a modern ease-of-use focus, not FB-style in the sense that it's a satanic pile of algorithmic shite -- but it would seem to be tricky to use the LJ API for that because there doesn't seem to be a single endpoint that gets the top N posts in the last M days, so I'd have to iterate across all friends and check their most recent post dates, which feels inefficient. Am I missing something?

[personal profile] adrenalinerush 2026-04-04 08:56 pm (UTC)(link)
https://dw-dev.dreamwidth.org/244094.html?thread=1900670#cmt1900670

Nearly a year later, circling back re: the above thread. My little corner of the web trucked along just fine for awhile, everything functioning as intended, until a system reboot a couple months ago ate a bunch of the comments and posts we've been playing around with.

Initially, I thought it was something to do with memcached and I've been poking at that, but I finally went elbows-deep into the database tables to cross-reference what's still there versus what's been eaten to actually be able to watch comments posting 'live' and I'm finding a bunch are being written into the database tables as "  " (no quotes LOL) rather than the actual text. There doesn't seem to be any rhyme or reason as to which ones are going into the database versus which ones are giving the blank text (varying lengths, emojis or not, etc) but a test reboot of the server confirmed that those comments encoded as  disappear from live view on the front end while hard-coded comments remain and I'm totally out of ideas for where I can start troubleshooting this.

Any ideas would be greatly appreciated. 😭
Edited 2026-04-04 20:57 (UTC)

[personal profile] adrenalinerush 2026-04-04 08:57 pm (UTC)(link)
Also - Thank you in advance! Hit post too soon and it won't let me actually edit, go figure.

[personal profile] adrenalinerush 2026-04-09 01:28 pm (UTC)(link)
Apparently putting it out there into the world is enough for the answer to pop up into my face. 😂 Just circling back in case anyone else runs into this issue with installation (and I don't recall seeing anything specifically about this in the install guidelines I used but I very well could have overlooked it and online documentation for MySQL seems to indicate this would not be an issue):

The problem was, in fact, with the database, specifically within the character_set and collation parameters and a mismatch with the character_set_system being utf8mb3 where everything else was utf8mb4/utf8mb4_0900_ai_ci.

Essentially what was happening is the utf8mb3 was causing the garbage/blank character spaces to actually write to the database in lieu of some posted comments/posts - I was able to track that down with watching the database table populate between comments to spot the pattern (it was specifically related to some emojis and iOS "special" characters like curly quotes). All seemed fine on the front end with Memcached masking the issue - they'd post correctly to Memcached but fail in the database, so with restarts - bye bye data.

Thank you again!