gambas | 1 Sep 01:43 2011

Re: Issue 94 in gambas: A For-statement can store an Integer in a Byte/Short.

Updates:
	Status: Fixed

Comment #5 on issue 94 by benoit.m... <at> gmail.com: A For-statement can store  
an Integer in a Byte/Short.
http://code.google.com/p/gambas/issues/detail?id=94

Fixed in revision #4068.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
gambas | 1 Sep 01:47 2011

Re: Issue 95 in gambas: FOR-optimization not correct

Updates:
	Status: Fixed

Comment #2 on issue 95 by benoit.m... <at> gmail.com: FOR-optimization not  
correct
http://code.google.com/p/gambas/issues/detail?id=95

Fixed in revision #4068.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
Stephen Bungay | 1 Sep 02:53 2011
Picon

Using EXEC

EXEC is a wonderful thing, lighter than SHELL, but it needs things 
passed as elements of a string array and that is making for some ugly code.

Say for example you want to play two videos as a playlist in VLC, in 
exec the command might look like this;

EXEC["vlc","--intf","rc", "Video1.avi","Video2.avi"]

But what if you had different quantities of videos to play, lets say 
next time you needed to play 4 videos? How would you use EXEC to do this?

I thought of building the string and embedding the quotes in it like this;

ExecString = chr$(34)& "vlc" & chr$(34) & "," & chr$(34) & "--intf" & 
chr$(34) & "," & chr$(34) & "rc"& chr$(34) & ","
For X= 0 TO sFile.Count - 1
       ExecString = ExecString & chr$934) & sFile[X] & chr$(34)
       IF X < sFile.Count -1 then
          ExecString = ExecString & ","
      End IF
NEXT

Which would result in a string that looks like this;

"vlc", "--intf", "rc", "video1.avi", "video2.avi"

Nope. It sees the one string as one element when what I want is the 
contents of the string to be inserted as multiple elements.

At the moment I am fetching the video file names from a directory 
(Continue reading)

Benoît Minisini | 1 Sep 03:01 2011
Picon
Picon

Re: Using EXEC

> EXEC is a wonderful thing, lighter than SHELL, but it needs things
> passed as elements of a string array and that is making for some ugly code.
> 
> Say for example you want to play two videos as a playlist in VLC, in
> exec the command might look like this;
> 
> EXEC["vlc","--intf","rc", "Video1.avi","Video2.avi"]
> 
> But what if you had different quantities of videos to play, lets say
> next time you needed to play 4 videos? How would you use EXEC to do this?
> 
> 
> I thought of building the string and embedding the quotes in it like this;
> 
> ExecString = chr$(34)& "vlc" & chr$(34) & "," & chr$(34) & "--intf" &
> chr$(34) & "," & chr$(34) & "rc"& chr$(34) & ","
> For X= 0 TO sFile.Count - 1
>        ExecString = ExecString & chr$934) & sFile[X] & chr$(34)
>        IF X < sFile.Count -1 then
>           ExecString = ExecString & ","
>       End IF
> NEXT
> 
> Which would result in a string that looks like this;
> 
> "vlc", "--intf", "rc", "video1.avi", "video2.avi"
> 
> Nope. It sees the one string as one element when what I want is the
> contents of the string to be inserted as multiple elements.
> 
(Continue reading)

Stephen Bungay | 1 Sep 04:22 2011
Picon

Re: Using EXEC

On 08/31/2011 09:01 PM, Benoît Minisini wrote:
>> EXEC is a wonderful thing, lighter than SHELL, but it needs things
>> passed as elements of a string array and that is making for some ugly code.
>>
>> Say for example you want to play two videos as a playlist in VLC, in
>> exec the command might look like this;
>>
>> EXEC["vlc","--intf","rc", "Video1.avi","Video2.avi"]
>>
>> But what if you had different quantities of videos to play, lets say
>> next time you needed to play 4 videos? How would you use EXEC to do this?
>>
>>
>> I thought of building the string and embedding the quotes in it like this;
>>
>> ExecString = chr$(34)&  "vlc"&  chr$(34)&  ","&  chr$(34)&  "--intf"&
>> chr$(34)&  ","&  chr$(34)&  "rc"&  chr$(34)&  ","
>> For X= 0 TO sFile.Count - 1
>>         ExecString = ExecString&  chr$934)&  sFile[X]&  chr$(34)
>>         IF X<  sFile.Count -1 then
>>            ExecString = ExecString&  ","
>>        End IF
>> NEXT
>>
>> Which would result in a string that looks like this;
>>
>> "vlc", "--intf", "rc", "video1.avi", "video2.avi"
>>
>> Nope. It sees the one string as one element when what I want is the
>> contents of the string to be inserted as multiple elements.
(Continue reading)

