How to add internal PDF links inside a table using Prawn and Prawn table
Published 10 July 2015 under ruby, prawn, pdf, software

On a recent project we needed to generate a PDF using Prawn. The PDF has links from a list of contents into a table. The normal way (when not using a table) for adding internal links is to do the...

Read more →

An easy way to send UDP packets in Linux
Published 26 May 2015 under software, udp

Bash gives us a very simple way of sending a UDP packet to an IP address and port: echo "This is my data" /dev/udp/127.0.0.1/3000 This example will send a UDP packet containing 'This is my data'...

Read more →

Python: show where a module was imported from
Published 19 May 2015 under python, software

After importing a module in python use the following to find out where it was imported from: import astroid astroid.__file__ '/usr/local/lib/python2.7/dist-packages/astroid/__init__.pyc' This is...

Read more →