Publish git repository to svn easily

I’m using git a lot, and lately I started to publish my WordPress stuff on github.

Some of that code are plugins, and as you may know WordPress.org are using SVN a lot. I’ve googled a lot of solutions on how to publish code from git to svn, untill I discovered the steps below.

First you will need to know the revision of your initial repo (you can also call it repository creation commit). You can find it by searching trac or any other web interface that handles the SVN log. Let’s say in my example I had to search for some-maps plugin creation commit. Go to this link, by replacing KEYWORD with your repo name:
http://plugins.trac.wordpress.org/search?q=KEYWORD


The revision number you need is the one in squared brackets.

Now it’s easy. Open your .git/config file, and append/modify the svn-remote part:

[svn-remote "svn"]
        url = https://plugins.svn.wordpress.org
        fetch = KEYWORD/trunk:refs/remotes/trunk
        branches = KEYWORD/branches/*:refs/remotes/*
        tags = KEYWORD/tags/*:refs/remotes/tags/*

Once you’re finished, use the git svn fetch command, like this:
git svn fetch -r REVISION_NUMBER

Now all you need is to switch to svn branch, I suggest you creating a new banch that will be synced with svn trunk:
git checkout trunk -b svn

Now you can merge master to svn, commit and tag:

git checkout svn
git merge master
git svn dcommit
git svn tag TAG_NAME

Happy forking!

La mulți ani!

Sort of… Mai mult pretext pentru a anunța noua pagină Ubuntu România (WordPress rocks! Vechea pagină.), alături de noul look a planetei Ubuntu și proiectul „Alege Software Liber” cu Mandriva Linux adăugat la soluții.

Noul Ubuntu-ro

Ar mai fi un lucru. Împreună cu Adi am gândit că pentru a asigura compatibilitatea și folosirea corectă a diacriticelor, am creat un modul simplu pentru WordPress care la salvare va converti orice diacritică greșită (cu sedilă) în una corectă (cu virguliță). Iar dacă un navigator web care vizitează pagina este pe platforma Windows, modulul va aplica procesul invers pentru a asigura o afișare compatibilă. Fork it! Use it: Comma Diacritics!

N.B.: Se mai lucrează și se dorește ajutor la partea cu asistența și comunitatea! Ping nouă dacă poți/vrei să ajuți.

A simple AppEngine framework for writing Facebook apps

During last year, I wrote a couple of Facebook apps.

I used both, the beloved (by Facebook) PHP library for that and the Python library, and (not) surprisingly I found that writing Facebook apps on Python (and mostly because you have the handy AppEngine for deploying those) is way easier and needs no special treatment from your customers (you handle them the code and access to the application panel).

So along with my projects I used mostly the same approach, ending up with the code I published today on github.

This is a simple MVC like framework, which I recommend checking out to anyone who wants to try writing the Facebook apps on Google’s AppEngine.

BuddyPress Courseware 0.1.5

Lately the Courseware was pretty stable, so I’m releasing the 0.1.5 version that comes mostly with new features.
If you want to read the changelog, it’s here.

With this article I would like to explain what are the next plans for Courseware.

First things first. I will start working on an authentication solution like LDAP/AD for Courseware. As a LMS it will make sense to allow people connect their existing databases to our system. Making it a snap and perfectly integrating it (with automatic Teachers discovery functionality) might open for us a new userbase.

Next, I was keeping this in secret, but we will likely ally with guys from LabRemote, and integrate Courseware with their app. This can also bring us to a new level of users, where mobility for teachers matters.

The final news is that Courseware will likely become my thesis work, if I graduate this year… So I will work on the tests/quizes functionality for it. This isn’t an easy task, I would call it a challenge. If we can offer a secure and guaranteed online evaluation solution for our system, this will totally change the way virtual education is percepted today.

Also, I must say, BuddyPress (and) Courseware was a great success at WordCamp Bucharest (slides here, if you missed it)!

If you share the plans I described, leave me a comment or explain your position if you think different, maybe we can make it even better.
Keep in touch.

Thin Lizzy

WordCamp Bucharest 2010

Well, it’s over, and it was ok (people say, much better than previous year). Thanks a lot to the guys behind the event for invitation, the people that came and Cristi for not letting me alone all along the event.

Met:

My slides are on github.

Guys from Cluj, I’ve stolen stickers with WordPress, Gravatar and PollDaddy, so If you meet me, ask for them (I can be found usually at Insomnia, till late evenings coding/hacking stuff)!

P.S.: I still hate Bucharest, and I saw The Social Network (not that much impressed)…