The next time you find an if-else in your code where both the "if" and the "else" return from the function that you're in, you could think of that "else" as unnecessary.
Can anyone recommend some good programming blogs (in the realm of lisps, emacs, guix, technical deep dives) that offer RSS feeds? I've already got https://wingolog.org/ from @wingo which is pretty much the exact genre of blog I'm looking for. https://ianthehenry.com/posts/ from @ianthehenry is also a good one (although the RSS feed doesn't seem to work with GFeeds :).
I just think it would be cute to have a selection of RSS feeds to browse through :)
@screwtape My "blog" site is automatically generated off my public Mastodon feed. All users of our instance can simply put a URL in their profile ([username].emacs.ch) and it automatically sets up the site incl. SSL certificate. We call it "Autoblog". Aren't I a genious? 😉
Any Qt + Python devs out there with any experience on calling deleteLater() from the Python side?
I have some costly dialogs I want cleared on close, and so far I've been running deleteLater() in the closeEvent, which is clearly a little risky. I do get the very rare segfault especially if I close one particular dialog which has a QTimer singleShot call. If the deleteLater() is called when it is running, I get a RunTImeError.
Another update on "memory leaking" when combining Qt and Python. It seems using lambda functions as slots for signals on dialogs block the widgets from being deleted by Qt.
I just rewrote the code and added dedicated slots for the four buttons sharing the same slot via lambdas, so no big deal, but maybe just disconnecting the signals on close would have been enough.
📊 Enhance Your Excel Skills with R! 📊 I wrote an R function using RDCOMClient to count sheets in an Excel workbook.
This tool automates Excel tasks, boosting productivity. Learn more techniques like this in my new book co-authored with David Kun: "Extending Excel with Python and R." Discover practical tips to enhance your data analysis skills. Get your copy here: https://packt.link/oTyZJ
Easily retrieve and analyze CMS metadata with customizable searches using .title, .keyword, and .modified_date. Choose data versions ("current", "archive", "all") and filter by media type ("all", "csv", "API", "other"). It returns a tidy tibble with essential metadata.
Moving our games programming videos - currently Runtime Compiled C++ - to the new dedicated enkisoftware Youtube channel. Consider giving it a subscribe https://www.youtube.com/@enkisoftware
Rapid Development with Runtime Compiled C++ Talk & transcript:
This is a decent introduction to the RCC+ tech I developed with Matthew Jack, and have continued to develop and use in Avoyd. It's an old talk (Develop conf 2012) but still relevant.
Many thanks to @juulcat for videoing the talk and writing up the transcript.
Ok, this is an extremely niche question, but I'm trying to work with a list of files in a Windows batch script, and one of the files contains two single quotes in the name, so the batch script is interpreting that as a command. Does anyone know of any way I can escape those single quotes programmatically? I can't simply add slashes to them because I don't have access to the filename. Should I pipe them to a text file and then munge the text file? I'm happy to give more information if necessary; this isn't a secret or anything. #Windows#BatchFile#programming#FediHelp#BoostsWelcome
P.S. If your suggestion is not to use a batch script to do this, believe me, I've considered it, but at the moment batch is what I've got. I'm not going to install an entirely new shell to do this fairly simple task and I don't like PowerShell enough to go to the trouble of scripting in that. If I were to write a non-shell program, I would probably write it in Python as that seems like the most reasonable option, but I remain convinced that there's a way to do this in a batch script.
@intransitivelie does wearing the filename in double quotes on use work? It's been a while since a I've done DOS/Windows batch, but something like "%var%" instead of %var% when using the loop variable?
Ich mag eine #Website machen, möglichst reines #HTML 4, möglichst ohne #Javascript. CSS 3 wenns sein muss, sonst eher 2.
Die Website soll möglichst auf Chrome genauso laufen wie auf Netscape (die Älteren werden sich erinnern...) und auch in Text-Browsern wie Lynx oder w3m.
tl;dr: Die Seite soll auch noch funktionieren, wenn javascript und css ausfallen.
Wie würde ich da denn "Tabs" machen? Oder was wären Alternativen zu tabs?