Programming/Development Leftovers
-
Build a Website in an Hour: Meetup in Review
In 60 minutes, you can start to build something for the web: a blog, a fan fiction page, a bookmarks page, a tool you would find useful. I hope to schedule another one of these events in the future, inviting more people to join us to build websites in an hour. I will blog when we schedule another "Build a Website in an Hour" meetup.
-
Madeline Peck: Creative Freedom Summit Super Hero Art Challenge
In 1989 Ray Oldenburg described a ‘third place’ as, “a place outside your home or work where you can relax and hang out.”
Libraries, parks, gyms, bookstores, and porches are all examples. In a post-Covid world not only have ‘third places’ slowly dwindled in number but it is increasingly hard to find places that don’t require spending a lot of money to enjoy. For those who have started working from home, their first and second places have merged into one with the home office. The internet is now its own third place. With it, we have the power to socialize, consume media, share knowledge casually, and document it formally.
This virtual third place seemed like the perfect place to host an event where like-minded individuals, passionate about Open Source and creating art could come together.
-
Systemd auto-restarts of units can hide problems from you
There are a surprisingly large number of things that you probably won't notice going away briefly. If you don't look into the situation, it might seem like a short connectivity blip, or even be hidden from you by programs automatically retrying connections or operations. Telling systemd to auto-restart these things will thus tend to hide their crashes from you, which may be surprising. Still, auto-restarting and hiding crashes is likely better than having the service be down until you can restart it by hand. We certainly would rather have intermittent, crash-interrupted monitoring of our machines than not have monitoring for (potentially) some time.
-
lld 17 ELF changes
This influence to the total link time is small. However, if I test the time proportion of the hash function in the total link time, I can see that the proportion has been reduced to nearly one third. On some workload and some machines this effect may be larger.
-
The replicate() function in R
As a programmer, you must have encountered situations where you need to repeat a task multiple times. Repetitive tasks are not only tedious but also prone to errors. What if I tell you there’s an elegant solution to this problem in R? Enter the replicate() function, your ultimate ally when it comes to replicating tasks effortlessly and efficiently.
-
Throw away your first draft of your code
The next time you start on a major project, I want you to write code for a couple of days and then delete it all. Just throw it away.
I'm serious.
And you should probably have some of your best engineers doing this throwaway work. It's going to save you time in the long run.
-
Unicode Explained
Paweł bbkr Pabian continued their series of blog posts explaining Unicode, this time using the Raku Programming Language for examples in 3 new posts: [...]
-
Exploring the Magic Methods in Python
The magic methods are often called “dunder methods”. The term “dunder” is short for “double underscore”, as these methods are identified by their names enclosed in double underscores (e.g., __init__). By using these methods’ capabilities, you can define how your Python objects should behave in various scenarios, such as string representation, arithmetic operations, etc.
In this tutorial, you’ll explore the fascinating world of magic methods in Python. You’ll discover how these magic methods fit into object-oriented programming (more on this in the next section). You’ll also learn about some common magic methods used widely in Python. You’ll also see how these methods help you achieve operator overloading in Python. By the end, you’ll grasp magic methods and have the tools to design powerful code in Python’s object-oriented world.
-
The rc shell and its excellent handling of whitespace
I’ve been working on a shell for Unix-like systems called rc, which draws heavily from the Plan 9 shell of the same name. When I saw Mark’s post about the perils of whitespace in POSIX shells (or derived shells, like bash), I thought it prudent to see if any of the problems he outlines are present in the shell I’m working on myself. Good news: they aren’t!
-
rss-mash
It’s also hopefully a pretty clear demo of how zshbrev turns command line arguments into function arguments, and function output into stdout in a pretty dwimmy way (it should work regardless of whether your function prints something or returns a value, like a tree or string).xs