HNHacker News
TopNewBestAskShowJobs

cprecioso

963 karma · joined April 30, 2016

meet.hn/city/41.3825802,2.1770730/Barcelona

Socials: - bsky.app/profile/precioso.design - github.com/cprecioso - linkedin.com/in/cprecioso

---

[ my public key: https://keybase.io/cprecioso; my proof: https://keybase.io/cprecioso/sigs/1X7I415iPxyBFFOSmQxGPcv4TWbhRi-3AHEjw2gU-Zw ]

I'm linking my keytrace.dev: did:plc:h22ajfwlv7pvlhxqzi3dsiaj

submissionscomments
cprecioso··on Slack have blocked using the website on mobile
You can use a adblocking DNS server. Either a pi-hole in a VPS you control, or something like NextDNS (which I am really happy with).

It doesn't block everything, but almost nothing is getting through for me.

cprecioso··on Apple warns of risks from German law to open up mobile payments
PSD2 is great, but as far as I remember, it doesn't make banks have a common basic API, every bank can implement it wildly differently.

Next step is something like OpenBanking in the UK which does ask for common APIs.

cprecioso··on Falsehoods Programmers Believe About Names (2010)
I think GP was rather referring to names such as Andrea (which is a traditionally female name in Spain, but traditionally male in Italy).
cprecioso··on Falsehoods Programmers Believe About Names (2010)
In my university (TU Delft), there are people from all kinds of countries, so they have a (I suppose legally-mandated) first name / last name entry, but also a "How should we call you" entry, in which you can write anything you want, and that's what will appear in the UI and class lists.
cprecioso··on Lesser Known Coding Fonts
I have to ask, why Comic Sans specifically? Seeing as it almost universally regarded as an specially ugly font. The only uses that I’ve seen accepted for Comic Sans are for use in comics (obviously) and for people with dyslexia.
cprecioso··on Notarizing Your Mac Software for macOS Catalina
IIRC, brew cask does actually set the quarantine bit in the downloaded binaries
cprecioso··on Researcher banned on Valve's bug bounty program publishes second Steam 0-day
Steam's DRM (CEG) customizes the executables so it won't play without the Steam client running and logged in to the correct account. There are lots of not-DRM-enabled games on Steam, but they're decidedly in the minority.
cprecioso··on Apple Card launches today for all US customers
You're just describing a debit card?
cprecioso··on OpenDrop: An Open Source AirDrop Implementation
They found code for kind of that in the new Google Play Services bundles ( https://www.androidpolice.com/2019/06/30/google-fast-sharing... ). They theorize in the article that it uses the same technologies as Airdrop, so they might be compatible - though I doubt it.
cprecioso··on How to chain multiple functions in JavaScript properly with async/await
Hey, something is wrong with your interpreter or your transpiler if you need to wrap every `async` function in a `return new Promise`. If you mark a function as `async` it will do it automatically - in fact, if you look at e.g. `nodent`'s output, it's exactly how it does it. Calling the `resolve` function instead a `then` callback like that is a mess, and totally not needed. Also, the `return` is not necessary, every function has an implicit `undefined` return if not explicitly stated.

Moreover, in async functions you can take advantage of regular `try`/`catch` when awaiting; it seems you're just swallowing errors in your functions, which I guess is fine for the code you're showing. But keep in mind that a better practice is to let those function throw and catch it with a try/catch at the callsite.

Lastly, when calling the functions to save and send the email, you can use `Promise.all` and parallelize them instead of running them serially, as they don't seem to depend on each other. If you're meaning to send the email only after it is saved, then you need to check the return value of the saving before that; because neither of the calls will ever fail; just return undefined.

cprecioso··on Arrived – a new model of home ownership
While not very common, it is also a thing in Spain. "Alquiler con opción a compra" (renting with the option to buy), lets tenants live for a predetermined time at a place. When the lease ends, they can choose to buy the place with a discount equal to their rent payments up to that moment.
cprecioso··on List of 235 apps incompatible with macOS Catalina 10.15 Raw
I guess mainly the switch to 64-bit only
cprecioso··on Shazam-like technology used to identify bars illegally streaming soccer games
I live in NL and have never learned about this, do you have any more info?
cprecioso··on Valve has mutated from a game developer into a financial middleman
IIRC, Steam's DRM modifies binaries on disk to inextricably link them to the user account. That might be the reason for the recent modified timestamp if you installed it recently, not an update to the original binary.
cprecioso··on I tried creating a web browser, and Google blocked me
Maybe a solution for the problem in the post: one way to simulate Electron but using full Chrome instead of the DRM-less Chromium, is to make the app target Carlo[1] instead. It's basically what a Chrome app used to be (now deprecated), but run from a Node.js script.

[1]: https://github.com/GoogleChromeLabs/carlo

cprecioso··on Nginx to Be Acquired by F5 Networks
thank u, nginxt
cprecioso··on Txti – Fast web pages for everybody
The encryption key should be passed in the fragment portion of the URL like http://txti.es/{POST_ID}#{E2E_KEY}. Else, it's still being sent to the server (and potentially logged or intercepted).
cprecioso··on Can't Unsee: Select the design that is most correct
There are some of the "broken" designs (like corner radius or capitalization) that amount to design choices and not necessarily constitute a good or bad design by themselves. Also, most of the examples seem to be taken from Skype. And why should we log in at the end, what do I get if I login?
cprecioso··on React as a UI Runtime
In addition to what the sibling comments are saying, the author has explicitly stated in past posts that he doesn't want this knowledge becoming job interview questions, as (in his opinion) these are non-leaky abstractions that don't affect one's productivity/code-quality on React.
cprecioso··on Valve Breaks the Shackles of Proton
I guess that it's like that in order to be able to update the executable for non-privileged users (who can't write to /Applications), which could be e.g. kids' user accounts in the family computer.
cprecioso··on Valve Breaks the Shackles of Proton
The executable in /Applications is 32-bit, but it's just a launcher for the real Steam app in ~/Library/Application Support/Steam/Steam.AppBundle which is 64-bit.
cprecioso··on Show HN: Turn YouTube playlists into video podcasts
Hi HN! I made this little server thing to turn YouTube playlists (and channels) into a RSS feed that my podcast player could read, with direct links to the videos.

I made it so I could follow some Spanish radio shows which have an audio podcast but upload extra content to YouTube, so I could follow right along my other podcasts. This way I get precise markers of where I left off, viewed/not views indicators, etc...

I've been using it for quite some time, with no problems whatsoever. However, I just released an update which lets you use it with iTunes; and removes the requirement for a YouTube API key.

I have a public instance at https://tubecaster.now.sh . It is heavily cached. You can use it to try the program, but please deploy it to your own server if you plan on using it further! Also, I might break something from time to time, so better not to rely on that public instance.

At any rate, tell me what you think and if you find it useful! Thanks!

cprecioso··on Using Dark Mode in CSS with MacOS Mojave
However, Mail does have a dark stylesheet for the viewer when Dark Mode is enabled. I guess this can be done when there's a concept of a base stylesheet which people can the overwrite if needed.

Word processors don't have this concept, and what you see is (supposed to be) always exactly what you get. So Pages doesn't display dark documents because the output then should be a dark document.

cprecioso··on Snap, Flatpak and AppImage, package formats compared
Do you mean Ubuntu Core?
cprecioso··on 'Siri I'm getting pulled over': New shortcut can automatically record the police
I'm from Spain and I can 100% confirm it is not only in America.
cprecioso··on Prepare for changes to macOS Server 5.7.1
You have to add the disk as a shared folder in the File Sharing section, then right-click and in Options there's a checkbox to make it a Time Machine share.
cprecioso··on Plus codes: addresses for everyone
I really liked this, but their current website doesn't help their cause. Their old website dropped you straight into the map to find out any place's Plus Code, as well as a box to enter a plus code and open that location in a number of mapping apps/websites (Google Maps, Apple Maps, HERE, OSM...). It looked useful at first glance.

The new website looks like a standard marketing page that is trying to sell me something I don't need, and they have also lost the third-party linking. I think the immediacy of its usefulness is completely lost now.

cprecioso··on Handling Notch on iPhone X, XS, XR, XS Max
Haha sorry that went right over my head
cprecioso··on Handling Notch on iPhone X, XS, XR, XS Max
Are you saying Apple is responsible for the time that takes to copy their design? That is certainly an interesting take.

Also maybe there's an argument to be made about this being time invested in a feature (notch support that the OEMs were already implementing) rather than wasted.

cprecioso··on Handling Notch on iPhone X, XS, XR, XS Max
I don't think GP is suggesting either, rather that non-rectangular screens are _a thing that happens_ and many are not prepared to deal with it because they didn't think of it. In the same vein of the "Falsehood programmers believe about x" articles.
← PreviousPage 6 of 9Next →