HNHacker News
TopNewBestAskShowJobs

lucas_codes

186 karma · joined April 25, 2021

lucas-levin.com/code
submissionscomments
lucas_codes··on Secondhand book sales are booming. Is it because of AI?
I thought they were destroyed just because they rip out the spine to scan them more easily?
lucas_codes··on A look at Cloudflare's AI-coded OAuth library
Plus you just know in a few months they are going to be stale and reference code that has changed. I have even seen this happen with colleagues using llms between commits on a single pr.
lucas_codes··on Four years of sight reading practice
I love data visualizations like these.

OP if you want to improve sight reading faster, I would recommend using non-random notes - context is very important when sight reading and if you get a professional pianist to sight read random notes they will be much, much slower.

Sight reading factory is one site I know that does this a bit better

lucas_codes··on Designing Backgrounds with LLMs and React
I think the author is discounting their own design sense which is necessary to come up with the ideas! (Or even to take inspiration from other sites.)

Side note, better not animate with useState when you can use CSS animations, react renders are cheap but they add up and can't match the browser's layout/styling engine!

lucas_codes··on Keyset cursors, not offsets, for Postgres pagination
If you only want a hint, in postgres you could always do an EXPLAIN and see the estimated number of rows returned
lucas_codes··on Yihui Xie, RMarkdown Creator, Laid Off from RStudio
This is how people write dates in Chinese-speaking countries
lucas_codes··on StyleX – Meta's styling library
You can, but your CSS won't work properly for nearly 20% of users
lucas_codes··on Ask HN: Who wants to be hired? (November 2023)
Location: Melbourne, Australia

Remote: Yes or hybrid

Willing to relocate: No

Technologies: Typescript/Javascript, React, Node.js, Python, SQL

Résumé/CV: https://www.dropbox.com/scl/fi/1fw8k5v98kkccuzzn4u4u/cv.pdf?...

Email: mail@ the domain in my profile, or see CV

Website/Portfolio: https://lucas-levin.com/code/about

I am a full stack developer specializing in Typescript. I'm comfortable with bringing greenfield apps from conception/design to deployment, database and api architecture and implementation, web design, and even more niche tech-adjacent fields such as teaching and the arts.

I pride myself on initiative, curiosity and high productivity. I also like playing the viola and studying Chinese :)

lucas_codes··on Payload 2.0: Postgres, Live Preview, Lexical RTE, and More
Big fan of Payload, which I used (1.x) when I updated my personal website/blog (in my profile) at the start of the year.

It was super easy to implement comments with replies and optional email notifications.

lucas_codes··on Vocal fry register
Are we talking about the same thing? I mean the Mongolian throat signing in that YouTube link, which has crazy low fundamentals (I have a deep bass voice and it's much lower than I can sing).
lucas_codes··on Vocal fry register
Is this how throat singing works? https://www.youtube.com/watch?v=qx8hrhBZJ98
lucas_codes··on Paperless-ngx – Open source document management system
How do people usually backup their self-hosted docker services using postgres? I have been using docker-volume-backup [0] and just saving the postgres data directory, but I've found it requires a minute of downtime to backup properly.

[0] https://github.com/offen/docker-volume-backup

lucas_codes··on Has Google Translate been fixed yet?
In Taiwan, they don't use Latin script to type, but a phonetic script based on character radicals called bopomofo
lucas_codes··on The Alexander Piano
There's one of these at Tempo Rubato, a concert venue in Melbourne Australia
lucas_codes··on Unveiling Ravenchord: A Radical Piano Redesign from Dan Harden
"Hybrid piano"? What does that mean?
lucas_codes··on Unveiling Ravenchord: A Radical Piano Redesign from Dan Harden
Actually, human perception is incredibly good, though I agree prone to biases. But there are no double blind studies on this, so why dismiss experts' opinions so readily?

> Electronic keyboards have weighted keys and similar tactile feedback to regular acoustic pianos, so this is a solved problem.

For professionals, the difference is huge. Seriously massive, on even the most expensive electronic keyboards. This is why I replied (unusual for me) - saying "it's a solved problem" is so far off the mark

lucas_codes··on Unveiling Ravenchord: A Radical Piano Redesign from Dan Harden
I don't know about wine, but those violinists were asked which instrument they preferred, not which was a Strad.

I don't see how that or a blind test is relevant to what I wrote anyway? Except for a cheap dismissal.

lucas_codes··on Unveiling Ravenchord: A Radical Piano Redesign from Dan Harden
I'm a professional musician but not on piano, and even I can tell the difference.

While it may be true that velocity is the only variable, it's not a physics problem. As a player you can't choose the instantaneous velocity for the note, and the note is played at the same time or immediately before/after other notes, which all adds more variables to the touch and the movement of the musician.

Therefore the whole action matters, including how the key travels, the decoupling point, the resistance of the multiple parts of the action, the rebound... etc

It's interesting you're happy to disregard pianists opinions on the matter. Perhaps you think experts are too mired in tradition to see the truth? That may be true sometimes, but you also don't have the same grasp of what's involved as they do.

lucas_codes··on Unveiling Ravenchord: A Radical Piano Redesign from Dan Harden
This is such an HN comment ;)

