treyhunner, to python
@treyhunner@mastodon.social avatar

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.

Read more 👉 https://trey.io/FlSco3

nilesh, to ai
@nilesh@fosstodon.org avatar

I have started porting Microsoft's multi-agent #AI framework Autogen to #elixir : https://github.com/nileshtrivedi/autogen

Have never built things in Elixir. Wish me luck! 😁
#programming

adanskana, to RSS
@adanskana@mastodon.social avatar

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,
@screwtape@mastodon.sdf.org avatar

@adanskana
I guess @louis https://louis.emacs.ch/ has an RSS feed too. Actually, most people I know have RSS feeds and write deeply about emacs.
@mattof @wingo @ianthehenry

louis,
@louis@emacs.ch avatar

@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? 😉

It is described here: https://faq.emacs.ch

@adanskana @mattof @wingo @ianthehenry

teodorsandu, to Funny
@teodorsandu@mastodon.online avatar
amici, to Funny
@amici@fribygda.no avatar

Been sitting on this golden forever

raganwald,
@raganwald@social.bau-ha.us avatar

@amici

Somehow, I don’t expect a handwritten thank-you note from @grmpyprogrammer for tagging him.

grmpyprogrammer,
@grmpyprogrammer@phpc.social avatar

@raganwald @amici PHP version is accurate. No notes.

davidbisset, to programming
@davidbisset@phpc.social avatar

When you add a small detail to a #code project because you a completist #developer.

#programming #memes

veronica, to python
@veronica@mastodon.online avatar

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.

#Python #Qt #PyQt #OpenSource #Programming #Code

veronica,
@veronica@mastodon.online avatar

@ogi Yes, I'm finding these issue thread very useful. Thanks for sharing!

There isn't much pyqt/sip code to look at, so it's a bit hard to figure it out.

veronica,
@veronica@mastodon.online avatar

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.

Still, so may little things to consider!

stevensanderson, to Excel
@stevensanderson@mstdn.social avatar

📊 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

#Excel #RProgramming #Python #DataScience #Automation #Programming #Coding

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

🚀 New in healthyR.data: get_cms_meta_data()!

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.

Post: https://www.spsanderson.com/steveondata/posts/2024-05-28/

#R

image/png

juulcat, to cpp
@juulcat@mastodon.gamedev.place avatar

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

dougbinks, (edited ) to random
@dougbinks@mastodon.gamedev.place avatar

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.

https://www.enkisoftware.com/devlogpost-20240528-1-Rapid-Development-with-Runtime-Compiled-C++-Talk

#Cpp #GameDev #Programming

jackwilliambell, to python
@jackwilliambell@rustedneuron.com avatar

> Dataclasses JSON provides a simple API for encoding and decoding dataclasses to and from JSON and lists/dicts. https://lidatong.github.io/dataclasses-json/

Includes some schema validation as well.

ETA: Schemas require Marshmallow.

> https://marshmallow.readthedocs.io/en/stable/api_reference.html#schema

And Marshmallow looks like what I was searching for in the first place…

> https://marshmallow.readthedocs.io/en/stable/index.html

vascorsd, to programming
@vascorsd@mastodon.social avatar
intransitivelie, to windows
@intransitivelie@beige.party avatar

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.

oblomov,
@oblomov@sociale.network avatar

@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?

NeussWave, to webdev German

Ich mag eine machen, möglichst reines 4, möglichst ohne . 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?

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