pHAT DAC on OSMC

Our new media center (after some blue smoke on the TV side and resulting that the TV doesn’t send any information over the HDMI i²c-bus) is a RaspberryPi 2 with a [pHAT DAC] running [OSMC].

It is a little bit different than the [guide] on the Pimonori side and also the ones from the [HifiBerry]site [2](same chip on HifiBerryDAC) itself didn’t work.

So here is what I did by using all aforementioned guides:
sudo nano /boot/config.txt

Uncomment the dtoverlay=lirc-rpi:gpio_out_pin=17,gpio_in_pin=18' and add dtoverlay=hifiberry-dac.

Uncomment and change dtparam=audio=on.

Download the correct device tree overlay to  /boot/overlays/ from [ osmc-forum ] (it seems the overlay is broken).
Then reboot with sudo reboot

Within Settings > System > Audio output > Audio output device select ALSA: Default (snd_rpi_dac Analog) and you should hear the acquainted clicking noise.

One remark: This is what I did to get working audio output, not sure if it is the most simple way, but hey it works.

Weiterlesen

PDF-Schnittmuster zusammenfügen

vintage sewing patterns

Manchmal is es nötig aus vielen einzelnen PDF-Seiten eine große ganze zusammenzufügen. Das ist z.B. nötig wenn man ein Schnittmuser auf vielen Seiten verteilt ist, aber man den ganzen Plan ausdrucken will.

Dafür gibt es einige Methoden z.B. ein shell script mit Hilfe von [pdftk CLI] und [imagemagick], jedoch nur unter Linux / OSX. Beide Programme gäbe es auch als Windows Versionen jedoch mit GUI und daher eine anstrengende „Klickerei“ auf Dauer, also alles andere als einfach und deshalb hier eine einfachere Methode um PDFs zusammenzufügen.

LaTeX Variante

Für diese Methode benötigt man das Ausgangs-PDF (mit den einzelnen Schnittmuster-Seiten) und Zugang zu LaTeX. Dafür benötigt man jedoch keine Installation man kann dies online sehr einfach machen.

Weiterlesen