Programming

17730 readers
208 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
1
 
 

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.

2
 
 

A 10 minute read covering some YAML edge-cases that you should have in mind when writing complex YAML files

3
 
 

I have some background in Python and Bash (this is entirely self-taught and i think the easiest language from all). I know that C# is much different, propably this is why it is hard. I've been learning it for more than 4 months now, and the most impressive thing i can do with some luck is to write a console application that reads 2 values from the terminal, adds them together and prints out the result. Yes, seriously. The main problem is that there are not much usable resources to learn C#. For bash, there is Linux, a shit ton of distros, even BSD, MacOS and Solaris uses it. For python, there are games and qtile window manager. For C, there is dwm. I don't know anything like these for C#, except Codingame, but that just goes straight to the deep waters and i have no idea what to do. Is my whole approach wrong? How am i supposed to learn C#? I'm seriously not the sharpest tool in the shed, but i have a pretty good understanding of hardware, networking, security, privacy. Programming is beyond me however, except for small basic scripts

4
8
submitted 3 hours ago* (last edited 3 hours ago) by [email protected] to c/programming
 
 

This is what it looks like in my head.

https://github.com/albert-tomanek/timevisu/

5
 
 

This (old) post details how to interfere with randomness to make it feel more random to the end user.

This reminded me of how many games β€œcheat” in a similar way to make critical hits seem more fair (increase the probability when it has not triggered for too long and decrease it when it just triggered)

6
7
45
submitted 1 day ago* (last edited 1 day ago) by xoron to c/programming
 
 

id like to ask if there is some guideline/advice for asking for open source contributions.

initially i thought i could just have open source code, documentation and communicate about it, but that doesnt seem to work for gaining contributors.

maybe there is something else im overlooking?

contributors would be using their own valuable time and effort so it could just be that my projects are not interesting enough. it might be worth concluding that i should proceed on this solo.

8
 
 

cross-posted from: https://lemmy.ml/post/24400832

This is a simple example of the level of Java inter-op bjForth currently provides.

9
10
 
 

Hey!

I'm currently hitting the limits with Postman's free tier and need your recommendations for alternatives. My company isn't planning to upgrade to the paid version, so I'm specifically looking for:

Must-have features:

  • Unlimited API requests
  • Collection runner or similar batch testing capability
  • Data import from spreadsheets for test automation
  • The collection runner feature is crucial for my workflow: I heavily rely on being able to import Excel data to generate and map multiple API calls without manual setup.

Has anyone switched from Postman to something else that offers these capabilities? What's your experience been like?

Thanks in advance for any suggestions! πŸ™

11
12
13
208
submitted 1 week ago* (last edited 5 days ago) by [email protected] to c/programming
 
 

Many of my friends use calorie trackers like Lose it! or MyFitnessPal. And I've heard many complaints about them locking basic functionality behind a subscription. The straw that broke the camel's back was not allowing barcode scanning without a sub. I've been looking for a meaty, pun intended, side project to pick up and decided to try to do some good while saving some people money!

  • Built using Tauri in order to use Angular for the GUI and get mobile platform support.

  • Data is stored on-device using SQLite.

  • Initially I'm only targeting Android, I'd love to target iOS too but I don't own any Apple devices to dev+test on.

  • I'd say it's a "late alpha" as of right now. It has most but not all functionality, but has only been tested by me so there are likely small bugs that need to be found.

  • My wife really likes manatees, hence the name.

  • I've commissioned an artist for a logo so that should be coming by February.

Would love to hear people's thoughts! Currently you'd have to build the app yourself, though I do have an item on my to-do list to generate signed APKs via a github action. Mostly I'm just looking to start spreading the word now and hopefully get some good feature requests or bug reports. If you've read this far, thanks for your time!

Edit: I figured out how to generate signed APKs via GitHub so I have a v0.2.0 Pre-Release up. It's already led me to finding out there are some bugs on Samsung phones that don't happen on my Pixel so please submit any issues you encounter! Thank you!

14
 
 

I'm thrilled to announce the release of bjForth v0.0.3 πŸŽ‰

There's been a a heap of improvements and additions compared to the last release.

What's best is that they are automatically tested every time a change is pushed 😎

I dare you to Grab the latest tarball and hack yourself some serious Forth πŸ˜„

15
16
 
 

One of two Azure CDN providers was Edgio, which filed for bankruptcy.

