Archive for March, 2007

Playing with DBus - 2

March 23rd, 2007

Some more DBus poking…

Listing the interfaces available in session (or system)

#> dbus-send –session –type=method_call –print-reply –dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames

method return sender=org.freedesktop.DBus -> dest=:1.49
[string “org.freedesktop.DBus”
string “:1.49″
string “:1.3″
string “org.gnome.PowerManager”
string “org.gnome.ScreenSaver”
string “org.xchat.service”
string “:1.4″
string “:1.0″
string “:1.5″
string “:1.6″
string “:1.2″

Now lets query org.gnome.PowerManager

#> dbus-send –session –type=method_call –print-reply –dest=org.gnome.PowerManager /org/gnome/PowerManager org.freedesktop.DBus.Introspectable.Introspect

method return sender=:1.2 -> dest=:1.52
string “<!DOCTYPE node PUBLIC “-//freedesktop//DTD D-BUS Object Introspection 1.0//EN”
“http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd”>
<node>
<interface name=”org.freedesktop.DBus.Introspectable”>
<method name=”Introspect”>
<arg name=”data” direction=”out” type=”s”/>
</method>
</interface>
<interface name=”org.freedesktop.DBus.Properties”>
<method name=”Get”>
<arg name=”interface” direction=”in” type=”s”/>
<arg name=”propname” direction=”in” type=”s”/>
<arg name=”value” direction=”out” type=”v”/>
</method>

[SNIP]

</signal>
<signal name=”OnAcChanged”>
<arg type=”b”/>
</signal>
</interface>
</node>

Note : Remember to use –session when introspecting services listed with –session flag & vice-versa (–system)

Posted in DBus | Comments (0)

Playing with DBus

March 22nd, 2007

Check out this listener - still incomplete in many ways…

Compile with “gcc listener.c -o listener `pkg-config –cflags –libs dbus-glib-1`” and run with “./listener” & to create a stream of events, fire up evolution & just start browsing through emails.

–> Signal received!
Signal path : /org/gnome/evolution/mail/newmail
Signal interface : org.gnome.evolution.mail.dbus.Signal
Signal name : MessageReading
Signal sender : :1.5
Payload : [Inbox]
Signal had 1 arguments in the payload

Posted in DBus | Comments (0)

And the life moves on…

March 22nd, 2007

Today, I finally finished all the formalities at Red Hat - deposited the laptop back with IS/IT, handed over the drawer keys to Murty ji, had a long discussion with Satish in the exit interview, burnt a copy of Fedora devel tree & finally bid goodbye to all the RedHatters :)

Leaving RH was a bit nostalgic - lots of good memories were associated with that office - our pune-trans team which was more of a family than a team, our no-mercy pool games, those TT matches, those awesome treks (I still remember how Bhalerao & Aalam had held me from falling down a steep slope!) & specially that night trek… I might miss that all!

I still plan to keep up with m17n-db & evolution projects - maybe when the core packages open up to general public with Fedora 7, I might apply for m17n-db’s ownership.

But till then, DBus’s on my mind - on all 360 degrees!

For those who never worked with Red Hat - an excellent company to work with, very laid back & relaxed environment, gives freedom to work on projects which you might like (ofcourse, official work needs to be finished first!)… & if you are a starter in the FLOSS arena, RH’s the best place to learn -  how to interact with the comunity.

It was… & will remain a dream company for me!

PS: (I’m going to install FC here on my machine when Celunite shifts to Kumar Cerebrum & when I’ll get my permanent box). I’ll set up atleast one FC repository here :)

Posted in Life @ RedHat | Comments (10)

Happy B’day Rama

March 22nd, 2007

Pictures say it all… we all got together at Emilia 401 to celebrate Rama’s B’day & it was superb fun! I just hope Anna managed to put those videos (shot from Ratish’s camera) on youtube…


The birthday boy - Rama


Anna, Ravi, Satish (Behind Rama), me & Ratish


Someone had to hold Rama from running around :D


Poor dude… the cake was all over him! Even the icing could not make it to our tummies…


…Just monkeying around - hahahaha

BTW, just to mention, the credit for yesterday’s party goes to Ravi - who remembered the birthday in first place & organized the cake along with Satish. Good work guys!

More pictures here

Posted in Friends, Roomies | Comments (2)

mayank-[dot]-jain-[at]-celunite-[dot]-com

March 21st, 2007

Today, I finally joined Celunite, Inc. Though I wanted to share alot on what all happened today, but am really feeling blank at this point of time to write anything! GMainLoop has put me in a loop which I’m trying to come out of! hahaha

Lets see what future has in store for me here…

:) :) :)

Posted in Celunite | Comments (3)