Posted by: sathyz on: October 13, 2009
I have used Nokia/Samsung/Sony Ericsson and recently I have switched to Motorola EM325. Finally I made up the decision to post my bad experiences with this mobile/model. My intension is not to promote some ABC mobile/model, I’m just sharing my points that I had noted these days with my mobile/model.
Posted by: sathyz on: August 17, 2009
I was so lazy to type :tabnext, :tabprev everytime to swtich between tabs in vim. Now it was made easy by,
map <silent><A-Right> :tabnext<CR>
map <silent><A-Left> :tabprevious<CR>
Got this from John Anderson’s page
Posted by: sathyz on: August 17, 2009
On my debian Squeeze, I was getting “device not managed” and my nm-applet was showing network disconnected all time. The problem was it doesn’t have the following setting in /etc/NetworkManager/nm-system-settings.conf:
[ifupdown]
managed=true
This has been mentioned in README.debian.
Bug#517427
Posted by: sathyz on: May 26, 2009
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
Posted by: sathyz on: May 11, 2009
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.
Posted by: sathyz on: April 10, 2009
just tried firefox persona. Love my firefox after that..
Posted by: sathyz on: March 25, 2009
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’.
Posted by: sathyz on: March 20, 2009
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/
Posted by: sathyz on: February 12, 2009
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
Posted by: sathyz on: February 11, 2009
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.