HNHacker News
TopNewBestAskShowJobs

sergioisidoro

1,483 karma · joined March 2, 2016

[ my public key: https://keybase.io/sergioisidoro; my proof: https://keybase.io/sergioisidoro/sigs/rzcajPfW372x9poJalOA1yA0aFSVXvPrEDnYkvV1v-o ]
submissionscomments
sergioisidoro··on Apple Faces Potential Watch Import Ban After Federal Trade Ruling
I went to Masimo's page, and it took me about 1 minute to realise that their logo actually looks like that - it's not a resizing proportions issue.

https://www.masimo.com/

sergioisidoro··on We Have to Talk About Flask
Well, if there would be one accepted dependency management tool / environment, it would make things easier at least.

For example, despite all the problems of JS, new devs don't need to create a virtual environment and activate it all the time. They don't need to manually add lines to a requirements.txt, or pick a tool like poetry or pip env [1]

[1] Edit: ok they have to pick yarn/npm, but even those share a common file base formate - package.json

sergioisidoro··on We Have to Talk About Flask
Well, they are trying... For tooling they tried to get this done well with pipenv, but (imho) failed for how slow and clunky it is. I really tried to like pipenv, but now I just go for poetry.

But one thing that needs to be acknowledged is how difficult it is to coordinate a space with so many stakeholders (eg. Conda and Anaconda for Windows), and how python got so engrained in the sys admin (installing tools with pip.) that undoing that is a monstrous task [1]

[1] The other day my ansible playbooks stopped working because packages that you used to be able to install globally with pip, should now be installed through the package managers (eg. jsondiff should now be installed as apt-get install pyton3-jsondiff). Exactly to push people to use virtual environments where you can better manage depedencies.

sergioisidoro··on We Have to Talk About Flask
The problem stems from how fragmented dependency management in python is. Most tutorials use `pip install something` without much care for pinning versions.

Yes, it makes it easier for new programmers: They can skip learning a dependency management tool like poetry, or pipenv. But then these things happen.

Blame the tutorial makers and the dependency maintainers, not the Flask team.

sergioisidoro··on Using different flours for sourdough fosters different bacteria–and flavors
>"For example, the bacterial community in amaranth sourdough produces an aroma that smells almost exactly like ham,"

I've made a sourdough starter last summer that smelled EXACTLY like pear. It led to discover that there's all these sorts of Esthers that are named after their smell.

https://en.m.wikipedia.org/wiki/Ethyl_decadienoate

My chemistry and biology is highschool level, and sourdough baking (+ kombucha brewing) has been a super interesting way of exploring and being curious about those fields.

sergioisidoro··on Signal says there is no evidence rumored zero-day bug is real
When I heard about this, I also associated the two. The report talks about link preview generation, so it sounded like someone could put a webp on the social metadata of a page for link previews, and then send it as a malicious payload.

But that would mean any app with link preview (eg. slack, whatsapp, discord) would also be affected...

sergioisidoro··on Apple's new video reactions are making therapy awkward
But is it the responsibility of the operating system to do that, by default?

What if the operating system started to bleep out swear words from the microphone? Or blurring out obscene gestures?

Sure, make the software available on install, or even prompt it's configuration and opt in on installation.

But it's not and should not be the responsibility of the OS to apply effects or manipulate or alter the data of the hardware.

sergioisidoro··on Apple's new video reactions are making therapy awkward
I would like to live in a world where an operating system is about enabling technology, performance, reliability and security. An OS should not be about animated emojis , or about running a CV program detecting what's going on in the video feed of the hardware, and manipulating it.

Apple still makes some of the best hardware I know, but gosh, the software they make...

sergioisidoro··on The Twelve-Factor App (2011)
My comment is specific to docker, although environment as a broader sense can be discussed.

I remember reading that it is possible to end up in situations where your environments can end up in the layers of the docker image. Also, you can read the secrets of a container with inspect, and apparently linked containers might be able to access other containers's secrets.

I think it was this article: https://snyk.io/blog/keeping-docker-secrets-secure/

sergioisidoro··on The Twelve-Factor App (2011)
Twelve factor app: use environment for config

Docker: Don't use environment for config, it's insecure

I like and use many of the patterns of 12 factor, but indeed some of these were written in the context of VPS, where environment is stable, secure and more constant (unlike containers, where environment might end up shipped in one of the layers). In the age of containers, this particular point has been a bit of a struggle for me. Docker secrets don't always play well, and you need to do some gymnastics to make it work.

sergioisidoro··on Contour: Modern and fast terminal emulator
> is there a compelling reason not to switch?

Your terminal emulator is one of the most security sensitive things you use. Sudo password? SSH keys? logs? A lot goes through your terminal, so I think about 5 times before trying out new terminals.

sergioisidoro··on Adam? ... is there a reason your laptop is in the fridge? (2006)
Same happened to me with a phone. (nexus 5x). It stopped working all the sudden during a vacation.

Putting in the freezer would allow me to boot it and backup the data. Fridge was not enough as it was not cold enough to dissipate the heat of the device on boot.

As soon as the phone was out of the freezer it would die in about 30 seconds.

Saved all the vacation pictures this way

sergioisidoro··on Nue.js: Rethinking Reactivity
Saving a few lines in a Hello World example is not the super great argument many of these web frameworks think it is...
sergioisidoro··on In Digital Ocean, S3-like space keys can access all your buckets
Are you saying you have to issue a "god" level API access token to access a single docker (private) image in the Digital Ocean container registry?
sergioisidoro··on In Digital Ocean, S3-like space keys can access all your buckets
The point is that there are no bucket keys. Only Access keys for all buckets. There is no way to issue bucket specific keys. I'm not sure I follow how the title could be misleading.
sergioisidoro··on In Digital Ocean, S3-like space keys can access all your buckets
S3 (and similar storages) have caused plenty of security issues in several occasions (usually because of misconfigured buckets, making all contents available to the public). Given this, it would be expected that companies would pay a bit more attention to the security of these data storage methods.

However, in Digital Ocean, by design, you can't restrict keys to certain buckets. Once you issue a key, it can access all buckets within your project, with all operations (list, read, delete) files.

The issue has been reported and is known for a long time. It's even the top voted "idea" in the company portal.

Posting this here in hopes to bring awareness of this issue.

sergioisidoro··on How to see bright, vivid images in your mind’s eye (2016)
I think most people with some degeree of aphantasia used to think like you - that no one can really visualise things.

But then I started asking around and people REALLY described visualisation as a vivid clear picture of things in their heads, almost like they are there. Like literally projecting the image on their brain as you're saying.

I now think I do have some degree of aphantasia. I can describe as having low RAM, so I cannot paint the entire scene. I am able to briefly visualise some details and aspects of a scene (usually as flashes, and I cannot sustain them), but never the entire scene. If you ask me to visualise a beach, I can have visual "flashy" perceptions of the sand or the waves, but it's extremely hard for me to put everything together in a visual manner. It's much easer for me to imagine the feelings, sounds, and smells of a scene.

sergioisidoro··on Ask HN: Why isn't Phoenix/Elixir more mainstream?
I would add

4. A critical mass of community packages and open source ecosystem so you don't re-invent the wheel for non core things (eg. Javascript, Python, Rails)

sergioisidoro··on I'm all-in on server-side SQLite (2022)
A few years I made a decision to ship a SQLite database in an (internal) ruby on rails package. Why? Because there was a large set of (static) data that was required for the package to work, and it made no sense to make an API to query it from external sources (It wasn't that big, something like 5-10Mb if I recall). At the time it felt like a super dirty hack, but time seems to have validated that decision :)
sergioisidoro··on Elixir saves Pinterest $2M a year in server costs
Depends. Were they already using gunicorn? What about cPython? Was the code written by a junior developer without much consideration for memorization and dictionary access?

And sure, you can get some performance improvements by rewriting things in those languages, at the expense of losing the entire python open source environment.

So I would need way more information about the previous system to take this even remotely seriously.

Python scales quite reasonably for most small to medium companies.

sergioisidoro··on Elixir saves Pinterest $2M a year in server costs
I am very skeptical about this. The title makes it look like it's all about Elixir, but there seems to have been a fair amount of re-architecturing.

"One of the systems that ran on 200 Python servers now runs on four Elixir servers"

This alone is a major telltale.

sergioisidoro··on Apparatus for facilitating the birth of a child by centrifugal force (1963)
I guess this is what happens when the medical profession was (is?) dominated my men, without significant input from women...
sergioisidoro··on Don’t build a general purpose API to power your own front end (2021)
Sure, you won't "need" them. But it's very likely that you'll have resources that behave very well for rest like operations - user comes to mind, for things like user profile page, user settings, user detail, etc

A rest endpoint is likely handy to use across your application without having to replicate the same serialization over and over again.

Also many frameworks remove all the boilerplate for those operations (eg. Django class views), so creating one is a really good starting point.

sergioisidoro··on Anxious brains redirect emotion regulation
I wonder if this shift of processing areas is behind the the "detachment" or "depersonalisation" (feeling like you're in autopilot, or not being you) that seems to be a common response to high anxiety.
sergioisidoro··on Don’t build a general purpose API to power your own front end (2021)
My personal take: Don't put it all in the same box.

Just have a api/v1/rest/ base path for modular well defined resources that can be used across your application, without breaking changes, or even shared to third parties.

Then have a api/v1/features for coupled endpoints that return non standard objects, and with a more flexible lifecycle.

Chances are you're better off having both instead of trying to cram all the use cases into one approach

sergioisidoro··on Shazam for singing
It's called query by humming, and there used to be academic competitions for it a decade ago. And for this SoundHound has always been ahead of Shazam, which focuses more on music, remixes and covers
sergioisidoro··on Minimum Viable Secure Product
I was hoping for something more like:

* Check you're storing secrets safely and not in the code

* Run a automated security scanner to check for the OWASP top 10

* Confirm your endpoints have correct auth/permission checks, and that all debug flags are off

* Ensure databases are protected (eg. Not exposed to the internet or heavily restricted)

* Enable 2FA for everyone in the company and use a password manager

* Check what are the data protection laws and disclosure sla of your country

sergioisidoro··on Show HN: Lottielab – Create product animations in the browser easily
I really like rive, but they don't support react native with expo, which is becoming super common in the space.
sergioisidoro··on Things you forgot (or never knew) because of React
> I refuse to work with people who has this thought

So you refuse to work with people who do not want to re-invent the wheel for a shiny new framework because it is "better"?

sergioisidoro··on Study shows dementia more common in older adults with vision issues
After hearing Andrew Huberman talk about the relationship between vision and our dopamine system, I would not be surprised if we start finding more correlations of mental health with vision.

But there's also the recent findings inversely correlating myopia with amount of time spent outdoors (and even some reduction in myopia for people who start spending more time outdoors). So vision could just be a proxy for sedentism?

← PreviousPage 3 of 8Next →