Обложка канала

TheFrontEnd🔥

10926 @thefrontend

📝 Articles🗞 News 👓Tutorials 🤔 UI/UX thoughts ‌

  • TheFrontEnd🔥

    #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 post this year ever 😀 and just about enough info for you to try it yourself if you also find it amazing like I do.
    Gallery - QRBTF

    QRBTF AI QR Code Generator

    Qrbtf
  • TheFrontEnd🔥

    #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 🔥
  • TheFrontEnd🔥

    #learn 5 inconvenient truths about 👩‍💻. Technically it's 4, but all valid points. 🔅9 min 🔅Link
  • Реклама

  • TheFrontEnd🔥

    #tools 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/
  • TheFrontEnd🔥

    #learn And to quickly add on the latest post, can't remember if I shared this one before - this is the best, 10/10 🔥 explanation how QR codes actually work. 🔗 Twitter link that's worth your time Like did you know if you cover or break certain parts of the QR it will still work just fine? PS that's because the information is stored in repeated patterns, find out more in the link 😉
  • TheFrontEnd🔥

    ​​#learn #tools I've recently had a proper deep dive into all QR code related stuff. We needed to get a "check in" system on site with really poor Internet connection. People would come and scan their QR codes from the mobile app using tablet with a simple Web app. Turns out it's not that difficult once you get a grasp of it. I've used react-native-qr-svg on mobile to quickly render QR codes. And react-qr-reader on the web. Now, each user on the server gets a unique id (duh) and also what's called hmac. The QR itself on mobile is a combination of userId-hmac-totp The first 2 are used to check if the user is the one they claim to be (aka you can hack userId, but you won't find out their hmac unless you know the secret key), this prevents random people generating QR codes and checking in on site for their friends. The last totp part really is just One Time Password mechanism using OTPAuth. It refreshes every 10 seconds and rerenders the QR code, similar how you'd expect authenticator apps to work, except contained within QR. This prevents users to screenshot and share their QR codes with friends for them to check in for you. And that's it really. You get your fairly secured QR rendering and scanning mechanism, can now use it almost anywhere: office, sites, restaurants, parking, gyms, you name it.
  • TheFrontEnd🔥

    #tools Reclaim AI - amazing tool to finally sort out your planning (the fact that you are reading this after a terribly long delay proves the point 😂) Linked my work and personal calendars, set up a few habits, voila 🪄, it automatically rearranged everything according to my priorities and available times. What's even better is that it doesnt leak into my work calendar and also if someone invited me into a meeting it's gonna auto rearrange everything around it for me. Also built quite nicely 🔥 the UI is really smooth.
  • TheFrontEnd🔥

    #community One of our subscribers (@shuggggan) created an AI newsletter and giving away freebies that you might be interested in. All totally free and you can read it first before subscribing. If you are into AI, give it a through look 🔥

    There are tons of amazing entrepreneurship stories popping up each and every day in the AI space, and I want to capture some of that magic.

    Byte-Sized AI
  • TheFrontEnd🔥

    #learn This is literally the best way to utilise Web technologies for articles or courses. Never saw someone using this type of animation & styling instead of just making rendering bold. As a bonus it actually talks about how and why React renders, so definitely worth a read. https://ui.dev/why-react-renders
  • TheFrontEnd🔥

    #uiux #learn Yet another steal reference service Can be a handy tool whenever you face UI or UX issues and wonder how others did it. https://chamjo.design/
  • TheFrontEnd🔥

    <Head> Are you good in FrontEnd? <Head/> <Body> We've created the unique coding game, launch in the browser with a 3d world and rewarding crypto. Write code, have fun and earn TON, do interesting tasks from Junior to Senior level. Follow this link and explore TONight world: 👉 https://cutt.ly/L7uTRu3 <Body/>
  • TheFrontEnd🔥

    #uiux Whoever did this really outperformed themselves. Next level cursor tracking 🔥 Try on: https://lusion.co/
  • TheFrontEnd🔥

    #learn How browsers work Classic interview question: describe what's gonna happen in details if I type URL in browser and click enter. 🔗Link 👓 13 min
  • TheFrontEnd🔥

    #uiux 16 simple rules to improve your design. 🔗Link 🕶 17 min
  • TheFrontEnd🔥

    #tools New m3 is super sleek when looking at their docs. https://m3.material.io/ Still unsure giving users so much flexibility around color control is a good idea, but we'll see 😂
  • Реклама

  • TheFrontEnd🔥

    #promo 🔗 Link: https://apitester.org A completely free mobile API client that allows you to interact with APIs directly from your phone. Sounds amazing, doesn't it? You can connect to whatever kind of API you're using with API Tester, including REST, gRPC, SOAP, and GraphQL. An optimized user interface makes it easy to construct HTTP requests with parameters, auth information, and body data. Additionally, you can use global variables, import collections, and establish WebSocket connections. To guarantee that you have access to all of the best features, the app is updated frequently. Test it out for yourself, rate and review it on the App Store and Google Play.
    API Tester: Debug requests

    Mobile app to test any type of API on the go. Join 100k+ developers using API Tester. REST + GraphQL + WebSocket + SOAP + JSON RPC + XML + HTTP + HTTPS.

    apitester.org
  • TheFrontEnd🔥

    #learn Props drilling problem visualised. 🔗 Link
  • TheFrontEnd🔥

    #thoughts Big mistake #11 - Using React 😂 Source (which is actually a link to a free webinar if you are bored)