#tools
Incredibly large selection of hooks for whatever you need.
Anything from useless
Last one is quite a help in function components where you dont get prev values out of the box like with some lifecycle methods in class components.
https://usehooks.com/
Incredibly large selection of hooks for whatever you need.
Anything from useless
useRenderCount - cuz you should use browser tooling to properly track unnecessary renders, to handy useDebounce, useFetch or usePrevious. Last one is quite a help in function components where you dont get prev values out of the box like with some lifecycle methods in class components.
https://usehooks.com/
❤7
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4
This media is not supported in your browser
VIEW IN TELEGRAM
#thoughts
Speaking of QR codes.
Image above is a totally valid QR code. Had a bit of playing with stable diffusion over the weekend.
Might take a bit to get recognised by a scanner, but that's the balance it's tricky to keep (recognisability vs making it non-obvious).
This AI stuff is hyped for a reason guys 🔥
Speaking of QR codes.
Image above is a totally valid QR code. Had a bit of playing with stable diffusion over the weekend.
Might take a bit to get recognised by a scanner, but that's the balance it's tricky to keep (recognisability vs making it non-obvious).
This AI stuff is hyped for a reason guys 🔥
🔥20🤔3
#personal #uiux #learn
All of the above are also valid QR codes. Some people asked me to share more on that - there you go then 😂
First of all this images are from qrbtf - a service that attempts to automate this whole process. You can jump in and try to generate yours quickly with some prompts. The only thing it won't let you change url the QR points to as the whole system is still WIP.
But all they do under the hood is use stable diffusion with specific controlNet that integrates your QR into generated image. I really recommend trying it yourself though as the process is quite fun and you learn along the way. And I'll share all the links you need to get started.
There is one specific guy that deserves all kudos in the world that wrote the whole 101 on it. Not gonna reinvent the wheel here - so https://antfu.me/posts/ai-qrcode-101
I managed to even get it running on my lower M1 mac, so you should be able too.
The quickest way to get started
- install stable diffusion web ui
- get the controlnet extension
- now get controlnet qr pattern
And you are pretty much set. Then just follow tutorial from antfu.me and get your qr codes flowing in.
I personally also found useful to get revanimated - the quality it can generate even with simplest prompts is phenomenal.
The best sampling methods that I liked were DPM++ 2M Karras and DDIM.
Now to the most interesting part 🔥
It's all gonna come down to "oh, I cant scan the code 😭" vs "well fuck, it's obvious its a QR code 🫣". And you ll have to play with the control net settings.
Also one thing I didn't know is that not all QR scanners are the same, with this QR codes some might not be good enough. As a rule of thumb, try different ones - eg wechat scanner or iphone (there are 2, in camera and dedicated one).
And because you read this channel you'd already know that the most important things for any scanner is the finder patterns (those 3 large squares) - they tell the scanner it's actually a QR code so scan it pls.
Then smaller square is alignment pattern - becomes super important if you rotate you embedded QR code. Get this 2 points right and you ll increase the scannability.
Finally error correction is important, make sure it's not the lowest (aka you need to have more elements in the QR itself) cuz some of those can get missed when generating the image.
You can also completely change the way you input QR code looks, circles vs squares, dots vs lines etc. By playing with those you get more natural integration into objects in the images.
Like the one I had for this channel doesnt have obvious square finder patterns but you can still spot the elements in the table drawers that are pretty much those patterns. It reduced scannability for some scanners as a side effect but still made me happy and was good for POC.
That should be just about the largest postthis year ever 😀 and just about enough info for you to try it yourself if you also find it amazing like I do.
All of the above are also valid QR codes. Some people asked me to share more on that - there you go then 😂
First of all this images are from qrbtf - a service that attempts to automate this whole process. You can jump in and try to generate yours quickly with some prompts. The only thing it won't let you change url the QR points to as the whole system is still WIP.
But all they do under the hood is use stable diffusion with specific controlNet that integrates your QR into generated image. I really recommend trying it yourself though as the process is quite fun and you learn along the way. And I'll share all the links you need to get started.
There is one specific guy that deserves all kudos in the world that wrote the whole 101 on it. Not gonna reinvent the wheel here - so https://antfu.me/posts/ai-qrcode-101
I managed to even get it running on my lower M1 mac, so you should be able too.
The quickest way to get started
- install stable diffusion web ui
- get the controlnet extension
- now get controlnet qr pattern
And you are pretty much set. Then just follow tutorial from antfu.me and get your qr codes flowing in.
I personally also found useful to get revanimated - the quality it can generate even with simplest prompts is phenomenal.
The best sampling methods that I liked were DPM++ 2M Karras and DDIM.
Now to the most interesting part 🔥
It's all gonna come down to "oh, I cant scan the code 😭" vs "well fuck, it's obvious its a QR code 🫣". And you ll have to play with the control net settings.
Also one thing I didn't know is that not all QR scanners are the same, with this QR codes some might not be good enough. As a rule of thumb, try different ones - eg wechat scanner or iphone (there are 2, in camera and dedicated one).
And because you read this channel you'd already know that the most important things for any scanner is the finder patterns (those 3 large squares) - they tell the scanner it's actually a QR code so scan it pls.
Then smaller square is alignment pattern - becomes super important if you rotate you embedded QR code. Get this 2 points right and you ll increase the scannability.
Finally error correction is important, make sure it's not the lowest (aka you need to have more elements in the QR itself) cuz some of those can get missed when generating the image.
You can also completely change the way you input QR code looks, circles vs squares, dots vs lines etc. By playing with those you get more natural integration into objects in the images.
Like the one I had for this channel doesnt have obvious square finder patterns but you can still spot the elements in the table drawers that are pretty much those patterns. It reduced scannability for some scanners as a side effect but still made me happy and was good for POC.
That should be just about the largest post
🔥8👏7💯4❤3
Best JS framework to date!
Spoiler : ⛔️ ⛔️ ⛔️ ⛔️ ⛔️
Please open Telegram to view this post
VIEW IN TELEGRAM
💩30🤔17🤣12💯5❤1
TheFrontEnd🔥
#tools I've finally might have found a decent rich text editor for react - megadraft 🔥. Needed something a bit more modern for React that is also quite extensible (eg allows files D&D and markup). Also mimicking something like telegraph (doesn't have to…
Just found an alternative to megadraft.
Lexical.
A completely different approach, super flexible, but also quite complex compared to megadraft. Yet it gives you everything you need, mentions, hashtags, custom plugins, you name it. UI is also "up to you".
Now it makes me think - megadraft is 20 min plug and play solution, lexical is better long term for scalability. Gotta really analyse which one to pick (quick dev time now vs long term extension benefits).
Lexical.
A completely different approach, super flexible, but also quite complex compared to megadraft. Yet it gives you everything you need, mentions, hashtags, custom plugins, you name it. UI is also "up to you".
Now it makes me think - megadraft is 20 min plug and play solution, lexical is better long term for scalability. Gotta really analyse which one to pick (quick dev time now vs long term extension benefits).
🔥7❤1
This media is not supported in your browser
VIEW IN TELEGRAM
#news
What's all the hype around ditching typenoscript recently?
🔗 Link
Like how is it surprising to some that with type safety you gonna spent more time with what some refer as "type gymnastics" to simplify your life in the future? 🤔
What's all the hype around ditching typenoscript recently?
🔗 Link
Like how is it surprising to some that with type safety you gonna spent more time with what some refer as "type gymnastics" to simplify your life in the future? 🤔
🤔2
#tools
Wow, this is golden 10/10 🔥
https://www.refactornow.dev/roast
Your personal AI code roasting tool. Been throwing it a few snippets from online and it comes back with pretty nasty, but also fair feedback.
It can also come with a good feedback where it ll be like "huh, well I'm impressed and surprised, good job" 😂
I guess my PR reviews will get to a new level with this 😈
Wow, this is golden 10/10 🔥
https://www.refactornow.dev/roast
Your personal AI code roasting tool. Been throwing it a few snippets from online and it comes back with pretty nasty, but also fair feedback.
It can also come with a good feedback where it ll be like "huh, well I'm impressed and surprised, good job" 😂
I guess my PR reviews will get to a new level with this 😈
🤩14😱2
#thoughts
Today I had a pleasure (not really) getting to think about how far should I go in supporting Safari.
At some point I found this which basically quoted:
Which somehow resulted in aiming at Safari 13.1.2 with ended support in 2020 but some users still on it.
Boy, did I suffer. I'm using Antd as UI lib at work and let me just mention 1 thing - Grid is broken everywhere on our latest version.
One thing you'd hope UI lib does really well is grid and layout, I can add
How is that possible that there is a browser out there that is still so bad?
Speaking of which, I'm currently using Arc for my main browser for more than 2 months and couldn't be happier with it (if any of you folks looking for a switch)
Today I had a pleasure (not really) getting to think about how far should I go in supporting Safari.
At some point I found this which basically quoted:
Safari is the baseline in terms of web standards: The sites we develop must work in Safari versions at least 2 years old.Which somehow resulted in aiming at Safari 13.1.2 with ended support in 2020 but some users still on it.
Boy, did I suffer. I'm using Antd as UI lib at work and let me just mention 1 thing - Grid is broken everywhere on our latest version.
One thing you'd hope UI lib does really well is grid and layout, I can add
border-radius to buttons myself..How is that possible that there is a browser out there that is still so bad?
Speaking of which, I'm currently using Arc for my main browser for more than 2 months and couldn't be happier with it (if any of you folks looking for a switch)
❤25💯2🤩1💩1