rss

Restarted work on Mono.Xna

Category : C#, Mono.Xna

As a way to familiarize myself with git-svn interoperability I re-imported the whole Mono.Xna tree in a local git branch to experiment my crazy ideas.

I looked quickly at the code added since the last time and it seems to have advanced quite good even though I saw some violations of the coding guidelines ;) . I also noticed that someone (Alan ?) added some comments on my precedent work about possible issues. I will try to look at that ASAP.

I already had some stubs of the Design namespace implemented so I will resume my work on them but more importantly I peeked a little at the Xna.Framework.Audio namespace to understand how it worked. So far I wrote the result of my researchs on a Mono.Xna’s wiki page. Feel free to add things (especially about implementation ideas).

Capharnaüm #4

Category : Capharnaüm, Circ, Linux, Mono.Xna, Monodevelop, School, Ubuntu

(I think I’m starting to like these kind of post)

  • Yay today I passed my last written exam for the Baccalauréat. Physics/Chemistry was terrific but I found Math easy (which is good because my final mark will depend mostly on this exam mark). Now it just let some practical and oral tests in the following week but it’s not big deal : meaning I will much more time to work on what I like :P .
  • I found some time to add new features to Circ like a revamped parser infrastructure and now Circ take account of its conf file. I pushed my early work on the mirror but it’s still very buggy so I don’t recommend that you upgrade.
  • For all Ubuntu performance tuning fan out of there you should try these set of scripts : http://gnomefiles.org/app.php?soft_id=1397 . Basically they remove whitespaces and such from your Gnome’s XML files which improve speed launch of your app and their memory usage.
  • Monodevelop 0.14 is out with all the juicy features I described there and more. Yesterday I just discovered that you can know generate automagically properties from a field via the right-click menu. Terrific
  • I’m wondering what are the capabitilities of this Thrust thing and if it would run fine on Mono.Xna. Will test it when I find time.
  • Tomorrow I have to go to some sort of meeting to be introduced to the job I will make during this summer. Hu who found the dumb idea to make me wake up for 9am when I just finished my exams and when I’m going to a friend’s party this evening …

Capharnaüm #3

1

Category : C#, Capharnaüm, Mono, School

  • I passed my philosophy exam today. I took some obscure subject about desire and its limit
  • I did some cleanup work on both Circ and NGenerator. I pushed the stubs of CodeScheme, the CodeDOM replacement I will use for NGenerator, on the GIT mirror. I gave Circ some love in form of a new parser infrastructure which will yield much less temp string and be faster (not yet pushed).
  • shana gets some work done on the Winforms’ WebBrowser control for Mono. She had to P/Invoke code from Mozilla C++ codebase and thus write C wrapper by hand with Visual Studio 2003. Poor shana :’) . –> http://worldofcoding.blogspot.com/2007/06/now-where-did-i-put-my-type.html

    EDIT: Ha and, blink blink Screenie

  • I managed to get VirtualBox running on my system and I installed Windows XP on it. Now I don’t have to boot anymore in Windows to use some .NET tools, that’s so cool :D .
  • Upgraded to the newly released 3.4.2 version of OpenBox. Today I accidentally logged with Metacity and I saw how much OpenBox is better in term of rapidity and lightness :P

Design changement

Category : General, School

In case you haven’t noticed, I changed the design of the blog. This one shows little things (like tags and prettier dates) that the previous one didn’t. Moreover I think this one is easier on the eyes. Now the header image seems a bit odd with the content of the blog, if by any chance (low chance) someone who read this can/wants/has the time to do a better header feel free to do it ;) .

As a side note I just came back from my first exam (practical chemistry and physics test) which was on one of the thing I disliked the most (pH titration). Geez life is cool.

Peeking at Qyoto

Category : C#, Linux

In my quest for the next UI toolkit I would use for Circ I recently decided to give Qyoto a shoot.

Qyoto is the successor of Qt# in the sense that it provides a .NET wrapper around the famous Qt library (and KDE too but I didn’t used that part). It differs from Qt# in the way to generate the bindings, indeed Qyoto use the future standard tools of KDE namely Smoke (a tool to create advanced wrappers for Qt-based libs) and Kalyptus (the corresponding binding generator) to generate the source files. Here is the screenshot of a sample provided in the distribution :

capture-colliding-mice.png

The advantages of Qyoto are those of Qt : it’s portable, have a decent native look&feel and good UI possibilities. The main disadvantage is that it’s GPL and thus force your software to be GPL which mean I don’t know if I will be able to keep the LGPL licence for every part of Circ, maybe just the plugin part.

Here are the installation steps I had to do in order to set up my Qyoto workspace on a Ubuntu machine (nota: here is the official tutorial that I adapted here) :

- Go there and download both the Smoke library and the pre-release version of Qyoto. Then decompress them in a folder.
- If you don’t have a Qt4 development version on your system (like me) install it via apt or by compiling the source via the traditional ./configure; make; sudo make install (that’s what I made but beware, it takes a lot of time)
- If your Qt4 installation isn’t in a traditional directory (for example /usr/local/Trolltech/Qt-4.3.0/ if you compiled from the source), add the bin subdirectory to your path with the command : export PATH=/usr/local/Trolltech/Qt-4.3.0/bin/:$PATH .
- Go in the folder where you extracted Smoke and build it by typing first cmake . (don’t forget the point « . ») and then make; sudo make install. Same thing for Qyoto.

