204 karma · joined Nov 30, 2014 (11y ago) · 45 submissions
comment 2y ago · link · parent
The requirements have been brought down to 1200VA so the APC SMX2000LV (2000VA) seems to be a good choice for UPS. It's much cheaper on Amazon too.
There's a company called mediproducts that offer UPS units for medical equipment but their pricing is opaque at the moment.
Ideally I'd love to chain an affordable battery backup solution like EcoFlow or Anker Solix along with a good APC UPS. But I'm concerned about chaining two sine wave generators (they become sine wave generators when there's a power outage). But I have no clue if that causes any cascading issues or not.
comment 2y ago · link · parent
7.
Ask HN: What's a good electrical UPS for a home dialysis machine?
3 points · by nitred · 2y ago · 7 comments
comment 4y ago · link · parent
[1] https://github.com/mwmbl/mwmbl#how-do-you-pronounce-mwmbl
comment 4y ago · link · parent
I disagree with that.
You don't need to be a genius to be a good developer, you can be learn to be one or you can be mentored to be one. Some aptitude is required, but nothing extraordinary. Hard work obviously is a good thing, but not a pre-requisite.
P.S. Our success criterias might differ though. I'm not part of silicon valley or FAANG so my standards might be lower than yours.
comment 4y ago · link · parent
The response sounds like it’s coming from someone who’s never thought deeply about problem solving and it’s relationship with mathematical complexity.
When one is given a task that they have no idea on how to proceed, to them, the number of solutions could be infinite. At that moment, even knowing what to Google could be overwhelming.
Imagine the junior developer being given a traveling salesman problem as their first task but neither the manager nor the junior developer recognize that the problem is a TSP problem. The Junior Developer can spend years and years rediscovering all the heuristics and algorithms related to TSP without knowing they’re actually doing that. You can’t google for it very well because the task doesn’t explicitly say TSP.
What you need is a Senior Developer to step in, hopefully they recognize it’s a TSP problem based on their experience, and then give context and an explanation on how to recognize such problems in the future and finally tell Junior Developer “Just Google traveling salesman problem”.
No working beyond 5pm needed. Junior dev is happy they solved the problem that was pushed to production, Senior dev is happy they don’t have deal with a pile of technical debt and Manager is happy that the task got delivered on time.
comment 4y ago · link · parent
comment 4y ago · link · parent
Having queues on Postgres is going to be such a great addition to my tool belt especially since there's always a Postgres instance running somewhere anyway.
I know the first use case that jumps to mind is a job queues, but I feel like the method described in the article is quite low level which means it can be used as a base to solve many use cases.
* I won't have to reach for Kafka/Redpanda unless the rate of events/messages reaches 100k-1000k per day.
* I can add one column called queue_id where each unique queue_id refers to a new queue which means I can use a single table for multiple queues.
* If I add a new column called event_type, then I wonder if it's possible to create a composite event queue, where for example the query must return exactly two rows and one row must have event_type=type_1 and second row must have event_type=type_2 and both rows are locked and processed exactly once?
comment 4y ago · link · parent
However the problems are more pronounced in India. There's more uneducated, more illiteracy, more corruption, more hatred among groups etc.
Having read the wonderful article about Going Critical [1] it's made me realize that, if one society is worse off than another by only 10% by some metric, it could mean that the society is far worse off than 10% due to cascading effects.
If you've ever been to India and stood by the side of a busy road in one of the poorer areas of a city, this or any other kind of news will not surprise you, infact I'm sure you will, like me, be dumbstruck as to how India manages to do keep it's shit together in the first place.
comment 4y ago · link · parent
Coercion is quite powerful and saves me quite a bit of work. I write validation for config files that non programmers create. I would happily avoid explaining the difference between a 1 and a "1" to them whenever I can and let coercion do the work. It reduces the mental load on them too.
comment 4y ago · link · parent
It has excellent support for JSON and JSON schemas out of the box.
Error messages are excellent! Tells you exactly what went wrong (most of the time) during validation.
I do use Pydantic even when Dataclass and NamedTuples are sufficient, I know that's a bit cargo cultish but it lowers the mental overhead by just having to perfect one of way of doing things.
comment 4y ago · link · parent
* Please don't confuse `conda` with Anaconda, Miniconda & Conda-Forge.
* You can use `conda` to manage your environment and it can download and install ALL your packages from `pypi.org` and not Anaconda.
[1] https://docs.conda.io/projects/conda/en/latest/user-guide/ta...
comment 4y ago · link · parent
[1] https://docs.scipy.org/doc/scipy/reference/optimize.html#
comment 4y ago · link · parent
I've been prescribed regular glasses for my myopia with blue light filter and the doctor insisted I use them while I am in front of the screen. These don't work. I started off as a biomedical engineer, so I know that myopia correcting glasses actually make your eye muscles work more i.e. not-relaxed. If anything I argue that you need to use a lower prescription or an opposite prescription to keep your eyes relaxed (not medical advice).
I was struggling with headaches and tiredness due to my excessive screen use even with my prescription glasses. Then I found Gunnar Intercept glasses with 65 Amber tint. Completely different experience. If I get up from the screen, it's not because of tiredness. As a matter of fact, I have been institutionalized - I cannot work in front of the screen without these glasses.
It takes an entire day to get used to the amber tint, but once you get over it, you can't go back. My opinion but I would recommend trying them out if you can afford a $50 experiment.
comment 4y ago · link · parent
We are a pioneer for smart, green buildings. As a green tech company, we utilize AI to reduce the carbon footprint of real estate. With our innovative solution energyControl we make buildings smart and and reduce energy consumption fully automated.
comment 5y ago · link · parent
While the results on Nvidia's website aren't too impressive, if you look at the history of animated movies [1], one can see how trivial and simplistic the art and animation was.
Having had some experience doing some research on GANs at university, I know them to be very powerful. What's very important to note is that the images generated my the model are truly "novel" i.e. completely fictitious. The images generated may be biased to some of the training data such as color and texture of the water and rocks for example, but every image is a fantasy of the model. The only way the model can generate such realistic images is because it has a very good abstract internal representation of what oceans, waves, rocks are.
Back at university, I pitched the idea to my professor of using GANs for generating "novel" images in real time while parents would read bed time stories to children. I didn't get very far. Glad to see some real progress in that direction.
comment 5y ago · link · parent
27.
How some people “separate themselves from their thoughts” and let them go(old.reddit.com ↗)
2 points · by nitred · 5y ago · discuss
comment 5y ago · link · parent
https://www.wnycstudios.org/podcasts/radiolab/articles/best-...
comment 5y ago · link · parent
In python I mostly use threads for non-CPU intensive tasks like IO or timers or event handling and I rarely implement these myself.
However for CPU intensive tasks, there's rarely any point to having 10 threads in Python because they all have to run on one core because of the GIL. Therefore when working with python the GIL indirectly lets me never have to think about writing concurrent CPU intensive code AND I know others wouldn't do it too because it wouldn't make sense most of the time. This is leads to a significant reduction in cognitive load when thinking about solving a problem in Python. And it isn't about thread-safety but that in concurrent code I have to worry how other threads might change the values of shared variables and global variables of which there are many.
Instead the GIL lets me think synchronously, write synchronous code and when I needed to parallelize my work I use multiprocessing where my synchronous code and assumptions work perfectly because each process has its own GIL and I explicitly pass shared variables to each of the processes.
I don't know enough to comment on the good or the bad of GIL. Just my two cents about how I think about code with Python in it's current state.
comment 5y ago · link · parent
@tiangolo I would like to use this for production at work, however I'm a bit hesitant about using the 0.0.x versions. Would you recommend me to wait until version 0.1.0 or 1.0.0?