Creating your own code swarm

This is a little guide on how you can create your own code swarm. Code swarm shows the history of commits in a software project. The visualization looks something like this:

Code swarm

For this guide I'll use SVN, but code swarm supports HG and Git as well (and if you are using something exotic, it isn't that hard to build custom converters). I am doing this on Ubuntu, but it should work on Windows/Mac as well (code swarm is implemented in Java).

1) SVN checkout code swarm

$ svn checkout http://codeswarm.googlecode.com/svn/trunk/ codeswarm-read-only

2) Create a log of your repository

$ svn log -v > my_project.log

3) Convert log to uniform XML format

$ cd codeswarm-read-only
$ python convert_logs/convert_logs.py -s #../my_project.log -o data/my_project.xml

4) Edit data/sample_config.config

Replace:

InputFile=data/sample-repevents.xml

with:

InputFile=data/my_project.xml

and replace:

TakeSnapshots=false

with:

TakeSnapshots=true

5) Create frames and generate snapshots

$ mkdir frames
$ ./run.sh

6) Generate AVI file

$ sudo apt-get install mencoder
$ cd frames
$ mencoder "mf://*.png" -mf fps=10 -o test.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=500

7) More on generating videos

How to generate AVI file with sound or generate Flash video, here are some articles from a quick Google search:

An example

Here is Plurk's code swarm:

::...
免责声明:
当前网页内容, 由 大妈 ZoomQuiet 使用工具: ScrapBook :: Firefox Extension 人工从互联网中收集并分享;
内容版权归原作者所有;
本人对内容的有效性/合法性不承担任何强制性责任.
若有不妥, 欢迎评注提醒:

或是邮件反馈可也:
askdama[AT]googlegroups.com


点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


自怼圈/年番新

DU21.7

关于 ~ DebugUself with DAMA ;-)
粤ICP备18025058号-1
公安备案号: 44049002000656 ...::