Email or username:

Password:

Forgot your password?
822 posts total
Niki Tonsky

Looks like earlier Unicode standards were published as books! With CD-ROMS added later

Niki Tonsky

I know distributed systems are hard, but maybe syncing one device with itself shouldn’t be that hard of a problem? Why is iCloud shitting its pants here? Do they store timestamps up to the hour precision only, or what? dominikmayer.com/2023/09/iclou

Vadim Makeev

@nikitonsky There’s still <center> element on Google’s main page in 2023. They stick to traditions!

Jordan Biserkov

@nikitonsky I love the document.f.q.focus()
Allegedly the single line of code with the highest impact ever written.

Niki Tonsky

So, JDK 21 & Clojure.

core.async go block -> Virtual Threads
dynamic vars -> Scoped Values
??? -> Structured Concurrency

Seems like we might need a library there...

Dimitri

@nikitonsky I cannot wrap my head around companies using Oracle Java. Why do they commit to it considering the recent licensing model change?! It is so hostile.

Andrej

@nikitonsky he probably thinks of this. Next google monetization approach - "Pay $8 to get first 3 results"

Florian Egermann

@nikitonsky He’s not wrong: I have uninstalled my adblocker because I found the internet too plain.

Niki Tonsky

I find it weird that Windows doesn’t know how its own cursor looks like. All four (!) white ones look different

A.S.

@nikitonsky “Perfect is the enemy of done” — someone at Microsoft.

Niki Tonsky

Phew. Finally finished Cyberpunk 2077. Took me 120+ hours over few years, but I’m glad I’m finally done with it. Also, a great game!

Niki Tonsky

Google Fonts @googlefonts, as a project, is undoubtedly cool. But I never understood why they don’t have search. They are search company, after all.

I mean, there is search, but it only searches for names. And you rarely need that. Try searching for a narrow font. Large x-height? Calligraphy? Cursive? Stencil? Not something that has the word stencil in the name, but actual stencil fonts, whatever the name. Hell, just for something that has italics?

Would be so cool to search their archives

Niki Tonsky

Phone cameras evolution, 2005 vs 2020 (photos by @grishka)

DELETED

@nikitonsky @grishka I wonder how much of it is actual camera tech (lens, etc) and how much is it improvements in software.

constpetrov

@nikitonsky @grishka in 2007 a fiend of mine took an iPhone to the hiking trip to use as a photocamera. He was booed on afterwards.
Now phones killed compact cameras completely.

Niki Tonsky

New project! A very simple Clojure Ring router that let you define routes in any order! WDYT?

github.com/tonsky/clj-simple-r

Niki Tonsky

Full HD HoMM III battles, expanded with Adobe Generative Fill. Before/after

Niki Tonsky

You can tell this company does design by the way they round their buttons

re-curse

@nikitonsky ahhhhhh! 👀 cannot close my eyes, but I cannot keep them open either ... why does anybody do that evil .. thing !

Niki Tonsky

Frontenders, question. I want my images

1. To scale down with container width, but not up over their natural size.

2. When page loads, have their height specified somewhere so that content doesn’t jump

3. Page can be loaded at any width, so just specifying full image height won’t work. It has to be the height of the container after it’s scaled down.

I have full image dimensions and can do any math on server before producing HTML

Is it possible? How?

iliazeus

@nikitonsky I'm not a real frontender, but shouldn't it work if you specify the natural height as the "height" img tag attribute, and then set up the scaling via CSS?

Vadim Makeev

@nikitonsky The best way would be to set dimensions in markup for each image:

<img width height>

It helps browsers to render responsive images knowing their ratios even before they’re loaded: no jumping, better rendering performance.

As for CSS:

img { max-width: 100%; height: auto }

Unlike your solution, this one won’t limit you to a certain aspect ratio set in CSS.

Niki Tonsky

Unicode exploration thread! Here are all currently assigned Unicode blocks.

1 small square == 256 codepoints.

1 large square == unicode plane, 65536 codepoints

Purple are CJK

Bright green at the end == private use.

Latin is top three squares on the left

Light gray == unassigned

Niki Tonsky

I like how Arabic code blocks are assigned ranges in reverse order

Niki Tonsky

USB 2? That’s a name I didn’t hear in a while

aim

@nikitonsky it always stay behind. 😅

actually most of the usb-c phones in android world are USB-2 in it's core. 😞

Niki Tonsky

Jekyll proved to be PITA to manage locally, so here we go, let’s try Clojure

Niki Tonsky

Every time I sit down to write a new blogpost, my local Jekyll setup won’t run.

One of Ruby, Bundler, or Jekyll somehow randomly breaks itself. I don’t even use Ruby for anything else!

Every. Freaking. Time.

Can’t you people chill?

Show previous comments
Felix Niklas

@nikitonsky that’s why you use PHP 🤪 there you only have to update every other year when webhosts deprecate your version.

Borys Pierov

@nikitonsky That was exactly the reason I switched to Hugo. Took some effort to translate the theme/template, but then it's just a single static binary... that's quite hard to break 😊

Zaͩnͦsͤt̀́rͤa̅̆̈

@nikitonsky Same here. I’ve migrated to the 3rd jekyll-recommended way of managing ruby, but it still happens…

Niki Tonsky

Best Bluetooth speaker I’ve ever had. Dead simple to pair

Olical

@nikitonsky does that support v2 or v3 of the PAN spec? I've had issues with mine and sometimes it just melts my phone.

Alex Trine

@nikitonsky wonder if it would work with a teapot, or it will error out with HTTP code 418

Go Up