@bmispelon Nice, didn't know git could grep! Besides 'grep' and 'git grep' I would throw the "silver searcher" aka ag into the mix for blazingly fast code search from the command line (or from within #emacs of course 😉).
I rediscovered #emacs abbreviations after watching this video by Protesilaos Stavrou. It shows how you can define abbrevs in code and even use interactive functions with them. It also gave me the idea to see, if having some personal abbrevs can be useful. Like having meemail, merepo, memastodon and so forth. So typing merepo will be replaced by https://github.com/e11bits while typing. https://protesilaos.com/codelog/2024-02-03-emacs-abbrev-mode/
@adamchainz Didn't know about harlequin and it's great to have a shortcut from #Django, when tinkering with it. Only thing was that the django-harlequin package does not have harlequin itself as a dependency? In the end harlequin seems not to be my thing. The 90s norton commander vibe and especially the key bindings. And installing harlequin pulls in 29 packages with ~400MB by itself (10 x django), among them numpy, pyarrow. In my case a bit much for the occasional SQL queries I do.
@adamchainz For my own use I just modified the django-harlequin package to not use harlequin, but 🥁 #emacs 😆 . It works quite well for sqlite with emacs sqlite-mode and should work for postgresql with pgmacs as well.
@webology Using #hugo the last couple of days I asked myself what the difference is between the assets and static folder? And I wasn't the first. So assets hosts files that can/must be processed and static contains files that are used as is. For #Django I think it is more obvious what the purpose of those two directories are by naming them static/src and static/public as suggested by @josh.
@mykhaylo I had #rust installed already, so this was ok. The #emacs integration with jet through the jet emacs packages looks great. But jet does not seem to support toml? I have to admit I have never heard of edn?
Any macOS users ever hit that bug where sometimes activating exposé (or whatever that's called these days) freezes your screen such that only the mouse pointer can move but you can't interact with anything?
@simon macbook hooked to an external monitor? Haven't been using a macbook for a long time now, but I faintly remember something like this:
No reboot, but still annoying:
Disconnect external monitor
Close MacBook and let it sleep
Open MacBook - now everything work again (monitor can be connected as well)
I tried the tiling window manager forge with #gnome . As much as I can see the value of having a twm, the forge keybindings seem alien to me coming from #emacs, where I use ACE window movement (and the great AVY). Like with ACE I just would like to press a hotkey and select a number for the window I want to focus. Not to move a focus hint cursor around with <Super> + hlkj. This would work for me in #emacs and #gnome. Some suggestions for another twm like that, which works with #gnome?
What's great about #linux? It has your back! Imagine your bread and butter notebook dies on you and the only thing that you can get a hold of here and now in that emergency situation is that 10 year old computer. Installation of a current(!) distro just works and after restoring the backup you're ready to go again. Not as fast as you're used too, but also not as bad as you think. And it keeps you afloat unitl a replacement arrives. Try that with some mac/win.
Today I was years old, when I found out that there is a bash script for tab-completion to django-admin and manage.py in the #Django repository. 🤦
I always wondered about that, but never really bothered to look anywhere for it. Now I added this to my #ansible scripts which setup my work environment, so I'll never forget.
The video shows a terminal on black background. The #Django manage.py command is typed in and the various completions after pressing the TAB key are shown.
My second tiny PR got merged into #Django . The previous/next month buttons on the calendar widget at the admin site had some sort of glitch when hovering over them. Yes, tiny steps. Tiny steps.
The calendar widget of the #Django admin site (in dark mode). When the mouse is moving over the previous or next month button a glitch can be seen, like some bad "scroll up" animation.
In the past I saw developers writing functions like func_a (just for illustration). Heavily nested and over a screen page long. They argued, that it had to be like that, because it would be better to have one and only one return statement at the end of the function. I'm in favor of something like func_b. It avoids nesting and exits as soon as the return value is known at the "cost" of multiple return statements. So "a", "b", "personal preference" or as always "it depends"? #python#programming
@SebastianM6L tbh I was mainly asking because the copy of #Django for Beginners that I had to learn #Django, used quite heavily the heroku free tier for deployment. Easy to use, free and the great feeling your app is running on the web. yeah! I guess I could buy a recent copy to see what's used in there now instead of heroku, but I thought I ask if there is a well known replacement. I myself use #dokku on a VM at a hoster for dabbling with apps and other stuff.
Until now I was a happy camper using #manjaro as my new workhorse. But this morning I tried to update the system and I got a lot of "Error: GPGME error: No data" and "invalid or corrupted database (PGP signature)" see https://dpaste.org/ahQWb.