news from the svn

21 November 2008 Ivo 1 comment

well, the week is at its end :-)

the last week end and the last few days have seen a set of commits. these included a new gino, featuring the cut/copy and paste :-)

the study of this new feature allowed me to discover gtk.builder, gtk.uimanager, gtk.accelgroup and the management of signals in gtk.

I’m very proud to say that I can now subclass a gobject to add to it new properties and signals, and accessorily also accelerators :-)

on the bad side, this also means that I will soon be obliged to rewrite some parts of Gino, which isn’t completely gtk.builder-compatible.

In the last few weeks I also started to read “Programming C# 3.0″, from O’Reilly. I find the portability of softwares really interesting, so approaching the .NET framework (as well as the Mono one) will be my next step.

Once a time (not a so long time ago) I wasn’t one of the fanatics of Gnome, and today I’m still greatly critic about the softwares which compose the Gnome desktop environment. But I admire Miguel de Icaza and some other Ximians, for the efforts they’re making to improve the Linux system.

So, with many attentions, I’m saying today that.. software develops in a way much more faster than rivalities. To have an open-minded approach can be helpful.

Thinking about what pushed me to restart coding make sme smile. Just today I have downloaded again IronPython. :-)

Have a good trip in the net.

Categories: Uncategorized

back, indeed

13 November 2008 Ivo Leave a comment

I’m in Lyon again, since a couple of hours.

It sounds always strange to start again talking in French. I love the french sounds, but the Italian-French transition is always noticeable.

Coming back, I’ve read a couple of things I have heard of during the vacations. PyHP, for example (see pyhp.org). And “Sub-classing GObject in Python” (http://www.sicem.biz/personal/lgs/docs/gobject-python/gobject-tutorial.html).

Well, I’ve also read LeMonde.fr and some other news, but, you know, it’s the crisis.

I think that now, I’m able to go to bed. BTW, Thanks for the Bagna Caoda, Davide.

thursday evening, before a travel

7 November 2008 Ivo Leave a comment

hello.

not really work subjects this evening. rather a travel depart. going back to italy, since the 11th November’s a memory day.

The luggage’s not yet ready, but let me talk you about last updates. Gino’s changing, and it now includes a Gtk.Builder support. Yep, not yet working, but right in progress.

I could talk about the gtksourceview now included in the interface. I could talk about XMLFinder, which evaluates your favourite xpaths for a given document. I would also come back to the gladestore, a fine concept, but already old. Today, I would like to change in favour of pickle, for example. and add some features to the store.

well, I must admit, the mind travels so far, and in a faster way than fingers. I cannot find so much time to complete Gino.

the next days I will be probably writing a couple instruments (cmd shell, and python again) to help a colleague to put patches onto production servers. question of improving time usage. oh, time losses.

See you in Alba, the next week end ;-)

and.. allez St Etienne! :-)

Categories: Uncategorized

how to create a glade store

29 October 2008 Ivo Leave a comment

unfortunately, guys at pygtk haven’t thought about a solution about making persistent GUIs. This means that, at your next graphical application restart, you will get the initial window size and settings. And with initial, I mean the design ones.

In the last few days, I have developed a small class to store sensible informations: gladeStore. This class is instanciated just on the application ‘destroy’ event, and its job is to save all the listed properties for all the widgets belonging to your application.

It works without problems on a small test application. I will be bughunting on Gino the next few days.

BTW: Gino interface has been redesigned just today. And XMLTreeView supports the ‘tail’ of XML nodes, for the sake of completeness :-)

how to create/share a directory over a SMB network, using the command line

14 October 2008 Ivo Leave a comment

@echo off
if x%1x==xx goto usage
if +%2+ == ++ goto usage
if +%1+ == +/?+ goto usage
if +%1+ == +?+ goto usage
:command
md %1
net share %2=%1 /grant:Everyone,FULL
CACLS %1 /E /G Everyone:F
goto end
:usage
echo salut mon gars, ce script va creer le dossier que tu passe comme premier paramètre
echo et le partage sur le reseau (pour Everyone) avec le nom que t'as passé comme deuxième paramètre.
echo exemple:
echo cescript.bat c:\totocaca totocacapartage
:end

Categories: Uncategorized Tags: , , , ,

how to install gtksourceview2 on windows

8 October 2008 Ivo 1 comment

download and install all the following components:

gtk runtime installer (easier than take all the binaries and put them together)
http://sourceforge.net/projects/gtk-win/

gtksourceview2.4 binaries for win32
http://ftp.gnome.org/pub/gnome/binaries/win32/gtksourceview/2.4/
put them in the gtk runtime lib folder (or somewhere in your path)

pygtksourceview2 installer for win32
http://ftp.gnome.org/pub/gnome/binaries/win32/pygtksourceview/

libxml2, latest version binaries (really take the latest version)
ftp://xmlsoft.org/libxml2/win32/
put them in the gtk runtime lib folder (or somewhere in your path)

ok, now you can take the code in the previous post and execute it successfully.

up-to-date sample code for gtksourceview2 (from the svn)

8 October 2008 Ivo Leave a comment
#CREDITS
#http://www.progbox.co.uk/wordpress/?p=300
#DEPENDS: gtksourceview2 and libxml2
import gtk
import gtksourceview2
win = gtk.Window()
bufferS = gtksourceview2.Buffer()
manager = gtksourceview2.LanguageManager()
language = manager.get_language("xml")
#langS.set_mime_types(["text/x-python"])
bufferS.set_language(language)
bufferS.set_highlight_syntax(True)
view = gtksourceview2.View(bufferS)
view.set_show_line_numbers(True)
win.resize(400,400)
win.add(view)
win.show_all()
gtk.main()
Categories: Uncategorized Tags: , , ,

news from the SVN

3 October 2008 Ivo Leave a comment

this week’s edition of “news from the SVN” follows:

- XMLFinder: a graphical xpath evaluator (PyGTK)
- XMLFindTool and XMLTreeView: two classes which implement the Gino and XMLFinder cores; XMLFinder uses both the classes
- something doesn’t work in the CompressedFile class; under investigation

no binary distributions of these tools are provided, for now

notice: we have moved, once more. this blog is now available also on tec.nilleb.com

Filesystem Changes Monitor (FSCM) 0.1

19 September 2008 Ivo Leave a comment

The filesystem changes monitor (fscm) is a systray applet which allows you to inspect a set of filesystem entities for changes. when any change is detected, it changes its appearance.
it’s the ideal companion for a quality assurance engineer who wants to be notified upon the creation of new memory dumps/exceptions stacks/logs updates/etc.

It has hit the svn yesterday. It’s available for download from assembla.com. As usual, it is licensed under the GPL.

It uses icons found on the net (no license found for these icons), a systray icon code based on pywin32 (found on the net this too, no license as well), and pygtk. The watchdog code is mine, I haven’t found anything suitable.

Links:

  • etools project §
  • fscm download page §

Gino 0.2

29 August 2008 Ivo Leave a comment

Gino 0.2 has hit the SVN. (What’s Gino? http://www.assembla.com/wiki/show/etools/Gino)
It is delivered with a nice setup.py. With the help of py2exe, it is possible to make it a windows binary, easily portable.
The next steps? fix some(many) bugs, and prepare a Inno setup to deploy it.

If you want to try it, you can get the sources from assembla.com (http://svn2.assembla.com/svn/etools). (What are the etools? http://www.assembla.com/wiki/show/etools/Gino).

This project has been written with eclipse and pydev extensions. It isn’t clear which kind of license it will use, yet.