Sibling comments are correct that weighted keys, graded hammer action, etc are all much better than a plastic level but still don't have a proper sense of touch that is linked directly to the sound.

It's not even a matter of training with a particular touch and being used to it - the link between the body and the sound is incredibly important and mechanical means of making the link are still far superior.

lucas_codes··on Unveiling Ravenchord: A Radical Piano Redesign from Dan Harden
Love the idea and the design - but if the hammer isn't mechanically coupled to the keys, it's hard to imagine it will have proper control and feedback from the touch.

I'm sure the designer is fully aware of this, so it's probably intended for it's niche

lucas_codes··on A SvelteKit template for building CMS-free editable websites
Sounds like you would like Netlify CMS.

You can set it up so it edits a few markdown files, and these files are used in your static build.

lucas_codes··on CSS Masking
One great masking effect that doesn't use masking which I love:

If you have a tall-ish avatar with a transparent background, overlay it on a coloured circular div (border-radius: 999px) and set only the bottom corner-radius.

That way it sticks out the top, which looks great and only a few lines of CSS.

lucas_codes··on CSS-Only Widgets Are Inaccessible
I wrote a short post last week on burger menus using the <summary> tag. It should be accessible, being more or less the intended use for the element, but curious to see HN rip it apart :)

https://lucas-levin.com/code/blog/burger-navigation-menu-wit...

lucas_codes··on My favourite 3 lines of CSS
All these comments complaining about complexity of the selectors - if you haven't read the MDN page on selectors in the last 5 (10?) years, perhaps now is the time?

We were begging for these features for years and it was a nightmare waiting for enough browser support.

lucas_codes··on <3 Deno
Whoops, of course it does!
lucas_codes··on <3 Deno
What is wrong with

  ["10","10","10"].map(parseInt)

?
lucas_codes··on What is the Difference between px, rem and em?
I thought rem was "root em" since its relative to the document root and not relative to the parent like em.
lucas_codes··on WSL 2: Why you should use real Linux instead
Plenty of people develop using wsl2 - perhaps the author should have asked for advice instead of writing a ranty blog post pointing out tradeoffs that are easy to work around for a big benefit
lucas_codes··on Avoiding homework with code and getting caught
Love it!

In the world of Music Conservatories, practice space is limited and there is a lot of competition to get a room booked. Many places use a niche scheduling product called Asimut specifically tailored to conservatories. Depending on how it is set up, for example, you could book a room 72 hours in advance on a rolling basis - this mean people were always on their phones booking rooms and then extending their booking times.

As you can guess, I wrote a simple python script that lived on a vps and read a schedule and list of my favourite rooms from a text file, would wait until the right time and book/extend for me with my username and password. Never told anyone except my girlfriend, who spent enough time with me to realize I was making bookings without ever looking at my phone!

lucas_codes··on Ask HN: How do you cope/work with endless cycle of webdev?
Partly I think if you have experience in web dev, you learn to recognize which frameworks/technologies are worth pursuing and which are not.

It's also worth noting, some of it comes down to personal preference and purpose of the project.

If you're just dabbling, stick with something battle-tested, and if you aren't sure what that is, phone a friend. Or post on HN...

Page 1 of 3Next →