Noah Loomans

How to work from home, Codam edition. 2020-03-13

The Codam staff has recommended everyone to work from home if possible. Because not everyone has a development environment setup to work from home, I thought I would create a quick guide.


In order to collaborate with your peers, screen sharing could be useful. For this, you can use the “Start a call” button at the top right of any slack channel. Anyone who is on that channel can join your call. One person can share their screen at a time and everyone can draw on that screen to e.g. point to code.

More info

If you wish to share more then one screen at a time you could use Discord.

If you use vscode you can also use the Live Share plugin to collaborate as if you shared an iMac.

Migrating from vogsphere to GitHub

If you only have your code on vogsphere you can push it to GitHub in a few steps.

  1. Create a GitHub repository
  2. cd to the folder on your iMac where you have your repo.
  3. git remote add github
  4. git push -u github master

If you have 2FA on your GitHub you need to use SSH instead of https. How to setup. The url will look like


If you don’t have a macOS device (like me) and want to work from home you probably want to use Linux. Windows users can use WSL to get a Linux environment.

I recommend Ubuntu for new Linux users. First, you want to install Git and the build-essential package.

sudo apt install git build-essential

build-essential contains all the required tools to compile C code on Linux. You may also choose to use the clang compiler instead of gcc, which will give more similar error messages to what we use at Codam. To do so, install the clang and lldb packages.

sudo apt install clang lldb

If your makefile uses the $(CC) variable instead of calling gcc or clang directly, you can choose which compiler to use by setting the CC environment variable. See my Makefile tutorial for details.

In some cases, the Linux code and macOS code need to be different. For this you can use the #ifdef statement. For example, if you want PATH_MAX you need to include it like this:

#include <ft_printf.h>
#include <libft.h>
#ifdef __linux__
# include <linux/limits.h>
# include <limits.h>
#include <unistd.h>
#include "env.h"
#include "builtin.h"

Full example

Articles from blogs I follow

Status update, March 2020

Hi there! I hope you’re reading this post snuggled up comfortably in your quarantine. Since I work from home, it’s not too different for me — I’m just brewing my own coffee instead of going to the coffee shop on the corner. Big thanks to everyone who’s takin…

via Drew DeVault's Blog 2020-03-16

What's cooking on Sourcehut? March 2020

Hello! This has been a very busy month for SourceHut. Thank you for supporting it during the alpha! Today our users are 13,195 in number, with 438 new users joining us since our last status update. Please give them a warm welcome! General News I’ve spent a…

via Blogs on Sourcehut 2020-03-15

A new Go API for Protocol Buffers

We are pleased to announce the release of a major revision of the Go API for protocol buffers, Google's language-neutral data interchange format.

via The Go Programming Language Blog 2020-03-02

Generated by openring