This is really stupid, but also a good excuse to get to know your terminal.
Most computer stores sell Macs these days. Most salespeople are good at their pitches and bad at computers. Most stores have their Macs running so you can try them out, tempting you to buy one. All Macs have python and netcat installed. I wonder if that can be hoisted into a good old geeky prank?
Spoiler: It can. That is exactly what this post is about. It is also a major waste of time for everyone involved. Please read on. If you’re more into visuals, here’s a youtube clip of me wasting time.
Continue reading “Pranking Mac Salespeople (and wasting your time)”
Plotting results is often needed in Computer Science.
Say, you have a program that generates data which you want to plot.
A normal approach to this would be:
- Write your results to a csv-file
- Importing that file into a spreadsheet application like Excel
- Clicking around to generate a plot
- Saving the plot as an image
- Putting the image into a LaTeX report
In case you change something in your program, this entire process would have to be repeated in order to get your fresh results plotted and into your report.
How cumbersome. This is a stupid problem we can solve with programming.
If our program already generates data and writes it to disk in text format, we can just add functions that write that data as LaTeX!
Continue reading “Generating plots with pgfplots”
To learn git, you need to commit. (git it?)
This is meant as a quick start guide to git, not as a tutorial on git. For a tutorial i would look here or here.
Following along with this post, you will hopefully learn how to start using git, including:
- Creating git repositories
- Commiting changes
- Setting up a remote repository (with github)
- Pushing your changes to github
- Pulling changes from github
The post will not cover merging.
Continue reading “A (not so comprehensive) guide to git”
I have gotten into writing my own tools, whenever I realize it’s an option.
I will try to document my process of doing this, starting with one of my favourite projects. It’s not pretty, but it did the job for me.
Anyone who has taken a good course on linear algebra knows row operations. They’re fun, they’re easy to program and you can solve systems of equations with them. It’s all great, up until the point where you have to write them.
If you’re an unlucky fellow, you will do this by hand, and no amount of petting the wildebeest will help you. If you’re a, until now, little less unlucky fellow, you will do this with . It’s cumbersome and boring and I grew tired of it within 10 minutes. I guess it’s time for a tool, huh?
Continue reading “Why do your assignments when you can make python do them for you?”
For long I’ve been wanting to get into OpenGL, hopefully this time being able to understand what is going on. I last looked into Java and LWJGL back when minecraft was peaking. It seems millennia has passed since then.
So, my current situation, techwise:
I’m running OS X (well, macOS, but the unnecessary new name can go to Redmond), and as an avid user of BASH and Emacs, IDEs give me the creeps. I prefer languages where a “test program” can be written in one, maximum two files. I want to be able to compile my program by hand, especially if it’s only one or two files. By hand I of course mean through my shell, using make.
Surely the cascading hellscapes of modern IDEs, with all their fancy buttons, web news feeds, package managers and Microsofty ways to fuck up git integration is unnecessary. At least if I’m only trying to do something simple and stupid, say, like using my graphics card for drawing a triangle. Right? Riiight?
Continue reading “Shun the IDE, OpenGL with Make for me!”
Continue reading “wat”
For the past 6 years, I have been employed on and off in an international NGO with offices in more than 30 countries. My working areas have mainly been in Fundraising or Business Intelligence, doing fun things like converting .xlsx files to .csv and generating latent contempt for people with “digital” or “social media” in their job titles. However, as the main tech wizard I have been asked to do very weird things. I want to tell you a story of intrigue, technology from a forgotten time and a prototypically badly planned project. All of this is from memory and it is a few years back, so details might be slightly off.
Continue reading “Bashing posters together for fun and non-profit or how to save the world and make your colleagues AWK-struck – Part 1.”
So. New blog, now wordpress, much yay!
I’m not really sure what i want to put here. I guess time will show.
My plan right now is to write about a wide range of programming related subjects, be it weird battle stories from my seldom ventures into the real world of jobs and payment or nifty tricks i stumble upon.