Re: [Gambas-user] I need a shell script

2009-04-27 Thread Joshua Higgins
Could you not replace the sudo command with gksu (or kdesu)? That command is
the same as sudo but asks in X for the password, not on the console.

2009/4/27 jbskaggs jbska...@skaggsworld.com


 I am having a sudo (permission) problem in my gamemaker program.  It
 creates
 the code and writes it to the MMain.Module and creates the .Project file.

 Now I need to be able to shell from my program to a directory and run the
 gbc2 and gba2 commands.

 I have tried several different shell commands and I have tried a script:

 cd mypathtoproject
 gbc2
 gba2

 but I get a permission not granted error.  I have tired calling the script
 from shell with sudo

 Shell sudo   scriptname.sh

 but it asks for password then hangs.

 This is really simple but I am somehow bungling it as usual.

 So could someone one correct my script and to tell me how to call it?

 JB Skaggs
 --
 View this message in context:
 http://www.nabble.com/I-need-a-shell-script-tp23248632p23248632.html
 Sent from the gambas-user mailing list archive at Nabble.com.



 --
 Crystal Reports #45; New Free Runtime and 30 Day Trial
 Check out the new simplified licensign option that enables unlimited
 royalty#45;free distribution of the report engine for externally facing
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
joshua higgins
--
--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need a shell script

2009-04-27 Thread Stefano Palmeri
Il lunedì 27 aprile 2009 03:33:00 jbskaggs ha scritto:
 I am having a sudo (permission) problem in my gamemaker program.  It
 creates the code and writes it to the MMain.Module and creates the .Project
 file.

 Now I need to be able to shell from my program to a directory and run the
 gbc2 and gba2 commands.

 I have tried several different shell commands and I have tried a script:

 cd mypathtoproject
 gbc2
 gba2

 but I get a permission not granted error.  I have tired calling the script
 from shell with sudo

 Shell sudo   scriptname.sh

 but it asks for password then hangs.

 This is really simple but I am somehow bungling it as usual.

 So could someone one correct my script and to tell me how to call it?

 JB Skaggs

Attached a little example.

Stefano


sudo-0.0.1.tar.gz
Description: application/tgz
--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need a shell script

2009-04-27 Thread jbskaggs

When I try to open this with archive manager I get:

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors

I also tried with xarchive, and ark and could not get it to open could you
re-archive it and send it again?

JB

Stefano Palmeri wrote:
 
 Il lunedì 27 aprile 2009 03:33:00 jbskaggs ha scritto:
 I am having a sudo (permission) problem in my gamemaker program.  It
 creates the code and writes it to the MMain.Module and creates the
 .Project
 file.

 Now I need to be able to shell from my program to a directory and run the
 gbc2 and gba2 commands.

 I have tried several different shell commands and I have tried a script:

 cd mypathtoproject
 gbc2
 gba2

 but I get a permission not granted error.  I have tired calling the
 script
 from shell with sudo

 Shell sudo   scriptname.sh

 but it asks for password then hangs.

 This is really simple but I am somehow bungling it as usual.

 So could someone one correct my script and to tell me how to call it?

 JB Skaggs
 
 Attached a little example.
 
 Stefano
 
  
 --
 Crystal Reports #45; New Free Runtime and 30 Day Trial
 Check out the new simplified licensign option that enables unlimited
 royalty#45;free distribution of the report engine for externally facing 
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/I-need-a-shell-script-tp23248632p23253548.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need a shell script

2009-04-27 Thread Stefano Palmeri
Il lunedì 27 aprile 2009 12:31:12 jbskaggs ha scritto:
 When I try to open this with archive manager I get:

 tar: This does not look like a tar archive
 tar: Skipping to next header
 tar: Error exit delayed from previous errors

 I also tried with xarchive, and ark and could not get it to open could you
 re-archive it and send it again?

 JB


Strange. I've created it from the Gambs IDE and the archive seems
to be fine here on my box. Anyway here again. Check the md5sum.

e6c7e1021a1ee48f070f997dd5346f53  sudo-0.0.1.tar.gz

Try 'tar xzvf sudo-0.0.1.tar.gz'

