Tag: raspberry pi
-
π Does calling sqrtf always result in a single asm instruction?
I was recently running some performance benchmarks across different platforms to understand the cost of some simple mathematic functions such as sqrtf and quickly noticed, under certain circumstances compilers such as MSVC, Clang and GCC by default will not generate a single x86-64 sqrtss instruction, there is a little more to it… I think discovering…
-
π‘ Programming a Digital Potentiometer (MCP4131) With Raspberry Pi & WiringPi
βΉοΈ Update August 2026 Hello! A small update from a long time after I published this original blog post. My original methodology here was incredibly manual, it involved manually writing and sleeping between every single clock cycle in order to program the MCP 4131 chip. Below is an updated and much simplified method of interacting…
-
Connecting to Raspberry Pi direct to PC via Ethernet
This article will show you how to connect directly to a Raspberry Pi by connecting an ethernet cable directly to your PC without needing to do any setup on the Raspberry Pi itself. This means you don’t need to plug a keyboard and monitor into your Pi to connect to it. Requirements: PC with ethernet…
-
lighttpd – Changing default user (Raspberry Pi)
After following the great tutorial here (http://www.penguintutor.com/linux/light-webserver) for getting lighttpd setup and running on my Raspberry Pi, I wanted to change the default user the service ran as so I could run commands from php scripts requiring more permissions. The part I got stuck on was that on a reboot, the folder in /var/run/lighttpd would…
-
Problems with VisualGDB and Raspberry Pi 2
I followed the tutorial for setting up VisualGDB for a Raspberry Pi from this link:Β VisualGDB and below are some issues that I ran into and how I fixed them. Hope it helps! Compile Error: “bits/c++config.h: No such file or directory”: With this error, all you need to do is add the following include path to…