New hosting

english — Tags: , — @ 16:03

If you are seeing this, then you are using our newest hosting, notice the new domain ;-) , you can also use this if you want to.

So tired

english — Tags: , — @ 20:08

I’m so, so tired. However, at the end of the day going home is the best.

Compare

english — Tags: , , — @ 21:41

Do you see any difference?

using GLib;

namespace Cairo
{
public class Rectangle
: Object
{

public Rectangle (construct double X, construct double Y,
construct double Width, construct double Height)
{
}

public double X
{
get;
set construct;
}

public double Y
{
get;
set construct;
}

public double Width
{
get;
set construct;
}

public double Height
{
get;
set construct;
}

public static bool Equals (Rectangle rectangle, Rectangle other)
{
return rectangle.X == other.X && rectangle.Y == other.Y
&& rectangle.Width == other.Width && rectangle.Height == other.Height;
}

public static bool NotEquals (Rectangle rectangle, Rectangle other)
{
return !(Rectangle.Equals (rectangle, other));
}
}
}

First is C# code, second is Vala code. Object oriented GObject syntax.

Use:

valac --pkg=cairo Rectangle.vala

Then:

gcc `pkg-config --libs glib-2.0 --cflags glib-2.0` -I . Rectangle.c -shared -o rectangle.so

enjoy

I can’t hear!

Uncategorized — Tags: , — @ 04:45

Great weekend, both my sisters and I spent two days of fun, going to different places on Saturday and Sunday.

Summary: arrived to Mexico City at 05:00, ate breakfast and then went to the amusement park (all day there), after eating on Sunday we went to the concert!.

BTW, MCR has a great show, they played the best of their last two albums, people went crazy… both boys and girls screaming, I barely can hear.

The Black Parade 2007   The Black Parade 2007

maemo-sharp

english — Tags: , , — @ 22:51

Wondering how to develop maemo# applications? Follow this recipe to do so:

  1. Install Scratchbox, using either the Debian packages or the binaries, I’m using the binaries due to the package didn’t work for me. I installed:
  2. Set up your targets.
  3. Go to Mono’s maemo page, follow the instructions.
  4. Checkout maemo-sharp from svn and make it. Be aware the Debian package isn’t the latest one and you have to include your built maemo-sharp.dll to your compiled assembly.

And here it is, running in the scratchbox:

maemo-sharp application sample

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2004-2010 Mario Carrion | powered by WordPress with Barecity