Running UI tests on Travis
Travis allows you to run Chrome and Firefox on their build environment and those can be used to run UI tests using Selenium. Today we are going to see how to install chromedriver and geckodriver in order to be able to run UI tests using pytest-selenium. To run those tests you will need to have your web application running so that Travis can access it and this article won’t cover that....
Using a C shared library with Python's ctypes module
To demonstrate how to create a shared C library and using it with Python’s ctypes library we are going to create a shared C library. First create the C header file mean.h: // Returns the mean of passed parameters double mean(double, double); Next create the C file mean.c: #include "mean.h" double mean(double a, double b) { return (a+b)/2; } Now we can create the shared C library by compiling it using gcc:...
Building and Distributing Packages with Setuptools
How to create and distribute Python packages with Setuptools
The Architecture of Open Source Applications
Great book about Open Source Applications architecture and performance
Create and use a shared library using Python's ctypes module
Backing up Beaglebone Black SD card image
Run fdisk to see the SD card partition table (use p command) sudo fdisk /dev/sdbCommand (m for help): pDisk /dev/sdb: 7948 MB, 7948206080 bytes245 heads, 62 sectors/track, 1021 cylinders, total 15523840 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000 Device Boot Start End Blocks Id System/dev/sdb1 * 2048 133119 65536 e W95 FAT16 (LBA)/dev/sdb2 133120 1638399 752640 83 Linux Add one to the end of second partition, this number will be used as count parameter of dd command, for example:...
How to mount a VirtualBox shared folder on a guest Linux system
How to install OpenVPN on BeagleBone Black
How to create a ring buffer table in SQLite
Instalando o node-sqlite3 na BeagleBone Black
Para instalar o node-sqlite3 na BeagleBone Black é necessário que o npm esteja atualizado: npm install -g npm Em seguida basta instalar o pacote node-sqlite3: npm install -g sqlite3 Observe que a flag -g foi utilizada para instalar no sistema. Para instalar localmente é só não utilizar a flag. O npm precisa ser atualizado pois a versão que vem instalada com a BeagleBone Black falha ao instalar pacotes que precisam ser compilados devido a um bug ao comparar a versão do Python....