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
This weekend I want to finish a few things on my personal website (mainly the blog section, which runs on Nostr): - Add markdown rendering in #Nostr posts. Just bold and italic should be fine, but bullet points, numbered lists, and code blocks would be nice to have as well. - Implement a line limit on posts longer than X lines, with a “Show more” button to expand the rest. - Add infinite scrolling so that when the user approaches the bottom of the Nostr timeline, more posts are fetched automatically. I think that’s basically the rest I need. Then I can begin working on the admin dashboard. The dashboard should have functionality to write and publish Nostr posts, save and manage drafts - I think that should be fine to begin with. At some point, I’d like to have a way to upload and manage my media. Perhaps by setting up my own #Blossom relay. #dev
Using the Nostr protocol in my own little projects really makes me appreciate open and decentralized protocols. They are just awesome, especially #Nostr!
Got the link preview _mostly_ working. Now it successfully fetches the title and thumbnail when linking to a YouTube video. Not sure why, but still having some trouble fetching the description for the linked video 🤷‍♂️ #dev image
Testing multiple quoted posts in the same post… #testing note1tk8ekddcf9vk76whrzx95nkxvktgr0nj8h60ymd5htx3z8lkynyqldm6jy And then two more quoted posts: note1cpektuaw6tf8yjj4wak2qctqe5qzh2yeed9q8nfjxh7zjpkdt7ysys5ars note18laf2hmh5njy7xsvjpjwrhgx9lw5amksh5p8zxyh2tydu72nnjhq7n7l9a A last one as well: note1e643wqvzwet3ztpwxd593g084a03epcnley2pgnvqnprcqhwkt6qht284r
Two people stabbed in knife attack at Horsens train station. #press
Slowly started learning #Kotlin for #Android dev. Very similar to Java, so seems easy enough. I know Java already from Spring Boot projects I’ve worked on, but it’s clear that the future of Android dev is Kotlin and not Java, so no reason for me to stick with Java. Also, Spring Boot works with Kotlin as well, so maybe I should just completely replace Java and move to Kotlin.
The updates are now live on my personal website. Still work to be done though. E.g. videos will go fullscreen when I visit the site from my phone. Maybe I’ll have to disable autoplay. Also, link highlights don’t work for all links. Probably because I need to adjust my regex pattern to recognize links more accurately. Infinite scrolling is something I should implement at some point. Currently, it fetches 20 of my Nostr posts, but it should of course fetch all of them - not at once though. But say it fetches 20 first, then user scrolls near bottom, and it fetches 20 more posts. #dev View quoted note →
Testing a post with multiple lines. Some text here. Some more text. Even more text. And text all the way down here… #testing
Link previews now work on my Nostr blog, except for links to YouTube videos. Still need to figure out how I can fetch the thumbnail and show that in the preview. #dev image
The current government might not abuse its powers, but parties change, and there’s no guarantee a future one won’t choose to exploit them. View quoted note →
Also, I think it would be super cool to build an admin dashboard for my personal website, where I can manage my #Nostr posts and even write and publish new ones directly. The URL could be admin.frederikhandberg.com But this would require me to find a different hosting solution than GitHub Pages, since that only works for static websites. Never tried using a VPS before, so that would be a good learning opportunity. Seems like they are pretty cheap to rent. Like 5 USD a month. View quoted note →
I think the next functionality to add to my personal website is support for Markdown. I want my blog posts to render Markdown elements like **bold text** and _italic text_.
On a walk 🌳 Summer really is the best time of the year ☀️ image