Code
#include <stdio.h>
void main() {
int i = 0;
i = ++i + i++;
printf("%d", i);
}
// what is the answer?
#include <stdio.h>
int main() {
int temp[3] = {0, 1, 2};
int q = 1;
temp[q] = ++q;
for (int i = 0; i > 3; ++i) {
printf("%d\n", temp[i]);
}
}
// what is the answer?
Posts
June 01, 2026
Stop using your command history
January 01, 2026
A collection of the things I have that I love.
April 01, 2024
FastApi Notes
July 03, 2022
Installing python from a tar
January 17, 2022
Ruby and the double splat
January 10, 2022
Live and Die Poor
January 05, 2021
A simple plain JS dark toggle
January 01, 2021
A simple next-generation HTTP client for Python httpx.
May 11, 2020
When using ec2 instaces with NVME drives you need to set them up.
January 16, 2020
rest vs grpc
December 09, 2019
Message queues and Python. Using Pika in python. What is Pika? Pika is a python package for RabbitMQ.
December 01, 2019
I wrote this up as I had to rebuild my development computer and so I wanted to document how I do my base Python install
January 21, 2018
Wanted to learn a little Python and SQLight, here is a simple example
December 15, 2017
Holiday-Hack-Challenge, This year was good but I thought it was harder then in the past.
December 01, 2017
Searching elasticsearch, a very under rated interface that companies don't use.
November 10, 2017
Python Matplotlib, graphing in python can help display data and it can be done in a simple interface. With working over ssh so much I found this an extra step to learning how to use Matplotlib. Fast forward I also learned about using the io.BytesIO() and that is my bread and butter now.
November 04, 2017
I think at this point I have started working and when writing code for more people then me they sometimes expect output when the task is completing. So I realized using loading bars can help show that is it working.
October 23, 2017
Logging, Bash and Python As I have worked more I see why logging is so important. Often when you work you have to update old code so logging can help debug code when tests are not available.
May 01, 2017
Working with Python and Requests. Requests is maybe one of the best parts of python. Simple but also very extensive.
March 27, 2017
When you need a password but want to autogenerate it use this simple bash password generator
March 10, 2017
Diffie-Hellman Key Exchange I made this when I had to explain this as a TA but just found it and thought it would be good to share.
March 06, 2017
Java Blocking Queues, I took these notes back in my undergrad. Maybe they will help someone. Good luck
February 04, 2017
DWM plain and simple, the best simple window manager. Also checkout sbar!
January 16, 2017
Learn Regex, it will help you. Warning though when all you have is a Hammer, everything looks like a Nail — When learning regex know that it has a time and a place.
January 10, 2017
Curl Metrics, I wanted to measure response times from a group of servers but could not install a lot on the server I needed to monitor from. So I found this somewhere on the internet and thought I would keep it.
January 06, 2017
Undefined Behavior I ask a question like this when I interview to see how people act with these question I think you can learn a lot of people with how they talk about these types of questions.
January 01, 2017
Holiday-Hack-Challenge, this year was a lot of fun. Give it a try!
December 14, 2016
Youtube university! You can learn so much off of the internet, back in 2016 I thought these videos helped me learn just a little more.
November 12, 2016
Remote procedure calls or RPC how they work and all the random information I found on them back ihn 2016. Back in 2016 when I started this I was in my undergrad and a class had use do a project about them.