Re: [Gambas-user] System.TimeZone Error?
Am 17.05.2014 21:55, schrieb Benoît Minisini: > Le 17/05/2014 21:32, Benoît Minisini a écrit : >> Le 10/05/2014 17:32, Wolfgang, dl7nb a écrit : >>> Hi, >>> System.TimeZone is defined as follows: >>> >>> Return the system timezone. >>> The returned value is the number of seconds you must add to the >>> locale time to get the UTC time. >>> >>> *That is not always done correctly. * >>> >>> During winter I used it and it has a result of 3600. This is correct as >>> the difference between UTC and the time her in Germany is 1 hour (or >>> 3600 seconds) >>> - >>> But now (summertime) we have daylight saving time, which means we have a >>> difference of 2 hours. System.TimeZone still shows 3600. It should show >>> 7200 to have the correct number of seconds. >>> - >>> So how can I find out what UTC.time really is?? >>> How can I solve this problem? >>> >>> regards Wolfgang >>> >> Apparently, the daylight saving time is not taken into account. I'd like >> to know how I can get this information from the system... >> > OK, I think I got it and understood what I did wrong... > Hello Benoît, good news make us happy! Thank you for hunting down this problem! Now I am looking forward to the next release ! Have a nice Sunday! Wolfgang -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Feature request: Array.Frequency
I'm converting a Java app of mine to Gambas and I could not find any equivalent to Java's Collections.frequency [1]. So I wrote this function for Integer[]: Private Function Frequency(aArray As Integer[], iValue As Integer) As Integer Dim iCount As Integer Dim iItem As Integer For Each iItem In aArray If iItem = iValue Then Inc iCount Endif Next Return iCount End Would it be possible to add Frequency as a read only property to gb.Array? /Patrik [1] http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#frequency(java.util.Collection, java.lang.Object) -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] System.TimeZone Error?
Le 17/05/2014 21:55, Benoît Minisini a écrit : > Le 17/05/2014 21:32, Benoît Minisini a écrit : >> Le 10/05/2014 17:32, Wolfgang, dl7nb a écrit : >>> Hi, >>> System.TimeZone is defined as follows: >>> >>> Return the system timezone. >>> The returned value is the number of seconds you must add to the >>> locale time to get the UTC time. >>> >>> *That is not always done correctly. * >>> >>> During winter I used it and it has a result of 3600. This is correct as >>> the difference between UTC and the time her in Germany is 1 hour (or >>> 3600 seconds) >>> - >>> But now (summertime) we have daylight saving time, which means we have a >>> difference of 2 hours. System.TimeZone still shows 3600. It should show >>> 7200 to have the correct number of seconds. >>> - >>> So how can I find out what UTC.time really is?? >>> How can I solve this problem? >>> >>> regards Wolfgang >>> >> >> Apparently, the daylight saving time is not taken into account. I'd like >> to know how I can get this information from the system... >> > > OK, I think I got it and understood what I did wrong... > Since revision #6273, System.TimeZone now takes the daylight saving time into account. It's not technically the timezone anymore, but I can't change the property name. And concretely daylight saving time changes your timezone after all. Note #1: knowing the current daylight saving time needs a GNU C library extension coming from BSD. Note #2: this f.g daylight saving time coming out of the brains of crazy politicians wanting to control time and who certainly had smoked illegal products should burn in fire. -- Benoît Minisini -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature request: Array.Frequency
Le 18/05/2014 13:44, Patrik Karlsson a écrit : > I'm converting a Java app of mine to Gambas and I could not find any > equivalent to Java's Collections.frequency [1]. > > So I wrote this function for Integer[]: > > Private Function Frequency(aArray As Integer[], iValue As Integer) As > Integer > >Dim iCount As Integer >Dim iItem As Integer > >For Each iItem In aArray > If iItem = iValue Then >Inc iCount > Endif >Next > >Return iCount > > End > > Would it be possible to add Frequency as a read only property to gb.Array? > > /Patrik > Why don't you do that in Gambas using JIT compiler ? -- Benoît Minisini -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature request: Array.Frequency
For best performance, loop over index from 0 to length-1 instead of using the For Each construct. 2014-05-18 14:43 GMT+02:00 Benoît Minisini : > Le 18/05/2014 13:44, Patrik Karlsson a écrit : > > I'm converting a Java app of mine to Gambas and I could not find any > > equivalent to Java's Collections.frequency [1]. > > > > So I wrote this function for Integer[]: > > > > Private Function Frequency(aArray As Integer[], iValue As Integer) As > > Integer > > > >Dim iCount As Integer > >Dim iItem As Integer > > > >For Each iItem In aArray > > If iItem = iValue Then > >Inc iCount > > Endif > >Next > > > >Return iCount > > > > End > > > > Would it be possible to add Frequency as a read only property to > gb.Array? > > > > /Patrik > > > > Why don't you do that in Gambas using JIT compiler ? > > -- > Benoît Minisini > > > -- > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] System.TimeZone Error?
> Note #2: this f.g daylight saving time coming out of the brains of > crazy politicians wanting to control time and who certainly had smoked > illegal products should burn in fire. > I agree. This bug report should be send to several governments where it really belongs... Jussi -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument
Le 14/05/2014 21:38, Tobias Boege a écrit : > Hi Benoit, > > when we wanted to sort a 2d array (table) by a specific column, variable at > runtime, we did the following: > > 1. Create the class, let's call it "Record", to represent the table > records which implements a _compare() method and has a SortField > property which indicates to _compare() which column we want to sort > by. > 2. Create a class "RecordGroup" which Inherits Object[] and has a > SortField(Field As Integer, Optional Mode As Integer) method which is > a multicolumn-aware version of Sort: > > Public Sub SortField(Field As Integer, Optional Mode As Integer) >Dim iInd As Integer > >For iInd = 0 To Super.Count - 1 > Super[iInd].SortField = Field >Next >Super.Sort(Mode) > End > 3. Then, we must work with RecordGroups which we can sort by, say, column 7 > using myGroup.SortField(7). > > You see that we need to set each object's SortField property to the Field > value in order to make the _compare()s work together as we desire. If some > objects "don't get it", we will lose transitivity of our relation and the > sort may fail. > > We can't use static properties in the Record class either because we may > want to have multiple groups. I don't understand that: if the sort field is a parameter of the sort, then you can store it inside a static variable just during the sort. -- Benoît Minisini -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] System.TimeZone Error?
Benoît Minisini wrote, On 05/18/2014 08:38: Le 17/05/2014 21:55, Benoît Minisini a écrit : Le 17/05/2014 21:32, Benoît Minisini a écrit : Le 10/05/2014 17:32, Wolfgang, dl7nb a écrit : Hi, System.TimeZone is defined as follows: Return the system timezone. The returned value is the number of seconds you must add to the locale time to get the UTC time. *That is not always done correctly. * During winter I used it and it has a result of 3600. This is correct as the difference between UTC and the time her in Germany is 1 hour (or 3600 seconds) - But now (summertime) we have daylight saving time, which means we have a difference of 2 hours. System.TimeZone still shows 3600. It should show 7200 to have the correct number of seconds. - So how can I find out what UTC.time really is?? How can I solve this problem? regards Wolfgang Apparently, the daylight saving time is not taken into account. I'd like to know how I can get this information from the system... OK, I think I got it and understood what I did wrong... Since revision #6273, System.TimeZone now takes the daylight saving time into account. It's not technically the timezone anymore, but I can't change the property name. And concretely daylight saving time changes your timezone after all. Note #1: knowing the current daylight saving time needs a GNU C library extension coming from BSD. Note #2: this f.g daylight saving time coming out of the brains of crazy politicians wanting to control time and who certainly had smoked illegal products should burn in fire. I am with you, Benoit. +1 Bill -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature request: Array.Frequency
Ok, so the module looks like this now, is Variant slower than other native data types? Export Fast Public Function Frequency(avValues As Variant[], vValue As Variant) As Integer Dim i As Integer Dim iFrequency As Integer For i = 0 To avValues.Length - 1 If avValues[i] = vValue Then Inc iFrequency Endif Next Return iFrequency End 2014-05-18 14:50 GMT+02:00 Emil Lenngren : > For best performance, loop over index from 0 to length-1 instead of using > the For Each construct. > > > 2014-05-18 14:43 GMT+02:00 Benoît Minisini : > > > Le 18/05/2014 13:44, Patrik Karlsson a écrit : > > > I'm converting a Java app of mine to Gambas and I could not find any > > > equivalent to Java's Collections.frequency [1]. > > > > > > So I wrote this function for Integer[]: > > > > > > Private Function Frequency(aArray As Integer[], iValue As Integer) As > > > Integer > > > > > >Dim iCount As Integer > > >Dim iItem As Integer > > > > > >For Each iItem In aArray > > > If iItem = iValue Then > > >Inc iCount > > > Endif > > >Next > > > > > >Return iCount > > > > > > End > > > > > > Would it be possible to add Frequency as a read only property to > > gb.Array? > > > > > > /Patrik > > > > > > > Why don't you do that in Gambas using JIT compiler ? > > > > -- > > Benoît Minisini > > > > > > > -- > > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > > Instantly run your Selenium tests across 300+ browser/OS combos. > > Get unparalleled scalability from the best Selenium testing platform > > available > > Simple to use. Nothing to install. Get started now for free." > > http://p.sf.net/sfu/SauceLabs > > ___ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Feature request: Array.Frequency
Yes, Variant is slower than other native data types, as it must always examine the type of the variable when it is used. Note that you should write "avValues As Variant" instead of Variant[], since a Variant can contain any type (for example any Array). A Variant[] however is always an array containing Variants, which might not be what you want. The JIT compiler is good at optimizing code that uses native datatypes, but not so good at optimizing code that uses Variants. If you want fast code that works on Integer arrays, you should have a function that only accept Integer arrays. 2014-05-18 16:04 GMT+02:00 Patrik Karlsson : > Ok, so the module looks like this now, is Variant slower than other native > data types? > > Export > Fast > > Public Function Frequency(avValues As Variant[], vValue As Variant) As > Integer > > Dim i As Integer > Dim iFrequency As Integer > > For i = 0 To avValues.Length - 1 > If avValues[i] = vValue Then > Inc iFrequency > Endif > Next > > Return iFrequency > > End > > > > 2014-05-18 14:50 GMT+02:00 Emil Lenngren : > > > For best performance, loop over index from 0 to length-1 instead of using > > the For Each construct. > > > > > > 2014-05-18 14:43 GMT+02:00 Benoît Minisini >: > > > > > Le 18/05/2014 13:44, Patrik Karlsson a écrit : > > > > I'm converting a Java app of mine to Gambas and I could not find any > > > > equivalent to Java's Collections.frequency [1]. > > > > > > > > So I wrote this function for Integer[]: > > > > > > > > Private Function Frequency(aArray As Integer[], iValue As Integer) As > > > > Integer > > > > > > > >Dim iCount As Integer > > > >Dim iItem As Integer > > > > > > > >For Each iItem In aArray > > > > If iItem = iValue Then > > > >Inc iCount > > > > Endif > > > >Next > > > > > > > >Return iCount > > > > > > > > End > > > > > > > > Would it be possible to add Frequency as a read only property to > > > gb.Array? > > > > > > > > /Patrik > > > > > > > > > > Why don't you do that in Gambas using JIT compiler ? > > > > > > -- > > > Benoît Minisini > > > > > > > > > > > > -- > > > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > > > Instantly run your Selenium tests across 300+ browser/OS combos. > > > Get unparalleled scalability from the best Selenium testing platform > > > available > > > Simple to use. Nothing to install. Get started now for free." > > > http://p.sf.net/sfu/SauceLabs > > > ___ > > > Gambas-user mailing list > > > Gambas-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > > Instantly run your Selenium tests across 300+ browser/OS combos. > > Get unparalleled scalability from the best Selenium testing platform > > available > > Simple to use. Nothing to install. Get started now for free." > > http://p.sf.net/sfu/SauceLabs > > ___ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gb.db.postgresql – These Components Are Disabled
Hi all, compiling Gambas3 following the instructions Gambas Documentation I received this result: || THESE COMPONENTS ARE DISABLED: || - gb.db.postgresql || - gb.gmp || - gb.gtk3 || - gb.jit With web suggestions and research on Synaptic I have installed these libraries: libgmp-dev libgtk-3-dev llvm 1:3.4-0ubuntu1 Now I receive: THESE COMPONENTS ARE DISABLED: only on gb.db.postgresql, but I just do not understand why. Because I have already installed the following libraries: libpq5 libpq-dev rsyslog librdf0 These system data: [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.13.0-27-generic Architecture=x86_64 Distribution=Ubuntu 14.04 LTS Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=3846M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 Attach file.log obtained by: ( ./reconf-all && ./configure -C && make && sudo make install ) > ~/Scrivania/compile.log 2>&1 Help me please. gianluigi compile.log.tar.gz Description: application/gzip -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] System.TimeZone Error?
On 05/18/2014 08:53 AM, Jussi Lahtinen wrote: >> Note #2: this f.g daylight saving time coming out of the brains of >> crazy politicians wanting to control time and who certainly had smoked >> illegal products should burn in fire. >> > I agree. This bug report should be send to several governments where it > really belongs... Sending bug reports to governments; that's a brilliant idea. Laws are referred to as "code", are they not? Maybe someone should notify the Pirate Party about this. They'd love it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Segfault when trying to debug stack overflow
Le 14/05/2014 23:22, Tobias Boege a écrit : > Hi Benoit, > > simple issue this time (I think). When my program produces a stack overflow > and I try to get the value of an argument to the overflowing stack frame, > using the IDE debugging facilities, "it" (the interpreter?) segfaults. > > Run the attached project and when the stack is overflowed, select the iInt > parameter in the function body as if you would want to know its value. (I > actually did this because I wanted to know how deep the Gambas stack can be > exhausted with a minimal function. Guess I'll just print the value now...) > > Regards, > Tobi > The revision #6276 should behave better with that scenario. Regards, -- Benoît Minisini -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.db.postgresql – These Components Are Disabled
On zo, 2014-05-18 at 20:38 +0200, gian wrote: > Hi all, > > compiling Gambas3 following the instructions Gambas Documentation I received > this > result: > > || THESE COMPONENTS ARE DISABLED: > > || - gb.db.postgresql libpg-dev http://packages.ubuntu.com/trusty/libpq-dev > > || - gb.gmp libgmp-dev http://packages.ubuntu.com/trusty/libgmp-dev > > || - gb.gtk3 libgtk-3-dev http://packages.ubuntu.com/trusty/libgtk-3-dev > > || - gb.jit llvm-3.4 http://packages.ubuntu.com/trusty/llvm-3.4 > > With web suggestions and research on Synaptic I have installed these > libraries: > > libgmp-dev > > libgtk-3-dev > > llvm 1:3.4-0ubuntu1 > You did very well figuring out these dependencies ;) > > Now I receive: > > THESE COMPONENTS ARE DISABLED: only on gb.db.postgresql, but I just do not > understand why. > Because I have already installed the following libraries: > > libpq5 > > libpq-dev > > rsyslog > > librdf0 libpq-dev (depends on libpq5 on Ubuntu 14.04) should be enough as far as I am aware. At least they where for Gambas 3.5.2 I haven't compiled trunk version on Ubuntu for a while (got lazy because of the Daily builds PPA available), so maybe something changed in the trunk dependencies. Maybe Sebastian (of the Daily Builds PPA) might be able to help. He should be on this mailing list as well... -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.db.postgresql – These Components Are Disabled
You can ignore those if you are not going to use them. They are not mandatory. Jussi On Sun, May 18, 2014 at 9:38 PM, gian wrote: > Hi all, > > compiling Gambas3 following the instructions Gambas Documentation I > received this > result: > > || THESE COMPONENTS ARE DISABLED: > > || - gb.db.postgresql > > || - gb.gmp > > || - gb.gtk3 > > || - gb.jit > > With web suggestions and research on Synaptic I have installed these > libraries: > > libgmp-dev > > libgtk-3-dev > > llvm 1:3.4-0ubuntu1 > > Now I receive: > > THESE COMPONENTS ARE DISABLED: only on gb.db.postgresql, but I just do not > understand why. > Because I have already installed the following libraries: > > libpq5 > > libpq-dev > > rsyslog > > librdf0 > > These system data: > > [System] > Gambas=3.5.90 > > OperatingSystem=Linux > > Kernel=3.13.0-27-generic > > Architecture=x86_64 > > Distribution=Ubuntu 14.04 LTS > > Desktop=GNOME > > Theme=QGtk > > Language=it_IT.UTF-8 > > Memory=3846M > > [Libraries] > > Cairo=libcairo.so.2.11301.0 > > Curl=libcurl.so.4.3.0 > > DBus=libdbus-1.so.3.7.6 > > GStreamer=libgstreamer-0.10.so.0.30.0 > > GStreamer=libgstreamer-1.0.so.0.204.0 > > GTK+3=libgtk-3.so.0.1000.8 > > GTK+=libgtk-x11-2.0.so.0.2400.23 > > OpenGL=libGL.so.1.2.0 > > Poppler=libpoppler.so.44.0.0 > > Qt4=libQtCore.so.4.8.6 > > SDL=libSDL-1.2.so.0.11.4 > > Attach file.log > obtained by: ( ./reconf-all && ./configure -C && make > && sudo make install ) > ~/Scrivania/compile.log 2>&1 > > Help me please. > > gianluigi > > > > -- > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 524 in gambas: "<" truncate string with gb.gtk
Updates: Status: Accepted Labels: -Version-3.5.3 Version-3.5.0 Comment #1 on issue 524 by benoit.m...@gmail.com: "<" truncate string with gb.gtk http://code.google.com/p/gambas/issues/detail?id=524 The text of message boxes is actually interpreted as HTML in gb.gtk. Qt decides if it is HTML or plain text by itself, which is not necessarily a good idea. I don't know the algorithm used by Qt, so I can't to exactly the same thing with gb.gtk. I must think about it... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 525 in gambas: Application font is not displayed with all controls in gb.gtk
Updates: Status: Accepted Labels: -Version-3.5.3 Version-3.5.0 Comment #1 on issue 525 by benoit.m...@gmail.com: Application font is not displayed with all controls in gb.gtk http://code.google.com/p/gambas/issues/detail?id=525 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 525 in gambas: Application font is not displayed with all controls in gb.gtk
Updates: Status: Fixed Comment #2 on issue 525 by benoit.m...@gmail.com: Application font is not displayed with all controls in gb.gtk http://code.google.com/p/gambas/issues/detail?id=525 Fixed in revision #6277. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] HttpClient - Out of memory errors
I am attempting to use the HttpClient, but keep getting these messages: hClient.Status = -1027 hClient.ErrorText = Out of memory I took the example program that comes with Gambas (HttpGet 3.0.0) and modified it to bypass the form, to make it easier to make and test changes. Some HTTP addresses work, but others do not. Some that work are: "http://elinks.or.cz/"; and "http://gambasdoc.org/help"; One that I need to run, but doesn't is: hClient.URL = "https://sandbox.familysearch.org/.well-known/app-meta"; Note that I can take the "https://sandbox.familysearch.org/.well-known/app-meta"; address and paste it into my browser and I have exactly what I am looking for. Just so you know, this is an example of a 'Get' that I am trying to write in Gambas: GET https://sandbox.familysearch.org/.well-known/app-meta Accept: application/atom+xml This is my current code: Public Sub Form_Open() '/// ' We set Default configuration values '/// ClsParams.ProxyHost = "127.0.0.1:3128" ClsParams.ProxyUser = "" ClsParams.ProxyPwd = "" ClsParams.ProxyAuth = Net.AuthNone ClsParams.CookiesFile = User.Home & "/gbcookies.txt" ' ' Now we create the HttpClient object ' 'MyHTTP=NEW HttpClient AS "MyHTTP" GetFile() End Public Sub GetFile() Dim hClient As HttpClient Dim sBuffer As String hClient = New HttpClient As "hClient" ' hClient.URL = "http://gambasdoc.org/help"; hClient.URL = "https://sandbox.familysearch.org/.well-known/app-meta"; hClient.Async = False hClient.Timeout = 20''' was 60 ' hClient.Encoding = "Accept: application/atom+xml" hClient.Encoding = "Accept: application/xml" ' hClient.Encoding = "Accept: text/html" hClient.Get() Print "Begin" If hClient.Status < 0 Then Print "hClient.Status = " & hClient.Status Print "hClient.ErrorText = " & hClient.ErrorText Else ' Success - read the data If Lof(hClient) Then sBuffer = Read #hClient, Lof(hClient) Print sBuffer Print "hClient.code (good)= " & hClient.Code Print "hClient.reason = " & hClient.reason End If Print "end" End Results: with hClient.URL = "http://gambasdoc.org/help"; hClient.code (good)= 200 hClient.reason = OK with hClient.URL = "https://sandbox.familysearch.org/.well-known/app-meta"; hClient.Status = -1027 hClient.ErrorText = Out of memory [System] OperatingSystem=Linux Kernel=3.11.0-12-generic Architecture=x86_64 Memory=8048256 kB DistributionVendor=LinuxMint DistributionRelease="Linux Mint 16 Petra" Desktop=Gnome [Gambas 3] Version=3.1.1 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.4 GTK+=libgtk-x11-2.0.so.0.2400.20 -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] -Inf
I have an interpolation algorithm that continually moves the "current" value toward its "target" value in increments increased by the "distance" between the current and target values. Recently when assigning random values to the target values the current values eventually become negative infinity (-Inf), which seems to disregard further modification. Here's the code: OrientationDistance = Abs(Client.PlayerData[p].Limb.Torso.Current[Axis] - Client.PlayerData[p].Limb.Torso.Target[Axis]) * OrientationDistanceCoefficient If Client.PlayerData[p].Limb.Torso.Current[Axis] < Client.PlayerData[p].Limb.Torso.Target[Axis] Then Client.PlayerData[p].Limb.Torso.Velocity[Axis] = (Client.PlayerData[p].Limb.Torso.Velocity[Axis] + OrientationAcceleration) * OrientationDistance If Client.PlayerData[p].Limb.Torso.Velocity[Axis] > OrientationVelocityMaximum Then Client.PlayerData[p].Limb.Torso.Velocity[Axis] = OrientationVelocityMaximum Else Client.PlayerData[p].Limb.Torso.Velocity[Axis] = (Client.PlayerData[p].Limb.Torso.Velocity[Axis] - OrientationAcceleration) * OrientationDistance If Client.PlayerData[p].Limb.Torso.Velocity[Axis] < - OrientationVelocityMaximum Then Client.PlayerData[p].Limb.Torso.Velocity[Axis] = - OrientationVelocityMaximum Endif Client.PlayerData[p].Limb.Torso.Current[Axis] += Client.PlayerData[p].Limb.Torso.Velocity[Axis] Any ideas what could be causing this? I don't even know what negative infinity means, though it's obviously something mathematicians found useful to solve a particular problem. In my case it botches my player animations by making limbs disappear. Thanks, everyone. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] immediate pane is read-only
Hope I didn't miss this in an earlier post, but it seems with the current daily PPA build that the immediate pane doesn't allow character entry. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user