Archive for the ‘C#’ Category

Scripting Second Messenger

Friday, June 13th, 2008

I’m extending the Second Messenger by adding scripting capabilities.

I already have embedded a python engine in it and I’m working on a wrapper of the client object (I can’t give you all the power, sorry ;-).

I’m currently struggling with architectural issues and I hope to have a public version soon…

…maybe so soon that will have at first the ability to automatically answer to ScriptDialog messages. What for? Many camping chairs prompts the user with questions and possible answers: why not letting an automatic script to respond instead? ;-)

The next step could be to monitor group messages and automatically ban spamming people from your group.

Nice, huh?

Iron Python: the output stream.

Monday, April 7th, 2008

I needed to embed IronPython in my Second Messenger project. So i wrote a small interactive console looking like this:

Python Console

where in the upper section i write my code and sending the output stream on the bottom section.

(more…)

Using Gecko.WebControl on Mono

Wednesday, March 19th, 2008

I’ve tried to use gecko.WebControl on Mono under Ubuntu Linux and I kept on getting:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Gecko.WebControl ---> System.DllNotFoundException: /usr/lib/firefox/libgtkembedmoz.so
  at (wrapper managed-to-native) Gecko.WebControl:gtk_moz_embed_get_type ()
  at Gecko.WebControl.get_GType () [0x00000]
  at GtkSharp.GeckoSharp.ObjectManager.Initialize () [0x00000]
  at Gecko.WebControl..cctor () [0x00000] --- End of inner exception stack trace ---
  at <0x00000> 
  at SecondMessenger.gtk.MainWnd.initAdvertising () [0×00000]
  at SecondMessenger.gtk.MainWnd..ctor (SecondMessenger.SMClient client) [0×00000]
  at SecondMessenger.gtk.GTKClient.initUI () [0×00000]
  at SecondMessenger.SMClientManager.NewClient (System.String clientType) [0×00000]
  at SecondMessenger.SMClientManager..ctor (System.String clientType, System.Collections.Generic.List`1 accounts, System.Stringc) [0×00000]
  at SecondMessenger.Program.Esegui (System.String[] args) [0×00000]
  at SecondMessenger.Program.Main (System.String[] args) [0×00000]

That’s why even if the /usr/lib/firefox/libgtkembedmoz.so library is there is not visible to the LD_PATH.
(more…)


 
Roberto Rocco Angeloni is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

Fatal error: Cannot access protected property ObjectMgr::$_verbose in /web/htdocs/www.roccoangeloni.it/home/wp/wp-content/themes/rra/include.php on line 22