Author Archives: shigs

Delete Duplicate Files With Bash

I needed to delete all but 1 duplicate files from a bunch of experiments. I didn't care about file names. Here's the bash - it works. #!/bin/bash declare -a list=( `find ./DIRECTORY_CONTAINING_FILES f` ); declare -a sums; cnt=${#list[@]} echo "creating … Continue reading

Posted in Programming, Simulation, Social Data Analysis, useful | 2 Comments

Counting distinct sets in a multiset in Python

If like me you suck at Python you may want to do convoluted things like count the distinct sets in some multiset. Here's one way you can do it. In this example sets are read into a defaultdict and in this … Continue reading

Posted in Programming, Python | Leave a comment

Simple Distributed Community Detection for The One Simulator

In the implementation of the Simple algorithm [Distributed Community Detection in Delay Tolerant Networks Pan Hui, Eiko Yoneki, Shu-yan Chan and Jon Crowcroft Sigcomm Workshop MobiArch '07, August, Kyoto, Japan] by PJ Dillon for The One Simulator, updates to communities … Continue reading

Posted in ONE Simulator, Simulation, Social Data Analysis | Leave a comment

Why Eat 1 Breakaway Bar When You Can Eat 9 Breakaway Bars

After the rather successful exposé Why Eat 1 Tunnock’s Caramel Wafer When You Can Eat 8 Tunnock’s Caramel Wafers I've decided to pen another report. This time my adoring fan, I present to you Not 8 but 9 Nestle Breakaway … Continue reading

Posted in whyhaveonewhenyoucanhaveeight | 1 Comment

BonnMotion 2.0 released

BonnMotion 2.0 released. BonnMotion is a mobility scenario generation and analysis tool, which also supports output for The ONE. I've not looked at it yet but the 3D support looks nice for more complexed scenarios. Some of the new features: … Continue reading

Posted in Simulation | Leave a comment