Skip to: content | sidebar | login

Home: Archive

2009-03-01 - 2009-03-31

Bergie, now look what you've done ;)

Posted on 03/19/09 10:10:14. | Bookmark this on Delicious

It started as a regular blog entry and now it seems one of most popular notes these days.

My old friend, Bergie has posted nine days ago, a short info about Jerry and his magnificent finger. I won't retype the story now, because it is not what I wanted to say. Check it yourself later :)

What I wanted to say is that you never know what you can do with your simple note. For what I read, Bergie just commented the fact that some futuristic, aesthetic surgery design has been made while our friend Jerry has it implemented for over a year. As usual it was posted on Bergie's blog with some links in common social communities like Jaiku, Qaiku, Facebook etc. After a day or two we found his note Slashdotted and spread around more and more blogs, news sites etc.

Today, I started my day with opening onet.pl - most popular Polish news portal (or rather whatever portal) and guess what I found in "Tech-news" section. Yes, you bet:

 

jerry_onet.JPG

The highlighted item read: "USB memory instead of a finger". Almost sure what I could find there I followed the link and got this:

jerry_fkn.png

 

The article reads that Jerry's got a 2GB USB in his finger and the rest of story we know, but they added that Jerry now works on the second finger edition with extended storage and WiFi connectivity. And guess what... they're quoting BBC!!! So I expect tomorrow Jay Leno will visit Jerry to ask him for the show :)

You were warned. Be careful what you do coz you never know when you end up in CNN Headlines :)

Midgard Gathering in Linkoping

Posted on 03/21/09 13:31:28. | Bookmark this on Delicious

This weekend we have another Midgard Gathering hosted by Smallone in a beautyful countryside near Linkoping, Sweden.

Yesterday we (me nad Piotras) spent almost whole day to get there. Unfortunately, even travelling by plane you need a lot of time to get there. In the evening we had a lovely time at Smallone's tasting delicoius TexMex food prepared by Eva.

Today we followed the agenda guys have written and so far we managed to accept the design for a new Midgard Schema feature - views. From now on, views will be implemented and managed by Midgard core. All you will have to do is add a MgdSchema definition like

<view name="groups_with_coord">
<property name="guid" from="midgard_group:guid" />
<property name="official" from "midgard_group:official" />
<property name="lat" from="org_routa_positiononing_location:lat" />

<join direction="left" left="midgard_group:guid" right="org_routa_positiononing_location:parentguid" />
<join direction="inner" left="midgard_group:id" right="midgard_member:gid" />

<where property="midgard_group:owner" constraint=">" value="0" />
</view>

And this will make MgdSchema to create an object that you will use like regular schema object:

<?php

$qb = new midgard_query_builder("groups_with_coord");
$qb->add_constraint("official","=","My Group");
$rst = $qb->execute();

?>

We also decided about Midgard 9.09 codename which is now "Mjolnir". Mjolnir is Thor's holy hammer, so next Midgard release is expected to be smashing.

Before lunch we had a group photo:

Linkoping2009 019.jpg

More photos are in my photo stream.

Midgard Gathering in Linkoping day 2

Posted on 03/22/09 14:11:28. | Bookmark this on Delicious

During first day we also started discussion on what next with MultiLang. The major issue is that current ML implementation limits to some content areas while more often there is a need to use ML'ed metatada and other stuff. Basic new concept presented by Piotras assumes that we have multiple records for each language for each object. This way, basing on given GUID and language contect we are able to fetch desired object from database.

This started a long, storming disussion because of linkink objects problem, multiple indexes and getting rid of local IDs.

In the evening we had some Chinese food and went to bar for some entertainment.

Today we discuessed two more items from agenda: UI changes and Datamanager refactoring. First was about adopting Bespin and/or Ubiquity features to make UI and Admin UI more human language oriented. As it was expected, another hot discussion raised because of different approaches to UI matter presente by many attendees. I prefer approach that we don't surprise end users with nifty gadgets that they are not prepared for. End users tend to expect from web application similar functionality and visual presence as they get from their OS. Besides, no matter how innovative both are, they seem to be limited to Mozilla/Firefox. Anyway we agreed that it may be a worth watching and thinking while both projects get into mature state so that we are not left behind.

