Connecting to Raspberry Pi via RDP

Thanks to Gary Sims at MakeTechEasier for comprehensive instructions on using Windows Remote Desktop Client to connect to the Raspberry Pi.

sudo apt-get install xrdp

The xrdp installation automatically launches the service so there is no further configuration required.

Firing up Windows RDC requires only the Pi's IP address and the credentials of any valid Pi User.

Running Mono on Raspberry Pi

It turned out to be easier than I'd anticipated. Thanks to Dan's Website for these instructions:


sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mono-complete

Sublime-HTMLPrettify

HTMLPrettify couldn't find nodejs because it sets the default path to:

c:/Program Files/nodejs

in the HTMLPrettify.sublime-settings file.

I changed it to:

d:/Program Files/nodejs

but that didn't work either.

Ultimately I added "node.exe" to the path giving:

d:/Program Files/nodejs/node.exe

and suddenly it all came to life.

Linux Mint 15 CodeLite Unit Tests

When I created my first Unit Test in CodeLite it would not compile because UnitTest++.h was not available.

I loaded libunittest with:

sudo apt-get install libunittest++-dev


Then added /usr/include/unittest++ to the CodeLite compiler includes by opening the Build Settings dialog which is on the Settings menu.


printf format strings

I copied this excellent quick reference guide from Pádraig Brady at PixelBeat lest it should go offline at some point in the future.


%[flags][min field width][precision][length]conversion specifier
  -----  ---------------  ---------  ------ -------------------
   \             #,*        .#, .*     /             \
    \                                 /               \
   #,0,-,+, ,',I                 hh,h,l,ll,j,z,L    c,d,u,x,X,e,f,g,s,p,%
   -------------                 ---------------    -----------------------
   # | Alternate,                 hh | char,           c | unsigned char,
   0 | zero pad,                   h | short,          d | signed int,
   - | left align,                 l | long,           u | unsigned int,
   + | explicit + - sign,         ll | long long,      x | unsigned hex int,
     | space for + sign,           j | [u]intmax_t,    X | unsigned HEX int,
   ' | locale thousands grouping,  z | size_t,         e | [-]d.ddde±dd double,
   I | Use locale's alt digits     t | ptrdiff_t,      E | [-]d.dddE±dd double,
                                   L | long double,  ---------=====
   if no precision   => 6 decimal places            /  f | [-]d.ddd double,
   if precision = 0  => 0 decimal places      _____/   g | e|f as appropriate,
   if precision = #  => # decimal places               G | E|F as appropriate,
   if flag = #       => always show decimal point      s | string,
                                             ..............------
                                            /          p | pointer,
   if precision      => max field width    /           % | %

Linux Mint 15 Codelite C++11 gcc 4.7.3

I'm experimenting with C++11 using CodeLite 5.1 and gcc 4.7.3

The support for C+11 is experimental and has to be turned on with a compiler switch. This page describes the alternatives.

I used -std=c++11


which I set in the Project Settings dialog. Common Settings / Compiler / C++ Compiler Options, like this:


I also made the compiler switch available to all build configurations by adding to the Build Settings dialog which is on the Settings option of the main menu:

Linux Mint 15 Launch Browser with Function Key

On my Compaq 6820s (UK keyboard) the F3 key should have launched the default web browser but didn't.

I used the Keyboard Shortcuts app to redefine the key used to launch the browser: