Better HN
topnewbestaskshowjobs
Log inSign up

lucas_codes

186 karma · joined Apr 25, 2021 (5y ago) · 76 submissions

lucas-levin.com/code
Submissions

comment 3mo ago · link · parent

I thought they were destroyed just because they rip out the spine to scan them more easily?

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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!

comment 1y ago · link · parent

If you only want a hint, in postgres you could always do an EXPLAIN and see the estimated number of rows returned

comment 2y ago · link · parent

This is how people write dates in Chinese-speaking countries

comment 2y ago · link · parent

You can, but your CSS won't work properly for nearly 20% of users

comment 3y ago · link · parent

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 :)

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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).

comment 3y ago · link · parent

Is this how throat singing works? https://www.youtube.com/watch?v=qx8hrhBZJ98

comment 3y ago · link · parent

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

comment 3y ago · link · parent

In Taiwan, they don't use Latin script to type, but a phonetic script based on character radicals called bopomofo

comment 3y ago · link · parent

There's one of these at Tempo Rubato, a concert venue in Melbourne Australia

comment 3y ago · link · parent

"Hybrid piano"? What does that mean?

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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...

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Whoops, of course it does!

comment 3y ago · link · parent

What is wrong with

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

?

comment 4y ago · link · parent

I thought rem was "root em" since its relative to the document root and not relative to the parent like em.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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!

comment 4y ago · link · parent

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...

123