profile

Welcome to rockyourcode!

This is the coding blog of Sophia Brandt, a tax officer turned programmer.

Fake Webcam Background for Arch Linux With Docker (Using akvcam)

Fake Webcam Background for Arch Linux With Docker (Using akvcam)
Fake virtual backgrounds for your online meeting on Linux I’ve been attending a lot of video conference calls lately — like so many of us. Others had nice-looking virtual backgrounds. But there was no option to create those backgrounds on my Linux machine. For example, the Zoom version for Linux only allows me to “touch up my appearance”. But there is no option to set a virtual background.
Read more →

Notes on Angular Component Communication (Pluralsight Course)

Notes on Angular Component Communication (Pluralsight Course)
cover image from PluralSight I’m learning Angular right now – as a React.js fangirl. Pluralsight offered a free month of learning in April. I’ve taken advantage of it. Here are some notes on the course Angular Component Communication by Deborah Kurata. Angular Component Communication Introduction components need to communicate with each other, with its template, with the router, can use a service as an intermediary check GitHub repository Communication with a Template template binding, e.
Read more →

Notes on Angular Services (Pluralsight Course)

I’m learning Angular right now – as a React.js fangirl. Pluralsight offers a free month of learning in April. I’m taking advantage of it. Here are some notes on the course Angular Services by Brice Wilson. Angular Services What and Why? reusable piece of (single) functionality shared across components (is it like a React hook? 🤔) able to be delivered when and where it is needed components should only contain logic for the view, all other logic should be inside services Creating and Using Services service = basically a TypeScript class @Injectable decorator Provider required Example Service:
Read more →

TIL About the Global Command in Normal Mode in Vim

Vim’s command line mode is as arcane as the rest of the editor. Today I learned how to use the global command with normal mode Use case: I had a file with a few lines that were separated with a symbol: com.google.android.googlequicksearchbox | Search Widget com.google.android.inputmethod.latin | Gboard com.google.android.marvin.talkback | Talkback com.google.android.music | Google Play Music com.google.android.onetimeinitializer com.google.android.printservice.recommendation | Mobile printing service I wanted to deleted everything after the first “word”: the empty space, the | and everything else.
Read more →

Next.js With Apollo, SSR, Cookies, and Typescript

How to wire up a Next.js TypeScript application with Apollo Client, using Server Side Rendering and Static Site Generation In this blog post I’ll show you how I created a working Next.js TypeScript setup with Apollo Client. You can fetch data from a GraphQL endpoint both on the Node.js server as well as on the Next.js client, utilizing the Apollo Cache. You are also able to work with protected endpoints using cookie-based authentication.
Read more →

Notes From Principles of Project Planning

Notes From Principles of Project Planning
Principles of Project Planning by Don Burks is a book for junior developer on how to execute a software project from start to finish. The small booklet is easy to understand and contains some helpful tips for people new to the tech industry (coding bootcamp graduates, freshly minted CS graduates or other career changers). Here are my notes. TL;DR Don’t start a new project fresh from an idea. Take your time to plan the data, user specifications and design.
Read more →

TIL: Sqlite Foreign Key Support (with Go)

Using foreign key constraints with SQL databases is very common. You can use those constrains to model relationships between tables. Here is an example: CREATE TABLE artist( artistid INTEGER PRIMARY KEY, artistname TEXT ); CREATE TABLE track( trackid INTEGER, trackname TEXT, trackartist INTEGER REFERENCES artist(artistid) -- Must map to an artist.artistid! ); Sqlite is a small and self-contained implementation of SQL. SQLite databases are used in production all around the world.
Read more →

TIL: How to Watch YouTube Videos With mpv and Keyboard Shortcuts

Distraction-free YouTube (and other videos) on your computer The free YouTube version has ads and suggestions what to watch. Those try to keep the user on YouTube’s website. Tons of useful videos exist. If you’re like me, you’ll soon fall into the rabbit hole and spend too much time on YouTube. Today I learned how to use a distraction-free method of watching YouTube with mpv and (optionally) Vimium.
Read more →

Use Vim for C# Development on Linux

Vim Language Server Protocol support for C# If you’re an avid Vim user, you’ll likely try to use the terminal editor for everything text-related. In this post, I’ll show you how to get convenient support for C# with Vim on Linux. C# is traditionally one of those programming languages that profit from an IDE, an integrated development environment. Vim can still be a viable alternative if you need minimal features like type definitions or auto-completion.
Read more →

Learning Strategies That Experts Use

Learning Strategies That Experts Use
Methods from prolific learners to help you accelerate your learning We all know that life-long learning is necessary for a successful career path in web development. Tech is a fast moving field. We constantly need to keep our skills sharp. Knowing that you quickly need to learn new material does not solve the problem of how to achieve that. What methods can we use to learn a new technology, framework or language as fast as possible?
Read more →

Sign up for the newletter!

powered by Buttondown