Re: [Gambas-user] Key.Enter and Key.Return
Hi Bruce: What is the difference here? Every keyboard I have has an Enter key which apparently is a Key.Return, so what is Key.Enter? Does it depend on some particular keyboard? One is the key right near the character keys and the other is the (enter) key at the number pad Hope that helps. Rolf signature.asc Description: OpenPGP digital signature -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Empty PDF problem - maybe Cairo too slow?
Hi Rolf-Werner When the whole thing runs from cron, it will deliver 0 Byte PDFs, but the originals on the system are fine (the copies remain in the directory). The mailing system does not see any error. Problems with cron usually result from missing pathes. Cron does not starts a shell with its enviroment. So you have to use absolut paths to your programm(s) and perhap setup environment variable if needed. Hope thät helps Rolf signature.asc Description: OpenPGP digital signature -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Release of Gambas 3.4
Hi Benoît This new release fixes about 240 bugs and adds about 270 new features. * Better subversion support in the IDE. is there a description for the use of subversion from within the IDE? I didn't find any only for the use of subversion for extracting and compiling the development versions. Thanks for your hints/help Rolf signature.asc Description: This is a digitally signed message part. -- Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Problem with BLOB with postgresql 9.1
Hi, I try to build a program which saves a lot of binary data in a postgresql database. All the data will be written and quoted correctly by the db.update method of gambas. Of course I can retriev the data, but there is no function, which decode the qouted data. So is there a (hidden?) function or another trick to convert the given hex encoded string to original binary data. My system is - Ubuntu 10.04 with Gambas 3.? i.e. Revision 5181. - Debian wheezy in a virtual machine with postgresql 9.1 BTW: The exmple PictureDatabase didn't work either with PostgreSQL 9.1. Fine regards Rolf -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Another error with rev. 5177
Hi Benoît, Can you try with revision #5181? It should fix the gb.desktop compilation problem. Yes everything seems to be fine, even the graphics in the top left corner now looks nice. Many, many thanks Rolf -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Using Gambas for Apache cgi
Hi Rolf-Werner, But Apache has some problem with it. I configured the cgi-bin as above (actually not me, but it's the default). Apache looks for it and seemingly it DOES find it but it complaints with a 500 Internal Error page and in /var/log/apache2/suexec.log we can read something about gid/uid mismatch. All files must be accessible by the user/group the apache is running with. On Debian systems it is www-data:www-data. Make a chown on your files. Never give the files executable right for everybody. Just tried it this way, but it doesn't help. Strange... You mean the .gambas files, right? Not env, gbr, gbx etc.? There is a test/test.cgi in the cgi-bin, it's not www-data:www-data and it runs fine. The .gambas file does run when started from a terminal, so the Gambas side seems to work fine. Apache seems to find the .gambas file and start it. It all boils down to some misunderstanding of Apache with how to handle it. Try to login as root and than do a su - apache or to the system account the apache runs under (perhaps you can find the account in top or with ps). Then start you program in the terminal - you now have all the rights an apache server has - and see what happens. Helpfull may be a tail -f on the apache error file, to see what goes wrong, when you do some thing. This is a method to check if you have problems with user/group rights, as the error message you posted suggests. Grüße Rolf -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Another error with rev. 5177
Hi Benoit, when I try to open a project from the left panel of the IDE, I get the error this application has raised an unexpected error and must abort. [11] Unknown symbol 'Path' in class 'Desktop'. CBookmarkList.Load.48 This error seams also be new. Fine regards Rolf signature.asc Description: This is a digitally signed message part. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Using Gambas for Apache cgi
Hi Rolf-Werner But Apache has some problem with it. I configured the cgi-bin as above (actually not me, but it's the default). Apache looks for it and seemingly it DOES find it but it complaints with a 500 Internal Error page and in /var/log/apache2/suexec.log we can read something about gid/uid mismatch. All files must be accessible by the user/group the apache is running with. On Debian systems it is www-data:www-data. Make a chown on your files. Never give the files executable right for everybody. Gruß Rolf -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem with rev. 5144
Hi Benoît It is better with revision #5146? I checked out newest Version (5151) this morning and the problem has gone. Thank you Rolf -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sqlite database inside an executable
Hi Bruce, what about to cat the database-file at the end of an executable and strip it later (perhaps with cut) and store it, where you like. Another methode could be, study the C-code of the sqlite-libs and see, if you can open the database with an offset - i.e. the data will begin at the end of your executable. Hope that gives you another idea. Greetings Rolf -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Probem analysing Desktop path
Hi Willy If Exist(Use.Home /Desktop) then sPath = User.Home /Desktop/SystemInfo.txt Endif Now it turns out that this only works on systems with English language. Other systems translate Desktop into local language!! Like for Dutch it will be Bureaublad instead of Desktop As it is impossible for me to test for 150 different ways Desktop is written in other languages, I was wondering is there a way around this. Does the system somewhere have the original English name for Desktop that I can test against? Or is there any other way of solving this problem? In my KDE desktop directory I found a file named .directory, which has all national names of the (current desktop) directory. So you have to search all subdirectories of home/... and look if there is a file name .directory and if this file have an entry of desktop. Than you found it. Hope that helps Rolf -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Start a form minized
Hi M. Cs.: Try to add at the Public Sub Form_Open() Me.Minimized=True . End Because this didn't work, I asked. Any other ideas? Thanks Rolf signature.asc Description: This is a digitally signed message part. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Start a form minized
Hi everybody out there is it possible to start a form minimized or invisible. I use a TrayIcon to terminate the program and program should stay in the background and wait for incoming calls. Then a second from will be shown with the connection data but the main form - which only has a close button - should not be shown. Any help? Thanks Rolf signature.asc Description: This is a digitally signed message part. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to convert unix timestamp into gambas date and time
Hi another Rolf is there a function which allows to convert an unix timestamp into the appropriated date/time in Gambas3? If, how is it called and how to use. Take a look at this one: http://gambasdoc.org/help/lang/stat?v3 file.stat should deliver a file date. Or did I get you wrong? For my problem, you get wrong. The unix timestamp is not only the time of a file. It is the time in seconds since the 1. Jan. 1970. Even the system clock only counts the seconds. My problem is, that a network application send a timestamp as a string. I have to convert this string into Date and Time - which is usually done in C or PHP or... by a function of a system library (which of course know leap years). And some times I would like to generate a timestamp as well, for example to send it to a database. Another helper out there? Rolf -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to convert unix timestamp into gambas date and time
Hi Rolf, hi Ron. is there a function which allows to convert an unix timestamp into the appropriated date/time in Gambas3? If, how is it called and how to use. Take a look at this one: http://gambasdoc.org/help/lang/stat?v3 file.stat should deliver a file date. Or did I get you wrong? For my problem, you get wrong. The unix timestamp is not only the time of a file. It is the time in seconds since the 1. Jan. 1970. Even the system clock only counts the seconds. My problem is, that a network application send a timestamp as a string. I have to convert this string into Date and Time - which is usually done in C or PHP or... by a function of a system library (which of course know leap years). And some times I would like to generate a timestamp as well, for example to send it to a database. Another helper out there? May I nevertheless? :-) Ok, I tried around a bit, take a look: PUBLIC SUB Button1_Click() DIM t$ AS String t$ = CStr(CFloat(Now)) Message.Info(t$) t$ = CDate(CFloat(t$)) Message.Info(t$) END Does it help? Not realy, than Now is a float value in Exel-Stil i.e. Days (since when - don't hope since 1.1.1900) and seconds since midnight, but as I wrote Unix timestamp is an integer i.e. has only seconds. @Ron. Your Module is excellent, but I can't belief, that a programming language for the UNIX-environment isn't able to handle timestamps only after reinventig the wheel. I think, we shoud ask Benoit why he didn't implement such a function or where he hide the information. Rolf. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to convert unix timestamp into gambas date and time
Hello Benoît Unix time stamp is a number of seconds since 1/1/1970. So to convert a Gambas date to Unix timestamp: Print DateDiff(CDate(1/1/1970), Now, gb.Second) And to convert an Unix timestamp to Gambas date: Print DateAdd(CDate(1/1/1970), TimeStamp, gb.Second) After swapping the last two arguments of DateAdd it works as expected. Perhaps this could be a note in the documentation of Gambas. Many Thanks Rolf -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to convert unix timestamp into gambas date and time
Hi everybody out there is there a function which allows to convert an unix timestamp into the appropriated date/time in Gambas3? If, how is it called and how to use. Many thanks Rolf -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Problem with Rev. 4430
Hi Benoit, when I compile Gambas3 from current trunk (i.e. Rev. 4430) I get an error say, that there is no make all in gb.gsl. When I look into this directory no Makefile was build by configure. Disable the gsl package, Gambas is installable. reconf-all and configure didn't report any problems. Hope that helps to find the problem. Fine regards Rolf -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Compiling Gambas3 in Debian squeeze
Hi, I need some help to compile Gambas3 in Debian squeeze. The problem seems to be the compile environment especial the auto-tools. I installed from the debian repository: autoconf 2.67-2 automake1.9 libtool 2.2.6b-2 The reconf-all-command generates the follwoing few lines before it exits. libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Remember to add `LT_INIT' to configure.ac. libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install aclocal: unrecognized option -- `--install' Try `aclocal --help' for more information. autoreconf: aclocal failed with exit status: 1 What to do? Please help. Fine regards Rolf -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Compiling Gambas3 in Debian squeeze
Hello Benoît, thanks for your fast answer. automake seems too old (I have 1.11 version there). after install automake 1.11 and running reconf-all I get message: ... autoreconf: running: aclocal -I m4 --install autoreconf: running: libtoolize --copy autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force configure.ac:6: installing `./config.guess' configure.ac:6: installing `./config.sub' configure.ac:6: installing `./install-sh' configure.ac:8: required file `./ltmain.sh' not found autoreconf: automake failed with exit status: 1 Please help again. Fine regards Rolf -- Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free Love Thy Logs t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Seg fault, rev 3903, odbc db selecting... how to...
Caveat: ODBC is not the problem. The problem is an odbc driver for mdb-files The .mdb file has no password set on it. As far as I could see there is a very limited version of the driver available. Do you have libmdbodbc installed? Can you access your mdb file with the MDB File Viewer i.e. have you install the mdbtools (incl. mdbtools-gmdb - which has the MDB-File-Viewer). HTH Rolf -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Calculator
Hi Richard I wondered if anyone on the list would have the code/form for a simple calculator in gambas they would be willing to share. If you can live with german variable names and comments, here is a runnable version (but it is in Gambas 2.x) Fine regards Rolf calculator.tgz Description: GNU Unix tar archive -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas Calculator
Hi Richard the Class-File was broken, so I attache a new file with the class and form file intact but still with german variable names and comments Fine regards Rolf calc2.tgz Description: GNU Unix tar archive -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Making a web app
Hi Rolf-Werner Now, to make things somewhat clearer, let me add this: During the last two hours or so I set up a commandline application in Gambas doing this: PUBLIC SUB Main() PRINT !DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.01 Transitional//EN\ Here you have to print an empty line - its part of the HTML-Standard! PRINT html PRINT head PRINT title Testseite /title PRINT /head PRINT body bgcolor=\#E0E0E0\ PRINT h1Testeingabe/h1 PRINT /body PRINT /html END Premature end of script headers: (and the name of the executable) Error comes form bad formated HTM-Output. Gruß Rolf signature.asc Description: This is a digitally signed message part. -- Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Problem with PostgrSQL, Gambas 2.7 and 64-Bit Linux
Hi, as the subject says, I have problems with Gambas2 (version 2.7 - from the Debian repository) on a 64-Bit Linux (Debian Lenny) and postgreSQL 8.4 database. It seems, that a connection is possible, but no table is found in the given database by any query (with db.exec). Did someone else has had a simular problem? Fine regards Rolf signature.asc Description: This is a digitally signed message part. -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Spacing property.
Am Sonntag, 19. September 2010 schrieb Jean-pierre Lainé: Pour Benoit Minisini, ou le modérateur du groupe. Bonjour à tous, je suis en train de me lancer en Gambas (2). L'OS est UBUNTU. Mais je me suis bêtement inscrit sur une liste anglo saxonne et my englisch is very très bad!. Pour autant et en quelques mots, je souhaite réaliser un sismographe sous une plateforme linuxienne. 1 je ne connais rien de Linux, et comme le saut à l'élastique, je me lance dans le vide. 2 mon anglais est proche de zéro, et tend vers l'infiniment petit ! 3 je suis fatigué de devoir adapter et réécrire mes progs, (vb2, 3,4 5,...n versions dans l'avenir !) et de me taper (deme faire taper mon pognon) par les OS qui montent, qui montent ..98, 2000, x, vist et les sept péchés capitaux. 4 je ne suis qu'un amateur et un autodidacte, et il me faut du temps pour m'adapter. Voilà, j'espère que le modérateur ne m'en voudra pas. Comment faire pour se rayer de cette liste, j'ai un flot continu de courriels , tous en anglais! Bien cordialement, un papy qui rentre dans la classe des jeunes pingouins. Amitiés Jean-Pierre Mein Deutsch ist auch bedeuten besser als mein englisch und ich muss mich auch damit abmühen. Also bitte auf englisch schreiben. Rolf signature.asc Description: This is a digitally signed message part. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Suggestions 4 new keywords
Hi Fabien Bodard: la j'ai mal a la tête maintenant ... on véra ça a la prochiane version ... to have english version ... try google ;) What google translate makes no sense for me neither in english nor in german! Rolf signature.asc Description: This is a digitally signed message part. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pipe doesn't receive contents
Hello Rolf-Werner DIM hFile AS File DIM sLine AS String hFile = PIPE /tmp/FIFO1 FOR INPUT PRINT Now let's start: WHILE NOT Eof(hFile) LINE INPUT #hFile, sLine PRINT sLine WEND PRINT That's it. You can't wait until EOF on a named pipe! Also a 'tail' on a named pipe will never give you some data - but 'cat' do! Just read and find another mechanism to stop reading. Hope that helps Rolf signature.asc Description: This is a digitally signed message part. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pipe doesn't receive contents
Hi Doriano You can't wait until EOF on a named pipe! Also a 'tail' on a named pipe will never give you some data - but 'cat' do! Just read and find another mechanism to stop reading. I tried cat and tail on named fifo, and both work. You can start first either of the two sides, and they work. I did it with: mkfifo /tmp/fifo ls /tmp/fifo ls sends a termiated data stream! then, in another terminal: tail -3 /tmp/fifo Of course you can read it, because ls stops when the content is in the pipe. I also tried to start first the tail command, and then the cat ... See a server which sends data via named pipe, then you will recognice, that 'cat' can show the data while 'tail' waits for an end of file, which will only come when the server stops! Hope it becomes more clear. Rolf signature.asc Description: This is a digitally signed message part. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Too many open files error message
Hi Richard This routine is called by my program, consecutively a large number of times during an automated process: Public Sub Display_HTML(sHTML As String, wb As WebView, Optional prefix As String = html) Dim wFile As File Dim sFilename As String sFilename = Temp$(prefix) .html wfile = Open sFilename For Write Create Print #wfile, sHTML Close #wfile wb.url = sFilename End the temp file is opened-closed. Yet at a certain point gambas comes up with an error 24: too many opened files. Does this mean the temp-file quota has somehow been exceeded? The amount of file handles is (also) limited by the kernel. But - if you compile your own kernel, you can increase the number of files which can be open -or keep a more clean open/close strategie. Hope that helps Rolf signature.asc Description: This is a digitally signed message part. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sdl.sound and total length of a track
Hi Alessandro, Dimitris Anogiatis wrote: to get the length of an MP3 file (since gb.sdl.sound works primarily with mp3s) I would personally write an ID3Tag module to get the mp3's length and then load it through gb.sound.sdl afterward. or if you want you could also explore the option of using an external player for your program... The problem with mp3 is, that it can use different compression algorithms, which may compress the data dynamically i.e. depends on the pattern found in the sound. So it is difficult to calculate the length directly from the given file and that is the reason, why the length may be written in the ID3-Tag. So the tip Dimitris give, seem to be the best solution. HTH Rolf -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] menu button events Q
Hello Richard Regarding keeping bookmarks, is there an accepted place to put them?, or just a settings file? There are a lot of possibilities: 1. A file in the home directory - perhaps as xml-file 2. In a sqlite database as firefox do it, also as a file in the home directory 3. In a LDAP database, so it could be reached from different places HTH Rolf -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] need some helping hand for crypting
Hi Charlie no what I need is for gambas2, I have to store Passwords in an XML-file, what means plain-text readable. So I need a crypting/uncrypting logic . I put my PW TOPSECRET to store Print crypting(TOPSECRET) 2sgbtf and get it back by Print uncrypting(2sgbtf) TOPSECRET The uncrypted password is used for a database login. Check, if the database is able to handle md5-sum based passwords for login - PostgreSQL can, perhaps mySQL and other DBMS's too. Then you can use the md5 sum of the password written in you xml file directly for the login without decrypt. thanks, but that way, it is like an plain text password, ONE can login with. Not realy, because the given password will be converted to a md5-sum, which then is the md5 sum of a md5 sum - so login is not possible. So it is with PostgreSQL. By Rolf signature.asc Description: This is a digitally signed message part. -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] PictureDatabase with PostgreSQL
Hi Pino, I am trying to use the example PictureDatabase with PostgreSQL but I get the following error: Invalid byte sequence for encoding UTF-8 In Debian, the PostgreSQL database will created on install-time with the charset of the root, usually of the national language. I have had this problem as well. What I did was: as root of course - uninstall PostgreSQL - manually: unset LANGUAGE; unset LANG The environment varialbes will be setup correctly at the next login. - reinstall PostgrSQL. Now you can create Databases with PostgrSQL each in a different language, not only in utf-8. Hope this helps Rolf signature.asc Description: This is a digitally signed message part. -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] help with some simple parsing
Hi Richard In one of my hl7 messages in the Free Text segment under an actual pathology result, there is a list of sequential bood test results representing previous results of the same type - , separated by tabs which I need to display properly. as I've re-constructed the result as html, the tabs simply disappear in the result, so I've been looking for a solution, and to start I thought maybe I could split this up into lines and then later put it into a table embedded in the html to keep it aligned. Perhaps there is a simple way out, but this is what I've done so far. So I started with this: 1) Split this into lines Dim bits as string[] dim a_line as string bits = split(the_text_in_the_file,BR,, TRUE) for each a_line in bits print a_line next Problem with this is that the \t (I presume tab character) gets in the way, and it dosn't split properly with the results of the bits[] as shown in the picture. Interestingly an occasional letter is lost off the test names. I didn't find any \t-char in your file. But I think it is a table, where the first line hold the column headers and each line starts with a word. So I suggest, that you keep the newline - perhaps the char which you substitute with the br-Tag - as it is. Then compress all spaces to one space and substitute this to \t (i.e. tab-chars). A shell command like the follwoing one will do this: cat sample_text | tr -s ' ' | tr ' ' \t converted_text (Perhaps a gambas-guru can translate the line in a simple Gambas statement) Now you can split your converted_text in an array of lines. Use the first array entry for your the column headers of a listview (but split the line by the \t char) Do the same for all the other lines and you will get a nice table. Of course you can create a html-table as well, if you have your data in the suggested format. Hope that helps Rolf signature.asc Description: This is a digitally signed message part. -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Problem with gambas..
Hi Carlos I have a problem with a code on gambas.. I'm trying.. this code.. EXEC [rm, application.Path /imagenes/*.*] ... just I wanna erase the content of images folder. But I got an error.. on console... rm: can't erase «/home/carlosh/Prueba/imagenes/*.*»: File don't exists The exex comand runs without a shell and so there is no envrionment and rm will not be found in the local directory. Either you use rm with a full path or use the shell command. HTH Rolf signature.asc Description: This is a digitally signed message part. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas2 USB detect !!??
Am Samstag, 3. Januar 2009 schrieb Emil Tchekov: drive. I haven't hooked any USB drives up to my Ubuntu server since I upgraded so I don't know if every distro has logs that look like that, or just Mandriva. Rob Good idea - /var/log/messages should be present on every linux looking in there can provide interesting infos... (be base for usefull GUI apps). May be coupled with comparing current time / log time in order to look only for current events... The problem ist - as normal user you are not allowed to read it... You (or better the administrator) can create a named pipe (with mknod) and direct parts of the log infos additionally to this named pipe. So the syslog.conf needs to be edited and a line like kern.info | YourNamedPipe may be added, which say, the all the log messeages from the kernel shout additional go throug the named pipe. Of course the syslog-daemen needs to be restartet or instructed to reread its config file. Hope that helps Rolf signature.asc Description: This is a digitally signed message part. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas3 compile problem
Hi Joshua, Yes I know but DF shows its wasnt full It says here NO SPACE LEFT ON DEVICE !! your disk is full :-) Even if df says there is space left, you can run out of inodes, especially if you have a large amount of small files or, you use UNIONFS. Hope that helps (to understand) Rolf signature.asc Description: This is a digitally signed message part. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Q:how to save a file.png into Postgresql
Hello Richard Dies at the line containing 'Coct' with message: unknown identifier but I'm sure this way is good, as I can remember reading something about this in the postgres doc's but couldn't figure out how to do the substitution. OK, I thougt it is a Gambas converting function, but it isn't. It should convert a given number into an octal number, return the number as a string. So here it is: PRIVAT FUNCTION COct(num as Integer) as String DIM octnumber AS NEW Interger[] DIM octstring as String octnumber.Add(int(num / 64)) octnumber.Add(int((num MOD 64) / 8 )) octnumber.Add((num Mod 64) MOD 8) octstring = octnumber[0] octnumber[1] octnumber[2] RETURN octstring END Next step? Test it. Fine regards Rolf signature.asc Description: This is a digitally signed message part. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Q:how to save a file.png into Postgresql
Hi richard Public sub Save_Image(ImagePath as string) Dim img As Image Dim pictureData As String Dim sql As String img = Image.Load(ImagePath) ' Save temp image as png file tempFile = Temp() .png img.Save(tempFile) pictureData = File.Load(tempFile) 'reload as a string At this point the pictureData string seems to be ok. I Then tried writing to the database: sql = insert into temp_image(piccie) values($$ sql = sql pictureData $$) and got back this message: Query failed:ERROR: invalid byte sequence for encoding UTF8:0x89 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by client_encoding Hope you defined your database field as byta for blob. Then you have to mask out a lot of byte codes in your picture data. I did it like this: PUBLIC SUB SavePic_Click() DIM hFile AS Stream DIM buffer AS Byte DIM picText AS String OPEN NameOfPic FOR INPUT AS #hFile WHILE NOT Eof(hFile) READ #hFile, buffer, lof(hFile) IF buffer 32 OR buffer 126 THEN picText = picText Coct(buffer) ELSE SELECT buffer CASE 92' mask | char picText = picText 134 CASE 39' mask ' char picText = picText \\' DEFAULT picText = picText Chr$(buffer) END SELECT END IF WEND CLOSE hFile query = insert into table (picci) values (' picText ') END Hope that helps Fine regards Rolf signature.asc Description: This is a digitally signed message part. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Postgresql date question
Hi Richard Hi to postgres users of gambas. I'm passing some information to postges, which gets the data from date type eg date1 as date data2 as date (N the postgres database the default on the date field is null) my problem is that postgres baulks when Ive not put a date into one of the gambas date variables with the message: invalid syntax for type date '00:00:00' my sql is far more complex but reduced to the date part reads something like this insert into mytable (date1, date2) values ('01/01/2008','00:00:00') I wondered if anyone could volunteer a solution You can use an insert trigger, which checks, if date to be insertet is invalid and set a wanted default i.e. 1.1.1970 or what ever you like. So you will get always a valid date or you even can insert NULL if you insist on an empty date. HTH Rolf signature.asc Description: This is a digitally signed message part. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user