Anardil

A spot of sunlight

Articles with the computers tag

Raspberry Pi Timelapse

Introduction Like videos? If you have a raspberry pi with a camera, you can easily create a fully automated timelapse. Let's walk through some setup and scripts that make this possible. If you don't have a camera, you can pick up a 5 megapixel one...

Haskell coreutils - which

Introduction I've implemented a couple Unix core utilities in Haskell, and want to continue a series of posts going through the details - starting with simple programs like cat, seq, and which, and then moving on towards more featureful programs like...

Haskell coreutils - cat

Introduction I've implemented a couple Unix core utilities in Haskell, and want to start a series of posts going through the details - starting with simple programs like cat, seq, and which, and then moving on towards more featureful programs like...

Steam Library on Network Attached Storage

The Problem Suppose you have a lot of Steam games, but not a lot of local disk space. Maybe you're using a laptop for some light gaming and don't want to sacrifice several hundred gigabytes of your local storage. Maybe you have a couple computers and...

Stream Programming

Introduction Most simple iterative programming tasks can be rephrased in terms of a 'map' or 'reduce' operation. The advantage here is that if we can work our problem into a map - reduce problem, we can easily increase parallelism. A simple example...

Binary Tree in Haskell

Introduction Binary trees have internal structure; for any given node, all elements to the left are less than the current value, and all elements to the right are greater than the current value. For instance: 5 /--+--\ 3 6 /-+-\ 1 2 Lets build a binary...

Dynamic Shell Scripting

Summary We can use declare, eval and text manipulation tools like awk and sed to dynamically redefine shell functions based on their content or name. This allows us to add lines or generate entirely new functions. Introduction Bash and other shell...