vsftpd is a faste and secure FTP server for UNIX-like systems Installing vsftpd In order to allow the transfer of files between your Mac and your Raspberry Pi, you'll need to set up an FTP connection. To do so, Enter this command to allow you to take full control of the web server's root directory (this assumes you've already […]
All posts by
.Vectors General
Vectors are sequence containers representing arrays that can change in size. They use contiguous storage locations for their elements so can be accessed in the same way and as efficiently as arrays, but unlike arrays their size can change dynamically, with their storage being handled automatically by the container. Create a vector Length of a vector Delete item […]
String functions
#include <boost/algorithm/string.hpp> #include <boost/tokenizer.hpp> //May be needed using namespace std; using namespace boost; using namespace boost::algorithm; http://www.boost.org/doc/libs/1_56_0/doc/html/string_algo.html http://theboostcpplibraries.com/boost.stringalgorithms Alter supplied string vs Create a new string from the output Many of the string functions some in function_name() and function_name_copy() versions, where the _copy() version returns the output and the non _copy() version instead alters the supplied string. Test […]
.Installing and Using Boost
C++ is great, but you tend to come across some things in other languages that C++ just doesn't have an equivalent function for, forcing you to have to write your own solution. We're big fans of C++ and its to the metal simplicity and where possible we often try and avoid relying on third party libraries. But after […]
Partition Wizard Home Edition
Partition Wizard Home Edition This is a windows based application, not Linux http://minitool.com/partition-manager/partition-wizard-home.html This free Windows tool lets you copy specific partitions from a SD card and can also be useful for RPi images. However it doesn't properly support Linux ext4 partitions so whilst it can move them, it can't alter them (gparted under Linux […]
gparted
‘gparted’ is the graphical version of ‘parted’ and is the tool to use to resize the main partition used for raspbian (or you could use use parted if you prefer the command line of course!). It can also be used to check and repair a SD card disk. To do this you’ll need to put the […]
SIGILL etc errors
SIGILL occurs before the main() fucntion has even been called! If you get a SIGILL when starting debugging it can be because one of the libraries is doing a runtime check to see what instructions are supported and they can do it by installing a trap and attempting to execute a possibly illegal instruction. When debugging the debugger picks the […]
signal() function
The signal() function allows you to register your own functions to be called when one of the following signals occur: SIGABRT – Abnormal termination of the program, such as a call to abort SIGFPE – An erroneous arithmetic operation, such as a divide by zero or an operation resulting in overflow SIGILL – Detection of an illegal instruction SIGINT – Receipt of […]
Programming The Compute Module
Installing the OS See the official guide here. First Time Use Of A Windows PC For Installing Onto The Compute Module Install CM-Boot-Installer.exe first so the USB drivers are ready to be used. When you connect the Compute Module development PCB (fitted with the CM) to your Windows PC for the first time you should see windows […]
Auto Running Programs-GUI
Screensaver If you need to disable the screen saver / screen auto switch off see here. Auto-running a Python file within a terminal window Edit the X Windows autostart file: Add the following line to the end: So you end up with something like this: That’s it, reboot and you should see a terminal window […]