New

The latest blog posts to take off on Hacker News. 5,273 posts.

Any topic
2024
4561

Making my bookshelves clickable

You can make regions of an image clickable with a number of techniques, from overlaying an SVG that contains onclick JavaScript handlers all the way to using image maps. I love this idea. I started to think about how I could create an image of my bookshelves that you could click to learn more about each book I am…

4563

How to copy a file between devices? (2022)

Introduction Copying a file across devices is painful. You’re on your phone, but you want to access a file that’s on your laptop. How do you do it? What about the other way around? What about copying any file between any of your devices? I asked my dad how he copies a file from his phone to his computer, and he…

4579

Not all TLDs are Created Equal

In light of the recent cancellation of the queer.af domain registration by the Taliban , the fragile and difficult nature of country-code top-level domains (ccTLDs) has once again been comprehensively demonstrated. Since many people may not be aware of the risks, I thought I’d give a solid explainer of the whole…

4586

How to center a div in CSS

Back in the day, centering an element was one of the trickiest things in CSS. As the language has evolved, we’ve been given lots of new tools we can use… But how do we pick the best option? When do we use Flexbox, or CSS Grid, or something else? Let's dig into it.