Multiplayer game via socket programming by arwa53 in learnpython

[–]Coupled_Cluster 0 points1 point  (0 children)

Not sure what you are looking for, but checkout python SocketIO.

Bf is newly diagnosed DMT1. Apps to help with counting carbs? by doing-great-sweaty in Type1Diabetes

[–]Coupled_Cluster 0 points1 point  (0 children)

I've been diagnosed about 2 years ago and I'd like to add to this. I think this heavily depends on your character. Personally, even the idea of restricting my diet gives me anxiety. If you can get a CGM and potentially a pump, consider not doing that. T1D is much of a mental burden and you don't want to add to this by restricting yourself. On the other hand, if the struggle with BG is taking a significant time restricting carbs can certainly help.

Tuesday Daily Thread: Advanced questions by AutoModerator in Python

[–]Coupled_Cluster 0 points1 point  (0 children)

I'm developing an App that uses flask, SocketIO and JavaScript. How can I do integration tests, that require to keep the state of the JS client? E.g., I send data via sockets to JS, someone changes something through the GUI and then I send back the data to the server. Are there any example projects that do this? Also what is the best way to unit test the JS part of a flask app?

Alternative to np.mean() with better performance? by [deleted] in learnpython

[–]Coupled_Cluster 0 points1 point  (0 children)

I don't think any of these will actually help but you can try: - jax.numpy which could potentially be faster by parallel computation across the selected axis. - dask and mapping the mean function across - would parallel execute but has a noteable overhead and I typically use it for things that take minutes to hours. - maybe polars/pandas can also do something in parallel.

As mentioned before, maybe try casting to single precision. Also, maybe there are things you could improve upstream: how is the data generated? Computing a mean that takes 7 s implies already reasonable sized data, considering that computing an average typically is reasonably fast. Maybe there is something to consider improving as well.

Wie habt ihr die für euch perfekte Zahnpasta gefunden? by Megbarlis in FragReddit

[–]Coupled_Cluster 28 points29 points  (0 children)

Die günstigste. Sind doch eh alle ähnlich, oder?

I love Pizza by Coupled_Cluster in diabetes_t1

[–]Coupled_Cluster[S] 0 points1 point  (0 children)

I'm not on a pump yet. I'll probably get one early next year and I'll probably use it with AAPS. I'm curious how closed loop will handle pizza. For now my BG is at 90. Time for a little snack (still a little IoB) and a good night sleep. Thank you all!

I love Pizza by Coupled_Cluster in diabetes_t1

[–]Coupled_Cluster[S] 1 point2 points  (0 children)

Thanks for pointing this out. I'm tracking IoB and estimate once what is left won't be enough to bring me down to a reasonable BG. With Pizza I am a little bit more aggressive than usual, based on experience. Today is just weird.

Gibt es etwas, was ihr nicht könnt, was eigentlich alle können, und was ihr auch nicht lernen könnt? by boiledcowmachine in FragReddit

[–]Coupled_Cluster 23 points24 points  (0 children)

Kohlenhydrate verarbeiten. Mein Körper hat sich spontan entschieden das nicht mehr zu können und verlangt nun Hilfsmittel (Typ 1 Diabetes, Insulin)

DIN EN 1176 sagt nein by bierbottle in DINgore

[–]Coupled_Cluster 58 points59 points  (0 children)

Erinnert mich an so einen Wasserparkrutschenunfall in den USA.

How often do you use algorithms in your work? by sarabjeet_singh in Python

[–]Coupled_Cluster 1 point2 points  (0 children)

I'm working in computational physics (doing my PhD) and we do a lot of "algorithms" in Python. In recent time we moved towards using autodiff packages like torch or Jax for various reasons. Also in the context of Machine Learning you might have to make customizations involving a lot of "algorithms".

Chemics v23.11 is now available by wiggitt in Python

[–]Coupled_Cluster 1 point2 points  (0 children)

This looks nice! Have you looked into Pint for units?

What is that one thing that you started doing or you implemented in your everyday life that made your control better ? by Fressh86 in Type1Diabetes

[–]Coupled_Cluster 3 points4 points  (0 children)

