[HOW TO] Proxmox VE networking in virtualbox on linux

https://programming.dev/post/33997573

Educate children, don't just for abstinence from technology

https://programming.dev/post/33384245

Educate children, don't just for abstinence from technology - programming.dev

To preface this, no I do not have kids nor am I a child educator. The involvement I have with children is having been one. TL; DR educate yourself, educate your kids, ease into stuff, explain why — So, what’s this about? Well, I’ve seen it in my private circles, online, and quite recently by multiple governments proposals that children shouldn’t access social media, have smartphones, or in some cases even no access to technology. It’s a stance I find is borne in fear, uncertainty, doubt, and often ignorance. Now, I cannot claim to be much more educated on the subject than everybody else, but just like everybody has an asshole, I have opinion. Abstinence is not often a solution to a problem. Sure, you could get pedantic and say abstaining from deadly things like alcohol, drugs and stupid actions, but to that I respond: it’s all about the dose. Nigh everything has a lethal dose, even water. Anyway, abstinence from sex is the most common example of abstinence I know of, and it is not known to help. In fact, places that preach and teach abstinence only are more likely to have teenage pregnancies, youth and adults alike who know little to nothing about their bodies, safe sex, consent, and so on. A lack of education and experience is not a solution I can feel comfortable with. Don’t misconstrue my distaste for abstinence as a call for complete freedom. As with many things, everything in moderation (even moderation). What am I actually proposing then? Education, my fellow humans. Educated actions. Children aren’t stupid, they are just vessels that have just started being filled with knowledge, understanding and experience. Teach them about the things they are using or will use. Help them understand the advantages and disadvantages of things. Help them make informed decisions and provide guardrails based upon existing knowledge. A specific example, too much screentime has been shown to impact mental and oral development in children. They get less time practicing how to flap their lips, discovering their physical limits, training their bodies and aiding physical development, and many other things. (Adults are of course not immune) However, this world runs on screens and the things displaying things on them. Being unable to operate these devices leaves people behind technologically and reduces independence. Some people never get comfortable with electronic devices. Some because they lack the experience, some out of resistance, some are just afraid of looking dumb, and there are of course many other reasons. The solution isn’t to ban screentime entirely, but to introduce it slowly, provide alternatives, and explain why. But not just “I don’t like it” or “you’re too young”. I hated those as a kid and probably you did too. I understand that not all parents are educated enough to make informed decisions and that is a much bigger topic than for this brain dump. However just because it isn’t that way, doesn’t mean we should give up and not try to improve it.

I miss Django (and its ORM + documentation)

https://programming.dev/post/26733592

I miss Django (and its ORM + documentation) - programming.dev

It’s been a while since picking up rust, but until now, most of what I’ve written has been CLI tools, proc macro libs, and async networking stuff. Web/application servers have been kept at arm’s length while waiting for something to come around like Django. For those not in the know, Django is a web framework written in Python. It’s opinionated, extensive, has many features, and has stellar documentation. It’s old too and had major problems taking advantage of (back them) python’s new async capabilities as well as “new” technologies like WebSockets. Popular frameworks popped up in the meantime like Flask and FastAPI that do use new technologies and python language features like type hints, however nothing has really come to be quite like Django. # Django’s ORM As usual, there are camps when it comes to this, but I’m in the “keep SQL away from me” or “one language for all” camp. Django’s ORM does a mighty fine job of doing so. It’s possible to write a django application without ever seeing a line of SQL. It helps me immensely to just think about models, application logic, and presentation. Django allows defining your models in python, generating and handling database migrations, making complex queries of 1-1, 1-n, m-n relations without an SQL syntax, storing objects, locking rows, optimising queries (again without knowing SQL), and much more. ## Queries My favorite, powerful query simplifications are QuerySet.select_related() and QuerySet.prefetch_related(). An example of Queryset.select_related [https://docs.djangoproject.com/en/5.1/ref/models/querysets/#select-related]: This is useful for a tree of 1-n objects. An example from the documentation: a Book has an author (foreignkey) which is a Person (1-n), with a hometown (foreignkey) that is a City (1-n). An author can have written many books (n-1), a city can have many people (1-n). Say you wanted to find 10 books from an author that lives in “Marrakesh” with the associated objects (Book, Person, City). In Django that’s py # Hits the database with joins to the author and hometown tables. books = Book.objects .filter(author_hometown__name="Marrakesh") .select_related("author__hometown")[:10] book = book[0] person = book.author # Doesn't hit the database. city = person.hometown # Doesn't hit the database. QuerySet.prefetch_related() does the same for m-n / many-to-many relationships and some other queries (see doc [https://docs.djangoproject.com/en/5.1/ref/models/querysets/#prefetch-related]). No messing around with SQL, just python. ## Migrations The ORM also takes care of generating and managing migrations for you. To me, that’s a major plus as it offloads the need for me to think about whether a specific type exists in the DB of choice. Most of the time django will handle it transparently. There are even django extensions / apps to optimise more SQL query generation like adding views, or choosing which index to use for a specific type or table, and so on. # Django’s documentation If I’m not mistaken, it follows the diátaxis [https://diataxis.fr/] method of documentation diataxis [https://diataxis.fr/_images/diataxis.png] which fits the project very well and allows getting started with django very easily as well as finding good, low-level, in-depth information quickly. Many projects have documentation but it’s everywhere and nowhere in terms of location (where to find specific things) and depth (high-level vs low-level), making it less optimal for beginners and experts alike. If you want to step up your documentation game, do give diátaxis a shot. # What prompted this I’m currently 3 days into exploring the rust web framework ecosystem and banging my head against it. It’s very commendable what people have written in their free time and shared with the world, so I will not disparage any projects here. It would just be really cool if a django-like, batteries-included project started or reached production quality sometime. The closest candidate I found is Cot [https://cot.rs/]. Cot started in June 2024 and is a long way from django’s level but has already grown to something quite impressive. If time allowed it and the project weren’t on GitHub, and had a matrix chatroom, it would surely get contributions from me. Here’s the announcement on the main dev’s blog [https://mackow.ski/blog/cot-the-rust-web-framework-for-lazy-developers/], which reflects some of my frustrations with the current web framework ecosystem in Rust. Until Cot is ready, I’ll probably be using axum [https://github.com/tokio-rs/axum] for application server, diesel [https://diesel.rs] for the DB-glue, and possibly leptos [https://github.com/leptos-rs/leptos], yew [https://crates.io/crates/yew], or just plain Rinja [https://rinja.readthedocs.io/]. Unless of course somebody knows of a django-like web framework in rust that isn’t on awesome-rust [https://github.com/rust-unofficial/awesome-rust]… Anti Commercial-AI license [https://creativecommons.org/licenses/by-nc-sa/4.0/]

Getting Started

VTube Studio API Development Page. Contribute to DenchiSoft/VTubeStudio development by creating an account on GitHub.

GitHub

How do you stand out on camera, whether you're presenting a webinar, or taking part in a crucial job interview? 😎

Make sure you register for our next webinar on Thursday at 1pm CET, it's completely FREE! 🤩

https://www.facebook.com/events/927490672499118

#OnlinePresence #OnlinePersona #RemoteWork