HNHacker News
TopNewBestAskShowJobs

radus

846 karma · joined September 4, 2016

submissionscomments
radus··on Beautiful Soup
In those cases you might want to check out SeleniumBase: https://seleniumbase.io/
radus··on In Algeria, ancient cave art may show psychedelic mushroom use
To those interested in the history of human consumption of hallucinogens I can't recommend this book enough: The Immortality Key.
radus··on Chemistry of Cast Iron Seasoning: A Science-Based How-To (2010)
Same experience, also a direct result of reading this blog post. It looks great at first but eventually flakes and is more trouble than its worth.
radus··on I'm quitting my PhD
This doesn't make sense for careers that require the additional training before you can be useful in your field.
radus··on Building my first mechanical keyboard
It’s expensive but the Realforce R2 PFU ticks this box for me. It has Topre switches and is silenced from the factory.
radus··on Using a Linux phone as a secondary monitor
*snapcast: https://github.com/badaix/snapcast
radus··on Fast analysis with DuckDB and Pyarrow
This addresses some of my misgivings with pandas: https://tomaugspurger.github.io/method-chaining.html
radus··on Should I Use a Carousel?
I guess the first step is to establish a carousel standard then.
radus··on Pro chefs debate cooking tips and tricks
Summary:

1. Fruits ripen faster if placed in a paper bag with apples or bananas.

> Agree x 6

2. Marinating for 30 minutes achieves the same goal as marinating for 24 hours.

> Disagree x 6. Tested on pork tenderloin.

3. Adding oil to pasta water prevents pasta from sticking.

> Disagree x 6

4. Adding citrus to guacamole will stop it from oxidizing.

> Agree x 6

5. You should wash your mushrooms before cooking.

> Disagree x 6

6. Silpat baking mats are better for even baking versus parchment versus foil.

> Agree x 5, Sideways x 1. Tested on chocolate chip cookies.

7. Beans need to be soaked overnight before cooking.

> Disagree x 5, Agree x 1

8. The best way to get crispy bacon is to start with a cold pan.

> Agree x 4, Disagree x 2. Tested on bacon.

9. The reverse-sear method is the best way to cook a perfect medium rare steak.

> Disagree x 6

10. You should rinse your meat before cooking.

> Disagree x 6

11. Hard boiled eggs should be started in cold water.

> Disagree x 5, Agree x 1

radus··on Pro chefs debate cooking tips and tricks
You don't think that these chefs and the ones featured on Kitchen Nightmares might be selected differently?
radus··on Etsy Moves from React to Preact
I’ve migrated from react to react and it was a breeze
radus··on Don't make me think, or why I switched to Rails from JavaScript SPAs
Maybe this isn't what the GP comment meant, but I think codegen can serve this function pretty well nowadays. I'm currently working on two separate projects, the first is a Django project with DRF and I codegen with drf-spectacular [1] and openapi-typescript-codegen [2]. The other project also uses Django, with the API through Hasura and codegen with graphql-codegen [3]. In both of these cases I've been able to largely avoid duplicating my models clientside, or at least it isn't manual.

1: https://github.com/ferdikoomen/openapi-typescript-codegen

2: https://drf-spectacular.readthedocs.io/en/latest/

3: https://github.com/dotansimha/graphql-code-generator

radus··on Would you buy a home in the metaverse?
No
radus··on Ancient solar storm smashed Earth at the wrong part of the sun's cycle
The article doesn’t touch on this but maybe HNers know. What can we do protect ourselves or minimize damage from these solar events?
radus··on Apple added an orange dot that’s a showstopper for live visuals
Here's what it boils down to:

notifications = low probability

orange dot = 100%

The risk of an embarrassing notification got traded for the certainty of the orange dot.

radus··on Show HN: FastWSGI, an ultra-fast WSGI server for Python
How big are those responses? I’ve seen terrible performance come down to serialization, which can be addressed by swapping in a fast serialization library like orjson (https://github.com/ijl/orjson). Though even then you’d probably have a hard time getting to tens of milliseconds. Other common culprits: poor indexing, n+1 queries.
radus··on Vueform – Your lifesaver in developing forms
I submitted this a few weeks ago but now there's a pre-release. Unfortunately though this does seem to be a very high quality library (especially for something that's being labeled pre-release), I'm not sure I can stomach the $495 yearly fee.
radus··on The new luxury vacation: being dumped in the middle of nowhere
I’m sure they could work that out for you, for an added fee
radus··on Django 4.0 release candidate 1 released
My favorite new additions:

- django.core.cache.backends.redis.RedisCache cache backend provides built-in support for caching with Redis

- The runserver management command now supports the --skip-checks option.

- The shell command now respects sys.__interactivehook__ at startup. This allows loading shell history between interactive sessions. As a consequence, readline is no longer loaded if running in isolated mode.

- New QuerySet.contains(obj) method returns whether the queryset contains the given object. This tries to perform the query in the simplest and fastest way possible.

- Lookup expressions may now be used in QuerySet annotations, aggregations, and directly in filters.

radus··on How to programmatically find out if computer is on
Defensive programming at its best
radus··on Things you are allowed to do, academic edition
Yes.

Writing/editing papers, grants, grant renewals, dealing with graduate students (mentoring, defenses/other events), post-docs (mentoring, job applications), meetings (with lab, department), consulting, occasional lecturing -- and that's only scratching the surface..

radus··on Biomarker predicts severity of Covid-19 infection early on
There are a lot of biomarkers expressed by “struggling” cells, most of which will not correlate to disease severity, so yes, the news is that this one in particular is predictive.
radus··on Rich Harris joins Vercel to work on Svelte full time
I totally identify with your aversion to build tools, but things have changed for the better in the last few years.

My advice would be to check out Vite, and use it with Vue. I've introduced Vite/Vue2 to a pre-existing Django project and couldn't be happier. I've explored a number of different approaches for integrating Vite and Django, and this blog had the best approach, IMO: https://weautomate.org/articles/using-vite-js-with-django/

radus··on Soupault is a tool that helps you create and manage static websites
Any example sites? Having a hard time seeing how everything comes together.
radus··on My Logging Best Practices (2020)
For python logging specifically, here's an excellent article: https://blog.guilatrova.dev/how-to-log-in-python-like-a-pro/
radus··on Python 3.11
Some nice changes:

> “Zero-cost” exceptions are implemented. The cost of try statements is almost eliminated when no exception is raised. (Contributed by Mark Shannon in bpo-40222.)

> Method calls with keywords are now faster due to bytecode changes which avoid creating bound method instances.

radus··on Leaked grant proposal details high-risk coronavirus research
Strongly agree with this. Sure seems like a lot of people have become duck experts overnight though.
radus··on Headscale: Open-source implementation of the Tailscale control server
Related, here's a surprisingly balanced comparison of Nebula and Tailscale, on tailscale.com: https://tailscale.com/kb/1148/tailscale-vs-nebula/.

> If you’re a system administrator or technical person looking for a completely open source, free peer-to-peer mesh VPN, and you’re willing to run a certificate authority and the control plane yourself, try out Nebula.

> If you’re looking for a polished, user-friendly peer-to-peer mesh VPN with a hosted control plane and integration with existing identity providers, give Tailscale a try.

radus··on Building apps in minutes, not months
Definitely not looking forward to 99% of any group being out of jobs.
radus··on Django 4.0 will include a built-in Redis cache back end
I'm relatively new to Django (longtime Flask user), and what struck me about the Django ORM so far is that it seems much easier to write extremely low performance queries. I didn't really feel this way when using SQLAlchemy or peewee, but perhaps that's just my inexperience.
← PreviousPage 4 of 9Next →