Wednesday, February 12, 2014

C++11: Initialize non-static data members

As I just found out, C++11 allows you to initialize non-static data members. This comes in handy for defining default values for member variables, which can be overridden by specific constructors.
Check out https://blogs.oracle.com/pcarlini/entry/c_11_tidbits_non_static for more details.

Monday, December 30, 2013

Framebuffer and Vigra running on Raspberry Pi

I just had some spare hours that I could spend working on my Raspberry Pi. I finally got the framebuffer running in conjunction with vigra:
http://www.youtube.com/watch?v=tcMQd5eSeLA&feature=youtu.be

Friday, December 13, 2013

C+=

From now on, I will dump C++ and use this new progamming language: https://github.com/FeministSoftwareFoundation/C-plus-Equality Apparently, the content has been deleted from github. You can still find it on bitbucket: https://bitbucket.org/FeministSoftwareFoundation/c-plus-equality/overview

Thursday, December 12, 2013

classicthesis.sty

Just found this in the latex package classicthesis (classicthesis.sty):

% Disable single lines at the end of a paragraph (Hurenkinder)

Friday, November 29, 2013

Detexify - Easily find the LaTeX command you are looking for

Have you ever been searching for hours when you needed just a simple LaTeX command for a symbol? Well, this might be over now:
Check out Detexify: Just draw the symbol you need and the applet will give you possible matches for your query.

Sunday, November 10, 2013

Framebuffer Manipulation with Vigra(numpy) Interface for Linux Framebuffer

I wrote an interface that allows accessing a Linux framebuffer using vigra(numpy). It is at a very early stage and lacks documentation and offers only very basic functionality (writing an array to the framebuffer) so far.
This video shows the library in action. Again, all that is included is vigranumpy and Linux framebuffer. No X or other graphics system is used.

Another video showing framebuffer manipulation in action (vigra.filters.gaussianGradientMagnitude), this time captured directly from framebuffer using ffmpeg.

As always, the code can be found on my git repository:
https://github.com/hanslovsky/rpi_st7735

Sunday, November 3, 2013

Sainsmart 1.8" finally running on Arch@RaspberryPi

R and B channels are swapped, but that just requires copying the newly compiled kernel to the pi.
http://www.youtube.com/watch?v=GA3vhDO2cxs&feature=youtu.be



Acknowledgements:
I followed these instructions:
http://www.whence.com/rpi/
http://marks-space.com/2012/11/23/raspberrypi-tft/

This was neccessary in order to get the kernel to work:
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=53&t=53784

The video shown on the display is taken from:
http://hubblesource.stsci.edu/sources/video/clips/

Image source:
gramophone.co.uk