• 0 Posts
  • 230 Comments
Joined 1 year ago
cake
Cake day: December 24th, 2023

help-circle



  • MadhuGururajantoProgrammer HumorWork == leisure == pain
    link
    fedilink
    English
    arrow-up
    12
    ·
    4 days ago

    One of my resolutions this year is to not sit in front of a screen if I need entertainment. I force myself to talk to family members at home or do stuff with my hands that feels satisfying like fixing the odd broken stuff in my house or helping out with groceries or cleaning work.




  • MadhuGururajantoMemes@lemmy.mlSpot the difference
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    7 days ago

    Sure Mr. Dessalines. Communists are infallible and we should all defer to the geniuses who have to hide on the internet like vampires from the sun. there’s no point in history where a communist was not infalible! You think my praise of those specific people and my detestation of the same people can’t co-exist? A revolution is not without bloodshed. But it’s folly to think you’re perfect just because you’re a communist. Remember you’re human first.




  • I am no stranger as I am using it myself for python code. My personal experience has been that It can generate a good CRUD API (web server with create/read/update/delete using REST API) using flask framework when I describe the tutorial blog example from the Flask documentation.

    But my wife is working with Microsoft powerapps and that thing annihilates ChatGPT.

    Edit: My point is, it’s only good if the documentation is good. Which we all know is not universally true. Especially for things akin to Microsoft Powerapps.







  • MadhuGururajantoProgrammingHow to do IPC in Linux?
    link
    fedilink
    English
    arrow-up
    2
    ·
    13 days ago

    might I suggest the following:

    1. Sensor Daemon and webserver can be in the same language/stack. Consider even making them the same program. your webserver needs to run always if you want users to be able to go to your site and get the output.
    2. Use a database like sqlite instead of a raw json dump as querying for data from your webserver becomes flexible (especially for charting purposes)
    3. Note: you can store json as a column in sqlite as well if you are concerned that you have too deep of nested data. just store them with keys that are required for your charts.
    4. you can achieve the circular buffer functionality naively by periodically checking number of rows > threshold and deleting the rows if it is exceeded.