To install it, run
sudo pip install scapy-http
After you import it in your program like so
from scapy.layers import http
You’ll be able to have a pretty...Read more »
I faced quite a few times the problem of copying files to virtual machines started via Vagrant. Since many people were facing the same issue, I’ve written a quick Vagrant plugin to solve this problem.
Install it via:
Read more »
vagrant plugin install vagrant...
In my research lab at UCSB, we routinely run large-scale experiments that, essentially, need lots of computation and memory. These are pretty cool to run, but setting them up can be quite cumbersome. To make this task easier on us, we have been running...Read more »
Today, let’s challenge ourselves with Codility’s Iota 2011 challenge. The details of the challenge are in the link (I can’t copy them here because of copyright :) ).
Essentially, we are playing something very similar to the board game Dominoes. We...Read more »
Today’s challenge: given an array, find all combinations of three numbers that sum up to X. Target complexity: O(N2)
Input: array =
[2, 3, 1, -2, -1, 0, 2, -3, 0], X =
[(-3, 0, 3)] * 3 + [(-3, 1, 2)] * 2 + [(-2, -1, 3...