Things on a Heap

|
A Collection of Programming Ramblings by chjdev

New blog incomming

Currently working on migrating my Wordpress blog to jekyll on Github Pages. In the meantime I just wanted to say: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tempor nulla ligula, vel euismod eros sodales eu. Praesent at accumsan arcu, sed egestas dui. Praesent suscipit lorem ac mi aliquam, suscipit semper purus sagittis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque tempor nulla ligula, vel euismod eros sodales eu. Praesent at accumsan arcu, sed egestas dui. Praesent suscipit lorem ac mi aliquam, suscipit semper purus sagittis.

Read Scientific Papers on Your Kindle

Reading scientific on your Kindle (or other eBook reader) usually sucks. The text is usually only available as PDF or PS files and formatted in a way that is meant for printing in A4, or US Letter. A two-column layout is also very common, which further complicates things. In this post I show you a simple way to get these papers on your eBook reader for comfortable reading.

Universal Python Server

I recently read a cool post by Joe Armstrong in which he showcases his favorite Erlang program: the universal server. The program creates an easily distributable generic server, that can perform any concrete task you tell it to by sending it a function. E.g. it could act as an HTTP server, RPC server, etc.

From Monoids to Monads in Python

 

Monads are a concept you will run into sooner or later when you learn about functional programming. In the most general sense, Monads are a smart way to structure a functional program and handle side effects. Although the math concepts can be intricate, using them in your programs is quite straight forward. One of the most trivial Monads for example will simply execute functions in a specified order.