Programming
- Programming.dev instance: Sponsors needed
Hi all, I'm relatively new to this instance but reading through the instance docs I found: >Donations are currently made using snowe’s github sponsors page. If you get another place to donate that is not this it is fake and should be reported to us.
Going to the sponsor page we see the following goal: > @snowe2010's goal is to earn $200 per month > > pay for our 📫 SendGrid Account: $20 a month 💻 Vultr VPS for prod and beta sites: Prod is $115-130 a month, beta is $6-10 a month 👩🏼 Paying our admins and devops any amount ◀️ Upgrade tailscale membership: $6-? dollars a month (depends on number of users) Add in better server infrastructure including paid account for Pulsetic and Graphana. Add in better server backups, and be able to expand the team so that it's not so small.
Currently only 30% of the goal to break-even is being met. Please consider setting up a sponsorship, even if it just $1. Decentralized platforms are great but they still have real costs behind the scenes.
Note: I'm not affiliated with the admin team, just sharing something I noticed.
- "Finding your way around the Fediverse" recording
cross-posted from: https://programming.dev/post/22672085
> Earlier this year I gave this talk which is about how programmers can get the most of the Fediverse, particularly for dotnet/MAUI developers - some of the killer features which are available and how to use them. The focus of the examples are with dotnet/MAUI, but these things would undoubtedly also be available for other languages/ecosystems, I was just using dotnet/MAUI to illustrate the underlying functionality available to us here. This recording would be good for anyone who isn't familiar with these features (maybe anyone you want to convince to come here, or just if you feel you don't know everything that is available). > > The first part of the recording is a different talk about MAUI, and the first link below will be where my talk starts, and then some more links for other key points, if you just want to see the parts you don't already know about. > > Following these recording links will be links to resources that I talked about... > > 30:06 start/MAUI Lemmy community > > 31:31 overview of talk > > 33:20 what is the Fediverse? > > 38:15 Lemmy > > 42:08 Mastodon > > 43:40 Mastodon dotnet.social > > 46:33 Mastodon Local timeline > > 48:01 Mastodon Federated timeline > > 60:11 Mastodon Lists > > 56:28 Mastodon hashtags > > 56:25 Mastodon pinned posts > > 1:00:20 follow Twitter accounts from Mastodon > > 1:01:51 how to use Lemmy from Mastodon > > 1:07:25 Mastodon's killer feature for dev's - github bots > > 1:10:47 Guide to Mastodon for .NET and MAUI people > > 1:13:15 Pixelfed, UI comparison > > 1:15:41 Maho Pacheco's repo (federate static website, etc.) > > 1:17:52 Microsoft DevBlogs > > Links to resources from this talk > > Creating MAUI UI's in C# > > fediverse.party > > .NET MAUI @ programming.dev > > .NET MAUI Mastodon bot > > .NET Mastodon bot > > @SmartmanApps@dotnet.social > > Join dotnet.social > > Join dotnet.social and auto-follow @SmartmanApps@dotnet.social > > How to follow multiple hashtags in a column > > @Microsoft@bird.makeup > > Github bots by Carlos Sanchez of Microsoft... > > Dotnet github bot > > MAUI github bot > > MastodonGitHubBot repo > > Guide to Mastodon for dotNetMAUI and dotNet peeps > > Github repo of Maho Paheco of Microsoft > > Maho's guide to implement ActivityPub in a static site (or any website) > > Follow Maho's blog from Mastodon (or almost any Fediverse service!) > > Follow Microsoft DevBlogs (federated thanks to Maho) >
- How to develop a good websiteiamkate.com Free content on iamkate.com
My approach to copyright, my promise to protect the privacy of my visitors, and my commitment to transparency
- LazyVim for Ambitious Devs (aka: lazyvim, instead of vim → neovim → lazyvim)lazyvim-ambitious-devs.phillips.codes LazyVim for Ambitious Developers
A comprehensive tutorial on the LazyVim distribution for Neovim, ideal for developers who want to reach the next level of productivity.
edit: title
This book is efficient and answered questions the moment as I imagined asking, but to see its unique coolness -- we could do with some context on its literary genus.
Have you ever seen Kate Gregory's talk: Teach C++ not C?
> The idea is, C++ has different habits than C, even if C++ is a "99% superset of C". But beginners can understand C++ just fine without learning C first. It's more ergonomic to learn about
std::vector
before using raw arrays and pointers, as Gregory puts it.So, why do we teach
vim
beforeneovim
, or before a well-regarded distribution like LazyVim? Becausevim
is "purer", installed everywhere? Because we learned it that way? What if we taught LazyVim/Neovim before rawvim
, a la C++ before C? Modern features and ergonomics will keep a beginner listening -- surely you don't disagree.Anyway, this book is that efficient and direct path to LazyVim. It covers the things that StackOverflow won't be the most useful pedagogues for (e.g. "what are those tab things on top of my window? How do I use the explorer thingamajig on the left -- should I even care about it, anyway?"). Plus, it keeps LazyVim as a first-class learning target, providing its mnemonics and habits alongside the typical vim stuff you'd normally learn with vimtutor.
I like this kind of learning :) good for the on-the-fencers like me
- need advices
im 29 yo. recently lose my job, and thinking about use some of my saving money to school for programming, for the sake of not being homeless, but idk consider of my age, will it helps me in the future to survive if i have a degree on programming.
pardon my english
- Malicious code injection by compromised pull request branch namesgithub.com Discrepancy between what's in GitHub and what's been published to PyPI for v8.3.41 · Issue #18027 · ultralytics/ultralytics
Bug Code in the published wheel 8.3.41 is not what's in GitHub and appears to invoke mining. Users of ultralytics who install 8.3.41 will unknowingly execute an xmrig miner. Examining the file util...
- How to run current file in Kate?
I am fairly new to programming and for my cs class i need to run individual programs. they don't need to interact with anything else, so i am trying to just run the file I'm currently on but Kate just greys out the option. I really want to avoid using projects if i can because they're just extra effort for no reason when I only need to run a single file. I did try using one, but Kate doesn't have a new project button for some reason and i had some trouble with Cmake.
I'm aware that these are actually pretty basic things, but I can't find anything online that actually explains how to use Kate at all. I would try using something else, but every IDE seems to have this same issue where by default it can't run code and it has no documentation of any kind regarding actually running code, so i'll just stick with the one that came with my distro.
also as a bonus question, why does every IDE seem to require you to configure every single option before it can run code and why do they all seem to discourage doing anything less than making an entire app?
- ~ Code Crafters Cafe ~
\~ Code Crafters Cafe \~
We intend to save human intelligence, to preserve the ability to write code with our own hands and our own brains. Join us now on #codecrafters channel at libera.chat or discord: https://discord.gg/W7CMehj6dd
\~ A cozy place in the jungle of the techno world for all programmers who like to create high-quality and effective code from scratch with their own hands. Hobbyists, professionals, beginners, and just curious about how things really work. Handmade, free and open-source software written with a love for engineering and deep knowledge is code crafting. \~
- Programming with metal, or metal with programming?
YouTube Video
Click to view this content.
This is epic. Even though it's java!
- Why Learning to Code is So Damn Hardweb.archive.org Why Learning to Code is So Damn Hard | Thinkful
What every beginner absolutely needs to know about the journey ahead.
>The four phases of the typical journey into coding > >1. The Hand Holding Honeymoon is the joy-filled romp through highly polished resources teaching you things that seem tricky but are totally do-able with their intensive support. You will primarily learn basic syntax but feel great about your accomplishments. >2. The Cliff of Confusion is the painful realization that it's a lot harder when the hand-holding ends and it feels like you can't actually do anything on your own yet. Your primary challenges are constant debugging and not quite knowing how to ask the right questions as you fight your way towards any kind of momentum. >3. The Desert of Despair is the long and lonely journey through a pathless landscape where every new direction seems correct but you're frequently going in circles and you're starving for the resources to get you through it. Beware the "Mirages of Mania", like sirens of the desert, which will lead you astray. >4. The Upswing of Awesome is when you've finally found a path through the desert and pulled together an understanding of how to build applications. But your code is still siloed and brittle like a house of cards. You gain confidence because your sites appear to run, you've mastered a few useful patterns, and your friends think your interfaces are cool but you're terrified to look under the hood and you ultimately don't know how to get to "production ready" code. How do you bridge the gap to a real job?
Which phase are you in?
- When LLM gives you "{ }"
Today I found the weirdest bug in my life. I was making a chatbot for Signal using Ollama in Rust. I finished a basic demo and tried it. For any message I would get
{ }
,{}
,{}
or{ }
.Do you know how hard is to debug something like this???
What was the problem? Not my program. Ollama bug combined with ollama-rs bug (rust library for ollama). And both bugs are not even bugs if you don't combine them.
Ollama released a new feature yesterday called "Structured outputs". Basically you can specify a format of the output using
format
field in json request. Format field already existes for something but I don't know for what. In ollama-rs you can specify the format to json or leave it empty. By default its empty. Where is the bug?There is a difference betwen
"format": null
and not specifying the format at all. Ollama-rs will set format to null if you dont specify it. Ollama will interpret null as a valid format. What happens? LLM WILL ACTUALLY GIVE YOU FORMAT OF OUTPUT AS NULL -{ }
! - would you help me with this
I'm asking for your help to get me started. I work in backend, it's just that i've never tried to find "exploit" and "do crimes" before, i guess, so i'm just asking here in case you can "get me up to speed" sort of. I use linux and i am fairly competent in linux and programming. I know basic networking but i could learn more. I'm leaning more on the programming side than the network or sysadmin. Because i'm just starting, so far i have automated the creation of vms on linode and configuring the vms with bash scripts and ssh. And that's it. I've never been into vpns at home, but obviously im going to need a vpn because i dont want to leak my ip address, so im thinking about buying a vpn, looking into tor, or learning openvpn and rolling my own vpn.
please give me project ideas perhaps like a website with list of corrupt politicians from my country.
So... i'm asking for your help to get me started quicker if that make sense. i'm from cambodia btw
- Humble Tech Book Bundle: Hacking 2024 by No Starchwww.humblebundle.com Humble Tech Book Bundle: Hacking 2024 by No Starch
Level up your hacking and skills with this tech bundle from No Starch. Learn to protect yourself and others! Pay what you want & support charity!
- Minecraft Mod written in Rustgithub.com GitHub - cyb0124/greg-emitters: GregTech placeable emitters addon mod
GregTech placeable emitters addon mod. Contribute to cyb0124/greg-emitters development by creating an account on GitHub.
> This mod is written in an unconventional way: it is written in Rust. The Rust code is here. It uses JNI and JVMTI to interact with Java objects. The only Java code in this mod is for loading the compiled native binary into memory.
- Should I Create A Rust or C Wikibook?
Folks, I need a hobby. I'm a C programmer who has lost his passion for programming, it seems. I've decided to try to spark my passion again by going back to the basics, perhaps by creating a programming tutorial Wikibook, for modern applications.
The trouble is, I cannot decide if I should make C or Rust my programming language of choice.
I use C all the time, and have barely any experience in Rust.
Do I go with ol' reliable and risk being outdated in a few years, or go with the new language and risk being too niche and unpopular?
- I made a little tool to unzip archives in a sane waygithub.com GitHub - eeriemyxi/vert: Sane way to extract/view archived contents.
Sane way to extract/view archived contents. Contribute to eeriemyxi/vert development by creating an account on GitHub.
I like trying out new things quite frequently and often times these tools are packed in an archive file. But I'm in constant fear whenever I am to unpack those archives because sometimes there are hundreds of files and the person who packed them wouldn't even do the bare minimum of nesting them inside a directory.
Dolphin (file explorer) had a useful thing where it would detect whether the contents are already nested and if they are not only then it would nest them inside a directory. I tried searching for something similar for the CLI but couldn't find anything so here it is. Another benefit is that it supports
.zip
,.tar.xz
,.tar.gz
simultaneously so I don't need to deal with manpages ofunzip
,tar
thousand times just because I keep forgetting how to use them. Now it's justvert x file.zip
.I can add support for a few more formats but I don't feel the need at least for now (PRs welcome).
- Any data scientists out there? What's your go to programming language and tools for your work?
No surprise I use python, but I've recently started experimenting with polars instead of pandas. I've enjoyed it so far, but Im not sure if the benefits for my team's work will be enough to outweigh the cost of moving from our existing pandas/numpy code over to polars.
I've also started playing with grafana, as a quick dashboarding utility to make some basic visualizations on some live production databases.
- How could digitial age verification be possibly implemented with privacy in mind?
Many might've seen the Australian ban of social media for <16 y.o with no idea of how to implement it. There have been mentions of "double blind age verification", but I can't find any information on it.
Out of curiosity, how would you implement this with privacy in mind if you really had to?
- Why isn't libcurl doing anything?
I have tried googling, and found no solution to my problem. I'm trying to learn how to use libcurl, a c networking library. I tried compiling a program that was automatically generated from curl, and a few examples i found online but nothing happened. I got no errors or logs, the program stopped "sucessfully" but i get no output. I also cant write to the console either while the library is included.
Any help is appreciated.
- Mini Macro Pad v2 - Now you can edit your Macros in the GUI.github.com GitHub - ssebs/go-mmp: Macro Pad driver software, run shortcuts at the press of a button. Like an open source stream deck.
Macro Pad driver software, run shortcuts at the press of a button. Like an open source stream deck. - ssebs/go-mmp
I've been working really hard on implementing a GUI Config Editor for my Mini Macro Pad project.
Mini Macro Pad (go-mmp) is a tool for creating and running macros, shortcuts, and other automated actions at the press of a button.
It works with hardware like Arduino-based macro pads or directly through a desktop GUI, making it versatile for various workflows.
- A Brief, Incomplete, and Mostly Wrong History of Programming Languagesjames-iry.blogspot.com A Brief, Incomplete, and Mostly Wrong History of Programming Languages
1801 - Joseph Marie Jacquard uses punch cards to instruct a loom to weave "hello, world" into a tapestry. Redditers of the time are not imp...
- Deno v. Oracle: Canceling the JavaScript Trademarkdeno.com Deno v. Oracle: Canceling the JavaScript Trademark
Oracle is holding the JavaScript trademark hostage, and we’re pursuing legal means to #FreeJavaScript. Here’s a brief update.
> On November 22, 2024, Deno formally filed a petition with the USPTO to cancel Oracle’s trademark for “JavaScript.” This marks a pivotal step toward freeing “JavaScript” from legal entanglements and recognizing it as a shared public good.
> Oracle has until January 4, 2025, to respond. If they fail to act, the case will go into default, and the trademark will likely be canceled.
- How to start an open source gaming project?
cross-posted from: https://lemmy.ml/post/22924305
> Pretty straightforward: what tips and advice would you give me if I were to start an open source project of a game? Where to share my intention of beginning this project, where to find contributors, how to organize the workflow etc.
- Writing Composable SQL using Knex and Pipelineslackofimagination.org Writing Composable SQL using Knex and Pipelines
Despite all its strengths, SQL can be awkward to integrate with host languages such as JavaScript and Python. There’s often an impedance mismatch between SQL’s declarative nature and the host language’s object-oriented or functional paradigms – SQL queries are typically written as strings within the...
- Re-thinking the Visitor Pattern with the Double-Dispatch Approachexceptionnotfound.net Re-thinking the Visitor Pattern with the Double-Dispatch Approach
This article will help you have another point of view with the Visitor Pattern by thinking it with the Double-Dispatch Approach. This article will also show you a practical use case of how this pattern is applied in .NET.
- Google's AI-Powered OSS-Fuzz Tool Finds 26 Vulnerabilities in Open-Source Projectsthehackernews.com Google's AI-Powered OSS-Fuzz Tool Finds 26 Vulnerabilities in Open-Source Projects
Google’s AI tool OSS-Fuzz uncovers 26 vulnerabilities, including a decades-old OpenSSL flaw, boosting open-source security.
- Humble Tech Book Bundle: Math for Programmers 2024 by Manningwww.humblebundle.com Humble Tech Book Bundle: Math for Programmers 2024 by Manning
Strengthen your math skills in programming with this library of coding and programming courses. Pay what you want and support the charity of your choice.
- You’re not as loosely coupled as you think!codeopinion.com You're not as loosely coupled as you think!
When you hear tight coupling or being loosely coupled, what does that even mean? There are many aspects to coupling to consider.
- A Shiny New Programming Language - Hackster.iowww.hackster.io A Shiny New Programming Language - Hackster.io
Mirror is an entirely new concept in programming — just supply function signatures and some input-output examples, and AI does the rest.
> Mirror is an entirely new concept in programming — just supply function signatures and some input-output examples, and AI does the rest.
- How Did REST Come To Mean The Opposite of REST? | htmxhtmx.org </> htmx ~ How Did REST Come To Mean The Opposite of REST?
htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext htmx is small (~14k min.gz’d), dependency-free, extendable, IE11 compatible & has reduced code...
- On "Safe" C++
> > > The discussion of “safe” C++ has been an extremely hot topic for over a year now within the C++ committee and the surrounding community at large. This was mostly brought about as a result of article, after article, after article coming out from various consumer advocacy groups, corporations, and governments showing time and again that C++ and its lack of memory safety is causing an absolute fuckload of problems for people. > > > > And unfortunately, this means that WG21, the C++ committee, has to take action because people are demanding it. Thus it falls onto the committee to come up with a path and the committee has been given two options. Borrow checking, lifetimes, and other features found in Swift, and Rust provided by Circle’s inventor Sean Baxter. Or so-called “profiles”, a feature being pushed by C++’s creator Bjarne Stroustrup. > > > > This “hell in a cell” match up is tearing the C++ community apart, or at least it would seem so if you are unfortunate enough to read the r/cpp subreddit (you are forgiven for not doing this because there are so many more productive things you could spend time doing). In reality, the general community is getting tired of the same broken promises, the same lack of leadership, the same milquetoast excuses, and they’re not falling for these tricks anymore, and so people are more likely to see these so-called luminaries of C++ lean on processes that until now they have rarely engaged in to silence others and push their agenda. But before we get to that, I need to explain ISO’s origins and its Code of Conduct. > >
- FLTK 1.4 Released With Wayland & HiDPI Display Support on Phoronix (19 Nov 2024)
cross-posted from: https://beehaw.org/post/17155901
> I started to learn how to use FLTK in Rust this year, so its fair to assume this update is specifically made for me; its so obvious. FLTK is basically a suckless toolkit for GUIs, with the goal of being small, light and standalone without being complicated. It is very small and can be compiled into the app without runtime requirements. It has most common functionality you would expect from a toolkit and should work cross platform. > > Happy to see this update! Need to experiment and learn more about it soon for my first FLTK app.