Testing Spice

Virtual Reality

Spice is a new and promising protocol for interaction with virtualized desktop devices.

Recipe to install it


#!/bin/sh
set -x

SPICE_VERSION="master"
SPICE_VERSION="0.8"

sudo apt-get install git libtool autotools-dev autoconf automake g++

sudo apt-get install libdirectfb-dev

sudo apt-get install liblog4cpp5-dev libavcodec-dev libssl-dev xlibmesa-glu-dev libasound-dev libpng12-dev libfreetype6-dev libfontconfig1-dev libogg-dev libxrandr-dev kvm libgcrypt-dev libsdl-dev libnss3-dev libpixman-1-dev libxfixes-dev libjpeg8-dev libsasl2-dev python-pyparsing

rm -f celt-0.5.1.3.tar.gz
wget http://downloads.us.xiph.org/releases/celt/celt-0.5.1.3.tar.gz
tar xvzf celt-0.5.1.3.tar.gz
cd celt-0.5.1.3
./configure
make
sudo make install
cd ..

git clone git://cgit.freedesktop.org/pixman
cd pixman
./autogen.sh
make
sudo make install
cd ..

git clone git://cgit.freedesktop.org/spice/spice-protocol
cd spice-protocol
git checkout $SPICE_VERSION
./autogen.sh
make
sudo make install
cd ..

git clone git://git.freedesktop.org/git/spice/spice
cd spice
git checkout $SPICE_VERSION
./autogen.sh --enable-opengl
make
sudo make install
cd ..

echo "export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}" >> ~/.bashrc
source ~/.bashrc

git clone git://git.freedesktop.org/git/spice/qemu
cd qemu
git checkout spice.v42
./configure --enable-spice --enable-kvm --audio-drv-list=alsa,oss --enable-system
make
sudo make install
cd ..

And launch it


#!/bin/sh
/usr/local/bin/qemu-system-x86_64 -spice port=5930,disable-ticketing -drive file=./machines/debian.img,if=virtio -vga qxl -device AC97 -usbdevice tablet -m 1024 -enable-kvm -net nic,model=virtio -net user

Testing Orca

How to test Orca

Prerequisites:

  • orca master: git clone git://git.gnome.org/orca orca
  • accerciser master: git clone git://git.gnome.org/accerciser (Impressive tool for AT)
  • gtk2-examples: (probably) sudo apt-get install gtk2.0-examples

Run!

cd ./test/harness (in orca root)
./runall.sh -a ../keystrokes/gtk-demo/ > ~/gtk-demo.out 2>&1

Compiling GTK on osx (with jhbuild)

deactivate macports!

if (10.6)
add to ~/.jhbuildrc-custom
setup_sdk(\”10.6\”, \”10.6\”, [\"i386\"])

and build it


$ jhbuild bootstrap
$ jhbuild build gettext-fw
$ jhbuild build meta-gtk-osx-bootstrap
$ jhbuild build meta-gtk-osx-core

Note: You can do a main bootstrap with –ignore-system flag but the compiled gettext version won\’t work. You need to do a build gettext-fw (until someone merge this)

Would be nice to have 64bits support!

Interesting links
http://sourceforge.net/apps/trac/gtk-osx/wiki/Build
http://sourceforge.net/apps/trac/gtk-osx/wiki/SnowLeopard

New term coined: Hybrid posting

Abstract

hybrid posting: use top posting to mark a leaf on the conversation thread, use bottom posting to receive a response.

Interleaved style: an extension of hybrid posting.

Some examples

Hybrid posting


From: god@heaven.org
To: gloob@litio.org
Subject: start thread

Will you have bought a new car before summer?

I was thinking in buy a toyoya \"hybrid\" prius.

case A: Use top posting to mark a leaf on the conversation thread


From: gloob@litio.org
To: god@heaven.org
Subject: RE: start thread

i don\'t think so.

> Will you have bought a new car before summer?

>I was thinking in buy a toyoya \"hybrid\" prius.

Result One email to close the thread with one response.

case B: Use bottom posting to receive a response.


From: gloob@litio.org
To: god@heaven.org
Subject: RE: start thread

> Will you have bought a new car before summer?

>I was thinking in buy a toyoya \"hybrid\" prius.

Toyota is a good brand of cars, I\'m very happy with it.

Did you check Lexus, too?

Result One email to continue the thread and inviting others to response it.

Creating video with codeswarm

A very fast recipe to do a video with codeswarm (Relative to codeswarm home)


#!/bin/sh

mkdir project_build

svn log -v https://urltoprojectsvn/svn/project > project_build/activity.log

python convert_logs/convert_logs.py -s project_build/activity.log -o project_build/activity.xml

ffmpeg -f image2 -r 24 -i ./project_build/frames/code_swarm-%05d.png -sameq ./project.mov -pass 2

ffmpeg on osx 10.6 (snow leopard)

(using MacPorts 1.8.2)

Update MacPorts

dendrita:~ gloob$ sudo port selfupdate
dendrita:~ gloob$ sudo port upgrade outdated

Install ffmpeg :)

dendrita:~ gloob$ port variants ffmpeg
ffmpeg has the variants:
darwin_10: Platform variant, selected automatically
no_gpl: disallow use of GPL code, license will be LGPL
no_mmx: disable all x86 asm optimizations
speex: enable Speex decoding via libspeex

dendrita:~ gloob$ port install ffmpeg +speex