Stefano



 Stefano Palmeri wrote:
  Il lunedì 27 aprile 2009 03:33:00 jbskaggs ha scritto:
  I am having a sudo (permission) problem in my gamemaker program.  It
  creates the code and writes it to the MMain.Module and creates the
  .Project
  file.
 
  Now I need to be able to shell from my program to a directory and run
  the gbc2 and gba2 commands.
 
  I have tried several different shell commands and I have tried a script:
 
  cd mypathtoproject
  gbc2
  gba2
 
  but I get a permission not granted error.  I have tired calling the
  script
  from shell with sudo
 
  Shell sudo   scriptname.sh
 
  but it asks for password then hangs.
 
  This is really simple but I am somehow bungling it as usual.
 
  So could someone one correct my script and to tell me how to call it?
 
  JB Skaggs
 
  Attached a little example.
 
  Stefano
 
 
  -
 - Crystal Reports #45; New Free Runtime and 30 Day Trial
  Check out the new simplified licensign option that enables unlimited
  royalty#45;free distribution of the report engine for externally facing
  server and web deployment.
  http://p.sf.net/sfu/businessobjects
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user




sudo-0.0.1.tar.gz
Description: application/tgz
--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Problems compiling under Ubuntu 9.04

2009-04-27 Thread Leonardo Miliani
Does anybody have successfully compiled Gambas 2.12 under Ubuntu 9.04?
I'm trying to do but until now I has not been able to compile Gambas.
Configure works fine, no disabled componet (at part the unknown gb.qte)
but when I try to compile Gambas with make, the process hangs up during
the compilation of gb.qt.kde with the errors reported in the attached file.
(P.S.: I've had to downgrade libtool to version 1.5 'cause I had some
other errors from this library...).

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: leona...@leonardomiliani.com
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pb with transparency?

2009-04-27 Thread Simonart Dominique
Benoît Minisini a écrit :
 Hi,

 Gambas 2.12 with QT

 I had a prog that worked well in Gambas 2.11 but now it
 doesn't work correctly for all the images with transparent
 areas.
 Here is a very short illustration of the problem

 DIM PicSac AS Picture
 DIM PicCase AS Object[]
 Dim i AS Integer

 PicCase.Resize(2)
 FOR i = 0 TO 1
 PicCase[i] = NEW Picture(14, 14, TRUE)
 NEXT
 PicCase[0] = Picture.Load(image with some transparent part)
 PicCase[1] = Picture.Load(image without transparent area)

 PicSac = NEW Picture(14, 14, TRUE)
 i = 0
 Draw.Begin(PicSac)
 Draw.Picture(PicCase[i], 0, 0, 14, 14, 0, 0, 14, 14)
 Draw.End

 PictureBox1.Picture = PicSac

 i = 0 = nothing displayed
 i = 1 = correct display
 (I know that Gambas 2.12 changed the Draw routine)
 Is it a bug?

 regards,
 Dominique Simonart

 
 I will look at that.
 
 Beware that the Picture class is not really transparent. It has no alpha 
 channel but a bitmap mask.
 
 Creating a transparent Picture internally creates an X11 pixmap and a X11 
 bitmap mask. Drawing on it the must update both the pixmap and the mask. I 
 think that the mask update is buggy for the Draw.Picture() method.
 
 Anyway, you should use the Image class and its Draw method to draw an image 
 on 
 top another one with real alpha transparency.
 
 To add to the complexity, converting an Image to a Picture keeps the alpha 
 information with gb.qt, but not with gb.gtk. This is a Qt feature, that uses 
 the XRender extension for that. But GTK+ don't, and just removes all pixels 
 whose alpha component is lower than 128. But you should not take that into 
 account as it is really toolkit specific.
 
 Regards,
 
Thanks Benoit,
I replaced PicCase[] and PicSac by Image and used Draw 
method instead of Draw.Begin(...).
The last instruction is now:
PictureBox1.Picture = PicSac.Picture