Second subject was pretty easy, we all love&hate Datamanager same time. While it facilitates form and data operations, it is also limited by desgin and sometimes brings problems. The main ideas is to refactor DM to rely only on MgdSchema objects and let developer decide what to do with particular fields during runtime. Talking about DM relation to MdgSchema we couldn't miss MgdSchema inheritance which is basically about extending f.ex. midgard_article with solt_article object and benefit directly from midgard_article features and be able to add some more specific functionality designed by developer.

Somewhere around noon most of Finish team had to leave for a ferry back to Finland. We left only four of us: Smallone, Bergie, Piotras and myslef. I took the chance to bug Bergie about running MidCOM 3 aka Midgard MVC on Ragnaroek and started porting this site to Midgard MVC platform.

And of course, yo ucan find some more photos here.

Working on Winland

Posted on 03/24/09 11:17:09. | Bookmark this on Delicious

It is not a typo. It is the other state of my consciousness. I took a second approach to build Vinland on Windows.

Well... what was wrong with first approach? The approach itself. Most likely due to some knowledge issues, I made a fundamental mistake by trying to build it in VS. That was wrong.

All dependencies I have (Glib, DBus, GDA, XML, whatever) are built under MinGW so clear should be to build Vinland under MinGW too, but apparently it was clear enough for me.

Last night, just as arrived back home after Midgard Gathering, I took my wife's laptop and after some 3 hours of completinh MinGW installations along with Vinland dependencies I got first running libmidgard2 library with midgard-schema.exe and midgard-query.exe fully operational. No unresolved symbols, no broken references, no crashes at all. However I faced some issues with database creation, I blame the laptop running on Vista (yuk!) so today I started porting it again on my box under XP.

Be sure, that as soon as I get it done, I will post binaries and developers instructions :)

Building Winland - short howto for ballcrackers

Posted on 03/30/09 11:45:33. | Bookmark this on Delicious

Yep, it works. You can have Midgard2 core component on Windows. The following is short howto on painful path for poor us affected by a Dark Side.

The first and most important thing is that Midgard is in a way a Gnome software. I mean it relies heavily on Gnome components and its natural environment is Unix/POSIX. Hopefully, there is a path thru a dangerous jungle that leads straight to a Dark Side aka Win32.

Pre-requisities:

MinGW - POSIX port to Win32

MSYS - POSIX shell

Midgard dependencies - lots of them: glib, libgda, libxml2, iconv, crypt etc. Configure script will tell ya all.

Building environment

Easy, but not automated. Start with installing MinGW with MSYS by following instructions from the page. Fetch as many as you can find, standard libraries ports for MinGW and them get Midgard dependencies. Unfortunately not all have pkg-config config files, so you will have to create them to satisfy configure script. It will tell you what is missing.While unpacking dependencies put them into c:\MinGW\ structure to resemble standard FHS - it will save a lot of pain.

For now, you'd better forget about DBus. First, it is not so native as in Unix world, second you will have to build dbus-glib package on your own. To make Winland running you don't require DBus at all.

./configure && make && make install

Yes, that spell works here too, however until #1030 is fixed you need wrap lines #184 and #284 of src/midgard_connection.c with the following

#ifndef HAVE_LIBGDA_4
#endif

 

I suggest something like ./configure --with-libgda4 --without-dbus-support --prefix=c:/midgard2 command to prepare. This will disable DBus, enable libgda4 and put all stuff into c:\midgard2 based FHS structure.

TODO: Make Piotras install dependecies in $prefix path :) It is Windows, so you need all depending DLLs in bin folder under $prefix.

OK. Let's recap: environment built, dependecies installed, core compiled and installed. Next step: try it.

Configuring and running

I have tested Winland with SQLite so far. To make it run you need to create a config directory under C:\Documents and Settings\your_user eg. C:\Documents and Settings\solt\.midgard-2.0\conf.d. Using your favourite notepad.exe (joke) create midgard unified configuration file. You can use $prefix\etc\* files for reference. For initials tests use SQLite as DB provider.

With your configuration done, go to $prefix\bin and run midgard-schema.exe. If you are running XP you *may* encounter an application hang. This is probably caused by threads implementation and fact that sometimes Midgard tries to gda_init() more than once. This have to be addressed by our most valuable engineer, but till then it is safe to set env variable LIBGDA_NO_THREADS to any value (I prefer 'yes'). This will make GDA not using threads. I haven't faced that issue on Vista nor Win2003.

So... If you read this it means you have build and installed Winland on your computer and successfully initialized SQLite database. Now it is up to you what you gonna do about that :D Have fun!

Back


Return to top