Code

Moving from Gogs to Gitea

After having some small hiccups with my Gogs installation – not just because of problems with Gogs it self, it was more user problems. So after rolling back a backup, I decided to give Gitea a try.If you’ve installed or managed  Gogs (or any webbased service) before, the installation of Gitea was quite straightforward. So setting Gitea up, tweaking the settings and changing some small feature for my own pleasure took about 45 minutes. Figuring out why my SSH keys didn’t work and why it (sometimes) is good…

Keep reading

Updated dyndns app

Just updated the dyndns app for Digital Ocean. No longer needs to be re installed after changing config. It now relies on an external config file.…

Keep reading

Coding a Twitter bot

I’ve been playing around with the Twitter API this weekend, and put together a small Twitter bot. This is my first attempt at something like this, so there will be errors. It is a bot that reacts to content, and tweets @ replies to those tweeting the correct “triggers”. As of now it reacts to the following commands; #testbot #jokebot #silencerunebot #testbot simply replies with the fact that your account works, and that you are not on its blocklist. #jokebot replies with a one-liner joke. #silencerunebot places your twitter handle…

Keep reading

Weekend coding

Just because I’m a developer by day, does not mean that I stop coding when I come home. It’s in the fingers and blood(?). Most of my of-the-clock coding is just things that I want for my self or for the purpose of teaching myself some new stuff. This weekend I’ve been doing a bit off both. Some time ago  I made a bash script to update my Linode DNS, so I could use it like a dynamic DNS system for my home server and my parents…

Keep reading

NMEA GLL to decimal degrees

This is filed under “things you don’t find on stack overflow”. Working with the sensors on the ships I found that my calculations I did to get the GPS location displayed in degrees, minutes and seconds was a bit off. When the ship appears to be in the middel of Sweden, something is definitely wrong… From the GPS I get coordinates like 6751.3425 N,01315.8982 E – that seems to be normal decimal degrees. Which is not true. When dealing with NMEA GLL messages you have to do…

Keep reading