Stephen Bungay | 1 Sep 04:34 2011
Picon

Re: Using EXEC

On 08/31/2011 09:01 PM, Benoît Minisini wrote:
>> EXEC is a wonderful thing, lighter than SHELL, but it needs things
>> passed as elements of a string array and that is making for some ugly code.
>>
>> Say for example you want to play two videos as a playlist in VLC, in
>> exec the command might look like this;
>>
>> EXEC["vlc","--intf","rc", "Video1.avi","Video2.avi"]
>>
>> But what if you had different quantities of videos to play, lets say
>> next time you needed to play 4 videos? How would you use EXEC to do this?
>>
>>
>> I thought of building the string and embedding the quotes in it like this;
>>
>> ExecString = chr$(34)&  "vlc"&  chr$(34)&  ","&  chr$(34)&  "--intf"&
>> chr$(34)&  ","&  chr$(34)&  "rc"&  chr$(34)&  ","
>> For X= 0 TO sFile.Count - 1
>>         ExecString = ExecString&  chr$934)&  sFile[X]&  chr$(34)
>>         IF X<  sFile.Count -1 then
>>            ExecString = ExecString&  ","
>>        End IF
>> NEXT
>>
>> Which would result in a string that looks like this;
>>
>> "vlc", "--intf", "rc", "video1.avi", "video2.avi"
>>
>> Nope. It sees the one string as one element when what I want is the
>> contents of the string to be inserted as multiple elements.
(Continue reading)

JUHASZ Robert | 1 Sep 07:32 2011
Picon

install gambas

Hello,

I have a very basic problem: I cannot install the latest version of
gambas2.
It works from the ubuntu software center but it is not up-to-date (and I
don't know if it's possible to update the version installed from the
rep).

I already had problem to install from source code before but I was not
sure if it's my computer / OS who has problem.
So now I installed a brand new ubuntu 10.04 32 bit (all updates done)
and I followed these instructions:
http://gambasdoc.org/help/install/ubuntu?show

Until "make" everything seem to be ok but at the end of "make install" I
got the attached result. gambas2 don't start.

Can anyone help ?

BTW, is there any .deb package to install gambas on an easier way for
those who are not used by compiling from source. It would be great for
me.

Thx, Robi
----------------------------------------------------------------------
make  install-data-hook
make[4]: Entering directory `/usr/src/gambas2-2.23.1/gb.opengl/src'

(Continue reading)

gambas | 1 Sep 10:56 2011

Re: Issue 95 in gambas: FOR-optimization not correct


Comment #3 on issue 95 by emil.len... <at> gmail.com: FOR-optimization not  
correct
http://code.google.com/p/gambas/issues/detail?id=95

Critical: The current solution is not correct for floating point numbers.
In this case:
   Dim i As Float
   For i = -10.0 To -1.0 Step 1.0
     Print i
   Next
The loop terminates before it is entered. That is because, if you take the  
*(long long int*)&a_double - *(long long int*)&another_double, the result  
will be reversed if both are negative, as floating point numbers are not  
twos complement.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
Benoît Minisini | 1 Sep 13:37 2011
Picon
Picon

Re: install gambas

> Hello,
> 
> I have a very basic problem: I cannot install the latest version of
> gambas2.
> It works from the ubuntu software center but it is not up-to-date (and I
> don't know if it's possible to update the version installed from the
> rep).
> 
> I already had problem to install from source code before but I was not
> sure if it's my computer / OS who has problem.
> So now I installed a brand new ubuntu 10.04 32 bit (all updates done)
> and I followed these instructions:
> http://gambasdoc.org/help/install/ubuntu?show
> 
> Until "make" everything seem to be ok but at the end of "make install" I
> got the attached result. gambas2 don't start.
> 
> Can anyone help ?
> 
> BTW, is there any .deb package to install gambas on an easier way for
> those who are not used by compiling from source. It would be great for
> me.
> 
> Thx, Robi

Did you remove the binary packages of the old version?

--

-- 
Benoît Minisini

(Continue reading)

gambas | 1 Sep 13:47 2011

Re: Issue 95 in gambas: FOR-optimization not correct


Comment #4 on issue 95 by benoit.m... <at> gmail.com: FOR-optimization not  
correct
http://code.google.com/p/gambas/issues/detail?id=95

Fixed in revision #4072.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev

Gmane