RSS
 

Advent Of Code: Day 7

08 Dec 2015

Challenge

Solution Wow this one was fun! I decided to use Z3Py, a theorem prover module for python. My solution essentially parses each command using regexp and adds the various boolean rules to a solver object. Finally, the theorem solver checks all possible values and prints out the results of every ‘wire’. Determining the answer is…read more.

 
No Comments

Posted in Advent Of Code

 

HACKvent 2015: Day 7

07 Dec 2015

Challenge

Solution This challenge was very easy to solve as I had completed the teaser earlier. First I convert the hexadecimal number provided (as it starts with 0x) to binary. The result is 625 bits (which does not divide nicely by 8 so it is probably not an ASCII message). However, its likely to be a…read more.

 
4 Comments

Posted in Hackvent 2015

 

HACKvent 2015: Day 4

07 Dec 2015

Challenge

Solution At first I was convinced this was a Vigenere cipher but this is not the case. After a clue from M from the hacking-lab IRC channel I was able to figure out the cipher used is the Scytale cipher. This is somewhat obvious as the -  characters from the nugget are all grouped at the end…read more.

 
No Comments

Posted in Hackvent 2015

 

HACKvent 2015: Day 3

07 Dec 2015

Challenge This image was provided: Solution We clearly have to either scan every QR code or find the correct QR code. So we simply use an online tool that splits up GIF files based on their frames (link). We download all the frames (29 images exist so its likely that each frame corresponds to one…read more.

 
No Comments

Posted in Hackvent 2015

 

HACKvent 2015: Day 2

07 Dec 2015

Challenge

Solution After some Googling I realise this is the Klingon language from Star Trek. I try some online translators (including Bing!) and it is clear that the message is a series of numbers that contain 0 or 1 only. This is most likely binary that represents ASCII text. I write a small script to convert each component…read more.

 
No Comments

Posted in Hackvent 2015

 

Advent Of Code: Day 6

06 Dec 2015

The Challenge

Solution I split up the solutions for part 1 and part 2. Was almost tempted to go for a numpy and scipy sparse matrix solution but a 1000×1000 matrix is small enough for a dense matrix. Part 1

  Part 2

 

 
No Comments

Posted in Advent Of Code

 

Modifying the Peggle Deluxe Game

06 Dec 2015

So some time ago I modified a the video game Peggle Deluxe which is a PC game by Popcap Games. My little baby brother had really gotten into the game and I wanted to add him as a character! I found a baby photo of him and thought I’d simply have to replace one image in…read more.

 
No Comments

Posted in Gaming

 

Advent Of Code: Day 5

05 Dec 2015

The Challenge

Solution Another quick and simple Python solution!

 

 
No Comments

Posted in Advent Of Code

 

Customize your Linux Terminal (Bash)

05 Dec 2015

So the terminal is something that a program uses all the time but the default terminals on Unix distros looks very plain and boring in my opinion. While I really like the Kali Linux terminal style I use my Xubuntu distro much more often, its my personal favourite. So I decided to customize it and make…read more.

 
No Comments

Posted in Linux

 

Advent Of Code: Day 4

04 Dec 2015

The Challenge

Solution Because speed was not an issue in this case, I simply used python again to solve the problem. The script is a little slow taking ~10 seconds to compute the answer in my case. A C/C++ solution would be orders of magnitude faster.

 

 
No Comments

Posted in Advent Of Code

 
Page 3 of 512345