Getting away from some Gtk Warning

If you found a warning like:

GtkWarning: Ignoring the separator setting

when you are playing around with glade and pygtk it is because glade create any dialogue with the “Has separator” set to No, instead Yes.

More info in this #587288

On a side note this solved the first bug/warning on neuronvisio 🙂

HIH someone 🙂

Tracker website and (another) git workflow

Tracker is under a massive refactoring phase for the release of the 0.7.x series and there is a lot of work carried out. So to catch up and to give better info we started to work on the website to update the info over there.

Look at our new shiny development page where you can find the details and how to install tracker from the source with all the packages that you need in a debian based distro. BTW if you know what you have to install in Fedora and friends just let us know and we are going to add them in no time.

Anyway, I started this post to highlight another hint on how to use git (and where to find later when I will forget…)

The good news is Tshepang stated to contribute to the tracker website (source tracker website – if you feel like patches are always welcomed and yes you have to download all the gnomeweb-wml module).

Before today I always used git as a stand alone developer, but now I had to figure out how to track the changes in the master form the other projects, without losing all my work and the patches.

So here is the solution of this riddle.

From the master create your own branch

git checkout -b WIP

apply the patch and work on the branch

git am 0001-super_patch.patch

hack hack hack

git commit -am "A lot of good stuff"

Now you ready to go. You want to put back your changes in the master and then push on the server.

How to do that?

You must rebase your local Work In Progress branch with the local master that track the remote master. eh? yeah. Let’s go through the command:

git checkout master #Back in master

git pull # Grab all the new updates

git checkout WIP # Back in WIP

git rebase master #The Black magic. Commit all you change on top of the master ones

and now you good to go:

git checkout master # Back in master
git merge WIP # It’s gonna be a fast foward merge so no commit message will be created; that is exactly what you want, because the meaningful commits’ messages are in the WIP branch and a commit with the message “merged WIP” is not that interesting.

git push # And we go online. 🙂

On a side note:
gitg is your friend.

gitg screenshot

gitg screenshot

Some stuff about git you should know

Git rocks, and after two days of using I can confirm it.

I was a user of bazar, but with the switching of GNOME to git and the big trouble that bazar was giving me to commit on the svn of the EBI I decided to give to git a go.

Also on bioinfoblog the match between git and bazar it’s a though one, but I right now the svn support from git just works out of the box, so I started to use it.

I want also to point out that with the last git (ATMOW) is possible to create a remote branch on the svn server with:

git svn branch mybranch

and this was one of the killer feature that made me switch.

This is not a tutorial on git but I will provide you some quick and dirty pointers to other posts that I found interesting for a quick introduction to git.

Stuff to keep in mind about git:

  • You always work in a local branch.
  • You commit locally
  • You push (or dcommit if using a remote svn repository) to the remote branch.
  • The name of a remote branch is remote/foobar and you need to put the remote prefix also if it doesn’t show up with the remote prefix not optional. You need this if you create a local branch and you want to track a remote branch.

Some pointers here:

I’ve customized my bash prompt to show my current branch on a git repository. This is the code (based on some code found on the net that I can’t track anymore.. I’m sorry….) looks like this:

#git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/(1)/'
PS1='[33[0;32m]u[33[1;32m]@[33[0;32m]h[33[00m]:[33[01;34m]W[33[1;30m]$(parse_git_branch)[33[00m]$ '

The terminal looks like this
git prompt

Tracker 0.6.90 is out

tracker logo
Quick note: Tracker 0.6.90 is out.
Check it
build it 🙂

Initial support for Xesam…

Nemo and tracker. To find stuff. Really

I’m always managing a lot of files on my computer and especially I always download a lot of new scientific papers.
I use referencer to manage my collections and i save the paper using the first name of the author and the year.

However I never remember the name of the author, but I only remember when I hit that paper and saved. So here where Nemo comes handy.

Nemo “is a cross between a calendar and a file browser with labels.” The index of your file is done using tracker as back end so you don’t need to install anything else on your linux box.

Here the screenshot to give you a better understanding

Nemo Screenshot

Nemo Screenshot

So I just have to select PDF and look what I have saved yesterday and “et voilà” I found the stuff I was looking for.

If I select all the files of course it will find all the files.

Nemo All the files

Nemo All the files

Note the first screenshot that I made few minutes ago it’s already indexed by tracker and displayed by nemo.

Of course this will not replace the Nautilus o tracker GUI search, but it has its own ecological niche of use.

Skype and Ubuntu 8.10

If you wondering why Skype is not anymore working with your new shiny Intrepid Ibex 8.10 you’re not alone.

It seems pulseaudio is somehow responsible for this bad behaviour. To bring back everything to the normal situation:

killall pulseaudio
sudo apt-get remove pulseaudio
sudo apt-get install pulseaudio ubuntu-desktop

This should solve the problem. It worked here at least. 🙂

Update: I found out that only the command
killall pulseaudio
is enough.
After that you have to launch skype and it should work.

The annoying bit is that you required to do that every time you want to use skype…

SPE – A cool editor for python

If you code in python and you’re not comfortable with your current editor or IDe try to give a go to SPE.

I found it really useful and well built.

Java and gtk error

Problem: ugly program (no theme applied)
If you get an error like:

/usr/share/themes/Unity/gtk-2.0/gtkrc:41: error: lexical error or unexpected token, expected valid token

when you launch a java program under a GTK enviroment (GNOME) and the program looks really ugly or even it doesn’t start at all you may want to try the following..

Solution: Upgrade to the last 1.6 jdk.

To updgrade to the latest sdk in ubuntu follow this info:

sudo apt-get install sun-java6-jre

and select as the blessed ones:

sudo update-java-alternatives -s java-6-sun

check it:

java -version

If everything is ok launch you program 🙂

P.S.: Check that the program that you’re launching is not using a proper jre (so 1.5) otherwise all your effort will be useless.

Rhythmbox and firefox on hardy

Just for the record, if rhythmbox hang when you try to see a video on youtube with firefox, or you cannot listen to the music anymore if firefox is running something where flash is involvedd the answer to all this troupe is called: libflashsupport

sudo apt-get install libflashsupport

At least it worked on my system.

Enjoy 🙂

The clock that should deserve more attention

When latest GNOME went out with the marvelous clock-applet there was not too much hype about that. I think it was wrong. Check out the screen shoot 🙂
gnome clock applet

Isn’t that cool?

If you wondering what is the other stuff … well one is the failed tentative to run nest through ipython , the other is eclipse with a quick and dirty java program…

© 2021 Train of Thoughts

Theme by Anders NorénUp ↑

By continuing to use the site (scrolling or clicking counts), you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.