After generating hibernate files using ant tasks the column names and table names has to be edited.

say generated code

This has to be edited as,

I use the following sed commands to do this.

sed -i ’s|table=”\([a-zA-Z_]*\)”|table=”\"\1\"”|g’ table.hbm.xml

sed -i ’s|column name=”\([a-zA-Z_]*\)”|column name=”\"\1\"”|g’ table.hbl.xml

sed -i ’s|schema=”\([a-zA-Z_]*\)”|column name=”\"\1\"”|g’ table.hbm.xml

I started trying out gnome-do when I read an article about the upcoming ontology based tools (gnome-do and ubiquity) in Linux for you. There are many plug-ins available for gnome-do (official and community). I am using Debian(lenny) and had a hard time in setting it up. Setting up do from source was easy, but setting up the plug-ins from source was hard. Do plug-ins (0.8.3) depends on banshee (>=1.4.3), but debian lenny had a lesser version. Then I tried to set up banshee from source which again asked for gstreamer-* > 0.10.3 which was not available in Lenny. Moreover the first step for building banshee in Lenny has failed (apt-get build-dep banshee). Finally, I migrated to debian testing and got gnome-do and its plug-ins from debian repository without any problem. Its time to start our own plug-in, before proceeding to this step, I tried to build a plug-in( EOG-Slideshow ) that is available already in launchpad. All you have to do is,

1. run gnome-do from terminal

2. open the project file in monodevelop

3. build it from Monodevelop.

4. Now, open the plug-ins list by clicking on do in system tray and selecting the preferences. The list of plug-ins available are listed here.

5. We have to drag the dll (which we had compiled just now) and drop it in.

6. Terminal should show the status that the plug-in is getting installed. once it is installed then we shall enable it and start using.

Now, lets start writing the plug-in, the simplest plug-in that I found on net is Google-Search. There are few changes required (we need to include .addin.xml for the plug-in and we should inherit Act etc..).

HelloWorld.cs:

using System;

using System.Collections.Generic;

using System.Linq;

using Do.Universe;

namespace HelloWorld

{

class HelloWorldAction : Act

{

public override string Name {

get { return “HelloWorld”; }

}

public override string Description {

get { return “Say Hello World.”; }

}

public override string Icon {

get { return “search”; }

}

public override IEnumerable SupportedItemTypes {

get { return new Type[] { typeof (ITextItem) }; }

}

public override IEnumerable Perform (IEnumerable items, IEnumerable modItems) {

string query = (items.First() as ITextItem).Text;

System.Diagnostics.Process.Start(”/usr/bin/xmessage”, ” -center -default okay hello, ” + query);

return null;

}

}

}

HelloWorld.addin.xml:

<Addin

id=”HelloWorld”

namespace= “Do”

version=”0.1″

name=”HelloWorld”

description=”Say Hello World.”

author=”SatheeshKumar Mohan”

category=”Community”

>

how to compile it?

$ gmcs -target:library -r:/usr/lib/gnome-do/Do.Universe.dll HelloWorld.cs “/res:HelloWorld.addin.xml”

That’s it, add the plugin to gnome-do as we did earlier and enable it. Just launch do, type anything say, sathyz and select the action “hello world”, it will display an xmessage saying “Hello, sathyz”.

The principle is this action is supported for any text item, (so the source here is text) and action to perform is show a dialog saying hello, # that text#. In the next part l am trying to get data from a specific source, say the data for Rhythmbox comes from rhythmbox.db,for ssh connect it is ~/.ssh/config.

just tried firefox persona. Love my firefox after that.. :)


Getting Started with Personas from Mozilla Labs on Vimeo.

we used SimpleFormController for handling forms, in which we had onSuccess mapped to url say, ‘/uploadSuccess’. The problem with this was, after submitting the form the user would be taken to “/uploadSuccess”. if user presses refresh in browser or if the user goes to some page and comes back using the back button the form would be resubmitted. To avoid this, use ‘redirect:/uploadSuccess’.

Testing blog posting from gnome-blog.

Preferences:

Blog Type : Self-Run Other

Blog Protocol : MetaWeblog

XML-RPC URL : http://{blog}.wordpress.com/xmlrpc.php

courtesy: http://ullu.wordpress.com/2009/02/16/gnome-blog-for-wordpresscom-blogs/

nm-applet fails to start and shows

** (nm-applet:3006): WARNING **: nma_dbus_init(): could not acquire its service. dbus_bus_acquire_service() says: 'Connection ":1.17" is not allowed to own the service "org.freedesktop.NetworkManagerInfo" due to security policies in the configuration file'

The following solution worked for me,
user (skumar) is not a member of group netdev.

Reference : http://forums.debian.net/viewtopic.php?p=205475&sid=1675a9fa3162153fd40654f2b72cb4a8

I have been looking for a good subversion client on Linux and started using nautilussvn. That’s pretty cool, since it works from the file browser and pysvn based.

Installation is easy process. I used deb package from the nautilussvn home page on my Debian (unstable).

Still using meld for comparison and that’s also look cool. Have to try using Gvidiff.

Using nautilussvn, could see the modified files, files that are not added to repository, files that are added etc. with good emblems on them. Moreover, we can do svn actions like add, commit, revert etc also by simply right clicking the file.

It is still in development. Check out the screenshots and tutorials on hacking nautilus on that same website.

Here are the few links that I got that helps you in testing your browser. (check the results for your browser too).

  1. sunspider executes a set of java script tests and allows you to again compare it with any of your another browser.
  2. http://mozilla.pettay.fi/xhr_upload/xhr_upload_demo.html – this will basically let you test XMLhttprequests.
  3. acid tests – for testing the animation.

Embedding video in HTML is very easy now, (no need to code streaming apis).

All we need to do is just use videos same as how we embed image. Firefox3.1 has this feature enabled and its very simple.

<video src="videofile.ogg" autoplay>
  Your browser does not support the <code>video</code> element.
</video>

This will embed video in your page and starts steaming when sufficient data has been received.
Check the sample videos hosted at [2]

References:

  1. https://developer.mozilla.org/En/HTML/Element/Video
  2. http://www.double.co.nz/video_test/

Wanna try gtalk over linux!!!

Try out empathy.
http://live.gnome.org/Empathy/

I have tried on ubuntu 8.04.

Check out the post on ubuntu forum on how to install empathy,
http://ubuntuforums.org/showthread.php?p=5118375#post5118375

There are few problems which are solved when I upgraded to 2.24.0.

when creating account empathy (configuring for your google account),
– don’t miss @gmail.com in the login id

If you got any issues follow the instructions in http://live.gnome.org/Empathy/Debugging to check the logs/outputs.

My bookmarks

My Flickr

DSC09247

DSC09296

DSC01268.JPG

More Photos

 

July 2009
M T W T F S S
« May    
 12345
6789101112
13141516171819
20212223242526
2728293031  

twik twik…

Error: Twitter did not respond. Please wait a few minutes and refresh this page.