Re: [Gambas-user] contribute user accoount does not meet with collaborators
Le Sun, 24 Sep 2017 07:15:09 +0200, PICCORO McKAY Lenz <mckaygerh...@gmail.com> a écrit: it-s suppose that the COLABORATION wiki and file in gambas its for those that are not part of the team and commonlly are external and ocasionally, must explain gambas code where and how, the wiki page only have too many references event more explain what to do.. *the only part good explained it's the log format... and for rest said @ask to mail list@* by example, about project forking workflow make reference to the GENERAL how to and not a specific how to made in gambas rules context I'm really having a hard time understanding you here. Are you saying there are too many links on the page ? First, what is the problem with having links ? Is it less accessible to have content behind a link rather than in the page ? You cant explain literally everything, mainly because the contributing guide would be way too long and would become cluttered, but also because this is not the place to make a complete tutorial on SSH or Git. The log format is the only thing explained in detail in the wiki, because it's the only thing that is really specific to Gambas. Everything else (Project forking workflow, SSH, GPG, Git, and so on...) is standard and there is nothing specific to Gambas. Of course, because it is standard doesn't mean everyone knows it, but it means that it has good documentation already. And since GitLab already has all this documentation, why should we spend precious time and resources reinventing the wheel ? about the account the wiki and file said> We also recommend you use SSH to work with Git repositories <https://docs.gitlab.com/ce/ssh/README.html>, instead of HTTPS. Not only you won't have to enter your GitLab username and password every time you want to interact with the repository, but it is also more secure as your password is never sent through the network. This are only usefully for those that have a computer fixed, and not change it! due implices not common steps to certified the ssh keys in gitlab and the computer.. i not have computer, always use the machines of others or from job.. all the not common cases are not explained. And they should not be. These kinds of guides are meant to give directions to people who are lost (like many were when we switched to Git), we can't make a super extensive guide covering every single case for every single person. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GTK+ 3, the library that is a full mess at each new minor release
Le Sat, 02 Sep 2017 21:28:25 +0200, Benoît Minisini via Gambas-user <gambas-user@lists.sourceforge.net> a écrit: Hi, I have just noticed that GTK+ 3 has changed its internal drawing model (for the n-th time) since 3.20 (I think). And, as usual, this new drawing model is not API backward-compatible, and so now the Gambas Style drawing methods do not work anymore in Gambas. At the moment, I have no idea how to draw the widgets components with the new GTK+3, and if it is possible outside of the library. Really, I would not like to be in the brain of a GTK+ library developer... Someone should explain them what a "minor release" really is some day... I found this blog post to be somewhat informative on how the GTK devs think about versioning : https://blogs.gnome.org/desrt/2016/06/13/gtk-4-0-is-not-gtk-4/ From what I understood : GTK does not use SemVer. At all. Assuming X.Y.Z versions, a .Y release IS a breaking change. If you want stability (API or ABI-wise), use the previous major version. Only when GTK4 will come out, you will have a stable GTK3 (which means : make a gb.gtk4 component only when GTK5 is out). They also want to have a stricter release schedule : a minor release every six months, and a major release every two years. This is a versioning scheme I completely agree with. I too would use this scheme, if I wasn't able to design APIs without breaking everything every time I wanted to add something in. (Yes, this is sarcasm.) So, long story short : if you want to use GTK, either you rewrite your code every six months whenever a minor release comes out, or you wait two years for a new major release to bring you new features (and rewrite literally everything this time). As for your issues, I think it may be related to how they broke themes in recent releases, but I can't remember exactly when. I only remember they broke it at least in two GTK3 versions, and 3.20 is definitely one of them. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New domain name for Gambas
I have the same feeling about the g4mbas name : it doesn't feel very mature, and you can't read it very well. Personally I've been thinking about something like gambas-basic or gambas-lang. This way it's much more readable and easy to type in. gambashq looks nicer, but it isn't really obvious what HQ is. (And to be honest I'm not sure either :-) ). Le Fri, 01 Sep 2017 23:00:20 +0200, Cristiano Guadagnino <crigu...@gmail.com> a écrit: I'd prefer gambashq.org. While g4mbas is indeed funny, I fear it may give the false impression that Gambas is something childish, not a real mature product like it is. Just my 2 euro-cents :-). Cris On Fri, Sep 1, 2017 at 10:39 PM, Benoît Minisini via Gambas-user < gambas-user@lists.sourceforge.net> wrote: Hi, As gambas.{org,net,com...} are all unavailable, I'm thinking about buying g4mbas.org (or .net, .com...) as a new domain name for Gambas. Another solution would be buying gambashq.org or gambas-something.org... But I find g4mbas more funny. What do you think about that, people? -- Benoît Minisini -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Tue, 29 Aug 2017 19:48:11 +0200, Gianluigi <bagone...@gmail.com> a écrit: Hi Adrien, first I apologize for my bad English. The steps for compiling Gambas from Git are clear. What is not described in your help is the steps for subsequent master updates, or am I unable to see them? Thanks for the attention. Gianluigi It's right at the end of this section : http://gambaswiki.org/wiki/install#t6. Basically, 'git pull' is enough to update everything, you just have to re-run the compilation just like what it was with SVN. :-) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Fri, 25 Aug 2017 16:29:40 +0200, Gianluigi <bagone...@gmail.com> a écrit: Hi Adrien, For me that I never understand at first, this wiki is simple and clear thank you very much. May I have a prayer for you? Could you write a simple and clear wiki just for compiling, already clear but above all the updating, less clear in spite of the fatigue made by all of you to explain it to me and which still does not keep track on the wiki? Regards Gianluigi Sorry, I'm not sure I understand this well. Do you mean you want a simple guide on how to download Gambas sources with Git for building them ? If that's the case, I've already updated the installation instructions here : http://gambaswiki.org/wiki/install . Are these good ? If not, what do you think is missing, or needs to be changed ? Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Fri, 25 Aug 2017 23:21:43 +0200, <gbwi...@openmailbox.org> a écrit: Good work Adrien, It was clear enough to me. There is one thing I am missing. Once you make your private fork of gambas on gitLab, how do you keep it updated with the gambas project at gitLab? Is this an automated thing or do we have to do something. Maybe something to add to your excellent guide. gbWilly It is not automatic : you have to manually fetch the changes from the Gambas repository, and then push them to your own. I just added a section on how to do that in the guide. :-) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Thu, 24 Aug 2017 16:09:48 +0200, Adrien Prokopowicz <adrien.prokopow...@gmail.com> a écrit: Is Tobias working on this too ? I'm currently writing a guide here : http://gambaswiki.org/wiki/howto/contribute, but instead of making a masterclass on how git works, I directly describe how to contribute to the Gambas source code, so it is easier for newcomers. It's still work in progress (it's missing the "how to create a merge request", the commit log format description, and probably more), but this can help a little already. Okay, I think the contributing guide is now complete. You can see it here : http://gambaswiki.org/wiki/howto/contribute When writing this guide, I assumed readers would know close to nothing about Git, but would still kinda know what Version Control Systems are in general. I also didn't want to make a masterclass on what Git is, or how it works internally. There are much better resources elsewhere for this, this guide should be restricted to "How to get my code to the Gambas repo", but with some links sprinkled here and there, for those who want to learn more. I would appreciate any remarks or criticism on this, from experienced Git users, but more importantly from newcomers who currently struggle with Git. :-) Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] CRYPT function - a little help please?
Le Fri, 25 Aug 2017 12:01:37 +0200, Rolf-Werner Eilert <rwe-...@osnanet.de> a écrit: Ok Adrien, > First of all, the documentation of gb.crypt is completely wrong. As Tobias says, its methods have *nothing* to do with encryption : they only make hashes, and NONE is there a way to make real encryption in Gambas? If I wanted to encrypt some file with a password for instance, what would I do? Regards Rolf I've never used it, but I think you would have to take a look at gb.openssl and its Cipher class. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] CRYPT function - a little help please?
Le Fri, 25 Aug 2017 11:32:36 +0200, Benoît Minisini <gam...@users.sourceforge.net> a écrit: Le 25/08/2017 à 11:22, Adrien Prokopowicz a écrit : I would like to put my two cents on this subject (although, disclaimer : I am not a professional in security). First of all, the documentation of gb.crypt is completely wrong. As Tobias says, its methods have *nothing* to do with encryption : ... Not my fault: $ man crypt CRYPT(3) NAME crypt, crypt_r - password and data encryption ... Oh wow, I actually never noticed this. Probably it is because it's a very old function, and no one wanted to update the man page ? But you are right. The documentation should be updated with emphasis on hashing instead of encryption, and an explanation of the risks. Yep, I will probably do that when I'm finished with writing the Git guide. And SHA-1 and SHA-2 are provided too for better security. I know they are there, but while they are a little better than MD5, they still are very bad for handling passwords, they are way too quick. Some functions that are commonly used for password hashing are PBKDF2 or bcrypt (and maybe scrypt too, although I heard it is a bit young). PBKDF2 and scrypt can be provided by OpenSSL, but I think bcrypt is implemented in a separate library. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] CRYPT function - a little help please?
Le Fri, 25 Aug 2017 10:29:04 +0200, Tobias Boege <tabo...@gmail.com> a écrit: First of all, don't reply to a message from the mailing list when you want to start a new topic. It's not enough to just change the subject line. Write a brand new email instead. Both your questions about encryption ended up in the humongous thread about Gambas switching to Gitlab. Now to your questions: (1) Crypt does not operate with files. It takes an input password and hashes it, returning the hash. It does just this one thing and leaves storage to you -- because a hash function should not be concerned about storage. (2) In light of the answer to (1), you are ignoring the return value of Crypt.MD5(). This return value is the password hash which you need to get into a variable and use in a call to Crypt.Check(). Crypt.MD5() doesn't magically associate a hashed version of "abcdefgh" with "xcodex". (3) Here: Public Sub Main() Dim s As String s = Crypt.MD5("secret", "salt5678") Print s Print Crypt.Check("test", s) Print Crypt.Check("secret", s) End >> $1$salt5678$eRxLEhWQsIei43/wfY66J/ >> True >> False (4) You should have read the site about good password hashes I gave you last time. It explicitly says that MD5 is NOT a good hash for passwords. MD5 can be used for quick file integrity checks, not passwords. Regards, Tobi I would like to put my two cents on this subject (although, disclaimer : I am not a professional in security). First of all, the documentation of gb.crypt is completely wrong. As Tobias says, its methods have *nothing* to do with encryption : they only make hashes, and NONE of the hashing methods provided are suitable for hashing passwords, only for integrity checks (and even for that, MD5 is completely outdated, we recently found some collisions for SHA-1, and I don't know why DES is even there). (I should probably go fix that documentation when I have some time, actually.) As for Tobias' code example, using a pre-defined salt for the hash is not a good idea : it only makes you more vulnerable to rainbow tables. It is better to let gb.crypt choose a random salt, like this : Public Sub Main() Dim s As String s = Crypt.MD5("secret")' Try 1 Print s Print Crypt.Check("test", s) Print Crypt.Check("secret", s) s = Crypt.MD5("secret") 'Try 2, same password Print s Print Crypt.Check("test", s) Print Crypt.Check("secret", s) End $1$7aSkjqOz$U5G4oets/2qDVJc9tXmml1 True False $1$RIh/RpJL$2PH3QOTo/81tqOFAxllh2. True False Here, as you can see, the MD5 hashes differ even though we used the same password, which is really useful if you want to store several passwords in a database. Although MD5 is still very bad for hashing passwords. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas playground only runs in docker?
Le Fri, 25 Aug 2017 02:49:36 +0200, PICCORO McKAY Lenz <mckaygerh...@gmail.com> a écrit: https://gitlab.com/prokopyl/gambas-playground the playground seems only runs in docker.. before i try to runs at my own internal service for my job.. this its true? The playground does indeed need docker to work (in order to provide isolated throw-away environments for each script), but everything is not run in a docker container. The playground actually consists of three parts (the three directories in the repo) : - The Web interface (playground-web) : It's just a bunch of static HTML/CSS/JS, they make the UI in the browser, and can be served by any web server (I use NGINX for the version I host, but it can be anything). - The Playground Server : It's a Gambas Web Application that exposes a REST API, which takes the source code as input and outputs the generated result. It uses docker to create a container for each incoming request, and returns the stdout and stderr of the container. It also handles the timeouts and cuts the output if it is too long. The Server actually stands by itself, as it is run as by gb.httpd process, but I made it managed by Systemd and with NGINX as a reverse proxy for HTTPS, caching, gzip and some other things. - The Runner : it's a very simple Gambas application that gathers its standard input, and then feeds it into the Gambas Scripter (gbs3). The Runner is built and put into a docker image (see the Dockerfile in the repo), which serves as a base image for the containers ran by the Playground Server. So, for short, what you need is *access* to the Docker daemon, some webserver to serve the static files, and of course a recent version of Gambas. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Thu, 24 Aug 2017 14:50:17 +0200, PICCORO McKAY Lenz <mckaygerh...@gmail.com> a écrit: 2017-08-24 1:36 GMT-04:00 Christof Thalhofer <chri...@deganius.de>: Hello Piccoro, Am 24.08.2017 um 00:07 schrieb PICCORO McKAY Lenz: > yes, i reading now with calm.. all you have right in part... Thank you! I did not want to offend you! Maybe you could really work together with ML, unfortunately I do not have the time to rewrite the i write it in a hurry, sorry tobias seem are writing a guide.. in the weekend i'll do a rewrite of that wiki.. based on the guide send by T Lee but after i do the proper test of the new odbc patches from xzMarce... Is Tobias working on this too ? I'm currently writing a guide here : http://gambaswiki.org/wiki/howto/contribute, but instead of making a masterclass on how git works, I directly describe how to contribute to the Gambas source code, so it is easier for newcomers. It's still work in progress (it's missing the "how to create a merge request", the commit log format description, and probably more), but this can help a little already. Since it is much different from the existing SVN/Git howtos, I put it under a different path for now, but in the future those should be merged so there is only one guide (which will also end up on the CONTRIBUTING.md file in the repository). -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [OFF TOPIC] Trouble creating gitLab account
Le Mon, 21 Aug 2017 17:58:30 +0200, <gbwi...@openmailbox.org> a écrit: I want to create a gitLab user so I can clone gambas and from there do translations, to later do the merge request for Dutch gambas translations. When I register a user I get a reCAPTCHA error. Screenshot01 shows page before registring. Screenshot02 shows page after trying to register with error. Anyone have this experience? gbWilly There is a captcha you need to fill in order to register, but it is probably blocked by your ad blocker. Try to disable it temporarily and refresh the page, that should fix your problem. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Sun, 20 Aug 2017 20:31:11 +0200, Jussi Lahtinen <jussi.lahti...@gmail.com> a écrit: How do you get the change log with git? "git log" shows only one change (most recent?). Is this because I cloned the sources with "git clone --depth=1 https://gitlab.com/gambas/gambas.git;? Even when I want only the latest dev version, I would still like to know what has changed. It's quite important if you do bug hunting. Jussi Yes, when you use --depth=1, you only retrieve the latest commit, so it can't know about anything past it. If you want to have the information locally, you can use the following : git fetch --unshallow It will retrieve the missing pieces and you will end up with a full clone, as if you just ran git clone without the --depth argument. You can also view the latest commits directly on gitlab here : https://gitlab.com/gambas/gambas/commits/master … or as a RSS feed here : https://gitlab.com/gambas/gambas/commits/master?format=atom If you have a Gitlab account, you can also configure it so it will send you email notifications when something happens on the repository. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] System informations report
Le Sat, 19 Aug 2017 17:48:30 +0200, Gianluigi <bagone...@gmail.com> a écrit: I do not understand why the first time I got that data (22 seconds), now restarting the notebook more times are the same as those with Git. Sorry, greetings Gianluigi For me it goes fairly fast (~3 seconds), but on a SSD, a i5-2450M and 16GB of RAM. I have 135861 files in /usr/lib. The System info has nothing to do with git however (it just reads files in your library paths), so I don't see how it can be related. However, I noticed that the System Info reads both /lib and /usr/lib, but on some distributions (like ArchLinux), /lib is actually a symlink to /usr/lib, so it gets scanned twice. I also noticed a lot of the scanning time was spent sorting the files (not sure why they had to be sorted, it has no effect on my results). I changed these behaviors in the latest commit, and it made it 4 times faster for me, does it help your case ? Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Mailinglist
Le Sat, 19 Aug 2017 16:33:04 +0200, T Lee Davidson <t.lee.david...@gmail.com> a écrit: On 08/19/2017 05:42 AM, Benoît Minisini via Gambas-user wrote: Le 19/08/2017 à 08:13, Christof Thalhofer a écrit : Am 18.08.2017 um 17:09 schrieb Benoît Minisini via Gambas-user: Does GitLab plan to offer a mailing-list feature? I will pray for that. Maybe its better not to rely to one vendor only. Why not switching over to a vendor for mailinglists like https://www.freelists.org/about.html I send them a request for a new Gambas mailing-list. or ... make a subdomain list.gambaswiki.org and host a mailinglist by self? Thats not rocket science. Yes, but it takes time to deal with. The latter is sth I could do, as I already host gambas-club.de at my hosting provider. As I can see the traffic the Gambas lists creates is not a big problem. But I'm in holliday right now. Alles Gute Christof Thalhofer OK, thanks. I will wait for your return. If anyone has ideas about how and where to host at least two mailing-lists, you are welcome! Regards, There may be reason to be concerned about the long-term reliability of freelists.org. They use three different free software packages, two of which haven't been updated in over three years and the third's website doesn't even load. The Gambas community might be better served by setting up Mailman at something like list.gambaswiki.org as suggested; even though Mailman setup does not, at first glance, appear simple and would take an initial time investment. I'm having the same feeling about freelists.org. Not only the software they rely on look abandoned, but I couldn't find any kind of blog/newsletter giving signs of life from the administrators. The closest I could find is their "updates" mailing-list, which hasn't been updated since 2005 ! I have looked for free & open-source mailing-list providers, but they all seem pretty outdated. The best I could find was https://framalistes.org/, but their site seems to only be in French … However, self-hosting is another long-term investment, and requires continuous maintenance, so I don't think it is worth it. But if Christof can offer that hosting (as he already hosts other lists), I think it can be a good idea. :-) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Trunk update
Le Fri, 18 Aug 2017 16:52:56 +0200, Gianluigi <bagone...@gmail.com> a écrit: I see the last trunk is 8175 two days ago. Does this mean that SVN is definitely abandoned? Regards Gianluigi Yes. As Benoît said somewhere on this mailing-list, and on the website, the SVN repository has been made read-only. All of the updates are now on git. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Git compilation report
Le Fri, 18 Aug 2017 14:38:21 +0200, Gianluigi <bagone...@gmail.com> a écrit: The last update fails due to missing files. It seems that the git pull command can delete but can not restore the files. I uninstalled with: cd gambasdevel sudo make uninstall But having received error, I searched with "local" and manually uninstalled files. Then I gave these commands: git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel cd gambasdevel ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C make && sudo make install Then I updated (with git pull) at 38a6017 so: cd gambasdevel git pull remote: Counting objects: 12, done. remote: Compressing objects: 100% (12/12), done. remote: Total 12 (delta 10), reused 0 (delta 0) Unpacking objects: 100% (12/12), done. Da https://gitlab.com/gambas/gambas 4aed62d..38a6017 master -> origin/master Aggiornamento di 4aed62d..38a6017 Fast-forward main/gbx/gbx_c_process.c | 16 ++-- main/gbx/gbx_c_process.h | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C make && sudo make install This time it worked. Now all it's ok, but my doubts remain about using the git pull command, maybe update it should be done like this: cd gambasdevel sudo make uninstall cd rm -rf gambasdevel/ git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel cd gambasdevel ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C make && sudo make install Regards Gianluigi What errors were you getting ? The git pull command definitely works when new files are (re-)added, and I've been updating to the latest versions using it without a problem. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas install instructions
Le Fri, 18 Aug 2017 10:46:49 +0200, PICCORO McKAY Lenz <mckaygerh...@gmail.com> a écrit: i have found a great addition to the wiki, in install.. that download the git sources without the comolete history.. git clone --depth=1 https://gitlab.com/gambas/gambas.git but the install section i thnk must reference to stable installs,. and if i dont remenber that command download the development branch... not a stable release... i send this to mail list before made any wiki modification due wiki changes dont have a "reason" input to explain the changes.. so as i understand install wiki section may refers to a stable download and install? due the command in question are as i understand for development lasted not stable lasted The Distribution-specific instructions already explain how to install the development versions, and it makes more sense to cover all versions (stable and development) in the compilation guide so it is easily found, rather than putting it in the contributing guide where most users will get lost. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Sun, 13 Aug 2017 14:56:51 +0200, Gianluigi <bagone...@gmail.com> a écrit: Hi Benoit, I apologize for ignorance but I have never used Git. To update the Trunk, what should I do now? To subscribe to the new ML? To report a bug? Write access is only for participating in the code, or? Regards Gianluigi (I'm responding here because this thread is a mess) I just updated the installation instructions on the wiki for those who want to download the development version from git : http://gambaswiki.org/wiki/install#t6 . This should help those who are unfamiliar with git, and just want to download the latest development version. :-) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Wed, 16 Aug 2017 18:30:03 +0200, Benoît Minisini via Gambas-user <gambas-user@lists.sourceforge.net> a écrit: It's because the download tool of GitLab downloads everything (especially the 'MakeWebSite' project that has a lot big files in it), whereas the "make dist-bzip2" command only package what is relevant to compile and install Gambas. If no 'git' solution exist, maybe I will have to make these source packages manually again, and store them on Sourceforge as usual... While there are no "git" solutions for this, maybe we should put the website in its own repository, apart from the rest of the source tree ? Same goes for the wiki, the bugtracker, etc. (I can move it into a new repository without losing the history, if you want) As a side-note, we can also use GitLab's Pipelines feature to run the make dist-bzip2 command and store the results every time we tag a new release (we can also use it to distribute compiled binaries if we want). -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Switching to GitLab
Le Sun, 13 Aug 2017 14:56:51 +0200, Gianluigi <bagone...@gmail.com> a écrit: Hi Benoit, I apologize for ignorance but I have never used Git. To update the Trunk, what should I do now? To subscribe to the new ML? To report a bug? Write access is only for participating in the code, or? Regards Gianluigi I am currently writing a full guide for using Git(Lab) to contribute to Gambas, but if you just want to checkout the latest Gambas version in the repository, you can just do : git clone https://gitlab.com/gambas/gambas.git # Will create a new "gambas" directory And to update it later, just go in the created directory and do : git pull There is no new mailing-list to follow git commits for now, and the bugtracker hasn't moved. Write access to the repository is only for Gambas developers and component maintainers : you do not need write access to contribute to the Gambas code anymore, you can do it through merge requests (the guide I'm writing covers what they are and how to use them). Of course, if you just want to get the source code, nothing is needed but the two commands above. :-) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] XML - Display structure
Le Sat, 12 Aug 2017 22:59:13 +0200, <d4t4f...@gmail.com> a écrit: Don't want to sound pedantic or be the wiseguy that states the obvious, but I think this is a perfect example for a recursive call. The way I picture this is a routine that initially receives the XML root node and displays all its attributes and text. Then, it calls itself recursively for each subnode. To mantain GUI hierarchy, a second optional parameter may be set to the parent node key in a treeview. This parameter is initially not passed when the node is root. Hope it helps, zxMarce. This is exactly what the example I attached is. :-) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] XML - Display structure
Le Fri, 11 Aug 2017 14:25:33 +0200, Hans Lehmann <h...@gambas-buch.de> a écrit: Hello, I am unable to read and display the structure of the following XML file xml.xml: [...] Does anyone have an idea or suggestion or even a finished solution for the above mentioned task? My projects with >XmlDocument and XmlReader do not display the structure of the xml.xml file correctly. But: Other XML files are displayed >correctly. We are looking for a (general) solution for any XML files. The problem in your code is here : For Each xChild In xmlElement.ChildElements 'Extract Element-Value if the element has no children If (xChild.ChildElements.Count = 0) Then You are assuming elements have either text or other elements in them, but your E3 element has both. To do this, you have to treat each element separately, and to iterate on all node types using the Children property (not just Elements, which is what the ChildElements property does). The attached example gives a simple solution to your problem. Regards, -- Adrien Prokopowicz XmlTree-0.0.1.tar.gz Description: GNU Zip compressed data -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] XML - Property ReadFlags
Le Fri, 11 Aug 2017 00:37:02 +0200, Karl Reinl <karl.re...@fen-net.de> a écrit: Am Donnerstag, den 10.08.2017, 23:11 +0200 schrieb Adrien Prokopowicz: Le Thu, 10 Aug 2017 18:42:37 +0200, Hans Lehmann <h...@gambas-buch.de> a écrit: > Hello Adrian, >Thank you for this example in the playground. Now I can successfully > work with the component gb.xml. >To the red marked lines in the source text section, I find no > description in the documentation. >Questions: What is the meaning of the Boolean property ReadFlags with > regard to the use of the class XmlReader?What is the effect of setting > the value to False? >Public Sub btnParseXMLNodes_Click() > txaNodes.Clear xmlReader.Open(sXMLPath) > xmlReader.ReadFlags[XmlReaderNodeType.Element] = True >xmlReader.ReadFlags[XmlReaderNodeType.Attribute] = True > xmlReader.Read() > While Not xmlReader.Eof >... > Wend > End > Regards Hans When a ReadFlag is set to False, the Read() method will skip the corresponding XML node type if it encounters it. By default they are all set to True, setting them to true manually won't do anything. Here is an example, you can toggle the ReadFlags and see the result : https://gambas-playground.proko.eu/?gist=b90eeff3dacbec0548d01701f3c05133 Salut Adrian, is it the lib, the example or the playground. Have a look to the attached screen. All ReadFlags are set to False, but I get a '6 endelement' It is a mistake in my example code. Because all flags are set to false, the XmlReader will skip through the entire document until it hits the end (Eof). However, becaused I used a Repeat-Until loop, the Print still gets executed once, and the XmlReader.Node.Type property returns the type of what the reader read last, which is the end of the root element. A correct (although a bit more verbose) version of the example would be this : https://gambas-playground.proko.eu/?gist=9e84746e67859a9dacb55ec2dba34575 -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] XML - Property ReadFlags
Le Fri, 11 Aug 2017 09:05:18 +0200, Hans Lehmann <h...@gambas-buch.de> a écrit: Hello Adrien, Thanks for the explanation to ReadFlags in the above example. If you want to read and display the content of the structure of an XML document, the output is not helpful because it seems illogical. https://gambas-playground.proko.eu/?gist=b90eeff3dacbec0548d01701f3c05133 -- Use "gb.xml" Dim contents As String = "" "" " Hello" " Hi" " Greetings" "" "" Dim reader As New XmlReader reader.FromString(contents) 'Toggle these :) reader.ReadFlags[XmlReaderNodeType.Element] = True reader.ReadFlags[XmlReaderNodeType.Attribute] = True reader.ReadFlags[XmlReaderNodeType.Text] = True reader.ReadFlags[XmlReaderNodeType.EndElement] = false reader.Read() Repeat Print reader.Node.Type;; Select Case reader.Node.Type Case XmlReaderNodeType.Element Print "element";;reader.Node.name Case XmlReaderNodeType.Attribute Print "attribute" Case XmlReaderNodeType.Text Print "text";;reader.node.value Case XmlReaderNodeType.Comment Print "comment" Case XmlReaderNodeType.CDATA Print "cdata" Case XmlReaderNodeType.EndElement Print "endelement" Default Print "" End Select reader.Read() Until reader.Eof Original-Output in a console: 1 element xml1 element foo8 attribute8 attribute1 element p2 text Hello8 attribute1 element p2 text Hi8 attribute1 element p2 text Greetings This output I would have expected because it shows the structure of the XML file. The upper output does not show which element the attributes belong to. Extremely confusing! 1 element xml1 element foo1 element p8 attribute8 attribute2 text Hello1 element p8 attribute2 text Hi1 element p8 attribute2 text Greetings What now - what to do? RegardsHans,who still has many questions about the component gb.xml ... This is the normal behavior : the Read() method returns when it *finishes* reading something. Therefore, it finishes reading the attributes *before* finishing reading the element. While this behavior is intended, I completely agree that it is very confusing. However, XmlReader is not an easy class to use : its design is based on the standard XML SAX API, which is meant to be used when your data comes from a stream (hence the complexity : you don't know what to expect going forward, and you have to remember yourself what has been previously read). The XmlDocument class, on the other hand, is based on the XML DOM API. It is much easier to navigate into an XML document, and all it requires is to have the entirety of the document loaded in memory. This requirement makes XmlReader more appropriate if you are in one of these two situations : - The Document comes from a very slow stream source (i.e. a *very* slow network connection), and you want to start reading the document before it finishes loading. - The Document you're trying to load is very big, and you can't afford to load it all in memory (today, it means more than 100MB in size, which is already crazy for an XML Document). These are the only two reasons I see for actually using the XmlReader class. Otherwise, use the XmlDocument class, it is *way* simpler and more powerful. :) (I also wrote a page on the wiki explaining the differences here : http://gambaswiki.org/wiki/doc/xml ) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] XML - Property ReadFlags
Le Thu, 10 Aug 2017 18:42:37 +0200, Hans Lehmann <h...@gambas-buch.de> a écrit: Hello Adrian, Thank you for this example in the playground. Now I can successfully work with the component gb.xml. To the red marked lines in the source text section, I find no description in the documentation. Questions: What is the meaning of the Boolean property ReadFlags with regard to the use of the class XmlReader?What is the effect of setting the value to False? Public Sub btnParseXMLNodes_Click() txaNodes.Clear xmlReader.Open(sXMLPath) xmlReader.ReadFlags[XmlReaderNodeType.Element] = True xmlReader.ReadFlags[XmlReaderNodeType.Attribute] = True xmlReader.Read() While Not xmlReader.Eof ... Wend End Regards Hans When a ReadFlag is set to False, the Read() method will skip the corresponding XML node type if it encounters it. By default they are all set to True, setting them to true manually won't do anything. Here is an example, you can toggle the ReadFlags and see the result : https://gambas-playground.proko.eu/?gist=b90eeff3dacbec0548d01701f3c05133 -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Read XML document directly ...
Le Tue, 08 Aug 2017 12:07:20 +0200, Hans Lehmann <h...@gambas-buch.de> a écrit: Hello, Question: Is there any way to access the nodes in an XML document by accessing the nodes and their attributes instead of sequentially iterating over the XML document?If YES, I would like a small example, if your time allows. Best regards Hans Hi Hans, It depends on what you want to do, but in general you would have to use the XmlDocument class to load all the document in memory, which gives you access to some methods to explore it. You can try a few examples here : https://gambas-playground.proko.eu/?gist=6c7007550e512894f48c5228cf8068b1 Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [CRASH REPORT] gbUDisk2
Le Sun, 06 Aug 2017 17:56:27 +0200, Tony Morehen <tmore...@ajmconsulting.ca> a écrit: Hello all, Damn, my program crashed Gambas this way : 1) Run the program 2) Plug in a usb drive 3) Click the mount button, mounts OK 4) Click the unmount button Program crashes Aborted(6) Console shows realloc error invalid old size Background: I'm writing a Udisks2 module that communicates with UDisks2 over dbus. It gathers drive info on existing drives and receives notifications when a new drive is plugged in, usb stick etc. Two problems: 1) The crash above. Note that unmount works if the usb drive is already plugged in. Careful: the program defaults to unmounting /dev/sdb1. Make sure you use the right drive id. 2) The program intially sends some basic drive info to debug output. First, it prints the info item by item with no problems. Then it tries to print the same items in one print statement. Some of the output is garbage. What's worst, I've tried saving each info item to separate variables. If I step through the assignments one item at a time, the individual assignment is at first correct. However, after the next item is assigned, the previous item's value also changes. This looks like a buffer overrun or a stack overflow. After a bit of searching, I found that the offending code can be reduced to this single line : Print DBus["system://org.freedesktop.UDisks2"]["/org/freedesktop/UDisks2/block_devices/sda1", "org.freedesktop.UDisks2.Filesystem"].MountPoints It appears this property gets translated to a Byte[][], but the interpreter crashes when trying to create one from the native components, because the class's symbol table is not initialized yet (as object classes are created dynamically). However, creating one from Gambas code works, and in fact, creating one before the D-Bus call makes it not crash anymore : Dim x As New Byte[][] Print DBus["system://org.freedesktop.UDisks2"]["/org/freedesktop/UDisks2/block_devices/sda1", "org.freedesktop.UDisks2.Filesystem"].MountPoints 'works! Now you have a workaround, for until this is actually fixed. :) Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] mediaplayer
Le Fri, 04 Aug 2017 07:53:50 +0200, Shane <buster6se...@gmail.com> a écrit: I think there might be a bug in the mediaplayer as the event mediaplayer_Progress Event is never raised It works correctly for me : I have a label in my app that updates with this event and I use it regularly with the latest builds without any problem. Can you send us the project, maybe it's a problem with your code ? -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Why is this code running twice?
Le Wed, 02 Aug 2017 03:38:33 +0200, Fernando Cabral <fernandojosecab...@gmail.com> a écrit: I am trying to create a sundial faceplate. I took the analogic clock, discarded what I did not need and thought I was ready to work on the calculations and drawing of the hour angles. Nevertheless, I am mystified by two things I can't understand: a) The code produces a loop I can't see why (I am not referring to the FOR loop) By default, DrawingAreas are not cached, which means it will need to redraw its contents a few times depending on the situation (most likely on startup, or when the window is resized). The docs[0] talk about that a little bit. If you do not want this to happen, you need to set the Cached[1] property to True, which will make the DrawingArea store the image in memory instead of redrawing it every time. In practice, this means two things : - Since the whole contents of the DrawingArea is stored, it will increase the memory usage a bit, however since nowadays every CPU and GPU has access to more than 1GB of memory, I would say it is negligible. - If you want to actually update the drawing, you will have to manually call the Refresh() method[2]. b) I can't modify the drawing area dimensions ( dwgArea.width = 800 does not work) We would neet your full project to be sure, but most likely your DrawingArea is inside a Form (or another container) that resizes its children, making fixed coordinates useless. If you want a fixed size window, you should try to resize the Form itself, however I would recommend to let the user resize the window as they want, and calculate the size of your drawing by reading the DrawingArea's ClientWidth and ClientHeight properties. However, depending on your drawing this may be a little tricky, so for small experiments having a fixed-sized window is okay too. :-) Besides, I have a question: when a drawing area is created, it (0,0) supposed to be the central point? No. Unlike math where the origin (0,0) is usually represented in the center, the origin of screen coordinates is always located in the top-left corner. If you want the actual center of your DrawingArea, you will have to use the following coordinates : x = DrawingArea.Width / 2 y = DrawingArea.Height / 2 Hope this helps. :-) Regards, [0] http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea [1] http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/cached [2] http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/refresh -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] why this could not be? error in runtime?
Le Sat, 29 Jul 2017 02:40:44 +0200, Jussi Lahtinen <jussi.lahti...@gmail.com> a écrit: No... again. My initial mail was correct. It should be: strinchar = Mid(strinchar, 1, (InStr(strinchar, ")", -1) - 1)) But the IDE makes highlighting bug with the brackets. Jussi On Sat, Jul 29, 2017 at 3:33 AM, Jussi Lahtinen <jussi.lahti...@gmail.com> wrote: Hmmm... sorry, no mistake... I will look closer. Jussi On Sat, Jul 29, 2017 at 3:33 AM, Jussi Lahtinen <jussi.lahti...@gmail.com> wrote: Because the line makes no sense at all. Try to remove ")". Jussi On Fri, Jul 28, 2017 at 11:55 PM, PICCORO McKAY Lenz < mckaygerh...@gmail.com> wrote: in the following code: strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1) IDE said error invalid argument, but if i do: psotionlen = InStr(strinchar, ")", -1) - 1 strinchar = Mid(strinchar, 1, psotionlen) works, why? i wnat to remove the last occurence of a char but bybass some possible spaces/chars at the end of string Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com Actually, his original code is correct. For me it runs without error in the IDE using the 3.10 development version, but the editor is indeed having trouble matching the parentheses. I also tried it on the playground (which also uses 3.10) and it works fine : https://gambas-playground.proko.eu/?gist=97ed16795393aa3b68913025e5d2b83c . However the playground's editor does match the parentheses correctly. :) Which Gambas version are you using ? There may be an old bug here. -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] textarea won't accept text
Le Fri, 28 Jul 2017 16:08:49 +0200, bill-lancaster via Gambas-user <gambas-user@lists.sourceforge.net> a écrit: I'm obviously missing something here but have just added a textarea control to my form. I can display text in it from code but can only enter one character. Any ideas? That looks like a bug. Can you send a project we can use to test this ? And if its a bug, your system's configuration will probably be needed too. Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Playground
Le Wed, 19 Jul 2017 12:15:43 +0200, PICCORO McKAY Lenz <mckaygerh...@gmail.com> a écrit: 2017-07-19 6:11 GMT-04:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>: And for the code, I just pushed it to a GitLab repository. You'll find it here : https://gitlab.com/prokopyl/gambas-playground good made, better than the old-comlex svn.. thanks i found seeds and some traces, but have private non-opensource repositoryes in both github and gilab, please be share/open does not gambas are open/free software for you ? give same back to community .. thanks in advance! The repository I linked was indeed private, that was not intended. It is now fixed, everyone should now be able to access it. Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Playground
Le Wed, 19 Jul 2017 01:50:08 +0200, PICCORO McKAY Lenz <mckaygerh...@gmail.com> a écrit: good made it! its good to know more and more of gambas are happened two things> 1) the playground seems only applies most to gambas scripts rather thant other gambas things 2) wheres its the code that generates the service, i mean url post here! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com I'm not sure I can understand you correctly, but I'll try my best. :) If by "other gambas things" you mean "full projects", then yes, the playground is only intended to run Gambas scripts, since it is designed for quick tests and prototyping, and sharing/running code on Gambas mailing-lists and forums. But since Gambas scripts are no different from a regular project (except that every class/module is in a single file), I don't see how it is a problem. And for the code, I just pushed it to a GitLab repository. You'll find it here : https://gitlab.com/prokopyl/gambas-playground Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Playground
Le Sun, 16 Jul 2017 15:10:55 +0200, Gianluigi <bagone...@gmail.com> a écrit: Thanks Adrien, I was able to mistake my first insertion (I left useless code) :(. Can I fix it? [0] Regards Gianluigi [0] http://gambas.8142.n7.nabble.com/Best-ways-to-format-float-values-td59733.html Hi Gianluigi, You can't edit anonymous Gists once they are created, but a bit of extra code is no big deal, you can just edit your code in the playground and generate a new link. (GitHub has plenty of storage space. :) ) As a side note, if you happen to accidentally share sensitive data inside a code link (such as passwords), you can contact the GitHub team[0] and ask them to delete it. The playground itself does not store anything, so you don't need to worry about it. If, in the future, you want to share some code on the playground and be able to edit it later, you can log in in GitHub, create a Gist from there and then manually craft a link to the playground like this : https://gambas-playground.proko.eu/?gist=your_gist_id_here Hope this helps. :) [0] https://help.github.com/articles/deleting-an-anonymous-gist/ -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas Playground
Hello Everyone ! These past few days I had fun putting together an online playground for Gambas ! You can find it here : https://gambas-playground.proko.eu/ :) The playground is a little place to write and run Gambas code snippets, which I think could be very useful in the mailing-list where codes flies around everywhere. :) You can also directly share a link of your code in the playground using the "Share" button, which will generate a link like this : https://gambas-playground.proko.eu/?gist=07db52169ef8b747d26f8bee4a4a19e9 The code is actually stored in a GitHub Gist, rather than in the playground itself, which makes it completely stateless. Of course, since this is a web service (i.e. not your computer ! :) ), there are a few limitations : - Your code cannot run for more than 2 seconds, or it will get SIGKILL'd - It cannot use more than 16 megabytes of RAM (it segfaults if you use too much) - You cannot make any network access whatsoever (there are no network cards, and the process does not have permission to open sockets). - You *can* read, write or delete any file, but all changes to the filesystem are discarded when the process ends. - There are probably a few edge cases I didn't think of, so please don't abuse it. :) However, a few components are available, just add the USE instruction to load it, just like you would in a Gambas script. Here is an example : https://gambas-playground.proko.eu/?gist=8a49aae5f5e24569c3f7f7e55c619f05 The following components are available in the playground : gb.args, gb.clipper, gb.complex, gb.compress, gb.data, gb.debug, gb.draw, gb.eval, gb.eval.highlight, gb.geom, gb.image.effect, gb.image, gb.inotify, gb.markdown, gb.option, gb.settings, gb.signal, gb.term, gb.util, gb.util.web, gb.vb, gb.xml, gb.xml.html (Basically, any component that doesn't depend on networking or GUI, tell me if any is missing :) ) Behind the scenes, it is a simple Gambas application serving a REST API, which takes the code as input. It then spins up a Docker container, which has a simple "runner" Gambas application as its init process, which takes the code, feeds it to the Gambas Scripter (gbs3) and then returns its output. The app is still a bit rough on the edges (for instance, I should make a proper Gambas highlighter for the editor, instead of using the VBScript one :p), but I think it is good enough to see some use. Tell me if you have some ideas to improve it, and have fun with it ! :) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Class HtmlDocument
Le Thu, 08 Jun 2017 16:02:32 +0200, Adrien Prokopowicz <adrien.prokopow...@gmail.com> a écrit: Le Tue, 06 Jun 2017 15:50:24 +0200, adamn...@gmail.com <adamn...@gmail.com> a écrit: On Mon, 5 Jun 2017 11:56:34 +0200 Hans Lehmann <h...@gambas-buch.de> wrote: Hello, why creates the following source text: Public Sub btnCreateHTMLDocument_Click() Dim hHtmlDocument As HtmlDocument hHtmlDocument = New HtmlDocument At this point hHtmlDocument.Html5 is false!! *hHtmlDocument.Html5 = False** * Print hHtmlDocument.ToString(True) hHtmlDocument.Save(Application.Path &/ "test.html", True) End this HTML5 document? I would have expected: strict HTML 1.0! /> Hans So, I guess that you are right. In fact, changing it to True and then back to False seems to have absolutely no effect on the generated html text. Oh well, back to Adrien for this one I'd say. b Hi guys, sorry for the delay, I've been a bit busy and missed your email ! This is indeed a bug in gb.xml.html, I'm looking into fixing it ASAP. :) Regards, This is now fixed in revision #8148. :) -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Class HtmlDocument
Le Tue, 06 Jun 2017 15:50:24 +0200, adamn...@gmail.com <adamn...@gmail.com> a écrit: On Mon, 5 Jun 2017 11:56:34 +0200 Hans Lehmann <h...@gambas-buch.de> wrote: Hello, why creates the following source text: Public Sub btnCreateHTMLDocument_Click() Dim hHtmlDocument As HtmlDocument hHtmlDocument = New HtmlDocument At this point hHtmlDocument.Html5 is false!! *hHtmlDocument.Html5 = False** * Print hHtmlDocument.ToString(True) hHtmlDocument.Save(Application.Path &/ "test.html", True) End this HTML5 document? I would have expected: strict HTML 1.0! Hans -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user So, I guess that you are right. In fact, changing it to True and then back to False seems to have absolutely no effect on the generated html text. Oh well, back to Adrien for this one I'd say. b Hi guys, sorry for the delay, I've been a bit busy and missed your email ! This is indeed a bug in gb.xml.html, I'm looking into fixing it ASAP. :) Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Multiple top-level nodes with XmlDocument
Le Sat, 08 Apr 2017 17:23:32 +0200, Tobias Boege <tabo...@gmail.com> a écrit: > Hi, > > I want to write an XML file like this: > > > > > > Note that I have a comment node and an element node at the top-level of > the > DOM tree. This [1] gives me the impression that it should be valid XML. > > This is straight forward with XmlWriter, but it doesn't seem possible > with > XmlDocument since it allows for only one Root node. XmlDocument.Root is > an > XmlElement and consequently always renders as > > > ... > > > which can even produce > > <> > > > in the output XML file if you set XmlDocument.Root.Name = Null. > > Regards, > Tobi > > [1] > http://stackoverflow.com/questions/14726276/what-is-the-root-node-in-xml > Hi Tobias, A document is technically a node itself, and can have multiple children. The "Root" property is only defined to be the direct element child of the document (a document cannot have multiple root elements). This is how the XmlDocument is represented internally, but the exposed Gambas class does not inherit XmlNode. I think it is for compatibility reasons with the old gb.xml, but I have to re-check. In the meantime, you can work around this limitation like this : Dim doc As New XmlDocument doc.FromString("") doc.Root.TextContent = "Hello world" Print doc.ToString() 'Correctly renders the comments Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New component gb.rss to generate and parse RSS documents
Le Sun, 02 Apr 2017 18:07:26 +0200, Tobias Boege <tabo...@gmail.com> a écrit: > Hello all, > > I wrote an RSS feed generator for one of my projects recently and could > luckily complete also the parser before the new semester starts tomorrow. > So you get a gb.rss component in the latest revision #8117. > > It should support all the things that are mentioned in the RSS 2.0 > specification here [1], but there are still some problems: > > * The date conversion routines ignore timezones completely, because > I have no clue about working with timezones in Gambas. > > * The strings you give to Rss* objects are put into the XML file > verbatim currently, which is not desirable if these strings > are HTML or some other things that confuse an RSS (XML) parser. > I guess those strings should be wrapped in a CDATA section. > I'd be grateful for a routine that tells me when to use CDATA. > > The attached project demonstrates the feed generator part. It takes the > output of "ps", for the lack of a better data source, and turns it into > an RSS feed, which is then offered through gb.httpd. I tested the > resulting > feed with newsbeuter. Just load the feed, start some new programs and > then > reload the feed. > > @Adrien or Fabien: While playing around with the XmlReader, I noticed > some > problems. I tried to fix them to the best of my ability in #8116, but as > always it would be better if you looked through the matter again. > > Regards, > Tobi > > [1] http://cyber.harvard.edu/rss/rss.html > Hi Tobias, First, thanks for the fixes. :) The only thing that bothers me a bit is throwing an error if no attribute is found when using the _get method on XmlReader.Node.Attributes. It is made so it behaves like a Gambas collection (as XML Attributes can be seen as a simple key-value store), so I think it is better to just return Null in that case. Other than that, it all looks good to me, so thanks again. :) For your escaping problem, the XmlWriter.Element() now escapes the value parameter so it is always safe to pass any String (all the other methods dealing with text content already do that, like XmlWriter.Text() or XmlNode.TextContent). Currently, you can check if a string needs serialization by actually serializing it and comparing it to the original string : If XmlNode.Serialize(Value) = Value Then ' [...] It's not optimal if you're dealing with very large strings, but it works. However, if some elements of the RSS document are likely to contain large HTML or some other markup, I think it's better performance-wise to just always wrap their contents in a CDATA node, as their contents are not checked. As a side node, all these problems with the XmlReader & Writer are starting to annoy me quite a bit (as those are mostly regressions). I think I should bring back the unit testing library I wrote some time ago, and write some tests for gb.xml locally at least. Regards, -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sourceforge , git and gitlab, time to switch to gitlab
Le Mon, 13 Mar 2017 15:22:48 +0100, Benoît Minisini <gam...@users.sourceforge.net> a écrit: > Le 13/03/2017 à 15:16, PICCORO McKAY Lenz a écrit : >> i'm back for this land and in my firts 2017 mail to this i see some >> notes >> about sourgeforce >> >> 2017-02-25 20:37 GMT-04:00 Jesus Guardon <jguar...@openmailbox.org>: >> >>> El 25/2/17 a las 20:17, Benoît Minisini escribió: >>>> Moreover, the Sourceforge svn commit mails are still broken, they >>>> apparently haven't fixed them for weeks. Sourceforge is more and more >>>> a >>>> problem! >>> Perhaps it's time to switch to GitHub... ;-) >>> >>> >> i best for gambas prefer gitlab due gitlab are more GPL rather github, >> the >> github interface are copyright and gitlab are 100% GPL and the >> enterprice >> services only add some services over the community.. >> >> so when we use the gitlab ui service we follow gpl guidelines, also >> helps a >> great project that share their ui code, either github not! >> >> * and a important difference, github projects are a sub.item of github >> repos.. that are confuse! >> * in gitlab, the repository its a subitem of a project, so the >> organization >> are more proper! >> >> also gitlab offers mirror git autocommit to other repositories so we can >> sync the older sourceforge using svn hook and mirror git, gitlab does >> not >> offer automatic mirror commits, only using git remote configuration >> inside >> repository. >> >> these 3 main reason means that gitlab are better.. and the right choice >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com > > Sebastian Kuelez prefers github: maybe he can give his arguments on the > mailing-list? > > Anyway, whatever repository is chosen, the only problem I have is how to > import the svn commit history with the user that did the commit, as > these users won't exist in the new git repository. > Git doesn't actually manage users itself : for each commit, it only records a full name and an email, both of which are purely indicative. Therefore, it is not a problem at all that non-existent authors are mentioned in commits (as they don't actually exist anywhere anyway). It will only prevent the front-end (GitHub, GitLab, etc.) to display the user icons, and it may mess up the stats a bit. But all of the history (commits and branches) is good (I just tested it on a GitHub private repository). When using git-svn[0] to import the SVN repository, you can also give an authors file, which binds the SVN usernames to full names and emails, hence fixing this problem, making everything nice and clean. :) [0] https://git-scm.com/docs/git-svn -- Adrien Prokopowicz -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] configure and use gambas web programs
Le Mon, 13 Mar 2017 17:06:44 +0100, PICCORO McKAY Lenz <mckaygerh...@gmail.com> a écrit: 2017-03-13 11:36 GMT-04:00 Benoît Minisini <gam...@users.sourceforge.net>: Configuring the execution of a CGI script has nothing to do with Gambas, it's purely a specific web server configuration thing. again in same place, starting from zero! and reading the cgi principes! arrr! does any body know how to configure the gambasforge[1] project in webserver? [1] http://www.gambasforge.org/forge.html -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Here is an extract of the Apache configuration for the GambasForge website. It's a bit messy (We were young :) ), but the important parts are the "ExecCGI" options, as well as the "AddHandler cgi-script .cgi" extra file handlers. Currently, this configuration only enables the use of the CGI scripts, and then we use an .htaccess file with a whole bunch of RewriteRules, so we have pretty URLs (such as /forge.html) to point to the main.gambas.cgi executable. Here is an extract : #forge RewriteRule ^forge\.html$ main.gambas.cgi?section=forge [QSA] RewriteRule ^mail\.html$ main.gambas.cgi?section=forge=sendmail [QSA] RewriteRule ^categorie\-([0-9]+)(?:\-[a-z0-9\-]+)?(?:\-page\-([0-9]+))\.html$ main.gambas.cgi?action=categorie=forge=$1=1 [QSA] RewriteRule ^code\-([0-9]+)-ajoutercommentaire(?:\-[a-z0-9\-]+)?\.html$ main.gambas.cgi?section=forge=addcomment=$1 [QSA] And then, you can check the section and action parameters in your application to show the right page. :) Hope that answers some of your questions. :) Regards, -- Adrien Prokopowicz gambasforge.conf Description: Binary data -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] IDE extensions?
can extract them from executable archives (not sure about this one) ? I think the nicest way to do this is to create a separate "plugin" project type, with an extra parameter to inform the compiler about the targeted application, which could then be used by the IDE. I think that's all I have. It sure is much more complex than your proposition Benoît, but I think it is much more interesting on the long-run. Again, sorry for the long post, and I would love to hear you on this. :-) Regards, -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [CRASH REPORT] XmlElement.GetAttribute (gb.xml) segfault if the attribute is an empty string
Le Tue, 13 Sep 2016 14:00:44 +0200, Tobias Boege <tabo...@gmail.com> a écrit: > On Tue, 13 Sep 2016, adamn...@gmail.com wrote: >> Hello, >> >> Damned, my program crashed Gambas that way : >> >> The segfault occurs when I attempt to get the value of the argname >> attribute thus: >> hAD = New CArgDef >> With hAD >> .ShortName = hArg.Attributes["shortname"] >> .LongName = hArg.Attributes["longname"] >> .ArgName = hArg.Attributes["argname"] >> ... >> >> This happens if an XMLElement has an attribute whose value is an empty >> string, for example : >> >> >> >> The argname attribute won't parse and the segfault occurs. >> >> I don't know whether such empty string attributes are "legal" in XML >> though. >> > > They say here [1] that it is valid in the way you wrote it. In revision > #7911 > it doesn't crash anymore and returns an empty string. The fix consisted > of > adding the magical quartet of the C programming language: `?:""'. > > Regards, > Tobi > > [1] > http://stackoverflow.com/questions/6926442/is-an-xml-attribute-without-a-value-valid > Damn Tobias, you're fast ! I saw your message just when I commited my fixes. I think that overwrote it, but thanks still. :) I took the opportunity to spread the fix to the .GetAttribute() method, which works the same way. However, this raised a question to me : Shouldn't be GB.ReturnNewString() return null when either the length or the value is null, instead of just crashing ? Regards, -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] XMLDocument GetSingleNode or XPath support?
Le Mon, 29 Feb 2016 15:10:49 +0100, KKing <kicking...@gmail.com> a écrit: > On 17/02/16 09:15, KKing wrote: >> does the XML component support a GetSingleNode method or allow an >> XPath to be used to obtain single nodes? >> - - - - >> > is that a no then? > > At the moment, there is no XPath support for the gb.xml component. However, if you want to select specific nodes, you have several methods at your disposal : * The XmlElement.GetChildrenByTagName()[0] can be used to search elements with specific tag names, but it also supports LIKE[1] patterns. It can also receive a depth parameter if you want to restrict your search; * The XmlElement.GetChildrenByAttributeValue()[2] works with similar options; * The gb.xml.html sub-component adds a XmlElement.GetChildrenByFilter()[3] method, to which you can pass a CSS filter. Not all CSS expressions are supported though (see the MatchFilter()[4] help). Hope that helps, [0] http://gambaswiki.org/wiki/comp/gb.xml/xmlelement/getchildrenbytagname [1] http://gambaswiki.org/wiki/lang/like [2] http://gambaswiki.org/wiki/comp/gb.xml/xmlelement/getchildrenbyattributevalue [3] http://gambaswiki.org/wiki/comp/gb.xml.html/xmlelement/getchildrenbyfilter [4] http://gambaswiki.org/wiki/comp/gb.xml.html/xmlelement/matchfilter -- Adrien Prokopowicz -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] xmlreader
Le Mon, 30 Nov 2015 18:36:28 +0100, roberto <rh...@yahoo.it> a écrit: > bump > Is There Anybody Out There? (PF) > > follow lines Mtest.module in gambas/gb.xml/src/gb.xml/.src > > [*snip*] > > Il 27/11/2015 16:33, roberto ha scritto: >> Hi to All, >> >> I can not read an XML file with comment(s) because when the XmlReader >> reads a line of comment () then the read method go >> immediately at the end of the file and EOF is true >> >> it's a bug? >> >> Regards Hi roberto, This should be fixed in revision #7571, can you confirm ? Sorry for the late reply, I got really busy these last few months ... Regards, -- Adrien Prokopowicz -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Using property on a string array
Le Sun, 20 Sep 2015 21:01:21 +0200, Moviga Technologies <mov...@mykolab.ch> a écrit: > > Haha! Wow! I must have been to dizzy yesterday :) Sorry about that! > > But, then - why isn't this working: > > cbxProfile.Add(MGlobal.DEFAULTSTR) 'This works > cbxProfile.List.Insert(MGlobal.Profiles) 'This adds nothing, even though > the array contains entries. > > The code is already in FConfig as you can see, but is also supposed to > be run inside FQuick.Init() > That's because the ComboBox's List property returns a copy of what's in it, so modifying the array has no effect. You have to actually *set* the property to an array in order to change the contents. Therefore, this : cbxProfile.Clear() cbxProfile.Add(MGlobal.DEFAULTSTR) cbxProfile.List.Insert(MGlobal.Profiles) ... becomes this : cbxProfile.List = [MGlobal.DEFAULTSTR].Insert(MGlobal.Profiles) And there it works. :) I agree that you can't really guess it, so I added it in the documentation[0]. [0] http://gambaswiki.org/wiki/comp/gb.qt4/combobox/list -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas new icon
Le Sat, 19 Sep 2015 01:30:47 +0200, Benoît Minisini <gam...@users.sourceforge.net> a écrit: > Le 19/09/2015 01:18, Adrien Prokopowicz a écrit >> >> - I used a slightly darker color, it didn't look pronounced enough on a >>light background to me. > > I just used the blue color of the website. How it looks depends on your > monitor, its color temperature, your perception of colours... That's true. If you prefer the brighter one just keep it, that's no big deal. :) > >> - I made the eye and mouth transparent, so it doesn't look off on >> non-white >>backgrounds. It is also a logical requirement for the Breeze theme >> integration. > > I didn't know how to do that, so cool too. I used the "Path>Exclusion" tool of Inkscape, after selecting the two objects (head and the mouth for example), and voilà. :) >> - The biggest problem to me was the IDE icon integration. The new head >>didn't look good at all on the old square, to me at least. So I made >>another one, using the same circle idea I used for the website. > > I don't get it: which icon is replaced by that new one? > The IDE's window icon, i.e. the app/src/gambas3/img/logo/logo-ide.png one. Having it in 256px also makes it a lot cleaner on high-res displays and in task switchers. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Project templates
Le Fri, 18 Sep 2015 13:12:49 +0200, Benoît Minisini <gam...@users.sourceforge.net> a écrit: > Le 18/09/2015 09:45, Jorge Carrión a écrit : >> That is a fine option, Benoit! >> I always begin a proyect by choosing components, linking libraries, >> copying >> and pastin company icons, etc. etc. now I suppouse I can create a >> template >> with all that stuff an just click on new... Awsome! >> Keep doing the goob work... >> >> Regards >> > > So am I. I don't know why nobody asked for that. Or maybe I missed it. > I don't remember anyone asking for this either. That's weird, because this feature is awesome ! :) I have one question though : why are there different project templates for each GUI toolkit ? Because we can switch toolkits so easily, isn't "Graphical Application" enough ? Plus, it's very confusing for less experimented developers who might not even know what Qt and GTK+ are. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Project templates
Le Sat, 19 Sep 2015 03:51:01 +0200, Benoît Minisini <gam...@users.sourceforge.net> a écrit: > Le 19/09/2015 03:26, Adrien Prokopowicz a écrit : >> Le Fri, 18 Sep 2015 13:12:49 +0200, Benoît Minisini >> <gam...@users.sourceforge.net> a écrit: >> >>> Le 18/09/2015 09:45, Jorge Carrión a écrit : >>>> That is a fine option, Benoit! >>>> I always begin a proyect by choosing components, linking libraries, >>>> copying >>>> and pastin company icons, etc. etc. now I suppouse I can create a >>>> template >>>> with all that stuff an just click on new... Awsome! >>>> Keep doing the goob work... >>>> >>>> Regards >>>> >>> >>> So am I. I don't know why nobody asked for that. Or maybe I missed it. >>> >> >> I don't remember anyone asking for this either. That's weird, because >> this feature is awesome ! :) >> >> I have one question though : why are there different project templates >> for each GUI toolkit ? Because we can switch toolkits so easily, >> isn't "Graphical Application" enough ? >> Plus, it's very confusing for less experimented developers who might >> not even know what Qt and GTK+ are. >> > > Because they were mainly there before. And if a less experimented > developer is not aware of what QT and GTK+ are, he will quickly have > problems, so... > Will he ? You probably know better than me, but I never had any problem letting gb.gui choose for me when making a GUI project. Also, when getting someone to discover Gambas, I always say "Just use Graphical Application, it will automagically select the right toolkit", and it always worked fine. Even as a more experienced user, I see restricting my GUI app to a specific toolkit basically useless, unless I want to use Qt-specific components (like ext or webkit), which happens very rarely. And if I ever want to use these, it's just so easy to click a few checkboxes in the components dialog. But of course, that's just my opinion. :) -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas new icon
Le Fri, 18 Sep 2015 01:15:27 +0200, Benoît Minisini <gam...@users.sourceforge.net> a écrit: Finally I found the last version of Fabien's icon too scaring (that staring wide eyes... b). Here is the last version I propose. Don't be too long to contest it, I want to put it in Gambas 3.8.2 Regards, I like this version a lot, personally. It looks clean and balanced. :) There are a few things that I wanted to tweak though, tell me what you think of these : - I used a slightly darker color, it didn't look pronounced enough on a light background to me. - There were a few control points that were not on integer coordinates. The head now has an exact size of 14 * 13px, which makes it scale much better for larger icons. - I made the eye and mouth transparent, so it doesn't look off on non-white backgrounds. It is also a logical requirement for the Breeze theme integration. - The biggest problem to me was the IDE icon integration. The new head didn't look good at all on the old square, to me at least. So I made another one, using the same circle idea I used for the website. Regards, -- Adrien Prokopowicz-- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] The interview on FLOSS
Le Wed, 09 Sep 2015 16:55:26 +0200, Benoît Minisini <gam...@users.sourceforge.net> a écrit: > I have been interviewed by Randall Schwartz and Simon Phipps on the > FLOSS weekly show on twit.tv. You can show the interview at: > > https://twit.tv/shows/floss-weekly/episodes/353 > > If you watch it, you will probably notice that I will never become an > english teacher. > > Enjoy anyway! > I think you actually did pretty well on this interview, even with your (very pronounced :) ) French accent, it was pretty clear and understandable. I also think participating in Twit's coding 101 show would be very nice, did you get in touch with the host ? I would definitely like to see that. Also, you were talking with Simon about going to an open-source conference in Paris in the upcoming months (at 43 minutes in the video), but he hasn't found the name of it by the end of the show. Basic research led me to the Paris Open Source Summit[0], is that it ? Anyway, thanks for this interview, it was nice to watch. :) [0] http://www.opensourcesummit.paris/ -- Adrien Prokopowicz -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] This is some play around the Breeze theme
Le Mon, 07 Sep 2015 10:44:06 +0200, Fabien Bodard <gambas...@gmail.com> a écrit: > 2015-09-07 10:31 GMT+02:00 Adrien Prokopowicz > <adrien.prokopow...@gmail.com>: >> Le Mon, 07 Sep 2015 09:12:18 +0200, Fabien Bodard <gambas...@gmail.com> >> a >> écrit: >> >>> Yesteday i have spend one hour on imaginate how can look like the >>> gambas icon in the breeze collection style. >>> >>> Tell me your opinions on it :-). >>> >> >> I like this idea ! My favorite is the 4th one, but I think it would fit >> the Breeze theme more if it was in a line-only style, like the first >> (I think there is no Breeze mimetype icon that is actually full). > > Not for mimetye ... look at the py one Oh, you're right, I didn't pay enough attention to that I guess. Forget what I said ! >> You should also look at their design guidelines on their wiki[0], it >> would >> certainly help your icons to look more fitting to Breeze. > > yes it seem i must follow typour color pannel for background... well > maybe not The background color seems okay to me, as it is from an existing Breeze mimetype. The things you should change are the height of the icon inside, to match the guides in the file (see attached screenshot), and the color of the icon, to match the light color of the folded page. >> Note they also take pull requests ! We could definitely have an official >> breeze mimetype icon in the next Plasma release. :) > ?? Their Github repository is open to pull requests, and they seem to accept most of them[0]. This means that, when we have finalized icons for gambas mimetypes, we can submit them through Github. If they are accepted, they will merge them into their master branch, wand it will make it to the next Plasma release. Le Mon, 07 Sep 2015 11:21:00 +0200, Fabien Bodard <gambas...@gmail.com> a écrit: > A try on the 16 px version... this not a final version ... just to get > something readable on small icons It's not bad, but I can see a few improvements : - Following the Breeze guidelines, you can use the whole 16px width of the document, if the nature of the icon is not a rectangle (which is clearly the case for the Gambas head). Right now it seems his nose is broken on an invisible wall. :( - The icon is not pixel perfect (i.e. the border and path nodes are not aligned to pixels). This results in a very blurry icon when painted on a 16px frame. - There are too many details. Keep in mind the target size is 16px, so you should remove everything that isn't a pixel wide/tall. I can see the dot in the eye, and the curve that goes down at the right of the eye, which are basically useless because they are not even rendered, they only add more to the bluriness of the edges. - The icon is not transparent. There is ugly white in the eye and the mouth. Of course, that's just my advice. :) -- Adrien Prokopowicz -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] This is some play around the Breeze theme
Le Mon, 07 Sep 2015 10:08:40 +0200, Jorge Carrión <sho...@gmail.com> a écrit: > Wy do not to design a logo based on the G character? Its very much easy > to > recognize in little pictures (if google doesn't owns all Gs in the > world... > of, course) :) IMHO, the G character is way too generic, and does not define gambas at all. Moreover, it wouldn't fit in the Breeze theme (like they wouldn't use a "J" for a Java file). The challenge here is to make the shrimp look minimalistic enough to fit in a flat, monochromatic-style, 16x16 px icon (while also making it pixel-perfect so it doesn't look blurry). -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] This is some play around the Breeze theme
Le Mon, 07 Sep 2015 09:12:18 +0200, Fabien Bodard <gambas...@gmail.com> a écrit: > Yesteday i have spend one hour on imaginate how can look like the > gambas icon in the breeze collection style. > > Tell me your opinions on it :-). > I like this idea ! My favorite is the 4th one, but I think it would fit the Breeze theme more if it was in a line-only style, like the first (I think there is no Breeze mimetype icon that is actually full). You should also look at their design guidelines on their wiki[0], it would certainly help your icons to look more fitting to Breeze. Note they also take pull requests ! We could definitely have an official breeze mimetype icon in the next Plasma release. :) [0] https://github.com/NitruxSA/breeze-icon-theme/wiki/Icon-design-guidelines-in-Breeze -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Website Mockups
Le Wed, 02 Sep 2015 02:28:33 +0200, Benoît Minisini <gam...@users.sourceforge.net> a écrit: > Hi Adrien, > > Can you take a look at http://kubuntu.org? They have redesigned their > web site, and this is what I mean by "removing all the borders". > > It's the kind of flat design I'd like to have for the new website. > Do you mean something like what I made for the second version (but more refined, of course) ? > Moreover, I'd like to have menus only when the screen space is very > small. Otherwise buttons... So you want all the links to be directly visible in the home page ? Why not, but then I'll have to redesign the header for the other pages of the site then. > And it's better IMHO to limit the width of the text paragraphs, because > too wide text lines are harder to read. That's right, I'll do that. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Website Mockups
Le Tue, 01 Sep 2015 13:11:38 +0200, Rolf-Werner Eilert <eilert-sprac...@t-online.de> a écrit: > IMHO a great leap forward - not only some mockup, Adrien! > > Due to my color chart, the colors you chose seem to fit better. Although > personally I do not like the blue-orange combination too much for this > context, it still looks fresh. I like the menu row, too, and the idea to > stretch the logo above the title and menu lines, and I like the rounded, > colored boxes. > Thanks ! :) > By the way, I find the Visitors Map impressive, so you should leave it > integrated in the front page. I spent like 10 minutes figuring out what you are talking about, but then I noticed this tracker was blocked for me by my ad blocker ! Because it's a tracker, that's bad enough for me not to put on any site (and because it's blocked by most ad blocker anyways). Plus, although I agree this is somewhat interesting to look at, I see no point in putting that kind of information on a home page. But of course, we could later create a local, gambas-made stats manager, and put a little link in the footer. :) -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Website Mockups
Le Sat, 22 Aug 2015 17:28:03 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 22/08/2015 17:22, Adrien Prokopowicz a écrit : Le Sat, 22 Aug 2015 17:15:31 +0200, Adrien Prokopowicz adrien.prokopow...@gmail.com a écrit: (Re-sending because attached files were too big for Sourceforge) Hi everyone, As you may know, Benoît asked at the beginning of the month if some people could think about redesigning the Gambas website. As i have some spare time, I started to play with it for a few days, and here is a first version ! (Sources attached) Of course, the design is not final, and all the text is basically placeholder (except maybe for the menus). It is also not yet responsive. So, as usual, I'd like some feedback to improve it ! :) Regards, And here is a screenshot if you want a quick look at it. Great! It is possible to have a version without one pixel frames and borders? :-) Here is an alternative version. I had to keep the borders between the articles, and add a background, because everything floating around without borders looks really weird. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Website Mockups
Le Sat, 22 Aug 2015 17:27:21 +0200, Tobias Boege tabo...@gmail.com a écrit: I personally like how it looks and behaves in a graphical browser. The menus are even at the right place when opening the site in `links'. Let's keep this bit that way. There are a few semantic problems here and there though (like the articles author/date being before the actual article). But I will fix these. Maybe the Developers and Support Gambas link sections should also move to the top bar... A link to the source code repository is always good to have in a prominent place. Same goes for the donation and bug tracker links there. The problem is the navbar is pretty much full horizontally, and these items don't fit in any existing category. I don't think making a link to the source code very visible is actually interesting, because most of the users don't care about it. The same thing applies to the bug tracker and the donation link, but to a lesser extent (a big part of the users don't care, but we do !). So I think they could get copied to the presentation paragraph. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Website Mockups
Le Sat, 22 Aug 2015 19:03:01 +0200, Moviga Technologies mov...@mykolab.ch a écrit: It looks nice! Glad to see that you are using HTML5. Could you also implement mediaqueries to allow for mobile browsing, i.e. responsive layout? Charset should be utf-8, and not utf8. You shoul also include a lang attribute to the html-tag html lang=en As I said in my message, this is just a quick mockup, to agree on a style/design. But the final website will be fully responsive and properly tagged of course. :) -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Path to script : not found
Le Sun, 16 Aug 2015 16:05:35 +0200, abbat81 abbat...@mail.ru a écrit: How can it be the path to my script is not found but path is 100% correct. I tried Shell and Exec[] Renaming directory and file does not help. Path in 11.desktop: Exec=/Games2/11/11.sh Print /Games2/11/11.sh Print Len(/Games2/11/11.sh) Print MyArray[IconView1.Key] Print Len(MyArray[IconView1.Key]) /Games2/11/11.sh 16 /Games2/11/11.sh 17 How can I fix it and WHERE to do it? Thanks This seems to be a very weird bug. Can you send a project that reproduces it ? Regards, -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Since 3.8 window border definition tilted
Le Sun, 16 Aug 2015 12:21:31 +0200, Christof Thalhofer chri...@deganius.de a écrit: Hi, this seems to be a small bug: Since 3.8 the border definition of a window is been resetted when a control is inserted into that window via code after border definition. See attached project. Alles Gute Christof Thalhofer That was actually due to a very weird bug in X11 (some kind of race condition between background-setting and window properties). I managed to find a workaround in revision #7227, tell us if it works better for you. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Revision: 7223 problems
Le Sat, 15 Aug 2015 22:58:16 +0200, Charlie Reinl karl.re...@fen-net.de a écrit: Salut Adrien, here I am again, after your improvements, the transformation fails and my project crash. Can you please have a look what is wrong now ? Thanks anyway This should be fixed in revision #7226, sorry ! -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Since 3.8 open project with files in state changed
Le Sat, 15 Aug 2015 10:07:58 +0200, Christof Thalhofer chri...@deganius.de a écrit: Hello, if I close a project with open class files and reopen that project all opened files are in the state changed, even if I did not change anything. See screenshot of project just opened. So I cannot close that project without the dialog to save the files ... even if nothing changed. Alles Gute Christof Thalhofer I was able to reproduce this problem, it was only occurring when you had the reformat on load/save option enabled. It was marking lines as changed even if the line was actually the same. It should be fixed now in revision #7225. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] These new color constants ...
Le Sat, 15 Aug 2015 04:16:28 +0200, adamn...@gmail.com adamn...@gmail.com a écrit: Hi Adrien, Thanks for lookin\g at this. Your response solves problem #2 in that I now know what causes it and it is a local issue - I am using a modified version of gbx3 and that is definitely why the Read/Write property change fouls up. Sorry for the noise. On the other hand - re problem 1 (no Color class override) : could you clarify that you dont get that black fill rendering when using a Color constant in the IDE. I don't believe that is related to the above but feel it may be local due to QT4 installed here, or themes, or something... tia bruce With or without a Color class override, the background/forground properties are rendered correctly when using a Color constant in the IDE. I've tried both Qt4 and Qt5, and still no problem. If you think the problem is local, can you provide some more info about the Qt and theme versions you are using ? -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] These new color constants ...
Le Fri, 14 Aug 2015 03:58:32 +0200, adamn...@gmail.com adamn...@gmail.com a écrit: With these new color constant changes (rev 7189) in the IDE (pursuant to Marco Ancillotti's Adding custom colors thread) I'm getting some anomalous outcomes. 1) In a project without any override for the Color class the following occurs: If any of the old or new constants are selected (say as a background color) from the dialog [selcol_dlg.png] the background is rendered in the IDE with a black background [blackbg.png]. Conversely if a custom color is selected from the Free tab it gets rendered correctly. 2) In a project with an override for the Color class (e.g. see Color.class attached) The IDE does not show any of the custom constants e.g. DarkBackground or LightBackground in the color selector dialog [newcol_dlg.png]. Can anyone confirm similar anomalies please. b I can't reproduce this on my system. Moreover, the Color class you sent does not work, as the properties are incorrectly overridden (they should be read-only like the original Color class, otherwise an error is thrown). Can you send a full project, as well as some details on your system ? -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Why syntax error?
Le Thu, 13 Aug 2015 11:19:09 +0200, Sprachschule Eilert eilert-sprac...@t-online.de a écrit: This produces a syntax error, but it doesn't tell me why: Private Const $TB As String = Chr$(9) If I leave Const away, it runs, so it shouldn't be the $TB which disturbs, as it is accepted as a variable naming. The rest should be ok, too. So I can't find any reason... Thanks for any hint Rolf This is because calling functions is not allowed when defining a constant value. In your case, you have to use a string containing your character using an escape code : Private Const $TB As String = \x09 'Contains the ASCII character 9 Or, even better in your case : Private Const $TB As String = \t 'Contains the TAB character (ASCII 9) But I agree that the error message is not very clear ... Regards, -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Why syntax error?
Le Thu, 13 Aug 2015 12:05:06 +0200, Adrien Prokopowicz adrien.prokopow...@gmail.com a écrit: Le Thu, 13 Aug 2015 11:19:09 +0200, Sprachschule Eilert eilert-sprac...@t-online.de a écrit: This produces a syntax error, but it doesn't tell me why: Private Const $TB As String = Chr$(9) If I leave Const away, it runs, so it shouldn't be the $TB which disturbs, as it is accepted as a variable naming. The rest should be ok, too. So I can't find any reason... Thanks for any hint Rolf This is because calling functions is not allowed when defining a constant value. In your case, you have to use a string containing your character using an escape code : Private Const $TB As String = \x09 'Contains the ASCII character 9 Or, even better in your case : Private Const $TB As String = \t 'Contains the TAB character (ASCII 9) But I agree that the error message is not very clear ... Regards, The error messages are much more clear now in revision #7222 ! -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] datediff problem
Le Mon, 10 Aug 2015 13:41:17 +0200, Jussi Lahtinen jussi.lahti...@gmail.com a écrit: Sorry to say, but this doesn't seem to be fixed. ? DateDiff(Now, DateAdd(Now, gb.Day, 2), gb.Day) 1 Jussi On Sat, Aug 1, 2015 at 7:16 PM, Benoît Minisini gam...@users.sourceforge.net wrote: Le 01/08/2015 17:52, Benoît Minisini a écrit : Le 01/08/2015 17:33, nando a écrit : Here's an example. Dim FirstDate as Date FirstDate = Date(2015, 1, 1, 0, 0, 0, 0) Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 00), gb.day) 'ok Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 01), gb.day) 'ok Print DateDiff(firstdate, Date(2015, 8, 1, 03, 59, 59), gb.day) 'ok Print DateDiff(firstdate, Date(2015, 8, 1, 04, 00, 00), gb.day) 'Wrong Print DateDiff(firstdate, Date(2015, 8, 1, 11, 21, 51), gb.day) 'Wrong 212 212 212 213 ---Wrong should be 212 213 ---Wrong should be 212 Of course, this is looks like it might be a TimeZone problem. I am in GMT -5 but daylight savings during the summer it is -4 Am I correct to say this is not correct operation? -Nando Argh, a just too late bug! You did that to spoil my holidats? 8-o OK, I couldn't let you alone. I have updated the Gambas 3.8 source package with the fix for that bug. Regards, -- Benoît Minisini That's weird, but the examples given (both jussi's and nando's) all work correctly before Benoît's fix (pre-7212), but not after (post-7212) ! Am I missing something completely obvious, or do you get the same behavior ? Here's my test code : Dim FirstDate As Date FirstDate = Date(2015, 1, 1, 0, 0, 0, 0) Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 00), gb.day) Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 01), gb.day) Print DateDiff(firstdate, Date(2015, 8, 1, 03, 59, 59), gb.day) Print DateDiff(firstdate, Date(2015, 8, 1, 04, 00, 00), gb.day) Print DateDiff(firstdate, Date(2015, 8, 1, 11, 21, 51), gb.day) Print DateDiff(firstdate, DateAdd(firstdate, GB.Day, 2), GB.Day) Output (Before 7212) : 212 212 212 212 212 2 Output (After 7212) : 211 212 212 212 212 1 -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem with MySQL syntax with DataSource
Le Tue, 04 Aug 2015 19:07:36 +0200, Martin McGlensey mmcg29...@frontier.com a écrit: Charlie, Here is the form and the data table. You will have to recode the connection for the datasources as well as using an integer (1-200) for frmEntry.DataControl.Value. Regards, Marty This should be fixed in revision #7219, can you confirm ? -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem Iconview Orientation Horizontal
Le Mon, 03 Aug 2015 22:30:17 +0200, herberth guzman herberthguz...@gmail.com a écrit: Hi Benoit I have a problem with IconView IconView1.Orientation = Arrange.Horizontal Error = Pending Path If you are in Vertical it works well. IconView1.Orientation = Arrange.Vertical I have Gambas3 3.8 Rev.7215 Regards, Herberth This should be fixed in revision #7218, and it will probably be part of the 3.8.1 update when Benoît comes back from his holidays. Regards, -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem with MySQL syntax with DataSource and DataView
Le Sun, 02 Aug 2015 22:07:35 +0200, Martin McGlensey mmcg29...@frontier.com a écrit: Hello, I have the code below in my MySQL/Mariadb project. DataSource1.Connection = modMain.$Con DataSource1.Table = tblparcel_numbers DataSource1.Filter = db.Subst(tblparcel_numbers.Key = 1, frmEntry.DataControl10.Value) DataSource1.Sort = Parcel_No DataView1.View.Columns.Width = -1 DataSource2.Connection = modMain.$Con DataSource2.Table = tblparcel_numbers DataSource2.Filter = db.Subst(tblparcel_numbers.Key != 1, frmEntry.DataControl10.Value) DataSource2.Sort = Parcel_No DataView2.View.Columns.Width = -1 Coding for DataSource1 works as expected. Returning records with a key equal to the contents of the data control. Coding for DataSource2 Fails. The error message is DataTable load until, 134: Query failed, You have an error in your SQL syntax. The DataView2 shows some record numbers but nothing else. If you scroll down you see the error message about a failure at a specific record. I've looked at the data and it appears to be OK. ,,= all work but != or do not. All I get is a circular cursor indicating processing is occurring but it looks like an endless loop. I want to load all records in which the key is not equal to the datacontrol. What have I missed? Using Gambas 3.8 with MySQL/MariaDB as the database. Thanks, Marty Can you provide a little test project, with the structure of your database ? Regards, -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pre-release of Gambas 3.8.0
Le Sat, 01 Aug 2015 11:14:00 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 01/08/2015 03:07, Adrien Prokopowicz a écrit : OK. But I need a database connection to be able to browse the available databases. This is the reason why mysql is chosen, because normally it is always available. The problem is that connection is not necessarily allowed. Or do you have a way to browse databases without needing a connection? You can't list databases without a connection, but you can have a connection without specifying a database name (see the mysql doc here[0]). [0]https://dev.mysql.com/doc/refman/5.0/en/mysql-real-connect.html Is it better with revision #7205? Listing databases in the IDE works great now, thanks ! :) -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pre-release of Gambas 3.8.0
Le Sat, 01 Aug 2015 01:40:18 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Hi, I have uploaded the Gambas 3.8.0 source package to sourceforge: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.8.0.tar.bz2/download Please check it and tell me if you have any problem with compiling it. I leave Paris soon, I have just the day of Saturday to fix any quirk, after it will be too late! Thanks. Hi Benoît, There is still that (unanswered) thread I made a month ago about gb.db.mysql[0]. It still affects the IDE's Connection properties dialog, so could you have a look before releasing the update ? Thanks in advance, Regards, [0] https://sourceforge.net/p/gambas/mailman/message/34264405/ -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pre-release of Gambas 3.8.0
Le Sat, 01 Aug 2015 02:52:09 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 01/08/2015 02:34, Adrien Prokopowicz a écrit : Le Sat, 01 Aug 2015 01:40:18 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Hi, I have uploaded the Gambas 3.8.0 source package to sourceforge: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.8.0.tar.bz2/download Please check it and tell me if you have any problem with compiling it. I leave Paris soon, I have just the day of Saturday to fix any quirk, after it will be too late! Thanks. OK. But I need a database connection to be able to browse the available databases. This is the reason why mysql is chosen, because normally it is always available. The problem is that connection is not necessarily allowed. Or do you have a way to browse databases without needing a connection? You can't list databases without a connection, but you can have a connection without specifying a database name (see the mysql doc here[0]). [0]https://dev.mysql.com/doc/refman/5.0/en/mysql-real-connect.html -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] R: This is a test
Le Wed, 22 Jul 2015 22:52:05 +0200, Christof Thalhofer chri...@deganius.de a écrit: Am 22.07.2015 um 16:36 schrieb Tobias Boege: I'm also trying to update Gambas since three days now. That reminds me, didn't we want to take the Gambas repository to somewhere else? And switch over to Git? It's superiour. Gambas could been hosted on GitHub. Alles Gute Christof Thalhofer As Benoît stated here[0], Github does not have mailing-list support. So we can't move everything over there (unless we host them on a separate server). There is still the possibility to be hosted as a GNU project as well, I don't know if Benoît needs help for it to become a thing. But we need to move away from SourceForge. I mean, I have to add exceptions to anti-malware blacklists to even access the Gambas website (when it isn't down, of course). -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How easy is it to decompile
Le Tue, 30 Jun 2015 20:50:54 +0200, Wolfgang 1...@dl7nb.de a écrit: Hi all, I just wonder how easy it would be to decompile (get some source code) from a *.deb file. I programmed a software -lets call it MyProg- in many, many hours and would like to install it via MyProg.deb. That works easily and safe. But is it (easily) possible to take the MyProg.deb and get the source code out of it? Is my work somehow safe? greetings from hot Bavaria Wolfgang Short answer : from a security point of view, expect everything in a compiled program to be as readable as plain text, as nothing is encrypted or anything of the sort. It may take some time, depending on the size of your program and the tools available, but consider that anyone with enough will and knowledge can make it through. Long answer : First, .debs themselves (like any other package, even for Windows/MacOS) are just compressed archives. You can actually open most of them in your favorite archive manager. Needless to say, this is basically nothing to go through. The actually hard part is to decompile the binary files generated by the compiler. The hardness of this depends of the language used. I'm assuming you are talking about Gambas here, but this applies to any other compiled language (C/C++, Java, C# ...). When it comes to code, compiled code is actually just your source code translated into some binary form, more readable for the interpreter. So, as you can guess, it is pretty easy to do with the right tool. I have never heard of any decompiler for Gambas, but making such a tool is completely feasible (although a bit long). Unless you have Benoît sitting next to you. I'm pretty sure he's secretly able to decompile Gambas bytecode just by reading it. :) As for resources (like images and so), it is just plainly copied into the executable. Again, anyone can find and extract it. In the end, there is nothing you can do technically protect your code. There are methods out there that try to hide code (like obfuscation ...), but it is just a matter of time before someone can go through these. However, you can give juridic protection to your work by using licenses. I don't know much about proprietary licenses, but if you want to go open-source, there are quite a few, such as the GPL, MIT or Apache Licenses, or Creative Commons for anything that is non-code. This site[0] gives interesting summaries about these (and others). Hope this helps, [0] http://choosealicense.com/ -- Adrien Prokopowicz -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New system tray icon protocol support, new episode.
Le Tue, 30 Jun 2015 12:09:17 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 30/06/2015 04:30, Adrien Prokopowicz a écrit : The only thing to note is that SNI only got implemented by Plasma in KDE 4.5[0], so there is a case where gb.dbus.trayicon may get loaded without a StatusNotifierHost being actually available. Ha! How to check that a StatusNotifierHost is present without loading the dbus component and calling any external process? :-/ The environment tells me the major version of the KDE desktop, but not its minor version... Well, I think the only reliable way to tell is to actually check the session bus to see if the StatusNotifierHost is present. What don't you like in having to load gb.dbus to do the check ? I understand you don't want to load the component for nothing if the check fails, but in some way it is also loaded whether or not you are using TrayIcons in your programs, so ... There are so many cases to test, I feel that if we somehow sort it out, the whole environment-testing/dynamic-loading process would be way cooler than the final TrayIcon feature itself. :) (Not mentioning the work already done for that, i.e. the whole DBus overhaul, and the Optional Classes interpreter feature, which are both really cool). In the meantime I investigated with Unity... They actually use a DBus protocol completly different from the KDE one, but apparently QT apps using sni-qt (like vlc) know how to deal with that. I will try to look into the sni-qt source code to understand the magic behind that. Of course, don't expect to find any good documentation about that Unity protocol (a.k.a. libappindicator). From what I've saw in the sni-qt source code, it only relies on the Unity-like protocol (which is also supported by KDE) : the path sent to the StatusNotifierWatcher is hard-coded to be /org/kde/statusnotifieritem/id. Also, if you need me to test some more things, just tell. :) Regards, -- Adrien Prokopowicz -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New gb.form.statusicon component
Le Mon, 29 Jun 2015 04:38:41 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 29/06/2015 00:33, Adrien Prokopowicz a écrit : I just made a VM with Ubuntu 15.04 and Unity to test that out, but I can't get it to work. The program runs, but no icon shows up. There are quite a few warnings (see attached), but I get these as well on Plasma 5, and everything works there. I made some more tests, I installed sni-qt and a program that uses it (skype), and the icon shows up correctly. So I ran D-Feet and checked the RegisteredStatusNotifierItems property of the StatusNotifierWatcher (see attached screenshot). Can you use 'dbus-monitor' to display all messages sent by DBus, so that we can see what Unity StatusNotifierWatcher asks to the Gambas program after it has registered? Regards, Here you go. -- Adrien Prokopowicz dbus-watch.log Description: Binary data -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New gb.form.statusicon component
Le Tue, 30 Jun 2015 01:11:29 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 30/06/2015 01:08, Adrien Prokopowicz a écrit : Le Mon, 29 Jun 2015 04:38:41 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 29/06/2015 00:33, Adrien Prokopowicz a écrit : I just made a VM with Ubuntu 15.04 and Unity to test that out, but I can't get it to work. The program runs, but no icon shows up. There are quite a few warnings (see attached), but I get these as well on Plasma 5, and everything works there. I made some more tests, I installed sni-qt and a program that uses it (skype), and the icon shows up correctly. So I ran D-Feet and checked the RegisteredStatusNotifierItems property of the StatusNotifierWatcher (see attached screenshot). Can you use 'dbus-monitor' to display all messages sent by DBus, so that we can see what Unity StatusNotifierWatcher asks to the Gambas program after it has registered? Regards, Here you go. Can you try with the latest revision? The component is now named 'gb.dbus.trayicon'. Regards, Whoops, sorry, I completely missed that the component changed... Here's the log with the new one. -- Adrien Prokopowicz dbus-watch-2.log Description: Binary data -- Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New gb.form.statusicon component
Le Sun, 28 Jun 2015 13:13:09 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Hi, In the last revision of the development version, I have implemented a new component named 'gb.form.statusicon', that implements the new system tray protocol, based on DBus. At the moment, it is only tested with KDE 5, and uses the KDE way of implementing that protocol. I say that, because the only documentation I found (that link provided by Adrien) is different from their implementation! It is impossible for me to test it just now with other desktop using that protocol, because you can't anymore install Ubuntu's Unity desktop on Kubuntu, it's completely broken. So if anyone could test it on Unity, KDE4 or Gnome3 to tell me what happens, it would be cool. Just run the gb.form.statusicon project. It will create one StatusIcon, and show a form with a Show button that create another StatusIcon. Clicking on the icons in the system tray should print debugging information. Clicking with the right button on the Gambas StatusIcon should poup a menu. Thanks in advance. Regards, I just made a VM with Ubuntu 15.04 and Unity to test that out, but I can't get it to work. The program runs, but no icon shows up. There are quite a few warnings (see attached), but I get these as well on Plasma 5, and everything works there. I made some more tests, I installed sni-qt and a program that uses it (skype), and the icon shows up correctly. So I ran D-Feet and checked the RegisteredStatusNotifierItems property of the StatusNotifierWatcher (see attached screenshot). The Skype icon that shows up is the second one on my screenshot, the first one being the Gambas one. Both seem to be correctly registered on both desktops, but only the second one shows up on Unity. As you said, the link I provided is actually bad, as everyones seems to use the KDE spec, not the FreeDesktop spec (in quotes here, because the only spec that I managed to find isn't even on their site). Without proper specification (How can it be so hard to find ?!), I rely purely on the sni-qt plugin source code[0]. It's not the best, but it's the only thing that I found that works across desktops. [0] https://launchpad.net/sni-qt -- Adrien Prokopowicz dbus_appindicator.log Description: Binary data -- Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical virtual servers, alerts via email sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Bugs and feature requests
Le Thu, 25 Jun 2015 02:51:27 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 24/06/2015 21:06, Moviga Technologies a écrit : How about double-click? Half bad news: Double-click and mouse wheel events won't work on system that install the sni-qt package. That package transform Qt system tray icons from the old protocol to the new one, but only support click event. No idea how KDE tray icons support these events with the new protocol. But you are doom. You can just use the Click event if you want to be sure that your tray icon will work with all desktops... :-/ KDE icons directly implement the DBus SNI interface[0], which provides scroll wheel and middle click (but no double-click, I actually never saw a tray icon that uses it). It is therefore possible to write an SNI implementation using only gb.dbus. The only problem is that DbusObject cannot raise DBus events yet... [0] http://www.notmart.org/misc/statusnotifieritem/statusnotifieritem.html -- Adrien Prokopowicz -- Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical virtual servers, alerts via email sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas migration to github (or something else?)
Le Tue, 09 Jun 2015 15:54:57 +0200, Rolf-Werner Eilert eilert-sprac...@t-online.de a écrit: Am 09.06.2015 13:13, schrieb Benoît Minisini: Le 09/06/2015 08:25, Rolf-Werner Eilert a écrit : Am 09.06.2015 07:24, schrieb Adrien Prokopowicz: Le Tue, 09 Jun 2015 04:50:53 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 09/06/2015 04:21, Adrien Prokopowicz a écrit : Have you had any success importing the svn repository to Github ? Yes, but there is no mailing-list. I'm thinking about gna! now... Oh right, I forgot about that ... I made some research around gna!, and I have a few questions : - gna! seems to have originated from GNU Savannah, but I couldn't find the exact reasons of this separation, and both look pretty similar to me. So why not going to Savannah (which seems bigger and directly supported by the FSF and GNU) ? - Also, thinking about gna!/savannah reminded me of this old proposition[0] to become a GNU project. I don't remember you actually accepting or rejecting it, nor being rejected by the GNU project, so what happened ? Maybe they could help with this hosting problem ... [0] https://sourceforge.net/p/gambas/mailman/message/32334826/ As far as I remember, GNU's restrictions for the source code and rules for comments within the sources were too strict or badly adaptable to the Gambas way of doing. In the end, the idea seemed to fail at this point, as nobody was able or willing to rewrite the code to fulfill the requirements. But I haven't read the archives yet, so it's purely taken from my memory which has a high error rate ;) Regards Rolf No, it's just a matter of having the time of filling that: http://www.gnu.org/help/evaluation.html I didn't have the time since last year to deal with that... As for gna!, according to Wikipedia, it is a fork of Savannah made by the creators of Savannah that wanted to keep their way of managing it by collaboration. Regards, Ah ok, I see. I read the GNU page, and the only thing that comes to my mind is about qt and maybe other parts which are not completely GNU compliant (GTK+ is, right?). Would that be a problem? On the one hand, being part of GNU seems to be a means of becoming more popular. On the other hand, GNU is a world of its own, so it might mean to be part of a special biotope, bound in a microcosmos, and hopefully not a parallel universe ;) But my knowledge about these things is far from being concise, so just take me too seriously here. I would just be sad if one day I had to read we cannot do this or that thing because we're part of GNU and it's policy here Rolf From what I've seen, the only restriction for GNU projects' dependencies is to not use or promote non-free projects. I am not aware of any gambas component that use non-free libraries, so it is good on that side. This also seems to be the only restrictive policy for GNU projects, so I'm not too worried about that. But maybe (probably) I overlooked something. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas migration to github (or something else?)
Le Sat, 30 May 2015 21:55:04 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 30/05/2015 21:42, Adrien Prokopowicz a écrit : Le Sat, 30 May 2015 20:23:17 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Hi, I'm currently testing the SVN import feature of github for Gambas. The plan is to migrate from subversion to something else, that else having to provide git (or svn) and a bug tracker. The main reason is the Gimp sourceforge case. If anyone has a problem against using git instead of subversion, please tell. I don't know how to use git yes, and I think it will be better and faster. I don't know if I can import Google issues into github with the Google code export, I will check. And at the moment, GitHub tells me that 87% of the repository is imported, while sending me a mail telling that the import has failed at the same time... Weird! Regards, I have used Github (and therefore Git) for both school and personal projects for quite some time, so personally I have no problem with Gambas switching to it. However, Github does not provide website hosting nor mailing-list features, so will these stay on SourceForge ? Also, I haven't found any Gambas organization, do you plan to make one before importing the repository ? Regards, I just created a personal account to check svn import. Have you had any success importing the svn repository to Github ? -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas migration to github (or something else?)
Le Tue, 09 Jun 2015 04:50:53 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 09/06/2015 04:21, Adrien Prokopowicz a écrit : Le Sat, 30 May 2015 21:55:04 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 30/05/2015 21:42, Adrien Prokopowicz a écrit : Le Sat, 30 May 2015 20:23:17 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Hi, I'm currently testing the SVN import feature of github for Gambas. The plan is to migrate from subversion to something else, that else having to provide git (or svn) and a bug tracker. The main reason is the Gimp sourceforge case. If anyone has a problem against using git instead of subversion, please tell. I don't know how to use git yes, and I think it will be better and faster. I don't know if I can import Google issues into github with the Google code export, I will check. And at the moment, GitHub tells me that 87% of the repository is imported, while sending me a mail telling that the import has failed at the same time... Weird! Regards, I have used Github (and therefore Git) for both school and personal projects for quite some time, so personally I have no problem with Gambas switching to it. However, Github does not provide website hosting nor mailing-list features, so will these stay on SourceForge ? Also, I haven't found any Gambas organization, do you plan to make one before importing the repository ? Regards, I just created a personal account to check svn import. Have you had any success importing the svn repository to Github ? Yes, but there is no mailing-list. I'm thinking about gna! now... Oh right, I forgot about that ... I made some research around gna!, and I have a few questions : - gna! seems to have originated from GNU Savannah, but I couldn't find the exact reasons of this separation, and both look pretty similar to me. So why not going to Savannah (which seems bigger and directly supported by the FSF and GNU) ? - Also, thinking about gna!/savannah reminded me of this old proposition[0] to become a GNU project. I don't remember you actually accepting or rejecting it, nor being rejected by the GNU project, so what happened ? Maybe they could help with this hosting problem ... [0] https://sourceforge.net/p/gambas/mailman/message/32334826/ -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas migration to github (or something else?)
Le Sat, 30 May 2015 20:23:17 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Hi, I'm currently testing the SVN import feature of github for Gambas. The plan is to migrate from subversion to something else, that else having to provide git (or svn) and a bug tracker. The main reason is the Gimp sourceforge case. If anyone has a problem against using git instead of subversion, please tell. I don't know how to use git yes, and I think it will be better and faster. I don't know if I can import Google issues into github with the Google code export, I will check. And at the moment, GitHub tells me that 87% of the repository is imported, while sending me a mail telling that the import has failed at the same time... Weird! Regards, I have used Github (and therefore Git) for both school and personal projects for quite some time, so personally I have no problem with Gambas switching to it. However, Github does not provide website hosting nor mailing-list features, so will these stay on SourceForge ? Also, I haven't found any Gambas organization, do you plan to make one before importing the repository ? Regards, -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] TextEditor crashes the IDE in rev. 7095
Le Thu, 28 May 2015 22:47:29 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 28/05/2015 22:37, Adrien Prokopowicz a écrit : Hello Benoît, Since revision #7095, opening a project in the IDE makes it crash, seemingly because of the new TextEditor. Here is the full output of the IDE : [adrien@adrien-laptop gambas3]$ gambas3 QPainter::end: Painter ended with 2 saved states QWidget::repaint: Recursive repaint detected QPainter::end: Painter ended with 2 saved states QWidget::repaint: Recursive repaint detected TextEditor.DrawLine.501: #6: Type mismatch: wanted CLineInfo, got CLineInfo instead ScrollArea.DrawingArea_Draw.433 Because the error message does not make much sense to me, I tried a bunch of generic solutions, including : - Reinstalling gambas completely (make uninstall make install); - Checking out a fresh new SVN tree, and compiling and installing from it; - Reverting to a few revisions between #7102 and #7095; - Rebooting. Unfortunately, none of these actually worked, I keep getting the same error message again and again. Do you have any ideas ? (System information attached) Regards, Does valgrind tell you anything strange? Besides some usual Qt errors at startup, nothing pops out when the IDE crashes. (See attached). -- Adrien Prokopowicz valgrind.out Description: Binary data -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] TextEditor crashes the IDE in rev. 7095
Hello Benoît, Since revision #7095, opening a project in the IDE makes it crash, seemingly because of the new TextEditor. Here is the full output of the IDE : [adrien@adrien-laptop gambas3]$ gambas3 QPainter::end: Painter ended with 2 saved states QWidget::repaint: Recursive repaint detected QPainter::end: Painter ended with 2 saved states QWidget::repaint: Recursive repaint detected TextEditor.DrawLine.501: #6: Type mismatch: wanted CLineInfo, got CLineInfo instead ScrollArea.DrawingArea_Draw.433 Because the error message does not make much sense to me, I tried a bunch of generic solutions, including : - Reinstalling gambas completely (make uninstall make install); - Checking out a fresh new SVN tree, and compiling and installing from it; - Reverting to a few revisions between #7102 and #7095; - Rebooting. Unfortunately, none of these actually worked, I keep getting the same error message again and again. Do you have any ideas ? (System information attached) Regards, -- Adrien Prokopowicz[System] Gambas=3.7.90 OperatingSystem=Linux Kernel=4.0.4-2-ARCH Architecture=x86_64 Distribution=Arch Linux Desktop=KDE5 Theme=Breeze Language=fr_FR.UTF-8 Memory=7902M [Libraries] Cairo=libcairo.so.2.11400.2 Curl=libcurl.so.4.2.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.11 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.405.0 GTK+3=libgtk-3.so.0.1600.3 GTK+=libgtk-x11-2.0.so.0.2400.28 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.51.0.0 Qt4=libQtCore.so.4.8.6 Qt5=libQt5Core.so.5.4.1 SDL=libSDL-1.2.so.0.11.4-- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] TextEditor crashes the IDE in rev. 7095
Le Thu, 28 May 2015 23:43:04 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 28/05/2015 23:38, Adrien Prokopowicz a écrit : Does valgrind tell you anything strange? Besides some usual Qt errors at startup, nothing pops out when the IDE crashes. (See attached). I have the same Qt5 WebKit messages, but not the ones on the font. I've had them for quite a while now, they show up when I use valgrind on any Qt program (using gambas or not), so I assumed it was a Qt or freetype bug (or one of them does some dirty stuff that valgrind doesn't like). Nothing seems to crash, so I consider them as normal. I have freetype 16.1.10 installed on my system, if that may help. -- Adrien Prokopowicz -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Qt5] Window flags are not properly handled
Hello Benoît, As the title suggests, when setting the window flags of a form, these do not seem to properly apply when running. However, these work perfectly using Qt4. I tested a few, including Border, SkipTaskbar, Stacking, Sticky and TakeFocus. None of these work, using Qt 5.4.1 and latest revision (7090). See the attached project. Regards, -- Adrien Prokopowicz WindowProperties-0.0.1.tar.gz Description: GNU Zip compressed data -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.media : receiving GStreamer element messages
Le Thu, 14 May 2015 14:45:25 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 14/05/2015 05:01, Adrien Prokopowicz a écrit : I like the idea, the only problem is that there already is a message event that handles error/warning/info messages, so we'll have to find another name, I guess. If I don't stumble upon any other incompatibility problem, I should be able to commit that tomorrow. Regards, Oops, my bad... Well, at the moment I suggest Event as event name, I didn't find ayhting better. I should have think before chosing Message for the name of the other event! Done in revision #7082. I used Event for the event name as you suggested, I hadn't found any better name myself (I had RawMessage in mind, but meh). I put all of the GStreamer constants in the MediaMessage class, except for the ones that are only used internally by GStreamer, depreceated, or implemented in an earlier version than 1.0 (according to the GStreamer docs). I put the message's name in the MediaMessage object rather than in the event's parameters, I think it is more fitting now that the object holds the message itself rather than just the data. I also added a few convenience methods for retrieving the data, such as _next, Count, and Key. Maybe I will also add a method to export the data directly to a collection, as the MediaMessage object itself is short-lived. -- Adrien Prokopowicz -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gb.media : receiving GStreamer element messages
Hello everyone, So I wanted to play a bit with the spectrum GStreamer element. After reading the documentation, I noticed that it used element messages to send the spectrum data to the application, but gb.media does not have an interface to catch these. I made a quick and dirty patch at first, but I think that after some cleanup it would be nice to share. So here it is (see the attached patch). (I named the data class MediaData here, but I think there might be a better name for it.) In order to see it in action, I made a small application that shows the spectrum of an audio file while playing it. It also tweaks the data to look nicer on the visualizer (basically changing the frequency scale to a logarithmic one, and smoothing the result), but you can disable it in the configuration menu if you want. The app itself is completely useless, but I find it quite fun to watch. However, processing and rendering the data takes a significant amount of power, so it might lag if you have a small CPU. If it lags too much for you, you can lower some rates in the SpectrumPlayer class. What do you think ? Regards, -- Adrien Prokopowicz AudioSpectrum-1.0.tar.gz Description: GNU Zip compressed data gb.media_src.diff.gz Description: GNU Zip compressed data -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.media : receiving GStreamer element messages
Le Thu, 14 May 2015 00:07:48 +0200, Benoît Minisini gam...@users.sourceforge.net a écrit: Le 11/05/2015 02:52, Adrien Prokopowicz a écrit : Hello everyone, So I wanted to play a bit with the spectrum GStreamer element. After reading the documentation, I noticed that it used element messages to send the spectrum data to the application, but gb.media does not have an interface to catch these. I made a quick and dirty patch at first, but I think that after some cleanup it would be nice to share. So here it is (see the attached patch). (I named the data class MediaData here, but I think there might be a better name for it.) In order to see it in action, I made a small application that shows the spectrum of an audio file while playing it. It also tweaks the data to look nicer on the visualizer (basically changing the frequency scale to a logarithmic one, and smoothing the result), but you can disable it in the configuration menu if you want. The app itself is completely useless, but I find it quite fun to watch. However, processing and rendering the data takes a significant amount of power, so it might lag if you have a small CPU. If it lags too much for you, you can lower some rates in the SpectrumPlayer class. What do you think ? Regards, Cool. Can you change a bit your implementation so that is it more generic? The idea is replacing the Data event and the MediaData object by a Message event and a MediaMessage object. Instead of testing GST_MESSAGE_ELEMENT, you check before the switch that the Message event is implemented (with GB.CanRaise), and then you send the event handler a newly create MediaMessage object. The MediaMessage object is exactly like your MediaData object, except that you can add the Type property for the message type, and constants in the MediaMessage class (or in the Media class) for each message type. And in the future we'll be able to add other methods if needed. If can you do the change, just commit it directly. Easier for me to check that way! Regards, I like the idea, the only problem is that there already is a message event that handles error/warning/info messages, so we'll have to find another name, I guess. If I don't stumble upon any other incompatibility problem, I should be able to commit that tomorrow. Regards, -- Adrien Prokopowicz -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.xml feature request
Le Sun, 05 Apr 2015 04:58:05 +0200, adamn...@gmail.com adamn...@gmail.com a écrit: @Adrien Prokopowicz ? I ask for an enhancement to XMLNode (and descendants). Currently the TextContent property returns the concatenated text of the currenode and all child nodes thereof. What I want to get is the text of the current node only, ignoring any child nodes. Dim sText as String Dim hElt as XMLElement ' = some node sText = hElt.GetLocalTextContent() i.e. a new method to return just the local node text. I think this requires modifying the serializer class GBGetXMLTextContent() method to avoid descending in to the child nodes but it is far beyond my C++ abilities and the attempts I made are too embarrassing to reveal. :-( tia bruce XML elements do not actually have text. All they have are child nodes, that can be XML text nodes (represented by the XmlTextNode class). Let's say you have the following XML structure : pHello emworld/em ! :-)/p |^ | ^ | ^ | || | XmlText | | | | XmlText|=XmlElement=| XmlText | | | |= XmlElement ==| (XmlText should be XmlTextNode, but it doesn't fit on the diagram) By definition (according to the W3C), the TextContent property of an XML element contains the text content of all the child nodes (and therefore all descendants if some child nodes are elements). If I understood correctly, you would like to only retreive the text Hello ! :-) in the case of the above structure. What you should do is iterating over the element's nodes, and retreiving only the text content of the XmlTextNodes, which is easily feasible in pure Gambas, like so : Dim hElement As XmlElement '= some element Dim hNode As XmlNode Dim sText As String For Each hNode In hElement.ChildNodes If hNode Is XmlTextNode Then sText = hNode.TextContent Next Print sText 'Prints : Hello ! :-) Regards, -- Adrien Prokopowicz -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Try not catching XmlDocument Error
Le Fri, 05 Dec 2014 11:43:04 +0100, Lewis Balentine le...@keywild.com a écrit: The problem is that the .xml file in question is malformed. It happens to have some lines after the end of the root element end tag. I was trying to add code to handle the exception however Gambas terminates before entering the If Error code. This behavior is consistent. Error message: terminate called after throwing an instance of 'XMLParseException*' Begin Sample code:--- Private Sub ProcessOneTitanFile(TitanFileName As String) Dim TitanXML As New XmlDocument Print TitanFileName' needed to find offending file. Try TitanXML.Open(TitanFileName) If Error Then Print *** FATAL ERROR *** SUB ProcessOneTitanFile. Print *** FATAL ERROR *** trying to open XML file. Quit Endif ' other code follows End End Sample code:--- regards, Lewis Balentine [...] Hello Lewis, Revision #6711 should fix this problem. Can you confirm ? Regards, -- Adrien Prokopowicz -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 checking for well-formed and valid XML
Le Sat, 26 Jul 2014 12:37:40 +0200, Charlie Reinl karl.re...@fen-net.de a écrit: Salut Adrien, I didn't find anything about xml-error and/or well-formed and valid XML. Found that problem after a bad xml usage. I copied a path at the end of the file, and saved and forgot. Now, I still can load it with Xml.FromString(File.Load(my.xml)), but next line on XSLT.Transform(Xml, Xsl) I get a #11 . This is the output : Entity: line 19: parser error : Extra content at the end of the document file://~/DBReport3/Reports/Bank/Test.xml ^ Hi Charlie, Could you send me a project with the XML and XSLT files, so I can see what is going on ? Regards, -- Adrien Prokopowicz -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Getting the un-specialed XMLElement.TextContent string
Le Tue, 17 Jun 2014 01:37:49 +0200, B Bruen bbr...@paddys-hill.net a écrit: (I'm sure I've done this before, but I can't find my prior code nor can I find it in either of the help sites.) I just want to set a string variable to the text content of an element. I am almost certain there was a way to have it automatically convert all the special characters, like nbsp, lt, etc etc to their normal representation. Is there such a function, or was I just dreaming? tia Bruce (Sorry about the late answer, I was quite busy these last few months ...) The XmlNode.TextContent property is actually what you're looking for : it defines the node's text content without these entities. For example, this little code : Dim doc As New XmlDocument doc.FromString(xmlFish amp; chips/xml) 'This can be doc.Open(), doc.Content = ... or whatever Print doc.ToString() Print doc.Root.TextContent ... will output this : ?xml version=1.0 encoding=UTF-8?xmlFish amp; chips/xml Fish chips Moreover, you have the static couple of methods XmlNode.Serialize() and XmlNode.Deserialize() that allow you to convert strings back and forth between the with entities and without entities representations. Regards, -- Adrien Prokopowicz -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.xml: Leading and trailing spaces missing from TextContent
Hi Tobias, That was actually a bug, and is now fixed in revision #6197. Regards, -- Adrien Prokopowicz Le Mon, 10 Mar 2014 17:54:57 +0100, Tobias Boege tabo...@gmail.com a écrit: Hi, I'm writing on behalf of a German Gambas user and I'm just giving his words without really knowing what I'm talking about, sorry :-) His problem is: apparently, XmlElement.TextContent is Trim$()'d away white- space on both sides of the string. Is that expected? (IMHO, it shouldn't or is there any standard saying otherwise?) I translated the demonstration project (not the project name, though) into English, so don't worry. Regards, Tobi -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gb.xml unSerialize
I just added the new static method XMLNode.Deserialize() in revision #5906 for this purpose. For example, Print XMLNode.Deserialize(Select * From mytable Where id lt; 10) Will print : Select * From mytable Where id 10 Caveat : If you use the FromText() method, you don't actually need to put your text in any element. Text nodes are nodes too. :) Just be careful not to give an empty string, otherwise FromText() will give you back an empty array, and accessing myNoddies[0] will raise an Out of bounds error ! Fabien : the short way of doing this would actually be : Print XMLElement.FromText(text)[0].TextContent (again, while ensuring that the given text is not empty). FromText() returns an array of nodes. :) Regards, -- Adrien Prokopowicz Le Sat, 19 Oct 2013 11:45:03 +0200, Fabien Bodard gambas...@gmail.com a écrit: Le 19 oct. 2013 11:23, Caveat gam...@caveat.demon.co.uk a écrit : Just use FromText... Dim myNoddies As XMLNode[] Dim aNode As XMLNode myNoddies = XMLElement.FromText(SQLSelect * From table1 where abc lt; 123/SQL) Print myNoddies.Count aNode = myNoddies[0] Print aNode.TextContent Returns: 1 Select * From table1 where abc 123 Well Print xmlelement.fromtext(text).content Kind regards, Caveat On 19/10/13 11:09, Bruce wrote: What is the opposite of XMLElement.Serialize(text as String)? ( I want my SQL text back as ... WHERE rdatecurrent_date... instead of ... WHERE rdatelt;current_date...) tia Bruce -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60135031iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user