Frederik Handberg's avatar
Frederik Handberg
npub1nj0c...2gqz
23 🇩🇰 Studying for a degree in Software Engineering while building fun projects and working freelance as a News Photographer 📷 I share my software projects, photos and videos from my work as a news photographer, and progress updates as I learn to sew garments. Basically, I just write about my hobbies. frederikhandberg.com
I have worked on implementing tabs and I think I'm quite happy with the result so far. I have mostly been spending my time getting the UI to look good with some animations _(the animations could use some more work though)_. It's possible to rearrange tabs by dragging a tab left and right. Simple stuff like closing a tab also works. I do need to get the shortcut `CMD + W` to work as well, so it's faster to close tabs. The home-tab cannot be closed, so when the user selects the home-tab (or there is no other tabs except home-tab) and clicks the close-shortcut, it will not close the tab, but instead close the window. **Problem:** It's only possible to drag tabs in the horizontal direction (x-axis). This means, tabs can only be dragged inside the tab-area. But ideally, it should be possible to drag tabs outside the tab-area. When doing so and releasing the tab, it should open the tab in a new window. I'm struggling a bit to get this behavior working. Funny enough, it works fine except when using a ScrollView, because then the tab will clip to the ScrollView. This means the tab will just be hidden in the UI when trying to drag it outside the ScrollView... I am switching between a normal HStack and a ScrollView depending on the amount of tabs. If there are too many tabs to show in the viewport, the app will switch over to using a ScrollView, and this is where the problem begins, because it hides the tab when trying to drag outside. Also, the switching between HStack and ScrollView can cause some glitches. #dev #SwiftUI #AppKit
Portable identities are the biggest reason why I use #Nostr. Before I started using Nostr, I was using #Mastodon, but I was really annoyed that I couldn’t just move to a new instance. Well, Mastodon is a bit complicated, because it is technically possible to move from an instance to some other instances (not all, it depends on the individual instance), but you will lose ALL of your content (posts and replies) which makes moving between instances completely useless. Why would I move instance if I lose all my stuff? With Nostr, there is no reason to worry about this. You just have your keypair and can use any client you want. You can even build your own. Coolest part is, you keep all your stuff like your posts/notes when using your Nostr identity on different clients. View quoted note →
Yeah, _at least for now_ is the important part here. They will keep trying to get this Chat Control proposal passed in the EU. Fighting for privacy rights is a never ending battle, unfortunately. View quoted note →
This mf’er is the biggest threat to online privacy in my country (Denmark), but also a huge threat to the rest of the EU because Denmark is the country really pushing Chat Control. View quoted note →
Will be interesting to see what #Canva is going to do about the #Affinity apps. They acquired the company #Serif more than a year ago. It’s no longer possible to buy or download the Affinity apps. They are gone from the website. However, they seem to have an announcement on October 30. I don’t know what to expect. Could be moving to a subscription-based model 😬 image
Their business model is getting investor money. They are not profitable and will not be anytime soon. Maybe never. They are running on the promise of AGI and later ASI. If they can’t create hype, they fail because investors lose interest at that point. It’s a hype-machine. Something Musk and Altman are excellent at. But AI is here to stay, so whether it’s OpenAI or someone else, I don’t really think it matters. Only way for OpenAI and the others to stop is if all the VC money is suddenly gone. The $20/month and $200/month subscriptions certainly aren’t generating enough money to keep the companies alive. View quoted note →
#Nostr is the solution to enshittification (or at least a similar protocol). Users need an easy way to leave a platform (client) and just use a different one without all the hassle of losing their account and data. Nostr enables users to take their identity and just switch to a different client. Nostr is pretty cool 😎 View quoted note →
It’s incredibly sad and disgusting how the European Union and United Kingdom have this desire to ban online privacy for its citizens.
Online #privacy will be a thing of the past if this bill goes through. Unfortunately, I think it will, but only time will tell… Next up, they are probably going to attempt to ban VPNs. View quoted note →
There’s basically nothing worse than waiting on something to get delivered imo. Especially not when it’s a valuable item…
I got the feature of reorganizing tabs to work a few days ago. Well, mostly working. The animation can look a bit janky sometimes. Also, I need to figure out how I can get the same behavior as Chrome, where if dragging a tab outside the “tab area” and releasing, it will open the same tab as a new window. #dev View quoted note →
Almost have tabs working in my notes app. I want them to behave similarly to #Chrome. When moving a tab, it follows the cursor - my app should work the same. I do already have the following-cursor animation working, but reorganizing tabs don’t exactly work yet. Kinda works, but not entirely. Lemme explain what’s wrong: If I have 3 tabs (tab 1 being left-most and tab 3 being right-most) and I try moving tab 1 to tab 2’s position. Tab 1 follows the cursor and you visibly see tab 2 moving to tab 1’s position with a nice smooth animation - however, this is where the problem begins! Now, I release tab 1, so you would expect it to become tab no. 2. But no… it goes right back to its original position which was being the 1st tab 😩 **The bug:** Right now, to change the tab positions, you must release the tab on top of the tab NEXT to the tab you wish to change with. For example, if switching tab 1 and 2, you must drag tab 1 on top of tab 3. Unless it’s the last tab, then you can just move it to the right position of the last tab, and they will change position correctly. **The fix:** I need to calculate the center point of each tab. If on the left side, change to left position. If on the right side, change to the right side. Pretty obvious, and should be fairly straightforward. #Swift #AppKit #macOS
This is so cool! 🔥 If you're developing native #iOS and #macOS apps, you know how frustrating #Xcode can be at times. It turns out, you actually don't even need Xcode when developing and building your project. I use #Zed for web development, and now I can also use it for native development with Swift 💻
#Biology is something I’ve always found fascinating and I really want to learn about it. Some time ago, I purchased a book called _Biology Made Easy_ and have been reading it whenever I have time. I’m still learning about the basics like mitosis, apoptosis, metabolism, cell signaling, different types of cells, etc.
I purchased 20 meters of black 100% cotton fabric to make some t-shirts. I bought from a supplier on Alibaba, so I'm very curious about what I'm going to receive 😬 $4 per meter. I think the price is okay, but I'm very new to this, so honestly not entirely sure if I am getting ripped off. A big part of why I chose to buy from Alibaba instead of locally in Europe is because finding 100% cotton with no elastics is so difficult. All of them are like 95% cotton and 5% elastics... #fabrics #sewing
Sora 2 is crazy good. Like really good! But at the same time, it's so damn sad... It's never been easier for scammers to manipulate people. #AI
I don’t think the #AI bubble (if it is actually a bubble) can be compared to the .com crash. Everything with a .com name had crazy valuations without creating any real value. LLMs aren’t like that. The AI companies do have super high valuations, but they DO create value for customers. Think about all the startups that can now work much more efficiently due to LLMs. I can see it myself. The progress I am making on my notes app is amazing, and not something I’d have been able to if I didn’t have #Claude helping me do certain tasks, so I can concentrate on other parts of the coding. View quoted note →
Really interesting video *(if you care about the topic)*: I'm not an AI researcher, but I wouldn't be surprised if we are nearing the end of progress for LLMs. They are so expensive to train and run. The fact that none of the AI companies generates a profit is crazy. It's not like they are losing just a bit of money. No, the numbers are massive...