From echo8hink at yahoo.com Wed Nov 1 00:09:01 2017 From: echo8hink at yahoo.com (Dave) Date: Tue, 31 Oct 2017 19:09:01 -0400 Subject: [Gambas-user] How to clear or recreate a report preview Message-ID: <4ede0153-e187-2a70-f2f5-e5ad54aaa18d@yahoo.com> I have made report preview work with a different code under the button click event. When I used just the following: rptRecipe.Preview I would get the same report all the time. However, if I use the following (with $hReport as Report): ? $hReport = New RptRecipe ? $hReport.Preview() I now get the correct "new" data results reflected in the report preview each time it is called. Hopefully I used the correct way to get there. Dave From rwe-sse at osnanet.de Fri Nov 3 12:33:40 2017 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 03 Nov 2017 12:33:40 +0100 Subject: [Gambas-user] Installing Gambas on Suse Message-ID: <59FC5414.5020607@osnanet.de> During the last weeks, I have been installing new Suse Leap 42.3 systems a few times. At first, I wondered why sometimes some of the Gambas parts were missing, sometimes not. I found that when I install via Yast, you must click on the first element ("Gambas3") and then scroll down the list all down to the bottom to click on the graphical part. Only that will activate all the elements in between. And then you have to click on the last one too if you want to have the Scripter. On the one hand, I have seen this before with other programs in Yast, sometimes it is hard to decide what is important to be installed, and there is no way to say "All the important stuff". On the other hand, I would expect a lot of newcomers to Gambas going the way over the Yast install function, so this is my idea for the maintainers of the Suse repo. Maybe it is possible to ease this a bit by adding a "Complete install" choice at the beginning of the list which will add all parts automagically. Regards Rolf From bagonergi at gmail.com Fri Nov 3 15:15:05 2017 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 3 Nov 2017 15:15:05 +0100 Subject: [Gambas-user] "Write" loses data Message-ID: Public Sub Main() Dim sPath As String = "/tmp/myFile.txt" Dim i As Integer Dim fl As File fl = Open sPath For Create For i = 1 To 6 Write #fl, "The row " & CStr(i) & "\n" Next fl.Close fl = Open sPath For Append For i = 7 To 12 Write #fl, "The row " & CStr(i) & "\n" Next fl.Close fl = Open sPath For Write For i = 1 To 6 Write #fl, "The long row " & CStr(i) & "\n" Next fl.Close End Rows 7, 8 and 9 are lost, but "Write" should not just overwrite the first six rows? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Nov 3 15:56:07 2017 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 3 Nov 2017 10:56:07 -0400 Subject: [Gambas-user] "Write" loses data In-Reply-To: References: Message-ID: <13f251b2-2e57-6069-fcef-d4957d20829b@gmail.com> On 11/03/2017 10:15 AM, Gianluigi wrote: > Public Sub Main() > > ? Dim sPath As String = "/tmp/myFile.txt" > ? Dim i As Integer > ? Dim fl As File > > ? fl = Open sPath For Create > ? For i = 1 To 6 > ????? Write #fl, "The row " & CStr(i) & "\n" > ? Next > ? fl.Close > > ? fl = Open sPath For Append > ? For i = 7 To 12 > ????? Write #fl, "The row " & CStr(i) & "\n" > ? Next > ? fl.Close > > ? fl = Open sPath For Write > ? For i = 1 To 6 > ????? Write #fl, "The long row " & CStr(i) & "\n" > ? Next > ? fl.Close > > End > > > Rows 7, 8 and 9 are lost, but "Write" should not just overwrite the first six rows? > > Regards > Gianluigi > No, it shouldn't. A text file is not a file of rows (or lines) but a file of characters (bytes). From http://gambaswiki.org/wiki/lang/open, "Unlike other Basic dialects, Gambas will never delete the contents of a file when it is opened by the WRITE keyword. So, if the new content is smaller than the old one, some garbage of the old file version will remain at the end of the new file. To avoid this, open the file including the CREATE keyword." After opening and writing to the file in Write mode, lines 10 - 12 are now garbage. This just isn't readily apparent because after the Create and Append mode writings, lines 1 - 9 consist of 90 bytes in the file. And then after the Write mode writing, the "long" rows 1 - 6 also consist of exactly 90 bytes. (The short rows are 10 bytes long [9 x 10 = 90]. The long rows are 15 bytes long [6 x 15 = 90].) -- Lee From taboege at gmail.com Fri Nov 3 16:05:02 2017 From: taboege at gmail.com (Tobias Boege) Date: Fri, 3 Nov 2017 16:05:02 +0100 Subject: [Gambas-user] "Write" loses data In-Reply-To: References: Message-ID: <20171103150502.GH793@highrise.localdomain> On Fri, 03 Nov 2017, Gianluigi wrote: > Public Sub Main() > > Dim sPath As String = "/tmp/myFile.txt" > Dim i As Integer > Dim fl As File > > fl = Open sPath For Create > For i = 1 To 6 > Write #fl, "The row " & CStr(i) & "\n" > Next > fl.Close > > fl = Open sPath For Append > For i = 7 To 12 > Write #fl, "The row " & CStr(i) & "\n" > Next > fl.Close > > fl = Open sPath For Write > For i = 1 To 6 > Write #fl, "The long row " & CStr(i) & "\n" > Next > fl.Close > > End > > > Rows 7, 8 and 9 are lost, but "Write" should not just overwrite the first > six rows? > You're not operating line-oriented. A file is not an array of variable- length lines, but an array of bytes which can only grow at the end. If you Write something at position 0, you overwrite what was previously at position 0, you are NOT inserting data in the middle. The rows you write last contain the additional 5 bytes " long" and you write 6 of those long lines, resulting in 30 bytes more. The three lines that are missing from your file had 10 bytes each, and now you see what happens: by writing longer lines, you use up bytes allocated inside the file and overwrite exactly 3 lines. It just so happened that the excess data aligned well with your shorter lines, so you see no corruption and it appears as if some data was magically lost. If you replace " long" by " longer", you see a clearer picture: The longer row 1 The longer row 2 The longer row 3 The longer row 4 The longer row 5 The longer row 6 he row 11 The row 12 Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at gambaswiki.org Fri Nov 3 16:32:02 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 03 Nov 2017 15:32:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1211: New folder create two folders. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1211&from=L21haW4- Gianluigi GRADASCHI reported a new bug. Summary ------- New folder create two folders. Type : Bug Priority : Medium Gambas version : Master Product : GUI components Description ----------- When, from IDE, we create a new folder (right mouse button) it creates two folders, if do double-click on the second folder you get an error, see attached pictures. System information ------------------ [System] Gambas=3.10.90 4db9e5c (master) OperatingSystem=Linux Kernel=4.4.0-98-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=UNITY Theme=Cleanlooks Language=it_IT.UTF-8 Memory=15975M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.0.0 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-EUV8mMKQok DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=it GIO_LAUNCHED_DESKTOP_FILE=/home//.local/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=8133 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME=/home/ IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=it_IT.UTF-8 LANGUAGE=it:en LC_ADDRESS=it_IT.UTF-8 LC_IDENTIFICATION=it_IT.UTF-8 LC_MEASUREMENT=it_IT.UTF-8 LC_MONETARY=it_IT.UTF-8 LC_NAME=it_IT.UTF-8 LC_NUMERIC=it_IT.UTF-8 LC_PAPER=it_IT.UTF-8 LC_TELEPHONE=it_IT.UTF-8 LC_TIME=it_IT.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAPERSIZE=a4 PATH=/home//bin:/home//.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD=/home/ QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/1395,unix/:/tmp/.ICE-unix/1395 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1180 USER= XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus From bugtracker at gambaswiki.org Fri Nov 3 16:32:25 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 03 Nov 2017 15:32:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1211: New folder create two folders. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1211&from=L21haW4- Gianluigi GRADASCHI added an attachment: FolderTest1.png From bugtracker at gambaswiki.org Fri Nov 3 16:32:38 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 03 Nov 2017 15:32:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1211: New folder create two folders. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1211&from=L21haW4- Gianluigi GRADASCHI added an attachment: FolderTest2.png From bagonergi at gmail.com Fri Nov 3 16:49:21 2017 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 3 Nov 2017 16:49:21 +0100 Subject: [Gambas-user] "Write" loses data In-Reply-To: <20171103150502.GH793@highrise.localdomain> References: <20171103150502.GH793@highrise.localdomain> Message-ID: Hi Lee & Tobias, thank you very much. Ahi old age! These things had already been explained to me by vuott. :-( Regards Gianluigi 2017-11-03 16:05 GMT+01:00 Tobias Boege : > On Fri, 03 Nov 2017, Gianluigi wrote: > > Public Sub Main() > > > > Dim sPath As String = "/tmp/myFile.txt" > > Dim i As Integer > > Dim fl As File > > > > fl = Open sPath For Create > > For i = 1 To 6 > > Write #fl, "The row " & CStr(i) & "\n" > > Next > > fl.Close > > > > fl = Open sPath For Append > > For i = 7 To 12 > > Write #fl, "The row " & CStr(i) & "\n" > > Next > > fl.Close > > > > fl = Open sPath For Write > > For i = 1 To 6 > > Write #fl, "The long row " & CStr(i) & "\n" > > Next > > fl.Close > > > > End > > > > > > Rows 7, 8 and 9 are lost, but "Write" should not just overwrite the first > > six rows? > > > > You're not operating line-oriented. A file is not an array of variable- > length lines, but an array of bytes which can only grow at the end. > If you Write something at position 0, you overwrite what was previously > at position 0, you are NOT inserting data in the middle. > > The rows you write last contain the additional 5 bytes " long" and you > write 6 of those long lines, resulting in 30 bytes more. The three lines > that are missing from your file had 10 bytes each, and now you see what > happens: by writing longer lines, you use up bytes allocated inside the > file and overwrite exactly 3 lines. It just so happened that the excess > data aligned well with your shorter lines, so you see no corruption and > it appears as if some data was magically lost. If you replace " long" by > " longer", you see a clearer picture: > > The longer row 1 > The longer row 2 > The longer row 3 > The longer row 4 > The longer row 5 > The longer row 6 > he row 11 > The row 12 > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Fri Nov 3 17:30:31 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 03 Nov 2017 16:30:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1211: New folder create two folders. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1211&from=L21haW4- Comment #1 by Beno?t MINISINI: I can't reproduce this behaviour, but I didn't push all the last changes yet, so let's wait a bit. Maybe I have fixed the bug without notice. :-) From bugtracker at gambaswiki.org Fri Nov 3 18:48:54 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 03 Nov 2017 17:48:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1211: New folder create two folders. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1211&from=L21haW4- Comment #2 by Charlie REINL: that seams to be a problem in the TreeView From bugtracker at gambaswiki.org Sat Nov 4 11:19:47 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 04 Nov 2017 10:19:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1212: Gambas IDE cannot start Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1212&from=L21haW4- Moviga TECHNOLOGIES reported a new bug. Summary ------- Gambas IDE cannot start Type : Bug Priority : Medium Gambas version : 3.10 Product : Development Environment Description ----------- I suspect that it is Arch's recent QT version that does not dance well with Gambas? ~> gambas3 QObject::connect: invalid null parameter fish: 'gambas3' terminated by signal SIGSEGV (Address boundary error) (I use fish, not bash - that's why it says fish) The same happens both with 3.10 and a pretty recent GIT version. From bugtracker at gambaswiki.org Mon Nov 6 18:57:25 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 06 Nov 2017 17:57:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1213: Add new debian/ubuntu sections Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1213&from=L21haW4- Gianfranco COSTAMAGNA reported a new bug. Summary ------- Add new debian/ubuntu sections Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Hello, can you please add the following? >From b881a1e9f3b5a29960dfb6e5c9b90a6b0f9821ab Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 3 Nov 2017 23:52:17 +0100 Subject: [PATCH] Update Debian and Ubuntu archive sections --- gambas3-3.9.2.orig/app/src/gambas3/install/group/debian +++ gambas3-3.9.2/app/src/gambas3/install/group/debian @@ -6,6 +6,7 @@ devel debug doc editors +education electronics embedded fonts @@ -14,6 +15,7 @@ gnome graphics gnu-r gnustep +golang hamradio haskell httpd @@ -28,6 +30,7 @@ lisp localization mail math +metapackages misc net news --- gambas3-3.9.2.orig/app/src/gambas3/install/group/ubuntu +++ gambas3-3.9.2/app/src/gambas3/install/group/ubuntu @@ -6,6 +6,7 @@ devel debug doc editors +education electronics embedded fonts @@ -14,6 +15,7 @@ gnome graphics gnu-r gnustep +golang hamradio haskell httpd @@ -28,6 +30,7 @@ lisp localization mail math +metapackages misc net news thanks! From bugtracker at gambaswiki.org Mon Nov 6 23:19:26 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 06 Nov 2017 22:19:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1211: New folder create two folders. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1211&from=L21haW4- Comment #3 by Beno?t MINISINI: Is it fixed with last commit? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Mon Nov 6 23:22:47 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 06 Nov 2017 22:22:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1213: Add new debian/ubuntu sections In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1213&from=L21haW4- Comment #1 by Beno?t MINISINI: Done in commit https://gitlab.com/gambas/gambas/commit/31eafccb89c379a96ca4763543cef96f35122678 Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Tue Nov 7 09:21:50 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 07 Nov 2017 08:21:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1211: New folder create two folders. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1211&from=L21haW4- Comment #4 by Gianluigi GRADASCHI: Yes, it is fixed. Thank yuo Gianluigi GRADASCHI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Thu Nov 9 10:19:52 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 09 Nov 2017 09:19:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1214: Gateway GEO-IP Filter Alert Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1214&from=L21haW4- Gleb DEMCHENKO reported a new bug. Summary ------- Gateway GEO-IP Filter Alert Type : Request Priority : Medium Gambas version : 3.10 Product : Bugtracker Description ----------- Hello. Thank You for Your work. I can't access to http://gambaswiki.org and http://gambas.sourceforge.net/ from Ukrainian IP. I got message : "This site has been blocked by the network administrator. Block reason: Gateway GEO-IP Filter Alert.IP address: 195.16.76.249.Connection initiated from country: Ukraine". Why ? Best regards, Gleb From bugtracker at gambaswiki.org Thu Nov 9 12:58:07 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 09 Nov 2017 11:58:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1214: Gateway GEO-IP Filter Alert In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1214&from=L21haW4- Comment #1 by Beno?t MINISINI: No idea. The two sites are on two completely different hosts (the first one is on my company's host infrastructure, the second one is hosted at SourceForge). So I guess the problem is more on your side: your Internet provider, or something between it and the final web site... Need a network expert to tell you! From hans at gambas-buch.de Thu Nov 9 17:06:04 2017 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 9 Nov 2017 17:06:04 +0100 Subject: [Gambas-user] RpcClient - class EvalReply (sCad As String) Message-ID: Hello, I need help describing the function EvalReply (sCad As String) (method in class RpcClient (gb.xml)). Questions: What does this function do? How is this feature used? Every answer is read with pleasure. Best regards Honsek From bagonergi at gmail.com Sun Nov 12 16:26:15 2017 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 12 Nov 2017 16:26:15 +0100 Subject: [Gambas-user] Set name in gb.report preview Message-ID: Can you set the name of the pdf file in gb.report2 Preview form? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Nov 12 17:24:03 2017 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 12 Nov 2017 17:24:03 +0100 Subject: [Gambas-user] Set name in gb.report preview In-Reply-To: References: Message-ID: what do you want to do ... setting by advance ? 2017-11-12 16:26 GMT+01:00 Gianluigi : > Can you set the name of the pdf file in gb.report2 Preview form? > > Regards > Gianluigi > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard From bagonergi at gmail.com Sun Nov 12 17:39:27 2017 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 12 Nov 2017 17:39:27 +0100 Subject: [Gambas-user] Set name in gb.report preview In-Reply-To: References: Message-ID: Hi Fabien, Yes :-) Regards Gianluigi 2017-11-12 17:24 GMT+01:00 Fabien Bodard : > what do you want to do ... setting by advance ? > > 2017-11-12 16:26 GMT+01:00 Gianluigi : > > Can you set the name of the pdf file in gb.report2 Preview form? > > > > Regards > > Gianluigi > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List > > https://lists.gambas-basic.org/listinfo/user > > > > Hosted by https://www.hostsharing.net > > > > > > -- > Fabien Bodard > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Nov 12 17:44:52 2017 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 12 Nov 2017 17:44:52 +0100 Subject: [Gambas-user] DataChooser double click not work Message-ID: As a object, may be a bug? See attached Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DataChooser-0.0.1.tar.gz Type: application/x-gzip Size: 11530 bytes Desc: not available URL: From g4mba5 at gmail.com Sun Nov 12 17:53:13 2017 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 12 Nov 2017 17:53:13 +0100 Subject: [Gambas-user] DataChooser double click not work In-Reply-To: References: Message-ID: <814b1903-a4fa-a595-9f3b-2aa5ab848661@gmail.com> Le 12/11/2017 ? 17:44, Gianluigi a ?crit?: > As a object, may be a bug? > > See attached > > Regards > Gianluigi > Yes, but you must not use this event, as it is eaten by the DateChooser components. Use the Activate event instead. -- Beno?t Minisini From bagonergi at gmail.com Sun Nov 12 18:09:47 2017 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 12 Nov 2017 18:09:47 +0100 Subject: [Gambas-user] DataChooser double click not work In-Reply-To: <814b1903-a4fa-a595-9f3b-2aa5ab848661@gmail.com> References: <814b1903-a4fa-a595-9f3b-2aa5ab848661@gmail.com> Message-ID: Hi Benoit, It works very well, thank you. Regards Gianluigi 2017-11-12 17:53 GMT+01:00 Beno?t Minisini : > Le 12/11/2017 ? 17:44, Gianluigi a ?crit : > >> As a object, may be a bug? >> >> See attached >> >> Regards >> Gianluigi >> >> > Yes, but you must not use this event, as it is eaten by the DateChooser > components. Use the Activate event instead. > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Nov 12 19:17:24 2017 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 12 Nov 2017 13:17:24 -0500 Subject: [Gambas-user] RpcClient - class EvalReply (sCad As String) In-Reply-To: References: Message-ID: <294fd60c-a987-d821-6780-abf5743691eb@gmail.com> RpcClient.EvalReply ( sCad As String ) As Variant : EvalReply simply returns the data portion of a XML-RPC response. This data could be of the type integer, float, string, boolean, array, structure, etc. If you look at the example of a typical XML-RPC response at https://en.wikipedia.org/wiki/XML-RPC#Examples , you see that the response body has a value that is of type string which is equal to "South Dakota". EvalReply would return "South Dakota". -- Lee On 11/09/2017 11:06 AM, Hans Lehmann wrote: > Hello, > > I need help describing the function EvalReply (sCad As String) (method in class RpcClient (gb.xml)). > > Questions: > What does this function do? > How is this feature used? > > Every answer is read with pleasure. > > Best regards > Honsek > From gambas.fr at gmail.com Sun Nov 12 20:04:58 2017 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 12 Nov 2017 20:04:58 +0100 Subject: [Gambas-user] Set name in gb.report preview In-Reply-To: References: Message-ID: well it is currently not possible. Maybe i need to add a collection parameter to allow to share some basis configurations. do you use the git version ? 2017-11-12 17:39 GMT+01:00 Gianluigi : > Hi Fabien, > > Yes :-) > > Regards > Gianluigi > > 2017-11-12 17:24 GMT+01:00 Fabien Bodard : >> >> what do you want to do ... setting by advance ? >> >> 2017-11-12 16:26 GMT+01:00 Gianluigi : >> > Can you set the name of the pdf file in gb.report2 Preview form? >> > >> > Regards >> > Gianluigi >> > >> > >> > -------------------------------------------------- >> > >> > This is the Gambas Mailing List >> > https://lists.gambas-basic.org/listinfo/user >> > >> > Hosted by https://www.hostsharing.net >> > >> >> >> >> -- >> Fabien Bodard >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard From bagonergi at gmail.com Sun Nov 12 22:18:31 2017 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 12 Nov 2017 22:18:31 +0100 Subject: [Gambas-user] Set name in gb.report preview In-Reply-To: References: Message-ID: Hi Fabien, yes, but I asked for a our friend of Italian forum. This is the problem, for him would be good to print directly, but with Report.Print he obtains a different result than from Preview. He sees everything compressed on one page. I attach his example. Regards Gianluigi 2017-11-12 20:04 GMT+01:00 Fabien Bodard : > well it is currently not possible. Maybe i need to add a collection > parameter to allow to share some basis configurations. > > do you use the git version ? > > 2017-11-12 17:39 GMT+01:00 Gianluigi : > > Hi Fabien, > > > > Yes :-) > > > > Regards > > Gianluigi > > > > 2017-11-12 17:24 GMT+01:00 Fabien Bodard : > >> > >> what do you want to do ... setting by advance ? > >> > >> 2017-11-12 16:26 GMT+01:00 Gianluigi : > >> > Can you set the name of the pdf file in gb.report2 Preview form? > >> > > >> > Regards > >> > Gianluigi > >> > > >> > > >> > -------------------------------------------------- > >> > > >> > This is the Gambas Mailing List > >> > https://lists.gambas-basic.org/listinfo/user > >> > > >> > Hosted by https://www.hostsharing.net > >> > > >> > >> > >> > >> -- > >> Fabien Bodard > >> > >> -------------------------------------------------- > >> > >> This is the Gambas Mailing List > >> https://lists.gambas-basic.org/listinfo/user > >> > >> Hosted by https://www.hostsharing.net > > > > > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List > > https://lists.gambas-basic.org/listinfo/user > > > > Hosted by https://www.hostsharing.net > > > > > > -- > Fabien Bodard > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: provaReport-0.0.1.tar.gz Type: application/x-gzip Size: 119160 bytes Desc: not available URL: From gambas.fr at gmail.com Sun Nov 12 22:35:58 2017 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 12 Nov 2017 22:35:58 +0100 Subject: [Gambas-user] Set name in gb.report preview In-Reply-To: References: Message-ID: The problem seem to by only on qt4 and qt5... i need to investigate to understand where is the problem. 2017-11-12 22:18 GMT+01:00 Gianluigi : > Hi Fabien, > yes, but I asked for a our friend of Italian forum. > This is the problem, for him would be good to print directly, but with > Report.Print he obtains a different result than from Preview. > He sees everything compressed on one page. > I attach his example. > > Regards > Gianluigi > > 2017-11-12 20:04 GMT+01:00 Fabien Bodard : >> >> well it is currently not possible. Maybe i need to add a collection >> parameter to allow to share some basis configurations. >> >> do you use the git version ? >> >> 2017-11-12 17:39 GMT+01:00 Gianluigi : >> > Hi Fabien, >> > >> > Yes :-) >> > >> > Regards >> > Gianluigi >> > >> > 2017-11-12 17:24 GMT+01:00 Fabien Bodard : >> >> >> >> what do you want to do ... setting by advance ? >> >> >> >> 2017-11-12 16:26 GMT+01:00 Gianluigi : >> >> > Can you set the name of the pdf file in gb.report2 Preview form? >> >> > >> >> > Regards >> >> > Gianluigi >> >> > >> >> > >> >> > -------------------------------------------------- >> >> > >> >> > This is the Gambas Mailing List >> >> > https://lists.gambas-basic.org/listinfo/user >> >> > >> >> > Hosted by https://www.hostsharing.net >> >> > >> >> >> >> >> >> >> >> -- >> >> Fabien Bodard >> >> >> >> -------------------------------------------------- >> >> >> >> This is the Gambas Mailing List >> >> https://lists.gambas-basic.org/listinfo/user >> >> >> >> Hosted by https://www.hostsharing.net >> > >> > >> > >> > >> > -------------------------------------------------- >> > >> > This is the Gambas Mailing List >> > https://lists.gambas-basic.org/listinfo/user >> > >> > Hosted by https://www.hostsharing.net >> > >> >> >> >> -- >> Fabien Bodard >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard From bagonergi at gmail.com Sun Nov 12 22:47:14 2017 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 12 Nov 2017 22:47:14 +0100 Subject: [Gambas-user] Set name in gb.report preview In-Reply-To: References: Message-ID: A few small differences even with GTK, see attached pictures. Good night Gianluigi 2017-11-12 22:35 GMT+01:00 Fabien Bodard : > The problem seem to by only on qt4 and qt5... i need to investigate to > understand where is the problem. > > 2017-11-12 22:18 GMT+01:00 Gianluigi : > > Hi Fabien, > > yes, but I asked for a our friend of Italian forum. > > This is the problem, for him would be good to print directly, but with > > Report.Print he obtains a different result than from Preview. > > He sees everything compressed on one page. > > I attach his example. > > > > Regards > > Gianluigi > > > > 2017-11-12 20:04 GMT+01:00 Fabien Bodard : > >> > >> well it is currently not possible. Maybe i need to add a collection > >> parameter to allow to share some basis configurations. > >> > >> do you use the git version ? > >> > >> 2017-11-12 17:39 GMT+01:00 Gianluigi : > >> > Hi Fabien, > >> > > >> > Yes :-) > >> > > >> > Regards > >> > Gianluigi > >> > > >> > 2017-11-12 17:24 GMT+01:00 Fabien Bodard : > >> >> > >> >> what do you want to do ... setting by advance ? > >> >> > >> >> 2017-11-12 16:26 GMT+01:00 Gianluigi : > >> >> > Can you set the name of the pdf file in gb.report2 Preview form? > >> >> > > >> >> > Regards > >> >> > Gianluigi > >> >> > > >> >> > > >> >> > -------------------------------------------------- > >> >> > > >> >> > This is the Gambas Mailing List > >> >> > https://lists.gambas-basic.org/listinfo/user > >> >> > > >> >> > Hosted by https://www.hostsharing.net > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Fabien Bodard > >> >> > >> >> -------------------------------------------------- > >> >> > >> >> This is the Gambas Mailing List > >> >> https://lists.gambas-basic.org/listinfo/user > >> >> > >> >> Hosted by https://www.hostsharing.net > >> > > >> > > >> > > >> > > >> > -------------------------------------------------- > >> > > >> > This is the Gambas Mailing List > >> > https://lists.gambas-basic.org/listinfo/user > >> > > >> > Hosted by https://www.hostsharing.net > >> > > >> > >> > >> > >> -- > >> Fabien Bodard > >> > >> -------------------------------------------------- > >> > >> This is the Gambas Mailing List > >> https://lists.gambas-basic.org/listinfo/user > >> > >> Hosted by https://www.hostsharing.net > > > > > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List > > https://lists.gambas-basic.org/listinfo/user > > > > Hosted by https://www.hostsharing.net > > > > > > -- > Fabien Bodard > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PrintGtk.png Type: image/png Size: 33190 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PdfFromReport2.png Type: image/png Size: 32720 bytes Desc: not available URL: From bagonergi at gmail.com Sun Nov 12 23:06:19 2017 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 12 Nov 2017 23:06:19 +0100 Subject: [Gambas-user] Set name in gb.report preview In-Reply-To: References: Message-ID: Sorry I'm wrong, this is the GTK print with Report1.Print(hPrinter) Regards Gianluigi 2017-11-12 22:47 GMT+01:00 Gianluigi : > A few small differences even with GTK, see attached pictures. > > Good night > Gianluigi > > 2017-11-12 22:35 GMT+01:00 Fabien Bodard : > >> The problem seem to by only on qt4 and qt5... i need to investigate to >> understand where is the problem. >> >> 2017-11-12 22:18 GMT+01:00 Gianluigi : >> > Hi Fabien, >> > yes, but I asked for a our friend of Italian forum. >> > This is the problem, for him would be good to print directly, but with >> > Report.Print he obtains a different result than from Preview. >> > He sees everything compressed on one page. >> > I attach his example. >> > >> > Regards >> > Gianluigi >> > >> > 2017-11-12 20:04 GMT+01:00 Fabien Bodard : >> >> >> >> well it is currently not possible. Maybe i need to add a collection >> >> parameter to allow to share some basis configurations. >> >> >> >> do you use the git version ? >> >> >> >> 2017-11-12 17:39 GMT+01:00 Gianluigi : >> >> > Hi Fabien, >> >> > >> >> > Yes :-) >> >> > >> >> > Regards >> >> > Gianluigi >> >> > >> >> > 2017-11-12 17:24 GMT+01:00 Fabien Bodard : >> >> >> >> >> >> what do you want to do ... setting by advance ? >> >> >> >> >> >> 2017-11-12 16:26 GMT+01:00 Gianluigi : >> >> >> > Can you set the name of the pdf file in gb.report2 Preview form? >> >> >> > >> >> >> > Regards >> >> >> > Gianluigi >> >> >> > >> >> >> > >> >> >> > -------------------------------------------------- >> >> >> > >> >> >> > This is the Gambas Mailing List >> >> >> > https://lists.gambas-basic.org/listinfo/user >> >> >> > >> >> >> > Hosted by https://www.hostsharing.net >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Fabien Bodard >> >> >> >> >> >> -------------------------------------------------- >> >> >> >> >> >> This is the Gambas Mailing List >> >> >> https://lists.gambas-basic.org/listinfo/user >> >> >> >> >> >> Hosted by https://www.hostsharing.net >> >> > >> >> > >> >> > >> >> > >> >> > -------------------------------------------------- >> >> > >> >> > This is the Gambas Mailing List >> >> > https://lists.gambas-basic.org/listinfo/user >> >> > >> >> > Hosted by https://www.hostsharing.net >> >> > >> >> >> >> >> >> >> >> -- >> >> Fabien Bodard >> >> >> >> -------------------------------------------------- >> >> >> >> This is the Gambas Mailing List >> >> https://lists.gambas-basic.org/listinfo/user >> >> >> >> Hosted by https://www.hostsharing.net >> > >> > >> > >> > >> > -------------------------------------------------- >> > >> > This is the Gambas Mailing List >> > https://lists.gambas-basic.org/listinfo/user >> > >> > Hosted by https://www.hostsharing.net >> > >> >> >> >> -- >> Fabien Bodard >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GtkPrint.png Type: image/png Size: 31483 bytes Desc: not available URL: From mb at code-it.com Mon Nov 13 18:24:55 2017 From: mb at code-it.com (mikeB) Date: Mon, 13 Nov 2017 10:24:55 -0700 Subject: [Gambas-user] capture gambas debug console events? Message-ID: <95dbd355-6aba-d3a2-7595-bac3582998e1@code-it.com> eGreetings to the world of Gambas, I have a app, that I'm trying to develop, that shells out to "Steghide" among other things. The problem I need to resolve (if possible) is to capture any errors messages that occur during the "Strghide" process. I'm probably just dreaming that this may be done but... The Gambas debug console captures the errors - is there any way to code it so that the debug messages can be transferred/ captured then displayed in a label (or somewhere) on the main form of the project? As far as getting the error message from the terminal (shell to steghide") then showing on the main form - I find no way ;-( Thanks for any/ all help to resolve (or not) this matter, mikeB From gambas.fr at gmail.com Tue Nov 14 11:39:41 2017 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 14 Nov 2017 11:39:41 +0100 Subject: [Gambas-user] capture gambas debug console events? In-Reply-To: <95dbd355-6aba-d3a2-7595-bac3582998e1@code-it.com> References: <95dbd355-6aba-d3a2-7595-bac3582998e1@code-it.com> Message-ID: in desing module between line 988 - 995 If sProg Then $hProcess = Exec aExec With aEnv As "Process" Else '$hProcess = Exec aExec With aEnv For Input Output As "Process" $hProcess = FOutput.GetTerminal().Exec(aExec, aEnv) $hProcess.Term.Echo = True $hObserver = New Observer($hProcess, True) As "Process" Endif here you can add an observer again and scan the returned values. 2017-11-13 18:24 GMT+01:00 mikeB : > eGreetings to the world of Gambas, > I have a app, that I'm trying to develop, that shells out to "Steghide" > among other things. The problem I need to resolve (if possible) is > to capture any errors messages that occur during the "Strghide" process. > > I'm probably just dreaming that this may be done but... > The Gambas debug console captures the errors - is there any way to code it > so that the debug messages can be transferred/ captured then displayed in a > label (or somewhere) on the main form of the project? > As far as getting the error message from the terminal (shell to steghide") > then showing on the main form - I find no way ;-( There is many ways in fact. You need just to capture the > > Thanks for any/ all help to resolve (or not) this matter, > mikeB > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net -- Fabien Bodard From mb at code-it.com Tue Nov 14 12:50:48 2017 From: mb at code-it.com (mikeB) Date: Tue, 14 Nov 2017 04:50:48 -0700 Subject: [Gambas-user] capture gambas debug console events? In-Reply-To: References: <95dbd355-6aba-d3a2-7595-bac3582998e1@code-it.com> Message-ID: <978030dd-6f8e-ad94-2fa6-c450d7aeb97a@code-it.com> eGreetings, Thank you so much for your reply and code snippet! I don't understand any of it BUT after I get to playing around, and hack'n at it, then hopefully I will;-) Again - thanks for your time and mentorship, mikeB On 11/14/2017 03:39 AM, Fabien Bodard wrote: > in desing module between line 988 - 995 > > > > If sProg Then > $hProcess = Exec aExec With aEnv As "Process" > Else > '$hProcess = Exec aExec With aEnv For Input Output As "Process" > $hProcess = FOutput.GetTerminal().Exec(aExec, aEnv) > $hProcess.Term.Echo = True > $hObserver = New Observer($hProcess, True) As "Process" > Endif > > > > here you can add an observer again and scan the returned values. > > > > > 2017-11-13 18:24 GMT+01:00 mikeB : >> eGreetings to the world of Gambas, >> I have a app, that I'm trying to develop, that shells out to "Steghide" >> among other things. The problem I need to resolve (if possible) is >> to capture any errors messages that occur during the "Strghide" process. >> >> I'm probably just dreaming that this may be done but... >> The Gambas debug console captures the errors - is there any way to code it >> so that the debug messages can be transferred/ captured then displayed in a >> label (or somewhere) on the main form of the project? >> As far as getting the error message from the terminal (shell to steghide") >> then showing on the main form - I find no way ;-( > > There is many ways in fact. You need just to capture the > >> >> Thanks for any/ all help to resolve (or not) this matter, >> mikeB >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net > > > From t.lee.davidson at gmail.com Tue Nov 14 13:28:39 2017 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 14 Nov 2017 07:28:39 -0500 Subject: [Gambas-user] capture gambas debug console events? In-Reply-To: References: <95dbd355-6aba-d3a2-7595-bac3582998e1@code-it.com> Message-ID: <61929ff6-c2e0-8ec6-6885-8eafa813c38b@gmail.com> You might also try simply redirecting stderr to stdout and capturing both to a string: Shell "steghideCommand 2>&1" to myString -- Lee On 11/14/2017 05:39 AM, Fabien Bodard wrote: > in desing module between line 988 - 995 > > > > If sProg Then > $hProcess = Exec aExec With aEnv As "Process" > Else > '$hProcess = Exec aExec With aEnv For Input Output As "Process" > $hProcess = FOutput.GetTerminal().Exec(aExec, aEnv) > $hProcess.Term.Echo = True > $hObserver = New Observer($hProcess, True) As "Process" > Endif > > > > here you can add an observer again and scan the returned values. > > > > > 2017-11-13 18:24 GMT+01:00 mikeB : >> eGreetings to the world of Gambas, >> I have a app, that I'm trying to develop, that shells out to "Steghide" >> among other things. The problem I need to resolve (if possible) is >> to capture any errors messages that occur during the "Strghide" process. >> >> I'm probably just dreaming that this may be done but... >> The Gambas debug console captures the errors - is there any way to code it >> so that the debug messages can be transferred/ captured then displayed in a >> label (or somewhere) on the main form of the project? >> As far as getting the error message from the terminal (shell to steghide") >> then showing on the main form - I find no way ;-( > > There is many ways in fact. You need just to capture the > >> >> Thanks for any/ all help to resolve (or not) this matter, >> mikeB >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net > > > From gambas.fr at gmail.com Tue Nov 14 13:42:08 2017 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 14 Nov 2017 13:42:08 +0100 Subject: [Gambas-user] capture gambas debug console events? In-Reply-To: <61929ff6-c2e0-8ec6-6885-8eafa813c38b@gmail.com> References: <95dbd355-6aba-d3a2-7595-bac3582998e1@code-it.com> <61929ff6-c2e0-8ec6-6885-8eafa813c38b@gmail.com> Message-ID: T Lee Davidson ... well it seem i have not exactly understand the content of the query :-). The ascynchronous version. hprocess = EXEC["steghideCommand"] for Read Write as "Process" Public sub Process_Error(sError as string) Print sError end 2017-11-14 13:28 GMT+01:00 T Lee Davidson : > You might also try simply redirecting stderr to stdout and capturing both to > a string: > > Shell "steghideCommand 2>&1" to myString > > > -- > Lee > > > On 11/14/2017 05:39 AM, Fabien Bodard wrote: >> >> in desing module between line 988 - 995 >> >> >> >> If sProg Then >> $hProcess = Exec aExec With aEnv As "Process" >> Else >> '$hProcess = Exec aExec With aEnv For Input Output As "Process" >> $hProcess = FOutput.GetTerminal().Exec(aExec, aEnv) >> $hProcess.Term.Echo = True >> $hObserver = New Observer($hProcess, True) As "Process" >> Endif >> >> >> >> here you can add an observer again and scan the returned values. >> >> >> >> >> 2017-11-13 18:24 GMT+01:00 mikeB : >>> >>> eGreetings to the world of Gambas, >>> I have a app, that I'm trying to develop, that shells out to "Steghide" >>> among other things. The problem I need to resolve (if possible) is >>> to capture any errors messages that occur during the "Strghide" process. >>> >>> I'm probably just dreaming that this may be done but... >>> The Gambas debug console captures the errors - is there any way to code >>> it >>> so that the debug messages can be transferred/ captured then displayed in >>> a >>> label (or somewhere) on the main form of the project? >>> As far as getting the error message from the terminal (shell to >>> steghide") >>> then showing on the main form - I find no way ;-( >> >> >> There is many ways in fact. You need just to capture the >> >>> >>> Thanks for any/ all help to resolve (or not) this matter, >>> mikeB >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Hosted by https://www.hostsharing.net >> >> >> >> > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net -- Fabien Bodard From mb at code-it.com Tue Nov 14 16:15:37 2017 From: mb at code-it.com (mikeB) Date: Tue, 14 Nov 2017 08:15:37 -0700 Subject: [Gambas-user] capture gambas debug console events? In-Reply-To: References: <95dbd355-6aba-d3a2-7595-bac3582998e1@code-it.com> <61929ff6-c2e0-8ec6-6885-8eafa813c38b@gmail.com> Message-ID: <6f7cfabd-99e1-a476-d4f2-412d5167e7e7@code-it.com> This is what I have ended up doing - so problem is now solved. Dim GP as String GP = MaskBox5.text Shell "steghide embed -cf " & TextBox2.text & " -ef " & TextBox3.text & " -p " & GP & " > embed_results.txt" this creates a file that contains the terminal results - I never knew this was possible - a great thing to learn! then I display the created file into a textarea box to display the status then kill it. Suggestion to direct to a string might of been better - I'll experiment with that too;-) thanks for all the replies - I learned a lot of what I consider important info since I'm doing a lot of shelling out to the terminal in some/ most apps I'm developing. have a GREAT day and a BIG THANKS to all again, mikeB On 11/14/2017 05:42 AM, Fabien Bodard wrote: > T Lee Davidson ... well it seem i have not exactly understand the > content of the query :-). > > The ascynchronous version. > > > hprocess = EXEC["steghideCommand"] for Read Write as "Process" > > > Public sub Process_Error(sError as string) > > Print sError > > end > > 2017-11-14 13:28 GMT+01:00 T Lee Davidson : >> You might also try simply redirecting stderr to stdout and capturing both to >> a string: >> >> Shell "steghideCommand 2>&1" to myString >> >> >> -- >> Lee >> >> >> On 11/14/2017 05:39 AM, Fabien Bodard wrote: >>> >>> in desing module between line 988 - 995 >>> >>> >>> >>> If sProg Then >>> $hProcess = Exec aExec With aEnv As "Process" >>> Else >>> '$hProcess = Exec aExec With aEnv For Input Output As "Process" >>> $hProcess = FOutput.GetTerminal().Exec(aExec, aEnv) >>> $hProcess.Term.Echo = True >>> $hObserver = New Observer($hProcess, True) As "Process" >>> Endif >>> >>> >>> >>> here you can add an observer again and scan the returned values. >>> >>> >>> >>> >>> 2017-11-13 18:24 GMT+01:00 mikeB : >>>> >>>> eGreetings to the world of Gambas, >>>> I have a app, that I'm trying to develop, that shells out to "Steghide" >>>> among other things. The problem I need to resolve (if possible) is >>>> to capture any errors messages that occur during the "Strghide" process. >>>> >>>> I'm probably just dreaming that this may be done but... >>>> The Gambas debug console captures the errors - is there any way to code >>>> it >>>> so that the debug messages can be transferred/ captured then displayed in >>>> a >>>> label (or somewhere) on the main form of the project? >>>> As far as getting the error message from the terminal (shell to >>>> steghide") >>>> then showing on the main form - I find no way ;-( >>> >>> >>> There is many ways in fact. You need just to capture the >>> >>>> >>>> Thanks for any/ all help to resolve (or not) this matter, >>>> mikeB >>>> >>>> -------------------------------------------------- >>>> >>>> This is the Gambas Mailing List >>>> https://lists.gambas-basic.org/listinfo/user >>>> >>>> Hosted by https://www.hostsharing.net >>> >>> >>> >>> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net > > > From bugtracker at gambaswiki.org Sat Nov 18 21:35:25 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 18 Nov 2017 20:35:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Bernhard M. WIEDEMANN reported a new bug. Summary ------- .gambas files differ from filesystem order Type : Bug Priority : Low Gambas version : 3.10 Product : Unknown Description ----------- While working on the reproducible builds effort, I found that when building the gambas3 package for openSUSE Linux, there were slight differences between each build: 39 .gambas files e.g. /usr/bin/gbs3.gambas and /usr/lib64/gambas3/gb.xml.rpc.gambas differed from filesystem readdir order likely because main/gbc/gba.c line 292 (and a few other places) uses readdir to iterate over a list of files. Such a list of input files should be sorted so that gambas3 builds in a reproducible way in spite of indeterministic filesystem readdir order. See also https://reproducible-builds.org/ for why this matters. On systems compliant to 4.3BSD or POSIX.1-2008 (i.e. modern Linuxes) one could use the scandir function, but that would exclude Windows. Would that be a problem? Should I make a patch to use scandir instead of readdir? From bugtracker at gambaswiki.org Sat Nov 18 21:54:25 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 18 Nov 2017 20:54:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #1 by Beno?t MINISINI: I never thought about that, and that it could be a problem. I will see if I will use scandir(). It won't exclude Windows, as it is a glibc routine, so it can have a replacement if needed. Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sun Nov 19 02:16:00 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 19 Nov 2017 01:16:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #2 by Beno?t MINISINI: Actually, it's the content of the files that matters, isn't it? So the file order used by the gambas compiler is not important. But the file order used by the archiver is, otherwise the output archive contents can change. So I will just fix gba, and you will tell me. From bugtracker at gambaswiki.org Sun Nov 19 02:32:53 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 19 Nov 2017 01:32:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #3 by Beno?t MINISINI: Done in commit https://gitlab.com/gambas/gambas/commit/39f93ddb3705a40bbf1f73c8fc1ae32d2a098700 Can you confirm that it fixes the problem? Or that there is still non-reproducible file order somewhere? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Sun Nov 19 21:06:07 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 19 Nov 2017 20:06:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #4 by Bernhard M. WIEDEMANN: I did a rebuild with your patch and still got a diff, but a smaller one than before: http://rb.zq1.de/compare.factory-20171118/gambas3-compare.out only has 31 differing .gambas files possibly some of the other readdir orders also matter. Also I noticed that you forgot a 'free' call on the individual dirent structs The example in man 3 scandir has it as free(namelist[n]); Bernhard M. WIEDEMANN changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sun Nov 19 21:11:20 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 19 Nov 2017 20:11:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #5 by Beno?t MINISINI: What did you compare exactly? A new build with an old one, or two builds of the same source on two different machines? And thanks for the notice, I will fix that omission. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Sun Nov 19 22:37:15 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 19 Nov 2017 21:37:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #6 by Bernhard M. WIEDEMANN: I do two builds of the same software, otherwise comparing would be meaningless. Builds happens in disposable VMs, so that counts as two different machines, even when they run on the same host. My scripts are in https://github.com/bmwiedemann/reproducibleopensuse If you have a (free) openSUSE bugzilla account, you can do osc checkout openSUSE:Factory/gambas3 cd $_ rbk Bernhard M. WIEDEMANN changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sun Nov 19 22:44:33 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 19 Nov 2017 21:44:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #7 by Beno?t MINISINI: OK, I think I got it... From bugtracker at gambaswiki.org Sun Nov 19 23:25:12 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 19 Nov 2017 22:25:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #8 by Beno?t MINISINI: It should be better with https://gitlab.com/gambas/gambas/commit/36b16f18b33f9544a2fd190b9059172c453794e2 I prefer not to replace all uses of readdir() everywhere, because it has a cost often not related to the predictability of the generated output. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Mon Nov 20 09:50:49 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 20 Nov 2017 08:50:49 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1215: .gambas files differ from filesystem order In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1215&from=L21haW4- Comment #9 by Bernhard M. WIEDEMANN: Now I get bit-identical packages. Perfect. Thanks. Bernhard M. WIEDEMANN changed the state of the bug to: Fixed. From mb at code-it.com Tue Nov 21 18:55:48 2017 From: mb at code-it.com (mikeB) Date: Tue, 21 Nov 2017 10:55:48 -0700 Subject: [Gambas-user] TextArea automatic CRLF Message-ID: eGreetings to the World of Gambas, Am in the process of developing a 'newsletter email sender' using the SMTP component - with a TextArea field as the message editor. Going to be used to send out a 'what's new' opted-in mailing list to my clients. I realize there are lots of this type software on the iNet (i.e. Mail Monkey) but I don't like the fact that my mailing list would be stored on "the cloud" - a security thing. What I am trying to do is code it so that if a line is say 80 chars long then it automatically inserts a carriage return/ next line function (i.e. chr(13) & chr(10) ? ) so that "what you see is what you get" instead on the line just going on forever - making the email message look tacky... I've been playing around with the "change" "wrap" and "line" functions but can't seem to find a way to do this OTHER THEN actually pressing the 'ENTER' key at the end of each line (which seems to work - via my testing). I'm missing something - most likely simple - but if anyone knows and has a few minutes to advise me what to look at - I'd GREATLY APPRECIATE your mentor-ship ;-) Have a GREAT day, mikeB From rwe-sse at osnanet.de Wed Nov 22 08:35:25 2017 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 22 Nov 2017 08:35:25 +0100 Subject: [Gambas-user] TextArea automatic CRLF In-Reply-To: References: Message-ID: <5A1528BD.8050408@osnanet.de> Am 21.11.2017 18:55, schrieb mikeB: > eGreetings to the World of Gambas, > > Am in the process of developing a 'newsletter email sender' > using the SMTP component - with a TextArea field as the > message editor. Going to be used to send out a 'what's new' > opted-in mailing list to my clients. > > I realize there are lots of this type software on the iNet > (i.e. Mail Monkey) but I don't like the fact that my mailing > list would be stored on "the cloud" - a security thing. > > What I am trying to do is code it so that if a line is say > 80 chars long then it automatically inserts a carriage return/ > next line function (i.e. chr(13) & chr(10) ? ) so that "what > you see is what you get" instead on the line just going on > forever - making the email message look tacky... > > I've been playing around with the "change" "wrap" and "line" > functions but can't seem to find a way to do this OTHER THEN > actually pressing the 'ENTER' key at the end of each line > (which seems to work - via my testing). > > I'm missing something - most likely simple - but if anyone knows > and has a few minutes to advise me what to look at - I'd GREATLY > APPRECIATE your mentor-ship ;-) > > Have a GREAT day, > mikeB > > Moin, First advice: Use String.Len() (not Len) to measure the length of strings. Second: In Linux, it is LF only, and as far as I understand, Windows seems to at least accept this too, meanwhile. Then I send you a project of mine. It is a tool our students use to learn typewriting. There is a TextArea, and you can see how I managed to make it behave like a typewriter. Take a look at TextArea_KeyPress This is not precisely what you are looking for, but maybe it can inspire your code. Regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: MSyb-0.0.57.tar.gz Type: application/x-gzip Size: 36903 bytes Desc: not available URL: From mb at code-it.com Wed Nov 22 09:19:46 2017 From: mb at code-it.com (mikeB) Date: Wed, 22 Nov 2017 01:19:46 -0700 Subject: [Gambas-user] TextArea automatic CRLF In-Reply-To: <5A1528BD.8050408@osnanet.de> References: <5A1528BD.8050408@osnanet.de> Message-ID: <579aa841-5f85-d8df-a61b-260f280dab1b@code-it.com> eGreetings, That (your -Rolf- example) is EXACTLY what I needed; therefore, this "problem" has been solved in short order ;-) Thank you so much for your reply and guidance. have a GREAT day, mikeB On 11/22/2017 12:35 AM, Rolf-Werner Eilert wrote: > Am 21.11.2017 18:55, schrieb mikeB: >> eGreetings to the World of Gambas, >> >> Am in the process of developing a 'newsletter email sender' >> using the SMTP component - with a TextArea field as the >> message editor. Going to be used to send out a 'what's new' >> opted-in mailing list to my clients. >> >> I realize there are lots of this type software on the iNet >> (i.e. Mail Monkey) but I don't like the fact that my mailing >> list would be stored on "the cloud" - a security thing. >> >> What I am trying to do is code it so that if a line is say >> 80 chars long then it automatically inserts a carriage return/ >> next line function (i.e. chr(13) & chr(10) ? ) so that "what >> you see is what you get" instead on the line just going on >> forever - making the email message look tacky... >> >> I've been playing around with the "change" "wrap" and "line" >> functions but can't seem to find a way to do this OTHER THEN >> actually pressing the 'ENTER' key at the end of each line >> (which seems to work - via my testing). >> >> I'm missing something - most likely simple - but if anyone knows >> and has a few minutes to advise me what to look at - I'd GREATLY >> APPRECIATE your mentor-ship ;-) >> >> Have a GREAT day, >> mikeB >> >> > > Moin, > > First advice: Use String.Len() (not Len) to measure the length of strings. > > Second: In Linux, it is LF only, and as far as I understand, Windows > seems to at least accept this too, meanwhile. > > Then I send you a project of mine. It is a tool our students use to > learn typewriting. There is a TextArea, and you can see how I managed to > make it behave like a typewriter. Take a look at TextArea_KeyPress > > This is not precisely what you are looking for, but maybe it can inspire > your code. > > Regards > Rolf > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > From chrisml at deganius.de Wed Nov 22 10:07:52 2017 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 22 Nov 2017 10:07:52 +0100 Subject: [Gambas-user] Version numbers of libraries used Message-ID: Hello, is there an easy way to encounter the libraries a project uses as well as the version strings of that libraries? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mb at code-it.com Wed Nov 22 23:07:56 2017 From: mb at code-it.com (mikeB) Date: Wed, 22 Nov 2017 15:07:56 -0700 Subject: [Gambas-user] SMTP values - huh? Message-ID: <8de191ac-b089-6ad5-7487-4532075e183e@code-it.com> eGreetings Gambas Group, When using the "gb.net.smtp" component to send email = there is a value ".Authentication" - it is defined as integer? huh? After hours of searching I have not been able to find what integer to used to dictate what purpose. (ie have used .Authentication = 0, .Authentication = 1, .Authentication = 2, .Authentication = 3, no .Authentication statement at all included...). Nothing changes anything - at lease with my host email server. All emails are transferred with no error. Anyone know what "Authentication" values mean or do I even need to worry about this (but I've seen some email clients that do require "Authentication" so when trying to share the Gambas source code - I need to give the end user all server options needed. Thanks a lot or any/ all feedback and greatly appreciate your time, mikeB From g4mba5 at gmail.com Wed Nov 22 23:12:59 2017 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 22 Nov 2017 23:12:59 +0100 Subject: [Gambas-user] SMTP values - huh? In-Reply-To: <8de191ac-b089-6ad5-7487-4532075e183e@code-it.com> References: <8de191ac-b089-6ad5-7487-4532075e183e@code-it.com> Message-ID: Le 22/11/2017 ? 23:07, mikeB a ?crit?: > eGreetings Gambas Group, > When using the "gb.net.smtp" component to send email = > there is a value ".Authentication" - it is defined as integer? > > huh? After hours of searching I have not been able to find what > integer to used to dictate what purpose. > (ie have used .Authentication = 0, .Authentication = 1, > .Authentication = 2, .Authentication = 3, no .Authentication statement > at all included...). > > Nothing changes anything - at lease with my host email server. All > emails are transferred with no error. Anyone know what "Authentication" > values mean or do I even need to worry about this (but I've seen > some email clients that do require "Authentication" so when trying to > share the Gambas source code - I need to give the end user all server > options needed. > > Thanks a lot or any/ all feedback and greatly appreciate your time, > mikeB > Sorry, the property is not documented in the wiki. You must use one of the following constants: - StmpClient.Automatic - SmtpClient.Login - SmtpClient.Plain - SmtpClient.CramMD5 Regards, -- Beno?t Minisini From mb at code-it.com Thu Nov 23 00:34:01 2017 From: mb at code-it.com (mikeB) Date: Wed, 22 Nov 2017 16:34:01 -0700 Subject: [Gambas-user] SMTP values - huh? In-Reply-To: References: <8de191ac-b089-6ad5-7487-4532075e183e@code-it.com> Message-ID: <70e4594a-86dd-c10d-37ce-ae6d0fcf9468@code-it.com> Thanks very much - as that clears it up;-) have a GREAT day, mikeB On 11/22/2017 03:12 PM, Beno?t Minisini wrote: > Le 22/11/2017 ? 23:07, mikeB a ?crit?: >> eGreetings Gambas Group, >> When using the "gb.net.smtp" component to send email = >> there is a value ".Authentication" - it is defined as integer? >> >> huh? After hours of searching I have not been able to find what >> integer to used to dictate what purpose. >> (ie have used .Authentication = 0, .Authentication = 1, >> .Authentication = 2, .Authentication = 3, no .Authentication statement >> at all included...). >> >> Nothing changes anything - at lease with my host email server. All >> emails are transferred with no error. Anyone know what "Authentication" >> values mean or do I even need to worry about this (but I've seen >> some email clients that do require "Authentication" so when trying to >> share the Gambas source code - I need to give the end user all server >> options needed. >> >> Thanks a lot or any/ all feedback and greatly appreciate your time, >> mikeB >> > > Sorry, the property is not documented in the wiki. > > You must use one of the following constants: > - StmpClient.Automatic > - SmtpClient.Login > - SmtpClient.Plain > - SmtpClient.CramMD5 > > Regards, > From g4mba5 at gmail.com Thu Nov 23 01:01:27 2017 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 Nov 2017 01:01:27 +0100 Subject: [Gambas-user] Version numbers of libraries used In-Reply-To: References: Message-ID: Le 22/11/2017 ? 10:07, Christof Thalhofer a ?crit?: > Hello, > > is there an easy way to encounter the libraries a project uses as well > as the version strings of that libraries? > > Alles Gute > > Christof Thalhofer > Everything is in the ".project" files of the project. What do you want to do exactly? -- Beno?t Minisini From chrisml at deganius.de Fri Nov 24 17:36:54 2017 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 24 Nov 2017 17:36:54 +0100 Subject: [Gambas-user] Version numbers of libraries used In-Reply-To: References: Message-ID: <731cea5f-f11c-9c8e-fe9a-654251475ee7@deganius.de> Hello Beno?t, Am 23.11.2017 um 01:01 schrieb Beno?t Minisini: > Everything is in the ".project" files of the project. > > What do you want to do exactly? I have a running application which uses a couple of libraries written by me. If an user of this application has a problem with it, I would like to know, if the libs on his computer have the right version number. Therefor I want to write a form Help->About which shows the version of the main application together with the libs and their version numbers. So I need a possibility to encounter the libs used and their versions from inside the application. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Fri Nov 24 17:38:38 2017 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 24 Nov 2017 17:38:38 +0100 Subject: [Gambas-user] Version numbers of libraries used In-Reply-To: <731cea5f-f11c-9c8e-fe9a-654251475ee7@deganius.de> References: <731cea5f-f11c-9c8e-fe9a-654251475ee7@deganius.de> Message-ID: <6959b055-22f7-8d6d-aec0-3a4d904545aa@gmail.com> Le 24/11/2017 ? 17:36, Christof Thalhofer a ?crit?: > Hello Beno?t, > > Am 23.11.2017 um 01:01 schrieb Beno?t Minisini: > >> Everything is in the ".project" files of the project. >> >> What do you want to do exactly? > > I have a running application which uses a couple of libraries written by > me. If an user of this application has a problem with it, I would like > to know, if the libs on his computer have the right version number. > > Therefor I want to write a form Help->About which shows the version of > the main application together with the libs and their version numbers. > > So I need a possibility to encounter the libs used and their versions > from inside the application. > > Alles Gute > > Christof Thalhofer > What kinds of libraries? -- Beno?t Minisini From chrisml at deganius.de Fri Nov 24 17:50:26 2017 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 24 Nov 2017 17:50:26 +0100 Subject: [Gambas-user] Version numbers of libraries used In-Reply-To: <6959b055-22f7-8d6d-aec0-3a4d904545aa@gmail.com> References: <731cea5f-f11c-9c8e-fe9a-654251475ee7@deganius.de> <6959b055-22f7-8d6d-aec0-3a4d904545aa@gmail.com> Message-ID: <61aaded7-2225-1cb5-f1d3-18e8feda2a4e@deganius.de> >> So I need a possibility to encounter the libs used and their versions >> from inside the application. > > What kinds of libraries? Gambas libraries written by me. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Fri Nov 24 17:58:59 2017 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 24 Nov 2017 17:58:59 +0100 Subject: [Gambas-user] Version numbers of libraries used In-Reply-To: <61aaded7-2225-1cb5-f1d3-18e8feda2a4e@deganius.de> References: <731cea5f-f11c-9c8e-fe9a-654251475ee7@deganius.de> <6959b055-22f7-8d6d-aec0-3a4d904545aa@gmail.com> <61aaded7-2225-1cb5-f1d3-18e8feda2a4e@deganius.de> Message-ID: <0b32c494-68d9-22fd-4050-73a1e7851366@gmail.com> Le 24/11/2017 ? 17:50, Christof Thalhofer a ?crit?: >>> So I need a possibility to encounter the libs used and their versions >>> from inside the application. >> >> What kinds of libraries? > > Gambas libraries written by me. > > > Alles Gute > > Christof Thalhofer > Maybe I should make some code from that. The libraries installed in the user home directory are located in '.local/share/gambas3/lib'. They have their version number inside their names. Regards, -- Beno?t Minisini From chrisml at deganius.de Fri Nov 24 18:41:12 2017 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 24 Nov 2017 18:41:12 +0100 Subject: [Gambas-user] Version numbers of libraries used In-Reply-To: <0b32c494-68d9-22fd-4050-73a1e7851366@gmail.com> References: <731cea5f-f11c-9c8e-fe9a-654251475ee7@deganius.de> <6959b055-22f7-8d6d-aec0-3a4d904545aa@gmail.com> <61aaded7-2225-1cb5-f1d3-18e8feda2a4e@deganius.de> <0b32c494-68d9-22fd-4050-73a1e7851366@gmail.com> Message-ID: <5dc836cc-a643-4911-26f6-5002c9547ec7@deganius.de> Am 24.11.2017 um 17:58 schrieb Beno?t Minisini: > Maybe I should make some code from that. The libraries installed in the > user home directory are located in '.local/share/gambas3/lib'. They have > their version number inside their names. I deploy my libraries as Debian packages via apt. A couple of people are working with my programs, and these programs use different libs written by me. So the libs are located in /usr/lib/gambas3/$vendor Here are all the libs, but I do not know which lib is used by a special application itself. I mean: As a programmer I would need sth like a application.libraries array, that I can iterate inside the (compiled) application. And I also would need to know the exact version number, like "1.0.146" ... 1.0 is not enough. In the moment I ask the other person using my program to do sth like apt show deganius-deglib-gb | grep Version if there is a problem and I have to know what version of my program or lib is used. I thought I could make it more convenient. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat Nov 25 06:05:28 2017 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 25 Nov 2017 06:05:28 +0100 Subject: [Gambas-user] Version numbers of libraries used In-Reply-To: <5dc836cc-a643-4911-26f6-5002c9547ec7@deganius.de> References: <731cea5f-f11c-9c8e-fe9a-654251475ee7@deganius.de> <6959b055-22f7-8d6d-aec0-3a4d904545aa@gmail.com> <61aaded7-2225-1cb5-f1d3-18e8feda2a4e@deganius.de> <0b32c494-68d9-22fd-4050-73a1e7851366@gmail.com> <5dc836cc-a643-4911-26f6-5002c9547ec7@deganius.de> Message-ID: Le 24/11/2017 ? 18:41, Christof Thalhofer a ?crit?: > Am 24.11.2017 um 17:58 schrieb Beno?t Minisini: > >> Maybe I should make some code from that. The libraries installed in the >> user home directory are located in '.local/share/gambas3/lib'. They have >> their version number inside their names. > > I deploy my libraries as Debian packages via apt. A couple of people are > working with my programs, and these programs use different libs written > by me. > > So the libs are located in /usr/lib/gambas3/$vendor > > Here are all the libs, but I do not know which lib is used by a special > application itself. I mean: As a programmer I would need sth like a > > application.libraries > > array, that I can iterate inside the (compiled) application. And I also > would need to know the exact version number, like "1.0.146" ... > > 1.0 is not enough. > > In the moment I ask the other person using my program to do sth like > > apt show deganius-deglib-gb | grep Version > > if there is a problem and I have to know what version of my program or > lib is used. I thought I could make it more convenient. > > Alles Gute > > Christof Thalhofer > You get what you need in last commit: https://gitlab.com/gambas/gambas/commit/dfb179b5496a02b0c29f5d517293d5a3c5dbc02e Component.Library will tell you if a loaded component is actually a library. Component.Version will tell you its full version. Regards, -- Beno?t Minisini From chrisml at deganius.de Sun Nov 26 08:09:40 2017 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 26 Nov 2017 08:09:40 +0100 Subject: [Gambas-user] Version numbers of libraries used In-Reply-To: References: <731cea5f-f11c-9c8e-fe9a-654251475ee7@deganius.de> <6959b055-22f7-8d6d-aec0-3a4d904545aa@gmail.com> <61aaded7-2225-1cb5-f1d3-18e8feda2a4e@deganius.de> <0b32c494-68d9-22fd-4050-73a1e7851366@gmail.com> <5dc836cc-a643-4911-26f6-5002c9547ec7@deganius.de> Message-ID: Am 25.11.2017 um 06:05 schrieb Beno?t Minisini: > You get what you need in last commit: > https://gitlab.com/gambas/gambas/commit/dfb179b5496a02b0c29f5d517293d5a3c5dbc02e > > Component.Library will tell you if a loaded component is actually a library. > > Component.Version will tell you its full version. Hey cool, thank you very much! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From wig at noxqs.org Mon Nov 27 15:09:46 2017 From: wig at noxqs.org (wig) Date: Mon, 27 Nov 2017 15:09:46 +0100 Subject: [Gambas-user] spooky ampersand from button.Text Message-ID: <3b4912be2e5c4e9af7115f25282cfae1.squirrel@mailmanager.priorweb.be> Hello, I get a strange effect of an extra ampersand in my text when I copy the Buttond.Text to a Textlabel field. Gambas 3.10 / KDE 5 (gb.qt5) / OpenSUSE 42.2 (More System info at bottom.) FMain with Public Sub Button0_Click() Label1.Text = Button0.Text ' this gets & in front.. 'Label1.Text = Button0.Tag ' this works ok End Public Sub Form_Open() Button0.Text = "Button0" Button0.Tag = "Button0" End Have no idea when it started, works in IDE and compiled version. I can run this test fine in old Gambas 3.7 / KDE4 fine. ps: The first time I noticed in a bigger context with more buttons, some texts from buttons got the ampersand inserted somewhere in the beginning of the text, like position 2 or 3 instead of in front. That doesn't show in this simple example. I just found back the list so I hope this is not an old item, I looked in the most resent archives .. had fun looking for & sign ..hmm. [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.92-18.36-default Architecture=x86_64 Distribution=SuSE NAME="openSUSE Leap" VERSION="42.2" ID=opensuse ID_LIKE="suse" VERSION_ID="42.2" PRETTY_NAME="openSUSE Leap 42.2" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:42.2" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" Desktop=KDE5 Theme=Breeze Language=en_BE.UTF-8 Memory=5951M [Libraries] DBus=libdbus-1.so.3.8.14 [Environment] ALSA_CONFIG_PATH=/etc/alsa-pulse.conf AUDIODRIVER=pulseaudio BASH_FUNC_mc%%=() { . /usr/share/mc/mc-wrapper.sh } COLORTERM=1 CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu CPU=x86_64 CSHEDIT=emacs CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ZaBRojv8Os,guid=8379809dabad6815841b22465a1c123a DESKTOP_SESSION=plasma5 DISPLAY=:0 DM_CONTROL=/var/run/xdmctl FROM_HEADER= GB_GUI=gb.qt5 GPG_AGENT_INFO=/tmp/gpg-4siUgh/S.gpg-agent:4709:1 GPG_TTY=not a tty GS_LIB=/.fonts GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0 GTK_IM_MODULE=cedilla GTK_MODULES=canberra-gtk-module G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 INPUTRC=/.inputrc JAVA_BINDIR=/usr/lib64/jvm/jre/bin JAVA_HOME=/usr/lib64/jvm/jre JAVA_ROOT=/usr/lib64/jvm/jre JRE_HOME=/usr/lib64/jvm/jre KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 LANG=en_BE.UTF-8 LC_MEASUREMENT=nl_BE.UTF-8 LESS=-M -I -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESSOPEN=lessopen.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/share/man MINICOM=-c on MORE=-sl NNTPSERVER=news OSTYPE=linux PAGER=less PATH=/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games PROFILEREAD=true PULSE_PROP_OVERRIDE_application.icon_name=plasma PULSE_PROP_OVERRIDE_application.name=Plasma PULSE_PROP_OVERRIDE_application.version=5.8.6 PWD= PYTHONSTARTUP=/etc/pythonstart QEMU_AUDIO_DRV=pa QMLSCENE_DEVICE=false QSG_RENDER_LOOP= QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=xim QT_IM_SWITCHER=imsw-multi QT_NO_GLIB=1 QT_SYSTEM_DIR=/usr/share/desktop-data SDL_AUDIODRIVER=pulse SESSION_MANAGER=local/:@/tmp/.ICE-unix/4779,unix/:/tmp/.ICE-unix/4779 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=4708 SSH_ASKPASS=/usr/lib/ssh/ksshaskpass SSH_AUTH_SOCK=/tmp/ssh-yDSKs3DViDZS/agent.4649 TERM=xterm TZ=:/etc/localtime USER= WINDOWMANAGER=/usr/bin/startkde WINDOWPATH=7 XAUTHLOCALHOSTNAME= XCURSOR_THEME=breeze_cursors XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/usr/share XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_ID=17 XDG_VTNR=7 XDM_MANAGED=method=classic XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XMODIFIERS=@im=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes _=/usr/bin/kwrapper5 -------------- next part -------------- A non-text attachment was scrubbed... Name: DemoTagAmpersand-0.0.4.tar.gz Type: application/gzip Size: 12312 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: AmpersandFromButtonText.png Type: image/png Size: 9119 bytes Desc: not available URL: From gambas.fr at gmail.com Mon Nov 27 16:56:23 2017 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 27 Nov 2017 16:56:23 +0100 Subject: [Gambas-user] spooky ampersand from button.Text In-Reply-To: <3b4912be2e5c4e9af7115f25282cfae1.squirrel@mailmanager.priorweb.be> References: <3b4912be2e5c4e9af7115f25282cfae1.squirrel@mailmanager.priorweb.be> Message-ID: I've tested it a you are true the next letter after ampersand define the shortcut to the button ALT+ Letter. Normally well set it by hand but it look like that qt5 do this automagically :-/ you can send a bug report... 2017-11-27 15:09 GMT+01:00 wig : > Hello, > > I get a strange effect of an extra ampersand in my text when I copy the > Buttond.Text to a Textlabel field. > > Gambas 3.10 / KDE 5 (gb.qt5) / OpenSUSE 42.2 > (More System info at bottom.) > > FMain with > > Public Sub Button0_Click() > > Label1.Text = Button0.Text ' this gets & in front.. > 'Label1.Text = Button0.Tag ' this works ok > > End > > Public Sub Form_Open() > > Button0.Text = "Button0" > Button0.Tag = "Button0" > > End > > Have no idea when it started, works in IDE and compiled version. > I can run this test fine in old Gambas 3.7 / KDE4 fine. > > > ps: The first time I noticed in a bigger context with more buttons, some > texts from buttons got the ampersand inserted somewhere in the beginning > of the text, like position 2 or 3 instead of in front. > That doesn't show in this simple example. > > > I just found back the list so I hope this is not an old item, I looked in > the most resent archives .. had fun looking for & sign ..hmm. > > > > [System] > Gambas=3.10 > OperatingSystem=Linux > Kernel=4.4.92-18.36-default > Architecture=x86_64 > Distribution=SuSE NAME="openSUSE Leap" > VERSION="42.2" > ID=opensuse > ID_LIKE="suse" > VERSION_ID="42.2" > PRETTY_NAME="openSUSE Leap 42.2" > ANSI_COLOR="0;32" > CPE_NAME="cpe:/o:opensuse:leap:42.2" > BUG_REPORT_URL="https://bugs.opensuse.org" > HOME_URL="https://www.opensuse.org/" > Desktop=KDE5 > Theme=Breeze > Language=en_BE.UTF-8 > Memory=5951M > > [Libraries] > DBus=libdbus-1.so.3.8.14 > > [Environment] > ALSA_CONFIG_PATH=/etc/alsa-pulse.conf > AUDIODRIVER=pulseaudio > BASH_FUNC_mc%%=() { . /usr/share/mc/mc-wrapper.sh > } > COLORTERM=1 > CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu > CPU=x86_64 > CSHEDIT=emacs > CVS_RSH=ssh > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ZaBRojv8Os,guid=8379809dabad6815841b22465a1c123a > DESKTOP_SESSION=plasma5 > DISPLAY=:0 > DM_CONTROL=/var/run/xdmctl > FROM_HEADER= > GB_GUI=gb.qt5 > GPG_AGENT_INFO=/tmp/gpg-4siUgh/S.gpg-agent:4709:1 > GPG_TTY=not a tty > GS_LIB=/.fonts > GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0 > GTK_IM_MODULE=cedilla > GTK_MODULES=canberra-gtk-module > G_BROKEN_FILENAMES=1 > G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 > HISTSIZE=1000 > HOME= > HOST= > HOSTNAME= > HOSTTYPE=x86_64 > INPUTRC=/.inputrc > JAVA_BINDIR=/usr/lib64/jvm/jre/bin > JAVA_HOME=/usr/lib64/jvm/jre > JAVA_ROOT=/usr/lib64/jvm/jre > JRE_HOME=/usr/lib64/jvm/jre > KDE_FULL_SESSION=true > KDE_SESSION_UID=1000 > KDE_SESSION_VERSION=5 > LANG=en_BE.UTF-8 > LC_MEASUREMENT=nl_BE.UTF-8 > LESS=-M -I -R > LESSCLOSE=lessclose.sh %s %s > LESSKEY=/etc/lesskey.bin > LESSOPEN=lessopen.sh %s > LESS_ADVANCED_PREPROCESSOR=no > LOGNAME= > MACHTYPE=x86_64-suse-linux > MAIL=/var/spool/mail/ > MANPATH=/usr/local/man:/usr/share/man > MINICOM=-c on > MORE=-sl > NNTPSERVER=news > OSTYPE=linux > PAGER=less > PATH=/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > PROFILEREAD=true > PULSE_PROP_OVERRIDE_application.icon_name=plasma > PULSE_PROP_OVERRIDE_application.name=Plasma > PULSE_PROP_OVERRIDE_application.version=5.8.6 > PWD= > PYTHONSTARTUP=/etc/pythonstart > QEMU_AUDIO_DRV=pa > QMLSCENE_DEVICE=false > QSG_RENDER_LOOP= > QT_AUTO_SCREEN_SCALE_FACTOR=0 > QT_IM_MODULE=xim > QT_IM_SWITCHER=imsw-multi > QT_NO_GLIB=1 > QT_SYSTEM_DIR=/usr/share/desktop-data > SDL_AUDIODRIVER=pulse > SESSION_MANAGER=local/:@/tmp/.ICE-unix/4779,unix/:/tmp/.ICE-unix/4779 > SHELL=/bin/bash > SHLVL=1 > SSH_AGENT_PID=4708 > SSH_ASKPASS=/usr/lib/ssh/ksshaskpass > SSH_AUTH_SOCK=/tmp/ssh-yDSKs3DViDZS/agent.4649 > TERM=xterm > TZ=:/etc/localtime > USER= > WINDOWMANAGER=/usr/bin/startkde > WINDOWPATH=7 > XAUTHLOCALHOSTNAME= > XCURSOR_THEME=breeze_cursors > XDG_CONFIG_DIRS=/etc/xdg > XDG_CURRENT_DESKTOP=KDE > XDG_DATA_DIRS=/usr/share > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SESSION_ID=17 > XDG_VTNR=7 > XDM_MANAGED=method=classic > XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB > XMODIFIERS=@im=local > XNLSPATH=/usr/share/X11/nls > XSESSION_IS_UP=yes > _=/usr/bin/kwrapper5 > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard From rwe-sse at osnanet.de Mon Nov 27 18:05:05 2017 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 27 Nov 2017 18:05:05 +0100 Subject: [Gambas-user] spooky ampersand from button.Text In-Reply-To: <3b4912be2e5c4e9af7115f25282cfae1.squirrel@mailmanager.priorweb.be> References: <3b4912be2e5c4e9af7115f25282cfae1.squirrel@mailmanager.priorweb.be> Message-ID: <5A1C45C1.6020200@osnanet.de> The "&" defines the shortcut letter. Maybe it's set by default in qt5. If you need to get rid of it, why not just replace it by nothing: Label1.Text = Replace(Button0.Text, "&", "") This will kill any "&" at any place within the string, if any :) Regards Rolf Am 27.11.2017 15:09, schrieb wig: > Hello, > > I get a strange effect of an extra ampersand in my text when I copy the > Buttond.Text to a Textlabel field. > > Gambas 3.10 / KDE 5 (gb.qt5) / OpenSUSE 42.2 > (More System info at bottom.) > > FMain with > > Public Sub Button0_Click() > > Label1.Text = Button0.Text ' this gets & in front.. > 'Label1.Text = Button0.Tag ' this works ok > > End > > Public Sub Form_Open() > > Button0.Text = "Button0" > Button0.Tag = "Button0" > > End > > Have no idea when it started, works in IDE and compiled version. > I can run this test fine in old Gambas 3.7 / KDE4 fine. > > > ps: The first time I noticed in a bigger context with more buttons, some > texts from buttons got the ampersand inserted somewhere in the beginning > of the text, like position 2 or 3 instead of in front. > That doesn't show in this simple example. > > > I just found back the list so I hope this is not an old item, I looked in > the most resent archives .. had fun looking for & sign ..hmm. > > > > [System] > Gambas=3.10 > OperatingSystem=Linux > Kernel=4.4.92-18.36-default > Architecture=x86_64 > Distribution=SuSE NAME="openSUSE Leap" > VERSION="42.2" > ID=opensuse > ID_LIKE="suse" > VERSION_ID="42.2" > PRETTY_NAME="openSUSE Leap 42.2" > ANSI_COLOR="0;32" > CPE_NAME="cpe:/o:opensuse:leap:42.2" > BUG_REPORT_URL="https://bugs.opensuse.org" > HOME_URL="https://www.opensuse.org/" > Desktop=KDE5 > Theme=Breeze > Language=en_BE.UTF-8 > Memory=5951M > > [Libraries] > DBus=libdbus-1.so.3.8.14 > > [Environment] > ALSA_CONFIG_PATH=/etc/alsa-pulse.conf > AUDIODRIVER=pulseaudio > BASH_FUNC_mc%%=() { . /usr/share/mc/mc-wrapper.sh > } > COLORTERM=1 > CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu > CPU=x86_64 > CSHEDIT=emacs > CVS_RSH=ssh > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-ZaBRojv8Os,guid=8379809dabad6815841b22465a1c123a > DESKTOP_SESSION=plasma5 > DISPLAY=:0 > DM_CONTROL=/var/run/xdmctl > FROM_HEADER= > GB_GUI=gb.qt5 > GPG_AGENT_INFO=/tmp/gpg-4siUgh/S.gpg-agent:4709:1 > GPG_TTY=not a tty > GS_LIB=/.fonts > GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0 > GTK_IM_MODULE=cedilla > GTK_MODULES=canberra-gtk-module > G_BROKEN_FILENAMES=1 > G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 > HISTSIZE=1000 > HOME= > HOST= > HOSTNAME= > HOSTTYPE=x86_64 > INPUTRC=/.inputrc > JAVA_BINDIR=/usr/lib64/jvm/jre/bin > JAVA_HOME=/usr/lib64/jvm/jre > JAVA_ROOT=/usr/lib64/jvm/jre > JRE_HOME=/usr/lib64/jvm/jre > KDE_FULL_SESSION=true > KDE_SESSION_UID=1000 > KDE_SESSION_VERSION=5 > LANG=en_BE.UTF-8 > LC_MEASUREMENT=nl_BE.UTF-8 > LESS=-M -I -R > LESSCLOSE=lessclose.sh %s %s > LESSKEY=/etc/lesskey.bin > LESSOPEN=lessopen.sh %s > LESS_ADVANCED_PREPROCESSOR=no > LOGNAME= > MACHTYPE=x86_64-suse-linux > MAIL=/var/spool/mail/ > MANPATH=/usr/local/man:/usr/share/man > MINICOM=-c on > MORE=-sl > NNTPSERVER=news > OSTYPE=linux > PAGER=less > PATH=/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > PROFILEREAD=true > PULSE_PROP_OVERRIDE_application.icon_name=plasma > PULSE_PROP_OVERRIDE_application.name=Plasma > PULSE_PROP_OVERRIDE_application.version=5.8.6 > PWD= > PYTHONSTARTUP=/etc/pythonstart > QEMU_AUDIO_DRV=pa > QMLSCENE_DEVICE=false > QSG_RENDER_LOOP= > QT_AUTO_SCREEN_SCALE_FACTOR=0 > QT_IM_MODULE=xim > QT_IM_SWITCHER=imsw-multi > QT_NO_GLIB=1 > QT_SYSTEM_DIR=/usr/share/desktop-data > SDL_AUDIODRIVER=pulse > SESSION_MANAGER=local/:@/tmp/.ICE-unix/4779,unix/:/tmp/.ICE-unix/4779 > SHELL=/bin/bash > SHLVL=1 > SSH_AGENT_PID=4708 > SSH_ASKPASS=/usr/lib/ssh/ksshaskpass > SSH_AUTH_SOCK=/tmp/ssh-yDSKs3DViDZS/agent.4649 > TERM=xterm > TZ=:/etc/localtime > USER= > WINDOWMANAGER=/usr/bin/startkde > WINDOWPATH=7 > XAUTHLOCALHOSTNAME= > XCURSOR_THEME=breeze_cursors > XDG_CONFIG_DIRS=/etc/xdg > XDG_CURRENT_DESKTOP=KDE > XDG_DATA_DIRS=/usr/share > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SESSION_ID=17 > XDG_VTNR=7 > XDM_MANAGED=method=classic > XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB > XMODIFIERS=@im=local > XNLSPATH=/usr/share/X11/nls > XSESSION_IS_UP=yes > _=/usr/bin/kwrapper5 > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > From mckaygerhard at gmail.com Tue Nov 28 16:30:00 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 28 Nov 2017 11:30:00 -0400 Subject: [Gambas-user] class instwnce or verification Message-ID: long time without writing.. i want to use a class that create/read the config file and set user and password to connect to database but in my implementation i wnats to check if already are a instance of, so i not need to re-instanciate the configuration reading class somebody can ilustrate me or give me a example? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Nov 28 17:51:20 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 28 Nov 2017 12:51:20 -0400 Subject: [Gambas-user] how to avoid second instance in hole project Message-ID: i have a class that loads a file, and use it how to reuse the alredy instanciated class in the others class or modules if gambas3 does not implements global vars? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Tue Nov 28 17:59:05 2017 From: taboege at gmail.com (Tobias Boege) Date: Tue, 28 Nov 2017 17:59:05 +0100 Subject: [Gambas-user] how to avoid second instance in hole project In-Reply-To: References: Message-ID: <20171128165905.GC21255@highrise.localdomain> On Tue, 28 Nov 2017, PICCORO McKAY Lenz wrote: > i have a class that loads a file, and use it > > how to reuse the alredy instanciated class in the others class or modules > if gambas3 does not implements global vars? > Use a module. It's the closest you can get to a global variable in Gambas. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Tue Nov 28 18:09:52 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 28 Nov 2017 13:09:52 -0400 Subject: [Gambas-user] how to avoid second instance in hole project In-Reply-To: <20171128165905.GC21255@highrise.localdomain> References: <20171128165905.GC21255@highrise.localdomain> Message-ID: hi tobias, its safe to use module in loading of config files? i mean, i not have the practice or skills but i propose made a mini framework to speed up the developming in my job.. we need a common and consistent code and i try to made a common lib/module that init the db using config file detected this logic must be same/work for both web/xcgi or desktop gambas it's there safe to use module in this case? as i ask, was thinking on detect instanciation of! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-11-28 12:59 GMT-04:00 Tobias Boege : > On Tue, 28 Nov 2017, PICCORO McKAY Lenz wrote: > > i have a class that loads a file, and use it > > > > how to reuse the alredy instanciated class in the others class or modules > > if gambas3 does not implements global vars? > > > > Use a module. It's the closest you can get to a global variable in Gambas. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From purchasing at hhmachine.com Tue Nov 28 18:43:41 2017 From: purchasing at hhmachine.com (Josh) Date: Tue, 28 Nov 2017 12:43:41 -0500 Subject: [Gambas-user] SMTP Date issue Message-ID: <20171128124341.20be857447f5192cebac0283@hhmachine.com> I have working on a program to send emails to a list of vendors for quoting materials. Sending the email works but the date that is enetered in the date field is of the email is yesterday. So the emails so up in yesterdays mail...... I am using New York for my time zone and my regular email app and everything else works fine. Gambas version 3.8.4 running on Lubuntu 16.04 Any suggestions appreciated. Thanks -- Josh From chrisml at deganius.de Tue Nov 28 22:16:14 2017 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 28 Nov 2017 22:16:14 +0100 Subject: [Gambas-user] How to package Gambas for Debian/Ubuntu? Message-ID: Hello, as I use Gambas together with my programs on a couple of different computers running on Debian and Ubuntu I would like to package Gambas and deploy it by my own central Apt repository. Currently I do this by mirroring the Gambas ppa from Launchpad: https://launchpad.net/~gambas-team/+archive/ubuntu/gambas3 Does a HowTo or a script exist to fetch a special Gambas version from Gitlab and package it for an Apt repository? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Tue Nov 28 22:16:56 2017 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 28 Nov 2017 23:16:56 +0200 Subject: [Gambas-user] class instwnce or verification In-Reply-To: References: Message-ID: There is Settings class already, why you cannot use it? Just write the passwords as hashes. Jussi On Tue, Nov 28, 2017 at 5:30 PM, PICCORO McKAY Lenz wrote: > long time without writing.. i want to use a class that create/read the > config file and set user and password to connect to database > > but in my implementation i wnats to check if already are a instance of, so > i not need to re-instanciate the configuration reading class > > somebody can ilustrate me or give me a example? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Tue Nov 28 22:33:36 2017 From: taboege at gmail.com (Tobias Boege) Date: Tue, 28 Nov 2017 22:33:36 +0100 Subject: [Gambas-user] how to avoid second instance in hole project In-Reply-To: References: <20171128165905.GC21255@highrise.localdomain> Message-ID: <20171128213335.GD21255@highrise.localdomain> On Tue, 28 Nov 2017, PICCORO McKAY Lenz wrote: > hi tobias, its safe to use module in loading of config files? > > i mean, i not have the practice or skills but i propose made a mini > framework to speed up the developming in my job.. > > we need a common and consistent code and i try to made a common lib/module > that init the db using config file detected > > this logic must be same/work for both web/xcgi or desktop gambas > > it's there safe to use module in this case? as i ask, was thinking on > detect instanciation of! > No idea. I would say it depends on how you do it. Generally using modules is safe. Your web server will probably spawn a new Gambas process for every access to your CGI script. There may me many instances of your module running on the server at some point in time, but they are all isolated in separate processes. Of course you have to be careful when you write to files in this environment, but reading configuration files and connecting to databases should be safe. I have a custom CMS, implemented as a single CGI script, which reads database connection information from a Settings file. It works and I don't see why it wouldn't work if you exchange gb.web and the surroundings for gb.qt4. If you plan on using gb.web.form, the situation *could* be different. I can't remember anymore how exactly this component maintains its state across AJAX calls. You have to test that yourself. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Tue Nov 28 22:50:33 2017 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 28 Nov 2017 22:50:33 +0100 Subject: [Gambas-user] how to avoid second instance in hole project In-Reply-To: References: <20171128165905.GC21255@highrise.localdomain> Message-ID: <2e3b9f27-8f4e-00ff-36ed-745423f7deb9@deganius.de> Am 28.11.2017 um 18:09 schrieb PICCORO McKAY Lenz: > we need a common and consistent code and i try to made a common > lib/module that init the db using config file detected I do this in my programs in a class called "DBs" like this: ---8<------------------------------- ' Gambas class file Create Static '' Our Main Database Property Read MainDb As Connection Private $MainDb As New Connection Private Function MainDb_Read() As Connection If Not $MainDb.Opened Then $MainDb.Type = "postgresql" $MainDb.Host = Settings.["MainDb/Host", ""] $MainDb.Name = Settings["MainDb/Datenbank", ""] $MainDb.Login = Settings["MainDb/User", ""] $MainDb.Password = Settings["MainDb/Password"] If $MainDb.User = Null And If $MainDb.Password = Null Then Error.Raise("No MainDb Credentials") Endif Open($MainDb) Endif Return $MainDb Catch Message.Error(Error.Text) End ---8<------------------------------- This is a "singleton pattern": https://en.wikipedia.org/wiki/Singleton_pattern You can do this also in a module which is a singleton by design. To use it, you can do anywhere in your program: ---8<------------------------------- Dim qry As String Dim res As Result qry = "select sthing from tableany;" res = Dbs.MainDb.Exec(qry) ---8<------------------------------- On the first usage of Dbs.MainDb it will be instanciated, on every latter usage the connection will be reused! This is very safe, as it ensures, that your program always uses this one connection and does not do concurrent connections to the same database (which can lead to database deadlocks ). Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From gambas.fr at gmail.com Wed Nov 29 08:18:07 2017 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 29 Nov 2017 08:18:07 +0100 Subject: [Gambas-user] class instwnce or verification In-Reply-To: References: Message-ID: Yes gb.setting is yours. You can call myvalue=Setting["Section/Key", DefaulValue] It can even store array, collection You can set a value by Setting["Section/Key"]=Value In the file [Section] Key="MyValue" 2017-11-28 22:16 GMT+01:00 Jussi Lahtinen : > There is Settings class already, why you cannot use it? Just write the > passwords as hashes. > > > Jussi > > On Tue, Nov 28, 2017 at 5:30 PM, PICCORO McKAY Lenz > wrote: >> >> long time without writing.. i want to use a class that create/read the >> config file and set user and password to connect to database >> >> but in my implementation i wnats to check if already are a instance of, so >> i not need to re-instanciate the configuration reading class >> >> somebody can ilustrate me or give me a example? >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard From gambas.fr at gmail.com Wed Nov 29 08:55:32 2017 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 29 Nov 2017 08:55:32 +0100 Subject: [Gambas-user] how to avoid second instance in hole project In-Reply-To: <2e3b9f27-8f4e-00ff-36ed-745423f7deb9@deganius.de> References: <20171128165905.GC21255@highrise.localdomain> <2e3b9f27-8f4e-00ff-36ed-745423f7deb9@deganius.de> Message-ID: You can use a self instantiated class... On the top of the class Use : CREATE STATIC The call the class with it's name : MyClass.Function 2017-11-28 22:50 GMT+01:00 Christof Thalhofer : > Am 28.11.2017 um 18:09 schrieb PICCORO McKAY Lenz: > >> we need a common and consistent code and i try to made a common >> lib/module that init the db using config file detected > > I do this in my programs in a class called "DBs" like this: > > ---8<------------------------------- > ' Gambas class file > > Create Static > > '' Our Main Database > Property Read MainDb As Connection > Private $MainDb As New Connection > > Private Function MainDb_Read() As Connection > > If Not $MainDb.Opened Then > $MainDb.Type = "postgresql" > $MainDb.Host = Settings.["MainDb/Host", ""] > $MainDb.Name = Settings["MainDb/Datenbank", ""] > $MainDb.Login = Settings["MainDb/User", ""] > $MainDb.Password = Settings["MainDb/Password"] > > If $MainDb.User = Null And If $MainDb.Password = Null Then > Error.Raise("No MainDb Credentials") > Endif > Open($MainDb) > Endif > > Return $MainDb > > Catch > Message.Error(Error.Text) > > End > > ---8<------------------------------- > > This is a "singleton pattern": > > https://en.wikipedia.org/wiki/Singleton_pattern > > You can do this also in a module which is a singleton by design. > > To use it, you can do anywhere in your program: > > ---8<------------------------------- > Dim qry As String > Dim res As Result > > qry = "select sthing from tableany;" > res = Dbs.MainDb.Exec(qry) > ---8<------------------------------- > > On the first usage of Dbs.MainDb it will be instanciated, on every > latter usage the connection will be reused! > > This is very safe, as it ensures, that your program always uses this one > connection and does not do concurrent connections to the same database > (which can lead to database deadlocks ). > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Fabien Bodard From rwe-sse at osnanet.de Wed Nov 29 09:06:06 2017 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 29 Nov 2017 09:06:06 +0100 Subject: [Gambas-user] SMTP Date issue In-Reply-To: <20171128124341.20be857447f5192cebac0283@hhmachine.com> References: <20171128124341.20be857447f5192cebac0283@hhmachine.com> Message-ID: <5A1E6A6E.3050703@osnanet.de> Am 28.11.2017 18:43, schrieb Josh: > I have working on a program to send emails to a list of vendors for quoting materials. > > Sending the email works but the date that is enetered in the date field is of the email is yesterday. > > So the emails so up in yesterdays mail...... > > I am using New York for my time zone and my regular email app and everything else works fine. > > Gambas version 3.8.4 running on Lubuntu 16.04 > > Any suggestions appreciated. > > Thanks > Sounds like a time string handling problem, not so much a specific SMTP one. Do you use the Gambas date/time functions? On New York time zone, you are 6 hours back to GMT, so the mail's date might be set to the day before somewhere on its way from Gambas' SMTP function through your Linux mailer down to your provider. Does your own computer run a BIOS clock on GMT with the system set to locale? This is just a guess, maybe it's something completely different... Regards Rolf From purchasing at hhmachine.com Wed Nov 29 14:02:06 2017 From: purchasing at hhmachine.com (Josh) Date: Wed, 29 Nov 2017 08:02:06 -0500 Subject: [Gambas-user] SMTP Date issue In-Reply-To: <5A1E6A6E.3050703@osnanet.de> References: <20171128124341.20be857447f5192cebac0283@hhmachine.com> <5A1E6A6E.3050703@osnanet.de> Message-ID: <20171129080206.d0c672ed31787266a61490e5@hhmachine.com> The Date field is generated automatically by the Gambas SMTP component. I have tried setting the computer for Local and UTC results are the same. Date: Tue, 28 Nov 2017 12:46:44 GMT < --- This is date field generated by Gambas this morning... Date: Wed, 29 Nov 2017 09:06:06 +0100 < --- This is date field in email from you... Received: (qmail 27865 invoked by uid 399); 29 Nov 2017 12:46:44 -0000 < --- This is date field inserted by my email hosts receipt. If I was a betting man I would say that it is the format that Gambas is ouputting the date. Is there any way to change it and find out? The SMTP component automatically creates the Date: On Wed, 29 Nov 2017 09:06:06 +0100 Rolf-Werner Eilert wrote: > Am 28.11.2017 18:43, schrieb Josh: > > I have working on a program to send emails to a list of vendors for quoting materials. > > > > Sending the email works but the date that is enetered in the date field is of the email is yesterday. > > > > So the emails so up in yesterdays mail...... > > > > I am using New York for my time zone and my regular email app and everything else works fine. > > > > Gambas version 3.8.4 running on Lubuntu 16.04 > > > > Any suggestions appreciated. > > > > Thanks > > > > Sounds like a time string handling problem, not so much a specific SMTP > one. Do you use the Gambas date/time functions? > > On New York time zone, you are 6 hours back to GMT, so the mail's date > might be set to the day before somewhere on its way from Gambas' SMTP > function through your Linux mailer down to your provider. Does your own > computer run a BIOS clock on GMT with the system set to locale? > > This is just a guess, maybe it's something completely different... > > Regards > Rolf > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -- Josh H&H Machine Shop Akron and Ravenna OH 330-773-3327 Fax 773-6820 From g4mba5 at gmail.com Wed Nov 29 14:05:37 2017 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 29 Nov 2017 14:05:37 +0100 Subject: [Gambas-user] SMTP Date issue In-Reply-To: <5A1E6A6E.3050703@osnanet.de> References: <20171128124341.20be857447f5192cebac0283@hhmachine.com> <5A1E6A6E.3050703@osnanet.de> Message-ID: Le 29/11/2017 ? 09:06, Rolf-Werner Eilert a ?crit?: > Am 28.11.2017 18:43, schrieb Josh: >> I have working on a program to send emails to a list of vendors for >> quoting materials. >> >> Sending the email works but the date that is enetered in the date >> field is of the email is yesterday. >> >> So the emails so up in yesterdays mail...... >> >> I am using New York for my time zone and my regular email app and >> everything else works fine. >> >> Gambas version 3.8.4? running on Lubuntu 16.04 >> >> Any suggestions appreciated. >> >> Thanks >> > > Sounds like a time string handling problem, not so much a specific SMTP > one. Do you use the Gambas date/time functions? > > On New York time zone, you are 6 hours back to GMT, so the mail's date > might be set to the day before somewhere on its way from Gambas' SMTP > function through your Linux mailer down to your provider. Does your own > computer run a BIOS clock on GMT with the system set to locale? > > This is just a guess, maybe it's something completely different... > > Regards > Rolf > The SmtpClient class sends the mail date in GMT. Can you show us the header of your mail and tell which date you expected? Thanks. -- Beno?t Minisini From purchasing at hhmachine.com Wed Nov 29 14:11:11 2017 From: purchasing at hhmachine.com (Josh) Date: Wed, 29 Nov 2017 08:11:11 -0500 Subject: [Gambas-user] SMTP Date issue In-Reply-To: References: <20171128124341.20be857447f5192cebac0283@hhmachine.com> <5A1E6A6E.3050703@osnanet.de> Message-ID: <20171129081111.6c92a55e3389d038177a18df@hhmachine.com> Here is complete source of email to myself after i recieve it.... Return-Path: Delivered-To: purchasing at hhmachine.com Received: (qmail 27865 invoked by uid 399); 29 Nov 2017 12:46:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail1211.opentransfer.com X-Spam-Level: ** X-Spam-Status: No, score=2.6 required=5.0 tests=DATE_IN_PAST_12_24,MISSING_MID, RDNS_NONE autolearn=disabled version=3.2.5 Received: from unknown (HELO josh-HH) (pbs:purchasing at hhmachine.com@96.11.75.58) by mail1211.opentransfer.com with ESMTPM; 29 Nov 2017 12:46:44 -0000 X-Originating-IP: 96.11.75.58 Date: Tue, 28 Nov 2017 12:46:44 GMT From: Subject: Test Mail To: purchasing at hhmachine.com MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Length: 20 This is the message. On Wed, 29 Nov 2017 14:05:37 +0100 Beno?t Minisini wrote: > Le 29/11/2017 ? 09:06, Rolf-Werner Eilert a ?crit?: > > Am 28.11.2017 18:43, schrieb Josh: > >> I have working on a program to send emails to a list of vendors for > >> quoting materials. > >> > >> Sending the email works but the date that is enetered in the date > >> field is of the email is yesterday. > >> > >> So the emails so up in yesterdays mail...... > >> > >> I am using New York for my time zone and my regular email app and > >> everything else works fine. > >> > >> Gambas version 3.8.4? running on Lubuntu 16.04 > >> > >> Any suggestions appreciated. > >> > >> Thanks > >> > > > > Sounds like a time string handling problem, not so much a specific SMTP > > one. Do you use the Gambas date/time functions? > > > > On New York time zone, you are 6 hours back to GMT, so the mail's date > > might be set to the day before somewhere on its way from Gambas' SMTP > > function through your Linux mailer down to your provider. Does your own > > computer run a BIOS clock on GMT with the system set to locale? > > > > This is just a guess, maybe it's something completely different... > > > > Regards > > Rolf > > > > The SmtpClient class sends the mail date in GMT. Can you show us the > header of your mail and tell which date you expected? > > Thanks. > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net -- Josh H&H Machine Shop Akron and Ravenna OH 330-773-3327 Fax 773-6820 From bugtracker at gambaswiki.org Wed Nov 29 14:37:16 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 29 Nov 2017 13:37:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1216: umask ignored by gambas while Mkdir command used Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1216&from=L21haW4- Damien COTTIER reported a new bug. Summary ------- umask ignored by gambas while Mkdir command used Type : Bug Priority : Medium Gambas version : 3.10 Product : Language Description ----------- Hello, While creating a directory in a program launch from a shell defining a UMASK 0002 environnement variable, the Mkdir command will produce a directory with 755 and not 775. Damien. From mckaygerhard at gmail.com Wed Nov 29 15:52:23 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 29 Nov 2017 10:52:23 -0400 Subject: [Gambas-user] how to avoid second instance in hole project In-Reply-To: References: <20171128165905.GC21255@highrise.localdomain> <2e3b9f27-8f4e-00ff-36ed-745423f7deb9@deganius.de> Message-ID: umm i think before using that "create static" but the gambas documentation i cannot understand (and a wiki realted issue hjappened before when i touch...) create static make this safe in the cgi behavior, respect the desktop behaviour but i want to see how do you do this tobias! if you can, please iluminate me with that "cms", or do are taking about the gambasforge ? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-11-29 3:55 GMT-04:00 Fabien Bodard : > You can use a self instantiated class... > > > On the top of the class Use : > > CREATE STATIC > > > > The call the class with it's name : > > MyClass.Function > > 2017-11-28 22:50 GMT+01:00 Christof Thalhofer : > > Am 28.11.2017 um 18:09 schrieb PICCORO McKAY Lenz: > > > >> we need a common and consistent code and i try to made a common > >> lib/module that init the db using config file detected > > > > I do this in my programs in a class called "DBs" like this: > > > > ---8<------------------------------- > > ' Gambas class file > > > > Create Static > > > > '' Our Main Database > > Property Read MainDb As Connection > > Private $MainDb As New Connection > > > > Private Function MainDb_Read() As Connection > > > > If Not $MainDb.Opened Then > > $MainDb.Type = "postgresql" > > $MainDb.Host = Settings.["MainDb/Host", ""] > > $MainDb.Name = Settings["MainDb/Datenbank", ""] > > $MainDb.Login = Settings["MainDb/User", ""] > > $MainDb.Password = Settings["MainDb/Password"] > > > > If $MainDb.User = Null And If $MainDb.Password = Null Then > > Error.Raise("No MainDb Credentials") > > Endif > > Open($MainDb) > > Endif > > > > Return $MainDb > > > > Catch > > Message.Error(Error.Text) > > > > End > > > > ---8<------------------------------- > > > > This is a "singleton pattern": > > > > https://en.wikipedia.org/wiki/Singleton_pattern > > > > You can do this also in a module which is a singleton by design. > > > > To use it, you can do anywhere in your program: > > > > ---8<------------------------------- > > Dim qry As String > > Dim res As Result > > > > qry = "select sthing from tableany;" > > res = Dbs.MainDb.Exec(qry) > > ---8<------------------------------- > > > > On the first usage of Dbs.MainDb it will be instanciated, on every > > latter usage the connection will be reused! > > > > This is very safe, as it ensures, that your program always uses this one > > connection and does not do concurrent connections to the same database > > (which can lead to database deadlocks ). > > > > > > Alles Gute > > > > Christof Thalhofer > > > > -- > > Dies ist keine Signatur > > > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List > > https://lists.gambas-basic.org/listinfo/user > > > > Hosted by https://www.hostsharing.net > > > > > > -- > Fabien Bodard > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Nov 29 15:54:15 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 29 Nov 2017 10:54:15 -0400 Subject: [Gambas-user] class instwnce or verification In-Reply-To: References: Message-ID: sorry this mail/question was incorrecty made, i send the othber mail about "how to avoid second instance in hole project" Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-11-29 3:18 GMT-04:00 Fabien Bodard : > Yes gb.setting is yours. > > You can call myvalue=Setting["Section/Key", DefaulValue] > > It can even store array, collection > > You can set a value by Setting["Section/Key"]=Value > > > > In the file > > [Section] > Key="MyValue" > > > 2017-11-28 22:16 GMT+01:00 Jussi Lahtinen : > > There is Settings class already, why you cannot use it? Just write the > > passwords as hashes. > > > > > > Jussi > > > > On Tue, Nov 28, 2017 at 5:30 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> > > wrote: > >> > >> long time without writing.. i want to use a class that create/read the > >> config file and set user and password to connect to database > >> > >> but in my implementation i wnats to check if already are a instance of, > so > >> i not need to re-instanciate the configuration reading class > >> > >> somebody can ilustrate me or give me a example? > >> > >> > >> Lenz McKAY Gerardo (PICCORO) > >> http://qgqlochekone.blogspot.com > >> > >> > >> -------------------------------------------------- > >> > >> This is the Gambas Mailing List > >> https://lists.gambas-basic.org/listinfo/user > >> > >> Hosted by https://www.hostsharing.net > >> > > > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List > > https://lists.gambas-basic.org/listinfo/user > > > > Hosted by https://www.hostsharing.net > > > > > > -- > Fabien Bodard > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Nov 29 16:03:32 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 29 Nov 2017 11:03:32 -0400 Subject: [Gambas-user] How to package Gambas for Debian/Ubuntu? In-Reply-To: References: Message-ID: in the wiki theres a complete how to: gambaswiki.org/wiki/install/debian take in consideration that the produced package in debian jeessie differs from wheeze and strech due some by example the plopper depends have a different soname in each debian version.. that's why the ppa repository does not work/fith in debian ... i currently made some package for DEVUAN jessie (non-systemd debian) in venenux repository experimental tree Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-11-28 17:16 GMT-04:00 Christof Thalhofer : > Hello, > > as I use Gambas together with my programs on a couple of different > computers running on Debian and Ubuntu I would like to package Gambas > and deploy it by my own central Apt repository. Currently I do this by > mirroring the Gambas ppa from Launchpad: > > https://launchpad.net/~gambas-team/+archive/ubuntu/gambas3 > Does a HowTo or a script exist to fetch a special Gambas version from > Gitlab and package it for an Apt repository? > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Nov 29 17:55:06 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 29 Nov 2017 12:55:06 -0400 Subject: [Gambas-user] how to avoid second instance in hole project In-Reply-To: References: <20171128165905.GC21255@highrise.localdomain> <2e3b9f27-8f4e-00ff-36ed-745423f7deb9@deganius.de> Message-ID: investigating a little, i must use the static only in the settings handle of the parameters.. but for database must let create any instances respect the cgi request of each clients.. the problems comes when i use the sqlite! how this will made? i make some example codes but i not see or i cannot take a vision of the situation that i think can be happened Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-11-29 10:52 GMT-04:00 PICCORO McKAY Lenz : > umm i think before using that "create static" but the gambas documentation > i cannot understand (and a wiki realted issue hjappened before when i > touch...) > > create static make this safe in the cgi behavior, respect the desktop > behaviour > > but i want to see how do you do this tobias! if you can, please iluminate > me with that "cms", or do are taking about the gambasforge ? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-11-29 3:55 GMT-04:00 Fabien Bodard : > >> You can use a self instantiated class... >> >> >> On the top of the class Use : >> >> CREATE STATIC >> >> >> >> The call the class with it's name : >> >> MyClass.Function >> >> 2017-11-28 22:50 GMT+01:00 Christof Thalhofer : >> > Am 28.11.2017 um 18:09 schrieb PICCORO McKAY Lenz: >> > >> >> we need a common and consistent code and i try to made a common >> >> lib/module that init the db using config file detected >> > >> > I do this in my programs in a class called "DBs" like this: >> > >> > ---8<------------------------------- >> > ' Gambas class file >> > >> > Create Static >> > >> > '' Our Main Database >> > Property Read MainDb As Connection >> > Private $MainDb As New Connection >> > >> > Private Function MainDb_Read() As Connection >> > >> > If Not $MainDb.Opened Then >> > $MainDb.Type = "postgresql" >> > $MainDb.Host = Settings.["MainDb/Host", ""] >> > $MainDb.Name = Settings["MainDb/Datenbank", ""] >> > $MainDb.Login = Settings["MainDb/User", ""] >> > $MainDb.Password = Settings["MainDb/Password"] >> > >> > If $MainDb.User = Null And If $MainDb.Password = Null Then >> > Error.Raise("No MainDb Credentials") >> > Endif >> > Open($MainDb) >> > Endif >> > >> > Return $MainDb >> > >> > Catch >> > Message.Error(Error.Text) >> > >> > End >> > >> > ---8<------------------------------- >> > >> > This is a "singleton pattern": >> > >> > https://en.wikipedia.org/wiki/Singleton_pattern >> > >> > You can do this also in a module which is a singleton by design. >> > >> > To use it, you can do anywhere in your program: >> > >> > ---8<------------------------------- >> > Dim qry As String >> > Dim res As Result >> > >> > qry = "select sthing from tableany;" >> > res = Dbs.MainDb.Exec(qry) >> > ---8<------------------------------- >> > >> > On the first usage of Dbs.MainDb it will be instanciated, on every >> > latter usage the connection will be reused! >> > >> > This is very safe, as it ensures, that your program always uses this one >> > connection and does not do concurrent connections to the same database >> > (which can lead to database deadlocks ). >> > >> > >> > Alles Gute >> > >> > Christof Thalhofer >> > >> > -- >> > Dies ist keine Signatur >> > >> > >> > >> > -------------------------------------------------- >> > >> > This is the Gambas Mailing List >> > https://lists.gambas-basic.org/listinfo/user >> > >> > Hosted by https://www.hostsharing.net >> > >> >> >> >> -- >> Fabien Bodard >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Nov 29 21:47:12 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 29 Nov 2017 16:47:12 -0400 Subject: [Gambas-user] How to package Gambas for Debian/Ubuntu? In-Reply-To: <7bbed579-cf7f-53ab-997f-e2fb855b1827@deganius.de> References: <7bbed579-cf7f-53ab-997f-e2fb855b1827@deganius.de> Message-ID: umm dio you means "create a repo with my own made packages" 1) for make the packages, there's a easy way, download the sources (dsc file ) from the ppa snapshot, decompress with dpkg-source -x gambas_123412.dsc get in directory and run dpkg-buildpackage note: if you need your own update, i send a better way later in gambas wiki.. 2) once ready the amount of packages, put those in a weserver exposed directory named gambas3 adn runs inside that directory : dpkg-scanpackages -m gambas3 /dev/null > Packages then in sources list can get it with "deb http://serverip/gambas3 ./" NOTE this its a very short way and ugly way .. for better i can made a personal made for you Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-11-29 16:11 GMT-04:00 Christof Thalhofer : > Am 29.11.2017 um 16:03 schrieb PICCORO McKAY Lenz: > > > in the wiki theres a complete how to: gambaswiki.org/wiki/install/debian > > > > There is not information about how to *create the installation packages* > for Apt. I want to create the same packages which you get listed if you run > > aptitude search gambas3 > > on an Apt-based system. But I want to create them with a current version. > > How is that done? > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Nov 29 22:30:39 2017 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 29 Nov 2017 22:30:39 +0100 Subject: [Gambas-user] How to package Gambas for Debian/Ubuntu? In-Reply-To: References: <7bbed579-cf7f-53ab-997f-e2fb855b1827@deganius.de> Message-ID: <1ea98d38-e49c-c4bf-2fc2-06e059e639f6@deganius.de> Am 29.11.2017 um 21:47 schrieb PICCORO McKAY Lenz: > umm dio you means "create a repo with my own made packages" Not really. I want to create the gambas3*.deb files. All. I want to "package Gambas for Debian/Ubuntu". > 1) for make the packages, there's a easy way, download the sources (dsc > file ) from the ppa snapshot, decompress with dpkg-source -x > gambas_123412.dsc get in directory and run dpkg-buildpackage > note: if you need your own update, i send a better way later in gambas > wiki.. Yes, I need my own version, not the one from launchpad! > 2) once ready the amount of packages, put those in a weserver exposed > directory named gambas3 adn runs inside that directory : > dpkg-scanpackages -m gambas3 /dev/null > Packages > then in sources list can get it with "deb http://serverip/gambas3 ./" > > NOTE this its a very short way and ugly way .. for better i can made a > personal made for you Thank you! I use reprepro to create all my own repositories. I use Apt for software deployment. Ok? So what I want to do is like that: 1) I want to update local sources of Gambas3 with Git. (For me no problem) 2) Then I want to create Debian and/or Ubuntu packages of Gambas3 and all components. Here is the problem! 3) After that I can create the repositories with reprepro. (For me no problem!) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Wed Nov 29 22:50:36 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 29 Nov 2017 17:50:36 -0400 Subject: [Gambas-user] How to package Gambas for Debian/Ubuntu? In-Reply-To: <1ea98d38-e49c-c4bf-2fc2-06e059e639f6@deganius.de> References: <7bbed579-cf7f-53ab-997f-e2fb855b1827@deganius.de> <1ea98d38-e49c-c4bf-2fc2-06e059e639f6@deganius.de> Message-ID: so, you must to learn how to package, your question was wrong formulated, right question its: "i want to produce my own made packages from scrat" this its a not close to gambas, its more close to debian so then i send personal mails to you to adressed that i'm on -400 UTC so in 2 hours i send mails to you, with basics, later by yourselt integrate with git the process from debian official documentation for packagers.. but in short way and older method: * download the sources with wget * rename dorectory to "gambas-x.y.z" or - * run inside that directory dh_make --createorig (today there's better ways) * edit the files debian/control etc (recomented use the ppa dsc sources as templates) * run later the dpkg-buildpackage debian sources are 3 files: the dsc, the diff's from original (today with quilt) and the orig tarball.s recents methods use the git but need more reading.. see you later to coordinate Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-11-29 17:30 GMT-04:00 Christof Thalhofer : > Am 29.11.2017 um 21:47 schrieb PICCORO McKAY Lenz: > > umm dio you means "create a repo with my own made packages" > > Not really. I want to create the gambas3*.deb files. All. I want to > "package Gambas for Debian/Ubuntu". > > > 1) for make the packages, there's a easy way, download the sources (dsc > > file ) from the ppa snapshot, decompress with dpkg-source -x > > gambas_123412.dsc get in directory and run dpkg-buildpackage > > note: if you need your own update, i send a better way later in gambas > > wiki.. > > Yes, I need my own version, not the one from launchpad! > > > 2) once ready the amount of packages, put those in a weserver exposed > > directory named gambas3 adn runs inside that directory : > > dpkg-scanpackages -m gambas3 /dev/null > Packages > > then in sources list can get it with "deb http://serverip/gambas3 ./" > > > > NOTE this its a very short way and ugly way .. for better i can made a > > personal made for you > > Thank you! I use reprepro to create all my own repositories. I use Apt > for software deployment. Ok? So what I want to do is like that: > > 1) I want to update local sources of Gambas3 with Git. > (For me no problem) > > 2) Then I want to create Debian and/or Ubuntu packages of Gambas3 and > all components. Here is the problem! > > 3) After that I can create the repositories with reprepro. > (For me no problem!) > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bcunningham at sportif.com Thu Nov 30 01:33:10 2017 From: bcunningham at sportif.com (Bruce Cunningham) Date: Thu, 30 Nov 2017 00:33:10 +0000 Subject: [Gambas-user] Need help getting Gambas to run on an ARM module Message-ID: Hello, I have been trying for about two weeks now to get Gambas running on an ARM based computer. The ARM board is from ITEAD Studio and is based on the Allwinner A20 chip. I did have Gambas running on an older version of the board/module that was based on the A10 chip. That module is no longer sold, so I have been trying to get it to work on the newer version. ITEAD has their own Debian (Wheezy) build with xfce GUI for the module. It's not the most solid OS build, but works for the most part. There was a previous post from me about trying to get that to work. I tried to install Gambas with "sudo apt-get install gambas3". It installs, but will not launch. If I try to invoke it from the command line, it just hangs. No error message, just hangs until I do ctrl-C. I tried to build it from source, but encountered a number of errors, and never could get a full build. So, I found a build of Armbian (xenial) with a GUI that seems to work very well for this board. Much better OS build. I installed Gambas with "sudo apt-get install gambas3", and it installed Gambas 3.8 (ubuntu armhf). When I launch it, I get "segmentation fault". So, I installed all of the dependencies, and checked out version 3.9 from the SVN repository. It seemed to compile without too many issues (just some warnings that didn't seem like much). When I launch that version I get "illegal instruction". At this point I figured I would try compiling version 3.6 instead. In this case, Make fails with "main.cpp:31:21: fatal error QDateTime: No such file or directory. Compilation terminated'. I'm really more of a hardware guy, and I'm trying to build an embedded device based on this module. I'm a long time vb6/vb.net person, and would really like to get Gambas working so as to avoid working in C. I'm not sure where to go at this point. Any ideas would be welcome. I have the outputs from the various "configure -C" and "make" passes if anyone wants to see them. Bruce Bruce Cunningham bcunningham at sportif.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebikul at gmail.com Thu Nov 30 02:46:00 2017 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Thu, 30 Nov 2017 01:46:00 +0000 Subject: [Gambas-user] Need help getting Gambas to run on an ARM module In-Reply-To: References: Message-ID: Hi Bruce, If you are using a Debian based OS, you can add the PPA for the corresponding Ubuntu version, or the Debian equivalent, and use those builds. They are up to date, and include armhf compilations. I imagine it being a real pain to compile it by yourself, as they take more than 4 hours to complete. As no one reported any issues with those, I assume they will work, and you will be able to execute Gambas. Just follow the instructions as if you were using Ubuntu, or if you are using Debian just change the distribution to the equivalent one. Let me know if that works. Regards, Sebastian On Wed, Nov 29, 2017, 21:34 Bruce Cunningham wrote: > Hello, > > I have been trying for about two weeks now to get Gambas running on an ARM > based computer. The ARM board is from ITEAD Studio and is based on the > Allwinner A20 chip. I did have Gambas running on an older version of the > board/module that was based on the A10 chip. That module is no longer > sold, so I have been trying to get it to work on the newer version. > > ITEAD has their own Debian (Wheezy) build with xfce GUI for the module. > It?s not the most solid OS build, but works for the most part. There was a > previous post from me about trying to get that to work. I tried to install > Gambas with ?sudo apt-get install gambas3?. It installs, but will not > launch. If I try to invoke it from the command line, it just hangs. No > error message, just hangs until I do ctrl-C. I tried to build it from > source, but encountered a number of errors, and never could get a full > build. > > So, I found a build of Armbian (xenial) with a GUI that seems to work very > well for this board. Much better OS build. I installed Gambas with ?sudo > apt-get install gambas3?, and it installed Gambas 3.8 (ubuntu armhf). When > I launch it, I get ?segmentation fault?. So, I installed all of the > dependencies, and checked out version 3.9 from the SVN repository. It > seemed to compile without too many issues (just some warnings that didn?t > seem like much). When I launch that version I get ?illegal instruction?. > > At this point I figured I would try compiling version 3.6 instead. In > this case, Make fails with ?main.cpp:31:21: fatal error QDateTime: No such > file or directory. Compilation terminated?. > > I?m really more of a hardware guy, and I?m trying to build an embedded > device based on this module. I?m a long time vb6/vb.net person, and > would really like to get Gambas working so as to avoid working in C. > > I?m not sure where to go at this point. Any ideas would be welcome. I > have the outputs from the various ?configure ?C? and ?make? passes if > anyone wants to see them. > > Bruce > > Bruce Cunningham > *bcunningham at sportif.com* > > > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Nov 30 13:20:24 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 30 Nov 2017 08:20:24 -0400 Subject: [Gambas-user] Need help getting Gambas to run on an ARM module In-Reply-To: References: Message-ID: no one of the ppa works with debian there's two depends one it's the plopper lib that are not same in debian so then seems it's time to package debian for debian not winbuntu packages for debian.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-11-29 21:46 GMT-04:00 Sebasti?n Kulesz : > Hi Bruce, > > If you are using a Debian based OS, you can add the PPA for the > corresponding Ubuntu version, or the Debian equivalent, and use those > builds. They are up to date, and include armhf compilations. I imagine it > being a real pain to compile it by yourself, as they take more than 4 hours > to complete. > > As no one reported any issues with those, I assume they will work, and you > will be able to execute Gambas. Just follow the instructions as if you were > using Ubuntu, or if you are using Debian just change the distribution to > the equivalent one. > > Let me know if that works. > > Regards, > Sebastian > > On Wed, Nov 29, 2017, 21:34 Bruce Cunningham > wrote: > >> Hello, >> >> I have been trying for about two weeks now to get Gambas running on an >> ARM based computer. The ARM board is from ITEAD Studio and is based on the >> Allwinner A20 chip. I did have Gambas running on an older version of the >> board/module that was based on the A10 chip. That module is no longer >> sold, so I have been trying to get it to work on the newer version. >> >> ITEAD has their own Debian (Wheezy) build with xfce GUI for the module. >> It?s not the most solid OS build, but works for the most part. There was a >> previous post from me about trying to get that to work. I tried to install >> Gambas with ?sudo apt-get install gambas3?. It installs, but will not >> launch. If I try to invoke it from the command line, it just hangs. No >> error message, just hangs until I do ctrl-C. I tried to build it from >> source, but encountered a number of errors, and never could get a full >> build. >> >> So, I found a build of Armbian (xenial) with a GUI that seems to work >> very well for this board. Much better OS build. I installed Gambas with >> ?sudo apt-get install gambas3?, and it installed Gambas 3.8 (ubuntu >> armhf). When I launch it, I get ?segmentation fault?. So, I installed all >> of the dependencies, and checked out version 3.9 from the SVN repository. >> It seemed to compile without too many issues (just some warnings that >> didn?t seem like much). When I launch that version I get ?illegal >> instruction?. >> >> At this point I figured I would try compiling version 3.6 instead. In >> this case, Make fails with ?main.cpp:31:21: fatal error QDateTime: No such >> file or directory. Compilation terminated?. >> >> I?m really more of a hardware guy, and I?m trying to build an embedded >> device based on this module. I?m a long time vb6/vb.net person, and >> would really like to get Gambas working so as to avoid working in C. >> >> I?m not sure where to go at this point. Any ideas would be welcome. I >> have the outputs from the various ?configure ?C? and ?make? passes if >> anyone wants to see them. >> >> Bruce >> >> Bruce Cunningham >> *bcunningham at sportif.com* >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List >> https://lists.gambas-basic.org/listinfo/user >> >> Hosted by https://www.hostsharing.net >> > > > -------------------------------------------------- > > This is the Gambas Mailing List > https://lists.gambas-basic.org/listinfo/user > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Nov 30 13:27:40 2017 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 30 Nov 2017 08:27:40 -0400 Subject: [Gambas-user] Need help getting Gambas to run on an ARM module In-Reply-To: References: Message-ID: > apt-get install gambas3?. It installs, but will not launch. If I try to > invoke it from the command line, it just hangs. No error message, just > hangs until I do ctrl-C. I tried to build it from source, but encountered > a number of errors, and never could get a full build. > in this case seems the arch are not the same.. please report the exact hardware you are in use, i remenber that in debian theres a new floavor ofr arm devices > > So, I found a build of Armbian (xenial) with a GUI that seems to work very > well for this board. Much better OS build. I installed Gambas with ?sudo > apt-get install gambas3?, and it installed Gambas 3.8 (ubuntu armhf). When > I launch it, I get ?segmentation fault?. So, I installed all of the > dependencies, and checked out version 3.9 from the SVN repository. It > seemed to compile without too many issues (just some warnings that didn?t > seem like much). When I launch that version I get ?illegal instruction?. > this confirm that the arch are not same, a possible could be that you are in multiarch mode and try to run a different arch, take in consideration that now in debian we can mix different archs > > At this point I figured I would try compiling version 3.6 instead. In > this case, Make fails with ?main.cpp:31:21: fatal error QDateTime: No such > file or directory. Compilation terminated?. > this its a common qt4 vs qt5 dependency problem the qt installed are incomplete, you must revise packages and disable qt5 modules in gambas, install complete qt4 modules and then setupd with update-alternatives the qt environment correctly > > I?m really more of a hardware guy, and I?m trying to build an embedded > device based on this module. I?m a long time vb6/vb.net person, and > would really like to get Gambas working so as to avoid working in C. > its a common guindows problems, your cup are full of win32 knowlegde.. seems the problem in your case its a very older arm class hardware, please can you report exact model in use for that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bcunningham at sportif.com Thu Nov 30 18:23:12 2017 From: bcunningham at sportif.com (Bruce Cunningham) Date: Thu, 30 Nov 2017 17:23:12 +0000 Subject: [Gambas-user] Need help getting Gambas to run on an ARM module In-Reply-To: References: Message-ID: Piccoro, The device is like a Raspberry PI, but uses an Allwinner SOC instead of the Broadcom SOC. The processor is an ARM Cortex A7 dual core with the Mali400 GPU. Here is a link to the device: https://www.itead.cc/development-platform/arm/itead-core-aw204x.html I hope this helps. Bruce Bruce Cunningham bcunningham at sportif.com From: User [mailto:user-bounces at lists.gambas-basic.org] On Behalf Of PICCORO McKAY Lenz Sent: Thursday, November 30, 2017 4:28 AM To: Gambas Mailing List Subject: Re: [Gambas-user] Need help getting Gambas to run on an ARM module apt-get install gambas3?. It installs, but will not launch. If I try to invoke it from the command line, it just hangs. No error message, just hangs until I do ctrl-C. I tried to build it from source, but encountered a number of errors, and never could get a full build. in this case seems the arch are not the same.. please report the exact hardware you are in use, i remenber that in debian theres a new floavor ofr arm devices So, I found a build of Armbian (xenial) with a GUI that seems to work very well for this board. Much better OS build. I installed Gambas with ?sudo apt-get install gambas3?, and it installed Gambas 3.8 (ubuntu armhf). When I launch it, I get ?segmentation fault?. So, I installed all of the dependencies, and checked out version 3.9 from the SVN repository. It seemed to compile without too many issues (just some warnings that didn?t seem like much). When I launch that version I get ?illegal instruction?. this confirm that the arch are not same, a possible could be that you are in multiarch mode and try to run a different arch, take in consideration that now in debian we can mix different archs At this point I figured I would try compiling version 3.6 instead. In this case, Make fails with ?main.cpp:31:21: fatal error QDateTime: No such file or directory. Compilation terminated?. this its a common qt4 vs qt5 dependency problem the qt installed are incomplete, you must revise packages and disable qt5 modules in gambas, install complete qt4 modules and then setupd with update-alternatives the qt environment correctly I?m really more of a hardware guy, and I?m trying to build an embedded device based on this module. I?m a long time vb6/vb.net person, and would really like to get Gambas working so as to avoid working in C. its a common guindows problems, your cup are full of win32 knowlegde.. seems the problem in your case its a very older arm class hardware, please can you report exact model in use for that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Karl.Reinl at Fen-Net.de Thu Nov 30 22:06:32 2017 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Thu, 30 Nov 2017 22:06:32 +0100 Subject: [Gambas-user] absolut Path from a linked file Message-ID: <1512075992.3984.8.camel@Scenic.local> Salut, I look for a ready to go function in gambas3, converting a link to the absolut path, where the file is located. I don't (not yet) want to use readlink or realpath, I would prefer a pure gambas3 solution, and I ask you all before making it (perhaps) by my self. -- Amicalement Charlie From bugtracker at gambaswiki.org Thu Nov 30 23:52:03 2017 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 30 Nov 2017 22:52:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1216: umask ignored by gambas while Mkdir command used In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1216&from=L21haW4- Comment #1 by Beno?t MINISINI: The MKDIR command creates a directory with 0755 authorizations by default. If your umask is 0002, then the resulting authorizations will be 0755 & ~0002 = 0755 & 0775 = 0755. If you want different authorizations for your directory, you have to use CHMOD on it after having called MKDIR. Beno?t MINISINI changed the state of the bug to: Rejected.