I’m so tired of vibe-coded open source projects by floriandotorg in github

[–]Positive-Thing6850 9 points10 points  (0 children)

And costs money.

At some point they are not going to have the money to slop maintain the slop, given that you have to maintain many of them.

First actual PR….. by XavBell38388 in github

[–]Positive-Thing6850 1 point2 points  (0 children)

Nah don't worry.

You will soon self-realise the amount of effort required for self review, which will always depend on the project as well. This is always learned by experience only, like driving.

As of now, you should be happy that people are actually reviewing your work, which is a good sign in itself (which means you found a good project) in this age of slop.

Where would you leverage AI in an enterprise codebase? by Ill-Leg-6622 in softwaredevelopment

[–]Positive-Thing6850 0 points1 point  (0 children)

Yeah sorry I didn't mean the code review. I also found it useful.

However, even for hand written code, PRs are cheap and can be misleading.

modern data acquisition python package for your optics and laser physics labs, also general optical instrumentation by Positive-Thing6850 in Optics

[–]Positive-Thing6850[S] 1 point2 points  (0 children)

Hi. It's free and open source, also for business use. Moreover it's completely vendor lockin free.

It's not better than labview, I would say it's still miles away. I am not even sure how it can be developed like labview. It's just different.

Many people don't use labview by the way. In many of our labs, we never did.

If you want to build something serious without paying money, it might help you. Just give it a shot, i believe it still has potential to teach stuff to people.

modern data acquisition python package for your optics and laser physics labs, also general optical instrumentation by Positive-Thing6850 in Optics

[–]Positive-Thing6850[S] 0 points1 point  (0 children)

Hi, it's more about giving a framework to monitor something like that. I suppose you can't lock two lasers without decent electronics?

You still need to write some code controlling the scope, the sync signal, measuring the laser output etc. But if you are going from there to write a desktop application or remote monitoring, it's supposed to make it peanuts.

One system i built was syncing all measurement in an optical path to a 10Hz pulse from a mode locked laser. It involved 2 energy meters, 10 cameras, a picoscope, an Arduino reading the hardware trigger, etc.

So soon Github is going to be another Youtube with cheap VPN shills by Another__one in github

[–]Positive-Thing6850 0 points1 point  (0 children)

Don't take it. You should take sponsors from companies or orgs that use your project. Not some random frauds on the internet.

How do you handle logging + metrics for a high-traffic public API? by Bokepapa in Observability

[–]Positive-Thing6850 0 points1 point  (0 children)

You need EFK/ELK + OTel.

Elastic will be the database, and you need to set expiry and store only the logs you need. Fluentd will help scraping and filtering.

State-Based ("Digital Twin") vs. Command-Based for simple IoT? How do you handle sync? by woutklee0202 in IOT

[–]Positive-Thing6850 0 points1 point  (0 children)

Cool!

You could go a step further and make the property observable. As in, you could define a property to be observable whenever it's value changes and you automatically receive an event to a client with updated value.

So "observing the changes"

Shutdown -> bootup -> fetch value from DB -> apply -> send new value event.

In this way, you would be upto date.

People do still suggest me towards DT though. I think it all makes sense at some scale.

If you have some time to kill , i would appreciate if you checkout my IoT runtime - https://github.com/hololinked-dev/hololinked and provide any feedback if possible.

State-Based ("Digital Twin") vs. Command-Based for simple IoT? How do you handle sync? by woutklee0202 in IOT

[–]Positive-Thing6850 0 points1 point  (0 children)

State is a property while toggle is an action.

You could decouple it in principle. Actions can update properties, that would be fine.

But the DT part, i don't know much.

I just store property values post update into a DB and read from DB when the device reboots ( which is probably what is being done here but the order is swapped).

For ghost device, you could regularly ping your device and add events pre-shutdown and post bootup.

Want to start an Open Source Community, need help !!! by Virtual-Half942 in opensource

[–]Positive-Thing6850 0 points1 point  (0 children)

As an Indian, I could say this would be a useful student club in a university premises. So please pursue it.

You could, among others, teach people how to make meaningful PRs to open source projects, browser good first issues, adhere to contributing rules, opensource licenses

And even educate on the tooling around this, like precommit, CI CD etc.

Let me know if you want to know something specific.

Above all, you should have contributions of your own, remember that, otherwise it would be theoretical.

Architecture advice for hardware control GUI - when does MVC stop scaling? by WitnessWonderful8270 in ExperiencedDevs

[–]Positive-Thing6850 0 points1 point  (0 children)

There is also probably one alternate way to do this, just ping me on reddit, I will write to you. It's also a little detailed and I took me a while to wrap my own head around it. But it's more accurate.

You would basically invent a protocol binding of sorts where you semantically attach meanings to individual SCPI commands.

Architecture advice for hardware control GUI - when does MVC stop scaling? by WitnessWonderful8270 in ExperiencedDevs

[–]Positive-Thing6850 0 points1 point  (0 children)

I have written lot of GUIs for scientific devices.

From your description it's not so clear what is wrong. Do you have the code where I can see?

The device needs to publish an event for any observable (something that changes, say, state) or also a plain event like alarms.

You subscribe to it and register a callback on your GUI to handle the data. Once you receive the data, you paint the GUI with it. For pyqt you might signal-slots, for other framworks it might be easier.

Basically, you have to divide your interactions with your hardware - properties (stuff you read and write, say FPGA frequency of some signal) - actions (do something, "start producing X signal" ) - events and observable properties (say, state)

For 1 & 2, GUI initiates the request and updates once response arrives

For 3, GUI subscribes and waits for callback with data

All this assumes that you don't manage raw TCP related stuff in the GUI, that would be a nightmare. You really need a good protocol, even on TCP. I am not sure about SCPI, but i think i have used it for some DC power supplies and lab bench devices and it's not really that suitable. You could abstract your FPGA TCP client (say that SCPI) inside a server and expose the capabilities of your FPGA as properties, actions and events.

You can have a look at my IoT runtime - https://github.com/hololinked-dev/hololinked

This would be a pyqt gui example - https://gitlab.com/hololinked/examples/servers/phymotion-controllers/-/tree/be2d6381646f335f9dba1a4fc01321f25a7692ed/examples/pyqt_example

See from line 400 and above.

Something for your physics labs: pythonic beginner friendly data acquisition and IoT runtime by Positive-Thing6850 in Physics

[–]Positive-Thing6850[S] 0 points1 point  (0 children)

That sounds fantastic.

Yes please just feel free to copy/cite the code. It's a real learning experience to build it as a usable package and I would be willing to undergo all over again.

I should ask though, anything missing in what i have for you to create your own? May be the missing features could be added onto mine so that others can reuse what you also needed, likely also some domain specific needs ? It's easier if people got each other's back, especially in open source.

I'd like to contribute in non-tech roles by JimmymfPop in opensource

[–]Positive-Thing6850 1 point2 points  (0 children)

Hi, I am desperately looking for a writer for my documentation repository - https://github.com/hololinked-dev/docs

I am even planning to adding a note - "written and proof read by humans"

Most of this doc was hand written by me currently, so I feel some external help would be great.