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

Playing!

english — Tags: , , — @ 22:21

I haven’t used my Nokia 770 very often, I don’t have any particular reason but time, my plans for this great gadget are:

  • Implement some kind of API for drawing recognition, of course using it on the Nokia 770 will be so hard due to memory limits, but those limits are also so inspiring for me, less resources, more effort, more learning.
  • Implement an application for using Tom Limoncelli’s system, to improve my time.
  • Play with maemo-sharp and mono for arm.

I’ll be so busy next days and the days after those.

nokia 770

Doing scp for executing my tests is the faster way to copy files into Nokia 770 IMO.

MonoHotDraw: Clock

english — Tags: , , — @ 20:47

Since past month, I’ve working on the MonoHotDraw documentation to learn about its internal API. Learning MonoHotDraw is not that difficult, I recommend you to read a little about Design Patterns for a better and faster MonoHotDraw’s API understanding, however if you have already read GoF’s Design Patterns you are ready to go!

While documenting I decided to implement an example including the most important features already implemented on MonoHotDraw to draw an interactive widget figure. Inspired on the GNOME Journal’s analog clock I decided to implement the analog MonoHotDraw clock.

Clock sample

The preview is here:

This sample lead me to find the invalidation-region bug. Checkout the code from SVN and have fun.

Neutrino is open

english — Tags: , — @ 22:37

Lossing market seems to drive companies crazy and opening their closed source is the answer to get more clients. I always enjoy reading those news.

Even we aren’t using it anymore, learning is always great.

MonoUml.Addins

Uncategorized — Tags: , — @ 21:56

When I started the current version of MonoUML.ReverseEngineering, Rodolfo suggested me to check Mono.Addins, well now I’ve done so. Mono.Addins is a library written by Lluis Sanchez to allow easy addin-like systems development, for example, MonoDevelop is currently using this library.

So what’s the relation with MonoUML? Well, right now, I’m starting to define the Core of the library that will be used for an addin-like system, of course using Mono.Addins, to change the current MonoUML implementation into an addins system. My ideas are the following:

MonoUml.Addins

Of course, this my first draft and changes may be without any warning. I have to define the signature of each interface trying to define the most generic ones. I will start changing MonoUml.ReverseEngineering component to this new effort.

I think this will be the biggest change on the MonoUML Architecture defined years ago. Read the Blueprint for more information.

MonoUML, 200707

english — Tags: , , — @ 21:29

And the MonoUML milestone 200707 is here.

MonoUML Core and MonoUML Reverse Engineering APIs are released:

murevengui application

UML Template Widgets preview

Enjoy and wait for milestone 200710.

Reverse Engineering CLR 2.0 Generics, 3

english — Tags: , , — @ 00:22

I’m one step closer (and a week!!) to release our newest Reverse Engineering CIL plugin, there are some things to change, such as to allow Lists as settings parameters, upgrade the MonoUML tab for editing Template parameters/bindings and some not-yet-found bugs, if any.

Reverse Engineering

New gadget

english — Tags: , , , — @ 23:37

After searching and searching finally got the Nokia 770, is a great piece of hardware, isn’t slow and mediocre as many reviewers said, neither heavy or useless.

Nokia 770

Why did I get it? Because I’ve always wanted to implement an algorithm to “draw UML”.

Reverse Engineering CLR 2.0 Generics, 2

Uncategorized — Tags: , — @ 16:37

Using Templates is supported by nUML, so after doing some refactoring to current CIL plugin, you can see the results:

New CIL plugin

However there’s missing the Tab-specific widgets for editing this Template information.

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