3
Nov
soapui 3.0.1 in linux
Posted in bees, linux, soapui | 1 Comment
When using soapui 3.0.1 on my linux-box I ran into the following error:
The program 'TuxPack GTK+' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 1338 error_code 8 request_code 42 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 1338 error_code 8 request_code 42 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
The fix is to add the following option to bin/soapui.sh:
JAVA_OPTS=".... -Dsoapui.jxbrowser.disable=true"
9
Jul
Linux rename command
Posted in linux | No Comments
To rename a bunch of files in a folder use the rename command. This example shows how to add a suffix for all files matching the ‘x*’ pattern:
user@user-laptop:~/data$ ls
x x-10 x-12 x-14 x-16 x-18 x-2 x-21 x-23 x-25 x-27 x-29 x-30 x-32 x-34 x-5 x-7 x-9
x-1 x-11 x-13 x-15 x-17 x-19 x-20 x-22 x-24 x-26 x-28 x-3 x-31 x-33 x-4 x-6 x-8
user@user-laptop:~/data$ rename 's/(x.*)/$1.dat/g' *
user@user-laptop:~/data$ ls
x-10.dat x-13.dat x-16.dat x-19.dat x-21.dat x-24.dat x-27.dat x-2.dat x-32.dat x-3.dat x-6.dat x-9.dat
x-11.dat x-14.dat x-17.dat x-1.dat x-22.dat x-25.dat x-28.dat x-30.dat x-33.dat x-4.dat x-7.dat x.dat
x-12.dat x-15.dat x-18.dat x-20.dat x-23.dat x-26.dat x-29.dat x-31.dat x-34.dat x-5.dat x-8.dat
user@user-laptop:~/data$
x x-10 x-12 x-14 x-16 x-18 x-2 x-21 x-23 x-25 x-27 x-29 x-30 x-32 x-34 x-5 x-7 x-9
x-1 x-11 x-13 x-15 x-17 x-19 x-20 x-22 x-24 x-26 x-28 x-3 x-31 x-33 x-4 x-6 x-8
user@user-laptop:~/data$ rename 's/(x.*)/$1.dat/g' *
user@user-laptop:~/data$ ls
x-10.dat x-13.dat x-16.dat x-19.dat x-21.dat x-24.dat x-27.dat x-2.dat x-32.dat x-3.dat x-6.dat x-9.dat
x-11.dat x-14.dat x-17.dat x-1.dat x-22.dat x-25.dat x-28.dat x-30.dat x-33.dat x-4.dat x-7.dat x.dat
x-12.dat x-15.dat x-18.dat x-20.dat x-23.dat x-26.dat x-29.dat x-31.dat x-34.dat x-5.dat x-8.dat
user@user-laptop:~/data$