Меню ▼

Design ⚡️ Life

Alex Buznik Logbook

MacOS updates make less sense

I’ve been a Mac user for over a decade now and here comes a little rant.

The transition from Windows started mainly as a job requirement – back then Macbook was the only laptop within reach with 2x pixel density. As a frontend-developer it was important for me to see things as the designers would see them. Also there was quite some vane and conformity – in an average frontend/web conference I would often see people with Macbooks (and they had glowing logos!) and less people with other laptops.

***

During all this time I’ve never had an iPhone as my primary smartphone, so was kind avoiding most of the Apple ecosystem – Photos, iMessage, Siri etc. Not really as a protest, but I’ve always felt Android is more compelling, open to the developers and generally it had new features much faster.

In this context most of the MacOS updates usually felt like coming with a bit of a lie.
Those updates are now presented annually as a major OS version, with lots of marketing material and design effort around it. However every time I look inside the release notes I feel stumbled.

Let me elaborate – Safari and Mail updates does not seem to me as an OS update. Most of the time these updates are less visible to me if at all. In rare cases Mail updates result in breaking smaller stuff – like my HTML signature is gone because they changed files location.
The rest of the Apple programs updates usually make very little difference for the people outside ecosystem, like me.
And the more in future, the less relevant it is, and more locked-in this ecosystem seems to me.

From what I remember there were a few major updates – like moving from 32bit system and the introduction of Siri.

Okay, don’t get me wrong – I understand that this design refresh comes with a huge engineering effort under the hood. But for the usual annual update that involves new icons and few features here and there I feel there is a lot of energy wasted.

A very interesting interview with a successful trader

There is no path

Antonio Machado (1875–1939) was a prominent Spanish poet and playwright. In one of his poems, he said:

Traveler, there is no path.
The path is made by walking.

Well, the same said my travel instructor, Oleg)

AI game experiment (init)

Inspired by some things that my direct manager is doing with ChatGPT I tried to do another experiment.

This time I asked it to develop a sea ships game, with a network connection where multiple players can take turns.

Overall for this version I spent about two hours and several iterations to create front-end and backend.

Obviously, this is just a prototype, but overall it’s a start!

Strange case with prisma foreign key error constraint failed on applicationId P2003

Hi.

Thought I should share this.
I’ve done some development on a pet project using prisma and MySQL.

I added a new model with a relation and was getting an error prisma foreign key error constraint failed on applicationId P2003 when trying to create this new model even though the code and schema looked ok.

The fix was to rename the reference field to a lower case, so it’s different from the actual model name. Probably trivial for someone, but I haven’t any explicit notes against it in the docs.

model Invoices {
  id            Int             @id @default(autoincrement())
  ...
  // works:
  application   Application     @relation(fields: [applicationId], references: [id], onDelete: NoAction, onUpdate: Cascade) 

  // does not wrk:
  Application   Application     @relation(fields: [applicationId], references: [id], onDelete: NoAction, onUpdate: Cascade) 

  applicationId Int
}

Procrastination

Sometimes, as a wood-maker, it’s hard to find time to make things for yourself.

Year of full-scale war

One year since Ukraine stands off the full-scale invasion from russia.

Some pictures that I have saved during these days. Sorry, I do not have the authors for the pics, ping me if you know who should be mentioned.

Photos:

Posters:

Reality strikes

A couple of years ago everybody was freaking out over the sick, irrational and needless violence in the fictional story of the Game of Thrones, but reality has proved to be much more harsh and much more irrational.

Pictures are not mine, collected from different sources over time.

Cool stuff of the week

Hey.

It’s been a while since the last time I’ve posted anything here.

Full-scale war was launched by russia in Ukraine. The life was kind of quirky these months.

Anyway, the company I work for, managed to continue the business, almost without changes. Some part of the team has moved out of Ukraine, but otherwise our work rhythm is back to what it was before.


Found some interesting things I wanted to share:

Simple JSON to TypeScript Converter
We are in the process of migrating to TypeScript, so this is quite handy.

You put in a bunch of JSON of your data, and get a typed interface(s) as a result: http://json2ts.com/

Simple notification system / bot for github/gitlab
(and some other services) – https://danger.systems/

I made a small demo for my team https://gitlab.com/beshur/danger/-/merge_requests/5


Help Ukraine win this war by donating to charity https://www.comebackalive.in.ua/donate

Smoke and Temperature Sensor for my 3D-printer

Sometime ago I bought an IKEA smoke sensor. It lived some time in the kitchen as expected, but then I put next to my 3D-printer that was located in the garage.

But then, it doesn’t make a lot of sense if it only fires an alarm in case of smoke, since I maybe away, so I decided to hack it into something IoT.

There are a couple of useful blog (this and that) posts that I started from.

It took quite a while to just follow the advice given there and to solder properly ground connection to the CS2105G0-S12 chip (that people suggest is actually MC145012). Anyway my project is a bit simpler in a way – the wi-fi module (Wemos D1 mini) is constantly powered with USB and feeds data every second to Blynk.

One other issue I had was that smoke sensor IC is using 9V for power and signals, so it had to be stepped down. With invaluable help from my former colleague Mich, I did it using an NPN transistor and it works pretty smoothly.

Printed a special case for it to fit all the components.

In case of smoke the Blynk app will send me a notification. Later on, it will also turn off the smart socket that the printer is powered with.

Arduino source is on Github. I will try to put some more details and the scheme later.

I have no illusions that this thingy is pretty weak in terms of safety and reliability – there are too many things to break in case of a real fire – but it was an important learning project for me.

Spelling error report

The following text will be sent to our editors: