Home
Maheep Kumar's Webspace
Cancel

Generating permutations of a string in Swift

This post is a presentation of my attempt to create an iterative way to generate permutations of a string in Swift, similar to C++ STL’s next_permutation function. I got the idea to solve this prob...

MK Downloader progress log - Part 2

Most of this week was spent studying the innards of URLSession downloadTask API and some of its pitfalls. To recap, I had planned to migrate my download code from using the new async/await bytes A...

MK Downloader progress log - Part 1

This is the first in a series of planned logs of my current project MK Downloader, that I’ve begun this week. I’ve spent roughly 2 hours a day writing code for this project (and almost an equal amo...

Early troubles with Heterogeneous Computing

A very interesting article on macOS’s M1-CPU core management made the front page of HackerNews today. For those who are wondering what heterogeneous computing is, here’s an intro from the article i...

Detect app launch at login on macOS

WARNING: This post is no longer relevant for macOS 13 “Ventura” and later versions, since Apple has made changes to how login items are registered. Be careful. The Problem While working on KiW...

On USB-C Port

USB-C is now powering almost all of my mobile devices, except my oldest device, the 2017 iPad Pro 10.5-inch, which still rocks. Lately, it seems my OnePlus 6’s USB-C port is loosening and seems to...

macOS Software Checklist

TextSniper: OCR any printed text on your screen. Swish: The application site claims it as the missing gesture layer for macOS. Its a whole bunch of useful gestures that have made my life easie...

On downloading stuff

In the many years of using computers and different operating systems, I can say, without a doubt, that any user-facing program that is meant to download file(s) from the internet sucks. And there a...

A misadventure programming on Windows

Today, I decided to get started on learning the advance concepts of Rust programming language. I had everything I needed to get started - the books, my experience with Rust and a pleasant weather. ...

Rediscovering an old program

My first desktop I remember getting my very first desktop machine at the start of 8th grade. Before that, I had mostly used a UNIX with a UI (don’t remember which one) at my father’s office. The si...