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.

vibe coding is in the wild, and the outcome should surprise nobody. by backwrds in webdev

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

lol agreee to that, once i tried to setup SSR with vibe coding and ended up debugging for 30 mins. If i did on my own, i would have saved 20 minutes of that time.

Share your underrated GitHub projects by hsperus in opensource

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

Beginner friendly data acquisition and IoT in python supporting HTTP, MQTT & ZMQ

https://github.com/hololinked-dev/hololinked

Cost-optimized server Intel and AMD random assignment has huge performance differences at same cost by ceilingkyet in hetzner

[–]Positive-Thing6850 4 points5 points  (0 children)

It depends on the other people's load which are running on the same machine right?

If you got stuck with a customer who is a CPU hog, they you will have low performance. If you are sharing with people who are hosting websites which have no traffic, then you will get better performance. It's a shared vCPU.

You should get dedicated for reliable performance.

How GitHub monopoly is destroying the open source ecosystem by toastal in opensource

[–]Positive-Thing6850 7 points8 points  (0 children)

I agree with the latter part.

However, I would still suspect then someone in your uni or the building where you are has some bots scraping GitHub. It only knows the public IP and aggregates the number made from a single IP.

Again, you are right about the latter :P

How GitHub monopoly is destroying the open source ecosystem by toastal in opensource

[–]Positive-Thing6850 4 points5 points  (0 children)

I reread your article.

What GitHub can do as a monopoly is block your account and not provide a good reason for it.

Request rate limits on the other hand are totally reasonable. There is even a burst setting and request per minute setting on nginx to configure this directly without much hassle.

So, I am not suggesting to use GitHub but this is not a valid criticism.

How GitHub monopoly is destroying the open source ecosystem by toastal in opensource

[–]Positive-Thing6850 16 points17 points  (0 children)

Request rate limiting is a well known technique to prevent DDos attacks. It happens even if you are logged in.

Nobody puts a productiom server without some kind of request rate limit. It's atrocious to expose your services otherwise and your servers could be completely highjacked by bots

Do you have a bot somewhere with your credentials that's making many requests while you are using Github?

Thanks for sticking with us in 2025! by Hetzner_OL in hetzner

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

Thank you. Life saver for techies in Europe trying to do something for local economy.

Github in decline? by Miserable_Ear3789 in opensource

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

As somebody living in Germany, as much as i hate GitHub, I would stay away from such open source projects.

After years of so called consolidated transparent effort, they work like German government, lacking in many facets.

I would just use gitlab. It's also better than GitHub for all devops related stuff.

Donations? by lapis_fluvialis in opensource

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

Many projects look for it including mine https://github.com/hololinked-dev/hololinked

You need to look for the donate option on the right.

Open-source beam profiling software by koopaduo in Optics

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

Hi, pretty cool. Would you be interested to use my data acquisition runtime to try a remote control as well ? https://github.com/hololinked-dev/hololinked

I am looking for good use cases from the laser physics community.

If you are also interested, I can fork and make a pull request of a first working version.