@mykhaylo@fosstodon.org avatar

mykhaylo

@mykhaylo@fosstodon.org

Reader and sometimes writer. Ukrainian. Also a programmer, among other things.

Long form: https://keepthinking.blog

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

mousebot, to emacs
@mousebot@todon.nl avatar

imagine if all the org functions that involve moving point around to do stuff programmatically had a common name prefix, e.g. org-nav- or org-move-. (as it is i have no idea how to discover what they are, which functions even exist...)

mykhaylo,
@mykhaylo@fosstodon.org avatar

@mousebot install vertico + ordeless

vjprema, to random
@vjprema@fosstodon.org avatar

After blocking most annoying things on the web already, one of the main design anti-features that still annoys me is those login screens that default to entering an email address, and then it emails you sign in link to log in 🤦‍♂️.

Jeezus. Most sane people will be using a password manager these days with a hot key or autofill set up, and such a design just gets in the way of that secure instant login convenience.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@vjprema it’s actually much more secure than passwords for people who don’t use password managers, which is almost everybody.

al3x, to emacs
@al3x@hachyderm.io avatar

Question for #Emacs users & experts:

I have tried to use replace-regexp to replace ) at the end of
a set of lines with B).

For the matcher I entered: )$.
For the replacement I entered B)

And it did not work. Why?

(I tried the second time entering B) as a replacement and it worked though)

mykhaylo,
@mykhaylo@fosstodon.org avatar
GossiTheDog, to random
@GossiTheDog@cyberplace.social avatar

Google search thinks you should use glue to stick together a pizza as its AI is trained on Reddit, where 11 years ago a user called “fucksmith” posted suggesting it was a good idea.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@GossiTheDog we didn’t troll on reddit all those years for nothing.

samwho, to random
@samwho@hachyderm.io avatar
mykhaylo,
@mykhaylo@fosstodon.org avatar

@samwho this is very well made!

ezpy, to random
@ezpy@fosstodon.org avatar

git blame should be renamed to something that sounds less accusatory maybe?

mykhaylo,
@mykhaylo@fosstodon.org avatar

@ezpy git achievement

olav, to random
@olav@emacs.ch avatar

if only

mykhaylo,
@mykhaylo@fosstodon.org avatar

@olav sure. Clojure.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@holgerschurig @olav i like the ? In predicate functions, like odd? :)

brejoc, to random
@brejoc@fosstodon.org avatar

It's nice that Scarlett Johansson can hire a legal team for that. Meanwhile the rest of us just has to live with all of the things they've created being used to train those AIs without seeing a cent.

https://fosstodon.org/@osnews@mstdn.social/112479678873043170

mykhaylo,
@mykhaylo@fosstodon.org avatar

@brejoc so she’s creating precedent for all of us?

extenebris, to emacs

Trying out Gnus is a humbling experience that also provides a perspective on why people might not want to deal with Emacs, preferring alternative editors: it is not immediately obvious that overcoming a steep learning curve would bring benefits compared to an easier solution (like using a different news client). I just want to read my RSS feed, presented in a concise, elegant fashion, I don't want to battle with an UI that might've made sense back in the modem era

mykhaylo,
@mykhaylo@fosstodon.org avatar

@extenebris elfeed is zero effort

digitalstefan, to random
@digitalstefan@fosstodon.org avatar

Now that my unRAID server has 64GB, I could set up a couple of VMs.

Already got an Ubuntu desktop VM purely so I can run an instance of the server for my accounting software, but that's hardly exciting.

What to do

mykhaylo,
@mykhaylo@fosstodon.org avatar
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?

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape you can add commands to add/remove/move up/move down

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape there’s a very advanced interface here: https://kubernetes-el.github.io/kubernetes-el/

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape in terms of reordering, always think about searching/filtering first. It’s more natural in Emacs.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape also check out prior work to be within the same paradigms: https://www.emacswiki.org/emacs/DiredSorting

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape I understood that. But order is not that important when you have search+filter. Anyway, you just need to implement commands and let user run them easily.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape ah, ok. If you want this to be totally zero-elisp, you can use the customize interface and set some columns variable there.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape you can also make a myapp-reorder-columns command, which opens a separate interface for that.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape or select a column, and there have moved-right, move-left and hide-column commands.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @screwtape that’s easy, just use completing-read

worldsendless, to emacs
@worldsendless@qoto.org avatar

One of the issues with the (and which is just a great big text-oriented repl) is that it is additive in nature; it usually takes major effort or a restart to REMOVE things once they've been added (thinking on plugins which modify app state).

mykhaylo,
@mykhaylo@fosstodon.org avatar

@worldsendless something like this will work: https://github.com/tonsky/clj-reload

nikitonsky, to random
@nikitonsky@mastodon.online avatar

New blogpost: Going to the cinema is a data visualization problem

https://tonsky.me/blog/allekinos/

mykhaylo,
@mykhaylo@fosstodon.org avatar

@nikitonsky that's exactly what heroku used to feel like

ctietze, to Notmuch
@ctietze@mastodon.social avatar

Any users on the frontend?

I sometimes notice that Emacs freezes up when I press a key like d to delete (adding the tag:trashing) for a couple of seconds. It's hard to track down, but I believe that I run into a conflict with a cron job updating the notmuch database, and Emacs waits for the notmuch tag change command to finish, which waits for the cron job to finish.

Does that sound likely? How do y'all debug and improve this?

mykhaylo,
@mykhaylo@fosstodon.org avatar

@ctietze M-x profiler-start RET, choose mem+cpu. Do the thing that freezes. Then M-x profiler-report RET

smiergahttu, to random
@smiergahttu@fosstodon.org avatar

Which is the best comprehensible way of representing land use in different models, knowing that the most optimistic (dark grey, "Bekels 2") is around 9% of the patch and least-optimistic (light gray, "Piggott") is ca. 40%?

I like the simplicity of the v.1 pie chart, but I don't know if the adding pieces is as obvious to the reader as to me. And I want to use this kind of representations throughout the thesis, so I want to choose good one.

version 2. a donut chart representing the same data as version 1 (with different pattern for not used land).
version 3. a donut chart representing the same data as version 1. the first model is multiplied to avoid the apparent differences between most- and least-optimistic models. light green area represents land not used.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@smiergahttu pie charts are never a good idea. Try bar chart instead.

kickingvegas, to emacs
@kickingvegas@sfba.social avatar

Okay here's another Transient I've made a while back, in this case for Avy. A bit esoteric, but this has enabled me to get a lot more out of Avy than just using avy-goto-word-1 or avy-goto-char-timer. Wondering out loud if I should publish this on MELPA.

Also yes, I've read Karthik's post on using Avy wrong. I readily admit I'm not sophisticated enough to put filter-select-act into practice.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @kickingvegas sure they are a great idea. I just don’t think they should be on MELPA, but admins will figure it out.

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