RSSAmplifier

Blog

Dino Angelov

Recent content on Dino Angelov

dangelov.comRSS feed ↗18 posts

Latest posts

Trading with Claude (and writing your own MCP server)

Ever wanted to check on your portfolio and trade some stocks directly with Claude? Well you’re in luck. Claude and MCP In November 2024, Anthropic open-sourced MCP (Model-Context Protocol) to standardize the way AI assistants interact with other tools. This standardization allows AI assistants to seamlessly integrate with various tools and platforms, enhancing their capabilities and…

Building a Home HQ: When a Tablet Just Won't Do

As a software engineer, I’ve learned that there are two types of solutions to any problem: the practical one, and the one that lets you play with new toys. So, as one of these days my girlfriend and I were discussing ways to better organize our household chores and upcoming events, I could have simply grabbed a tablet and called it a day. But where’s the fun in THAT? The Vision What I…

Remove a package dependency added via Swift Package Manager in Xcode 14.0 beta 4

I was recently working on v2 of Rest, a macOS & Windows app I built some years ago. It’s a break reminder app useful if you spend a lot of time on the computer. I had some trouble getting sound to play reliably on macOS Ventura’s beta (13.0 Beta 22A5311f), so I decided to try and install SwiftySound. Immediately ran into a dead end since it doesn’t support loading from Asset catalogs,…

Showing and hiding alternate menu items in Swift on macOS

For v2 of Rest I wanted to have menu items that show alternate titles and actions when the user holds Option. After going through a couple of answers on StackOverflow and discussions they linked to, I found out it’s now way easier than ever to achieve it. There’s no need to run custom loops or set unnecessary keyboard shortcuts at all. So here’s how you do it. First, in your…

Movable windows in Swift with no title bar

I recently sorted through 300+ emails of feedback for Rest, a macOS app I built some years ago. If you spend a lot of time on the computer, the app reminds you to take regular breaks. With my newfound motivation for a v2, I got to work. Since macOS 13 (Ventura) is due to be released soon, I wanted to use the latest possible tech and SDKs to build it - making it easier to maintain going forward.

Remove a package dependency added via Swift Package Manager in Xcode 14.0 beta 4

I was recently working on v2 of Rest, a macOS & Windows app I built some years ago. It’s a break reminder app useful if you spend a lot of time on the computer. I had some trouble getting sound to play reliably on macOS Ventura’s beta (13.0 Beta 22A5311f), so I decided to try and install SwiftySound. Immediately ran into a dead end since it doesn’t support loading from Asset…

Generate animations and video with Go, gg and ffmpeg

I’ve been making some generative art pieces lately and publishing them on my other Instagram account and I wanted to make some animations. Result first: So far I had only been using the excellent gg (Go Graphics) package for some static art. But how do you go from some static images to a video? Pretty easy apparently and you can follow along with the simple project I setup as a playground.

Make a PDF look scanned

Sometimes you need to fill out and send a document back, and a lot of places expect you to print and scan it, but not always do you have a printer handy or cloes by. In that case, you can fill out all the info directly in the document you received or even create the PDF yourself. You can then run it through ImageMagick and have it look like you filled it out, printed it, and then scanned it.

Connect a Raspberry Pi or Orange Pi to your Arch machine

Make sure the ethernet controllers on your machine and the Pi both have auto MDIX capabilities. If they do, you won’t need a crossover cable. Connect your Pi to your Arch machine. Open the Advanced network configuration and edit your Ethernet/Wired connection (double-click). Under IPv4 Settings > Method, select Shared to other computers. Add an address: Address Netmask Gateway 10.0.0.1 8…

Push Notifications for iOS and Android with a PHP back end

(Note: For Android, I only cover the PHP code used to send the notifications, while for iOS the guide is a lot more thorough.) Foreword At Free-eBooks.net, many of our readers wanted an easy way to get notified through our mobile apps about the newest titles we receive, so after exploring our options a bit, we set about implementing push notifications. What’s more, they’re also a great way to grow…

1 Year in the App Store – when “Move Fast and Break Things” doesn’t work

Yesterday I read Chad Etzel’s experience with his indie games in his post titled My iOS Indie-Game Numbers. In it, Chad generously shares a lot of information about his apps and the struggles he’d had. He also links to Jared Sinclair, who had previously also shared his experience. Both of them are a good read. This account, my own “a year in hindsight” post, has been in my drafts for a while now…

An up-to-date guide to using PLCrashReporter in your app

A while back, I received an email from a user of Rest.app that it was crashing for him a couple of seconds after start. I tried to replicate the issue by asking for the app settings and running it on the same OS version as he did, but I couldn’t pintpoint the problem. I did try to tighten up a few code areas that I thought might be the cause, but I didn’t have anything solid.

Dimming an external non-Mac monitor

I’ve started using an external monitor with my Mac a while ago and it’s always been bothering me that at night while my Mac’s screen does dim, the external monitor doesn’t. A few days ago, I decided to see if there was an app that could help me sync the dim level of my external monitor with the MacBook Pro’s built-in monitor. I looked at SmartSaver, Shades, Screen Shades, Shade Control and a bunch…

Writing my first Mac App

From 0 to App Store in 1 week. Mentioned on Lifehacker less than 3 weeks in. This is my experience with developing my first Mac App and publishing it in the App Store. I’ve been “trying” to get into programming for Apple products (whether OS X or iOS) for a while – i got an iPod Touch about 3 years ago in the hope that I could use it to entice myself to write an iOS app.

Rest

Rest is a small OS X (10.7 required) utility that sits in your menubar and reminds you to take a break every now and then. The app’s menubar icon slowly fills up as you work and will notify you once it’s time to take a break. You can customize the work and break periods and choose whether to be audibly reminded for each. The app will automatically adjust the break times and reset the timer if you…

Getting started with Sublime Text (and becoming more productive)

I’ve been trying to convince a few of my colleagues of the wonders of Sublime Text for a while, and I’m hoping this small guide helps make the switch from any previous editors out there. Sublime’s combination of autocompletion, command bar, extensibility, speed and rich features is really hard to find in any other editor. I’m not an IDE guy, so I’ve tried a few code editors starting from my first…

Setting up Boris on macOS

Boris is a great little REPL (read-eval-print loop, aka interactive shell) for PHP. It allows you to quickly test and try out PHP code in the terminal. Boris is fairly straightforward to setup and run on Linux, but chances are, you, like me, have never paid much attention to or even tried to use the PHP version that ships with OS X. And it seems like OS X’s PHP is lacking a few features, so you…

¡Hola!

I’m quadrilingual — speaking Macedonian, English, Spanish & Serbian. For more than a decade I’ve been programming professionally, developing backends for cross-platform apps & making websites visited by millions every month, as well as programming native applications for both the desktop and mobile. I’m interested in new technologies that enable me to do things faster — whether it’s a new…