Ethernaut Part 2 – Fallout and CoinFlip

(This is a continuation of Level 2 – Fallout All you are given is a contract, and a hint about the Remix IDE. I didn’t end up using Remix for this level, but the contract is as follows: pragma solidity ^0.4.18; import ‘zeppelin-solidity/contracts/ownership/Ownable.sol’; contract Fallout is Ownable {   mapping (address => uint) allocations;   /* constructor */   function Fal1out() public payable {     owner = msg.sender;     allocations[owner] = msg.value;   }   function allocate() public payable {     allocations[msg.sender] += msg.value;   }   function sendAllocation(address allocator) public {     require(allocations[allocator] > 0);     allocator.transfer(allocations[allocator]);   }   function collectAllocations() public onlyOwner { […]

Ethernaut – Part 1

I recently came across Ethernaut, a game about finding issues with Ethereum smart contracts and breaking them. I do enjoy a capture the flag and I know practically nothing about smart contracts, so it seems like a fun thing to attempt to chip away at. I’ve currently managed to do the first two challenges, the […]

Projected DnD

So I wanted to build some interactive play maps for when running DnD games, so that I could hide rooms automatically and create a more involved experience. I already had the hardware to build this system, and combined with some JavaScript it was not long until the players were running the DnD starter set adventure on […]

Fashion Hackathon – London Startup Weekend

The weekend of the 14th December I attended the London Startup Weekend Fashion Hackathon. This was a much larger event than the previous hackathon I attended and was more geared towards creating a viable business as well as the tech to support it. The format was fun, on the first day a number of people […]

Data Science London Hackathon

On the weekend of October 5th, I participated in the Data Science London Hackathon for Smart Cities. This involved having access to a number of datasets of city based data from London. These datasets included things such as: Car Parking Counts Oyster Journeys Incidents of Antisocial Behaviour A couple of guys from work and myself […]

Getting back into C

So I spend a lot of my time at my computer, it’s a fact of life as a computer science PhD student. However, while I may have a vim window open 90% of the time, more often than not there will be latex or matlab code in that vim window. Sometimes, if I get one […]

Stripe-CTF 2.0

I managed to finish the Stripe CTF with 18 hours to spare and placed no. 702. I’m pretty happy with the result considering how little time I actually spent on it! My progress can be found here and you can see when I took days off! Overall the competition was really enjoyable and the final […]

Android Maps and Routing

Very quick one here. I’ve been trying to mapping, especially routing, working on an android application I’m developing. I will save you a lot of trouble and tell you to use the inbuilt Google services. In fact, I found a gem of a post at which shows you how to open an intent for […]

SlimDX and Shaders – Constant Buffers

Setting up Having played with a few GLSL shaders in C++, I thought that moving to a DirectX/HLSL solution sould be fairly simple. Creating the most simple pixel shader was easy enough, and SlimDX is a decent wrapper for DX in C# – so after an hour or so I had the standard working triangle […]

Android development talk

On Thursday 10th May, I was asked to present a small talk on android development. I have not been coding android for very long, but I had learned enough to get background services working and activities not popping up where they should be. The slides won’t be as complete without my talk, but they should […]