azureedge.net dotnet CDN URLs will cease to work sometime next year after January 15th.


We expect that most users will not be directly affected, however, it is critical that you validate if you are affected and to watch for downtime or other kinds of breakage.

We maintain multiple Content Delivery Network (CDN) instances for delivering .NET builds. Some end in azureedge.net. These domains are hosted by edg.io, which will soon cease operations due to bankruptcy. We are required to migrate to a new CDN and will be using new domains going forward.

Affected domains:

  • dotnetcli.azureedge.net
  • dotnetbuilds.azureedge.net

Unaffected domains:

  • dotnet.microsoft.com
  • download.visualstudio.microsoft.com
17
 
 

Sometimes I create a solution to a simple problem. However instead of making use of the solution, I keep extending it unnecessarily. This is why for this kind of project, I want to systematically restrain my future self from adding new features beyond the initial vision e.g. by actively refusing generic and re-usable code.

What is the search engine friendly term for this approach or at least for this situation? "Ad-hoc programming" may be literally what I'm talking about, but in practice it's associated with unplanned happenings.

18
 
 

I'm making this thing called BDServer for my website blenderdumbass . org and I am coding some analytics tools for it right now, because apparently I found a new way to procrastinate.

I made some of the calls accessible to the public:

https://blenderdumbass.org/json/analytics/ua?days=10&skip_me=True&human_only=True

https://blenderdumbass.org/json/analytics/rss?days=10

https://blenderdumbass.org/json/analytics/totals

And also made a UI version: https://blenderdumbass.org/analytics

Am I going crazy?

19
 
 

After needing to find a small delimiter for my data format I started wondering if I could use 0x1E-0x1F?

They are part of the control codes so I thought they might do something weird?

https://en.wikipedia.org/wiki/C0_and_C1_control_codes#Field_separators

20
32
Functional Webcomponents (positive-intentions.com)
submitted 1 week ago* (last edited 1 week ago) by xoron to c/programming
 
 

I'm creating a JavaScript UI framework for my own projects. It's a learning journey and I'd like to share my progress.

I've written some blog posts about my progress so far:

  1. Functional Web Components - https://positive-intentions.com/blog/dim-functional-webcomponents
  2. Functional Todo App - https://positive-intentions.com/blog/dim-todo-list
  3. Async State Management - https://positive-intentions.com/blog/async-state-management
  4. Bottom-up Browser Storage - https://positive-intentions.com/blog/bottom-up-storage

Note: The UI framework is far from finished. I want to share progress to see if there are any outstanding issues I'm overlooking.

21
22
23
24
 
 

I created a solution...with a pi 4 but it just doesn't seem to work very well. OCR is very finicky and while I was able to get pytesseract to pull the images off of a webcam, the numbers that get returned are very wrong. It looks like they only allow businesses to pull the powermeter data if I am reading this right: https://www.pge.com/en/save-energy-and-money/energy-saving-programs/smartmeter.html

My rate has increased 6 times this year, so power is very expensive here: 50c per KWH...on the lowest consumption rate. I need to figure out how to cut back or get solar panels. But I want to see in near real time how much energy we are using.

25
 
 

cross-posted from: https://beehaw.org/post/17683690

Archived version

Download study (pdf)

GitHub, the de-facto platform for open-source software development, provides a set of social-media-like features to signal high-quality repositories. Among them, the star count is the most widely used popularity signal, but it is also at risk of being artificially inflated (i.e., faked), decreasing its value as a decision-making signal and posing a security risk to all GitHub users.

A recent paper by Cornell University published on Arxiv, the researchers present a systematic, global, and longitudinal measurement study of fake stars in GitHub: StarScout, a scalable tool able to detect anomalous starring behaviors (i.e., low activity and lockstep) across the entire GitHub metadata.

Analyzing the data collected using StarScout, they find that:

(1) fake-star-related activities have rapidly surged since 2024

(2) the user profile characteristics of fake stargazers are not distinct from average GitHub users, but many of them have highly abnormal activity patterns

(3) the majority of fake stars are used to promote short-lived malware repositories masquerading as pirating software, game cheats, or cryptocurrency bots

(4) some repositories may have acquired fake stars for growth hacking, but fake stars only have a promotion effect in the short term (i.e., less than two months) and become a burden in the long term.

The study has implications for platform moderators, open-source practitioners, and supply chain security researchers.

view more: next β€Ί