Tags
Blog posts
December 15, 2024
More controllable management of Python versions.
python
mac
July 29, 2024
Simple command for serving a static web site, with automatic generation and renewal of HTTPS certificates.
docker
April 14, 2024
Communication between software layers and looser coupling through dependency injection.
software-design
programming
March 16, 2024
Arguments on why and when it is a bad idea to have references as class members, and when it can be fine.
c++
programming
February 4, 2024
Brew-installed grapviz + pip-installed graphiz library (along with an overview of other related libraries).
macos
python
jupyter
December 31, 2023
Examples of using linear algebra and Python/NumPy to find perpendicular lines/vectors and parallel lines at a certain distance.
math
python
numpy
November 12, 2023
Homogeneus transformations (rotation + translation), comparing Eigen (C++) and SciPy (Python); example with the roll-pitch-yaw (RPY) sequence of rotations.
math
python
c++
numpy
July 9, 2023
Useful examples with ranges and views, allowing for more functional style of C++ code.
c++
programming
April 9, 2023
My notes on Beta probability distribution based on the “Bayesian Statistics the Fun Way” book.
datascience
math
python
numpy
January 20, 2023
Launch a MySQL database in Docker and communicate with it using Brew-installed mysql-client.
databases
mysql
docker
November 25, 2022
Shell pipeline using pip, tail, awk, tr, xargs.
bash
python
August 22, 2022
Reading triangular mesh data from a binary STL file with C++; an example of using reinterpret_cast.
programming
c++
July 2, 2022
2D homogeneneous transformation (rotation + translation), with NumPy-based examples and visualizations of individual transformations and chains of consecutive transformations.
math
python
numpy
April 16, 2022
Setting up openssh-server and ufw on an Ubuntu virtual machine, and configuring NAT on VMWare Fusion.
linux
ubuntu
ssh
networking
virtualization
April 10, 2022
Using homogeneous vectors to represent points and lines, with NumPy-based examples.
math
python
numpy
April 2, 2022
Golang workspaces, modules, and some VSCode configurations.
golang
programming
vscode
March 19, 2022
Using SSH agent across Mac and Linux, forwarding the agent in sessions.
ssh
macos
linux
ubuntu
February 20, 2022
Manipulating where the current branch starts with git rebase.
git
January 29, 2022
Different ways of lookup and insert into C++’s map.
c++
programming
November 28, 2021
Using ffmpeg, a custom shell script and a file with timestamp markings to automate cutting away undesirable parts of a video.
ffmpeg
bash
July 14, 2021
A C++ example of using a conditional variable and a mutex.
c++
programming
concurrency
May 13, 2021
When braced initialization is preferred and when it is not (when it comes to std::vector).
c++
programming
May 1, 2021
Using Flask and OpenCV to create and serve images on the fly (with the expected Content-Type).
python
programming
flask
opencv
numpy
April 24, 2021
Kind of like binary search, but for a std::vector of sorted floats, using std::lower_bound.
c++
programming
April 17, 2021
Some notes on using Visual Studio’s cl.exe to build C++ code from a terminal on Windows.
c++
windows
cmake
April 11, 2021
Resources on doing mathematical optimization with Python (SciPy and other tools).
python
optimization
datascience
April 5, 2021
An xargs example for doing an operation for each line printed by cat.
bash
git
May 5, 2020
Applying -fPIC flag when building with CMake.
c++
programming
cmake
pybind11
python
September 17, 2019
Some notes on C++ move semantics and an example of copy/move construction and assignment.
c++
programming
June 23, 2019
Some Git command to recover from when something has been messed up.
git
programming
January 20, 2019
Using rsync with EC2 and subtleties of the trailing slash.
rsync
linux
aws
ssh
June 25, 2018
matplotlib inline/notebook; autoreload; javascript/should_scroll, timeit.
python
jupyter
datascience
June 24, 2018
Integrating your C++ code with Python/NumPy code.
c++
pybind11
python
December 29, 2017
An OLD tutorial of how to build OpenCV for using it with a Conda environment.
opencv
cmake
conda
python
linux
October 28, 2017
Allowing jumbo frames in Ubuntu’s /etc/network/interfaces to be able to use GigE Vision cameras.
linux
ubuntu
networking
computervision
gigevision