Here are the results:
1) i=0 now display correctly the image with transparent part
2) If I use 2 buttons to draw with i=0 (button1) and i=1 
(button2)
*   button1 then button2 display correctly the two images 
successively
* button2 then button1 display only the image without 
transparent part (button1 didn't change the display)
* if I replace Image1 with another image without transparent 
part I could see the images associated with their buttons

In conclusion, as soon as there is a transparent part in my 
image, it could never override another image

Hope this helps
Dominique Simonart




--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gridview

2009-04-27 Thread charlesg

Hi

Have you changed the mode property to single (allows one line to be
selected) or multiple?

rgds
-- 
View this message in context: 
http://www.nabble.com/gridview-tp23252958p23254524.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need a shell script

2009-04-27 Thread charlesg

Hi

I sometimes have this problem. It works if you gunzip it first to a tar
file.

rgds
-- 
View this message in context: 
http://www.nabble.com/I-need-a-shell-script-tp23248632p23254597.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems compiling under Ubuntu 9.04

2009-04-27 Thread Marc Miralles
Hi Leonardo:

I have compiled gambas 2.12  in some computers with Ubuntu 9.04 without 
problems. It works fine

I have installed all libraries required for installation. In gambas home 
page  I found this for Ubuntu 8.10:

sudo apt-get install build-essential autoconf libbz2-dev libgnorba-dev 
libfbclient2 libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev 
libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev 
libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev 
libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev 
libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev 
libpoppler-glib-dev libasound2-dev libesd0-dev libesd-alsa0 
libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev 
firebird2.1-dev libqt4-dev

With these packages installed, I don't have problems in compilation in 
some computers with 9.04

Aram


En/na Leonardo Miliani ha escrit:
 Does anybody have successfully compiled Gambas 2.12 under Ubuntu 9.04?
 I'm trying to do but until now I has not been able to compile Gambas.
 Configure works fine, no disabled componet (at part the unknown gb.qte)
 but when I try to compile Gambas with make, the process hangs up during
 the compilation of gb.qt.kde with the errors reported in the attached file.
 (P.S.: I've had to downgrade libtool to version 1.5 'cause I had some
 other errors from this library...).

   


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pb with transparency?

2009-04-27 Thread Benoît Minisini
 Benoît Minisini a écrit :
  Hi,
 
  Gambas 2.12 with QT
 
  I had a prog that worked well in Gambas 2.11 but now it
  doesn't work correctly for all the images with transparent
  areas.
  Here is a very short illustration of the problem
 
  DIM PicSac AS Picture
  DIM PicCase AS Object[]
  Dim i AS Integer
 
  PicCase.Resize(2)
  FOR i = 0 TO 1
  PicCase[i] = NEW Picture(14, 14, TRUE)
  NEXT
  PicCase[0] = Picture.Load(image with some transparent part)
  PicCase[1] = Picture.Load(image without transparent area)
 
  PicSac = NEW Picture(14, 14, TRUE)
  i = 0
  Draw.Begin(PicSac)
  Draw.Picture(PicCase[i], 0, 0, 14, 14, 0, 0, 14, 14)
  Draw.End
 
  PictureBox1.Picture = PicSac
 
  i = 0 = nothing displayed
  i = 1 = correct display
  (I know that Gambas 2.12 changed the Draw routine)
  Is it a bug?
 
  regards,
  Dominique Simonart
 
  I will look at that.
 
  Beware that the Picture class is not really transparent. It has no alpha
  channel but a bitmap mask.
 
  Creating a transparent Picture internally creates an X11 pixmap and a
  X11 bitmap mask. Drawing on it the must update both the pixmap and the
  mask. I think that the mask update is buggy for the Draw.Picture()
  method.
 
  Anyway, you should use the Image class and its Draw method to draw an
  image on top another one with real alpha transparency.
 
  To add to the complexity, converting an Image to a Picture keeps the
  alpha information with gb.qt, but not with gb.gtk. This is a Qt feature,
  that uses the XRender extension for that. But GTK+ don't, and just
  removes all pixels whose alpha component is lower than 128. But you
  should not take that into account as it is really toolkit specific.
 
  Regards,

 Thanks Benoit,
 I replaced PicCase[] and PicSac by Image and used Draw
 method instead of Draw.Begin(...).
 The last instruction is now:
 PictureBox1.Picture = PicSac.Picture

 Here are the results:
 1) i=0 now display correctly the image with transparent part
 2) If I use 2 buttons to draw with i=0 (button1) and i=1
 (button2)
 *   button1 then button2 display correctly the two images
 successively
 * button2 then button1 display only the image without
 transparent part (button1 didn't change the display)
 * if I replace Image1 with another image without transparent
 part I could see the images associated with their buttons

 In conclusion, as soon as there is a transparent part in my
 image, it could never override another image

 Hope this helps
 Dominique Simonart


I fixed many bugs in Draw.Picture() and Draw.Image() in revision #1938, both 
for gb.qt and gb.gtk. Can you try it to check if you have the same problems?

Regards,

-- 
Benoît

--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pb with transparency?

2009-04-27 Thread Simonart Dominique
Benoît Minisini a écrit :
 Benoît Minisini a écrit :
 Hi,

 Gambas 2.12 with QT

 I had a prog that worked well in Gambas 2.11 but now it
 doesn't work correctly for all the images with transparent
 areas.
 Here is a very short illustration of the problem

 DIM PicSac AS Picture
 DIM PicCase AS Object[]
 Dim i AS Integer

 PicCase.Resize(2)
 FOR i = 0 TO 1
 PicCase[i] = NEW Picture(14, 14, TRUE)
 NEXT
 PicCase[0] = Picture.Load(image with some transparent part)
 PicCase[1] = Picture.Load(image without transparent area)

 PicSac = NEW Picture(14, 14, TRUE)
 i = 0
 Draw.Begin(PicSac)
 Draw.Picture(PicCase[i], 0, 0, 14, 14, 0, 0, 14, 14)
 Draw.End

 PictureBox1.Picture = PicSac

 i = 0 = nothing displayed
 i = 1 = correct display
 (I know that Gambas 2.12 changed the Draw routine)
 Is it a bug?

 regards,
 Dominique Simonart
 I will look at that.

 Beware that the Picture class is not really transparent. It has no alpha
 channel but a bitmap mask.

 Creating a transparent Picture internally creates an X11 pixmap and a
 X11 bitmap mask. Drawing on it the must update both the pixmap and the
 mask. I think that the mask update is buggy for the Draw.Picture()
 method.

 Anyway, you should use the Image class and its Draw method to draw an
 image on top another one with real alpha transparency.

 To add to the complexity, converting an Image to a Picture keeps the
 alpha information with gb.qt, but not with gb.gtk. This is a Qt feature,
 that uses the XRender extension for that. But GTK+ don't, and just
 removes all pixels whose alpha component is lower than 128. But you
 should not take that into account as it is really toolkit specific.

 Regards,
 Thanks Benoit,
 I replaced PicCase[] and PicSac by Image and used Draw
 method instead of Draw.Begin(...).
 The last instruction is now:
 PictureBox1.Picture = PicSac.Picture

 Here are the results:
 1) i=0 now display correctly the image with transparent part
 2) If I use 2 buttons to draw with i=0 (button1) and i=1
 (button2)
 *   button1 then button2 display correctly the two images
 successively
 * button2 then button1 display only the image without
 transparent part (button1 didn't change the display)
 * if I replace Image1 with another image without transparent
 part I could see the images associated with their buttons

 In conclusion, as soon as there is a transparent part in my
 image, it could never override another image

 Hope this helps
 Dominique Simonart

 
 I fixed many bugs in Draw.Picture() and Draw.Image() in revision #1938, both 
 for gb.qt and gb.gtk. Can you try it to check if you have the same problems?
 
 Regards,
 

Hi Benoit,

I'm sorry Benoit, but I don't install Gambas from svn, I use 
the rpms built by Guillermo Ballester Valor for OpenSuse 
(gambas 2.12-3.7). I don't know the revision level I'm using.

regards,
Dominique Simonart




--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems compiling under Ubuntu 9.04

2009-04-27 Thread Leonardo Miliani
Leonardo Miliani ha scritto:
 Marc Miralles ha scritto:
 Hi Leonardo:

 I have compiled gambas 2.12  in some computers with Ubuntu 9.04 without 
 problems. It works fine

 I have installed all libraries required for installation. In gambas home 
 page  I found this for Ubuntu 8.10:

 ...
 With these packages installed, I don't have problems in compilation in 
 some computers with 9.04
 
 With this list, I got several errors of conflicting packages... I solved
 these conflicts (or I thinked I had did that...) and got the same
 result: when I arrived at gb.qt.kde, compilation halted.
 

Strange... I tried it again, and I was able to compile Gambas... very
strange.

By the way, I'm happy to finally have Ubuntu on my 9.04.

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: leona...@leonardomiliani.com
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user