Archive for February, 2009

experiment: see others as irrational beings - for one week (or longer)

Tuesday, February 17th, 2009

Do following experiment: see others as irrational beings - for one week (or longer)

possible dis-/advantages:
Hugh Mackay - We like to think we’re ‘wired’. But, really, we’re just plain weird

how did I come here ? (or in other words: interesting how the brain works sometimes)
- I read a book about software quality - after finishing chapter 1 (ideas/definitions about quality), I thought of an old post by James

Friday, 13th - Python 3.0.1 release

Tuesday, February 3rd, 2009

Next version of py3k (3.0.1) will be released on Friday, 13th February 2009

Guess what I will do around that time :-)

more info
- [Python-Dev] 3.0.1/3.1.0 summary
- Google calendar: Python Release Schedule

Python 3.0 + Pardus ?

Sunday, February 1st, 2009

Installing Python3 took quite a while. What caused this ?

- Python would not build because of missing tkinter + a problem with dbm
- I had two freezes of Pardus 2008.2 Canis aureus with the new KDE 4.2.0 (not sure yet, what caused this - one was during the “make test” - I hope my HD is still ok)
- the “make test” :-)

But it works now - the first Hello world in new syntax:

./python3.0
Python 3.0 (r30:67503, Feb 1 2009, 21:41:15)
[GCC 4.3.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

>>> print(’Hello world’)
Hello world
[34091 refs]

>>> print ‘now with an error’
File ““, line 1
print ‘now with an error’
^
SyntaxError: invalid syntax
[34128 refs]

>>> import os
[34076 refs]
>>> print (os.name)
posix
[34093 refs]
>>> dir(os)
[’EX_CANTCREAT’, ‘EX_CONFIG’, ‘EX_DATAERR’, ‘EX_IOERR’, ‘EX_NOHOST’, ‘EX_NOINPUT’, ‘EX_NOPERM’, ‘EX_NOUSER’, ‘EX_OK’, ‘EX_OSERR’, ‘EX_OSFILE’, ‘EX_PROTOCOL’, ‘EX_SOFTWARE’, ‘EX_TEMPFAIL’, ‘EX_UNAVAILABLE’, ‘EX_USAGE’, ‘F_OK’, ‘MutableMapping’, ‘NGROUPS_MAX’, ‘O_APPEND’, ‘O_ASYNC’, ‘O_CREAT’, ‘O_DIRECT’, ‘O_DIRECTORY’, ‘O_DSYNC’, ‘O_EXCL’, ‘O_LARGEFILE’, ‘O_NDELAY’, ‘O_NOATIME’, ‘O_NOCTTY’, ‘O_NOFOLLOW’, ‘O_NONBLOCK’, ‘O_RDONLY’, ‘O_RDWR’, ‘O_RSYNC’, ‘O_SYNC’, ‘O_TRUNC’, ‘O_WRONLY’, ‘P_NOWAIT’, ‘P_NOWAITO’, ‘P_WAIT’, ‘R_OK’, ‘SEEK_CUR’, ‘SEEK_END’, ‘SEEK_SET’, ‘TMP_MAX’, ‘WCONTINUED’, ‘WCOREDUMP’, ‘WEXITSTATUS’, ‘WIFCONTINUED’, ‘WIFEXITED’, ‘WIFSIGNALED’, ‘WIFSTOPPED’, ‘WNOHANG’, ‘WSTOPSIG’, ‘WTERMSIG’, ‘WUNTRACED’, ‘W_OK’, ‘X_OK’, ‘_Environ’, ‘__all__’, ‘__builtins__’, ‘__doc__’, ‘__file__’, ‘__name__’, ‘__package__’, ‘_copyreg’, ‘_execvpe’, ‘_exists’, ‘_exit’, ‘_get_exports_list’, ‘_keymap’, ‘_make_stat_result’, ‘_make_statvfs_result’, ‘_pickle_stat_result’, ‘_pickle_statvfs_result’, ‘_putenv’, ‘_spawnvef’, ‘_unsetenv’, ‘_wrap_close’, ‘abort’, ‘access’, ‘altsep’, ‘chdir’, ‘chmod’, ‘chown’, ‘chroot’, ‘close’, ‘closerange’, ‘confstr’, ‘confstr_names’, ‘ctermid’, ‘curdir’, ‘defpath’, ‘device_encoding’, ‘devnull’, ‘dup’, ‘dup2′, ‘environ’, ‘errno’, ‘error’, ‘execl’, ‘execle’, ‘execlp’, ‘execlpe’, ‘execv’, ‘execve’, ‘execvp’, ‘execvpe’, ‘fchdir’, ‘fchmod’, ‘fchown’, ‘fdatasync’, ‘fdopen’, ‘fork’, ‘forkpty’, ‘fpathconf’, ‘fstat’, ‘fstatvfs’, ‘fsync’, ‘ftruncate’, ‘getcwd’, ‘getcwdb’, ‘getegid’, ‘getenv’, ‘geteuid’, ‘getgid’, ‘getgroups’, ‘getloadavg’, ‘getlogin’, ‘getpgid’, ‘getpgrp’, ‘getpid’, ‘getppid’, ‘getsid’, ‘getuid’, ‘isatty’, ‘kill’, ‘killpg’, ‘lchown’, ‘linesep’, ‘link’, ‘listdir’, ‘lseek’, ‘lstat’, ‘major’, ‘makedev’, ‘makedirs’, ‘minor’, ‘mkdir’, ‘mkfifo’, ‘mknod’, ‘name’, ‘nice’, ‘open’, ‘openpty’, ‘pardir’, ‘path’, ‘pathconf’, ‘pathconf_names’, ‘pathsep’, ‘pipe’, ‘popen’, ‘putenv’, ‘read’, ‘readlink’, ‘remove’, ‘removedirs’, ‘rename’, ‘renames’, ‘rmdir’, ’sep’, ’setegid’, ’seteuid’, ’setgid’, ’setgroups’, ’setpgid’, ’setpgrp’, ’setregid’, ’setreuid’, ’setsid’, ’setuid’, ’spawnl’, ’spawnle’, ’spawnlp’, ’spawnlpe’,’spawnv’, ’spawnve’, ’spawnvp’, ’spawnvpe’, ’stat’, ’stat_float_times’, ’stat_result’, ’statvfs’, ’statvfs_result’, ’strerror’, ’symlink’, ’sys’, ’sysconf’, ’sysconf_names’, ’system’, ‘tcgetpgrp’, ‘tcsetpgrp’, ‘times’, ‘ttyname’, ‘umask’, ‘uname’, ‘unlink’, ‘unsetenv’, ‘urandom’, ‘utime’, ‘wait’, ‘wait3′, ‘wait4′, ‘waitpid’, ‘walk’, ‘write’]
[34322 refs]

callgraphs of some Pardus applications

Sunday, February 1st, 2009




a short glimpse with the help of Python Call Graph

application version without
std lib
with
std lib
package-manager 1.4.0 package manager without standard library package manager with standard library
firewall-config 2.0.4 firewall-config_without_std_library.jpg firewall-config.jpg
kaptan 3.5.4 firewall-config_without_std_library.jpg kaptan.jpg
user-manager 2.2 user-manager_without_std_library.jpg user-manager.jpg
network-manager 2.1.6 network-manager.jpg
network-applet 0.5 network-applet_without_std_library.jpg network-applet.jpg
service-manager 2.0.3 service-manager.jpg
pm-install 0.0.1 pm-install_without_std_library.jpg pm-install.jpg
display-manager 0.3.7 display-manager_without_std_library.jpg display-manager.jpg
boot-manager 1.0.1 boot-manager.jpg
history-manager 0.1.1 history-manager.jpg
migration 0.8.5 migration.jpg
migration-users 0 migration-users.jpg

Pardus 2008.2 RC2
KDE 3.5.10
Qt: 3.3.8b
Python Call Graph 0.5.1
Python 2.5.4 (r254:67916, Jan 19 2009, 11:26:32)


Pardus gnome and more gui test tools which use assistive technologies

Sunday, February 1st, 2009

Do you know ldtp (Linux Desktop (GUI Application) Testing Project) ? After dogtail, let’s try this testing tool with Pardus Gnome. Recording scripts work. But playing the recorded scripts does not work from start completely (same prob also with dogtail). E.g. one needs to add more lines at begin. And for a person not having yet worked with the test tool it would be nice if the first try does not involve to look in the manuals.

ldtpeditor and starting gedit and trying to play

ldtpeditor and starting gedit and trying to play

What does one expect, nothing comes for free in life - especially since the test tools are not originally supported for Pardus. But support from #ldtp (and as has been previously in #dogtail) left a very positive impression.

More gui test tools which use at-spi you can find here. Here is a table which compares dogtail and ldtp. Todo: try out strongwind. In any case in your exploration install also accerciser.

ldtp 1.4.0
Pardus 2008.2 Canis aureus
Gnome 2.22.3

P.S. after showing this post in #ldtp to Nagappan Alagappan he already asked that I send him the script for further analysis. Very positive impression. Yesterday also: when I came with this unsupported Linux distro, he asked for a virtual image to try himself, debugged with me, so that we got ldtpeditor running. Keep up the good work !


Free Blog Counter