Resizing a bunch of images from the commandline? imagemagick has your back. convert -resize 50% '*.jpg' small_%03d.jpg This will half the resolution of all .jpg‘s in the current directory, outputting the files with names like small_001.jpg, small_002.jpg, ... etc. Nice one.
Mechanical Keyboard Adventures A while back I bought a mechanical keyboard from over at WASD. I opted for the cherry mx blue keys, for the typing experience. The delivery was quick and the final product looked gorgeous. Some nizxcvm/* gahhH! About 4 days into ownership I spillled nearly a full
Our c program can read serial data from a gps device. In this post we’ll look at how to set up a UDP server that other clients can query for up to date gps data. ... #include <string.h> ... //for threading #include <pthread.h> //for udp server #include <sys/types.h> #include <sys/socket.h>
Update: Missing memset(&new_config, 0, sizeof(new_config) in set_input_mode function would sometimes cause garbled incoming data from gps. Seems to have fixed the issue. The software implementation we discussed last time (written in awk) is fairly hamstrung. Running topreveals that the cpu usage idles at ~20% on my machine (my machine is
where am i? Check out my previous posts to get up to speed with extracting latitude and longitude from generated nmea sentences using awk, and then with setting up an aruidino with a ublox gps module to get live, real gps data. Now that we have working gps hardware, we
where am i? Just after latitude and longitude? Check out my earlier post for refresher on how to extract latitude and longitude from a file containing the $GPGGA nmea sentence using awk. Lets connect up the ublox gps module to the arduino. There are four pins, Vcc, RX, TX and
For very little reason, I decided to try out some basic gps programing. Another user over on the Pyra handheld forums asked about using latitude and longitude data from the Pyra’s built in gps to fetch the weather using wego (a project written in Go). Knowing nothing about the Pyra’s
Hello, Wor(l)dPress! Title of the blog is “What Have I Done?”. In theme with that, its purpose is to chronicalise the computer stuff I have done. Mostly because I keep forgetting how i set things up… Expect posts on the following topics: Programming (in C and Python, maybe some Rust)