Frederik Handberg's avatar
Frederik Handberg
npub1nj0c...2gqz
23 🇩🇰 I'm studying for a degree in Software Engineering while building fun projects and experimenting with drone technology. I'm also learning to sew garments as a hobby 🪡 Sometimes I work as a freelance photographer for different news outlets 📷 I mostly share progress updates as I'm working on my software and drone projects, and as I learn to sew. Basically, I just write about my hobbies...
This little RC nitro car has not been running for about 10 years. I replaced the glow plug to a new one and the tubes for fuel. It can start but then stops when I lower the RPM. It seems to not be getting enough fuel. image
This is the 3rd t-shirt I’m #sewing. The first one, I had made the neckband way too long and the top-stitching was bad. But the sizing was good, so my pattern that I made in CLO3D turned out really great. The second one was pretty good. Neckband was perfect length, but the neck cutout on the back piece was too far down I think. On this third version I have changed the neck cutout slightly on the back piece, but otherwise everything is the same.
The functionality of the formatting toolbar works nicely except for one bug I just discovered… When clicking on a styling button once, it applies the style, but then clicking a second time will hide the toolbar instead of keeping it showing. #dev #Swift #SwiftUI #AppKit #macOS image View quoted note →
Been working on building a floating toolbar to easily apply styling like bold, italic, etc. The floating toolbar appears once selecting text in a note. It appears correctly when only selecting text in one block. However, if you select text across multiple text blocks, it does not always appear correctly. It’s quite unpredictable, which makes it difficult to pinpoint the problem… #dev #AppKit
Agree with this. It is a problem that you cannot reset your nsec like you can with a password on Instagram, but it’s a hard problem to solve for anything decentralized with cryptographic keys, so I don’t see that changing. Idk what the solution is, but assuming that non-tech people will be able to manage a keypair is hard for me to believe. People click all sorts of shit on Facebook all the time and get their account hijacked. Just looking at my own family, I’ve seen it happen… But then again, who is the target audience of something as nerdy as Nostr? The barrier to entry may not be very high for opening Primal, generating a keypair, and looking at the feed. It just looks like a normal social network, so it’s familiar, but there is quite a bit of terminology to understand which increases the barrier to entry. View quoted note →
The next major feature I will implement in my notes app will be navigation history. This feature is like in a browser where you can go back and forth between the sites you have visited. In my app, the user should be able to go back and forth between the files they have opened.
Four people were evacuated from the apartment building and taken to the hospital. Two fire fighters were also taken to the hospital. No one is in critical condition according to authorities. Address: Tordenskjoldsgade in Horsens. #press
Fire in a building on Tordenskjoldsgade in Horsens. Six people have been taken to the hospital. #press
Apparently using `.glassEffect()` on the window background will break the functionality of the `.onDrop()` modifier. I wanted the Liquid Glass effect on the window background of my app, so I added the `.glassEffect()` modifier which worked, but then I could not drag-and-drop files in the infinite canvas anymore… Turns out that you need to use the AppKit class called `NSGlassEffectView` instead. Now the `.onDrop()` modifier works again.
A semi truck crashed on its side into a ditch on Vejlevej towards 7130 Juelsminde. #press image
I just finished working on a sidebar overlay for the notes app. When hiding a sidebar, the user can now move their cursor to the edge of the window, to show an overlay of the sidebar. I think it looks nice the way it slides out. I will probably lower the opacity of the sidebar overlays just a bit, so they match the appearance of the app with the translucent blurry background. Because right now, I don’t think the dark solid background color of the sidebar overlays match the app’s appearance. But I’m happy with how this feature turned out! 🚀 #dev #macOS #SwiftUI #AppKit
There are many weird quirks when using #SwiftUI and #AppKit. For example, say you have an overlay with an image above an `NSTextView`. You would expect the cursor to **NOT** change to the iBeam when you hover over the image because the text view is behind the overlay. However, it **WILL** actually change to the `NSCursor.iBeam` even though the overlay is above the `NSTextView`. The `NSTextView` just takes higher priority. I don’t know why, and I’m not really sure what the correct approach is to fix this. I don’t actually think there is a correct approach, because to my knowledge, there is nothing in the official documentation about it. I’ve had this problem ever since I began the development of my notes app, and I’ve never managed to completely solve it. But it’s also not something I’ve spent much time on either, though it is really frustrating. It’s something I see many take for granted when it comes to web development, as these things just work by default.
The best office is outdoors (at least with the current temperatures). #coding Working on an overlay that appears when clicking the tab which is already selected. There is a search input and a list of most recently opened files. Essentially, it’s just a quick way to open a different file. View quoted note →
Finished the tooltip for the notes app 🚀 It took longer than expected, but that's because I had trouble with the tooltip being displayed below other elements. I also had a problem with the scale and opacity animation. It seems like views will by default animate from the center of the window in a `ZStack`. Not literally be positioned at the center, but the initial position of the tooltip was skewed towards the center point of the window. It turns out that I should not conditionally remove the wrapper, but instead keep it always (the wrapper is used to calculate where tooltips should be relative to the button). Otherwise it will not have time to calculate the coordinates for the tooltip, which means it will fly in from center and then to its final position. Now I'm just keeping the position wrapper always, and then conditionally rendering the tooltips. #dev #macOS #SwiftUI #AppKit View quoted note →
Coding outside in nature is goated. Can't wait for summer... ☀️
Yesterday was my first time cooking outdoors this year. As usual for me, the menu is burgers 🍔😂 image