1776
16

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.

1777
128

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.

1778
18
1779
20

When learning a new programming language, there’s only one place to start. Let’s take a look at a Hello World channel!

1780
43
1781
39
submitted 2 years ago* (last edited 2 years ago) by rutrum@lm.paradisus.day to c/programming@programming.dev

Try it yourself: https://codeburg.org/

The actual site is https://codeberg.org/

Edit: sorry I was making a baseless claim in the title. I dont have proof that Microsoft did it. Here's the whois for what information is actually known.

1782
95
Don't DRY Your Code Prematurely (testing.googleblog.com)
submitted 2 years ago* (last edited 2 years ago) by hono4kami@piefed.social to c/programming@programming.dev

DRY = Don't repeat yourself

1783
14
Zero Bugs (bugs.rocicorp.dev)
1784
124
1785
5

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

After nearly 2 years of work, I'm excited to release the first version of bjForth, featuring partial JONESFORTH compatibility and initial Java interop.

Grab it and start hacking: https://github.com/bahmanm/bjforth/releases/tag/v0.0.2

PS: bjForth is a Forth (indirect threaded) written entirely in Java and its execution model is influenced by that of JONESFORTH.

1786
20
Tailwind CSS v4.0 Beta (tailwindcss.com)

Lots of new features being added.

But the most interesting part is that they seem to want to change the configuration format from JS to using a CSS.

1787
9
1788
36
submitted 2 years ago* (last edited 2 years ago) by mox@lemmy.sdf.org to c/programming@programming.dev
1789
2

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

Hey all.

First off, bjForth is a Forth written from the ground up with modern Java and its execution model is largely influenced by that of JONESFORTH.

Currently I'm working on Java inter-op and would like to ask for your opinions/experience on semantics and syntax.

The relevant GitHub issue.

Thanks in advance.

1790
182
submitted 2 years ago* (last edited 2 years ago) by e8d79@discuss.tchncs.de to c/programming@programming.dev

It was merged after they where rightfully ridiculed by the community.

The awful response to the backlash by matwojo really takes the cake:

I've learned today that you are sensitive to ensuring human readability over any concerns in regard to AI consumption

1791
19

Hi all, I have been pretty frustrated with how I had to bring together bunch of different tools together, so I built a CLI tool that brings together data ingestion, data transformation using SQL and Python and data quality in a single tool called Bruin:

https://github.com/bruin-data/bruin

Bruin is written in Golang, and has quite a few features that makes it a daily driver:

it can ingest data from many different sources using ingestr it can run SQL & Python transformations with built-in materialization & Jinja templating it runs Python fully locally using the amazing uv, setting up isolated environments locally, mix and match Python versions even within the same pipeline it can run data quality checks against the data assets it has an open-source VS Code extension that can do things like syntax highlighting, lineage, and more. We had a small pool of beta testers for quite some time and I am really excited to launch Bruin CLI to the rest of the world and get feedback from you all. I know it is not often to build data tooling in Go but I believe we found ourselves in a nice spot in terms of features, speed, and stability.

Looking forward to hearing your feedback!

1792
52
1793
164
1794
110
1795
34

So basically I built a backend with some working endpoint and I built a React Frontend. I can run both things locally and I hosted the page on Cloudflare pages which is working. But now I’m wondering if that’s a good idea?

I have never done this before and I’m wondering if it’s secure enough to host the backend on some server and allow a CORS header to let the Frontend generate requests?

The alternative would be to host Frontend and backend on a VPS and then route my domain that I bought on Cloudflare there, but then I’m thinking that in case my Frontend is insecure somehow the whole instance would be compromised, no?

I hope this is the right platform to ask as I’m pretty new here.

1796
-26
submitted 2 years ago* (last edited 2 years ago) by LabPlot@floss.social to c/programming@programming.dev

SAME STATS, DIFFERENT IMPROVEMENTS

@programming

After 12 months of managing #bugs, #developers A, B, and C changed their approach.

Assuming a steady flow of bugs of the same kind, whose change is an improvement❓

Boosts appreciated! 🙂 :boost_love:

More generally, the problem is domain independent.

#OpenSource #FreeSoftware #FOSS #FLOSS #Software #Tech #Development #Engineering #Business #Improvement #Software #Programming #Python #InfoSec #Statistics #Linux

1797
56
1798
10
submitted 2 years ago* (last edited 2 years ago) by xoron@programming.dev to c/programming@programming.dev

i wanted to see if we can create asynchronous bottom-up state management, we have the basics to put together a state management system. State management solutions in apps typically have ways to persist data.

I wanted to explore if there are any benefits to define and manage state in webcomponents with a bottom-up approach. I wanted to see if it could give a greater flexibility in developing a UI and not having to worry about persisted storage management.

https://positive-intentions.com/blog/bottom-up-storage

1799
10
1800
132
Dear OAuth Providers (pilcrowonpaper.com)
view more: ‹ prev next ›

Programming

28322 readers
639 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 !webdev@programming.dev



founded 3 years ago
MODERATORS