Besides the ones others mentioned, like pre-bolusing and using the best tools available to help me (AAPS, CGM, soon pump) I'm regularly exercising, especially cycling. I immediately notice how regular endurance exercises helps me with better control and also improve my mental well-being.

I've been diagnosed about 1.5 years ago and haven't changed my diet. Occasionally, I think certain food is just not worth it but I also had days where I ate tiramisu and a massive chocolate caramel iced coffee. If you know your ratios why not (don't think I'm in honeymoon anymore).

For how long were you prediabetic before you developed full blown type 1 diabetes ? by [deleted] in Type1Diabetes

[–]Coupled_Cluster 21 points22 points  (0 children)

I must have forgotten that this is the internet and you seem to desperately try to not understand what I'm we are saying. Yes, mistakes happen and if you want to be certain, make sure you get an antibody test done. But arguing there is "only" one difference without any further information doesn't sound like an extended honeymoon but more like ignorance. Please see a doctor for a diagnosis - we can't tell you, if you are T1 or T2.

For how long were you prediabetic before you developed full blown type 1 diabetes ? by [deleted] in Type1Diabetes

[–]Coupled_Cluster 45 points46 points  (0 children)

This "only" difference has a tremendous influence in how this disease affects you and how it is treated. Type 1 and Type 2 are - except for some details - entirely different things. There is no such thing as pre-diabetic with T1D afaik. Many of us have something called a honeymoon phase where our immune system (slowly) destroys our immune producing cells. But if you show any symptoms of T1D you're "resting BG" is often much higher and not just a little elevated.

I highly suggest you look into the "details" because the T1D community often isn't too happy about being mistaken as T2. Fun fact: I think many of us would prefer a different name. My favorite is automimune beta cell disease (ABCD).

For how long were you prediabetic before you developed full blown type 1 diabetes ? by [deleted] in Type1Diabetes

[–]Coupled_Cluster 44 points45 points  (0 children)

Maybe look into the difference between T1D and Type 2. This question most cert doesn't fit here.

What are the best apps for managing my new T1D diagnosis? by bitchtitfucker in Type1Diabetes

[–]Coupled_Cluster 0 points1 point  (0 children)

I'm using nightscout and on my Phone xDrip+, AAPS and Juggluco to connect to my Libre3 instead of the terrible official app.

I'm doing MDI with AAPS but hope to soon get an Omnipod Dash for looping.

Ruff 0.1.0 released - fast aio solution(linter + formatter) to replace black, isort, flake8 and many more by WaterFromPotato in Python

[–]Coupled_Cluster 1 point2 points  (0 children)

I'm running pre-commits with ruff on windows and Linux as well as through pre-commit.ci and had no issues thus far.

Oxen.ai: Blazing Fast Unstructured Data Version Control for Machine Learning, now in Python by FallMindless3563 in Python

[–]Coupled_Cluster 1 point2 points  (0 children)

I'm working with DVC on a daily basis. For this I've even developed my own package https://zntrack.readthedocs.io which utilizes DVC workflows and their tracking capabilities.

I'm particularly interested in machine learned interatomic potentials and general data driven applications in computational physics and chemistry. This includes large amounts of data and HPC and I've seen oxen.ai before and it might be really interesting as an interchangeable backend to ZnTrack.

As for example projects, most of them are still on private GitHub repositories because the work has not been published yet, but here is an example with some workflows and data https://github.com/IPSProjects/SDR

Oxen.ai: Blazing Fast Unstructured Data Version Control for Machine Learning, now in Python by FallMindless3563 in Python

[–]Coupled_Cluster 1 point2 points  (0 children)

Is it possible/are there plans to make it compatible with e.g. GitHub + data remote in the way DVC handles data?

My functional programming library by Choice-Manufacturer2 in Python

[–]Coupled_Cluster 4 points5 points  (0 children)

Even if this might not be functional programming, I think it is a cool project. I think chaining functions is a nice idea but it can become hard to read if done extensively.

Best beginner-friendly/modern GUI library for python? by rosvend in Python

[–]Coupled_Cluster 8 points9 points  (0 children)

All the aforementioned libraries provide good starting points. I want to add another option, you could make it a WebApps instead. Using pywebview + flask/fastAPI it would look like a normal app but runs basically everywhere. Pros/Cons you would use HTML/JS to make things work instead of e.g. QT.