Friday, October 8, 2010

Documentation about the git session

The git session held on October the 8th is being documented in the community wiki at this location.

The session focused on how to use git and github to collaborate in the development of open wonderland modules (or any other project that you fancy!).

Please feel free to add to the page if you want. The more info, the better!

Thursday, October 7, 2010

Introduction to Git for version control

Hi everybody!
We are organising a session on Git to keep track of your source code. The meeting will be in-world, in the Open Wonderland Community Server and we are still trying to finalise the times.

Possible dates are being tracked down here. Write your name down if you want to participate.

The session will be very simple, all from scratch, and will focus on how to use Git and github.

Hope to see you there!

UPDATE: The session happened on the 8th of October but it will be repeated soon, so get in touch if you want to participate!

Saturday, July 3, 2010

Cloning the Open Wonderland subversion repository

The question about cloning the wonderland repo was raised at a recent development meeting.
The main reason to clone is that you might not have permissions as a commiter to the main repo, but you still want to be able to commit your changes locally, whether or not they will eventually be propagated to the main repo.

I decided to give a go at using Git instead of Subversion. I have been using Git for a while now, and although it can be very tricky at the beginning, it is a great system.
I am not going to go into the differences between the systems, cause a simple google search will provide a lot more information that I could ever compile on here.

So let's cut to the chase and see what I got so far, and what problems I'm having:
First thing to do is a google search! These are a couple of interesting links that I've found, and the process I followed in here was taken from those links:

[2]: Automating the authors file.

Git manages authors in a different way to svn, so one of the steps needed for the migration is a text file with the authors' names and email addresses. Although in the first link they create this file manually, there is a script in the second link to automate its creation.

From [2]:

Create author mapping file

Create a svn.authors file, which maps the svn author names to git author names:

#!/bin/bash
authors=$(svn log -q | grep -e '^r' | awk 'BEGIN { FS = "|" } ; { print $2 }' | sort | uniq)
for author in ${authors}; do
echo "${author} = ${author} <${author}@dev.java.net>" >> svn.authors ;
done

I will not go into many details here because both links are very clear. What I did to clone, step by step, was:

1. run the authors script and modify the output if you have real information about the authors. To run the script as it stands, you will need a local svn copy of the original repo.

2. cd to the location where you want to have your git repo.

3. create a temporary location for the code: mkdir wonderland_temp

4. cd wonderland_temp

5. git svn init http://openwonderland.googlecode.com/svn/trunk --no-metadata

6. git config svn.authorsfile /location/to/your/svn.authors

7. git svn fetch (This step is going to take a good couple of hours!)

The last step will get rid of all the superfluous svn information and leave a clean git repo. The problem here is that it also gets rid of a bunch of empty directories that are needed to compile, so if you do 8, you will have to recreate those folders.
8. git clone wonderland _temp wonderland

Some Problems:
A weird thing happens when I try to compile wonderland core and wonderland-modules exists at the same level. For some reason the build tries to compile the audio-recorder module from the modules directory, and this fails when it tries to hit the ContentRepository class.
The failure in itself makes sense, or so I think, because it is trying to compile a module that depends on part of the core, when the core has not finished compiling. What puzzles me is that the core build triggers compilation in the modules tree??? this is very strange. Stranger is that if I get rid of the wonderland-modules directory, the build runs like a charm!

It might be me, or something in my system, but I guess the only way to know is to track down the build scripts, which I intend to do as soon as I have time for it.

Other than that, when I run the new server, I run out of memory, which does not happen in the svn tree. I will need to track this down too.



These instructions will provide you with a local copy of the repo that you can use for personal purposes. If you want to share this 'main' copy with other people, say at your company, you will have to check how to publish a git repo; some ideas here:

Have fun!


[UPDATE]: Just tried the process under Windows 7 + Cygwin and all goes really smooth. Server compiles and no out of memory errors (the ones noted above were on MacOS X).

[UPDATE 2]: The compilation problems were only in my machine, and due to the fact that the empty directories were not present. The main build checks for the wonderland-modules project, and in case of existing, it builds it too.

Sunday, May 2, 2010

Launching the Open Wonderland server through screen

Hello there! This is a short screencast about how to launch the wonderland server in a remote machine, and being able to detach the launch so that you can safely close the terminal session without halting the execution of the server. At a later stage, you can connect back to your server and retrieve your process again. Handy!


There is also a transcript in the wonderland community wiki. Enjoy!

Saturday, March 20, 2010

Open Wonderland, Marbleous module

This is me playing about with the physics simulation marbleous for open wonderland.



An extract from the description: "Marbleous simulates a ball rolling down a track. You can reconfigure the track and also play back the animation using a timeline slider to inspect the values for velocity, acceleration, potential and kinetic energy at any moment in time".

It took a couple of attempts to get it right but it is so much fun, you should give it a go!

Wednesday, May 6, 2009

one month?

I cannot believe it's been a whole month since my last post! But I have a good excuse, my M.Sc. dissertation is due in one week so I have been working like a mad thing on it. I will start posting again after that, hopefully from mid next week on. I will write a post about my dissertation so till then, if you feel very curious about it, you can have a peek here.

Monday, April 6, 2009

The Virtual Worlds research Group

A talk about a piece of research dealing with virtual worlds or maybe a hands-on workshop is organised every Monday at 2pm(SLT) by the VWRG. Check the meeting schedule page for more info on every week 's meeting, or if you want to be punctually reminded you could join this facebook group.

There are a few other research meetings in SL but to be honest I have never attended one. Being in Europe makes it a bit difficult to attend if we are talking about American or Australian times. I have also joined recently the SL Education rountable group. Their meetings are on at 2.30pm(SLT). It looks interesting and if I'm not working on my project this Tuesday I might go. Let's see if I can make it, I would love to!

--- update:
The schedule is also replicated in the social presence wiki managed by Willow Shenlin.