Tutorials


4
Oct 11

Installing USVN and migrating from old subversion server

So lately we changed server and although I’m using now Indefero (integrated git) to manage my projects I was in need of having subversion for all my old projects.
I used to use svnmanager on our old server but wanted to give a try to another web interface. So I choose usvn

USVN Installation

Download usvn here and unzip it somewhere on your web server.
Follow the main installation guide here with the following tips:

  • before starting the install, get the latest zend framework here. Backup the Zend folder existing in your usvn library folder and add the one from the latest downloaded zend framework found in the library folder. This is because the framework shipped with usvn is old and not in sync with the latest mysql package.
  • start the installation script accessing the install.php directly (http://youraddress.com/install.php)

Importing existing repositories

In my case my old subversion server was already offline, but the repo still existed. So I have copied them onto the new server somewhere using rsync over ssh. Nice guide here.
Once done, you need to import the projects into usvn. To do so they have done a script you can find in the library/tools folder named usvn-import-svn-repositories.php. The thing is this script is outdated now, so a usvn user has updated it. You can find it here. And here is how to use it.

Once the project imported, copy the files from the old repo to the newly created under the svn folder (that you have configure during the install) and finally change the owner to be your webserver (apache or www-data or … ).

Voila, all should be good now. Add a group and user to be able to access it.


30
Apr 07

Pixlib – Tut 03 – How to load assets at runtime

Hello there.

As said in the title this tutorial will help you to load assets at runtime. At the same time we will see how to use FlashDevelop and MTASC to create a swf. So no need to open flash anymore…

Ok first, if you didn’t please look at the first tutorial which give you the basis of the pixlib framework.

This tutorial will use the source files of the first tutorial as a starting point. You can download those files from here
Continue reading →


18
Dec 06

PixLib – Tut 02 – What is and how to use the ConfigLoader class + Tweak

Hi there…

This small tutorial will deal with the ConfigLoader class. We will see what is this class for and how to use it in a project.
Of course you’ll need the pixlib framework to do so. You can download it HERE or you can use the repository HERE.
You will need as well some basic understanding of the framework. If you haven’t done it yet check the first tutorial giving you an introduction to the framework, PixLib – Understanding the basis of the framework

Ok, let’s start…
Continue reading →


26
Sep 06

PixLib – Understanding the basis of the framework

This tutorial is provided to give you the basis to be able to use the so good PixLib framework made by Francis Bourre. You should know at least what is a MVC pattern and a Command pattern.

Usually, using a MVC, each view will have a controller that will update the model ( if needed ) and any views that need to be changed.
This can be achieved in the PixLib library using the class in com.bourre.mvc. But this tutorial will not deal with this “usual” MVC pattern.

Francis add to his framework something really flexible, called the FrontController. This controller is receiving events from any views and then call the Command associated to it.
You’re code is then really clean and pratical: one class = one command so your code for an action can be found really easilly, plus you can see all the actions that could be executed looking at the FrontController code, everything is in there.
You will not look in X classes to try to find the code that do this particular action, you will go straight to the goal.
Continue reading →