At this point you should have a working environment. To verify this go in the examples/ directory of Qyoto and launch some sample with mono yoursample.monoexe. Again if you have installed Qt4 in a non standard way you have to add the lib/ subdirectories to your LD_LIBRARY_PATH environment variable like this : LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.3.0/lib:$LD_LIBRARY_PATH mono yoursample.monoexe.

So far so good, after my exam I think I will play with it and maybe make an other Circ frontend in Qt (with the main advantage that the UI would work more or less natively on Linux/KDE, MacOSX and Windows).

Next year ….

Category : General, School

Yesterday I received a mail which said that I was accepted in UTBM which is the engineering school I wanted to go. The final decision will depend on the issue of my baccalauréat (final exam in french high school) ;) . It has already been 4 days of almost exclusive revisions (ATM revising physics stuff). Why isn’t there exams about Mono and C# programming ? :P .

Yahoo !

Category : General, School

Hier nous sommes aller à l’Université de Besançon Adrien L, Adrien R, Thomas et moi pour y « défendre » notre projet d’avion solaire (et en fait justifier la somme de 300€ que le gouvernement nous avait gentiment avancé :P ). Pour dire, nous sommes déjà arrivés en retard (même si Mr Morlong a joué à l’as du volant sur ce coup là :) ), on avait préparé que dalle et comme par hasard 30s après qu’on nous est montré notre stand (et offert plein de goodies : casquettes, sacs et tout) le jury se pointe : « Mais, vous êtes pas encore prêt ?! ».

Montage en catastrophe du stand, on récupère des plaques quelque part, un projecteur, moi je trouve une feuille qui traine sur notre table et j’en fait un présentoir pour mes circuits électroniques ( :-° ). Bref, 30m plus tard on est à peu près prêt, le stand est en place et les vidéos de l’avion tourne en boucle (même si Adrien R m’a naturellement causé un BSoD intempestif sur mon Windows XP avec son SolidWorks :P ).

dscn0106.jpg dscn0102.jpg

On passe une première fois avec un jury, ça se passe pas trop mal, on refait ce qu’on a fait au PPE (sans les interruptions des profs par contre :D ). Après on commence la détente (musique pas trop fort sur le portable) et là y’a un deuxième jury qui se pointe. « Hein, mais euh, y’a plusieurs jury ? ». En plus ceux là était pressé (équité de temps y parait) alors on a dire faire un espèce de galimatias de présentation (même si certains sont restés après pour nous poser des questions).

A midi on nous donne un ticket pour aller bouffer dans le resto universitaire d’a côté. Menu : des frites (ça ça allait), des saucisses explosées et de couleur peu appétissante et une Danette ;) . Ensuite retour au stand, quelques personnes viennent nous voir et on a même quelques discussions pas mal (y’a même un « Utopiste de je-sais-plus-quoi » qui nous a parlé de son truc). Les gens de la classe de Marjo nous font chier aussi de temps en temps :D . Moi je découvre qu’on est sur une carte avec tous les lycées :

dscn0113.jpg

Puis viens la remise des diplômes dans le grand amphi. Nous on essaie de se mettre près de la sortie pour se barrer rapido. Le président commence son discours (je comprend pourquoi y’a des étudiants qui dorment dans les amphis :P ). Déjà à la base on se disait qu’on serait dans les derniers (ou à peu près) et effectivement quand le gars fait son discours il parle de 30 groupes alors qu’il y’en avait 31 (devinez qui était le 31ième :P ). Après il commence le décompte. On se dit bon allez dépêche toi de dire notre nom. Au bout de la 21ième place on est toujours pas appelé, à ce moment là on se dit : « Ouais on a pas tout perdu au moins », là le président commence a dire les lots décerné aux places 11-20 : un lecteur DVD/DivX. Là on commence un peu à s’exciter (« Bon qui pique le lecteur DVD ?! »). Seulement fait impromptu on est toujours pas appelé. Là c’est l’étonnement : « Oua on a quand même réussi à être dans les 10 premiers ». Le 10ième groupe recoit son lot de 250€ + des bouquins + des entrées gratuites et à ce moment là on appelle notre nom. Tous content et tout on commence à descendre les escaliers (« Putain les gars on a 250€ ») et là sum um du sum um le gars corrige et dit, « Vous avez gagné un chèque de 500€ » oO . Alors là ça y est nous on part en latte :D . Le temps de bouffer un truc à la sortie et de trinquer un petit verre d’Arbois on retourne à l’espace de Mr Morlong.

Le retour serait trop long à décrire mais si vous prenez 4 gars déchainés + un prof retourné + de la bonne musique + des perruques assorties + un chèque de 500€ dans le coffre, je peux vous dire que les gars qui nous voyaient sur l’autoroute on du se demander ce qui se passait dans la bagnole tellement on délirait :D .

dscn01191.jpg dscn0120.jpg