From kevinfishburne at ...1887... Sun May 1 02:39:45 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Apr 2011 20:39:45 -0400 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage Message-ID: <4DBCABD1.1070306@...1887...> It seems the destination width/height parameters have been removed from these two methods in a recent gb3 revision. Is there an alternate way to scale a subset of the source image to the target image? 90% of my code doesn't scale it at all but scaling is still necessary for some operations. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sun May 1 02:46:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 02:46:18 +0200 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <4DBCABD1.1070306@...1887...> References: <4DBCABD1.1070306@...1887...> Message-ID: <201105010246.18967.gambas@...1...> > It seems the destination width/height parameters have been removed from > these two methods in a recent gb3 revision. Is there an alternate way to > scale a subset of the source image to the target image? 90% of my code > doesn't scale it at all but scaling is still necessary for some operations. I screwed up. It was removed from gb.image.imlib, because gb.image cannot scale images. But gb.gtk and gb.qt4 know how to scale and paint at the same time. So I should have kept the gb.image.imlib feature, and tried to fix gb.image instead. I will find a solution... -- Beno?t Minisini From kevinfishburne at ...1887... Sun May 1 03:00:48 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Apr 2011 21:00:48 -0400 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <201105010246.18967.gambas@...1...> References: <4DBCABD1.1070306@...1887...> <201105010246.18967.gambas@...1...> Message-ID: <4DBCB0C0.60308@...1887...> On 04/30/2011 08:46 PM, Beno?t Minisini wrote: >> It seems the destination width/height parameters have been removed from >> these two methods in a recent gb3 revision. Is there an alternate way to >> scale a subset of the source image to the target image? 90% of my code >> doesn't scale it at all but scaling is still necessary for some operations. > > I screwed up. It was removed from gb.image.imlib, because gb.image cannot > scale images. But gb.gtk and gb.qt4 know how to scale and paint at the same > time. So I should have kept the gb.image.imlib feature, and tried to fix > gb.image instead. > > I will find a solution.. It's okay. I screw up about 50 times a day usually. :) I was in the process of converting my code to the new syntax and tried this instead so scaling would work: Old: belevation.PaintImage(dshading, 0, 0, tgsize * 128, tgsize * 128, Fix(cx) - tgoffset, Fix(cy) - tgoffset, tgsize, tgsize) New: belevation.PaintImage(dshading.Resize(tgsize * 128, tgsize * 128), 0, 0, Fix(cx) - tgoffset, Fix(cy) - tgoffset, tgsize, tgsize) While that doesn't throw an error, I can't tell if it's working because despite converting my code to remove the destination size parameters the graphics are totally f'cked up (attached). Crazy, no? Even with the mistake, should this be working or am I doing something wrong? And one final question, what was the revision number before that change? I have some new, unrelated code that I need to test. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: DarthNo.jpg Type: image/jpeg Size: 91593 bytes Desc: not available URL: From gambas at ...1... Sun May 1 03:05:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 03:05:56 +0200 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <4DBCB0C0.60308@...1887...> References: <4DBCABD1.1070306@...1887...> <201105010246.18967.gambas@...1...> <4DBCB0C0.60308@...1887...> Message-ID: <201105010305.56689.gambas@...1...> > On 04/30/2011 08:46 PM, Beno?t Minisini wrote: > >> It seems the destination width/height parameters have been removed from > >> these two methods in a recent gb3 revision. Is there an alternate way to > >> scale a subset of the source image to the target image? 90% of my code > >> doesn't scale it at all but scaling is still necessary for some > >> operations. > > > > I screwed up. It was removed from gb.image.imlib, because gb.image cannot > > scale images. But gb.gtk and gb.qt4 know how to scale and paint at the > > same time. So I should have kept the gb.image.imlib feature, and tried > > to fix gb.image instead. > > > > I will find a solution.. > > It's okay. I screw up about 50 times a day usually. :) > > I was in the process of converting my code to the new syntax and tried > this instead so scaling would work: > > Old: > > belevation.PaintImage(dshading, 0, 0, tgsize * 128, tgsize * 128, > Fix(cx) - tgoffset, Fix(cy) - tgoffset, tgsize, tgsize) > > New: > > belevation.PaintImage(dshading.Resize(tgsize * 128, tgsize * 128), 0, 0, > Fix(cx) - tgoffset, Fix(cy) - tgoffset, tgsize, tgsize) > > While that doesn't throw an error, I can't tell if it's working because > despite converting my code to remove the destination size parameters the > graphics are totally f'cked up (attached). Crazy, no? > > Even with the mistake, should this be working or am I doing something > wrong? And one final question, what was the revision number before that > change? I have some new, unrelated code that I need to test. I fixed Image.PaintImage() in gb.image.imlib, so your code should work again. Now let's try to fix gb.image... -- Beno?t Minisini From kevinfishburne at ...1887... Sun May 1 03:19:18 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Apr 2011 21:19:18 -0400 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <201105010305.56689.gambas@...1...> References: <4DBCABD1.1070306@...1887...> <201105010246.18967.gambas@...1...> <4DBCB0C0.60308@...1887...> <201105010305.56689.gambas@...1...> Message-ID: <4DBCB516.5060803@...1887...> On 04/30/2011 09:05 PM, Beno?t Minisini wrote: > > I fixed Image.PaintImage() in gb.image.imlib, so your code should work again. > > Now let's try to fix gb.image... Compiling now on a quad-core 3.5 GHz CPU overclocked to 4.1 GHz. Muwahahaaaaa! Will report results shortly. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Sun May 1 03:42:59 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Apr 2011 21:42:59 -0400 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <4DBCB516.5060803@...1887...> References: <4DBCABD1.1070306@...1887...> <201105010246.18967.gambas@...1...> <4DBCB0C0.60308@...1887...> <201105010305.56689.gambas@...1...> <4DBCB516.5060803@...1887...> Message-ID: <4DBCBAA3.7010002@...1887...> On 04/30/2011 09:19 PM, Kevin Fishburne wrote: > On 04/30/2011 09:05 PM, Beno?t Minisini wrote: >> >> I fixed Image.PaintImage() in gb.image.imlib, so your code should work again. >> >> Now let's try to fix gb.image... > > Compiling now on a quad-core 3.5 GHz CPU overclocked to 4.1 GHz. > Muwahahaaaaa! Will report results shortly. Using revision 3821 things are back to normal (18 FPS and all's well graphically). Thanks...your coding moves at the speed of lightning it seems. I could be wrong about this, but it looks like removing those two parameters actually increased the frame rate to over 30 FPS. Of course the FPS increase could have been the result of an error in the recent revision. If it wasn't, I wonder if the target dimension parameters, even if the image is not being scaled, slows the image blit. If that's the case, then embedding a Resize method in PaintImage, DrawImage and DrawAlpha may be the most efficient way to go. You can just manually add Resize when you need scaling or leave it out for a pixel-to-pixel transfer. Or the methods could be written to ignore the target dimension parameters if the source dimensions are the same, which would create the same efficiency as the manual use of Resize but transparent to the user. Something like: If TargetWidth = SourceWidth And TargetHeight = SourceHeight Then Do_Not_Use_Scaling_Blit_Algorithm Else Use_Scaling_Blit_Algorithm EndIf But in C. :) Some day I'm going to learn C, dammit. Everything I know tells me so. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sun May 1 03:55:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 03:55:51 +0200 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <4DBCBAA3.7010002@...1887...> References: <4DBCABD1.1070306@...1887...> <4DBCB516.5060803@...1887...> <4DBCBAA3.7010002@...1887...> Message-ID: <201105010355.51885.gambas@...1...> > On 04/30/2011 09:19 PM, Kevin Fishburne wrote: > > On 04/30/2011 09:05 PM, Beno?t Minisini wrote: > >> I fixed Image.PaintImage() in gb.image.imlib, so your code should work > >> again. > >> > >> Now let's try to fix gb.image... > > > > Compiling now on a quad-core 3.5 GHz CPU overclocked to 4.1 GHz. > > Muwahahaaaaa! Will report results shortly. > > Using revision 3821 things are back to normal (18 FPS and all's well > graphically). Thanks...your coding moves at the speed of lightning it > seems. > > I could be wrong about this, but it looks like removing those two > parameters actually increased the frame rate to over 30 FPS. Of course > the FPS increase could have been the result of an error in the recent > revision. If it wasn't, I wonder if the target dimension parameters, > even if the image is not being scaled, slows the image blit. If that's > the case, then embedding a Resize method in PaintImage, DrawImage and > DrawAlpha may be the most efficient way to go. You can just manually add > Resize when you need scaling or leave it out for a pixel-to-pixel > transfer. Or the methods could be written to ignore the target dimension > parameters if the source dimensions are the same, which would create the > same efficiency as the manual use of Resize but transparent to the user. > > Something like: > > If TargetWidth = SourceWidth And TargetHeight = SourceHeight Then > Do_Not_Use_Scaling_Blit_Algorithm > Else > Use_Scaling_Blit_Algorithm > EndIf > > But in C. :) Some day I'm going to learn C, dammit. Everything I know > tells me so. As you use gb.image.imlib, you are directly using the imlib painting function, that takes all the arguments as is and does its stuff. I would be surprised if that function didn't do the check. Before learning C, look at OpenGL to see how you can have a fast rotate and blit function. (But for DrawAlpha, I don't know if it possible to do it with OpenGL, I have no idea.) Regards, -- Beno?t Minisini From ian.roper at ...1974... Sun May 1 03:49:18 2011 From: ian.roper at ...1974... (Ian Roper) Date: Sun, 01 May 2011 09:49:18 +0800 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface - Unable to run ./reconf-all for a fresh SVN download In-Reply-To: References: <4DB30CD8.2070201@...626...> <201104232318.59139.gambas@...1...> Message-ID: <1304214558.2327.11.camel@...2583...> Greetings all, Menu Problem: ---------------------------------------- I have found the same issue with Ubuntu Natty - no menus displayed for Gambas 3. I did the online upgrade and was watching the process run and noticed that it started to touch Gambas files. I can't be 100% sure because the process was running very quickly but it seemed to select some of the QT Gambas components and "upgrade" with a quick display of "no longer required" - Again it was hard to be sure because it was running very quickly. The online upgrade failed ( a my computer problem ) but was able to get an unstable interface running by selecting "use previous version of Linux" from the selection menu. This allows me to check some things including Gambas 3 , which is where I discovered the missing menu for any apps that I had made. so rebuilt from a new ISO image. Installation problem: ---------------------------------------------- I now seem to have another problem with installing Gambas 3 , in that I can't compile G3 from a SVN download. I've installed/upgraded the build for G3 this way a number of times and follow a standard process - until now it has been always successful. This is the error message I get: ================================================================================================================ ian at ...2583...:~/trunk/gambas/trunk$ ./reconf-all libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' 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 ================================================================================================================= I can confirm that the files listed for alocal are there [ /usr/share/aclocal/libtool.m4'] in the nominated folder. Any suggestions ? Regards, Ian Roper On Fri, 2011-04-29 at 16:25 +0200, Ricardo D?az Mart?n wrote: > Something new in this issue? > > Regards, > Ricardo D?az > > 2011/4/23 Beno?t Minisini > > > > gambas menu is disappeared:-( > > > > > > Andrea Bertini > > > > > > > I have the same problem with the KDE plasma applet that shows the menu on > > the > > top of the screen, like on Mac. The IDE menu does not show, and I don't > > know > > why. The menu of examples are visible on the contrary, so it's strange. > > > > That needs some investigation... > > > > -- > > Beno?t Minisini > > > > > > ------------------------------------------------------------------------------ > > Fulfilling the Lean Software Promise > > Lean software platforms are now widely adopted and the benefits have been > > demonstrated beyond question. Learn why your peers are replacing JEE > > containers with lightweight application servers - and what you can gain > > from the move. http://p.sf.net/sfu/vmware-sfemails > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Sun May 1 04:19:41 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Apr 2011 22:19:41 -0400 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <201105010355.51885.gambas@...1...> References: <4DBCABD1.1070306@...1887...> <4DBCB516.5060803@...1887...> <4DBCBAA3.7010002@...1887...> <201105010355.51885.gambas@...1...> Message-ID: <4DBCC33D.1020105@...1887...> On 04/30/2011 09:55 PM, Beno?t Minisini wrote: >> On 04/30/2011 09:19 PM, Kevin Fishburne wrote: >> >> Something like: >> >> If TargetWidth = SourceWidth And TargetHeight = SourceHeight Then >> Do_Not_Use_Scaling_Blit_Algorithm >> Else >> Use_Scaling_Blit_Algorithm >> EndIf >> >> But in C. :) Some day I'm going to learn C, dammit. Everything I know >> tells me so. > > As you use gb.image.imlib, you are directly using the imlib painting function, > that takes all the arguments as is and does its stuff. > > I would be surprised if that function didn't do the check. > I could test that, actually. > Before learning C, look at OpenGL to see how you can have a fast rotate and > blit function. (But for DrawAlpha, I don't know if it possible to do it with > OpenGL, I have no idea.) When I do learn C it will be applied directly to GAMBAS. I have no reason to believe that programming a game should require the use of C. Highly granular languages close to the architecture are the foundation of all programming, but the closer you get to the architecture the closer you get to not completing your project without having a lot of resources. If, for example, I tried to program my game in C (and to a lesser extent OpenGL), it would probably be finished in four years. With GAMBAS I should have it finished in two. Ultimately, finishing it at all is the most important thing, which is why I chose GAMBAS in the first place; I knew I'd have the best chance of actually finishing it. Learning OpenGL is a good idea, but it would only be done in the context of figuring out how to add functionality to gb.sdl. The most beautiful and long-standing buildings in history have been created with the simplest of tools. I don't need to render a single polygon, so in theory simple tools should be more than adequate. GAMBAS is right for the task, just a little rough around the edges because I don't think a lot of people use it for high-speed image processing. Now if someone could make an open standards compliant VM environment so GAMBAS apps could be executed in a browser, we'd be in business! GAMBAS programs for Android, etc., would be the envy of every programmer. When gb3 is released, maybe a future milestone on the path to world domination? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sun May 1 04:31:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 04:31:21 +0200 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <4DBCC33D.1020105@...1887...> References: <4DBCABD1.1070306@...1887...> <201105010355.51885.gambas@...1...> <4DBCC33D.1020105@...1887...> Message-ID: <201105010431.21853.gambas@...1...> > > > Before learning C, look at OpenGL to see how you can have a fast rotate > > and blit function. (But for DrawAlpha, I don't know if it possible to do > > it with OpenGL, I have no idea.) > > When I do learn C it will be applied directly to GAMBAS. I have no > reason to believe that programming a game should require the use of C. > Highly granular languages close to the architecture are the foundation > of all programming, but the closer you get to the architecture the > closer you get to not completing your project without having a lot of > resources. If, for example, I tried to program my game in C (and to a > lesser extent OpenGL), it would probably be finished in four years. With > GAMBAS I should have it finished in two. Ultimately, finishing it at all > is the most important thing, which is why I chose GAMBAS in the first > place; I knew I'd have the best chance of actually finishing it. > > Learning OpenGL is a good idea, but it would only be done in the context > of figuring out how to add functionality to gb.sdl. The most beautiful > and long-standing buildings in history have been created with the > simplest of tools. I don't need to render a single polygon, so in theory > simple tools should be more than adequate. GAMBAS is right for the task, > just a little rough around the edges because I don't think a lot of > people use it for high-speed image processing. I'm not talking about making a 3D game engine. I'm just talking about using a few OpenGL commands to: - blend images on the screen. - rotate the game screen as you want. As far as I understood, while the player moves, you have to build the part of the world he will see. If you succeed in doing that with OpenGL, all the images will go to the graphic card, and so blending and rotating will be fast (and I think they are now supported by all free drivers). Otherwise you will never go faster than 18 FPS. > > Now if someone could make an open standards compliant VM environment so > GAMBAS apps could be executed in a browser, we'd be in business! GAMBAS > programs for Android, etc., would be the envy of every programmer. When > gb3 is released, maybe a future milestone on the path to world domination? Yes, programming an Android application with Gambas would be cool! -- Beno?t Minisini From kevinfishburne at ...1887... Sun May 1 05:01:59 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Apr 2011 23:01:59 -0400 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <201105010431.21853.gambas@...1...> References: <4DBCABD1.1070306@...1887...> <201105010355.51885.gambas@...1...> <4DBCC33D.1020105@...1887...> <201105010431.21853.gambas@...1...> Message-ID: <4DBCCD27.7050006@...1887...> On 04/30/2011 10:31 PM, Beno?t Minisini wrote: > > I'm not talking about making a 3D game engine. I'm just talking about using a > few OpenGL commands to: > > - blend images on the screen. > - rotate the game screen as you want. > > As far as I understood, while the player moves, you have to build the part of > the world he will see. > > If you succeed in doing that with OpenGL, all the images will go to the > graphic card, and so blending and rotating will be fast (and I think they are > now supported by all free drivers). > > Otherwise you will never go faster than 18 FPS. > Does SDL even have a rotate function? I did some quick research and found mixed results. Looks like there's something called SDL_gfx that might do it (rotozoomer). If SDL flat-out isn't designed to do it, then I perfectly understand the encouragement to implement OpenGL functions. Seems strange though that SDL can't rotate a 2D bitmap efficiently in hardware. Even the SNES could do that. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From gambas at ...1... Sun May 1 05:07:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 05:07:13 +0200 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <4DBCCD27.7050006@...1887...> References: <4DBCABD1.1070306@...1887...> <201105010431.21853.gambas@...1...> <4DBCCD27.7050006@...1887...> Message-ID: <201105010507.13128.gambas@...1...> > On 04/30/2011 10:31 PM, Beno?t Minisini wrote: > > I'm not talking about making a 3D game engine. I'm just talking about > > using a few OpenGL commands to: > > > > - blend images on the screen. > > - rotate the game screen as you want. > > > > As far as I understood, while the player moves, you have to build the > > part of the world he will see. > > > > If you succeed in doing that with OpenGL, all the images will go to the > > graphic card, and so blending and rotating will be fast (and I think they > > are now supported by all free drivers). > > > > Otherwise you will never go faster than 18 FPS. > > Does SDL even have a rotate function? I did some quick research and > found mixed results. Looks like there's something called SDL_gfx that > might do it (rotozoomer). If SDL flat-out isn't designed to do it, then > I perfectly understand the encouragement to implement OpenGL functions. > Seems strange though that SDL can't rotate a 2D bitmap efficiently in > hardware. Even the SNES could do that. AFAIK, SDL does not use hardware on Linux (but Laurent may tell I am wrong). All image processing are done in software. gb.sdl draw things by using OpenGL, so it is hardware accelerated when using the Draw.Image() method. But it does not override any method of the Image class, and so does not accelerate rotation. But it could. -- Beno?t Minisini From kevinfishburne at ...1887... Sun May 1 05:24:56 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sat, 30 Apr 2011 23:24:56 -0400 Subject: [Gambas-user] gb3: recent changes to PaintImage and DrawImage In-Reply-To: <201105010507.13128.gambas@...1...> References: <4DBCABD1.1070306@...1887...> <201105010431.21853.gambas@...1...> <4DBCCD27.7050006@...1887...> <201105010507.13128.gambas@...1...> Message-ID: <4DBCD288.9000406@...1887...> On 04/30/2011 11:07 PM, Beno?t Minisini wrote: >> >> Does SDL even have a rotate function? I did some quick research and >> found mixed results. Looks like there's something called SDL_gfx that >> might do it (rotozoomer). If SDL flat-out isn't designed to do it, then >> I perfectly understand the encouragement to implement OpenGL functions. >> Seems strange though that SDL can't rotate a 2D bitmap efficiently in >> hardware. Even the SNES could do that. > > AFAIK, SDL does not use hardware on Linux (but Laurent may tell I am wrong). > All image processing are done in software. > > gb.sdl draw things by using OpenGL, so it is hardware accelerated when using > the Draw.Image() method. > > But it does not override any method of the Image class, and so does not > accelerate rotation. But it could. My heart was warmed when I read that. From what I understand, SDL is an OpenGL/DirectX wrapper (dependent on platform, of course) that attempts to simplify basic 2D graphics functions so that the underlying OpenGL/DirectX library is not exposed to the user. So your description sounds correct, although I don't see why SDL wouldn't accelerate functions using OpenGL on Linux platforms, especially using the binary NVIDIA driver. I found this: http://stackoverflow.com/questions/1183900/best-way-to-rotate-an-image-using-sdl which indicates there is no native SDL image rotation function. It seems SDL may be used in "OpenGL mode" and rotation can be performed there. The interesting thing is that because SDL is an OpenGL (in our case) wrapper, in theory it could be extended in GAMBAS to do things that the standard SDL wasn't made to do. Maybe I should just shut the hell up and try to learn to implement OpenGL and SDL in GAMBAS. I'm starting to think that. ;) And yes, Laurent probably has more solid info that you or I. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From frederic.176 at ...626... Sun May 1 05:29:38 2011 From: frederic.176 at ...626... (Federico Leite) Date: Sun, 1 May 2011 03:29:38 +0000 Subject: [Gambas-user] Little bug in IconView, and a question. Message-ID: Hi all, IconView has a bug. This is an oversight, and verify which mouse button has been pressed to initiate a selection. Code in the line 815: If $iMode = Select.Multiple And Mouse.Left Then Well, now the question. Why are we using control Separator, instead of using a class that use Draw.Style.Separator? I improvised a little class called "RealSeparator". Perhaps you could replace the old. Inherits UserControl Export Private dwgSep As DrawingArea Public Const _Similar As String = "Separator" Public Sub _new() dwgSep = New DrawingArea(Me) As "dwgSep" End Public Sub dwgSep_Draw() Draw.Begin(dwgSep) Draw.Style.Separator(0, 0, dwgSep.ClientW, dwgSep.ClientH, (dwgSep.ClientH > dwgSep.ClientW)) Draw.End() End Regards, -- Federico Leite ############################################## Areida Developer From jussi.lahtinen at ...626... Sun May 1 13:17:28 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 May 2011 14:17:28 +0300 Subject: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface - Unable to run ./reconf-all for a fresh SVN download In-Reply-To: <1304214558.2327.11.camel@...2583...> References: <4DB30CD8.2070201@...626...> <201104232318.59139.gambas@...1...> <1304214558.2327.11.camel@...2583...> Message-ID: I wonder where "aclocal: unrecognized option -- `--install'" comes... What would plain "autoreconf --install" say? Jussi On Sun, May 1, 2011 at 04:49, Ian Roper wrote: > Greetings all, > > Menu Problem: > ---------------------------------------- > I have found the same issue with Ubuntu Natty - no menus displayed for > Gambas 3. > > I did the online upgrade and was watching the process run and noticed > that it started to touch Gambas files. > I can't be 100% sure because the process was running very quickly but it > seemed to select some of the QT Gambas components and "upgrade" > with a quick display of "no longer required" - Again it was hard to be > sure because it was running very quickly. > > The online upgrade failed ( a my computer problem ) but was able to get > an unstable interface running by selecting "use previous version of > Linux" from the selection menu. > This allows me to check some things including Gambas 3 , which is where > I discovered the missing menu for any apps that I had made. > so rebuilt from a new ISO image. > > > Installation problem: > ---------------------------------------------- > I now seem to have another problem with installing Gambas 3 , in that I > can't compile G3 from a SVN download. > I've installed/upgraded the build for G3 this way a number of times and > follow a standard process - until now it has been always successful. > > This is the error message I get: > > ================================================================================================================ > ian at ...2583...:~/trunk/gambas/trunk$ ./reconf-all > libtoolize: putting auxiliary files in `.'. > libtoolize: copying file `./ltmain.sh' > 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 > > ================================================================================================================= > > I can confirm that the files listed for alocal are there > [ /usr/share/aclocal/libtool.m4'] in the nominated folder. > > Any suggestions ? > > Regards, > Ian Roper > > > > On Fri, 2011-04-29 at 16:25 +0200, Ricardo D?az Mart?n wrote: > > > Something new in this issue? > > > > Regards, > > Ricardo D?az > > > > 2011/4/23 Beno?t Minisini > > > > > > gambas menu is disappeared:-( > > > > > > > > Andrea Bertini > > > > > > > > > > I have the same problem with the KDE plasma applet that shows the menu > on > > > the > > > top of the screen, like on Mac. The IDE menu does not show, and I don't > > > know > > > why. The menu of examples are visible on the contrary, so it's strange. > > > > > > That needs some investigation... > > > > > > -- > > > Beno?t Minisini > > > > > > > > > > ------------------------------------------------------------------------------ > > > Fulfilling the Lean Software Promise > > > Lean software platforms are now widely adopted and the benefits have > been > > > demonstrated beyond question. Learn why your peers are replacing JEE > > > containers with lightweight application servers - and what you can gain > > > from the move. http://p.sf.net/sfu/vmware-sfemails > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun May 1 14:34:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 14:34:34 +0200 Subject: [Gambas-user] Little bug in IconView, and a question. In-Reply-To: References: Message-ID: <201105011434.34410.gambas@...1...> > Hi all, IconView has a bug. This is an oversight, and verify which mouse > button has been pressed to initiate a selection. Code in the line 815: > > If $iMode = Select.Multiple And Mouse.Left Then I don't understand what the problem is. > > Well, now the question. Why are we using control Separator, instead of > using a class that use Draw.Style.Separator? I improvised a little class > called "RealSeparator". Perhaps you could replace the old. > > Inherits UserControl > Export > Private dwgSep As DrawingArea > > Public Const _Similar As String = "Separator" > > Public Sub _new() > > dwgSep = New DrawingArea(Me) As "dwgSep" > > End > > Public Sub dwgSep_Draw() > > Draw.Begin(dwgSep) > Draw.Style.Separator(0, 0, dwgSep.ClientW, dwgSep.ClientH, > (dwgSep.ClientH > > > dwgSep.ClientW)) > > Draw.End() > > End > > Regards, All that is unneeded. It was just some code that was commented in gb.qt4! I fixed that in revision #3823. Regards, -- Beno?t Minisini From gambas at ...1... Sun May 1 14:43:48 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 14:43:48 +0200 Subject: [Gambas-user] Gambas3: webview control In-Reply-To: <4DBBD02C.9000708@...626...> References: <4DBBD02C.9000708@...626...> Message-ID: <201105011443.48716.gambas@...1...> > 1. userid and password management is planned or possible? Mmm. It worked before, but I have just tested with the WebBrowser example, and it does not work anymore. Qt Webkit is a moving target... > 2. how to enable flash plugin? WebSettings[WebSettings.PluginsEnabled] = True But the flash plugin seems to crash often. Amazing... > 3. it is possible from code to send data to field of a web page? Not really. I suggest you use the "wget" command-line tool for that. Regards, -- Beno?t Minisini From gambas at ...1... Sun May 1 17:32:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 17:32:13 +0200 Subject: [Gambas-user] Gambas 3 menu on Ubuntu Natty Message-ID: <201105011732.13770.gambas@...1...> Hi, I have found a workaround for the buggy global menu in Ubuntu Natty. I put it in revision #3824. I don't use Natty, so I have tested the fix with the KDE Plasma global menu applet only. The workaround is a environment variable that tells Qt to display its menu both in the global menu and in the application. 'Dunno why, but then the global menu appears, and you can hide the local one from the IDE. I'm afraid it's the better that I can do. Be aware that apparently that global menu thing works only for applications that use menus in a well-defined conservative way. The Gambas3 IDE has a lot of menus everywhere, so I think it is too complex for the global menu applet. Other applications like Lyx have problems too. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Sun May 1 20:58:24 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sun, 1 May 2011 20:58:24 +0200 Subject: [Gambas-user] Gambas 3 menu on Ubuntu Natty In-Reply-To: <201105011732.13770.gambas@...1...> References: <201105011732.13770.gambas@...1...> Message-ID: Thanks Benoit, it works better (in my box the ide menu shows two times, one in the main ide window and other in the pannel). Regards, Ricardo D?az 2011/5/1 Beno?t Minisini > Hi, > > I have found a workaround for the buggy global menu in Ubuntu Natty. I put > it > in revision #3824. > > I don't use Natty, so I have tested the fix with the KDE Plasma global menu > applet only. > > The workaround is a environment variable that tells Qt to display its menu > both in the global menu and in the application. 'Dunno why, but then the > global menu appears, and you can hide the local one from the IDE. > > I'm afraid it's the better that I can do. > > Be aware that apparently that global menu thing works only for applications > that use menus in a well-defined conservative way. The Gambas3 IDE has a > lot > of menus everywhere, so I think it is too complex for the global menu > applet. > Other applications like Lyx have problems too. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun May 1 21:02:52 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 May 2011 21:02:52 +0200 Subject: [Gambas-user] Gambas3: webview control In-Reply-To: <201105011443.48716.gambas@...1...> References: <4DBBD02C.9000708@...626...> <201105011443.48716.gambas@...1...> Message-ID: <201105012102.52595.gambas@...1...> > > 1. userid and password management is planned or possible? > > Mmm. It worked before, but I have just tested with the WebBrowser example, > and it does not work anymore. > Fixed in revision #3824. Regards, -- Beno?t Minisini From support at ...2529... Sun May 1 21:37:16 2011 From: support at ...2529... (John Spikowski) Date: Sun, 01 May 2011 12:37:16 -0700 Subject: [Gambas-user] Gambas 3 menu on Ubuntu Natty In-Reply-To: <201105011732.13770.gambas@...1...> References: <201105011732.13770.gambas@...1...> Message-ID: <1304278636.23590.4.camel@...1833...> On Sun, 2011-05-01 at 17:32 +0200, Beno?t Minisini wrote: > Hi, > > I have found a workaround for the buggy global menu in Ubuntu Natty. I put it > in revision #3824. > > I don't use Natty, so I have tested the fix with the KDE Plasma global menu > applet only. > > The workaround is a environment variable that tells Qt to display its menu > both in the global menu and in the application. 'Dunno why, but then the > global menu appears, and you can hide the local one from the IDE. > > I'm afraid it's the better that I can do. > > Be aware that apparently that global menu thing works only for applications > that use menus in a well-defined conservative way. The Gambas3 IDE has a lot > of menus everywhere, so I think it is too complex for the global menu applet. > Other applications like Lyx have problems too. I upgraded my Ubuntu 64 to 11.04 classic mode as Unity said my hardware wasn't up to snuff. :-( I just recompiled the latest build and all went well. I haven't done any real testing yet but I didn't get any compiler complaints and everything looks like it got built. More after I have had some time to work with this build. John From gambas at ...1... Mon May 2 02:46:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 May 2011 02:46:35 +0200 Subject: [Gambas-user] Bakcground property in FileView In-Reply-To: References: Message-ID: <201105020246.35141.gambas@...1...> > Hi, the Background property in FileView doesn't works...Well, it's simple: > > Property Bakcground As Integer > > Private Function Background_Read() As Integer > Return $hIconView.Background > End > Private Sub Background_Write(Value As Integer) > $hIconView.Background = Value > End > > > Regards, It should be better in revision #3826. Regards, -- Beno?t Minisini From gambas at ...1... Tue May 3 11:00:38 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 May 2011 11:00:38 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1303980667.3309.4843.camel@...2150...> References: <1303974903.2162.7.camel@...2425...> <1303978348.2162.10.camel@...2425...> <1303980667.3309.4843.camel@...2150...> Message-ID: <201105031100.38210.gambas@...1...> > Yup, seems I can confirm the bug. Works OK in ubuntu 10.10, but not > 11.04. In both systems, looking at Application.Env I get: > > GDM_LANG: en_US.utf8 and > LANG: en_US.utf8 > > Regards, > Caveat > I can't test on Natty. Does someone else confirm this strange problem? -- Beno?t Minisini From gambas.fr at ...626... Tue May 3 11:30:31 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 3 May 2011 11:30:31 +0200 Subject: [Gambas-user] Gambas 3 menu on Ubuntu Natty In-Reply-To: <1304278636.23590.4.camel@...1833...> References: <201105011732.13770.gambas@...1...> <1304278636.23590.4.camel@...1833...> Message-ID: Unity is really too heavy 2011/5/1 John Spikowski : > On Sun, 2011-05-01 at 17:32 +0200, Beno?t Minisini wrote: >> Hi, >> >> I have found a workaround for the buggy global menu in Ubuntu Natty. I put it >> in revision #3824. >> >> I don't use Natty, so I have tested the fix with the KDE Plasma global menu >> applet only. >> >> The workaround is a environment variable that tells Qt to display its menu >> both in the global menu and in the application. 'Dunno why, but then the >> global menu appears, and you can hide the local one from the IDE. >> >> I'm afraid it's the better that I can do. >> >> Be aware that apparently that global menu thing works only for applications >> that use menus in a well-defined conservative way. The Gambas3 IDE has a lot >> of menus everywhere, so I think it is too complex for the global menu applet. >> Other applications like Lyx have problems too. > > I upgraded my Ubuntu 64 to 11.04 classic mode as Unity said my hardware > wasn't up to snuff. :-( > > I just recompiled the latest build and all went well. I haven't done any > real testing yet but I didn't get any compiler complaints and everything > looks like it got built. > > More after I have had some time to work with this build. > > John > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. ?Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From support at ...2529... Tue May 3 17:26:34 2011 From: support at ...2529... (John Spikowski) Date: Tue, 03 May 2011 08:26:34 -0700 Subject: [Gambas-user] Gambas 3 menu on Ubuntu Natty In-Reply-To: References: <201105011732.13770.gambas@...1...> <1304278636.23590.4.camel@...1833...> Message-ID: <1304436394.2115.5.camel@...1833...> On Tue, 2011-05-03 at 11:30 +0200, Fabien Bodard wrote: > Unity is really too heavy > Xubuntu may be a better option if fluff and glitz isn't your bag. From support at ...2529... Tue May 3 19:42:14 2011 From: support at ...2529... (John Spikowski) Date: Tue, 03 May 2011 10:42:14 -0700 Subject: [Gambas-user] Gambas 3 menu on Ubuntu Natty In-Reply-To: References: <201105011732.13770.gambas@...1...> <1304278636.23590.4.camel@...1833...> Message-ID: <1304444534.2104.5.camel@...1833...> On Tue, 2011-05-03 at 11:30 +0200, Fabien Bodard wrote: > Unity is really too heavy You can remove 'Unity' from your Ubuntu 11.04 install by using the Ubuntu Software Center application under Applications. Select the installed apps section and type 'Unity' in the search box. Remove all packages under this option. (only one package on my box) You may want to remove 'mutter' via apt-get if it is install as well. You will no longer be offered 'Unity' updates from that point on. This should give you a 10.10 like environment under 11.04. From math.eber at ...221... Tue May 3 20:53:05 2011 From: math.eber at ...221... (Matti) Date: Tue, 03 May 2011 20:53:05 +0200 Subject: [Gambas-user] WebBrowser example raises Signal #11 Message-ID: <4DC04F11.5040909@...221...> Sometimes websites are opened correctly, but most of the time the app crashes with signal #11 and messages in console like: (process:22713): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function (process:22713): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed (process:22713): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed gb3 rev 3827 KDE 4.3.5 qt 4.5.3 Regards Matti From gambas at ...1... Tue May 3 20:58:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 May 2011 20:58:17 +0200 Subject: [Gambas-user] WebBrowser example raises Signal #11 In-Reply-To: <4DC04F11.5040909@...221...> References: <4DC04F11.5040909@...221...> Message-ID: <201105032058.17442.gambas@...1...> > Sometimes websites are opened correctly, but most of the time the app > crashes with signal #11 and messages in console like: > > (process:22713): GLib-GObject-CRITICAL **: gtype.c:2458: initialization > assertion failed, use IA__g_type_init() prior to this function > > (process:22713): GLib-CRITICAL **: g_once_init_leave: assertion > `initialization_value != 0' failed > > (process:22713): GLib-GObject-CRITICAL **: g_object_new: assertion > `G_TYPE_IS_OBJECT (object_type)' failed > > > gb3 rev 3827 > KDE 4.3.5 > qt 4.5.3 > > Regards > Matti > Try to run it with "QT_NO_GLIB=1" as environment variable, and tell me if it works. -- Beno?t Minisini From math.eber at ...221... Tue May 3 21:10:28 2011 From: math.eber at ...221... (Matti) Date: Tue, 03 May 2011 21:10:28 +0200 Subject: [Gambas-user] WebBrowser example raises Signal #11 In-Reply-To: <201105032058.17442.gambas@...1...> References: <4DC04F11.5040909@...221...> <201105032058.17442.gambas@...1...> Message-ID: <4DC05324.8050306@...221...> No, same crashes. Am 03.05.2011 20:58, schrieb Beno?t Minisini: > > Try to run it with "QT_NO_GLIB=1" as environment variable, and tell me if it > works. > From girardhenri at ...402... Tue May 3 21:25:25 2011 From: girardhenri at ...402... (Girard Henri) Date: Tue, 03 May 2011 21:25:25 +0200 Subject: [Gambas-user] Gambas 3 menu on Ubuntu Natty In-Reply-To: <1304444534.2104.5.camel@...1833...> References: <201105011732.13770.gambas@...1...> <1304278636.23590.4.camel@...1833...> <1304444534.2104.5.camel@...1833...> Message-ID: <1304450725.6565.1.camel@...651...> I use 11.04 in ubuntu classic and I don't need to remove unity. Removing unity you can't reinstall it. Le mardi 03 mai 2011 ? 10:42 -0700, John Spikowski a ?crit : > On Tue, 2011-05-03 at 11:30 +0200, Fabien Bodard wrote: > > Unity is really too heavy > > You can remove 'Unity' from your Ubuntu 11.04 install by using the > Ubuntu Software Center application under Applications. Select the > installed apps section and type 'Unity' in the search box. Remove all > packages under this option. (only one package on my box) You may want to > remove 'mutter' via apt-get if it is install as well. You will no longer > be offered 'Unity' updates from that point on. This should give you a > 10.10 like environment under 11.04. > > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Tue May 3 21:30:26 2011 From: math.eber at ...221... (Matti) Date: Tue, 03 May 2011 21:30:26 +0200 Subject: [Gambas-user] 3DWebCam example: Stack overflow Message-ID: <4DC057D2.5070603@...221...> I get the error: Stack overflow in Mmain:239 Console messages: gambas v4l2: Device is V4L2! [2] gambas v4l2: cropping not supported [22] gambas v4l2: Capture ON [22] gambas v4l2: cropping not supported [22] gambas v4l2: VIDIOC_S_FMT, can't set YUYV, trying YUV 420 [16] gambas v4l2: VIDIOC_S_FMT, can't set YUV420, defaulting [16] gambas v4l2: Capture ON [22] Stack trace says: always repeating Mmain.Screen_Draw.239 Don't understand a word of all this. But, as a guess, if my machine doesn't support something, the app should check it, abort and explain it. gb3 rev 3827 KDE 4.3.5 qt 4.5.3 Regards Matti From gambas at ...1... Tue May 3 21:39:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 May 2011 21:39:21 +0200 Subject: [Gambas-user] 3DWebCam example: Stack overflow In-Reply-To: <4DC057D2.5070603@...221...> References: <4DC057D2.5070603@...221...> Message-ID: <201105032139.21946.gambas@...1...> > I get the error: Stack overflow in Mmain:239 > > Console messages: > gambas v4l2: Device is V4L2! [2] > gambas v4l2: cropping not supported [22] > gambas v4l2: Capture ON [22] > gambas v4l2: cropping not supported [22] > gambas v4l2: VIDIOC_S_FMT, can't set YUYV, trying YUV 420 [16] > gambas v4l2: VIDIOC_S_FMT, can't set YUV420, defaulting [16] > gambas v4l2: Capture ON [22] > > Stack trace says: > always repeating Mmain.Screen_Draw.239 > > Don't understand a word of all this. But, as a guess, if my machine doesn't > support something, the app should check it, abort and explain it. > > gb3 rev 3827 > KDE 4.3.5 > qt 4.5.3 > > Regards > Matti > Is it better with revision #3829? -- Beno?t Minisini From support at ...2529... Tue May 3 21:44:02 2011 From: support at ...2529... (John Spikowski) Date: Tue, 03 May 2011 12:44:02 -0700 Subject: [Gambas-user] Gambas 3 menu on Ubuntu Natty In-Reply-To: <1304450725.6565.1.camel@...651...> References: <201105011732.13770.gambas@...1...> <1304278636.23590.4.camel@...1833...> <1304444534.2104.5.camel@...1833...> <1304450725.6565.1.camel@...651...> Message-ID: <1304451842.2104.9.camel@...1833...> On Tue, 2011-05-03 at 21:25 +0200, Girard Henri wrote: > I use 11.04 in ubuntu classic and I don't need to remove unity. > Removing unity you can't reinstall it. I have already made that decision not to use Unity. I also don't want my system updated with packages I'm not using. I guess I'm a 'classic' kind of guy. ;-) From math.eber at ...221... Tue May 3 21:54:25 2011 From: math.eber at ...221... (Matti) Date: Tue, 03 May 2011 21:54:25 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle Message-ID: <4DC05D71.60100@...221...> When opening any pdf file, I see a very nice cube with gambas rotating (see jpg). No pdf is displayed, and I can't do anything. What should we learn from this example?? gb3 rev 3827 KDE 4.3.5 qt 4.5.3 Regards Matti -------------- next part -------------- A non-text attachment was scrubbed... Name: pdfpres.jpeg Type: image/jpeg Size: 30468 bytes Desc: not available URL: From handriolijr at ...626... Tue May 3 21:57:36 2011 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Tue, 03 May 2011 16:57:36 -0300 Subject: [Gambas-user] 3DWebCam example: Stack overflow In-Reply-To: <201105032139.21946.gambas@...1...> References: <4DC057D2.5070603@...221...> <201105032139.21946.gambas@...1...> Message-ID: <1304452656.1722.9.camel@...2581...> I have a similar problem... I just installed Ubuntu 11.04, and the gb.v4l simply disapeard... Now i can't use my Web cam. I have a project that capture the Picture of an student. How i active this again? any one? Hamilton Em Ter, 2011-05-03 ?s 21:39 +0200, Beno?t Minisini escreveu: > > I get the error: Stack overflow in Mmain:239 > > > > Console messages: > > gambas v4l2: Device is V4L2! [2] > > gambas v4l2: cropping not supported [22] > > gambas v4l2: Capture ON [22] > > gambas v4l2: cropping not supported [22] > > gambas v4l2: VIDIOC_S_FMT, can't set YUYV, trying YUV 420 [16] > > gambas v4l2: VIDIOC_S_FMT, can't set YUV420, defaulting [16] > > gambas v4l2: Capture ON [22] > > > > Stack trace says: > > always repeating Mmain.Screen_Draw.239 > > > > Don't understand a word of all this. But, as a guess, if my machine doesn't > > support something, the app should check it, abort and explain it. > > > > gb3 rev 3827 > > KDE 4.3.5 > > qt 4.5.3 > > > > Regards > > Matti > > > > Is it better with revision #3829? > From gambas at ...1... Tue May 3 22:03:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 May 2011 22:03:29 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <4DC05D71.60100@...221...> References: <4DC05D71.60100@...221...> Message-ID: <201105032203.29331.gambas@...1...> > When opening any pdf file, I see a very nice cube with gambas rotating (see > jpg). > > No pdf is displayed, and I can't do anything. > > What should we learn from this example?? It is in the source code. Press space. -- Beno?t Minisini From math.eber at ...221... Tue May 3 22:16:08 2011 From: math.eber at ...221... (Matti) Date: Tue, 03 May 2011 22:16:08 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <201105032203.29331.gambas@...1...> References: <4DC05D71.60100@...221...> <201105032203.29331.gambas@...1...> Message-ID: <4DC06288.6080500@...221...> Well, ehm, yes, pressing space works - but how should the user know about that?? What about a little hint to this puzzle? Am 03.05.2011 22:03, schrieb Beno?t Minisini: >> When opening any pdf file, I see a very nice cube with gambas rotating (see >> jpg). >> >> No pdf is displayed, and I can't do anything. >> >> What should we learn from this example?? > > It is in the source code. Press space. > From gambas at ...1... Tue May 3 22:28:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 May 2011 22:28:56 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <4DC06288.6080500@...221...> References: <4DC05D71.60100@...221...> <201105032203.29331.gambas@...1...> <4DC06288.6080500@...221...> Message-ID: <201105032228.56987.gambas@...1...> > Well, ehm, yes, pressing space works - but how should the user know about > that?? What about a little hint to this puzzle? > I added an help message in revision #3830. Regards, -- Beno?t Minisini From math.eber at ...221... Tue May 3 22:31:03 2011 From: math.eber at ...221... (Matti) Date: Tue, 03 May 2011 22:31:03 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <4DC06288.6080500@...221...> References: <4DC05D71.60100@...221...> <201105032203.29331.gambas@...1...> <4DC06288.6080500@...221...> Message-ID: <4DC06607.4040902@...221...> And, trying more and understanding less: I only see the first page of documents. How to scroll, move to other pages, maybe print...?? I simply don't understand this example. > Am 03.05.2011 22:03, schrieb Beno?t Minisini: >>> When opening any pdf file, I see a very nice cube with gambas rotating (see >>> jpg). >>> >>> No pdf is displayed, and I can't do anything. >>> >>> What should we learn from this example?? >> >> It is in the source code. Press space. >> From math.eber at ...221... Tue May 3 22:32:56 2011 From: math.eber at ...221... (Matti) Date: Tue, 03 May 2011 22:32:56 +0200 Subject: [Gambas-user] 3DWebCam example: Stack overflow In-Reply-To: <201105032139.21946.gambas@...1...> References: <4DC057D2.5070603@...221...> <201105032139.21946.gambas@...1...> Message-ID: <4DC06678.2030600@...221...> Yes, now it works. At least one good news this evening. Am 03.05.2011 21:39, schrieb Beno?t Minisini: > Is it better with revision #3829? > From gambas.fr at ...626... Tue May 3 23:08:42 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 3 May 2011 23:08:42 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <4DC06607.4040902@...221...> References: <4DC05D71.60100@...221...> <201105032203.29331.gambas@...1...> <4DC06288.6080500@...221...> <4DC06607.4040902@...221...> Message-ID: left arrow and right arrow 2011/5/3 Matti : > And, trying more and understanding less: > I only see the first page of documents. How to scroll, move to other pages, > maybe print...?? > I simply don't understand this example. > >> Am 03.05.2011 22:03, schrieb Beno?t Minisini: >>>> When opening any pdf file, I see a very nice cube with gambas rotating (see >>>> jpg). >>>> >>>> No pdf is displayed, and I can't do anything. >>>> >>>> What should we learn from this example?? >>> >>> It is in the source code. Press space. >>> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. ?Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From and.bertini at ...626... Tue May 3 23:16:56 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Tue, 03 May 2011 23:16:56 +0200 Subject: [Gambas-user] Gambas on Natty Message-ID: <4DC070C8.2050807@...626...> I like Unity, so i will use G3 without menu'... Andrea Bertini ps. Next year gnome 3 will arrive also for Ubuntu..g3 should be ready for this event From math.eber at ...221... Tue May 3 23:38:52 2011 From: math.eber at ...221... (Matti) Date: Tue, 03 May 2011 23:38:52 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: References: <4DC05D71.60100@...221...> <201105032203.29331.gambas@...1...> <4DC06288.6080500@...221...> <4DC06607.4040902@...221...> Message-ID: <4DC075EC.7040408@...221...> Well, yes. But how do you expect someone to find out? For example: I tried PageUp/Down, ArrowUp/Down, MouseWheel and what else. You can't expect the user to read the source code first. Examples should work the other way: User runs example, see that it works, and then looks at "how did they do it?" So, why don't you use a regular menu to show what can be done? Am 03.05.2011 23:08, schrieb Fabien Bodard: > left arrow and right arrow From rterry at ...1946... Tue May 3 23:55:05 2011 From: rterry at ...1946... (richard terry) Date: Wed, 4 May 2011 07:55:05 +1000 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <4DC075EC.7040408@...221...> References: <4DC05D71.60100@...221...> <4DC075EC.7040408@...221...> Message-ID: <201105040755.05715.rterry@...1946...> On Wednesday 04 May 2011 07:38:52 Matti wrote I get the message no OpenGL on my system - anyone know how to install that in kubuntu? regards richard > Well, yes. > But how do you expect someone to find out? > For example: I tried PageUp/Down, ArrowUp/Down, MouseWheel and what else. > You can't expect the user to read the source code first. > Examples should work the other way: User runs example, see that it works, > and then looks at "how did they do it?" > So, why don't you use a regular menu to show what can be done? > > Am 03.05.2011 23:08, schrieb Fabien Bodard: > > left arrow and right arrow > > --------------------------------------------------------------------------- > --- WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From support at ...2529... Wed May 4 00:00:02 2011 From: support at ...2529... (John Spikowski) Date: Tue, 03 May 2011 15:00:02 -0700 Subject: [Gambas-user] Gambas on Natty In-Reply-To: <4DC070C8.2050807@...626...> References: <4DC070C8.2050807@...626...> Message-ID: <1304460002.2104.17.camel@...1833...> On Tue, 2011-05-03 at 23:16 +0200, Andrea Bertini wrote: > I like Unity, so i will use G3 without menu'... Unity said: ``go spend some money and upgrade your perfectly fine 10.10 running laptop so it can handle all the extra layers Unity installs that you really don't need'' I like working in my jeans and not interested in putting on a jacket and tie to see the show. ;-) Didn't Vista try this same tactic and it blew up in their face and Microsoft lost millions in OS sales? From gambas at ...1... Wed May 4 00:03:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 May 2011 00:03:04 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <201105040755.05715.rterry@...1946...> References: <4DC05D71.60100@...221...> <4DC075EC.7040408@...221...> <201105040755.05715.rterry@...1946...> Message-ID: <201105040003.04430.gambas@...1...> > On Wednesday 04 May 2011 07:38:52 Matti wrote > > I get the message no OpenGL on my system - anyone know how to install that > in kubuntu? > regards > richard > It depends on your graphic card model. -- Beno?t Minisini From rterry at ...1946... Wed May 4 00:26:01 2011 From: rterry at ...1946... (richard terry) Date: Wed, 4 May 2011 08:26:01 +1000 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <201105040003.04430.gambas@...1...> References: <4DC05D71.60100@...221...> <201105040755.05715.rterry@...1946...> <201105040003.04430.gambas@...1...> Message-ID: <201105040826.01377.rterry@...1946...> On Wednesday 04 May 2011 08:03:04 Beno?t Minisini wrote: > > On Wednesday 04 May 2011 07:38:52 Matti wrote > > > > I get the message no OpenGL on my system - anyone know how to install > > that in kubuntu? > > regards > > richard > > It depends on your graphic card model. > nvidia geforce 9300M From gambas at ...1... Wed May 4 00:35:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 May 2011 00:35:21 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <201105040826.01377.rterry@...1946...> References: <4DC05D71.60100@...221...> <201105040003.04430.gambas@...1...> <201105040826.01377.rterry@...1946...> Message-ID: <201105040035.21086.gambas@...1...> > On Wednesday 04 May 2011 08:03:04 Beno?t Minisini wrote: > > > On Wednesday 04 May 2011 07:38:52 Matti wrote > > > > > > I get the message no OpenGL on my system - anyone know how to install > > > that in kubuntu? > > > regards > > > richard > > > > It depends on your graphic card model. > > nvidia geforce 9300M > I have a nvidia too, but older. The Nvidia proprietary driver does not work with KDE on my machine, so I use the Nouveau driver. But to activate the 3D part of Nouveau, you have to install the package named: libdrm-nouveau1. Beware that nouveau is not stable: it periodically freeze everything except the mouse during one minute, and sometimes crashes. Regards, -- Beno?t Minisini From gambas at ...1... Wed May 4 00:43:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 May 2011 00:43:18 +0200 Subject: [Gambas-user] PDFPresentation example: a riddle In-Reply-To: <201105040035.21086.gambas@...1...> References: <4DC05D71.60100@...221...> <201105040826.01377.rterry@...1946...> <201105040035.21086.gambas@...1...> Message-ID: <201105040043.18698.gambas@...1...> > > On Wednesday 04 May 2011 08:03:04 Beno?t Minisini wrote: > > > > On Wednesday 04 May 2011 07:38:52 Matti wrote > > > > > > > > I get the message no OpenGL on my system - anyone know how to install > > > > that in kubuntu? > > > > regards > > > > richard > > > > > > It depends on your graphic card model. > > > > nvidia geforce 9300M > > I have a nvidia too, but older. The Nvidia proprietary driver does not work > with KDE on my machine, so I use the Nouveau driver. But to activate the 3D > part of Nouveau, you have to install the package named: libdrm-nouveau1. > Beware that nouveau is not stable: it periodically freeze everything except > the mouse during one minute, and sometimes crashes. > > Regards, Sorry, the package is not libdrm-nouveau1, but libgl1-mesa-dri-experimental. Regards, -- Beno?t Minisini From gambas at ...2524... Wed May 4 03:34:16 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 04 May 2011 01:34:16 +0000 Subject: [Gambas-user] Issue 63 in gambas: HttpClient doesn't honor https connections Message-ID: <0-6813199134517018827-12679274583444909452-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 63 by sebi... at ...626...: HttpClient doesn't honor https connections http://code.google.com/p/gambas/issues/detail?id=63 When configuring the HttpClient URL to https, it still uses plain text transfer Version: TRUNK Revision: r3817 Operating system: Linux 2.6.35-29-generic Distribution: Ubuntu 10.10 Architecture: x86 From jussi.lahtinen at ...626... Wed May 4 18:27:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 May 2011 19:27:16 +0300 Subject: [Gambas-user] Better IIf? Message-ID: Hi! I noticed this while debugging (from http://gambasdoc.org/help/lang/iif?v3); "BE CAREFUL! Contrary to IF, or the C/Perl ? operator, both TrueExpression and FalseExpression are evaluated, whatever the value of Test is. " This is pretty deceptive! Can this be re-implement as syntactic sugar (compiler would turn IIf to normal If/Else/Then structure)? Jussi From gambas at ...2524... Wed May 4 18:40:34 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 04 May 2011 16:40:34 +0000 Subject: [Gambas-user] Issue 63 in gambas: HttpClient doesn't honor https connections In-Reply-To: <0-6813199134517018827-12679274583444909452-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12679274583444909452-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12679274583444909452-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement Comment #1 on issue 63 by benoit.m... at ...626...: HttpClient doesn't honor https connections http://code.google.com/p/gambas/issues/detail?id=63 Apparently this is by design. I register that as an enhancement and will try to find a fix. From handriolijr at ...626... Wed May 4 22:37:00 2011 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Wed, 04 May 2011 17:37:00 -0300 Subject: [Gambas-user] Help on V4l on gambas. Message-ID: <1304541420.6659.1.camel@...2581...> Hellow... I just upgrade my sytem to the new ubuntu 11.04. Then, the package gb.v4l simply desapeard... now i can't use WebCam on Gambas. when i use Private WebCam as VideoDevice none hapens.. and there is an error. Please, how to correct this? From nando_f at ...951... Thu May 5 05:29:12 2011 From: nando_f at ...951... (nando) Date: Wed, 4 May 2011 23:29:12 -0400 Subject: [Gambas-user] Run-time bug Message-ID: <20110505032715.M68238@...951...> ' Gambas class file PRIVATE test AS String[30, 30] PUBLIC SUB my_test() test = ["Voice", "Logon"] '<---If I REM this, there is no runtime error on next line test[0, 1] = "Logon" '<---Runtime error: Bad Number of Dimensions PRINT test.count END Gambas2 -Fernando From kevinfishburne at ...1887... Thu May 5 06:00:25 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 05 May 2011 00:00:25 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure Message-ID: <4DC220D9.7020309@...1887...> Is it possible to sort an array (and/or something structurally similar to an array) by the values of a single dimension? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Thu May 5 07:18:18 2011 From: nando_f at ...951... (nando) Date: Thu, 5 May 2011 01:18:18 -0400 Subject: [Gambas-user] Can someone explain why this works? Message-ID: <20110505051515.M87638@...951...> Benoit, Can you explain why this works and the reasoning behind it? I would think there would be dimension issues on some lines DIM i AS Integer, Text AS String[4, 4, 4, 4] Text = ["Just", "test"] '<--how to load Text with multi-dimension text FOR i = 0 TO Text.Max PRINT Text[i] '<--why does this not show bad dimensions error? NEXT -Fernando From nando_f at ...951... Thu May 5 07:19:29 2011 From: nando_f at ...951... (nando) Date: Thu, 5 May 2011 01:19:29 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DC220D9.7020309@...1887...> References: <4DC220D9.7020309@...1887...> Message-ID: <20110505051852.M63443@...951...> Technically, anything is possible Give an example of your data to sort perhaps? ---------- Original Message ----------- From: Kevin Fishburne To: gambas-user at lists.sourceforge.net Sent: Thu, 05 May 2011 00:00:25 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure > Is it possible to sort an array (and/or something structurally similar > to an array) by the values of a single dimension? > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From kevinfishburne at ...1887... Thu May 5 07:29:25 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 05 May 2011 01:29:25 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <20110505051852.M63443@...951...> References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> Message-ID: <4DC235B5.4070006@...1887...> On 05/05/2011 01:19 AM, nando wrote: > Technically, anything is possible > Give an example of your data to sort perhaps? If I have an array of two dimensions [1000, 10] how would I sort it by the second element of the second dimension for example? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Thu May 5 07:39:22 2011 From: nando_f at ...951... (nando) Date: Thu, 5 May 2011 01:39:22 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DC235B5.4070006@...1887...> References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> <4DC235B5.4070006@...1887...> Message-ID: <20110505053719.M86171@...951...> ? Do you mean sorting [0, 1] to [1000, 1] Because the 1 is the second element of the second dimension ?? ---------- Original Message ----------- From: Kevin Fishburne To: gambas-user at lists.sourceforge.net Sent: Thu, 05 May 2011 01:29:25 -0400 Subject: Re: [Gambas-user] gb3: sorting an array-like structure > On 05/05/2011 01:19 AM, nando wrote: > > Technically, anything is possible > > Give an example of your data to sort perhaps? > > If I have an array of two dimensions [1000, 10] how would I sort it by > the second element of the second dimension for example? > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nando_f at ...951... Thu May 5 07:43:52 2011 From: nando_f at ...951... (nando) Date: Thu, 5 May 2011 01:43:52 -0400 Subject: [Gambas-user] Signal #11 in Gambas 2 Message-ID: <20110505053931.M9902@...951...> How to make the 4 line example signal #11 every time: 1. Place a breakpoint on the PRINT "hello" line 2. Run the program (F5) 3. When the program stops at the breakpoint, highlight the word 'String[]' on line 2 -Fernando SUB x() DIM uu AS NEW String[] PRINT "hello" END From kevinfishburne at ...1887... Thu May 5 07:46:22 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 05 May 2011 01:46:22 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <20110505053719.M86171@...951...> References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> <4DC235B5.4070006@...1887...> <20110505053719.M86171@...951...> Message-ID: <4DC239AE.2080501@...1887...> On 05/05/2011 01:39 AM, nando wrote: > ? > Do you mean sorting [0, 1] to [1000, 1] > Because the 1 is the second element of the second dimension > ?? We are misunderstanding each other. I know arrays start at zero when referencing their elements and dimensions outside of the declaration. By second element, I mean the number one. That's not really relevant, though, as I'm basically asking if there is a method to sort an array without creating an elaborate sorting procedure. Is there a mechanism for sorting an array, or an array-like structure, inherent in GAMBAS or do I need to sort manually? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Thu May 5 08:10:21 2011 From: nando_f at ...951... (nando) Date: Thu, 5 May 2011 02:10:21 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DC239AE.2080501@...1887...> References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> <4DC235B5.4070006@...1887...> <20110505053719.M86171@...951...> <4DC239AE.2080501@...1887...> Message-ID: <20110505060855.M92426@...951...> It depends how you declare the 2D string array. If the first dimension is an Object[] and you add a String[] in each element to make the second dimension, then you can sort the second dimension as a 1D string. ---------- Original Message ----------- From: Kevin Fishburne To: gambas-user at lists.sourceforge.net Sent: Thu, 05 May 2011 01:46:22 -0400 Subject: Re: [Gambas-user] gb3: sorting an array-like structure > On 05/05/2011 01:39 AM, nando wrote: > > ? > > Do you mean sorting [0, 1] to [1000, 1] > > Because the 1 is the second element of the second dimension > > ?? > > We are misunderstanding each other. I know arrays start at zero when > referencing their elements and dimensions outside of the declaration. By > second element, I mean the number one. That's not really relevant, > though, as I'm basically asking if there is a method to sort an array > without creating an elaborate sorting procedure. Is there a mechanism > for sorting an array, or an array-like structure, inherent in GAMBAS or > do I need to sort manually? > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas.fr at ...626... Thu May 5 12:31:53 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 May 2011 12:31:53 +0200 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <20110505060855.M92426@...951...> References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> <4DC235B5.4070006@...1887...> <20110505053719.M86171@...951...> <4DC239AE.2080501@...1887...> <20110505060855.M92426@...951...> Message-ID: 2011/5/5 nando : > It depends how you declare the 2D string array. > > If the first dimension is an Object[] > and you add a String[] in each element > to make the second dimension, > then you can sort the second dimension as a 1D string. > > > ---------- Original Message ----------- > From: Kevin Fishburne > To: gambas-user at lists.sourceforge.net > Sent: Thu, 05 May 2011 01:46:22 -0400 > Subject: Re: [Gambas-user] gb3: sorting an array-like structure > >> On 05/05/2011 01:39 AM, nando wrote: >> > ? >> > Do you mean sorting [0, 1] to [1000, 1] >> > Because the 1 is the second element of the second dimension >> > ?? >> >> We are misunderstanding each other. I know arrays start at zero when >> referencing their elements and dimensions outside of the declaration. By >> second element, I mean the number one. That's not really relevant, >> though, as I'm basically asking if there is a method to sort an array >> without creating an elaborate sorting procedure. Is there a mechanism >> for sorting an array, or an array-like structure, inherent in GAMBAS or >> do I need to sort manually? >> >> -- >> Kevin Fishburne >> Eight Virtues >> www: http://sales.eightvirtues.com >> e-mail: sales at ...1887... >> phone: (770) 853-6271 >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. ?Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. ?Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > We use that to sort icons in the iconview component take a look in the source trunk/comp/gb.form IconView.class This use the compare event and the comp function. to compare each object text to sort the object in the array. http://gambasdoc.org/help/lang/comp?v3 http://gambasdoc.org/help/lang/special/compare?v3 -- Fabien Bodard From gambas.fr at ...626... Thu May 5 12:36:01 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 May 2011 12:36:01 +0200 Subject: [Gambas-user] Help on V4l on gambas. In-Reply-To: <1304541420.6659.1.camel@...2581...> References: <1304541420.6659.1.camel@...2581...> Message-ID: 2011/5/4 Hamilton Geminiano Andrioli Junior : > Hellow... > I just upgrade my sytem to the new ubuntu 11.04. > Then, the package gb.v4l simply desapeard... > now i can't use ?WebCam on Gambas. > > when i use Private WebCam as VideoDevice none hapens.. and there is an > error. what version of gambas? On version 3 it's corrected. it's because ubuntu have removed the videodev.h file from their paquage files. And gb.V4l need it to compile. ubuntu bugging us, now (and i use it :/ ... but i think not for a long time) > > Please, how to correct this? > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. ?Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas.fr at ...626... Thu May 5 12:37:33 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 May 2011 12:37:33 +0200 Subject: [Gambas-user] Can someone explain why this works? In-Reply-To: <20110505051515.M87638@...951...> References: <20110505051515.M87638@...951...> Message-ID: because text.max is not text.count ! http://gambasdoc.org/help/comp/gb/array/max?v3 2011/5/5 nando : > Benoit, > > Can you explain why this works and the reasoning behind it? > I would think there would be dimension issues on some lines > > > DIM i AS Integer, Text AS String[4, 4, 4, 4] > > Text = ["Just", "test"] ? ? ? ?'<--how to load Text with multi-dimension text > > FOR i = 0 TO Text.Max > ? ?PRINT Text[i] ? ? ? ? ? ? ?'<--why does this not show bad dimensions error? > NEXT > > > -Fernando > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. ?Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Thu May 5 12:46:34 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Thu, 05 May 2011 06:46:34 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> <4DC235B5.4070006@...1887...> <20110505053719.M86171@...951...> <4DC239AE.2080501@...1887...> <20110505060855.M92426@...951...> Message-ID: <4DC2800A.70001@...1887...> On 05/05/2011 06:31 AM, Fabien Bodard wrote: > We use that to sort icons in the iconview component > > take a look in the source > > trunk/comp/gb.form > > IconView.class > > > > This use the compare event and the comp function. to compare each > object text to sort the object in the array. > > http://gambasdoc.org/help/lang/comp?v3 > http://gambasdoc.org/help/lang/special/compare?v3 So an array could be sorted if that code was adapted for the purpose, or can I use the function in that library to do it already? Off the subject, but showing what GAMBAS can do: http://www.youtube.com/watch?v=npW2CMtJ6ow That's my project in gb3 under Ubuntu 10.10. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From rterry at ...1946... Thu May 5 13:42:25 2011 From: rterry at ...1946... (richard terry) Date: Thu, 5 May 2011 21:42:25 +1000 Subject: [Gambas-user] Lost Timer1 Message-ID: <201105052142.25491.rterry@...1946...> Hi List I "lost" a Timer (visually) on a complex form and I wanted to get rid of it. I could see it in the hierachy tree. I eventually noticed a couple of pixels right on the border of the form which after many attempts I couldn't grab, so assuming this was the timer, I just hit the delete key, which removed it. Really inconvenient, any reason the timer can't have an x/y? Something must have set its x-y to minus values. Richard From gambas.fr at ...626... Thu May 5 13:50:27 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 May 2011 13:50:27 +0200 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DC2800A.70001@...1887...> References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> <4DC235B5.4070006@...1887...> <20110505053719.M86171@...951...> <4DC239AE.2080501@...1887...> <20110505060855.M92426@...951...> <4DC2800A.70001@...1887...> Message-ID: 2011/5/5 Kevin Fishburne : > On 05/05/2011 06:31 AM, Fabien Bodard wrote: >> We use that to sort icons in the iconview component >> >> take a look in the source >> >> trunk/comp/gb.form >> >> IconView.class >> it depend what you want to sort !!! say us please and more simply >> >> >> This use the compare event and the comp function. to compare each >> object text to sort the object in the array. >> >> http://gambasdoc.org/help/lang/comp?v3 >> http://gambasdoc.org/help/lang/special/compare?v3 > > So an array could be sorted if that code was adapted for the purpose, or > can I use the function in that library to do it already? > > Off the subject, but showing what GAMBAS can do: > > http://www.youtube.com/watch?v=npW2CMtJ6ow > > That's my project in gb3 under Ubuntu 10.10. :) > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. ?Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From sebikul at ...626... Thu May 5 15:36:41 2011 From: sebikul at ...626... (Sebi Kul) Date: Thu, 5 May 2011 10:36:41 -0300 Subject: [Gambas-user] Run-time bug In-Reply-To: <20110505032715.M68238@...951...> References: <20110505032715.M68238@...951...> Message-ID: <-1420946793138870234@...714...> Hi! Try to use: test[0].Add("Logon") It should work then On 05/05/2011, at 00:30, nando wrote: > ' Gambas class file > > PRIVATE test AS String[30, 30] > > > PUBLIC SUB my_test() > > test = ["Voice", "Logon"] '<---If I REM this, there is no runtime error on next line > test[0, 1] = "Logon" '<---Runtime error: Bad Number of Dimensions > > PRINT test.count > > END > > Gambas2 > > -Fernando > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From fabianfloresvadell at ...626... Thu May 5 16:42:23 2011 From: fabianfloresvadell at ...626... (=?ISO-8859-1?Q?Fabi=E1n_Flores_Vadell?=) Date: Thu, 5 May 2011 11:42:23 -0300 Subject: [Gambas-user] Better IIf? In-Reply-To: References: Message-ID: 2011/5/4 Jussi Lahtinen : > Hi! > I noticed this while debugging (from http://gambasdoc.org/help/lang/iif?v3); > "BE CAREFUL! > Contrary to IF, or the C/Perl ? operator, both TrueExpression and > FalseExpression are evaluated, whatever the value of Test is. > " > > This is pretty deceptive! > Can this be re-implement as syntactic sugar (compiler would turn IIf to > normal If/Else/Then structure)? > > Jussi +1 If TrueExpression or/and FalseExpression are calls to methods, leads to a logical error because both methods are executed. Fabi?n Flores Vadell -- www.comoprogramarcongambas.blogspot.com www.speedbooksargentina.blogspot.com From nando_f at ...951... Thu May 5 17:59:52 2011 From: nando_f at ...951... (nando) Date: Thu, 5 May 2011 11:59:52 -0400 Subject: [Gambas-user] Can someone explain why this works? In-Reply-To: References: <20110505051515.M87638@...951...> Message-ID: <20110505155821.M76861@...951...> The question really is how PRINT Text[i] works when it is DIM'd as a 4D array ---------- Original Message ----------- From: Fabien Bodard To: nando_f at ...951..., mailing list for gambas users Sent: Thu, 5 May 2011 12:37:33 +0200 Subject: Re: [Gambas-user] Can someone explain why this works? > because text.max is not text.count ! > > http://gambasdoc.org/help/comp/gb/array/max?v3 > > 2011/5/5 nando : > > Benoit, > > > > Can you explain why this works and the reasoning behind it? > > I would think there would be dimension issues on some lines > > > > > > DIM i AS Integer, Text AS String[4, 4, 4, 4] > > > > Text = ["Just", "test"] ? ? ? ?'<--how to load Text with multi-dimension text > > > > FOR i = 0 TO Text.Max > > ? ?PRINT Text[i] ? ? ? ? ? ? ?'<--why does this not show bad dimensions error? > > NEXT > > > > > > -Fernando > > > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. ?Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From handriolijr at ...626... Thu May 5 18:05:57 2011 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Thu, 05 May 2011 13:05:57 -0300 Subject: [Gambas-user] Help on V4l on gambas. In-Reply-To: References: <1304541420.6659.1.camel@...2581...> Message-ID: <1304611557.2503.0.camel@...2581...> Is Gambas 3 stable???? Em Qui, 2011-05-05 ?s 12:36 +0200, Fabien Bodard escreveu: > 2011/5/4 Hamilton Geminiano Andrioli Junior : > > Hellow... > > I just upgrade my sytem to the new ubuntu 11.04. > > Then, the package gb.v4l simply desapeard... > > now i can't use WebCam on Gambas. > > > > when i use Private WebCam as VideoDevice none hapens.. and there is an > > error. > > what version of gambas? > > On version 3 it's corrected. > > it's because ubuntu have removed the videodev.h file from their > paquage files. And gb.V4l need it to compile. > > ubuntu bugging us, now (and i use it :/ ... but i think not for a long time) > > > > > Please, how to correct this? > > > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > From nando_f at ...951... Thu May 5 18:06:05 2011 From: nando_f at ...951... (nando) Date: Thu, 5 May 2011 12:06:05 -0400 Subject: [Gambas-user] Lost Timer1 In-Reply-To: <201105052142.25491.rterry@...1946...> References: <201105052142.25491.rterry@...1946...> Message-ID: <20110505160344.M66425@...951...> I've had similar happen. Now, I create a visible=false panel called invisible_stuff and put things on it I can negative x,y it off the form so I cannot delete it accidentally and I must deliberatly change x,y to alter items on it. ---------- Original Message ----------- From: richard terry To: mailing list for gambas users Sent: Thu, 5 May 2011 21:42:25 +1000 Subject: [Gambas-user] Lost Timer1 > Hi List > > I "lost" a Timer (visually) on a complex form and I wanted to get rid of it. I > could see it in the hierachy tree. > > I eventually noticed a couple of pixels right on the border of the form which > after many attempts I couldn't grab, so assuming this was the timer, I just > hit the delete key, which removed it. > > Really inconvenient, any reason the timer can't have an x/y? Something must > have set its x-y to minus values. > > Richard > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jussi.lahtinen at ...626... Thu May 5 19:09:40 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 May 2011 20:09:40 +0300 Subject: [Gambas-user] Signal #11 in Gambas 2 In-Reply-To: <20110505053931.M9902@...951...> References: <20110505053931.M9902@...951...> Message-ID: I cannot reproduce with Gambas 2.23.0 nor with Gambas 3 rev 3831. @ Ubuntu 10.10 64bit What is your Gambas version and operating system? Jussi On Thu, May 5, 2011 at 08:43, nando wrote: > How to make the 4 line example signal #11 every time: > > 1. Place a breakpoint on the PRINT "hello" line > 2. Run the program (F5) > 3. When the program stops at the breakpoint, > highlight the word 'String[]' on line 2 > > -Fernando > > > > > SUB x() > > DIM uu AS NEW String[] > > PRINT "hello" > > END > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu May 5 19:13:50 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 May 2011 20:13:50 +0300 Subject: [Gambas-user] Can someone explain why this works? In-Reply-To: <20110505155821.M76861@...951...> References: <20110505051515.M87638@...951...> <20110505155821.M76861@...951...> Message-ID: Here you changed it to one dimensional array: Text = ["Just", "test"] So that Text[0] = "Just" and Text[1] = "test". Jussi On Thu, May 5, 2011 at 18:59, nando wrote: > The question really is how > PRINT Text[i] > works when it is DIM'd as a 4D array > > > ---------- Original Message ----------- > From: Fabien Bodard > To: nando_f at ...951..., mailing list for gambas users > > Sent: Thu, 5 May 2011 12:37:33 +0200 > Subject: Re: [Gambas-user] Can someone explain why this works? > > > because text.max is not text.count ! > > > > http://gambasdoc.org/help/comp/gb/array/max?v3 > > > > 2011/5/5 nando : > > > Benoit, > > > > > > Can you explain why this works and the reasoning behind it? > > > I would think there would be dimension issues on some lines > > > > > > > > > DIM i AS Integer, Text AS String[4, 4, 4, 4] > > > > > > Text = ["Just", "test"] '<--how to load Text with > multi-dimension text > > > > > > FOR i = 0 TO Text.Max > > > PRINT Text[i] '<--why does this not show bad dimensions > error? > > > NEXT > > > > > > > > > -Fernando > > > > > > > > > > ------------------------------------------------------------------------------ > > > WhatsUp Gold - Download Free Network Management Software > > > The most intuitive, comprehensive, and cost-effective network > > > management toolset available today. Delivers lowest initial > > > acquisition cost and overall TCO of any competing solution. > > > http://p.sf.net/sfu/whatsupgold-sd > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > -- > > Fabien Bodard > > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu May 5 19:18:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 May 2011 19:18:02 +0200 Subject: [Gambas-user] Can someone explain why this works? In-Reply-To: <20110505051515.M87638@...951...> References: <20110505051515.M87638@...951...> Message-ID: <201105051918.02274.gambas@...1...> > Benoit, > > Can you explain why this works and the reasoning behind it? > I would think there would be dimension issues on some lines > > > DIM i AS Integer, Text AS String[4, 4, 4, 4] > > Text = ["Just", "test"] '<--how to load Text with multi-dimension > text > > FOR i = 0 TO Text.Max > PRINT Text[i] '<--why does this not show bad dimensions > error? NEXT > > > -Fernando > Mmm, it shouldn't. It should raise an error instead. It's a bug. -- Beno?t Minisini From jussi.lahtinen at ...626... Thu May 5 19:22:37 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 May 2011 20:22:37 +0300 Subject: [Gambas-user] Can someone explain why this works? In-Reply-To: <201105051918.02274.gambas@...1...> References: <20110505051515.M87638@...951...> <201105051918.02274.gambas@...1...> Message-ID: Shouldn't the error message then come from this line; Text = ["Just", "test"] ? Jussi 2011/5/5 Beno?t Minisini > > Benoit, > > > > Can you explain why this works and the reasoning behind it? > > I would think there would be dimension issues on some lines > > > > > > DIM i AS Integer, Text AS String[4, 4, 4, 4] > > > > Text = ["Just", "test"] '<--how to load Text with multi-dimension > > text > > > > FOR i = 0 TO Text.Max > > PRINT Text[i] '<--why does this not show bad dimensions > > error? NEXT > > > > > > -Fernando > > > > Mmm, it shouldn't. It should raise an error instead. It's a bug. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu May 5 19:24:36 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 May 2011 19:24:36 +0200 Subject: [Gambas-user] Can someone explain why this works? In-Reply-To: <201105051918.02274.gambas@...1...> References: <20110505051515.M87638@...951...> <201105051918.02274.gambas@...1...> Message-ID: <201105051924.36779.gambas@...1...> > > Benoit, > > > > Can you explain why this works and the reasoning behind it? > > I would think there would be dimension issues on some lines > > > > > > DIM i AS Integer, Text AS String[4, 4, 4, 4] > > > > Text = ["Just", "test"] '<--how to load Text with multi-dimension > > text > > > > FOR i = 0 TO Text.Max > > > > PRINT Text[i] '<--why does this not show bad dimensions > > > > error? NEXT > > > > > > -Fernando > > Mmm, it shouldn't. It should raise an error instead. It's a bug. No, it's not a bug, it's perfectly legal. (Sorry, I'm a bit tired, I've just came back from my monthly theatre stage). A String array of four dimensions or of one dimension have the same class: "String[]". By using the [...] operator, you are creating a new one-dimensional array. That can you can legally assign to Text, which waits for a String[]. Then you lose your four-dimensional array after the assignment. Regards, -- Beno?t Minisini From gambas at ...1... Thu May 5 19:30:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 May 2011 19:30:35 +0200 Subject: [Gambas-user] Run-time bug In-Reply-To: <20110505032715.M68238@...951...> References: <20110505032715.M68238@...951...> Message-ID: <201105051930.35233.gambas@...1...> > ' Gambas class file > > PRIVATE test AS String[30, 30] > > > PUBLIC SUB my_test() > > test = ["Voice", "Logon"] '<---If I REM this, there is no runtime error > on next line test[0, 1] = "Logon" '<---Runtime error: Bad Number of > Dimensions > > PRINT test.count > > END > > Gambas2 > > -Fernando > See my answer about "can someone explain why this works?" to understand what happens. Regards, -- Beno?t Minisini From nando_f at ...951... Thu May 5 20:01:57 2011 From: nando_f at ...951... (nando) Date: Thu, 5 May 2011 14:01:57 -0400 Subject: [Gambas-user] Run-time bug In-Reply-To: <201105051930.35233.gambas@...1...> References: <20110505032715.M68238@...951...> <201105051930.35233.gambas@...1...> Message-ID: <20110505180035.M64791@...951...> Thanks Benoit, I was still thinking 'static' Thinking 'dynamic' it makes sense I will make this adjustment in my brain. Very much appreciated. -Fernando ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Thu, 5 May 2011 19:30:35 +0200 Subject: Re: [Gambas-user] Run-time bug > > ' Gambas class file > > > > PRIVATE test AS String[30, 30] > > > > > > PUBLIC SUB my_test() > > > > test = ["Voice", "Logon"] '<---If I REM this, there is no runtime error > > on next line test[0, 1] = "Logon" '<---Runtime error: Bad Number of > > Dimensions > > > > PRINT test.count > > > > END > > > > Gambas2 > > > > -Fernando > > > > See my answer about "can someone explain why this works?" to understand what > happens. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From handriolijr at ...626... Thu May 5 22:50:18 2011 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Thu, 05 May 2011 17:50:18 -0300 Subject: [Gambas-user] Panel problems!! Message-ID: <1304628618.2503.2.camel@...2581...> Hellow... I'm just compiled GAMBAS 3. So i have a problem... The FRAME control, when put in form do not show the border... Is this my problem??? Help to correct... From dag.jarle.johansen at ...626... Fri May 6 02:29:46 2011 From: dag.jarle.johansen at ...626... (Dag-Jarle Johansen) Date: Thu, 5 May 2011 21:29:46 -0300 Subject: [Gambas-user] dirchooser Message-ID: Hi developers, is there a way to filter the view of the files located in the selected folder using dirchooser? As sample, I would like to see only the files with the extention .form I did not find anything looking through the docu. Using Ubuntu 10.04 LTS/Gnome and Gambas 3, rev. 3703 Thanks and regards Dag-Jarle From shanep at ...2481... Fri May 6 05:40:25 2011 From: shanep at ...2481... (Shane Powell) Date: Fri, 06 May 2011 13:40:25 +1000 Subject: [Gambas-user] Lost Timer1 In-Reply-To: <201105052142.25491.rterry@...1946...> References: <201105052142.25491.rterry@...1946...> Message-ID: <4DC36DA9.1040806@...2481...> On 05/05/11 21:42, richard terry wrote: > Hi List > > I "lost" a Timer (visually) on a complex form and I wanted to get rid of it. I > could see it in the hierachy tree. > > I eventually noticed a couple of pixels right on the border of the form which > after many attempts I couldn't grab, so assuming this was the timer, I just > hit the delete key, which removed it. > > Really inconvenient, any reason the timer can't have an x/y? Something must > have set its x-y to minus values. > > > Richard > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user i had this same problem maybe if there was a delete option with a right click in the hierarchy tree From rterry at ...1946... Fri May 6 07:13:00 2011 From: rterry at ...1946... (richard terry) Date: Fri, 6 May 2011 15:13:00 +1000 Subject: [Gambas-user] Lost Timer1 In-Reply-To: <20110505160344.M66425@...951...> References: <201105052142.25491.rterry@...1946...> <20110505160344.M66425@...951...> Message-ID: <201105061513.00435.rterry@...1946...> On Friday 06 May 2011 02:06:05 nando wrote: > I've had similar happen. > Now, I create a visible=false panel > called invisible_stuff > and put things on it > I can negative x,y it off the form so I cannot > delete it accidentally > and I must deliberatly change x,y to alter items on it. That's a good idea, maybe a 'locked' property on a control could help as well. Richard > > > > > ---------- Original Message ----------- > From: richard terry > To: mailing list for gambas users > Sent: Thu, 5 May 2011 21:42:25 +1000 > Subject: [Gambas-user] Lost Timer1 > > > Hi List > > > > I "lost" a Timer (visually) on a complex form and I wanted to get rid of > > it. I could see it in the hierachy tree. > > > > I eventually noticed a couple of pixels right on the border of the form > > which after many attempts I couldn't grab, so assuming this was the > > timer, I just hit the delete key, which removed it. > > > > Really inconvenient, any reason the timer can't have an x/y? Something > > must have set its x-y to minus values. > > > > Richard > > > > ------------------------------------------------------------------------- > >----- WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > --------------------------------------------------------------------------- > --- WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Fri May 6 07:17:22 2011 From: rterry at ...1946... (richard terry) Date: Fri, 6 May 2011 15:17:22 +1000 Subject: [Gambas-user] Stability of Gambas3 In-Reply-To: <1304611557.2503.0.camel@...2581...> References: <1304541420.6659.1.camel@...2581...> <1304611557.2503.0.camel@...2581...> Message-ID: <201105061517.22219.rterry@...1946...> On Friday 06 May 2011 02:05:57 Hamilton Geminiano Andrioli Junior wrote: > Is Gambas 3 stable???? Remarkably stable. I run it all day every day in my practice for my medical software which is very complex (not yet complete I must add) and when it bugs out, its my bugs, not gambas3. Having said that Webveiw is a little unstable and can get Sig11's, but not much else. Any bugs are quickly fixed by the remarkable efforts of Benoit. Enjoy. Great language. Regards Richard > > Em Qui, 2011-05-05 ?s 12:36 +0200, Fabien Bodard escreveu: > > 2011/5/4 Hamilton Geminiano Andrioli Junior : > > > Hellow... > > > I just upgrade my sytem to the new ubuntu 11.04. > > > Then, the package gb.v4l simply desapeard... > > > now i can't use WebCam on Gambas. > > > > > > when i use Private WebCam as VideoDevice none hapens.. and there is an > > > error. > > > > what version of gambas? > > > > On version 3 it's corrected. > > > > it's because ubuntu have removed the videodev.h file from their > > paquage files. And gb.V4l need it to compile. > > > > ubuntu bugging us, now (and i use it :/ ... but i think not for a long > > time) > > > > > Please, how to correct this? > > > > > > > > > ----------------------------------------------------------------------- > > >------- WhatsUp Gold - Download Free Network Management Software > > > The most intuitive, comprehensive, and cost-effective network > > > management toolset available today. Delivers lowest initial > > > acquisition cost and overall TCO of any competing solution. > > > http://p.sf.net/sfu/whatsupgold-sd > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Fri May 6 07:32:12 2011 From: nando_f at ...951... (nando) Date: Fri, 6 May 2011 01:32:12 -0400 Subject: [Gambas-user] Lost Timer1 In-Reply-To: <201105061513.00435.rterry@...1946...> References: <201105052142.25491.rterry@...1946...> <20110505160344.M66425@...951...> <201105061513.00435.rterry@...1946...> Message-ID: <20110506053135.M51442@...951...> I would 'love' a locked property at design time. Many times I have clicked and moved something ....by accident of course. ---------- Original Message ----------- From: richard terry To: nando_f at ...951..., mailing list for gambas users Sent: Fri, 6 May 2011 15:13:00 +1000 Subject: Re: [Gambas-user] Lost Timer1 > On Friday 06 May 2011 02:06:05 nando wrote: > > I've had similar happen. > > Now, I create a visible=false panel > > called invisible_stuff > > and put things on it > > I can negative x,y it off the form so I cannot > > delete it accidentally > > and I must deliberatly change x,y to alter items on it. > That's a good idea, maybe a 'locked' property on a control could help as well. > > Richard > > > > > > > > > > > ---------- Original Message ----------- > > From: richard terry > > To: mailing list for gambas users > > Sent: Thu, 5 May 2011 21:42:25 +1000 > > Subject: [Gambas-user] Lost Timer1 > > > > > Hi List > > > > > > I "lost" a Timer (visually) on a complex form and I wanted to get rid of > > > it. I could see it in the hierachy tree. > > > > > > I eventually noticed a couple of pixels right on the border of the form > > > which after many attempts I couldn't grab, so assuming this was the > > > timer, I just hit the delete key, which removed it. > > > > > > Really inconvenient, any reason the timer can't have an x/y? Something > > > must have set its x-y to minus values. > > > > > > Richard > > > > > > ------------------------------------------------------------------------- > > >----- WhatsUp Gold - Download Free Network Management Software > > > The most intuitive, comprehensive, and cost-effective network > > > management toolset available today. Delivers lowest initial > > > acquisition cost and overall TCO of any competing solution. > > > http://p.sf.net/sfu/whatsupgold-sd > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------- End of Original Message ------- > > > > > > --------------------------------------------------------------------------- > > --- WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From eilert-sprachen at ...221... Fri May 6 08:38:38 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 06 May 2011 08:38:38 +0200 Subject: [Gambas-user] Panel problems!! In-Reply-To: <1304628618.2503.2.camel@...2581...> References: <1304628618.2503.2.camel@...2581...> Message-ID: <4DC3976E.6030501@...221...> Am 05.05.2011 22:50, schrieb Hamilton Geminiano Andrioli Junior: > Hellow... I'm just compiled GAMBAS 3. So i have a problem... The FRAME > control, when put in form do not show the border... > > Is this my problem??? > Help to correct... > Your Re: says "Panel", in your text you write "Frame". They are different. Panel shows no border, you have to switch it on, Frame shows a border and a heading text. Maybe you got confused? Regards Rolf From rterry at ...1946... Fri May 6 13:59:20 2011 From: rterry at ...1946... (richard terry) Date: Fri, 6 May 2011 21:59:20 +1000 Subject: [Gambas-user] UI consistancy question Message-ID: <201105062159.20692.rterry@...1946...> Hi List There seems to be an inconsistancy in the foreground colouring of controls, when the container they are in is disabled. For example if you have a vertical or horizonatal box, containing a number of controls, if the control is a textbox, option button, then if the container is disabled, these have their foreground become gray. If the control is a checkbox or textarea then the foreground remains black. Obviously dosn't affect function but looks inconsistant. Regards richard From jussi.lahtinen at ...626... Fri May 6 16:13:16 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 6 May 2011 17:13:16 +0300 Subject: [Gambas-user] Lost Timer1 In-Reply-To: <20110506053135.M51442@...951...> References: <201105052142.25491.rterry@...1946...> <20110505160344.M66425@...951...> <201105061513.00435.rterry@...1946...> <20110506053135.M51442@...951...> Message-ID: Would be useful indeed. Jussi On Fri, May 6, 2011 at 08:32, nando wrote: > I would 'love' a locked property at design time. > Many times I have clicked and moved something > ....by accident of course. > > > ---------- Original Message ----------- > From: richard terry > To: nando_f at ...951..., mailing list for gambas users > > Sent: Fri, 6 May 2011 15:13:00 +1000 > Subject: Re: [Gambas-user] Lost Timer1 > > > On Friday 06 May 2011 02:06:05 nando wrote: > > > I've had similar happen. > > > Now, I create a visible=false panel > > > called invisible_stuff > > > and put things on it > > > I can negative x,y it off the form so I cannot > > > delete it accidentally > > > and I must deliberatly change x,y to alter items on it. > > That's a good idea, maybe a 'locked' property on a control could help as > well. > > > > Richard > > > > > > > > > > > > > > > > > ---------- Original Message ----------- > > > From: richard terry > > > To: mailing list for gambas users > > > Sent: Thu, 5 May 2011 21:42:25 +1000 > > > Subject: [Gambas-user] Lost Timer1 > > > > > > > Hi List > > > > > > > > I "lost" a Timer (visually) on a complex form and I wanted to get rid > of > > > > it. I could see it in the hierachy tree. > > > > > > > > I eventually noticed a couple of pixels right on the border of the > form > > > > which after many attempts I couldn't grab, so assuming this was the > > > > timer, I just hit the delete key, which removed it. > > > > > > > > Really inconvenient, any reason the timer can't have an x/y? > Something > > > > must have set its x-y to minus values. > > > > > > > > Richard > > > > > > > > > ------------------------------------------------------------------------- > > > >----- WhatsUp Gold - Download Free Network Management Software > > > > The most intuitive, comprehensive, and cost-effective network > > > > management toolset available today. Delivers lowest initial > > > > acquisition cost and overall TCO of any competing solution. > > > > http://p.sf.net/sfu/whatsupgold-sd > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------- End of Original Message ------- > > > > > > > > > > --------------------------------------------------------------------------- > > > --- WhatsUp Gold - Download Free Network Management Software > > > The most intuitive, comprehensive, and cost-effective network > > > management toolset available today. Delivers lowest initial > > > acquisition cost and overall TCO of any competing solution. > > > http://p.sf.net/sfu/whatsupgold-sd > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri May 6 16:52:44 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 6 May 2011 16:52:44 +0200 Subject: [Gambas-user] Panel problems!! In-Reply-To: <4DC3976E.6030501@...221...> References: <1304628618.2503.2.camel@...2581...> <4DC3976E.6030501@...221...> Message-ID: YOU are into KDE4 AND KDE4 Oxygen style not draw panel border (or just a little thing)... chanche Kde widjet style and you will understand :) 2011/5/6 Rolf-Werner Eilert : > Am 05.05.2011 22:50, schrieb Hamilton Geminiano Andrioli Junior: >> Hellow... I'm just compiled GAMBAS 3. So i have a problem... The FRAME >> control, when put in form do not show the border... >> >> Is this my problem??? >> Help to correct... >> > > Your Re: says "Panel", in your text you write "Frame". They are > different. Panel shows no border, you have to switch it on, Frame shows > a border and a heading text. Maybe you got confused? > > Regards > > Rolf > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. ?Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From rterry at ...1946... Sat May 7 01:10:47 2011 From: rterry at ...1946... (richard terry) Date: Sat, 7 May 2011 09:10:47 +1000 Subject: [Gambas-user] Lost Timer1 In-Reply-To: References: <201105052142.25491.rterry@...1946...> <20110506053135.M51442@...951...> Message-ID: <201105070910.47506.rterry@...1946...> On Saturday 07 May 2011 00:13:16 Jussi Lahtinen wrote: > Would be useful indeed. You can of course Lock the whole form design already with the lock button at the top, I meant the individual control. > > Jussi > > On Fri, May 6, 2011 at 08:32, nando wrote: > > I would 'love' a locked property at design time. > > Many times I have clicked and moved something > > ....by accident of course. > > > > > > ---------- Original Message ----------- > > From: richard terry > > To: nando_f at ...951..., mailing list for gambas users > > > > Sent: Fri, 6 May 2011 15:13:00 +1000 > > Subject: Re: [Gambas-user] Lost Timer1 > > > > > On Friday 06 May 2011 02:06:05 nando wrote: > > > > I've had similar happen. > > > > Now, I create a visible=false panel > > > > called invisible_stuff > > > > and put things on it > > > > I can negative x,y it off the form so I cannot > > > > delete it accidentally > > > > and I must deliberatly change x,y to alter items on it. > > > > > > That's a good idea, maybe a 'locked' property on a control could help > > > as > > > > well. > > > > > Richard > > > > > > > ---------- Original Message ----------- > > > > From: richard terry > > > > To: mailing list for gambas users > > > > Sent: Thu, 5 May 2011 21:42:25 +1000 > > > > Subject: [Gambas-user] Lost Timer1 > > > > > > > > > Hi List > > > > > > > > > > I "lost" a Timer (visually) on a complex form and I wanted to get > > > > > rid > > > > of > > > > > > > it. I could see it in the hierachy tree. > > > > > > > > > > I eventually noticed a couple of pixels right on the border of the > > > > form > > > > > > > which after many attempts I couldn't grab, so assuming this was the > > > > > timer, I just hit the delete key, which removed it. > > > > > > > > > > Really inconvenient, any reason the timer can't have an x/y? > > > > Something > > > > > > > must have set its x-y to minus values. > > > > > > > > > > Richard > > > > ------------------------------------------------------------------------- > > > > > > >----- WhatsUp Gold - Download Free Network Management Software > > > > > The most intuitive, comprehensive, and cost-effective network > > > > > management toolset available today. Delivers lowest initial > > > > > acquisition cost and overall TCO of any competing solution. > > > > > http://p.sf.net/sfu/whatsupgold-sd > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------- > >-- > > > > > > --- WhatsUp Gold - Download Free Network Management Software > > > > The most intuitive, comprehensive, and cost-effective network > > > > management toolset available today. Delivers lowest initial > > > > acquisition cost and overall TCO of any competing solution. > > > > http://p.sf.net/sfu/whatsupgold-sd > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > >----- > > > > > WhatsUp Gold - Download Free Network Management Software > > > The most intuitive, comprehensive, and cost-effective network > > > management toolset available today. Delivers lowest initial > > > acquisition cost and overall TCO of any competing solution. > > > http://p.sf.net/sfu/whatsupgold-sd > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------- End of Original Message ------- > > > > > > > > ------------------------------------------------------------------------- > >----- WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sun May 8 13:57:46 2011 From: rterry at ...1946... (richard terry) Date: Sun, 8 May 2011 21:57:46 +1000 Subject: [Gambas-user] svn help needed Message-ID: <201105082157.46724.rterry@...1946...> Hi list and to any svn experts I inadvertently ran my mouse over my code tree, and accidently dragged my library folder inot the preferences folder. Now when trying to commit I get this: A + preferences/library M startup/modStartUp.module D C library > local delete, incoming edit upon update D library/FLibrary.form D library/FLibrary.class Any idea's how to solve this? Regards Richard From sotema at ...626... Sun May 8 15:37:02 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Sun, 08 May 2011 15:37:02 +0200 Subject: [Gambas-user] make error with rev 3836 Message-ID: <1304861822.13822.4.camel@...2516...> Ubuntu 10.04 x86_64 gnome ggridview.cpp: In function ?gboolean cb_keypress(GtkWidget*, GdkEventKey*, gGridView*)?: ggridview.cpp:703: error: ?GDK_KEY_Up? was not declared in this scope ggridview.cpp:707: error: ?GDK_KEY_Down? was not declared in this scope ggridview.cpp:711: error: ?GDK_KEY_Left? was not declared in this scope ggridview.cpp:715: error: ?GDK_KEY_Right? was not declared in this scope ggridview.cpp:719: error: ?GDK_KEY_Home? was not declared in this scope ggridview.cpp:727: error: ?GDK_KEY_End? was not declared in this scope ggridview.cpp:735: error: ?GDK_KEY_Page_Down? was not declared in this scope ggridview.cpp:748: error: ?GDK_KEY_Page_Up? was not declared in this scope make[4]: *** [ggridview.lo] Errore 1 make[4]: uscita dalla directory ?/home/emanuele/Gambas3/trunk/gb.gtk/src? From jussi.lahtinen at ...626... Sun May 8 20:40:15 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 8 May 2011 21:40:15 +0300 Subject: [Gambas-user] svn help needed In-Reply-To: <201105082157.46724.rterry@...1946...> References: <201105082157.46724.rterry@...1946...> Message-ID: I'm not svn expert, but I would just delete the mangled source code folder, and run checkout again. Jussi On Sun, May 8, 2011 at 14:57, richard terry wrote: > Hi list and to any svn experts > > I inadvertently ran my mouse over my code tree, and accidently dragged my > library folder inot the preferences folder. > > Now when trying to commit I get this: > > A + preferences/library > M startup/modStartUp.module > D C library > > local delete, incoming edit upon update > D library/FLibrary.form > D library/FLibrary.class > > Any idea's how to solve this? > > Regards > > Richard > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sebikul at ...626... Mon May 9 00:14:45 2011 From: sebikul at ...626... (Sebi Kul) Date: Sun, 08 May 2011 19:14:45 -0300 Subject: [Gambas-user] IconPanel doesn't follow Enabled propriety Message-ID: <4DC715D5.6020601@...626...> Hi all! I was just testing my app and I realized that when I do: ------ Me.Enabled=False ------ or ------ IconPanel1.Enabled=False ------ Although the form is disabled, and the IconPanel container is disabled, the icon list isn't (meaning that the user can still change the list index and raise new events when it is supposed that he shouldn't). Could anybody check this to know if it's only my (app) problem or if it's actually a bug that needs to be reported? Thanks!! -------------- next part -------------- A non-text attachment was scrubbed... Name: 0xC5D113F0.asc Type: application/pgp-keys Size: 1711 bytes Desc: not available URL: From rterry at ...1946... Mon May 9 00:47:50 2011 From: rterry at ...1946... (richard terry) Date: Mon, 9 May 2011 08:47:50 +1000 Subject: [Gambas-user] svn help needed In-Reply-To: References: <201105082157.46724.rterry@...1946...> Message-ID: <201105090847.50538.rterry@...1946...> On Monday 09 May 2011 04:40:15 Jussi Lahtinen wrote: > I'm not svn expert, but I would just delete the mangled source code folder, > and run checkout again. thanks, that I just did, worked well. > Jussi > > On Sun, May 8, 2011 at 14:57, richard terry wrote: > > Hi list and to any svn experts > > > > I inadvertently ran my mouse over my code tree, and accidently dragged my > > library folder inot the preferences folder. > > > > Now when trying to commit I get this: > > > > A + preferences/library > > M startup/modStartUp.module > > D C library > > > > > local delete, incoming edit upon update > > > > D library/FLibrary.form > > D library/FLibrary.class > > > > Any idea's how to solve this? > > > > Regards > > > > Richard > > > > > > ------------------------------------------------------------------------- > >----- WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Mon May 9 10:25:18 2011 From: wally at ...2037... (wally) Date: Mon, 9 May 2011 10:25:18 +0200 Subject: [Gambas-user] make error with rev 3836 In-Reply-To: References: Message-ID: <201105091025.18609.wally@...2037...> Same problem with 3836 here: Opensuse 11.3 > > Message: 6 > Date: Sun, 08 May 2011 15:37:02 +0200 > From: Emanuele Sottocorno > Subject: [Gambas-user] make error with rev 3836 > To: gambas-user at lists.sourceforge.net > Message-ID: <1304861822.13822.4.camel at ...2516...> > Content-Type: text/plain; charset="UTF-8" > > Ubuntu 10.04 x86_64 gnome > > ggridview.cpp: In function ?gboolean cb_keypress(GtkWidget*, > GdkEventKey*, gGridView*)?: > ggridview.cpp:703: error: ?GDK_KEY_Up? was not declared in this scope > ggridview.cpp:707: error: ?GDK_KEY_Down? was not declared in this scope > ggridview.cpp:711: error: ?GDK_KEY_Left? was not declared in this scope > ggridview.cpp:715: error: ?GDK_KEY_Right? was not declared in this scope > ggridview.cpp:719: error: ?GDK_KEY_Home? was not declared in this scope > ggridview.cpp:727: error: ?GDK_KEY_End? was not declared in this scope > ggridview.cpp:735: error: ?GDK_KEY_Page_Down? was not declared in this > scope > ggridview.cpp:748: error: ?GDK_KEY_Page_Up? was not declared in this > scope > make[4]: *** [ggridview.lo] Errore 1 > make[4]: uscita dalla directory > ?/home/emanuele/Gambas3/trunk/gb.gtk/src? > > > > From gambas at ...1... Mon May 9 10:40:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 9 May 2011 10:40:35 +0200 Subject: [Gambas-user] make error with rev 3836 In-Reply-To: <201105091025.18609.wally@...2037...> References: <201105091025.18609.wally@...2037...> Message-ID: <201105091040.35940.gambas@...1...> > Same problem with 3836 here: > Opensuse 11.3 > It should be fixed in revision #3837. Regards, -- Beno?t Minisini From gambas at ...1... Mon May 9 10:40:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 9 May 2011 10:40:55 +0200 Subject: [Gambas-user] IconPanel doesn't follow Enabled propriety In-Reply-To: <4DC715D5.6020601@...626...> References: <4DC715D5.6020601@...626...> Message-ID: <201105091040.55932.gambas@...1...> > Hi all! > > I was just testing my app and I realized that when I do: > ------ > Me.Enabled=False > ------ > or > ------ > IconPanel1.Enabled=False > ------ > Although the form is disabled, and the IconPanel container is disabled, > the icon list isn't (meaning that the user can still change the list > index and raise new events when it is supposed that he shouldn't). > > Could anybody check this to know if it's only my (app) problem or if > it's actually a bug that needs to be reported? > > Thanks!! It's a bug that should be fixed in revision #3837. Regards, -- Beno?t Minisini From sotema at ...626... Mon May 9 16:10:04 2011 From: sotema at ...626... (Emanuele Sottocorno) Date: Mon, 09 May 2011 16:10:04 +0200 Subject: [Gambas-user] make error with rev 3836 In-Reply-To: <201105091040.35940.gambas@...1...> References: <201105091025.18609.wally@...2037...> <201105091040.35940.gambas@...1...> Message-ID: <1304950204.1703.2.camel@...2516...> fixed thanks, Regards. Il giorno lun, 09/05/2011 alle 10.40 +0200, Beno?t Minisini ha scritto: > > Same problem with 3836 here: > > Opensuse 11.3 > > > > It should be fixed in revision #3837. > > Regards, > From gambas.fr at ...626... Mon May 9 18:02:05 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 9 May 2011 18:02:05 +0200 Subject: [Gambas-user] Help on V4l on gambas. In-Reply-To: <1304611557.2503.0.camel@...2581...> References: <1304541420.6659.1.camel@...2581...> <1304611557.2503.0.camel@...2581...> Message-ID: 2011/5/5 Hamilton Geminiano Andrioli Junior : > Is Gambas 3 stable???? RC1 is not released yet but it's stable since many month > Em Qui, 2011-05-05 ?s 12:36 +0200, Fabien Bodard escreveu: >> 2011/5/4 Hamilton Geminiano Andrioli Junior : >> > Hellow... >> > I just upgrade my sytem to the new ubuntu 11.04. >> > Then, the package gb.v4l simply desapeard... >> > now i can't use ?WebCam on Gambas. >> > >> > when i use Private WebCam as VideoDevice none hapens.. and there is an >> > error. >> >> what version of gambas? >> >> On version 3 it's corrected. >> >> it's because ubuntu have removed the videodev.h file from their >> paquage files. And gb.V4l need it to compile. >> >> ubuntu bugging us, now (and i use it :/ ... but i think not for a long time) >> >> > >> > Please, how to correct this? >> > >> > >> > ------------------------------------------------------------------------------ >> > WhatsUp Gold - Download Free Network Management Software >> > The most intuitive, comprehensive, and cost-effective network >> > management toolset available today. ?Delivers lowest initial >> > acquisition cost and overall TCO of any competing solution. >> > http://p.sf.net/sfu/whatsupgold-sd >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. ?Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From kevinfishburne at ...1887... Tue May 10 02:27:53 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 09 May 2011 20:27:53 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> <4DC235B5.4070006@...1887...> <20110505053719.M86171@...951...> <4DC239AE.2080501@...1887...> <20110505060855.M92426@...951...> <4DC2800A.70001@...1887...> Message-ID: <4DC88689.8030300@...1887...> On 05/05/2011 07:50 AM, Fabien Bodard wrote: > 2011/5/5 Kevin Fishburne: >> On 05/05/2011 06:31 AM, Fabien Bodard wrote: >>> We use that to sort icons in the iconview component >>> >>> take a look in the source >>> >>> trunk/comp/gb.form >>> >>> IconView.class >>> > > > it depend what you want to sort !!! > > say us please > > and more simply > Alright. Basically I have an array of structures. Each structure represents an object in the game world. Each frame/loop I examine all the objects' coordinates to determine which ones are inside the rendering area. Finally the visible objects' positions are rotated to match the orientation of the player and rendered to the screen. I need to maintain an index of the objects' rotated y coordinates and sort it. It will only be sorted when the player changes orientation (or if an object is moved by another player or physics). I need to know the order that each object should be rendered in so that they overlap properly. Rendering them in order by their post-rotated y coordinate should accomplish this. Right now objects are drawn in the order they appear in the array of object structures (random relative to their world coordinates). It needs to change dynamically based on player orientation and each object's coordinates. You can see the results of unsorted object rendering in this video: http://www.youtube.com/watch?v=HpvIcGYHVLY Sometimes rocks are behind the trees, sometimes they are in front. It's a mess. The player and other players' positions will also have to be added into this array of object numbers and y coordinates. I'd prefer to maintain a separate array, which will hopefully be faster than sorting the entire array of object structures. The hypothetical array to be sorted would look something like this: Public RenderOrder[32767, 2] As Single ' [ObjectsTotal, 0 = ObjectNumber, 1 = ObjectY] The array would be sorted by ObjectY, or RenderOrder[x, 1]. An example of before/after values would look like this: Unsorted/Before: RenderOrder[0, 0] = 10 ' Object 10 RenderOrder[0, 1] = 6000 ' Object 10 Y coordinate RenderOrder[1, 0] = 20 ' Object 20 RenderOrder[1, 1] = 2000 ' Object 20 Ycoordinate Sorted/After: RenderOrder[0, 0] = 20 ' Object 20 RenderOrder[0, 1] = 2000 ' Object 20 Y coordinate RenderOrder[1, 0] = 10 ' Object 10 RenderOrder[1, 1] = 6000 ' Object 10 Ycoordinate Think of it like a spreadsheet instead of an array. I need each "row" sorted by the value in a "column". The two column values are ObjectNumber and ObjectY and the row represents the array index. There's got to be something like this in GAMBAS, but if not I can start Google searching sort algorithms and make a procedure. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From nando_f at ...951... Tue May 10 03:48:36 2011 From: nando_f at ...951... (nando) Date: Mon, 9 May 2011 21:48:36 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DC88689.8030300@...1887...> References: <4DC220D9.7020309@...1887...> <20110505051852.M63443@...951...> <4DC235B5.4070006@...1887...> <20110505053719.M86171@...951...> <4DC239AE.2080501@...1887...> <20110505060855.M92426@...951...> <4DC2800A.70001@...1887...> <4DC88689.8030300@...1887...> Message-ID: <20110510014001.M24443@...951...> I looked at the YouTube: cool!!! After working with OpenGL, you basically need to calculate which is nearer or farther away from the 'eye' I don't believe there is anything native in Gambas, this is very unique. But I am thinking... ---------- Original Message ----------- From: Kevin Fishburne To: gambas-user at lists.sourceforge.net Sent: Mon, 09 May 2011 20:27:53 -0400 Subject: Re: [Gambas-user] gb3: sorting an array-like structure > On 05/05/2011 07:50 AM, Fabien Bodard wrote: > > 2011/5/5 Kevin Fishburne: > >> On 05/05/2011 06:31 AM, Fabien Bodard wrote: > >>> We use that to sort icons in the iconview component > >>> > >>> take a look in the source > >>> > >>> trunk/comp/gb.form > >>> > >>> IconView.class > >>> > > > > > > it depend what you want to sort !!! > > > > say us please > > > > and more simply > > > > Alright. Basically I have an array of structures. Each structure > represents an object in the game world. Each frame/loop I examine all > the objects' coordinates to determine which ones are inside the > rendering area. Finally the visible objects' positions are rotated to > match the orientation of the player and rendered to the screen. > > I need to maintain an index of the objects' rotated y coordinates and > sort it. It will only be sorted when the player changes orientation (or > if an object is moved by another player or physics). I need to know the > order that each object should be rendered in so that they overlap > properly. Rendering them in order by their post-rotated y coordinate > should accomplish this. > > Right now objects are drawn in the order they appear in the array of > object structures (random relative to their world coordinates). It needs > to change dynamically based on player orientation and each object's > coordinates. You can see the results of unsorted object rendering in > this video: > > http://www.youtube.com/watch?v=HpvIcGYHVLY > > Sometimes rocks are behind the trees, sometimes they are in front. It's > a mess. > > The player and other players' positions will also have to be added into > this array of object numbers and y coordinates. I'd prefer to maintain a > separate array, which will hopefully be faster than sorting the entire > array of object structures. The hypothetical array to be sorted would > look something like this: > > Public RenderOrder[32767, 2] As Single ' [ObjectsTotal, 0 = > ObjectNumber, 1 = ObjectY] > > The array would be sorted by ObjectY, or RenderOrder[x, 1]. An example > of before/after values would look like this: > > Unsorted/Before: > RenderOrder[0, 0] = 10 ' Object 10 > RenderOrder[0, 1] = 6000 ' Object 10 Y coordinate > RenderOrder[1, 0] = 20 ' Object 20 > RenderOrder[1, 1] = 2000 ' Object 20 Ycoordinate > > Sorted/After: > RenderOrder[0, 0] = 20 ' Object 20 > RenderOrder[0, 1] = 2000 ' Object 20 Y coordinate > RenderOrder[1, 0] = 10 ' Object 10 > RenderOrder[1, 1] = 6000 ' Object 10 Ycoordinate > > Think of it like a spreadsheet instead of an array. I need each "row" > sorted by the value in a "column". The two column values are > ObjectNumber and ObjectY and the row represents the array index. > > There's got to be something like this in GAMBAS, but if not I can start > Google searching sort algorithms and make a procedure. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Tue May 10 03:59:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 10 May 2011 03:59:24 +0200 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DC88689.8030300@...1887...> References: <4DC220D9.7020309@...1887...> <4DC88689.8030300@...1887...> Message-ID: <201105100359.24713.gambas@...1...> > On 05/05/2011 07:50 AM, Fabien Bodard wrote: > > 2011/5/5 Kevin Fishburne: > >> On 05/05/2011 06:31 AM, Fabien Bodard wrote: > >>> We use that to sort icons in the iconview component > >>> > >>> take a look in the source > >>> > >>> trunk/comp/gb.form > >>> > >>> IconView.class > > > > it depend what you want to sort !!! > > > > say us please > > > > and more simply > > Alright. Basically I have an array of structures. Each structure > represents an object in the game world. Each frame/loop I examine all > the objects' coordinates to determine which ones are inside the > rendering area. Finally the visible objects' positions are rotated to > match the orientation of the player and rendered to the screen. > > I need to maintain an index of the objects' rotated y coordinates and > sort it. It will only be sorted when the player changes orientation (or > if an object is moved by another player or physics). I need to know the > order that each object should be rendered in so that they overlap > properly. Rendering them in order by their post-rotated y coordinate > should accomplish this. > > Right now objects are drawn in the order they appear in the array of > object structures (random relative to their world coordinates). It needs > to change dynamically based on player orientation and each object's > coordinates. You can see the results of unsorted object rendering in > this video: > > http://www.youtube.com/watch?v=HpvIcGYHVLY > > Sometimes rocks are behind the trees, sometimes they are in front. It's > a mess. > > The player and other players' positions will also have to be added into > this array of object numbers and y coordinates. I'd prefer to maintain a > separate array, which will hopefully be faster than sorting the entire > array of object structures. The hypothetical array to be sorted would > look something like this: > > Public RenderOrder[32767, 2] As Single ' [ObjectsTotal, 0 = > ObjectNumber, 1 = ObjectY] > > The array would be sorted by ObjectY, or RenderOrder[x, 1]. An example > of before/after values would look like this: > > Unsorted/Before: > RenderOrder[0, 0] = 10 ' Object 10 > RenderOrder[0, 1] = 6000 ' Object 10 Y coordinate > RenderOrder[1, 0] = 20 ' Object 20 > RenderOrder[1, 1] = 2000 ' Object 20 Ycoordinate > > Sorted/After: > RenderOrder[0, 0] = 20 ' Object 20 > RenderOrder[0, 1] = 2000 ' Object 20 Y coordinate > RenderOrder[1, 0] = 10 ' Object 10 > RenderOrder[1, 1] = 6000 ' Object 10 Ycoordinate > > Think of it like a spreadsheet instead of an array. I need each "row" > sorted by the value in a "column". The two column values are > ObjectNumber and ObjectY and the row represents the array index. > > There's got to be something like this in GAMBAS, but if not I can start > Google searching sort algorithms and make a procedure. - Put the objects you have to draw on the screen in a temporary array. - Define the (X,Y) final coordinates in two object variables. - Implement the "_sort" special method in the object class. That way, you just have to call "Sort" to sort only the objects you want the way you want. Regards, -- Beno?t Minisini From wally at ...2037... Tue May 10 13:45:06 2011 From: wally at ...2037... (wally) Date: Tue, 10 May 2011 13:45:06 +0200 Subject: [Gambas-user] check pixel in drawingarea Message-ID: <201105101345.06808.wally@...2037...> Question on Gambas 3 I need to find pixelcolor from a drawingarea painted with the draw event. I tried already several variants of drawingarea.grab but always fail. the help for Grab is weak and typeof(drawingarea.grab) gives 13 (function) goal is to select pixel (drawn object as lines is not possible i gues) when on mouse.move over drawingarea. wally From robert1juhasz at ...626... Tue May 10 13:57:58 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Tue, 10 May 2011 13:57:58 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <201105031100.38210.gambas@...1...> References: <1303974903.2162.7.camel@...2425...> <1303978348.2162.10.camel@...2425...> <1303980667.3309.4843.camel@...2150...> <201105031100.38210.gambas@...1...> Message-ID: <1305028678.5734.28.camel@...2425...> Hello, Can anything be done with this issue? The problem is little annoying in the IDE but more annoying for the users who upgraded to 11.04 and the existing Gambas programs crash if the eval function was used. Thanks to help if you can! Robi -----Original Message----- From: Beno?t Minisini Reply-to: mailing list for gambas users To: Gambas at ...1950..., mailing list for gambas users Subject: Re: [Gambas-user] Eval error Date: Tue, 3 May 2011 11:00:38 +0200 > Yup, seems I can confirm the bug. Works OK in ubuntu 10.10, but not > 11.04. In both systems, looking at Application.Env I get: > > GDM_LANG: en_US.utf8 and > LANG: en_US.utf8 > > Regards, > Caveat > I can't test on Natty. Does someone else confirm this strange problem? From gambas at ...1... Tue May 10 14:14:11 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 10 May 2011 14:14:11 +0200 Subject: [Gambas-user] check pixel in drawingarea In-Reply-To: <201105101345.06808.wally@...2037...> References: <201105101345.06808.wally@...2037...> Message-ID: <201105101414.11468.gambas@...1...> > Question on Gambas 3 > > I need to find pixelcolor from a drawingarea painted with the draw event. > I tried already several variants of drawingarea.grab but always fail. > > the help for Grab is weak and typeof(drawingarea.grab) gives 13 (function) > > goal is to select pixel (drawn object as lines is not possible i gues) when > on mouse.move over drawingarea. > > wally > You can't, because the DrawingArea contents is stored inside the X server (or the graphic card). This is a X11 thing. You have to use an intermediate Image object in memory. Regards, -- Beno?t Minisini From wally at ...2037... Tue May 10 15:15:09 2011 From: wally at ...2037... (wally) Date: Tue, 10 May 2011 15:15:09 +0200 Subject: [Gambas-user] check pixel in drawingarea In-Reply-To: <201105101414.11468.gambas@...1...> References: <201105101345.06808.wally@...2037...> <201105101414.11468.gambas@...1...> Message-ID: <201105101515.09905.wally@...2037...> On Tuesday, May 10, 2011 14:14:11 Beno?t Minisini wrote: > > Question on Gambas 3 > > > > I need to find pixelcolor from a drawingarea painted with the draw event. > > I tried already several variants of drawingarea.grab but always fail. > > > > the help for Grab is weak and typeof(drawingarea.grab) gives 13 > > (function) > > > > goal is to select pixel (drawn object as lines is not possible i gues) > > when on mouse.move over drawingarea. > > > > wally > > You can't, because the DrawingArea contents is stored inside the X server > (or the graphic card). This is a X11 thing. > > You have to use an intermediate Image object in memory. > > Regards, that's what i tried using grab(). no idea how this works just a an example line for gb3, is highly welcome :) thx From gambas at ...1... Tue May 10 15:26:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 10 May 2011 15:26:37 +0200 Subject: [Gambas-user] check pixel in drawingarea In-Reply-To: <201105101515.09905.wally@...2037...> References: <201105101345.06808.wally@...2037...> <201105101414.11468.gambas@...1...> <201105101515.09905.wally@...2037...> Message-ID: <201105101526.38017.gambas@...1...> > On Tuesday, May 10, 2011 14:14:11 Beno?t Minisini wrote: > > > Question on Gambas 3 > > > > > > I need to find pixelcolor from a drawingarea painted with the draw > > > event. I tried already several variants of drawingarea.grab but always > > > fail. > > > > > > the help for Grab is weak and typeof(drawingarea.grab) gives 13 > > > (function) > > > > > > goal is to select pixel (drawn object as lines is not possible i gues) > > > when on mouse.move over drawingarea. > > > > > > wally > > > > You can't, because the DrawingArea contents is stored inside the X server > > (or the graphic card). This is a X11 thing. > > > > You have to use an intermediate Image object in memory. > > > > Regards, > > that's what i tried using grab(). no idea how this works > just a an example line for gb3, is highly welcome :) > thx > Grab() takes a screenshot in Gambas 2. In Gambas 3, you cannot take a screenshot of a control anymore, and the Grab() method does something else. It temporarily grabs the keyboard and the mouse so that the control gets all keyboard and mouse events, like a popup menu. So you have to use an intermediate Image for your drawings if you need the value of individual pixels. Regards, -- Beno?t Minisini From sebikul at ...626... Wed May 11 00:43:10 2011 From: sebikul at ...626... (Sebi Kul) Date: Tue, 10 May 2011 19:43:10 -0300 Subject: [Gambas-user] Dynamically loading components Message-ID: <4DC9BF7E.2000003@...626...> Hi! I am using Gambas 3 to develop a modular application. I would like to know if it's possible to load components dynamically (If the component file exist, load it, if not, skip the execution code where the component's functions are called) What I have so far is this: ========== Try Component.Load("daily-school-online.gambas") If Component.IsLoaded("daily-school-online.gambas") Then OnlineModuleLoaded = True Endif ========= But for this to work, I have to add the component as a library on the projects setting dialog, meaning that if the file does not exist, the program wont start. I also have the problem that if I don't add the component as a library, the project wont compile, as the parser will find functions that don't exist on this project, but are declared on the component. Does anybody have any ideas on how to achieve this? -------------- next part -------------- A non-text attachment was scrubbed... Name: 0xC5D113F0.asc Type: application/pgp-keys Size: 1711 bytes Desc: not available URL: From gambas at ...2524... Wed May 11 01:22:30 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 10 May 2011 23:22:30 +0000 Subject: [Gambas-user] Issue 64 in gambas: Trying to add a dependency when building an AutoPackage Installer chashes the IDE Message-ID: <0-6813199134517018827-16370468767869785317-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 64 by sebi... at ...626...: Trying to add a dependency when building an AutoPackage Installer chashes the IDE http://code.google.com/p/gambas/issues/detail?id=64 When building an installer package using AutoTools, at the time of being asked for additional dependencies, clicking the "Add" button crashes the IDE with the following message: ====== This application has raised an unexpected error and must abort. [64] Void key. FMakeInstall.SaveExtraDependencies.856 ====== Version: TRUNK Revision: r3837 Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: QT4 / GTK+ Desktop used: Gnome From gambas at ...2524... Wed May 11 01:45:03 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 10 May 2011 23:45:03 +0000 Subject: [Gambas-user] Issue 65 in gambas: Trying to add an additional file when building an AutoTools package chashes the IDE Message-ID: <0-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 65 by sebi... at ...626...: Trying to add an additional file when building an AutoTools package chashes the IDE http://code.google.com/p/gambas/issues/detail?id=65 When building an installer package using AutoTools, at the time of being asked for additional files, clicking the "Add" button crashes the IDE with the following message: ====== This application has raised an unexpected error and must abort. [64] Void key. FMakeInstall.SaveExtraFiles.862 ====== Version: TRUNK Revision: r3837 Operating system: Linux Distribution: Ubuntu Architecture: x86 GUI component: QT4 / GTK+ Desktop used: Gnome From bbruen at ...2308... Wed May 11 01:07:33 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Wed, 11 May 2011 08:37:33 +0930 Subject: [Gambas-user] Dynamically loading components In-Reply-To: <4DC9BF7E.2000003@...626...> References: <4DC9BF7E.2000003@...626...> Message-ID: <4DC9C535.9090103@...2308...> On 11/05/11 08:13, Sebi Kul wrote: > Hi! > > I am using Gambas 3 to develop a modular application. I would like to > know if it's possible to load components dynamically (If the component > file exist, load it, if not, skip the execution code where the > component's functions are called) > > What I have so far is this: > > ========== > Try Component.Load("daily-school-online.gambas") > > If Component.IsLoaded("daily-school-online.gambas") Then > OnlineModuleLoaded = True > Endif > ========= > > But for this to work, I have to add the component as a library on the > projects setting dialog, meaning that if the file does not exist, the > program wont start. I also have the problem that if I don't add the > component as a library, the project wont compile, as the parser will > find functions that don't exist on this project, but are declared on the > component. > > Does anybody have any ideas on how to achieve this? > > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I don't know if this will help, but I have had a situation that is a little bit like what I think you are after and solved it this way. Create a base component containing classes from which your optional component classes will inherit and in each of these, provide "stub" functions that will be overridden by the optional class functions. You can also use the _unknown special method in some instances to provide a general handler for "bad" calls. In other words, say daily-school-online has a class "school" with a method "connect", then create a component "daily-school-base" with a "school-base" class and have school inherit school-base. school-base should expose a method "connect" that may just raise an error "not online" or whatever. In essence, I suppose, this is a way of specifying template classes for your real classes that will provide fallback implementations of functions that will not be available if the real component is not loaded. Note that, in my case I also have to declare the object variables as the base class and then instatiate them as the real class. For example: PRIVATE o$localschool as school-base 'as a global and in the optional code section o$localschool=NEW school() But you may have to instantiate the object using a class name variable in your case (i.e. object.new("school") ) to get the compiler to ignore the missing classes. hth, bruce From gambas at ...1... Wed May 11 02:56:27 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 11 May 2011 02:56:27 +0200 Subject: [Gambas-user] Dynamically loading components In-Reply-To: <4DC9BF7E.2000003@...626...> References: <4DC9BF7E.2000003@...626...> Message-ID: <201105110256.27809.gambas@...1...> > Hi! > > I am using Gambas 3 to develop a modular application. I would like to > know if it's possible to load components dynamically (If the component > file exist, load it, if not, skip the execution code where the > component's functions are called) > > What I have so far is this: > > ========== > Try Component.Load("daily-school-online.gambas") > > If Component.IsLoaded("daily-school-online.gambas") Then > OnlineModuleLoaded = True > Endif > ========= > > But for this to work, I have to add the component as a library on the > projects setting dialog, meaning that if the file does not exist, the > program wont start. I also have the problem that if I don't add the > component as a library, the project wont compile, as the parser will > find functions that don't exist on this project, but are declared on the > component. > > Does anybody have any ideas on how to achieve this? Why do you want to dynamically load components ? In Gambas, the only reason for doing that is preventing the load of unneeded shared libraries (i.e. native components). If you are not in that case, then you can put all your code in the same project. Gambas loads a class the first time it is used, so if you don't use a class, it will never be loaded. Regards, -- Beno?t Minisini From sebikul at ...626... Wed May 11 04:04:28 2011 From: sebikul at ...626... (Sebi Kul) Date: Tue, 10 May 2011 23:04:28 -0300 Subject: [Gambas-user] Dynamically loading components In-Reply-To: <201105110256.27809.gambas@...1...> References: <4DC9BF7E.2000003@...626...> <201105110256.27809.gambas@...1...> Message-ID: <4DC9EEAC.5030508@...626...> The reason for doing this is the following: I'm developing a project which would theoretically have 2 modules, the base one (the program itself) and the online module, (which adds synchronization capabilities). Because i would like to keep the classes inside the Online module hidden, to avoid any security issues (the base project is subversioned) i am including it as a separate component. What i would like to do is let the base component look for the online module, if it finds it, load it, if not, disable the sections in the GUI that use this functions/classes. I managed to remove the compile errors by creating classes in the Base project with the same name as in the Online component, and inheriting the corresponding class. I just need to know how to load the component only if the file exist. Thanks all for your help! On mar 10 may 2011 21:56:27 ART, Beno?t Minisini wrote: >> Hi! >> >> I am using Gambas 3 to develop a modular application. I would like to >> know if it's possible to load components dynamically (If the component >> file exist, load it, if not, skip the execution code where the >> component's functions are called) >> >> What I have so far is this: >> >> ========== >> Try Component.Load("daily-school-online.gambas") >> >> If Component.IsLoaded("daily-school-online.gambas") Then >> OnlineModuleLoaded = True >> Endif >> ========= >> >> But for this to work, I have to add the component as a library on the >> projects setting dialog, meaning that if the file does not exist, the >> program wont start. I also have the problem that if I don't add the >> component as a library, the project wont compile, as the parser will >> find functions that don't exist on this project, but are declared on the >> component. >> >> Does anybody have any ideas on how to achieve this? > > Why do you want to dynamically load components ? > > In Gambas, the only reason for doing that is preventing the load of unneeded > shared libraries (i.e. native components). > > If you are not in that case, then you can put all your code in the same > project. Gambas loads a class the first time it is used, so if you don't use a > class, it will never be loaded. > > Regards, From nando_f at ...951... Wed May 11 04:34:50 2011 From: nando_f at ...951... (nando) Date: Tue, 10 May 2011 22:34:50 -0400 Subject: [Gambas-user] Dynamically loading components In-Reply-To: <4DC9EEAC.5030508@...626...> References: <4DC9BF7E.2000003@...626...> <201105110256.27809.gambas@...1...> <4DC9EEAC.5030508@...626...> Message-ID: <20110511023236.M17294@...951...> To me, it could be implemented with one Gambas main program and you SHELL or EXEC to your component Gambas programs. Thus, they're only loaded when they run. When they're done, they're freed. ---------- Original Message ----------- From: Sebi Kul To: mailing list for gambas users Cc: Beno?t Minisini Sent: Tue, 10 May 2011 23:04:28 -0300 Subject: Re: [Gambas-user] Dynamically loading components > The reason for doing this is the following: > I'm developing a project which would theoretically have 2 modules, the > base one (the program itself) and the online module, (which adds > synchronization capabilities). Because i would like to keep the classes > inside the Online module hidden, to avoid any security issues (the base > project is subversioned) i am including it as a separate component. > What i would like to do is let the base component look for the online > module, if it finds it, load it, if not, disable the sections in the > GUI that use this functions/classes. > > I managed to remove the compile errors by creating classes in the Base > project with the same name as in the Online component, and inheriting > the corresponding class. I just need to know how to load the component > only if the file exist. > > Thanks all for your help! > > On mar 10 may 2011 21:56:27 ART, Beno?t Minisini wrote: > >> Hi! > >> > >> I am using Gambas 3 to develop a modular application. I would like to > >> know if it's possible to load components dynamically (If the component > >> file exist, load it, if not, skip the execution code where the > >> component's functions are called) > >> > >> What I have so far is this: > >> > >> ========== > >> Try Component.Load("daily-school-online.gambas") > >> > >> If Component.IsLoaded("daily-school-online.gambas") Then > >> OnlineModuleLoaded = True > >> Endif > >> ========= > >> > >> But for this to work, I have to add the component as a library on the > >> projects setting dialog, meaning that if the file does not exist, the > >> program wont start. I also have the problem that if I don't add the > >> component as a library, the project wont compile, as the parser will > >> find functions that don't exist on this project, but are declared on the > >> component. > >> > >> Does anybody have any ideas on how to achieve this? > > > > Why do you want to dynamically load components ? > > > > In Gambas, the only reason for doing that is preventing the load of unneeded > > shared libraries (i.e. native components). > > > > If you are not in that case, then you can put all your code in the same > > project. Gambas loads a class the first time it is used, so if you don't use a > > class, it will never be loaded. > > > > Regards, > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nando_f at ...951... Wed May 11 04:58:58 2011 From: nando_f at ...951... (nando) Date: Tue, 10 May 2011 22:58:58 -0400 Subject: [Gambas-user] This Gambas 2 example does not work properly: Message-ID: <20110511025537.M27598@...951...> Make a label on a form: Label1 In code, run the following 3 lines: Label1.text = "B" Label1.text = Left$(Label1.text, Len(Label1.Text) - 1) Label1.text = Left$(Label1.text, 0) Line 2 or line 3 should reduce it to an empty string. It doesn't -Fernando From nando_f at ...951... Wed May 11 05:14:05 2011 From: nando_f at ...951... (nando) Date: Tue, 10 May 2011 23:14:05 -0400 Subject: [Gambas-user] This Gambas 2 example does not work properly: In-Reply-To: <20110511025537.M27598@...951...> References: <20110511025537.M27598@...951...> Message-ID: <20110511031118.M6538@...951...> The problem is setting a zero length string to the label For example 'make a label label1 on the form with text ="B" 'then run the following... DIM s AS STRING s = "D" s = Left(s, 0) PRINT Len(s) - 1, "*"; s; "*" ' s is correct: empty string Label1.text = s ' <-this does not overwrite the 'B' to empty. -Fernando ---------- Original Message ----------- From: "nando" To: "Benoit" Sent: Tue, 10 May 2011 22:58:58 -0400 Subject: [Gambas-user] This Gambas 2 example does not work properly: > Make a label on a form: Label1 > > In code, run the following 3 lines: > > Label1.text = "B" > Label1.text = Left$(Label1.text, Len(Label1.Text) - 1) > Label1.text = Left$(Label1.text, 0) > > Line 2 or line 3 should reduce it to an empty string. > It doesn't > > -Fernando > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From dosida at ...626... Wed May 11 06:10:52 2011 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 10 May 2011 22:10:52 -0600 Subject: [Gambas-user] Gambas daemon Message-ID: Hey guys, I have a couple of questions... 1) How can I create a daemon in gambas2 (gambas2.21 on Debian Lenny)? Would Application.Daemon=True be enough? 2) Would my daemon be ran as root? if not is there a way for Gambas to set that when it creates the debian package? Thanks in advance Dimitris From gambas at ...1... Wed May 11 11:50:50 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 11 May 2011 11:50:50 +0200 Subject: [Gambas-user] This Gambas 2 example does not work properly: In-Reply-To: <20110511031118.M6538@...951...> References: <20110511025537.M27598@...951...> <20110511031118.M6538@...951...> Message-ID: <201105111150.50934.gambas@...1...> > The problem is setting a zero length string to the label > For example > > > 'make a label label1 on the form with text ="B" > 'then run the following... > > DIM s AS STRING > s = "D" > s = Left(s, 0) > PRINT Len(s) - 1, "*"; s; "*" ' s is correct: empty string > Label1.text = s ' <-this does not overwrite the 'B' to > empty. > > -Fernando > > > ---------- Original Message ----------- > From: "nando" > To: "Benoit" > Sent: Tue, 10 May 2011 22:58:58 -0400 > > Subject: [Gambas-user] This Gambas 2 example does not work properly: > > Make a label on a form: Label1 > > > > In code, run the following 3 lines: > > Label1.text = "B" > > Label1.text = Left$(Label1.text, Len(Label1.Text) - 1) > > Label1.text = Left$(Label1.text, 0) > > > > Line 2 or line 3 should reduce it to an empty string. > > It doesn't > > > > -Fernando > > What is the Gambas version ? Do you use gb.gtk or gb.qt ? What is your desktop ? Regards, -- Beno?t Minisini From nando_f at ...951... Wed May 11 17:37:37 2011 From: nando_f at ...951... (nando) Date: Wed, 11 May 2011 11:37:37 -0400 Subject: [Gambas-user] This Gambas 2 example does not work properly: In-Reply-To: <201105111150.50934.gambas@...1...> References: <20110511025537.M27598@...951...> <20110511031118.M6538@...951...> <201105111150.50934.gambas@...1...> Message-ID: <20110511153409.M62731@...951...> Gambas 2.22 QT CentOS 5.4 Label1.text = "" & s 'After much testing, the above does 'set the label to an empty string if s="" 'when used in the last line of the example below. ---------- Original Message ----------- From: Beno?t Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Wed, 11 May 2011 11:50:50 +0200 Subject: Re: [Gambas-user] This Gambas 2 example does not work properly: > > The problem is setting a zero length string to the label > > For example > > > > > > 'make a label label1 on the form with text ="B" > > 'then run the following... > > > > DIM s AS STRING > > s = "D" > > s = Left(s, 0) > > PRINT Len(s) - 1, "*"; s; "*" ' s is correct: empty string > > Label1.text = s ' <-this does not overwrite the 'B' to > > empty. > > > > -Fernando > > > > > > ---------- Original Message ----------- > > From: "nando" > > To: "Benoit" > > Sent: Tue, 10 May 2011 22:58:58 -0400 > > > > Subject: [Gambas-user] This Gambas 2 example does not work properly: > > > Make a label on a form: Label1 > > > > > > In code, run the following 3 lines: > > > Label1.text = "B" > > > Label1.text = Left$(Label1.text, Len(Label1.Text) - 1) > > > Label1.text = Left$(Label1.text, 0) > > > > > > Line 2 or line 3 should reduce it to an empty string. > > > It doesn't > > > > > > -Fernando > > > > > What is the Gambas version ? Do you use gb.gtk or gb.qt ? What is your desktop > ? > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jussi.lahtinen at ...626... Wed May 11 19:08:39 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 11 May 2011 20:08:39 +0300 Subject: [Gambas-user] This Gambas 2 example does not work properly: In-Reply-To: <20110511031118.M6538@...951...> References: <20110511025537.M27598@...951...> <20110511031118.M6538@...951...> Message-ID: I cannot reproduce with Gambas 2.23.0 @ Ubuntu 10.10 64bit. Jussi On Wed, May 11, 2011 at 06:14, nando wrote: > The problem is setting a zero length string to the label > For example > > > 'make a label label1 on the form with text ="B" > 'then run the following... > > DIM s AS STRING > s = "D" > s = Left(s, 0) > PRINT Len(s) - 1, "*"; s; "*" ' s is correct: empty string > Label1.text = s ' <-this does not overwrite the 'B' to > empty. > > -Fernando > > > ---------- Original Message ----------- > From: "nando" > To: "Benoit" > Sent: Tue, 10 May 2011 22:58:58 -0400 > Subject: [Gambas-user] This Gambas 2 example does not work properly: > > > Make a label on a form: Label1 > > > > In code, run the following 3 lines: > > > > Label1.text = "B" > > Label1.text = Left$(Label1.text, Len(Label1.Text) - 1) > > Label1.text = Left$(Label1.text, 0) > > > > Line 2 or line 3 should reduce it to an empty string. > > It doesn't > > > > -Fernando > > > > > ------------------------------------------------------------------------------ > > Achieve unprecedented app performance and reliability > > What every C/C++ and Fortran developer should know. > > Learn how Intel has extended the reach of its next-generation tools > > to help boost performance applications - inlcuding clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed May 11 19:44:35 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 11 May 2011 20:44:35 +0300 Subject: [Gambas-user] This Gambas 2 example does not work properly: In-Reply-To: References: <20110511025537.M27598@...951...> <20110511031118.M6538@...951...> Message-ID: But I CAN reproduce this when using GTK+! Jussi On Wed, May 11, 2011 at 20:08, Jussi Lahtinen wrote: > I cannot reproduce with Gambas 2.23.0 @ Ubuntu 10.10 64bit. > > Jussi > > > > > On Wed, May 11, 2011 at 06:14, nando wrote: > >> The problem is setting a zero length string to the label >> For example >> >> >> 'make a label label1 on the form with text ="B" >> 'then run the following... >> >> DIM s AS STRING >> s = "D" >> s = Left(s, 0) >> PRINT Len(s) - 1, "*"; s; "*" ' s is correct: empty string >> Label1.text = s ' <-this does not overwrite the 'B' to >> empty. >> >> -Fernando >> >> >> ---------- Original Message ----------- >> From: "nando" >> To: "Benoit" >> Sent: Tue, 10 May 2011 22:58:58 -0400 >> Subject: [Gambas-user] This Gambas 2 example does not work properly: >> >> > Make a label on a form: Label1 >> > >> > In code, run the following 3 lines: >> > >> > Label1.text = "B" >> > Label1.text = Left$(Label1.text, Len(Label1.Text) - 1) >> > Label1.text = Left$(Label1.text, 0) >> > >> > Line 2 or line 3 should reduce it to an empty string. >> > It doesn't >> > >> > -Fernando >> > >> > >> ------------------------------------------------------------------------------ >> > Achieve unprecedented app performance and reliability >> > What every C/C++ and Fortran developer should know. >> > Learn how Intel has extended the reach of its next-generation tools >> > to help boost performance applications - inlcuding clusters. >> > http://p.sf.net/sfu/intel-dev2devmay >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------- End of Original Message ------- >> >> >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Wed May 11 23:05:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 11 May 2011 23:05:42 +0200 Subject: [Gambas-user] This Gambas 2 example does not work properly: In-Reply-To: <20110511025537.M27598@...951...> References: <20110511025537.M27598@...951...> Message-ID: <201105112305.43054.gambas@...1...> > Make a label on a form: Label1 > > In code, run the following 3 lines: > > Label1.text = "B" > Label1.text = Left$(Label1.text, Len(Label1.Text) - 1) > Label1.text = Left$(Label1.text, 0) > > > Line 2 or line 3 should reduce it to an empty string. > It doesn't > > -Fernando > The bug has been fixed in revision #3838. It is not present in Gambas 3. Regards, -- Beno?t Minisini From handriolijr at ...626... Thu May 12 00:53:22 2011 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Wed, 11 May 2011 19:53:22 -0300 Subject: [Gambas-user] CGI app help. Message-ID: <1305154402.2734.1.camel@...2585...> Hello world! I want to make a system for my School. Now i have to decide how and where to write it. Does anyone have a example of CGI Web based program in gambas? Thanks... From basic.gambas at ...626... Thu May 12 01:02:51 2011 From: basic.gambas at ...626... (=?ISO-8859-1?Q?Fran=E7ois_Gallo?=) Date: Thu, 12 May 2011 01:02:51 +0200 Subject: [Gambas-user] CGI app help. In-Reply-To: <1305154402.2734.1.camel@...2585...> References: <1305154402.2734.1.camel@...2585...> Message-ID: <4DCB159B.1060901@...626...> Le 12/05/2011 00:53, Hamilton Geminiano Andrioli Junior a ?crit : > Hello world! > > I want to make a system for my School. > Now i have to decide how and where to write it. > > Does anyone have a example of CGI Web based program in gambas? > > Thanks... You must know how to work a CGI script, and of course how to use Gambas programming language. It works the same way like any others programming language (Python, Ruby...). Take a look at this page : http://gambasdoc.org/help/comp/gb.web?en&v3 > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...2524... Thu May 12 01:16:42 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 May 2011 23:16:42 +0000 Subject: [Gambas-user] Issue 64 in gambas: Trying to add a dependency when building an AutoPackage Installer chashes the IDE In-Reply-To: <0-6813199134517018827-16370468767869785317-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16370468767869785317-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16370468767869785317-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 64 by benoit.m... at ...626...: Trying to add a dependency when building an AutoPackage Installer chashes the IDE http://code.google.com/p/gambas/issues/detail?id=64 (No comment was entered for this change.) From gambas at ...2524... Thu May 12 01:20:44 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 11 May 2011 23:20:44 +0000 Subject: [Gambas-user] Issue 65 in gambas: Trying to add an additional file when building an AutoTools package chashes the IDE In-Reply-To: <0-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15651862339269179302-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 65 by benoit.m... at ...626...: Trying to add an additional file when building an AutoTools package chashes the IDE http://code.google.com/p/gambas/issues/detail?id=65 (No comment was entered for this change.) From eilert-sprachen at ...221... Thu May 12 08:35:49 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 May 2011 08:35:49 +0200 Subject: [Gambas-user] CGI app help. In-Reply-To: <4DCB159B.1060901@...626...> References: <1305154402.2734.1.camel@...2585...> <4DCB159B.1060901@...626...> Message-ID: <4DCB7FC5.8030504@...221...> Am 12.05.2011 01:02, schrieb Fran?ois Gallo: > Le 12/05/2011 00:53, Hamilton Geminiano Andrioli Junior a ?crit : >> Hello world! >> >> I want to make a system for my School. >> Now i have to decide how and where to write it. >> >> Does anyone have a example of CGI Web based program in gambas? >> >> Thanks... > > You must know how to work a CGI script, and of course how to use > Gambas programming language. > > It works the same way like any others programming language (Python, > Ruby...). > > Take a look at this page : http://gambasdoc.org/help/comp/gb.web?en&v3 > >> I have made CGI apps without this class, strange - I didn't even realize it exists :-) Yesterday, I started trying around another CGI app and hit a rights' problem - read more about that in another mail. Rolf From eilert-sprachen at ...221... Thu May 12 08:57:24 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 May 2011 08:57:24 +0200 Subject: [Gambas-user] CGI app help. In-Reply-To: <1305154402.2734.1.camel@...2585...> References: <1305154402.2734.1.camel@...2585...> Message-ID: <4DCB84D4.8060803@...221...> Am 12.05.2011 00:53, schrieb Hamilton Geminiano Andrioli Junior: > Hello world! > > I want to make a system for my School. > Now i have to decide how and where to write it. > > Does anyone have a example of CGI Web based program in gambas? > > Thanks... > Hello Hamilton, I have made CGI applications based on Gambas scripts. Don't know if it is thought to be made like this (I didn't know there is a special class for it in Gambas), but this is about the basic work: You'll need a new Gambas project "for commandline use". Just to give you an idea of how this could work, here's the skeleton for a simple CGI window which has basically 3 parts: a Title-Line and two Columns (realized with a table). It is from a database questionnaire where you can switch on/off some items on the left and see the results (simple list) on the right. This is actually a thing I made for my school :-) Let the IDE compile the stuff and copy the .Gambas file into your /cgi-bin directory. In my case, however, I had to make a symlink to the actual Gambas binary because the appache wouldn't find it like that. All this is in MMain. German "schreibe" = "write", "Spalte" = "Column" PUBLIC SUB Main() schreibeHeader schreibeSeitenkopf PRINT "" PRINT "" schreibeLinkeSpalte schreibeRechteSpalte PRINT "" PRINT "
" schreibeSeitenschluss END 'To make it function, this part is the most important. Take care 'not to forget the two empty lines before Doctype. PRIVATE SUB schreibeHeader() PRINT "Content-type: text/html; charset=utf-8" PRINT "" PRINT "" PRINT "" PRINT "" PRINT "Kartei online" PRINT "" PRINT "" PRINT "" END PRIVATE SUB schreibeSeitenkopf() DIM i AS Integer PRINT "" PRINT "

Title of the CGI application

" END PRIVATE SUB schreibeLinkeSpalte() DIM t$ AS String DIM i AS Integer DIM teil AS NEW String[] PRINT "" PRINT "" PRINT "Left column:

" PRINT "

Title 1

" PRINT "
" PRINT "

Title 2

" PRINT "" END PRIVATE SUB schreibeRechteSpalte() DIM i AS Integer DIM teil AS NEW String[] PRINT "" 'Zwischenspalte hellgrau PRINT "" 'rechte Spalte wei? PRINT "

Inhalt

" PRINT "" END PRIVATE SUB schreibeSeitenschluss() PRINT "" PRINT "" END From eilert-sprachen at ...221... Thu May 12 09:14:03 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 12 May 2011 09:14:03 +0200 Subject: [Gambas-user] CGI rights to access directory Message-ID: <4DCB88BB.3070000@...221...> Now I've run into a problem I didn't see before: When my latest CGI app is to read/write data, this will partly be from a directory which requires the user to be member of a special group. As the scripts are started by appache as nobody or whatever, I wonder how this could be implemented. Does anyone here have an idea? Rolf From gambas.fr at ...626... Thu May 12 14:53:39 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 12 May 2011 14:53:39 +0200 Subject: [Gambas-user] CGI app help. In-Reply-To: <4DCB84D4.8060803@...221...> References: <1305154402.2734.1.camel@...2585...> <4DCB84D4.8060803@...221...> Message-ID: and naturally you can take a look at the code here : http://sourceforge.net/projects/gambasforge/ that is the code for : http://gambasforge.org/beta 2011/5/12 Rolf-Werner Eilert : > Am 12.05.2011 00:53, schrieb Hamilton Geminiano Andrioli Junior: >> Hello world! >> >> I want to make a system for my School. >> Now i have to decide how and where to write it. >> >> Does anyone have a example of CGI Web based program in gambas? >> >> Thanks... >> > > > Hello Hamilton, > > I have made CGI applications based on Gambas scripts. Don't know if it > is thought to be made like this (I didn't know there is a special class > for it in Gambas), but this is about the basic work: > > You'll need a new Gambas project "for commandline use". > > Just to give you an idea of how this could work, here's the skeleton for > a simple CGI window which has basically 3 parts: a Title-Line and two > Columns (realized with a table). It is from a database questionnaire > where you can switch on/off some items on the left and see the results > (simple list) on the right. This is actually a thing I made for my > school :-) > > Let the IDE compile the stuff and copy the .Gambas file into > your /cgi-bin directory. In my case, however, I had to make a > symlink to the actual Gambas binary because the appache wouldn't find it > like that. > > All this is in MMain. German "schreibe" = "write", "Spalte" = "Column" > > > PUBLIC SUB Main() > > > ? ? schreibeHeader > > ? ? schreibeSeitenkopf > > ? ? PRINT "" > ? ? PRINT "" > ? ? schreibeLinkeSpalte > ? ? schreibeRechteSpalte > ? ? PRINT "" > ? ? PRINT "
" > > ? ? schreibeSeitenschluss > > > > END > > > 'To make it function, this part is the most important. Take care > 'not to forget the two empty lines before Doctype. > > PRIVATE SUB schreibeHeader() > > ? PRINT "Content-type: text/html; charset=utf-8" > ? PRINT "" > ? PRINT "" > ? PRINT "" > ? PRINT "" > ? PRINT "Kartei online" > ? PRINT "" > > ? PRINT "" > ? PRINT "" > > END > > > PRIVATE SUB schreibeSeitenkopf() > DIM i AS Integer > > ? PRINT "" > > ? PRINT " color=\"#3261A6\">

Title of the CGI application

face=\"Trebuchet MS, Verdana, Arial, Helvetica\" size=\"-1\" > color=\"black\">" > > END > > > PRIVATE SUB schreibeLinkeSpalte() > DIM t$ AS String > DIM i AS Integer > DIM teil AS NEW String[] > > ? PRINT "" > ? ? PRINT " size=\"-1\">" > ? ? PRINT "Left column:

" > ? ? PRINT "

color=\"#3261A6\">
Title 1

MS, Verdana, Arial, Helvetica\" size=\"-1\" color=\"black\">" > > > ? ? PRINT "
" > ? ? PRINT "

color=\"#3261A6\">
Title 2

MS, Verdana, Arial, Helvetica\" size=\"-1\" color=\"black\">" > ? PRINT "" > > END > > > > > > > > PRIVATE SUB schreibeRechteSpalte() > DIM i AS Integer > DIM teil AS NEW String[] > > ? PRINT "" 'Zwischenspalte > hellgrau > > ? PRINT "" ? ? ?'rechte Spalte wei? > > ? ? ? PRINT "

color=\"#3261A6\">
Inhalt

" > > ? PRINT "" > > END > > > > PRIVATE SUB schreibeSeitenschluss() > > ? PRINT "" > ? PRINT "" > > END > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From basic.gambas at ...626... Thu May 12 15:08:02 2011 From: basic.gambas at ...626... (=?ISO-8859-1?Q?Fran=E7ois_Gallo?=) Date: Thu, 12 May 2011 15:08:02 +0200 Subject: [Gambas-user] CGI app help. In-Reply-To: References: <1305154402.2734.1.camel@...2585...> <4DCB84D4.8060803@...221...> Message-ID: <4DCBDBB2.806@...626...> Le 12/05/2011 14:53, Fabien Bodard a ?crit : > and naturally you can take a look at the code here : > > http://sourceforge.net/projects/gambasforge/ " GambasForge is a CMS writed in gambas. It provide a set of CGI's that allow to manage a gambas source sp?cific repository, forum, news, etc... " An english sentence, a french letter. There is a problem here, isn't it? (sp?cific) ;) > that is the code for : > > http://gambasforge.org/beta > > 2011/5/12 Rolf-Werner Eilert: >> Am 12.05.2011 00:53, schrieb Hamilton Geminiano Andrioli Junior: >>> Hello world! >>> >>> I want to make a system for my School. >>> Now i have to decide how and where to write it. >>> >>> Does anyone have a example of CGI Web based program in gambas? >>> >>> Thanks... >>> >> >> Hello Hamilton, >> >> I have made CGI applications based on Gambas scripts. Don't know if it >> is thought to be made like this (I didn't know there is a special class >> for it in Gambas), but this is about the basic work: >> >> You'll need a new Gambas project "for commandline use". >> >> Just to give you an idea of how this could work, here's the skeleton for >> a simple CGI window which has basically 3 parts: a Title-Line and two >> Columns (realized with a table). It is from a database questionnaire >> where you can switch on/off some items on the left and see the results >> (simple list) on the right. This is actually a thing I made for my >> school :-) >> >> Let the IDE compile the stuff and copy the.Gambas file into >> your/cgi-bin directory. In my case, however, I had to make a >> symlink to the actual Gambas binary because the appache wouldn't find it >> like that. >> >> All this is in MMain. German "schreibe" = "write", "Spalte" = "Column" >> >> >> PUBLIC SUB Main() >> >> >> schreibeHeader >> >> schreibeSeitenkopf >> >> PRINT "" >> PRINT "" >> schreibeLinkeSpalte >> schreibeRechteSpalte >> PRINT "" >> PRINT "
" >> >> schreibeSeitenschluss >> >> >> >> END >> >> >> 'To make it function, this part is the most important. Take care >> 'not to forget the two empty lines before Doctype. >> >> PRIVATE SUB schreibeHeader() >> >> PRINT "Content-type: text/html; charset=utf-8" >> PRINT "" >> PRINT "" >> PRINT "" >> PRINT "" >> PRINT "Kartei online" >> PRINT "" >> >> PRINT "" >> PRINT "" >> >> END >> >> >> PRIVATE SUB schreibeSeitenkopf() >> DIM i AS Integer >> >> PRINT "" >> >> PRINT "> color=\"#3261A6\">

Title of the CGI application

> face=\"Trebuchet MS, Verdana, Arial, Helvetica\" size=\"-1\" >> color=\"black\">" >> >> END >> >> >> PRIVATE SUB schreibeLinkeSpalte() >> DIM t$ AS String >> DIM i AS Integer >> DIM teil AS NEW String[] >> >> PRINT "" >> PRINT "> size=\"-1\">" >> PRINT "Left column:

" >> PRINT "

> color=\"#3261A6\">
Title 1

> MS, Verdana, Arial, Helvetica\" size=\"-1\" color=\"black\">" >> >> >> PRINT "
" >> PRINT "

> color=\"#3261A6\">
Title 2

> MS, Verdana, Arial, Helvetica\" size=\"-1\" color=\"black\">" >> PRINT "" >> >> END >> >> >> >> >> >> >> >> PRIVATE SUB schreibeRechteSpalte() >> DIM i AS Integer >> DIM teil AS NEW String[] >> >> PRINT "" 'Zwischenspalte >> hellgrau >> >> PRINT "" 'rechte Spalte wei? >> >> PRINT "

> color=\"#3261A6\">
Inhalt

" >> >> PRINT "" >> >> END >> >> >> >> PRIVATE SUB schreibeSeitenschluss() >> >> PRINT "" >> PRINT "" >> >> END >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas.fr at ...626... Thu May 12 15:15:08 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 12 May 2011 15:15:08 +0200 Subject: [Gambas-user] CGI app help. In-Reply-To: <4DCBDBB2.806@...626...> References: <1305154402.2734.1.camel@...2585...> <4DCB84D4.8060803@...221...> <4DCBDBB2.806@...626...> Message-ID: Le 12 mai 2011 15:08, Fran?ois Gallo a ?crit : > Le 12/05/2011 14:53, Fabien Bodard a ?crit : >> and naturally you can take a look at the code here : >> >> http://sourceforge.net/projects/gambasforge/ > > " > > GambasForge is a CMS writed in gambas. It provide a set of CGI's that > allow to manage a gambas source sp?cific repository, forum, news, etc... > > " > > An english sentence, a french letter. There is a problem here, isn't it? > > (sp?cific) > > ;) we are french ... there is no problem ! et pic?tou From basic.gambas at ...626... Thu May 12 15:17:38 2011 From: basic.gambas at ...626... (=?ISO-8859-1?Q?Fran=E7ois_Gallo?=) Date: Thu, 12 May 2011 15:17:38 +0200 Subject: [Gambas-user] CGI app help. In-Reply-To: References: <1305154402.2734.1.camel@...2585...> <4DCB84D4.8060803@...221...> <4DCBDBB2.806@...626...> Message-ID: <4DCBDDF2.5030402@...626...> Le 12/05/2011 15:15, Fabien Bodard a ?crit : > Le 12 mai 2011 15:08, Fran?ois Gallo a ?crit : >> Le 12/05/2011 14:53, Fabien Bodard a ?crit : >>> and naturally you can take a look at the code here : >>> >>> http://sourceforge.net/projects/gambasforge/ >> " >> >> GambasForge is a CMS writed in gambas. It provide a set of CGI's that >> allow to manage a gambas source sp?cific repository, forum, news, etc... >> >> " >> >> An english sentence, a french letter. There is a problem here, isn't it? >> >> (sp?cific) >> >> ;) > we are french ... there is no problem ! et pic?tou I actually agree with you. > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nando_f at ...951... Fri May 13 05:04:13 2011 From: nando_f at ...951... (nando) Date: Thu, 12 May 2011 23:04:13 -0400 Subject: [Gambas-user] CGI rights to access directory In-Reply-To: <4DCB88BB.3070000@...221...> References: <4DCB88BB.3070000@...221...> Message-ID: <20110513025631.M58732@...951...> A possibility: SGID (Set Group ID) bit Setting the SGID bit for a file sets your group ID to the file's group while the file is executing. ---------- Original Message ----------- From: Rolf-Werner Eilert To: gambas-user at lists.sourceforge.net Sent: Thu, 12 May 2011 09:14:03 +0200 Subject: [Gambas-user] CGI rights to access directory > Now I've run into a problem I didn't see before: > > When my latest CGI app is to read/write data, this will partly be from a > directory which requires the user to be member of a special group. > > As the scripts are started by appache as nobody or whatever, I wonder > how this could be implemented. > > Does anyone here have an idea? > > Rolf > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From eilert-sprachen at ...221... Fri May 13 09:36:02 2011 From: eilert-sprachen at ...221... (Sprachschule Eilert) Date: Fri, 13 May 2011 09:36:02 +0200 Subject: [Gambas-user] CGI rights to access directory In-Reply-To: <20110513025631.M58732@...951...> References: <4DCB88BB.3070000@...221...> <20110513025631.M58732@...951...> Message-ID: <4DCCDF62.1020404@...394...> No, unfortunately this doesn't have the desired effect. I guess apache will start all CGIs under a specific name (www-run or nobody or whatever). Am 13.05.2011 05:04, schrieb nando: > A possibility: > SGID (Set Group ID) bit > Setting the SGID bit for a file sets your group ID to the file's group while the file is > executing. > > > ---------- Original Message ----------- > From: Rolf-Werner Eilert > To: gambas-user at lists.sourceforge.net > Sent: Thu, 12 May 2011 09:14:03 +0200 > Subject: [Gambas-user] CGI rights to access directory > >> Now I've run into a problem I didn't see before: >> >> When my latest CGI app is to read/write data, this will partly be from a >> directory which requires the user to be member of a special group. >> >> As the scripts are started by appache as nobody or whatever, I wonder >> how this could be implemented. >> >> Does anyone here have an idea? >> >> Rolf >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Rolf-Werner Eilert SPRACHSCHULE EILERT Kollegienwall 19 - 49074 Osnabr?ck www.eilert-sprachen.de - 0541/22653 From tobiasboe1 at ...20... Sat May 14 01:44:18 2011 From: tobiasboe1 at ...20... (tobias) Date: Sat, 14 May 2011 01:44:18 +0200 Subject: [Gambas-user] Anonymous Collection Message-ID: <4DCDC252.5000408@...20...> hi, i wonder if there is a way to declare an "anonymous collection" just as one would do it with arrays: FOR EACH s IN ["a", "b"] PRINT s NEXT regards, tobi From gambas at ...1... Sat May 14 16:29:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 14 May 2011 16:29:22 +0200 Subject: [Gambas-user] Anonymous Collection In-Reply-To: <4DCDC252.5000408@...20...> References: <4DCDC252.5000408@...20...> Message-ID: <201105141629.22723.gambas@...1...> > hi, > i wonder if there is a way to declare an "anonymous collection" just as > one would do it with arrays: > FOR EACH s IN ["a", "b"] > PRINT s > NEXT > > regards, > tobi > In Gambas 3, you can do that by using the following syntax: ["key1": value1, "key2": value2 ... ] -- Beno?t Minisini From gambas at ...1... Mon May 16 02:55:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 16 May 2011 02:55:43 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <1305028678.5734.28.camel@...2425...> References: <1303974903.2162.7.camel@...2425...> <201105031100.38210.gambas@...1...> <1305028678.5734.28.camel@...2425...> Message-ID: <201105160255.43560.gambas@...1...> > Hello, > > Can anything be done with this issue? The problem is little annoying in > the IDE but more annoying for the users who upgraded to 11.04 and the > existing Gambas programs crash if the eval function was used. > Thanks to help if you can! > > Robi > Hi, I have upgraded to Natty, and I can now confirm the bug. Apparently, it comes from new optimizations of gcc that behave badly. I will investigate... -- Beno?t Minisini From gambas at ...1... Mon May 16 04:21:15 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 16 May 2011 04:21:15 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <201105160255.43560.gambas@...1...> References: <1303974903.2162.7.camel@...2425...> <1305028678.5734.28.camel@...2425...> <201105160255.43560.gambas@...1...> Message-ID: <201105160421.15192.gambas@...1...> > > Hello, > > > > Can anything be done with this issue? The problem is little annoying in > > the IDE but more annoying for the users who upgraded to 11.04 and the > > existing Gambas programs crash if the eval function was used. > > Thanks to help if you can! > > > > Robi > > Hi, > > I have upgraded to Natty, and I can now confirm the bug. Apparently, it > comes from new optimizations of gcc that behave badly. > > I will investigate... OK, it should be fixed in revision #3846. Regards, -- Beno?t Minisini From eilert-sprachen at ...221... Mon May 16 08:23:26 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 16 May 2011 08:23:26 +0200 Subject: [Gambas-user] Gambas2 and 3 on Suse 11.4 Message-ID: <4DD0C2DE.10509@...221...> Good morning everyone, Over the weekend I tried to compile Gambas 2 and 3 on a freshly set up Suse 11.4 32 bit. There were problems, however, so I include the output for the two runs. By the way: does anyone know if there is a repo for Suse 11.4 that holds an official Gambas2 version? Thanks for your hints! Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: output.tgz Type: application/x-compressed-tar Size: 34979 bytes Desc: not available URL: From eilert-sprachen at ...221... Mon May 16 08:25:13 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 16 May 2011 08:25:13 +0200 Subject: [Gambas-user] Mail too big Message-ID: <4DD0C349.9060904@...221...> Benoit, Just sent a mail which was bounced because it was too big. Packed everything into an archive and sent it again. Just forget about the old mail. Sorry for the inconvenience... Regards Rolf From wally at ...2037... Mon May 16 08:32:48 2011 From: wally at ...2037... (wally) Date: Mon, 16 May 2011 08:32:48 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library Message-ID: <201105160832.48627.wally@...2037...> Hello, i need to process an integerarray using GSL (Gnu Scientific Library) but i do not know how to do it. Does anybody have a code example how to provide the array data to gsl and get back interpolation, derivative and integral data ? wally From and.bertini at ...626... Mon May 16 12:38:54 2011 From: and.bertini at ...626... (Andrea Bertini) Date: Mon, 16 May 2011 12:38:54 +0200 Subject: [Gambas-user] Gb.pdf Message-ID: <4DD0FEBE.1090108@...626...> Can help me with a gambas3 pdf example (full with header & footer) ? Thx -- Andrea Bertini__ From jussi.lahtinen at ...626... Mon May 16 17:46:51 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 16 May 2011 18:46:51 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105160832.48627.wally@...2037...> References: <201105160832.48627.wally@...2037...> Message-ID: Not very easy task... Here is interpolation example in C. http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example-programs.html As you can see, you need to call several functions to get what you want. Declaring those in Gambas is OK, *except* determining interpolation type! You can find definition of interpolation type from "gsl_interp.h", and unfortunately it is not anything simple; typedef struct { const char * name; unsigned int min_size; void * (*alloc) (size_t size); int (*init) (void *, const double xa[], const double ya[], size_t size); int (*eval) (const void *, const double xa[], const double ya[], size_t size, double x, gsl_interp_accel *, double * y); int (*eval_deriv) (const void *, const double xa[], const double ya[], size_t size, double x, gsl_interp_accel *, double * y_p); int (*eval_deriv2) (const void *, const double xa[], const double ya[], size_t size, double x, gsl_interp_accel *, double * y_pp); int (*eval_integ) (const void *, const double xa[], const double ya[], size_t size, gsl_interp_accel *, double a, double b, double * result); void (*free) (void *); } gsl_interp_type; GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- this is used in example* Right now I don't know how to implement that reasonably in Gambas. There are at least three possibilities to overcome this problem: 1. Hope that Benoit will implement new feature to use external structures. 2. Use C to write your own interface between GSL and Gambas. Perhaps easiest option. 3. Do not use GSL at all, and write what you need purely with Gambas. That's all I can say... Also because you didn't specify what you need exactly, nor are you using Gambas 2 or 3. Jussi On Mon, May 16, 2011 at 09:32, wally wrote: > Hello, > > i need to process an integerarray using GSL (Gnu Scientific Library) > but i do not know how to do it. Does anybody have a code example > how to provide the array data to gsl and get back interpolation, derivative > and integral data ? > > wally > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Mon May 16 18:12:08 2011 From: wally at ...2037... (wally) Date: Mon, 16 May 2011 18:12:08 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library Message-ID: <201105161812.08869.wally@...2037...> Hello Jussi, in C the stuff works pretty nice, so i agree to your suggestion 2. Do all math stuff directly in Gambas is an option i should check. I think i mentioned that i use Gambas3 and want to make interpolations, derivatives and integrals from an integrarray. The array contains ADC outputs from a CCD linear array sensor measurment wally On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > Not very easy task... > Here is interpolation example in C. > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example-prog > rams.html > > As you can see, you need to call several functions to get what you want. > Declaring those in Gambas is OK, except determining interpolation type! > > You can find definition of interpolation type from "gsl_interp.h", > and unfortunately it is not anything simple; > > typedef struct { > const char * name; > unsigned int min_size; > void * (*alloc) (size_t size); > int (*init) (void *, const double xa[], const double ya[], size_t > size); > int (*eval) (const void *, const double xa[], const double ya[], > size_t size, double x, gsl_interp_accel *, double * y); > int (*eval_deriv) (const void *, const double xa[], const double > ya[], size_t size, double x, gsl_interp_accel *, double * y_p); > int (*eval_deriv2) (const void *, const double xa[], const double > ya[], size_t size, double x, gsl_interp_accel *, double * y_pp); > int (*eval_integ) (const void *, const double xa[], const double > ya[], size_t size, gsl_interp_accel *, double a, double b, double * > result); void (*free) (void *); > > } gsl_interp_type; > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- this is used in > example* > > > Right now I don't know how to implement that reasonably in Gambas. > There are at least three possibilities to overcome this problem: > > 1. Hope that Benoit will implement new feature to use external structures. > 2. Use C to write your own interface between GSL and Gambas. Perhaps > easiest option. > 3. Do not use GSL at all, and write what you need purely with Gambas. > > That's all I can say... > Also because you didn't specify what you need exactly, nor are you using > Gambas 2 or 3. > > Jussi > > On Mon, May 16, 2011 at 09:32, wally wrote: > > Hello, > > > > i need to process an integerarray using GSL (Gnu Scientific Library) > > but i do not know how to do it. Does anybody have a code example > > how to provide the array data to gsl and get back interpolation, > > derivative and integral data ? > > > > wally > > > > > > ------------------------------------------------------------------------- > > ----- Achieve unprecedented app performance and reliability > > What every C/C++ and Fortran developer should know. > > Learn how Intel has extended the reach of its next-generation tools > > to help boost performance applications - inlcuding clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user End of encapsulated message From robert1juhasz at ...626... Mon May 16 19:33:06 2011 From: robert1juhasz at ...626... (JUHASZ Robert) Date: Mon, 16 May 2011 19:33:06 +0200 Subject: [Gambas-user] Eval error In-Reply-To: <201105160421.15192.gambas@...1...> References: <1303974903.2162.7.camel@...2425...> <1305028678.5734.28.camel@...2425...> <201105160255.43560.gambas@...1...> <201105160421.15192.gambas@...1...> Message-ID: <1305567186.28094.54.camel@...2425...> Hello, Great news, many thanks. A little question: with the Ubuntu 10.10 I installed Gambas from the ubuntu software center and then I upgraded to 11.04. How can I update now to the latest revision? Or do I need to reinstall from source? Robi -----Original Message----- From: Beno?t Minisini Reply-to: mailing list for gambas users To: mailing list for gambas users Subject: Re: [Gambas-user] Eval error Date: Mon, 16 May 2011 04:21:15 +0200 > > Hello, > > > > Can anything be done with this issue? The problem is little annoying in > > the IDE but more annoying for the users who upgraded to 11.04 and the > > existing Gambas programs crash if the eval function was used. > > Thanks to help if you can! > > > > Robi > > Hi, > > I have upgraded to Natty, and I can now confirm the bug. Apparently, it > comes from new optimizations of gcc that behave badly. > > I will investigate... OK, it should be fixed in revision #3846. Regards, From gambas at ...1... Tue May 17 01:14:57 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 17 May 2011 01:14:57 +0200 Subject: [Gambas-user] Gambas2 and 3 on Suse 11.4 In-Reply-To: <4DD0C2DE.10509@...221...> References: <4DD0C2DE.10509@...221...> Message-ID: <201105170114.57810.gambas@...1...> > Good morning everyone, > > Over the weekend I tried to compile Gambas 2 and 3 on a freshly set up > Suse 11.4 32 bit. There were problems, however, so I include the output > for the two runs. > > By the way: does anyone know if there is a repo for Suse 11.4 that holds > an official Gambas2 version? > > Thanks for your hints! > > Rolf 1) You must be root to run "make install". 2) The "cannot find -ljscore" error for Gambas 3 may be a bug in the 'pkg- config' configuration files provided by OpenSuSE. To check that, please run the following commands and tell me the output: $ pkg-config --libs-only-l QtWebKit ... $ pkg-config --libs-only-L QtWebKit ... $ pkg-config --libs-only-other QtWebKit ... Regards, -- Beno?t Minisini From gambas at ...1... Tue May 17 01:16:14 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 17 May 2011 01:16:14 +0200 Subject: [Gambas-user] Better IIf? In-Reply-To: References: Message-ID: <201105170116.14089.gambas@...1...> > 2011/5/4 Jussi Lahtinen : > > Hi! > > I noticed this while debugging (from > > http://gambasdoc.org/help/lang/iif?v3); "BE CAREFUL! > > Contrary to IF, or the C/Perl ? operator, both TrueExpression and > > FalseExpression are evaluated, whatever the value of Test is. > > " > > > > This is pretty deceptive! > > Can this be re-implement as syntactic sugar (compiler would turn IIf to > > normal If/Else/Then structure)? > > > > Jussi > > +1 > > If TrueExpression or/and FalseExpression are calls to methods, leads > to a logical error because both methods are executed. > > > Fabi?n Flores Vadell > IIf() is a function, not a trinary operator as in C or Perl. There is no trinary operator in Gambas, and you won't see it before Gambas 4 at least! Regards, -- Beno?t Minisini From support at ...2529... Tue May 17 01:31:18 2011 From: support at ...2529... (John Spikowski) Date: Mon, 16 May 2011 16:31:18 -0700 Subject: [Gambas-user] Better IIf? In-Reply-To: <201105170116.14089.gambas@...1...> References: <201105170116.14089.gambas@...1...> Message-ID: <1305588678.2086.2.camel@...1833...> On Tue, 2011-05-17 at 01:16 +0200, Beno?t Minisini wrote: > and you won't see it before Gambas 4 at least! Are you talking about Gambas 3 RC1? ;-) From gambas at ...1... Tue May 17 02:48:35 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 17 May 2011 02:48:35 +0200 Subject: [Gambas-user] Lost Timer1 In-Reply-To: <201105052142.25491.rterry@...1946...> References: <201105052142.25491.rterry@...1946...> Message-ID: <201105170248.35235.gambas@...1...> > Hi List > > I "lost" a Timer (visually) on a complex form and I wanted to get rid of > it. I could see it in the hierachy tree. > > I eventually noticed a couple of pixels right on the border of the form > which after many attempts I couldn't grab, so assuming this was the timer, > I just hit the delete key, which removed it. > > Really inconvenient, any reason the timer can't have an x/y? Something must > have set its x-y to minus values. > > > Richard > Timer control (and other virtual controls) got their X,Y properties back in revision #3847. Regards, -- Beno?t Minisini From rterry at ...1946... Tue May 17 04:45:07 2011 From: rterry at ...1946... (richard terry) Date: Tue, 17 May 2011 12:45:07 +1000 Subject: [Gambas-user] Lost Timer1 In-Reply-To: <201105170248.35235.gambas@...1...> References: <201105052142.25491.rterry@...1946...> <201105170248.35235.gambas@...1...> Message-ID: <201105171245.07142.rterry@...1946...> On Tuesday 17 May 2011 10:48:35 Beno?t Minisini wrote: > > Hi List > > > > I "lost" a Timer (visually) on a complex form and I wanted to get rid of > > it. I could see it in the hierachy tree. > > > > I eventually noticed a couple of pixels right on the border of the form > > which after many attempts I couldn't grab, so assuming this was the > > timer, I just hit the delete key, which removed it. > > > > Really inconvenient, any reason the timer can't have an x/y? Something > > must have set its x-y to minus values. > > > > > > Richard > > Timer control (and other virtual controls) got their X,Y properties back in > revision #3847. > > Regards, > thanks richard From kevinfishburne at ...1887... Tue May 17 06:56:57 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 17 May 2011 00:56:57 -0400 Subject: [Gambas-user] gb3: "System error #90: Message too long in Network:604." Message-ID: <4DD20019.2010704@...1887...> I was trying to send a 100+ Kb UDP packet and received this error. Is this a bug, or am I missing something? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- A non-text attachment was scrubbed... Name: error.jpg Type: image/jpeg Size: 135728 bytes Desc: not available URL: From eilert-sprachen at ...221... Tue May 17 08:37:32 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 May 2011 08:37:32 +0200 Subject: [Gambas-user] Gambas2 and 3 on Suse 11.4 In-Reply-To: <201105170114.57810.gambas@...1...> References: <4DD0C2DE.10509@...221...> <201105170114.57810.gambas@...1...> Message-ID: <4DD217AC.6000501@...221...> Am 17.05.2011 01:14, schrieb Beno?t Minisini: >> Good morning everyone, >> >> Over the weekend I tried to compile Gambas 2 and 3 on a freshly set up >> Suse 11.4 32 bit. There were problems, however, so I include the output >> for the two runs. >> >> By the way: does anyone know if there is a repo for Suse 11.4 that holds >> an official Gambas2 version? >> >> Thanks for your hints! >> >> Rolf > > 1) You must be root to run "make install". > > 2) The "cannot find -ljscore" error for Gambas 3 may be a bug in the 'pkg- > config' configuration files provided by OpenSuSE. > > To check that, please run the following commands and tell me the output: > > $ pkg-config --libs-only-l QtWebKit > ... > $ pkg-config --libs-only-L QtWebKit > ... > $ pkg-config --libs-only-other QtWebKit > ... > > Regards, > 1) I know, but it never came to that point... 2) Only the first one has a result: -lQtWebKit -lQtGui -lQtNetwork -lQtCore Does this tell you something? Regards Rolf P. S.: Have you got a webserver meanwhile like you were searching for? From munix9 at ...1601... Tue May 17 10:04:11 2011 From: munix9 at ...1601... (munix9) Date: Tue, 17 May 2011 10:04:11 +0200 Subject: [Gambas-user] Gambas2 and 3 on Suse 11.4 In-Reply-To: <4DD217AC.6000501@...221...> References: <4DD0C2DE.10509@...221...> <201105170114.57810.gambas@...1...> <4DD217AC.6000501@...221...> Message-ID: <4DD22BFB.2030902@...1601...> hi, take a look at http://software.opensuse.org/search to find the packages, eg. http://software.opensuse.org/search?q=gambas2&baseproject=openSUSE%3A11.4&lang=de&exclude_debug=true currently there exists two official repos with gambas2 packages: http://download.opensuse.org/repositories/KDE:/KDE3/openSUSE_11.4/ http://download.opensuse.org/repositories/Education/openSUSE_11.4/ to (temporary) fix the "-ljscore" thing, I've patched the official libqt4 opensuse sources: for an updated opensuse 11.4 with libqt4-4.7.1 https://build.opensuse.org/project/monitor?project=home%3Amunix9%3AopenSUSE%3A11.4%3AUpdate the package which includes jscore is libQtWebKit-devel for an "extended" opensuse 11.4 with libqt4-4.7.3 https://build.opensuse.org/project/show?project=home%3Amunix9%3AopenSUSE%3A11.4%3AExtended the package which includes jscore is libQtWebKit-devel basic tests for compiling gambas 3 were successful with these packages - if I have more time, I will make the gambas3 packages available in my obs repo. ciao paolo Am 17.05.2011 08:37, schrieb Rolf-Werner Eilert: > Am 17.05.2011 01:14, schrieb Beno?t Minisini: >>> Good morning everyone, >>> >>> Over the weekend I tried to compile Gambas 2 and 3 on a freshly set up >>> Suse 11.4 32 bit. There were problems, however, so I include the output >>> for the two runs. >>> >>> By the way: does anyone know if there is a repo for Suse 11.4 that holds >>> an official Gambas2 version? >>> >>> Thanks for your hints! >>> >>> Rolf >> >> 1) You must be root to run "make install". >> >> 2) The "cannot find -ljscore" error for Gambas 3 may be a bug in the 'pkg- >> config' configuration files provided by OpenSuSE. >> >> To check that, please run the following commands and tell me the output: >> >> $ pkg-config --libs-only-l QtWebKit >> ... >> $ pkg-config --libs-only-L QtWebKit >> ... >> $ pkg-config --libs-only-other QtWebKit >> ... >> >> Regards, >> > > 1) I know, but it never came to that point... > > 2) Only the first one has a result: > > -lQtWebKit -lQtGui -lQtNetwork -lQtCore > > Does this tell you something? > > Regards > > Rolf > > > P. S.: Have you got a webserver meanwhile like you were searching for? > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Tue May 17 11:47:34 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 May 2011 11:47:34 +0200 Subject: [Gambas-user] Gambas2 and 3 on Suse 11.4 In-Reply-To: <4DD22BFB.2030902@...1601...> References: <4DD0C2DE.10509@...221...> <201105170114.57810.gambas@...1...> <4DD217AC.6000501@...221...> <4DD22BFB.2030902@...1601...> Message-ID: <4DD24436.8020201@...221...> Hi Paolo, thanks for the hints! I used the Education repo and installed 2.22 from there, it seems to run flawlessly. As to libqt: what do you mean "extended" and how do I find the version on my system? Rolf Am 17.05.2011 10:04, schrieb munix9: > > hi, > > take a look at http://software.opensuse.org/search to find the packages, eg. > http://software.opensuse.org/search?q=gambas2&baseproject=openSUSE%3A11.4&lang=de&exclude_debug=true > > currently there exists two official repos with gambas2 packages: > http://download.opensuse.org/repositories/KDE:/KDE3/openSUSE_11.4/ > http://download.opensuse.org/repositories/Education/openSUSE_11.4/ > > to (temporary) fix the "-ljscore" thing, I've patched the official > libqt4 opensuse sources: > > for an updated opensuse 11.4 with libqt4-4.7.1 > https://build.opensuse.org/project/monitor?project=home%3Amunix9%3AopenSUSE%3A11.4%3AUpdate > the package which includes jscore is libQtWebKit-devel > > for an "extended" opensuse 11.4 with libqt4-4.7.3 > https://build.opensuse.org/project/show?project=home%3Amunix9%3AopenSUSE%3A11.4%3AExtended > the package which includes jscore is libQtWebKit-devel > > basic tests for compiling gambas 3 were successful with these packages - > if I have more time, I will make the gambas3 packages available in my > obs repo. > > ciao > paolo > > > Am 17.05.2011 08:37, schrieb Rolf-Werner Eilert: >> Am 17.05.2011 01:14, schrieb Beno?t Minisini: >>>> Good morning everyone, >>>> >>>> Over the weekend I tried to compile Gambas 2 and 3 on a freshly set up >>>> Suse 11.4 32 bit. There were problems, however, so I include the output >>>> for the two runs. >>>> >>>> By the way: does anyone know if there is a repo for Suse 11.4 that holds >>>> an official Gambas2 version? >>>> >>>> Thanks for your hints! >>>> >>>> Rolf >>> >>> 1) You must be root to run "make install". >>> >>> 2) The "cannot find -ljscore" error for Gambas 3 may be a bug in the 'pkg- >>> config' configuration files provided by OpenSuSE. >>> >>> To check that, please run the following commands and tell me the output: >>> >>> $ pkg-config --libs-only-l QtWebKit >>> ... >>> $ pkg-config --libs-only-L QtWebKit >>> ... >>> $ pkg-config --libs-only-other QtWebKit >>> ... >>> >>> Regards, >>> >> >> 1) I know, but it never came to that point... >> >> 2) Only the first one has a result: >> >> -lQtWebKit -lQtGui -lQtNetwork -lQtCore >> >> Does this tell you something? >> >> Regards >> >> Rolf >> >> >> P. S.: Have you got a webserver meanwhile like you were searching for? >> >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ihaywood at ...1979... Tue May 17 11:53:46 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Tue, 17 May 2011 19:53:46 +1000 Subject: [Gambas-user] gb3: "System error #90: Message too long in Network:604." In-Reply-To: <4DD20019.2010704@...1887...> References: <4DD20019.2010704@...1887...> Message-ID: On Tue, May 17, 2011 at 2:56 PM, Kevin Fishburne wrote: > I was trying to send a 100+ Kb UDP packet and received this error. Is this a > bug, or am I missing something? I think UDP packets are limited to 64KB. Ian From munix9 at ...1601... Tue May 17 12:25:53 2011 From: munix9 at ...1601... (munix9) Date: Tue, 17 May 2011 12:25:53 +0200 Subject: [Gambas-user] Gambas2 and 3 on Suse 11.4 In-Reply-To: <4DD24436.8020201@...221...> References: <4DD0C2DE.10509@...221...> <201105170114.57810.gambas@...1...> <4DD217AC.6000501@...221...> <4DD22BFB.2030902@...1601...> <4DD24436.8020201@...221...> Message-ID: <4DD24D31.6010108@...1601...> hi, use yast and search for libqt4 in software installation to identify your current version or try in a console rpm -q libqt4 or zypper se -s libqt4 my "extended" repo http://download.opensuse.org/repositories/home:/munix9:/openSUSE:/11.4:/Extended/standard/ is connected to several other repos: https://build.opensuse.org/project/repositories?project=home%3Amunix9%3AopenSUSE%3A11.4%3AExtended standard (i586, x86_64) openSUSE:Tumbleweed/standard X11:XOrg/openSUSE_11.4 KDE:Release:46/openSUSE_11.4 server:database/openSUSE_11.4 server:php/openSUSE_11.4 if you are using a plain opensuse installation (with the standard libqt4), you should use the "update" repo under http://download.opensuse.org/repositories/home:/munix9:/openSUSE:/11.4:/Update/standard/ keep in mind that obs home:/ repos are not official - support is not always available, your system could be damaged or become unstable. ciao paolo Am 17.05.2011 11:47, schrieb Rolf-Werner Eilert: > Hi Paolo, > > thanks for the hints! I used the Education repo and installed 2.22 from > there, it seems to run flawlessly. > > As to libqt: what do you mean "extended" and how do I find the version > on my system? > > Rolf > > > Am 17.05.2011 10:04, schrieb munix9: >> >> hi, >> >> take a look at http://software.opensuse.org/search to find the packages, eg. >> http://software.opensuse.org/search?q=gambas2&baseproject=openSUSE%3A11.4&lang=de&exclude_debug=true >> >> currently there exists two official repos with gambas2 packages: >> http://download.opensuse.org/repositories/KDE:/KDE3/openSUSE_11.4/ >> http://download.opensuse.org/repositories/Education/openSUSE_11.4/ >> >> to (temporary) fix the "-ljscore" thing, I've patched the official >> libqt4 opensuse sources: >> >> for an updated opensuse 11.4 with libqt4-4.7.1 >> https://build.opensuse.org/project/monitor?project=home%3Amunix9%3AopenSUSE%3A11.4%3AUpdate >> the package which includes jscore is libQtWebKit-devel >> >> for an "extended" opensuse 11.4 with libqt4-4.7.3 >> https://build.opensuse.org/project/show?project=home%3Amunix9%3AopenSUSE%3A11.4%3AExtended >> the package which includes jscore is libQtWebKit-devel >> >> basic tests for compiling gambas 3 were successful with these packages - >> if I have more time, I will make the gambas3 packages available in my >> obs repo. >> >> ciao >> paolo >> >> >> Am 17.05.2011 08:37, schrieb Rolf-Werner Eilert: >>> Am 17.05.2011 01:14, schrieb Beno?t Minisini: >>>>> Good morning everyone, >>>>> >>>>> Over the weekend I tried to compile Gambas 2 and 3 on a freshly set up >>>>> Suse 11.4 32 bit. There were problems, however, so I include the output >>>>> for the two runs. >>>>> >>>>> By the way: does anyone know if there is a repo for Suse 11.4 that holds >>>>> an official Gambas2 version? >>>>> >>>>> Thanks for your hints! >>>>> >>>>> Rolf >>>> >>>> 1) You must be root to run "make install". >>>> >>>> 2) The "cannot find -ljscore" error for Gambas 3 may be a bug in the 'pkg- >>>> config' configuration files provided by OpenSuSE. >>>> >>>> To check that, please run the following commands and tell me the output: >>>> >>>> $ pkg-config --libs-only-l QtWebKit >>>> ... >>>> $ pkg-config --libs-only-L QtWebKit >>>> ... >>>> $ pkg-config --libs-only-other QtWebKit >>>> ... >>>> >>>> Regards, >>>> >>> >>> 1) I know, but it never came to that point... >>> >>> 2) Only the first one has a result: >>> >>> -lQtWebKit -lQtGui -lQtNetwork -lQtCore >>> >>> Does this tell you something? >>> >>> Regards >>> >>> Rolf >>> >>> >>> P. S.: Have you got a webserver meanwhile like you were searching for? >>> >>> >>> ------------------------------------------------------------------------------ >>> Achieve unprecedented app performance and reliability >>> What every C/C++ and Fortran developer should know. >>> Learn how Intel has extended the reach of its next-generation tools >>> to help boost performance applications - inlcuding clusters. >>> http://p.sf.net/sfu/intel-dev2devmay >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Tue May 17 17:41:41 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 17 May 2011 17:41:41 +0200 Subject: [Gambas-user] Gambas2 and 3 on Suse 11.4 In-Reply-To: <4DD24D31.6010108@...1601...> References: <4DD0C2DE.10509@...221...> <201105170114.57810.gambas@...1...> <4DD217AC.6000501@...221...> <4DD22BFB.2030902@...1601...> <4DD24436.8020201@...221...> <4DD24D31.6010108@...1601...> Message-ID: <4DD29735.1070207@...221...> Thanks a lot! I printed this out and will try it on a test system first as soon as I find some time for it, maybe over the weekend. Regards Rolf Am 17.05.2011 12:25, schrieb munix9: > > hi, > > use yast and search for libqt4 in software installation to identify your > current version or try in a console > > rpm -q libqt4 > or > zypper se -s libqt4 > > my "extended" repo > http://download.opensuse.org/repositories/home:/munix9:/openSUSE:/11.4:/Extended/standard/ > is connected to several other repos: > https://build.opensuse.org/project/repositories?project=home%3Amunix9%3AopenSUSE%3A11.4%3AExtended > standard (i586, x86_64) > openSUSE:Tumbleweed/standard > X11:XOrg/openSUSE_11.4 > KDE:Release:46/openSUSE_11.4 > server:database/openSUSE_11.4 > server:php/openSUSE_11.4 > > if you are using a plain opensuse installation (with the standard > libqt4), you should use the "update" repo under > http://download.opensuse.org/repositories/home:/munix9:/openSUSE:/11.4:/Update/standard/ > > > keep in mind that obs home:/ repos are not official - support is not > always available, your system could be damaged or become unstable. > > ciao > paolo > > > > Am 17.05.2011 11:47, schrieb Rolf-Werner Eilert: >> Hi Paolo, >> >> thanks for the hints! I used the Education repo and installed 2.22 from >> there, it seems to run flawlessly. >> >> As to libqt: what do you mean "extended" and how do I find the version >> on my system? >> >> Rolf >> >> >> Am 17.05.2011 10:04, schrieb munix9: >>> >>> hi, >>> >>> take a look at http://software.opensuse.org/search to find the packages, eg. >>> http://software.opensuse.org/search?q=gambas2&baseproject=openSUSE%3A11.4&lang=de&exclude_debug=true >>> >>> currently there exists two official repos with gambas2 packages: >>> http://download.opensuse.org/repositories/KDE:/KDE3/openSUSE_11.4/ >>> http://download.opensuse.org/repositories/Education/openSUSE_11.4/ >>> >>> to (temporary) fix the "-ljscore" thing, I've patched the official >>> libqt4 opensuse sources: >>> >>> for an updated opensuse 11.4 with libqt4-4.7.1 >>> https://build.opensuse.org/project/monitor?project=home%3Amunix9%3AopenSUSE%3A11.4%3AUpdate >>> the package which includes jscore is libQtWebKit-devel >>> >>> for an "extended" opensuse 11.4 with libqt4-4.7.3 >>> https://build.opensuse.org/project/show?project=home%3Amunix9%3AopenSUSE%3A11.4%3AExtended >>> the package which includes jscore is libQtWebKit-devel >>> >>> basic tests for compiling gambas 3 were successful with these packages - >>> if I have more time, I will make the gambas3 packages available in my >>> obs repo. >>> >>> ciao >>> paolo >>> >>> >>> Am 17.05.2011 08:37, schrieb Rolf-Werner Eilert: >>>> Am 17.05.2011 01:14, schrieb Beno?t Minisini: >>>>>> Good morning everyone, >>>>>> >>>>>> Over the weekend I tried to compile Gambas 2 and 3 on a freshly set up >>>>>> Suse 11.4 32 bit. There were problems, however, so I include the output >>>>>> for the two runs. >>>>>> >>>>>> By the way: does anyone know if there is a repo for Suse 11.4 that holds >>>>>> an official Gambas2 version? >>>>>> >>>>>> Thanks for your hints! >>>>>> >>>>>> Rolf >>>>> >>>>> 1) You must be root to run "make install". >>>>> >>>>> 2) The "cannot find -ljscore" error for Gambas 3 may be a bug in the 'pkg- >>>>> config' configuration files provided by OpenSuSE. >>>>> >>>>> To check that, please run the following commands and tell me the output: >>>>> >>>>> $ pkg-config --libs-only-l QtWebKit >>>>> ... >>>>> $ pkg-config --libs-only-L QtWebKit >>>>> ... >>>>> $ pkg-config --libs-only-other QtWebKit >>>>> ... >>>>> >>>>> Regards, >>>>> >>>> >>>> 1) I know, but it never came to that point... >>>> >>>> 2) Only the first one has a result: >>>> >>>> -lQtWebKit -lQtGui -lQtNetwork -lQtCore >>>> >>>> Does this tell you something? >>>> >>>> Regards >>>> >>>> Rolf >>>> >>>> >>>> P. S.: Have you got a webserver meanwhile like you were searching for? >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Achieve unprecedented app performance and reliability >>>> What every C/C++ and Fortran developer should know. >>>> Learn how Intel has extended the reach of its next-generation tools >>>> to help boost performance applications - inlcuding clusters. >>>> http://p.sf.net/sfu/intel-dev2devmay >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> ------------------------------------------------------------------------------ >>> Achieve unprecedented app performance and reliability >>> What every C/C++ and Fortran developer should know. >>> Learn how Intel has extended the reach of its next-generation tools >>> to help boost performance applications - inlcuding clusters. >>> http://p.sf.net/sfu/intel-dev2devmay >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From soleilpqd at ...626... Wed May 18 04:32:48 2011 From: soleilpqd at ...626... (=?UTF-8?B?UGjhuqFtIFF1YW5nIETGsMahbmc=?=) Date: Wed, 18 May 2011 09:32:48 +0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105161812.08869.wally@...2037...> References: <201105161812.08869.wally@...2037...> Message-ID: Hope this help :) The key is Pointer. 2011/4/9 Beno?t Minisini > > aStruct * anExternFunc(...) > > with: > > aStruct { > > aClass *data > aStruct *previous > aStruct *next > } > > > How to get all *data > I tried > > pNext = anExternFunc(...) > while pNext <> null > > pData = Pointer@(pNext) > > ... > > pNext = pData + SizeOf(gb.pointer)*2 > > wend > > and failed. > --8<-------------------------- > > -------------------------------- > > pStruct = anExternFunc(...) > > While pStruct > > pData = Pointer@(pStruct) > > ... > > pStruct = Pointer@(pStruct + Sizeof(gb.Pointer) * 2) > > Wend > > --8<---------------------------------------------------------- > > That should work. Does it? > > You can use a memory stream and a structure too: > > --8<---------------------------------------------------------- > > Struct MyDataSlot > Data As Pointer > Previous As Pointer > Next As Pointer > End Struct > > ... > > Dim hMem As Stream > Dim hSlot As MyDataSlot > > pStruct = anExternFunc(...) > > While pStruct > > hMem = Memory pStruct For Read > > hSlot = Read #hMem As MyDataSlot > > pData = hSlot.Data > > ... > > pStruct = Pointer@(hSlot.Next) > > Wend > > --8<---------------------------------------------------------- > > Regards, > > -- > Beno?t Minisini > From jussi.lahtinen at ...626... Wed May 18 16:34:48 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 May 2011 17:34:48 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> Message-ID: No, AFAIK there is nothing that returns value for pointer, like in your case. Jussi 2011/5/18 Ph?m Quang D??ng > Hope this help :) > The key is Pointer. > > 2011/4/9 Beno?t Minisini > > > > aStruct * anExternFunc(...) > > > > with: > > > > aStruct { > > > > aClass *data > > aStruct *previous > > aStruct *next > > } > > > > > > How to get all *data > > I tried > > > > pNext = anExternFunc(...) > > while pNext <> null > > > > pData = Pointer@(pNext) > > > > ... > > > > pNext = pData + SizeOf(gb.pointer)*2 > > > > wend > > > > and failed. > > > > --8<-------------------------- > > > > -------------------------------- > > > > pStruct = anExternFunc(...) > > > > While pStruct > > > > pData = Pointer@(pStruct) > > > > ... > > > > pStruct = Pointer@(pStruct + Sizeof(gb.Pointer) * 2) > > > > Wend > > > > --8<---------------------------------------------------------- > > > > That should work. Does it? > > > > You can use a memory stream and a structure too: > > > > --8<---------------------------------------------------------- > > > > Struct MyDataSlot > > Data As Pointer > > Previous As Pointer > > Next As Pointer > > End Struct > > > > ... > > > > Dim hMem As Stream > > Dim hSlot As MyDataSlot > > > > pStruct = anExternFunc(...) > > > > While pStruct > > > > hMem = Memory pStruct For Read > > > > hSlot = Read #hMem As MyDataSlot > > > > pData = hSlot.Data > > > > ... > > > > pStruct = Pointer@(hSlot.Next) > > > > Wend > > > > --8<---------------------------------------------------------- > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed May 18 17:07:09 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 18 May 2011 17:07:09 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105161812.08869.wally@...2037...> References: <201105161812.08869.wally@...2037...> Message-ID: <201105181707.09487.gambas@...1...> > Hello Jussi, > > in C the stuff works pretty nice, so i agree to your suggestion 2. > > Do all math stuff directly in Gambas is an option i should check. > > I think i mentioned that i use Gambas3 and want to make interpolations, > derivatives and integrals from an integrarray. > The array contains ADC outputs from a CCD linear array sensor measurment > > wally > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > > Not very easy task... > > Here is interpolation example in C. > > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example-pr > > og rams.html > > > > As you can see, you need to call several functions to get what you want. > > Declaring those in Gambas is OK, except determining interpolation type! > > > > You can find definition of interpolation type from "gsl_interp.h", > > and unfortunately it is not anything simple; > > > > typedef struct { > > > > const char * name; > > unsigned int min_size; > > void * (*alloc) (size_t size); > > int (*init) (void *, const double xa[], const double ya[], > > size_t > > > > size); > > > > int (*eval) (const void *, const double xa[], const double ya[], > > > > size_t size, double x, gsl_interp_accel *, double * y); > > > > int (*eval_deriv) (const void *, const double xa[], const double > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_p); > > > > int (*eval_deriv2) (const void *, const double xa[], const double > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_pp); > > > > int (*eval_integ) (const void *, const double xa[], const double > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, double * > > result); void (*free) (void *); > > > > } gsl_interp_type; > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- this is used in > > example* > > > > > > Right now I don't know how to implement that reasonably in Gambas. > > There are at least three possibilities to overcome this problem: > > > > 1. Hope that Benoit will implement new feature to use external > > structures. 2. Use C to write your own interface between GSL and Gambas. > > Perhaps easiest option. > > 3. Do not use GSL at all, and write what you need purely with Gambas. > > > > That's all I can say... > > Also because you didn't specify what you need exactly, nor are you using > > Gambas 2 or 3. > > > > Jussi > > Hi, I added a System.GetExternSymbol() method in the last revision so that you can get the address of the interpolation type structure. You have to do something like that: Dim gsl_interp_cspline As Pointer gsl_interp_cspline = Pointer@(System.GetExternSymbol("libgsl", "gsl_interp_cspline")) Maybe the Pointer@() is not needed, I don't know. The symbol can be directly the address of the structure (no Pointer@ needed), or a pointer to the address of the structure. Try and tell me. Regards, -- Beno?t Minisini From wally at ...2037... Wed May 18 17:21:17 2011 From: wally at ...2037... (wally) Date: Wed, 18 May 2011 17:21:17 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105181707.09487.gambas@...1...> References: <201105161812.08869.wally@...2037...> <201105181707.09487.gambas@...1...> Message-ID: <201105181721.17755.wally@...2037...> Thanks a lot ! :) wally On Wednesday, May 18, 2011 17:07:09 Beno?t Minisini wrote: > > Hello Jussi, > > > > in C the stuff works pretty nice, so i agree to your suggestion 2. > > > > Do all math stuff directly in Gambas is an option i should check. > > > > I think i mentioned that i use Gambas3 and want to make interpolations, > > derivatives and integrals from an integrarray. > > The array contains ADC outputs from a CCD linear array sensor measurment > > > > wally > > > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > > > Not very easy task... > > > Here is interpolation example in C. > > > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- > > > pr og rams.html > > > > > > As you can see, you need to call several functions to get what you > > > want. Declaring those in Gambas is OK, except determining > > > interpolation type! > > > > > > You can find definition of interpolation type from "gsl_interp.h", > > > and unfortunately it is not anything simple; > > > > > > typedef struct { > > > > > > const char * name; > > > unsigned int min_size; > > > void * (*alloc) (size_t size); > > > int (*init) (void *, const double xa[], const double ya[], > > > size_t > > > > > > size); > > > > > > int (*eval) (const void *, const double xa[], const double > > > ya[], > > > > > > size_t size, double x, gsl_interp_accel *, double * y); > > > > > > int (*eval_deriv) (const void *, const double xa[], const double > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_p); > > > > > > int (*eval_deriv2) (const void *, const double xa[], const double > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_pp); > > > > > > int (*eval_integ) (const void *, const double xa[], const double > > > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, double * > > > result); void (*free) (void *); > > > > > > } gsl_interp_type; > > > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- this is used > > > in example* > > > > > > > > > Right now I don't know how to implement that reasonably in Gambas. > > > There are at least three possibilities to overcome this problem: > > > > > > 1. Hope that Benoit will implement new feature to use external > > > structures. 2. Use C to write your own interface between GSL and > > > Gambas. Perhaps easiest option. > > > 3. Do not use GSL at all, and write what you need purely with Gambas. > > > > > > That's all I can say... > > > Also because you didn't specify what you need exactly, nor are you > > > using Gambas 2 or 3. > > > > > > Jussi > > Hi, > > I added a System.GetExternSymbol() method in the last revision so that you > can get the address of the interpolation type structure. > > You have to do something like that: > > Dim gsl_interp_cspline As Pointer > > gsl_interp_cspline = Pointer@(System.GetExternSymbol("libgsl", > "gsl_interp_cspline")) > > Maybe the Pointer@() is not needed, I don't know. The symbol can be > directly the address of the structure (no Pointer@ needed), or a pointer > to the address of the structure. > > Try and tell me. > > Regards, From jussi.lahtinen at ...626... Wed May 18 17:33:31 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 May 2011 18:33:31 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105181721.17755.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105181707.09487.gambas@...1...> <201105181721.17755.wally@...2037...> Message-ID: Benoit keeps on amazing us! Jussi P.S. I haven't test it yet... On Wed, May 18, 2011 at 18:21, wally wrote: > > Thanks a lot ! :) > wally > > On Wednesday, May 18, 2011 17:07:09 Beno?t Minisini wrote: > > > Hello Jussi, > > > > > > in C the stuff works pretty nice, so i agree to your suggestion 2. > > > > > > Do all math stuff directly in Gambas is an option i should check. > > > > > > I think i mentioned that i use Gambas3 and want to make interpolations, > > > derivatives and integrals from an integrarray. > > > The array contains ADC outputs from a CCD linear array sensor > measurment > > > > > > wally > > > > > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > > > > Not very easy task... > > > > Here is interpolation example in C. > > > > > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- > > > > pr og rams.html > > > > > > > > As you can see, you need to call several functions to get what you > > > > want. Declaring those in Gambas is OK, except determining > > > > interpolation type! > > > > > > > > You can find definition of interpolation type from "gsl_interp.h", > > > > and unfortunately it is not anything simple; > > > > > > > > typedef struct { > > > > > > > > const char * name; > > > > unsigned int min_size; > > > > void * (*alloc) (size_t size); > > > > int (*init) (void *, const double xa[], const double ya[], > > > > size_t > > > > > > > > size); > > > > > > > > int (*eval) (const void *, const double xa[], const double > > > > ya[], > > > > > > > > size_t size, double x, gsl_interp_accel *, double * y); > > > > > > > > int (*eval_deriv) (const void *, const double xa[], const > double > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_p); > > > > > > > > int (*eval_deriv2) (const void *, const double xa[], const > double > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_pp); > > > > > > > > int (*eval_integ) (const void *, const double xa[], const > double > > > > > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, double * > > > > result); void (*free) (void *); > > > > > > > > } gsl_interp_type; > > > > > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- this is > used > > > > in example* > > > > > > > > > > > > Right now I don't know how to implement that reasonably in Gambas. > > > > There are at least three possibilities to overcome this problem: > > > > > > > > 1. Hope that Benoit will implement new feature to use external > > > > structures. 2. Use C to write your own interface between GSL and > > > > Gambas. Perhaps easiest option. > > > > 3. Do not use GSL at all, and write what you need purely with Gambas. > > > > > > > > That's all I can say... > > > > Also because you didn't specify what you need exactly, nor are you > > > > using Gambas 2 or 3. > > > > > > > > Jussi > > > > Hi, > > > > I added a System.GetExternSymbol() method in the last revision so that > you > > can get the address of the interpolation type structure. > > > > You have to do something like that: > > > > Dim gsl_interp_cspline As Pointer > > > > gsl_interp_cspline = Pointer@(System.GetExternSymbol("libgsl", > > "gsl_interp_cspline")) > > > > Maybe the Pointer@() is not needed, I don't know. The symbol can be > > directly the address of the structure (no Pointer@ needed), or a pointer > > to the address of the structure. > > > > Try and tell me. > > > > Regards, > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Wed May 18 17:53:16 2011 From: wally at ...2037... (wally) Date: Wed, 18 May 2011 17:53:16 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105181721.17755.wally@...2037...> Message-ID: <201105181753.16402.wally@...2037...> Yes, few surprises in direction science are highly appreciated :) I have compile problems with the new "extern" At revision 3850. OpenSuse 11.3 gambas3_svn/trunk/main/gbx/gbx_c_application.c:401: undefined reference to `EXTERN_get_symbol' collect2: ld returned 1 exit status wally On Wednesday, May 18, 2011 17:33:31 Jussi Lahtinen wrote: > Benoit keeps on amazing us! > > Jussi > P.S. I haven't test it yet... > > On Wed, May 18, 2011 at 18:21, wally wrote: > > Thanks a lot ! :) > > wally > > > > On Wednesday, May 18, 2011 17:07:09 Beno?t Minisini wrote: > > > > Hello Jussi, > > > > > > > > in C the stuff works pretty nice, so i agree to your suggestion 2. > > > > > > > > Do all math stuff directly in Gambas is an option i should check. > > > > > > > > I think i mentioned that i use Gambas3 and want to make > > > > interpolations, derivatives and integrals from an integrarray. > > > > The array contains ADC outputs from a CCD linear array sensor > > > > measurment > > > > > > wally > > > > > > > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > > > > > Not very easy task... > > > > > Here is interpolation example in C. > > > > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- > > > > > > > pr og rams.html > > > > > > > > > > As you can see, you need to call several functions to get what you > > > > > want. Declaring those in Gambas is OK, except determining > > > > > interpolation type! > > > > > > > > > > You can find definition of interpolation type from "gsl_interp.h", > > > > > and unfortunately it is not anything simple; > > > > > > > > > > typedef struct { > > > > > > > > > > const char * name; > > > > > unsigned int min_size; > > > > > void * (*alloc) (size_t size); > > > > > int (*init) (void *, const double xa[], const double ya[], > > > > > size_t > > > > > > > > > > size); > > > > > > > > > > int (*eval) (const void *, const double xa[], const double > > > > > ya[], > > > > > > > > > > size_t size, double x, gsl_interp_accel *, double * y); > > > > > > > > > > int (*eval_deriv) (const void *, const double xa[], const > > > > double > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_p); > > > > > > > > > > int (*eval_deriv2) (const void *, const double xa[], const > > > > double > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_pp); > > > > > > > > > > int (*eval_integ) (const void *, const double xa[], const > > > > double > > > > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, double * > > > > > result); void (*free) (void *); > > > > > > > > > > } gsl_interp_type; > > > > > > > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- this is > > > > used > > > > > > > in example* > > > > > > > > > > > > > > > Right now I don't know how to implement that reasonably in Gambas. > > > > > There are at least three possibilities to overcome this problem: > > > > > > > > > > 1. Hope that Benoit will implement new feature to use external > > > > > structures. 2. Use C to write your own interface between GSL and > > > > > Gambas. Perhaps easiest option. > > > > > 3. Do not use GSL at all, and write what you need purely with > > > > > Gambas. > > > > > > > > > > That's all I can say... > > > > > Also because you didn't specify what you need exactly, nor are you > > > > > using Gambas 2 or 3. > > > > > > > > > > Jussi > > > > > > Hi, > > > > > > I added a System.GetExternSymbol() method in the last revision so that > > > > you > > > > > can get the address of the interpolation type structure. > > > > > > You have to do something like that: > > > Dim gsl_interp_cspline As Pointer > > > > > > gsl_interp_cspline = Pointer@(System.GetExternSymbol("libgsl", > > > > > > "gsl_interp_cspline")) > > > > > > Maybe the Pointer@() is not needed, I don't know. The symbol can be > > > directly the address of the structure (no Pointer@ needed), or a > > > pointer to the address of the structure. > > > > > > Try and tell me. > > > > > > Regards, > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed May 18 18:07:56 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 May 2011 19:07:56 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105181753.16402.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105181721.17755.wally@...2037...> <201105181753.16402.wally@...2037...> Message-ID: Seems to work (Gambas 3 rev 3850 @ Ubuntu 10.10 64bit), though, I haven't check if the results are correct. I'm out of time. Source attached. BTW. Why 'Library "libgsl"' doesn't find *any* library? However 'Library "libgsl:0"' does! Jussi On Wed, May 18, 2011 at 18:53, wally wrote: > > Yes, few surprises in direction science are highly appreciated :) > > I have compile problems with the new "extern" > At revision 3850. OpenSuse 11.3 > > > gambas3_svn/trunk/main/gbx/gbx_c_application.c:401: undefined reference to > `EXTERN_get_symbol' > collect2: ld returned 1 exit status > > wally > > On Wednesday, May 18, 2011 17:33:31 Jussi Lahtinen wrote: > > Benoit keeps on amazing us! > > > > Jussi > > P.S. I haven't test it yet... > > > > On Wed, May 18, 2011 at 18:21, wally wrote: > > > Thanks a lot ! :) > > > wally > > > > > > On Wednesday, May 18, 2011 17:07:09 Beno?t Minisini wrote: > > > > > Hello Jussi, > > > > > > > > > > in C the stuff works pretty nice, so i agree to your suggestion 2. > > > > > > > > > > Do all math stuff directly in Gambas is an option i should check. > > > > > > > > > > I think i mentioned that i use Gambas3 and want to make > > > > > interpolations, derivatives and integrals from an integrarray. > > > > > The array contains ADC outputs from a CCD linear array sensor > > > > > > measurment > > > > > > > > wally > > > > > > > > > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > > > > > > Not very easy task... > > > > > > Here is interpolation example in C. > > > > > > > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- > > > > > > > > > pr og rams.html > > > > > > > > > > > > As you can see, you need to call several functions to get what > you > > > > > > want. Declaring those in Gambas is OK, except determining > > > > > > interpolation type! > > > > > > > > > > > > You can find definition of interpolation type from > "gsl_interp.h", > > > > > > and unfortunately it is not anything simple; > > > > > > > > > > > > typedef struct { > > > > > > > > > > > > const char * name; > > > > > > unsigned int min_size; > > > > > > void * (*alloc) (size_t size); > > > > > > int (*init) (void *, const double xa[], const double > ya[], > > > > > > size_t > > > > > > > > > > > > size); > > > > > > > > > > > > int (*eval) (const void *, const double xa[], const > double > > > > > > ya[], > > > > > > > > > > > > size_t size, double x, gsl_interp_accel *, double * y); > > > > > > > > > > > > int (*eval_deriv) (const void *, const double xa[], const > > > > > > double > > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_p); > > > > > > > > > > > > int (*eval_deriv2) (const void *, const double xa[], const > > > > > > double > > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_pp); > > > > > > > > > > > > int (*eval_integ) (const void *, const double xa[], const > > > > > > double > > > > > > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, double > * > > > > > > result); void (*free) (void *); > > > > > > > > > > > > } gsl_interp_type; > > > > > > > > > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- this is > > > > > > used > > > > > > > > > in example* > > > > > > > > > > > > > > > > > > Right now I don't know how to implement that reasonably in > Gambas. > > > > > > There are at least three possibilities to overcome this problem: > > > > > > > > > > > > 1. Hope that Benoit will implement new feature to use external > > > > > > structures. 2. Use C to write your own interface between GSL and > > > > > > Gambas. Perhaps easiest option. > > > > > > 3. Do not use GSL at all, and write what you need purely with > > > > > > Gambas. > > > > > > > > > > > > That's all I can say... > > > > > > Also because you didn't specify what you need exactly, nor are > you > > > > > > using Gambas 2 or 3. > > > > > > > > > > > > Jussi > > > > > > > > Hi, > > > > > > > > I added a System.GetExternSymbol() method in the last revision so > that > > > > > > you > > > > > > > can get the address of the interpolation type structure. > > > > > > > > You have to do something like that: > > > > Dim gsl_interp_cspline As Pointer > > > > > > > > gsl_interp_cspline = Pointer@(System.GetExternSymbol("libgsl", > > > > > > > > "gsl_interp_cspline")) > > > > > > > > Maybe the Pointer@() is not needed, I don't know. The symbol can be > > > > directly the address of the structure (no Pointer@ needed), or a > > > > pointer to the address of the structure. > > > > > > > > Try and tell me. > > > > > > > > Regards, > > > > > > > ------------------------------------------------------------------------- > > > ----- What Every C/C++ and Fortran developer Should Know! > > > Read this article and learn how Intel has extended the reach of its > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > developers boost performance applications - including clusters. > > > http://p.sf.net/sfu/intel-dev2devmay > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > --------------------------------------------------------------------------- > > --- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: GSLinter-0.0.1.tar.gz Type: application/x-gzip Size: 5397 bytes Desc: not available URL: From gambas at ...1... Wed May 18 18:36:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 18 May 2011 18:36:17 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105181753.16402.wally@...2037...> Message-ID: <201105181836.17669.gambas@...1...> > Seems to work (Gambas 3 rev 3850 @ Ubuntu 10.10 64bit), though, I haven't > check if the results are correct. > I'm out of time. > > Source attached. > > BTW. Why 'Library "libgsl"' doesn't find *any* library? However 'Library > "libgsl:0"' does! > > Jussi > Because "libgsl" means "/usr/lib/libgsl.so" and "libgsl:0" means "/usr/lib/libgsl.so.0". Both are symbolic links to the real library. But the first one is usually only installed with the development package. Anyway, always specifying the library version is a good idea. You can install several versions of the same library (libgsl.so.0, libgsl.so.1 ...). But you can only link to the one pointed by the libgsl.so symbolic link (which should mean "the last one"). Don't ask me why. Maybe there is a way to link to a specific library, but I don't know it. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Wed May 18 18:56:47 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 May 2011 19:56:47 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105181836.17669.gambas@...1...> References: <201105161812.08869.wally@...2037...> <201105181753.16402.wally@...2037...> <201105181836.17669.gambas@...1...> Message-ID: OK, just wondering how to avoid creating false dependency on some library version. Meaning, if something can be done with some library with any version 1, 2 or 3, and still you must specify one of them. Hmmm... "locate libgsl" finds it "/usr/lib32/libgsl.so", maybe it is ignored because of 32bit version. BTW. Everything works as expected, results are correct (visually at least [graphs attached]). Jussi 2011/5/18 Beno?t Minisini > > Seems to work (Gambas 3 rev 3850 @ Ubuntu 10.10 64bit), though, I haven't > > check if the results are correct. > > I'm out of time. > > > > Source attached. > > > > BTW. Why 'Library "libgsl"' doesn't find *any* library? However 'Library > > "libgsl:0"' does! > > > > Jussi > > > > Because "libgsl" means "/usr/lib/libgsl.so" and "libgsl:0" means > "/usr/lib/libgsl.so.0". > > Both are symbolic links to the real library. But the first one is usually > only > installed with the development package. > > Anyway, always specifying the library version is a good idea. You can > install > several versions of the same library (libgsl.so.0, libgsl.so.1 ...). But > you > can only link to the one pointed by the libgsl.so symbolic link (which > should > mean "the last one"). Don't ask me why. Maybe there is a way to link to a > specific library, but I don't know it. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: graphs.tar.gz Type: application/x-gzip Size: 24036 bytes Desc: not available URL: From wally at ...2037... Wed May 18 19:27:54 2011 From: wally at ...2037... (wally) Date: Wed, 18 May 2011 19:27:54 +0200 Subject: [Gambas-user] compiling errors svn3850 Message-ID: <201105181927.54804.wally@...2037...> can i do anything myself or should i wait for svn version > 3850 i really would like to try the gsl feature :) Opensue 11.3 ... Making all in gbx make[4]: Entering directory `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' /bin/sh ../libtool --tag=CC --mode=link gcc - DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o gbx3 gbx3- gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o gbx3-gbx_stack.o gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3-gb_hash.o gbx3- gb_table.o gbx3-gb_list.o gbx3-gbx_type.o gbx3-gbx_exec.o gbx3-gbx_exec_push.o gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o gbx3-gbx_class_init.o gbx3- gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o gbx3-gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o gbx3-gbx_stream_direct.o gbx3- gbx_stream_buffer.o gbx3-gbx_stream_memory.o gbx3-gbx_stream_arch.o gbx3- gbx_stream_process.o gbx3-gbx_stream_pipe.o gbx3-gbx_stream_string.o gbx3- gbx_project.o gbx3-gbx_library.o gbx3-gbx_subr.o gbx3-gbx_subr_file.o gbx3- gbx_subr_string.o gbx3-gbx_subr_conv.o gbx3-gbx_subr_time.o gbx3- gbx_subr_extern.o gbx3-gbx_subr_misc.o gbx3-gbx_math.o gbx3-gbx_subr_math.o gbx3-gbx_subr_test.o gbx3-gbx_api.o gbx3-gbx_local.o gbx3-gbx_regexp.o gbx3- gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o gbx3-gbx.o gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o gbx3- gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o gbx3-gbx_c_gambas.o gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o gbx3-gbx_c_enum.o gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused- value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o gbx3 gbx3-gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o gbx3- gbx_stack.o gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3- gb_hash.o gbx3-gb_table.o gbx3-gb_list.o gbx3-gbx_type.o gbx3-gbx_exec.o gbx3- gbx_exec_push.o gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o gbx3-gbx_class_init.o gbx3-gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o gbx3- gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o gbx3-gbx_stream_direct.o gbx3- gbx_stream_buffer.o gbx3-gbx_stream_memory.o gbx3-gbx_stream_arch.o gbx3- gbx_stream_process.o gbx3-gbx_stream_pipe.o gbx3-gbx_stream_string.o gbx3- gbx_project.o gbx3-gbx_library.o gbx3-gbx_subr.o gbx3-gbx_subr_file.o gbx3- gbx_subr_string.o gbx3-gbx_subr_conv.o gbx3-gbx_subr_time.o gbx3- gbx_subr_extern.o gbx3-gbx_subr_misc.o gbx3-gbx_math.o gbx3-gbx_subr_math.o gbx3-gbx_subr_test.o gbx3-gbx_api.o gbx3-gbx_local.o gbx3-gbx_regexp.o gbx3- gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o gbx3-gbx.o gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o gbx3- gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o gbx3-gbx_c_gambas.o gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o gbx3-gbx_c_enum.o gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread gbx3-gbx_c_application.o: In function `System_GetExternSymbol': /home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx/gbx_c_application.c:401: undefined reference to `EXTERN_get_symbol' collect2: ld returned 1 exit status make[4]: *** [gbx3] Error 1 make[4]: Leaving directory `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/op/SDB/Programming/gambas/gambas3_svn/trunk' make: *** [all] Error 2 ..gambas3_svn/trunk> From jussi.lahtinen at ...626... Wed May 18 19:36:13 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 May 2011 20:36:13 +0300 Subject: [Gambas-user] compiling errors svn3850 In-Reply-To: <201105181927.54804.wally@...2037...> References: <201105181927.54804.wally@...2037...> Message-ID: Are you sure your source folder isn't mangled somehow? Have you tried to delete source folder and do checkout again? Jussi On Wed, May 18, 2011 at 20:27, wally wrote: > > can i do anything myself or should i wait for svn version > 3850 > i really would like to try the gsl feature :) > > Opensue 11.3 > ... > Making all in gbx > make[4]: Entering directory > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' > /bin/sh ../libtool --tag=CC --mode=link gcc - > DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char > -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o gbx3 gbx3- > gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o > gbx3-gbx_stack.o > gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3-gb_hash.o gbx3- > gb_table.o gbx3-gb_list.o gbx3-gbx_type.o gbx3-gbx_exec.o > gbx3-gbx_exec_push.o > gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o gbx3-gbx_class_init.o gbx3- > gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o gbx3-gbx_event.o > gbx3-gb_file.o gbx3-gbx_stream.o gbx3-gbx_stream_direct.o gbx3- > gbx_stream_buffer.o gbx3-gbx_stream_memory.o gbx3-gbx_stream_arch.o gbx3- > gbx_stream_process.o gbx3-gbx_stream_pipe.o gbx3-gbx_stream_string.o gbx3- > gbx_project.o gbx3-gbx_library.o gbx3-gbx_subr.o gbx3-gbx_subr_file.o gbx3- > gbx_subr_string.o gbx3-gbx_subr_conv.o gbx3-gbx_subr_time.o gbx3- > gbx_subr_extern.o gbx3-gbx_subr_misc.o gbx3-gbx_math.o gbx3-gbx_subr_math.o > gbx3-gbx_subr_test.o gbx3-gbx_api.o gbx3-gbx_local.o gbx3-gbx_regexp.o > gbx3- > gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o > gbx3-gbx.o > gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o gbx3- > gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o > gbx3-gbx_c_gambas.o > gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- > gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- > gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o gbx3-gbx_c_enum.o > gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread > libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall > -Wno-unused- > value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o > gbx3 > gbx3-gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o gbx3- > gbx_stack.o gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3- > gb_hash.o gbx3-gb_table.o gbx3-gb_list.o gbx3-gbx_type.o gbx3-gbx_exec.o > gbx3- > gbx_exec_push.o gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o > gbx3-gbx_class_init.o > gbx3-gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o gbx3- > gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o gbx3-gbx_stream_direct.o gbx3- > gbx_stream_buffer.o gbx3-gbx_stream_memory.o gbx3-gbx_stream_arch.o gbx3- > gbx_stream_process.o gbx3-gbx_stream_pipe.o gbx3-gbx_stream_string.o gbx3- > gbx_project.o gbx3-gbx_library.o gbx3-gbx_subr.o gbx3-gbx_subr_file.o gbx3- > gbx_subr_string.o gbx3-gbx_subr_conv.o gbx3-gbx_subr_time.o gbx3- > gbx_subr_extern.o gbx3-gbx_subr_misc.o gbx3-gbx_math.o gbx3-gbx_subr_math.o > gbx3-gbx_subr_test.o gbx3-gbx_api.o gbx3-gbx_local.o gbx3-gbx_regexp.o > gbx3- > gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o > gbx3-gbx.o > gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o gbx3- > gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o > gbx3-gbx_c_gambas.o > gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- > gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- > gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o gbx3-gbx_c_enum.o > gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread > gbx3-gbx_c_application.o: In function `System_GetExternSymbol': > > /home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx/gbx_c_application.c:401: > undefined reference to `EXTERN_get_symbol' > collect2: ld returned 1 exit status > make[4]: *** [gbx3] Error 1 > make[4]: Leaving directory > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk' > make: *** [all] Error 2 > ..gambas3_svn/trunk> > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed May 18 20:11:09 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 May 2011 21:11:09 +0300 Subject: [Gambas-user] IDE crash Gambas 3 rev 3850 Message-ID: Hi! Way to reproduce the problem: 1. Open any project and open some class to edit code. 2. Open dropdown menu which is for to choose sub/function/etc (don't actually choose anything). 3. Type in any letter. You will get "Bad row index. FProcedureList.FindProcedure.121". Row index is -1. So, maybe there should be "If iRow < 0 Then iRow = 0". Another "bug". If you open some array in debug mode, you will get dialog to show content of it. But if you accidentally minimize that dialog, there is no way to get it on screen again (without stop and restart debugged program). Ubuntu 10.10 64bit Jussi From wally at ...2037... Wed May 18 20:18:52 2011 From: wally at ...2037... (wally) Date: Wed, 18 May 2011 20:18:52 +0200 Subject: [Gambas-user] compiling errors svn3850 In-Reply-To: References: <201105181927.54804.wally@...2037...> Message-ID: <201105182018.52898.wally@...2037...> Jussi, deleted svn folder and checkedout again. reconf-all, confidure, make : same error On Wednesday, May 18, 2011 19:36:13 Jussi Lahtinen wrote: > Are you sure your source folder isn't mangled somehow? > Have you tried to delete source folder and do checkout again? > > Jussi > > On Wed, May 18, 2011 at 20:27, wally wrote: > > can i do anything myself or should i wait for svn version > 3850 > > i really would like to try the gsl feature :) > > > > Opensue 11.3 > > ... > > Making all in gbx > > make[4]: Entering directory > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' > > /bin/sh ../libtool --tag=CC --mode=link gcc - > > DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > -fsigned-char > > -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o gbx3 gbx3- > > gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o > > gbx3-gbx_stack.o > > gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3-gb_hash.o gbx3- > > gb_table.o gbx3-gb_list.o gbx3-gbx_type.o gbx3-gbx_exec.o > > gbx3-gbx_exec_push.o > > gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o gbx3-gbx_class_init.o gbx3- > > gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o > > gbx3-gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o > > gbx3-gbx_stream_direct.o gbx3- > > gbx_stream_buffer.o gbx3-gbx_stream_memory.o gbx3-gbx_stream_arch.o gbx3- > > gbx_stream_process.o gbx3-gbx_stream_pipe.o gbx3-gbx_stream_string.o > > gbx3- gbx_project.o gbx3-gbx_library.o gbx3-gbx_subr.o > > gbx3-gbx_subr_file.o gbx3- gbx_subr_string.o gbx3-gbx_subr_conv.o > > gbx3-gbx_subr_time.o gbx3- gbx_subr_extern.o gbx3-gbx_subr_misc.o > > gbx3-gbx_math.o gbx3-gbx_subr_math.o gbx3-gbx_subr_test.o gbx3-gbx_api.o > > gbx3-gbx_local.o gbx3-gbx_regexp.o gbx3- > > gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o > > gbx3-gbx.o > > gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o > > gbx3- gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o > > gbx3-gbx_c_gambas.o > > gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- > > gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- > > gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o gbx3-gbx_c_enum.o > > gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread > > libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall > > -Wno-unused- > > value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o > > gbx3 > > gbx3-gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o gbx3- > > gbx_stack.o gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3- > > gb_hash.o gbx3-gb_table.o gbx3-gb_list.o gbx3-gbx_type.o gbx3-gbx_exec.o > > gbx3- > > gbx_exec_push.o gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o > > gbx3-gbx_class_init.o > > gbx3-gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o gbx3- > > gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o gbx3-gbx_stream_direct.o > > gbx3- gbx_stream_buffer.o gbx3-gbx_stream_memory.o > > gbx3-gbx_stream_arch.o gbx3- gbx_stream_process.o gbx3-gbx_stream_pipe.o > > gbx3-gbx_stream_string.o gbx3- gbx_project.o gbx3-gbx_library.o > > gbx3-gbx_subr.o gbx3-gbx_subr_file.o gbx3- gbx_subr_string.o > > gbx3-gbx_subr_conv.o gbx3-gbx_subr_time.o gbx3- gbx_subr_extern.o > > gbx3-gbx_subr_misc.o gbx3-gbx_math.o gbx3-gbx_subr_math.o > > gbx3-gbx_subr_test.o gbx3-gbx_api.o gbx3-gbx_local.o gbx3-gbx_regexp.o > > gbx3- > > gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o > > gbx3-gbx.o > > gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o > > gbx3- gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o > > gbx3-gbx_c_gambas.o > > gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- > > gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- > > gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o gbx3-gbx_c_enum.o > > gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread > > gbx3-gbx_c_application.o: In function `System_GetExternSymbol': > > > > /home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx/gbx_c_applicat > > ion.c:401: undefined reference to `EXTERN_get_symbol' > > collect2: ld returned 1 exit status > > make[4]: *** [gbx3] Error 1 > > make[4]: Leaving directory > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk' > > make: *** [all] Error 2 > > ..gambas3_svn/trunk> > > > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed May 18 21:02:06 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 18 May 2011 22:02:06 +0300 Subject: [Gambas-user] compiling errors svn3850 In-Reply-To: <201105182018.52898.wally@...2037...> References: <201105181927.54804.wally@...2037...> <201105182018.52898.wally@...2037...> Message-ID: Strange error... EXTERN_get_symbol is defined in gbx_extern.c, no errors in sources. Earlier revision compiled just fine? Attach whole output of recong and configure. Maybe there are some hints. Jussi On Wed, May 18, 2011 at 21:18, wally wrote: > Jussi, > > deleted svn folder and checkedout again. > reconf-all, confidure, make : > same error > > > > On Wednesday, May 18, 2011 19:36:13 Jussi Lahtinen wrote: > > Are you sure your source folder isn't mangled somehow? > > Have you tried to delete source folder and do checkout again? > > > > Jussi > > > > On Wed, May 18, 2011 at 20:27, wally wrote: > > > can i do anything myself or should i wait for svn version > 3850 > > > i really would like to try the gsl feature :) > > > > > > Opensue 11.3 > > > ... > > > Making all in gbx > > > make[4]: Entering directory > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' > > > /bin/sh ../libtool --tag=CC --mode=link gcc - > > > DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > > -fsigned-char > > > -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o gbx3 gbx3- > > > gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o > > > gbx3-gbx_stack.o > > > gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3-gb_hash.o > gbx3- > > > gb_table.o gbx3-gb_list.o gbx3-gbx_type.o gbx3-gbx_exec.o > > > gbx3-gbx_exec_push.o > > > gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o gbx3-gbx_class_init.o gbx3- > > > gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o > > > gbx3-gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o > > > gbx3-gbx_stream_direct.o gbx3- > > > gbx_stream_buffer.o gbx3-gbx_stream_memory.o gbx3-gbx_stream_arch.o > gbx3- > > > gbx_stream_process.o gbx3-gbx_stream_pipe.o gbx3-gbx_stream_string.o > > > gbx3- gbx_project.o gbx3-gbx_library.o gbx3-gbx_subr.o > > > gbx3-gbx_subr_file.o gbx3- gbx_subr_string.o gbx3-gbx_subr_conv.o > > > gbx3-gbx_subr_time.o gbx3- gbx_subr_extern.o gbx3-gbx_subr_misc.o > > > gbx3-gbx_math.o gbx3-gbx_subr_math.o gbx3-gbx_subr_test.o > gbx3-gbx_api.o > > > gbx3-gbx_local.o gbx3-gbx_regexp.o gbx3- > > > gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o > > > gbx3-gbx.o > > > gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o > > > gbx3- gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o > > > gbx3-gbx_c_gambas.o > > > gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- > > > gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- > > > gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o > gbx3-gbx_c_enum.o > > > gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread > > > libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall > > > -Wno-unused- > > > value -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT > -o > > > gbx3 > > > gbx3-gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o gbx3- > > > gbx_stack.o gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3- > > > gb_hash.o gbx3-gb_table.o gbx3-gb_list.o gbx3-gbx_type.o > gbx3-gbx_exec.o > > > gbx3- > > > gbx_exec_push.o gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o > > > gbx3-gbx_class_init.o > > > gbx3-gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o gbx3- > > > gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o gbx3-gbx_stream_direct.o > > > gbx3- gbx_stream_buffer.o gbx3-gbx_stream_memory.o > > > gbx3-gbx_stream_arch.o gbx3- gbx_stream_process.o > gbx3-gbx_stream_pipe.o > > > gbx3-gbx_stream_string.o gbx3- gbx_project.o gbx3-gbx_library.o > > > gbx3-gbx_subr.o gbx3-gbx_subr_file.o gbx3- gbx_subr_string.o > > > gbx3-gbx_subr_conv.o gbx3-gbx_subr_time.o gbx3- gbx_subr_extern.o > > > gbx3-gbx_subr_misc.o gbx3-gbx_math.o gbx3-gbx_subr_math.o > > > gbx3-gbx_subr_test.o gbx3-gbx_api.o gbx3-gbx_local.o gbx3-gbx_regexp.o > > > gbx3- > > > gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o > > > gbx3-gbx.o > > > gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o > > > gbx3- gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o > > > gbx3-gbx_c_gambas.o > > > gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- > > > gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- > > > gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o > gbx3-gbx_c_enum.o > > > gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread > > > gbx3-gbx_c_application.o: In function `System_GetExternSymbol': > > > > > > > /home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx/gbx_c_applicat > > > ion.c:401: undefined reference to `EXTERN_get_symbol' > > > collect2: ld returned 1 exit status > > > make[4]: *** [gbx3] Error 1 > > > make[4]: Leaving directory > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' > > > make[3]: *** [all-recursive] Error 1 > > > make[3]: Leaving directory > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' > > > make[2]: *** [all] Error 2 > > > make[2]: Leaving directory > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' > > > make[1]: *** [all-recursive] Error 1 > > > make[1]: Leaving directory > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk' > > > make: *** [all] Error 2 > > > ..gambas3_svn/trunk> > > > > > > > > > > ------------------------------------------------------------------------- > > > ----- What Every C/C++ and Fortran developer Should Know! > > > Read this article and learn how Intel has extended the reach of its > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > developers boost performance applications - including clusters. > > > http://p.sf.net/sfu/intel-dev2devmay > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > --------------------------------------------------------------------------- > > --- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Wed May 18 21:56:49 2011 From: wally at ...2037... (wally) Date: Wed, 18 May 2011 21:56:49 +0200 Subject: [Gambas-user] compiling errors svn3850 In-Reply-To: References: <201105181927.54804.wally@...2037...> <201105182018.52898.wally@...2037...> Message-ID: <201105182156.50128.wally@...2037...> Jussi, Yes, so far it compiled always without troubles. i always watched only the final output of configure. Now i found in ./configure output : "configure: WARNING: foreign function interface is disabled" installed libffi devel packages and now it works . maybe this was also the reason for a lot of wasted time trying to to get GSL work. GSLinter example works nice thanks a lot wally On Wednesday, May 18, 2011 21:02:06 Jussi Lahtinen wrote: > Strange error... EXTERN_get_symbol is defined in gbx_extern.c, no errors in > sources. > Earlier revision compiled just fine? > > Attach whole output of recong and configure. Maybe there are some hints. > > Jussi > > On Wed, May 18, 2011 at 21:18, wally wrote: > > Jussi, > > > > deleted svn folder and checkedout again. > > reconf-all, confidure, make : > > same error > > > > On Wednesday, May 18, 2011 19:36:13 Jussi Lahtinen wrote: > > > Are you sure your source folder isn't mangled somehow? > > > Have you tried to delete source folder and do checkout again? > > > > > > Jussi > > > > > > On Wed, May 18, 2011 at 20:27, wally wrote: > > > > can i do anything myself or should i wait for svn version > 3850 > > > > i really would like to try the gsl feature :) > > > > > > > > Opensue 11.3 > > > > ... > > > > Making all in gbx > > > > make[4]: Entering directory > > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' > > > > /bin/sh ../libtool --tag=CC --mode=link gcc - > > > > DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > > > -fsigned-char > > > > -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o gbx3 gbx3- > > > > gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o > > > > gbx3-gbx_stack.o > > > > gbx3-gb_buffer.o gbx3-gbx_replace.o gbx3-gbx_value.o gbx3-gb_hash.o > > > > gbx3- > > > > > > gb_table.o gbx3-gb_list.o gbx3-gbx_type.o gbx3-gbx_exec.o > > > > gbx3-gbx_exec_push.o > > > > gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o gbx3-gbx_class_init.o gbx3- > > > > gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o > > > > gbx3-gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o > > > > gbx3-gbx_stream_direct.o gbx3- > > > > gbx_stream_buffer.o gbx3-gbx_stream_memory.o gbx3-gbx_stream_arch.o > > > > gbx3- > > > > > > gbx_stream_process.o gbx3-gbx_stream_pipe.o gbx3-gbx_stream_string.o > > > > gbx3- gbx_project.o gbx3-gbx_library.o gbx3-gbx_subr.o > > > > gbx3-gbx_subr_file.o gbx3- gbx_subr_string.o gbx3-gbx_subr_conv.o > > > > gbx3-gbx_subr_time.o gbx3- gbx_subr_extern.o gbx3-gbx_subr_misc.o > > > > gbx3-gbx_math.o gbx3-gbx_subr_math.o gbx3-gbx_subr_test.o > > > > gbx3-gbx_api.o > > > > > > gbx3-gbx_local.o gbx3-gbx_regexp.o gbx3- > > > > gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o > > > > gbx3-gbx.o > > > > gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o > > > > gbx3- gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o > > > > gbx3-gbx_c_gambas.o > > > > gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- > > > > gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- > > > > gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o > > > > gbx3-gbx_c_enum.o > > > > > > gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread > > > > libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall > > > > -Wno-unused- > > > > value -fsigned-char -fvisibility=hidden -g -Os -I../share > > > > -D_REENTRANT > > > > -o > > > > > > gbx3 > > > > gbx3-gb_common.o gbx3-gbx_debug.o gbx3-gb_alloc.o gbx3-gb_array.o > > > > gbx3- gbx_stack.o gbx3-gb_buffer.o gbx3-gbx_replace.o > > > > gbx3-gbx_value.o gbx3- gb_hash.o gbx3-gb_table.o gbx3-gb_list.o > > > > gbx3-gbx_type.o > > > > gbx3-gbx_exec.o > > > > > > gbx3- > > > > gbx_exec_push.o gbx3-gbx_exec_enum.o gbx3-gbx_exec_pop.o > > > > gbx3-gbx_class_init.o > > > > gbx3-gbx_class.o gbx3-gbx_class_native.o gbx3-gbx_class_load.o gbx3- > > > > gbx_event.o gbx3-gb_file.o gbx3-gbx_stream.o gbx3-gbx_stream_direct.o > > > > gbx3- gbx_stream_buffer.o gbx3-gbx_stream_memory.o > > > > gbx3-gbx_stream_arch.o gbx3- gbx_stream_process.o > > > > gbx3-gbx_stream_pipe.o > > > > > > gbx3-gbx_stream_string.o gbx3- gbx_project.o gbx3-gbx_library.o > > > > gbx3-gbx_subr.o gbx3-gbx_subr_file.o gbx3- gbx_subr_string.o > > > > gbx3-gbx_subr_conv.o gbx3-gbx_subr_time.o gbx3- gbx_subr_extern.o > > > > gbx3-gbx_subr_misc.o gbx3-gbx_math.o gbx3-gbx_subr_math.o > > > > gbx3-gbx_subr_test.o gbx3-gbx_api.o gbx3-gbx_local.o > > > > gbx3-gbx_regexp.o gbx3- > > > > gbx_archive.o gbx3-gbx_watch.o gbx3-gbx_eval.o gbx3-gbx_compare.o > > > > gbx3-gbx.o > > > > gbx3-gbx_number.o gbx3-gbx_object.o gbx3-gbx_string.o gbx3-gbx_date.o > > > > gbx3- gbx_c_class.o gbx3-gbx_c_collection.o gbx3-gbx_c_error.o > > > > gbx3-gbx_c_gambas.o > > > > gbx3-gbx_c_file.o gbx3-gbx_c_application.o gbx3-gbx_c_array.o gbx3- > > > > gbx_c_process.o gbx3-gbx_c_subcollection.o gbx3-gbx_c_string.o gbx3- > > > > gbx_c_observer.o gbx3-gbx_component.o gbx3-gbx_extern.o > > > > gbx3-gbx_c_enum.o > > > > > > gbx3-gbx_c_timer.o gbx3-gbx_struct.o libgbx.a -lm -ldl -lpthread > > > > > > gbx3-gbx_c_application.o: In function `System_GetExternSymbol': > > /home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx/gbx_c_applicat > > > > > > ion.c:401: undefined reference to `EXTERN_get_symbol' > > > > collect2: ld returned 1 exit status > > > > make[4]: *** [gbx3] Error 1 > > > > make[4]: Leaving directory > > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main/gbx' > > > > make[3]: *** [all-recursive] Error 1 > > > > make[3]: Leaving directory > > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' > > > > make[2]: *** [all] Error 2 > > > > make[2]: Leaving directory > > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk/main' > > > > make[1]: *** [all-recursive] Error 1 > > > > make[1]: Leaving directory > > > > `/home/op/SDB/Programming/gambas/gambas3_svn/trunk' > > > > make: *** [all] Error 2 > > > > ..gambas3_svn/trunk> > > > > ------------------------------------------------------------------------- > > > > > > ----- What Every C/C++ and Fortran developer Should Know! > > > > Read this article and learn how Intel has extended the reach of its > > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > > developers boost performance applications - including clusters. > > > > http://p.sf.net/sfu/intel-dev2devmay > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > -- > > > > > --- What Every C/C++ and Fortran developer Should Know! > > > Read this article and learn how Intel has extended the reach of its > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > developers boost performance applications - including clusters. > > > http://p.sf.net/sfu/intel-dev2devmay > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu May 19 01:42:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 May 2011 01:42:21 +0200 Subject: [Gambas-user] IDE crash Gambas 3 rev 3850 In-Reply-To: References: Message-ID: <201105190142.21338.gambas@...1...> > Hi! > Way to reproduce the problem: > 1. Open any project and open some class to edit code. > 2. Open dropdown menu which is for to choose sub/function/etc (don't > actually choose anything). > 3. Type in any letter. > > You will get "Bad row index. FProcedureList.FindProcedure.121". > Row index is -1. So, maybe there should be "If iRow < 0 Then iRow = 0". > That first bug has been fixed in revision #3852. Regards, -- Beno?t Minisini From ifrbose at ...626... Thu May 19 10:00:56 2011 From: ifrbose at ...626... (ifrbose at ...626...) Date: 19 May 2011 13:30:56 +0530 Subject: [Gambas-user] [SPAM] Airtel: Switch off Diesel Message-ID: <20110519080056.11935.qmail@...2586...> Hi mailing list for gambas users, I just signed a petition opposing Airtel's use of dirty diesel energy to power their cell phone towers. Please read the mail below and take action. Regards, _________________________________________________________________ Dear friends, Thanks to the telecommunications sector, every new call and SMS is hurting our environment. Lakhs of massive mobile network towers in our country run on dirty diesel. Airtel is the market leader and trend-setter of the Indian telecom industry. If we get them to switch to renewable energy, it will set an example for the others to follow. Customers are the mainstay of this industry. Airtel would notice if customers ask them to make their calls green by using clean energy to power company???s mobile towers. You should ask Airtel to switch to renewable energy. [1]http://www.greenpeace.org/india/en/What-We-Do/Stop-Climate-Change/Green-E lectronics/switch-off-diesel/airtel-switch-off-diesel/ Several current and potential Airtel subscribers, asking them to switch to renewable energy will help put pressure on them to act. Since the company is bound to provide good service to its subscribers, they will not be able to ignore this feedback. Like coal and nuclear, oil too is an unsustainable energy option. The Deepwater Horizon oil spill last year showed the dangers of our addiction to oil.^[2] Studies conducted by the Intergovernmental Panel on Climate Change have shown that renewable energy is capable of powering the world.^[3] Airtel needs to realise this and quit dirty energy. Tell them now. [2]http://www.greenpeace.org/india/en/What-We-Do/Stop-Climate-Change/Green-E lectronics/switch-off-diesel/airtel-switch-off-diesel/ Thanks a billion! Photo of Abhishek Pratap Abhishek Pratap Climate and Energy Campaigner Greenpeace India _________________________________________________________________ Sources: 1. Dirty Talking? Case for telecom to shift from diesel to renewable, Greenpeace India, May 19, 2011 [3]http://www.greenpeace.org/india/Global/india/docs/cool-it/reports/telecom -report-may-2011.pdf [PDF] 2. BP Oil Spill: How Bad Is Damage to Gulf One Year Later? Time magazine, April 19, 2011 [4]http://news.yahoo.com/s/time/20110419/hl_time/08599206603100 3. Renewable energy can power the world, says landmark IPCC study, Guardian, May 9, 2011 [5]http://www.guardian.co.uk/environment/2011/may/09/ipcc-renewable-energy-p ower-worldifrbose at ...626... You are receiving this email because someone you know sent it to you from the Greenpeace site. Greenpeace retains no information about individuals contacted through its site, and will not send you further messages without your consent -- although your friends could, of course, send you another message. References 1. http://www.greenpeace.org/india/en/What-We-Do/Stop-Climate-Change/Green-Electronics/switch-off-diesel/airtel-switch-off-diesel/ 2. http://www.greenpeace.org/india/en/What-We-Do/Stop-Climate-Change/Green-Electronics/switch-off-diesel/airtel-switch-off-diesel/ 3. http://www.greenpeace.org/india/Global/india/docs/cool-it/reports/telecom-report-may-2011.pdf 4. http://news.yahoo.com/s/time/20110419/hl_time/08599206603100 5. http://www.guardian.co.uk/environment/2011/may/09/ipcc-renewable-energy-power-world From shanep at ...2481... Thu May 19 23:53:58 2011 From: shanep at ...2481... (Shane Powell) Date: Fri, 20 May 2011 07:53:58 +1000 Subject: [Gambas-user] printing Message-ID: <4DD59176.4050700@...2481...> hi In gambas 2 I could set the scale of printing to mm by doing Draw.Scale(Draw.Resolution / 25.4, Draw.Resolution 25.4) How do I do The Same Thing in Gambas 3 thanks Shane From shanep at ...2481... Fri May 20 02:09:23 2011 From: shanep at ...2481... (Shane Powell) Date: Fri, 20 May 2011 10:09:23 +1000 Subject: [Gambas-user] gambas 3 Message-ID: <4DD5B133.603@...2481...> hi I opened a gambas 2 project with gambas 3 and was asked if i wanted to convert it witch i did thinking that i would be able to save somewhere else wrong! so is there a way to convert it back to gambas 2 project and i think that you should be able to save the new gambas 3 project some where else just in case From shanep at ...2481... Fri May 20 03:41:18 2011 From: shanep at ...2481... (Shane Powell) Date: Fri, 20 May 2011 11:41:18 +1000 Subject: [Gambas-user] Printer Message-ID: <4DD5C6BE.1070507@...2481...> In gambas 3 build 3852 when i have a printer component placed on a form when the form is shown i get Unknown symbol scalemove in class printer error From gambas at ...2524... Fri May 20 06:24:22 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 May 2011 04:24:22 +0000 Subject: [Gambas-user] Issue 66 in gambas: Unknown symbol 'MoveScaled' in class 'Timer' Message-ID: <0-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 66 by sholzy2... at ...43...: Unknown symbol 'MoveScaled' in class 'Timer' http://code.google.com/p/gambas/issues/detail?id=66 1) Describe the problem. Moving a Timer throws error at next debug run. Gambas 3 revision: 3852 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.31.14-0.8-desktop DistributionVendor=SuSE DistributionRelease=openSUSE 11.2 (x86_64) VERSION = 11.2 [System] CPUArchitecture=x86_64 TotalRam=2055736 kB Desktop=KDE4 [Gambas] Gambas1=Not Installed Gambas2=2.22.0 Gambas2Path=/usr/bin/gbx2 Gambas3=2.99.1 Gambas3Path=/usr/local/bin/gbx3 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Place a Timer on a new Form, or use an existing project with a Timer. Move the Timer and run debugger. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! From shanep at ...2481... Fri May 20 08:43:34 2011 From: shanep at ...2481... (Shane Powell) Date: Fri, 20 May 2011 16:43:34 +1000 Subject: [Gambas-user] Issue 66 in gambas: Unknown symbol 'MoveScaled' in class 'Timer' In-Reply-To: <0-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> Message-ID: <4DD60D96.8010605@...2481...> On 20/05/11 14:24, gambas at ...2524... wrote: > Status: New > Owner: ---- > Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any > Desktop-Any GUI-Any > > New issue 66 by sholzy2... at ...43...: Unknown symbol 'MoveScaled' in > class 'Timer' > http://code.google.com/p/gambas/issues/detail?id=66 > > 1) Describe the problem. > Moving a Timer throws error at next debug run. > > Gambas 3 revision: 3852 > > 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.31.14-0.8-desktop > DistributionVendor=SuSE > DistributionRelease=openSUSE 11.2 (x86_64) > VERSION = 11.2 > > [System] > CPUArchitecture=x86_64 > TotalRam=2055736 kB > Desktop=KDE4 > > [Gambas] > Gambas1=Not Installed > Gambas2=2.22.0 > Gambas2Path=/usr/bin/gbx2 > Gambas3=2.99.1 > Gambas3Path=/usr/local/bin/gbx3 > > 3) Provide a little project that reproduces the bug or the crash. > > 4) If your project needs a database, try to provide it, or part of it. > > 5) Explain clearly how to reproduce the bug or the crash. > > Place a Timer on a new Form, or use an existing project with a Timer. Move > the Timer and run debugger. > > 6) By doing that carefully, you have done 50% of the bug fix job! > > IMPORTANT NOTE: if you encounter several different problems or bugs, (for > example, a bug in your project, and an interpreter crash while debugging > it), please create distinct issues! > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user this is the same bug as with the printer From gambas at ...1... Fri May 20 11:46:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 20 May 2011 11:46:12 +0200 Subject: [Gambas-user] Printer In-Reply-To: <4DD5C6BE.1070507@...2481...> References: <4DD5C6BE.1070507@...2481...> Message-ID: <201105201146.12070.gambas@...1...> > In gambas 3 build 3852 > when i have a printer component placed on a form > when the form is shown i get Unknown symbol scalemove in class printer > error > It should be fixed in revision #3853. Regards, -- Beno?t Minisini From gambas at ...2524... Fri May 20 11:47:39 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 May 2011 09:47:39 +0000 Subject: [Gambas-user] Issue 66 in gambas: Unknown symbol 'MoveScaled' in class 'Timer' In-Reply-To: <0-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 66 by benoit.m... at ...626...: Unknown symbol 'MoveScaled' in class 'Timer' http://code.google.com/p/gambas/issues/detail?id=66 (No comment was entered for this change.) From gambas at ...2524... Fri May 20 11:51:40 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 May 2011 09:51:40 +0000 Subject: [Gambas-user] Issue 66 in gambas: Unknown symbol 'MoveScaled' in class 'Timer' In-Reply-To: <1-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> <0-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> Comment #2 on issue 66 by benoit.m... at ...626...: Unknown symbol 'MoveScaled' in class 'Timer' http://code.google.com/p/gambas/issues/detail?id=66 Fixed in revision #3853. You must recompile the faulty projects! From gambas at ...2524... Fri May 20 11:55:41 2011 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 20 May 2011 09:55:41 +0000 Subject: [Gambas-user] Issue 66 in gambas: Unknown symbol 'MoveScaled' in class 'Timer' In-Reply-To: <2-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> <0-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-17533489771347887769-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 66 by benoit.m... at ...626...: Unknown symbol 'MoveScaled' in class 'Timer' http://code.google.com/p/gambas/issues/detail?id=66 (No comment was entered for this change.) From clangbone at ...43... Fri May 20 12:08:26 2011 From: clangbone at ...43... (j h) Date: Fri, 20 May 2011 11:08:26 +0100 (BST) Subject: [Gambas-user] Really basic basics Message-ID: <811854.84813.qm@...2588...> I used to do some programing on spectrum and amiga and now want to write some simple apps with gambas.My problem is i am tottaly baffled by this new type of programing. The documentation and examples do not explain the very basics well enough for me at all. For example a simple program has a window with a Valuebox, a button and a slider. How do i program it so when i press the button the value of the slider is displayed in the valuebox? If anyone can carefull explain how, not just write the code, it would really help me get going! Thanks From gambas.fr at ...626... Fri May 20 12:13:37 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 20 May 2011 12:13:37 +0200 Subject: [Gambas-user] Really basic basics In-Reply-To: <811854.84813.qm@...2588...> References: <811854.84813.qm@...2588...> Message-ID: 2011/5/20 j h : > I used to do some programing on spectrum and amiga and now want to write some simple apps with gambas.My problem is i am tottaly baffled by this new type of programing. ?The documentation and examples do not explain the very basics well enough for me at all. > For example a simple program has a window with a Valuebox, a button and a slider. ? How do i program it so when i press the button the value of the slider is displayed in the valuebox? If anyone can carefull explain how, not just write the code, it would really help me get going! > Thanks > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Public Sub Button1_Click() ValueBox.Value = Slider1.Value End -- Fabien Bodard From juanibaz at ...626... Fri May 20 12:47:09 2011 From: juanibaz at ...626... (Juan Ibaceta) Date: Fri, 20 May 2011 06:47:09 -0400 Subject: [Gambas-user] Really basic basics In-Reply-To: <811854.84813.qm@...2588...> References: <811854.84813.qm@...2588...> Message-ID: Hello Before starting to use gambas or any other object oriented programming language you should start looking for the concepts, what an event is, what is and object what a class is, etc. After understanding these things it will be very easy to program in any OOP. Look for books that teach these things or for links that explain it well and try to apply this to gambas. Regards Juan On Fri, May 20, 2011 at 6:08 AM, j h wrote: > I used to do some programing on spectrum and amiga and now want to write > some simple apps with gambas.My problem is i am tottaly baffled by this new > type of programing. The documentation and examples do not explain the very > basics well enough for me at all. > For example a simple program has a window with a Valuebox, a button and a > slider. How do i program it so when i press the button the value of the > slider is displayed in the valuebox? If anyone can carefull explain how, not > just write the code, it would really help me get going! > Thanks > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- /***************************************************************** ((( (. .) (( v )) ---m-m--- http://juan_pictures.blogspot.com/ From wally at ...2037... Fri May 20 12:57:37 2011 From: wally at ...2037... (wally) Date: Fri, 20 May 2011 12:57:37 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105181753.16402.wally@...2037...> Message-ID: <201105201257.38088.wally@...2037...> Of course i want to try some other functionality of GSL too. and of course I'm too stupid :) now 1st derivative the code contains also the working C original and the necessary header files containing the necessary definitions. error message is : FMain class line 50 "VarPtr() argument must be a dynamic, a static or a local variable" wally On Wednesday, May 18, 2011 18:07:56 Jussi Lahtinen wrote: > Seems to work (Gambas 3 rev 3850 @ Ubuntu 10.10 64bit), though, I haven't > check if the results are correct. > I'm out of time. > > Source attached. > > BTW. Why 'Library "libgsl"' doesn't find *any* library? However 'Library > "libgsl:0"' does! > > Jussi > > On Wed, May 18, 2011 at 18:53, wally wrote: > > Yes, few surprises in direction science are highly appreciated :) > > > > I have compile problems with the new "extern" > > At revision 3850. OpenSuse 11.3 > > > > > > gambas3_svn/trunk/main/gbx/gbx_c_application.c:401: undefined reference > > to `EXTERN_get_symbol' > > collect2: ld returned 1 exit status > > > > wally > > > > On Wednesday, May 18, 2011 17:33:31 Jussi Lahtinen wrote: > > > Benoit keeps on amazing us! > > > > > > Jussi > > > P.S. I haven't test it yet... > > > > > > On Wed, May 18, 2011 at 18:21, wally wrote: > > > > Thanks a lot ! :) > > > > wally > > > > > > > > On Wednesday, May 18, 2011 17:07:09 Beno?t Minisini wrote: > > > > > > Hello Jussi, > > > > > > > > > > > > in C the stuff works pretty nice, so i agree to your suggestion > > > > > > 2. > > > > > > > > > > > > Do all math stuff directly in Gambas is an option i should check. > > > > > > > > > > > > I think i mentioned that i use Gambas3 and want to make > > > > > > interpolations, derivatives and integrals from an integrarray. > > > > > > The array contains ADC outputs from a CCD linear array sensor > > > > > > > > measurment > > > > > > > > > > wally > > > > > > > > > > > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > > > > > > > Not very easy task... > > > > > > > Here is interpolation example in C. > > > > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- > > > > > > > > > pr og rams.html > > > > > > > > > > > > > > As you can see, you need to call several functions to get what > > > > you > > > > > > > > > want. Declaring those in Gambas is OK, except determining > > > > > > > interpolation type! > > > > > > > > > > > > > > You can find definition of interpolation type from > > > > "gsl_interp.h", > > > > > > > > > and unfortunately it is not anything simple; > > > > > > > > > > > > > > typedef struct { > > > > > > > > > > > > > > const char * name; > > > > > > > unsigned int min_size; > > > > > > > void * (*alloc) (size_t size); > > > > > > > int (*init) (void *, const double xa[], const double > > > > ya[], > > > > > > > > > size_t > > > > > > > > > > > > > > size); > > > > > > > > > > > > > > int (*eval) (const void *, const double xa[], const > > > > double > > > > > > > > > ya[], > > > > > > > > > > > > > > size_t size, double x, gsl_interp_accel *, double * y); > > > > > > > > > > > > > > int (*eval_deriv) (const void *, const double xa[], > > > > > > > const > > > > > > > > double > > > > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * y_p); > > > > > > > > > > > > > > int (*eval_deriv2) (const void *, const double xa[], > > > > > > > const > > > > > > > > double > > > > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * > > > > > > > y_pp); > > > > > > > > > > > > > > int (*eval_integ) (const void *, const double xa[], > > > > > > > const > > > > > > > > double > > > > > > > > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, > > > > > > > double > > > > * > > > > > > > > > result); void (*free) (void *); > > > > > > > > > > > > > > } gsl_interp_type; > > > > > > > > > > > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- this > > > > > > > is > > > > > > > > used > > > > > > > > > > > in example* > > > > > > > > > > > > > > > > > > > > > Right now I don't know how to implement that reasonably in > > > > Gambas. > > > > > > > > > There are at least three possibilities to overcome this > > > > > > > problem: > > > > > > > > > > > > > > 1. Hope that Benoit will implement new feature to use external > > > > > > > structures. 2. Use C to write your own interface between GSL > > > > > > > and Gambas. Perhaps easiest option. > > > > > > > 3. Do not use GSL at all, and write what you need purely with > > > > > > > Gambas. > > > > > > > > > > > > > > That's all I can say... > > > > > > > Also because you didn't specify what you need exactly, nor are > > > > you > > > > > > > > > using Gambas 2 or 3. > > > > > > > > > > > > > > Jussi > > > > > > > > > > Hi, > > > > > > > > > > I added a System.GetExternSymbol() method in the last revision so > > > > that > > > > > > you > > > > > > > > > can get the address of the interpolation type structure. > > > > > > > > > > You have to do something like that: > > > > > Dim gsl_interp_cspline As Pointer > > > > > > > > > > gsl_interp_cspline = > > > > > Pointer@(System.GetExternSymbol("libgsl", > > > > > > > > > > "gsl_interp_cspline")) > > > > > > > > > > Maybe the Pointer@() is not needed, I don't know. The symbol can be > > > > > directly the address of the structure (no Pointer@ needed), or a > > > > > pointer to the address of the structure. > > > > > > > > > > Try and tell me. > > > > > > > > > > Regards, > > > > ------------------------------------------------------------------------- > > > > > > ----- What Every C/C++ and Fortran developer Should Know! > > > > Read this article and learn how Intel has extended the reach of its > > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > > developers boost performance applications - including clusters. > > > > http://p.sf.net/sfu/intel-dev2devmay > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > -- > > > > > --- What Every C/C++ and Fortran developer Should Know! > > > Read this article and learn how Intel has extended the reach of its > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > developers boost performance applications - including clusters. > > > http://p.sf.net/sfu/intel-dev2devmay > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: derivative1-0.0.1.tar.gz Type: application/x-compressed-tar Size: 7510 bytes Desc: not available URL: From shanep at ...2481... Fri May 20 13:56:17 2011 From: shanep at ...2481... (Shane Powell) Date: Fri, 20 May 2011 21:56:17 +1000 Subject: [Gambas-user] printing gambas 3 Message-ID: <4DD656E1.4040204@...2481...> trying to print in gambas 3 using drawtext but the letters are huge what gives ? From sourceforge-raindog2 at ...94... Fri May 20 14:42:55 2011 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 20 May 2011 08:42:55 -0400 Subject: [Gambas-user] Really basic basics In-Reply-To: <811854.84813.qm@...2588...> References: <811854.84813.qm@...2588...> Message-ID: <201105200842.56017.sourceforge-raindog2@...94...> On Friday 20 May 2011 06:08, j h wrote: > For example a simple program > has a window with a Valuebox, a button and a slider. How do i program > it so when i press the button the value of the slider is displayed in > the valuebox? If anyone can carefull explain how, not just write the > code, it would really help me get going! Thanks Fabien already posted the code, but as far as "how" goes: How you actually do it in the IDE: Double click the button, it'll create a Sub (subroutine) for you, and in that subroutine you write the one line of code that takes the value of the slider and puts it in the valuebox. Press F5 and it'll compile and run your program. How it works: The button, slider and valuebox are all "objects". This is how most languages work now: instead of just variables, the things you see on the screen are self-contained objects with their own code ("methods", though few languages actually use that term in the code) and variables of their own (most of which are called "properties"). When the user clicks the button, an "event" is generated. There was nothing like this in Sinclair BASIC and Amiga BASIC had only a little of that; the closest thing in 8- and 16-bit computing was the "interrupts" used in assembly language to jump to a particular section of code when the user pressed a key. The OS gets the mouse button click, the windowing system determines the mouse is over your button, and sends the event to Gambas. The Gambas interpreter checks to see if you have code to run when that event happens, and runs it for you, so all you have to think about is what happens next. In a 1980s BASIC program, you would have had a loop waiting for input to happen. In Gambas, this is done by the interpreter (and much more efficiently), not your own code. Event handlers you write, like Button1_Click in Fabien's example, replace the big lists of if/thens we used to write back then to figure out what the user did and take action based on it. Coming from totally procedural code on a single-tasking system like Sinclair BASIC, object-oriented programming with event handling can take a while to grasp. VB, Javascript/AJAX, and most graphical programming in Java, C/C++, Python, etc. all work the same way nowadays, so once you figure it out in Gambas you'll probably be able to do it in any modern language you learn. Rob From imageek247 at ...626... Fri May 20 16:20:11 2011 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Fri, 20 May 2011 09:20:11 -0500 Subject: [Gambas-user] basics basics Message-ID: *"*I used to do some programing on spectrum and amiga and now want to write some simple apps with gambas.My problem is i am tottaly baffled by this new type of programing. The documentation and examples do not explain the very basics well enough for me at all. For example a simple program has a window with a Valuebox, a button and a slider. How do i program it so when i press the button the value of the slider is displayed in the valuebox? If anyone can carefull explain how, not just write the code, it would really help me get going! Thanks*" Its rather easy to do this. When you are in the gambas IDE, double click the command button. The coding screen shows up, and you can type in the code for the command button. put in *valuebox.value = slider1.value *After that, every time you change the value of the slider and click the command button it shows the value of the slider in the valuebox. if you wanted it to work in reverse, you would simply reverse the code; *slider1.value = valuebox1.value *You could also set it so that the slider always has the value of the valuebox and vise versa. right click on the slider and mouse over onto the "events" button. then click on "Change" (er something like that, im not on gambas right now, this is all from my head.)* *simple add the code to the screen that shows up; *valuebox1.value = slider1.value *then repeat the process for the value box, and add this code; *slider1.value = valuebox1.value *press "F5" to watch it go. :)* -- *Live Chat room!* *http://dglivechat.tk My Website: dageek247.tk* *Calvin: *BU-URP! *Mom:* Good heavens, Calvin! What do we say after that? *Calvin:* "Must be a barge coming through!" *Mom:* WHAT Do you say?! *Calvin: *That sure tasted better going down than coming up! *Mom: *Three strikes and you're history kiddo. *Calvin: *excuse me. From gambas.fr at ...626... Fri May 20 16:52:04 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 20 May 2011 16:52:04 +0200 Subject: [Gambas-user] Really basic basics In-Reply-To: <201105200842.56017.sourceforge-raindog2@...94...> References: <811854.84813.qm@...2588...> <201105200842.56017.sourceforge-raindog2@...94...> Message-ID: 2011/5/20 Rob : > On Friday 20 May 2011 06:08, j h wrote: >> For example a simple program >> ?has a window with a Valuebox, a button and a slider. ? How do i program >> ?it so when i press the button the value of the slider is displayed in >> ?the valuebox? If anyone can carefull explain how, not just write the >> ?code, it would really help me get going! Thanks > > Fabien already posted the code, but as far as "how" goes: > > How you actually do it in the IDE: > > Double click the button, it'll create a Sub (subroutine) for you, and in > that subroutine you write the one line of code that takes the value of the > slider and puts it in the valuebox. ?Press F5 and it'll compile and run > your program. > > How it works: > > The button, slider and valuebox are all "objects". ?This is how most > languages work now: instead of just variables, the things you see on the > screen are self-contained objects with their own code ("methods", though > few languages actually use that term in the code) and variables of their > own (most of which are called "properties"). > > When the user clicks the button, an "event" is generated. ?There was > nothing like this in Sinclair BASIC and Amiga BASIC had only a little of > that; the closest thing in 8- and 16-bit computing was the "interrupts" > used in assembly language to jump to a particular section of code when the > user pressed a key. ?The OS gets the mouse button click, the windowing > system determines the mouse is over your button, and sends the event to > Gambas. ?The Gambas interpreter checks to see if you have code to run when > that event happens, and runs it for you, so all you have to think about is > what happens next. > > In a 1980s BASIC program, you would have had a loop waiting for input to > happen. ?In Gambas, this is done by the interpreter (and much more > efficiently), not your own code. ?Event handlers you write, like > Button1_Click in Fabien's example, replace the big lists of if/thens we > used to write back then to figure out what the user did and take action > based on it. > > Coming from totally procedural code on a single-tasking system like > Sinclair BASIC, object-oriented programming with event handling can take a > while to grasp. ?VB, Javascript/AJAX, and most graphical programming in > Java, C/C++, Python, etc. all work the same way nowadays, so once you > figure it out in Gambas you'll probably be able to do it in any modern > language you learn. > > Rob > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > sorry i did it between two doors ='( -- Fabien Bodard From gambas.fr at ...626... Fri May 20 16:53:56 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 20 May 2011 16:53:56 +0200 Subject: [Gambas-user] printing gambas 3 In-Reply-To: <4DD656E1.4040204@...2481...> References: <4DD656E1.4040204@...2481...> Message-ID: 2011/5/20 Shane Powell : > trying to print in gambas 3 using drawtext but the letters are huge > what gives ? on gambas3 you need to use the paint class paint.text... paint generate vectorial and antialiased draw. you can use gb.report too but what did you want to draw ? > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shanep at ...2481... Sat May 21 00:23:44 2011 From: shanep at ...2481... (Shane Powell) Date: Sat, 21 May 2011 08:23:44 +1000 Subject: [Gambas-user] printing gambas 3 In-Reply-To: References: <4DD656E1.4040204@...2481...> Message-ID: <4DD6E9F0.2070704@...2481...> On 21/05/11 00:53, Fabien Bodard wrote: > 2011/5/20 Shane Powell: >> trying to print in gambas 3 using drawtext but the letters are huge >> what gives ? > on gambas3 you need to use the paint class > > paint.text... > > paint generate vectorial and antialiased draw. > > you can use gb.report too > > but what did you want to draw ? > > > >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > I just want to print text at certain size just like it use to in Gambas 2 From gambas at ...1... Sat May 21 00:47:25 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 21 May 2011 00:47:25 +0200 Subject: [Gambas-user] gambas 3 In-Reply-To: <4DD5B133.603@...2481...> References: <4DD5B133.603@...2481...> Message-ID: <201105210047.25301.gambas@...1...> > hi > I opened a gambas 2 project with gambas 3 and was asked if i wanted > to convert it > witch i did thinking that i would be able to save somewhere else wrong! > so is there a way to convert it back to gambas 2 project and i think > that you should be able to save the > new gambas 3 project some where else just in case > Yes, the project is converted in placed, and no backup copy is made. Maybe should I make a backup copy before doing the conversion? -- Beno?t Minisini From jussi.lahtinen at ...626... Sat May 21 01:08:52 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 21 May 2011 02:08:52 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105201257.38088.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105181753.16402.wally@...2037...> <201105201257.38088.wally@...2037...> Message-ID: Corrected (and working) version attached. Though I'm not fully satisfied to it. Benoit, is it possible to have pointer to struct with varptr? Right now it cannot be done..? If you look at that attachment you will see why it would be useful... Jussi On Fri, May 20, 2011 at 13:57, wally wrote: > > Of course i want to try some other functionality of GSL too. > and of course I'm too stupid :) > > now 1st derivative > the code contains also the working C original and the necessary header > files > containing the necessary definitions. > > error message is : FMain class line 50 > "VarPtr() argument must be a dynamic, a static or a local variable" > > wally > > > On Wednesday, May 18, 2011 18:07:56 Jussi Lahtinen wrote: > > Seems to work (Gambas 3 rev 3850 @ Ubuntu 10.10 64bit), though, I haven't > > check if the results are correct. > > I'm out of time. > > > > Source attached. > > > > BTW. Why 'Library "libgsl"' doesn't find *any* library? However 'Library > > "libgsl:0"' does! > > > > Jussi > > > > On Wed, May 18, 2011 at 18:53, wally wrote: > > > Yes, few surprises in direction science are highly appreciated :) > > > > > > I have compile problems with the new "extern" > > > At revision 3850. OpenSuse 11.3 > > > > > > > > > gambas3_svn/trunk/main/gbx/gbx_c_application.c:401: undefined reference > > > to `EXTERN_get_symbol' > > > collect2: ld returned 1 exit status > > > > > > wally > > > > > > On Wednesday, May 18, 2011 17:33:31 Jussi Lahtinen wrote: > > > > Benoit keeps on amazing us! > > > > > > > > Jussi > > > > P.S. I haven't test it yet... > > > > > > > > On Wed, May 18, 2011 at 18:21, wally wrote: > > > > > Thanks a lot ! :) > > > > > wally > > > > > > > > > > On Wednesday, May 18, 2011 17:07:09 Beno?t Minisini wrote: > > > > > > > Hello Jussi, > > > > > > > > > > > > > > in C the stuff works pretty nice, so i agree to your suggestion > > > > > > > 2. > > > > > > > > > > > > > > Do all math stuff directly in Gambas is an option i should > check. > > > > > > > > > > > > > > I think i mentioned that i use Gambas3 and want to make > > > > > > > interpolations, derivatives and integrals from an integrarray. > > > > > > > The array contains ADC outputs from a CCD linear array sensor > > > > > > > > > > measurment > > > > > > > > > > > > wally > > > > > > > > > > > > > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > > > > > > > > Not very easy task... > > > > > > > > Here is interpolation example in C. > > > > > > > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- > > > > > > > > > > > pr og rams.html > > > > > > > > > > > > > > > > As you can see, you need to call several functions to get > what > > > > > > you > > > > > > > > > > > want. Declaring those in Gambas is OK, except determining > > > > > > > > interpolation type! > > > > > > > > > > > > > > > > You can find definition of interpolation type from > > > > > > "gsl_interp.h", > > > > > > > > > > > and unfortunately it is not anything simple; > > > > > > > > > > > > > > > > typedef struct { > > > > > > > > > > > > > > > > const char * name; > > > > > > > > unsigned int min_size; > > > > > > > > void * (*alloc) (size_t size); > > > > > > > > int (*init) (void *, const double xa[], const double > > > > > > ya[], > > > > > > > > > > > size_t > > > > > > > > > > > > > > > > size); > > > > > > > > > > > > > > > > int (*eval) (const void *, const double xa[], const > > > > > > double > > > > > > > > > > > ya[], > > > > > > > > > > > > > > > > size_t size, double x, gsl_interp_accel *, double * y); > > > > > > > > > > > > > > > > int (*eval_deriv) (const void *, const double xa[], > > > > > > > > const > > > > > > > > > > double > > > > > > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * > y_p); > > > > > > > > > > > > > > > > int (*eval_deriv2) (const void *, const double xa[], > > > > > > > > const > > > > > > > > > > double > > > > > > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * > > > > > > > > y_pp); > > > > > > > > > > > > > > > > int (*eval_integ) (const void *, const double xa[], > > > > > > > > const > > > > > > > > > > double > > > > > > > > > > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, > > > > > > > > double > > > > > > * > > > > > > > > > > > result); void (*free) (void *); > > > > > > > > > > > > > > > > } gsl_interp_type; > > > > > > > > > > > > > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- > this > > > > > > > > is > > > > > > > > > > used > > > > > > > > > > > > > in example* > > > > > > > > > > > > > > > > > > > > > > > > Right now I don't know how to implement that reasonably in > > > > > > Gambas. > > > > > > > > > > > There are at least three possibilities to overcome this > > > > > > > > problem: > > > > > > > > > > > > > > > > 1. Hope that Benoit will implement new feature to use > external > > > > > > > > structures. 2. Use C to write your own interface between GSL > > > > > > > > and Gambas. Perhaps easiest option. > > > > > > > > 3. Do not use GSL at all, and write what you need purely with > > > > > > > > Gambas. > > > > > > > > > > > > > > > > That's all I can say... > > > > > > > > Also because you didn't specify what you need exactly, nor > are > > > > > > you > > > > > > > > > > > using Gambas 2 or 3. > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > Hi, > > > > > > > > > > > > I added a System.GetExternSymbol() method in the last revision so > > > > > > that > > > > > > > > you > > > > > > > > > > > can get the address of the interpolation type structure. > > > > > > > > > > > > You have to do something like that: > > > > > > Dim gsl_interp_cspline As Pointer > > > > > > > > > > > > gsl_interp_cspline = > > > > > > Pointer@(System.GetExternSymbol("libgsl", > > > > > > > > > > > > "gsl_interp_cspline")) > > > > > > > > > > > > Maybe the Pointer@() is not needed, I don't know. The symbol can > be > > > > > > directly the address of the structure (no Pointer@ needed), or a > > > > > > pointer to the address of the structure. > > > > > > > > > > > > Try and tell me. > > > > > > > > > > > > Regards, > > > > > > > ------------------------------------------------------------------------- > > > > > > > > ----- What Every C/C++ and Fortran developer Should Know! > > > > > Read this article and learn how Intel has extended the reach of its > > > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > > > developers boost performance applications - including clusters. > > > > > http://p.sf.net/sfu/intel-dev2devmay > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------- > > > -- > > > > > > > --- What Every C/C++ and Fortran developer Should Know! > > > > Read this article and learn how Intel has extended the reach of its > > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > > developers boost performance applications - including clusters. > > > > http://p.sf.net/sfu/intel-dev2devmay > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------------------- > > > ----- What Every C/C++ and Fortran developer Should Know! > > > Read this article and learn how Intel has extended the reach of its > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > developers boost performance applications - including clusters. > > > http://p.sf.net/sfu/intel-dev2devmay > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -------------- next part -------------- A non-text attachment was scrubbed... Name: derivative1-0.0.2.tar.gz Type: application/x-gzip Size: 8030 bytes Desc: not available URL: From shanep at ...2481... Sat May 21 01:15:41 2011 From: shanep at ...2481... (Shane Powell) Date: Sat, 21 May 2011 09:15:41 +1000 Subject: [Gambas-user] gambas 3 In-Reply-To: <201105210047.25301.gambas@...1...> References: <4DD5B133.603@...2481...> <201105210047.25301.gambas@...1...> Message-ID: <4DD6F61D.8010902@...2481...> On 21/05/11 08:47, Beno?t Minisini wrote: >> hi >> I opened a gambas 2 project with gambas 3 and was asked if i wanted >> to convert it >> witch i did thinking that i would be able to save somewhere else wrong! >> so is there a way to convert it back to gambas 2 project and i think >> that you should be able to save the >> new gambas 3 project some where else just in case >> > Yes, the project is converted in placed, and no backup copy is made. > > Maybe should I make a backup copy before doing the conversion? > In hind sight of course that what i should have done but i think it would be a good idea to have the ide do this ;-) From jussi.lahtinen at ...626... Sat May 21 01:30:24 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 21 May 2011 02:30:24 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105181753.16402.wally@...2037...> <201105201257.38088.wally@...2037...> Message-ID: Hmmm.... but then there should be also some kind of Struct@ function. Doesn't sound easy to implement! Jussi On Sat, May 21, 2011 at 02:08, Jussi Lahtinen wrote: > Corrected (and working) version attached. > Though I'm not fully satisfied to it. Benoit, is it possible to have > pointer to struct with varptr? > Right now it cannot be done..? If you look at that attachment you will see > why it would be useful... > > Jussi > > > > On Fri, May 20, 2011 at 13:57, wally wrote: > >> >> Of course i want to try some other functionality of GSL too. >> and of course I'm too stupid :) >> >> now 1st derivative >> the code contains also the working C original and the necessary header >> files >> containing the necessary definitions. >> >> error message is : FMain class line 50 >> "VarPtr() argument must be a dynamic, a static or a local variable" >> >> wally >> >> >> On Wednesday, May 18, 2011 18:07:56 Jussi Lahtinen wrote: >> > Seems to work (Gambas 3 rev 3850 @ Ubuntu 10.10 64bit), though, I >> haven't >> > check if the results are correct. >> > I'm out of time. >> > >> > Source attached. >> > >> > BTW. Why 'Library "libgsl"' doesn't find *any* library? However 'Library >> > "libgsl:0"' does! >> > >> > Jussi >> > >> > On Wed, May 18, 2011 at 18:53, wally wrote: >> > > Yes, few surprises in direction science are highly appreciated :) >> > > >> > > I have compile problems with the new "extern" >> > > At revision 3850. OpenSuse 11.3 >> > > >> > > >> > > gambas3_svn/trunk/main/gbx/gbx_c_application.c:401: undefined >> reference >> > > to `EXTERN_get_symbol' >> > > collect2: ld returned 1 exit status >> > > >> > > wally >> > > >> > > On Wednesday, May 18, 2011 17:33:31 Jussi Lahtinen wrote: >> > > > Benoit keeps on amazing us! >> > > > >> > > > Jussi >> > > > P.S. I haven't test it yet... >> > > > >> > > > On Wed, May 18, 2011 at 18:21, wally wrote: >> > > > > Thanks a lot ! :) >> > > > > wally >> > > > > >> > > > > On Wednesday, May 18, 2011 17:07:09 Beno?t Minisini wrote: >> > > > > > > Hello Jussi, >> > > > > > > >> > > > > > > in C the stuff works pretty nice, so i agree to your >> suggestion >> > > > > > > 2. >> > > > > > > >> > > > > > > Do all math stuff directly in Gambas is an option i should >> check. >> > > > > > > >> > > > > > > I think i mentioned that i use Gambas3 and want to make >> > > > > > > interpolations, derivatives and integrals from an integrarray. >> > > > > > > The array contains ADC outputs from a CCD linear array sensor >> > > > > >> > > > > measurment >> > > > > >> > > > > > > wally >> > > > > > > >> > > > > > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: >> > > > > > > > Not very easy task... >> > > > > > > > Here is interpolation example in C. >> > > >> > > >> http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- >> > > >> > > > > > > > pr og rams.html >> > > > > > > > >> > > > > > > > As you can see, you need to call several functions to get >> what >> > > >> > > you >> > > >> > > > > > > > want. Declaring those in Gambas is OK, except determining >> > > > > > > > interpolation type! >> > > > > > > > >> > > > > > > > You can find definition of interpolation type from >> > > >> > > "gsl_interp.h", >> > > >> > > > > > > > and unfortunately it is not anything simple; >> > > > > > > > >> > > > > > > > typedef struct { >> > > > > > > > >> > > > > > > > const char * name; >> > > > > > > > unsigned int min_size; >> > > > > > > > void * (*alloc) (size_t size); >> > > > > > > > int (*init) (void *, const double xa[], const >> double >> > > >> > > ya[], >> > > >> > > > > > > > size_t >> > > > > > > > >> > > > > > > > size); >> > > > > > > > >> > > > > > > > int (*eval) (const void *, const double xa[], const >> > > >> > > double >> > > >> > > > > > > > ya[], >> > > > > > > > >> > > > > > > > size_t size, double x, gsl_interp_accel *, double * y); >> > > > > > > > >> > > > > > > > int (*eval_deriv) (const void *, const double xa[], >> > > > > > > > const >> > > > > >> > > > > double >> > > > > >> > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * >> y_p); >> > > > > > > > >> > > > > > > > int (*eval_deriv2) (const void *, const double xa[], >> > > > > > > > const >> > > > > >> > > > > double >> > > > > >> > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * >> > > > > > > > y_pp); >> > > > > > > > >> > > > > > > > int (*eval_integ) (const void *, const double xa[], >> > > > > > > > const >> > > > > >> > > > > double >> > > > > >> > > > > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, >> > > > > > > > double >> > > >> > > * >> > > >> > > > > > > > result); void (*free) (void *); >> > > > > > > > >> > > > > > > > } gsl_interp_type; >> > > > > > > > >> > > > > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- >> this >> > > > > > > > is >> > > > > >> > > > > used >> > > > > >> > > > > > > > in example* >> > > > > > > > >> > > > > > > > >> > > > > > > > Right now I don't know how to implement that reasonably in >> > > >> > > Gambas. >> > > >> > > > > > > > There are at least three possibilities to overcome this >> > > > > > > > problem: >> > > > > > > > >> > > > > > > > 1. Hope that Benoit will implement new feature to use >> external >> > > > > > > > structures. 2. Use C to write your own interface between GSL >> > > > > > > > and Gambas. Perhaps easiest option. >> > > > > > > > 3. Do not use GSL at all, and write what you need purely >> with >> > > > > > > > Gambas. >> > > > > > > > >> > > > > > > > That's all I can say... >> > > > > > > > Also because you didn't specify what you need exactly, nor >> are >> > > >> > > you >> > > >> > > > > > > > using Gambas 2 or 3. >> > > > > > > > >> > > > > > > > Jussi >> > > > > > >> > > > > > Hi, >> > > > > > >> > > > > > I added a System.GetExternSymbol() method in the last revision >> so >> > > >> > > that >> > > >> > > > > you >> > > > > >> > > > > > can get the address of the interpolation type structure. >> > > > > > >> > > > > > You have to do something like that: >> > > > > > Dim gsl_interp_cspline As Pointer >> > > > > > >> > > > > > gsl_interp_cspline = >> > > > > > Pointer@(System.GetExternSymbol("libgsl", >> > > > > > >> > > > > > "gsl_interp_cspline")) >> > > > > > >> > > > > > Maybe the Pointer@() is not needed, I don't know. The symbol >> can be >> > > > > > directly the address of the structure (no Pointer@ needed), or >> a >> > > > > > pointer to the address of the structure. >> > > > > > >> > > > > > Try and tell me. >> > > > > > >> > > > > > Regards, >> > > >> > > >> ------------------------------------------------------------------------- >> > > >> > > > > ----- What Every C/C++ and Fortran developer Should Know! >> > > > > Read this article and learn how Intel has extended the reach of >> its >> > > > > next-generation tools to help Windows* and Linux* C/C++ and >> Fortran >> > > > > developers boost performance applications - including clusters. >> > > > > http://p.sf.net/sfu/intel-dev2devmay >> > > > > _______________________________________________ >> > > > > Gambas-user mailing list >> > > > > Gambas-user at lists.sourceforge.net >> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > >> ------------------------------------------------------------------------- >> > > -- >> > > >> > > > --- What Every C/C++ and Fortran developer Should Know! >> > > > Read this article and learn how Intel has extended the reach of its >> > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran >> > > > developers boost performance applications - including clusters. >> > > > http://p.sf.net/sfu/intel-dev2devmay >> > > > _______________________________________________ >> > > > Gambas-user mailing list >> > > > Gambas-user at lists.sourceforge.net >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > > >> ------------------------------------------------------------------------- >> > > ----- What Every C/C++ and Fortran developer Should Know! >> > > Read this article and learn how Intel has extended the reach of its >> > > next-generation tools to help Windows* and Linux* C/C++ and Fortran >> > > developers boost performance applications - including clusters. >> > > http://p.sf.net/sfu/intel-dev2devmay >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From keithclark at ...2185... Sat May 21 05:23:24 2011 From: keithclark at ...2185... (Keith Clark) Date: Fri, 20 May 2011 23:23:24 -0400 Subject: [Gambas-user] mysql connection Message-ID: <1305948204.2782.1.camel@...2582...> I seem to have forgotten how to connect to a mysql database server. I can reference the document: http://gambasdoc.org/help/howto/database but I keep getting connection errors. maybe I don't have the address correct? What format does it take www.xxxxxxx.com? From wally at ...2037... Sat May 21 07:52:21 2011 From: wally at ...2037... (wally) Date: Sat, 21 May 2011 07:52:21 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105201257.38088.wally@...2037...> Message-ID: <201105210752.21584.wally@...2037...> Good morning Jussi, thank you for this solution. Don't you think, that a "gb.gsl" component would be from general interest ? Benoit, what is your opinion ? wally On Saturday, May 21, 2011 01:08:52 Jussi Lahtinen wrote: > Corrected (and working) version attached. > Though I'm not fully satisfied to it. Benoit, is it possible to have > pointer to struct with varptr? > Right now it cannot be done..? If you look at that attachment you will see > why it would be useful... > > Jussi > > On Fri, May 20, 2011 at 13:57, wally wrote: > > Of course i want to try some other functionality of GSL too. > > and of course I'm too stupid :) > > > > now 1st derivative > > the code contains also the working C original and the necessary header > > files > > containing the necessary definitions. > > > > error message is : FMain class line 50 > > "VarPtr() argument must be a dynamic, a static or a local variable" > > > > wally > > > > On Wednesday, May 18, 2011 18:07:56 Jussi Lahtinen wrote: > > > Seems to work (Gambas 3 rev 3850 @ Ubuntu 10.10 64bit), though, I > > > haven't check if the results are correct. > > > I'm out of time. > > > > > > Source attached. > > > > > > BTW. Why 'Library "libgsl"' doesn't find *any* library? However > > > 'Library "libgsl:0"' does! > > > > > > Jussi > > > > > > On Wed, May 18, 2011 at 18:53, wally wrote: > > > > Yes, few surprises in direction science are highly appreciated :) > > > > > > > > I have compile problems with the new "extern" > > > > At revision 3850. OpenSuse 11.3 > > > > > > > > > > > > gambas3_svn/trunk/main/gbx/gbx_c_application.c:401: undefined > > > > reference to `EXTERN_get_symbol' > > > > collect2: ld returned 1 exit status > > > > > > > > wally > > > > > > > > On Wednesday, May 18, 2011 17:33:31 Jussi Lahtinen wrote: > > > > > Benoit keeps on amazing us! > > > > > > > > > > Jussi > > > > > P.S. I haven't test it yet... > > > > > > > > > > On Wed, May 18, 2011 at 18:21, wally wrote: > > > > > > Thanks a lot ! :) > > > > > > wally > > > > > > > > > > > > On Wednesday, May 18, 2011 17:07:09 Beno?t Minisini wrote: > > > > > > > > Hello Jussi, > > > > > > > > > > > > > > > > in C the stuff works pretty nice, so i agree to your > > > > > > > > suggestion 2. > > > > > > > > > > > > > > > > Do all math stuff directly in Gambas is an option i should > > > > check. > > > > > > > > > > I think i mentioned that i use Gambas3 and want to make > > > > > > > > interpolations, derivatives and integrals from an > > > > > > > > integrarray. The array contains ADC outputs from a CCD > > > > > > > > linear array sensor > > > > > > > > > > > > measurment > > > > > > > > > > > > > > wally > > > > > > > > > > > > > > > > On Monday, May 16, 2011 17:46:51 Jussi Lahtinen wrote: > > > > > > > > > Not very easy task... > > > > > > > > > Here is interpolation example in C. > > > > http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Example- > > > > > > > > > > > pr og rams.html > > > > > > > > > > > > > > > > > > As you can see, you need to call several functions to get > > > > what > > > > > > you > > > > > > > > > > > > > want. Declaring those in Gambas is OK, except determining > > > > > > > > > interpolation type! > > > > > > > > > > > > > > > > > > You can find definition of interpolation type from > > > > > > > > "gsl_interp.h", > > > > > > > > > > > > > and unfortunately it is not anything simple; > > > > > > > > > > > > > > > > > > typedef struct { > > > > > > > > > > > > > > > > > > const char * name; > > > > > > > > > unsigned int min_size; > > > > > > > > > void * (*alloc) (size_t size); > > > > > > > > > int (*init) (void *, const double xa[], const > > > > > > > > > double > > > > > > > > ya[], > > > > > > > > > > > > > size_t > > > > > > > > > > > > > > > > > > size); > > > > > > > > > > > > > > > > > > int (*eval) (const void *, const double xa[], > > > > > > > > > const > > > > > > > > double > > > > > > > > > > > > > ya[], > > > > > > > > > > > > > > > > > > size_t size, double x, gsl_interp_accel *, double * y); > > > > > > > > > > > > > > > > > > int (*eval_deriv) (const void *, const double xa[], > > > > > > > > > const > > > > > > > > > > > > double > > > > > > > > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * > > > > y_p); > > > > > > > > > > > int (*eval_deriv2) (const void *, const double xa[], > > > > > > > > > const > > > > > > > > > > > > double > > > > > > > > > > > > > > > ya[], size_t size, double x, gsl_interp_accel *, double * > > > > > > > > > y_pp); > > > > > > > > > > > > > > > > > > int (*eval_integ) (const void *, const double xa[], > > > > > > > > > const > > > > > > > > > > > > double > > > > > > > > > > > > > > > ya[], size_t size, gsl_interp_accel *, double a, double b, > > > > > > > > > double > > > > > > > > * > > > > > > > > > > > > > result); void (*free) (void *); > > > > > > > > > > > > > > > > > > } gsl_interp_type; > > > > > > > > > > > > > > > > > > GSL_VAR const gsl_interp_type * gsl_interp_cspline; * <-- > > > > this > > > > > > > > > > > is > > > > > > > > > > > > used > > > > > > > > > > > > > > > in example* > > > > > > > > > > > > > > > > > > > > > > > > > > > Right now I don't know how to implement that reasonably in > > > > > > > > Gambas. > > > > > > > > > > > > > There are at least three possibilities to overcome this > > > > > > > > > problem: > > > > > > > > > > > > > > > > > > 1. Hope that Benoit will implement new feature to use > > > > external > > > > > > > > > > > structures. 2. Use C to write your own interface between > > > > > > > > > GSL and Gambas. Perhaps easiest option. > > > > > > > > > 3. Do not use GSL at all, and write what you need purely > > > > > > > > > with Gambas. > > > > > > > > > > > > > > > > > > That's all I can say... > > > > > > > > > Also because you didn't specify what you need exactly, nor > > > > are > > > > > > you > > > > > > > > > > > > > using Gambas 2 or 3. > > > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > I added a System.GetExternSymbol() method in the last revision > > > > > > > so > > > > > > > > that > > > > > > > > > > you > > > > > > > > > > > > > can get the address of the interpolation type structure. > > > > > > > > > > > > > > You have to do something like that: > > > > > > > Dim gsl_interp_cspline As Pointer > > > > > > > > > > > > > > gsl_interp_cspline = > > > > > > > Pointer@(System.GetExternSymbol("libgsl", > > > > > > > > > > > > > > "gsl_interp_cspline")) > > > > > > > > > > > > > > Maybe the Pointer@() is not needed, I don't know. The symbol > > > > > > > can > > > > be > > > > > > > > > directly the address of the structure (no Pointer@ needed), or > > > > > > > a pointer to the address of the structure. > > > > > > > > > > > > > > Try and tell me. > > > > > > > > > > > > > > Regards, > > > > ------------------------------------------------------------------------- > > > > > > > > ----- What Every C/C++ and Fortran developer Should Know! > > > > > > Read this article and learn how Intel has extended the reach of > > > > > > its next-generation tools to help Windows* and Linux* C/C++ and > > > > > > Fortran developers boost performance applications - including > > > > > > clusters. http://p.sf.net/sfu/intel-dev2devmay > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > > > > > -- > > > > > > > > > --- What Every C/C++ and Fortran developer Should Know! > > > > > Read this article and learn how Intel has extended the reach of its > > > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > > > developers boost performance applications - including clusters. > > > > > http://p.sf.net/sfu/intel-dev2devmay > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > > > > > ----- What Every C/C++ and Fortran developer Should Know! > > > > Read this article and learn how Intel has extended the reach of its > > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > > developers boost performance applications - including clusters. > > > > http://p.sf.net/sfu/intel-dev2devmay > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From bbruen at ...2308... Sat May 21 09:36:31 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sat, 21 May 2011 17:06:31 +0930 Subject: [Gambas-user] Simple (I hope) - A list of windows opened by the current app Message-ID: <4DD76B7F.3060203@...2308...> My main form has a list view which allows the user to open a new form for each of the items when they double-click on a row, but if the detail form is already open then all I want to do is bring it to the "top". Achieving this is being fouled by: 1) is there a collection/list/whatever of all the windows that belong to the Application 2) when the user minimizes one of the detail windows, all the application windows are minimized (yep, I know I stuck two problems in one message =-O ) tia bruce From clangbone at ...43... Sat May 21 10:34:36 2011 From: clangbone at ...43... (j h) Date: Sat, 21 May 2011 09:34:36 +0100 (BST) Subject: [Gambas-user] RE Really basic basics Message-ID: <737270.4253.qm@...2590...> Thanks guys for your help with my Really basic basics query. That was just the start i needed. Now i am finely getting started! From Gambas at ...1950... Sat May 21 10:53:39 2011 From: Gambas at ...1950... (Caveat) Date: Sat, 21 May 2011 10:53:39 +0200 Subject: [Gambas-user] Simple (I hope) - A list of windows opened by the current app In-Reply-To: <4DD76B7F.3060203@...2308...> References: <4DD76B7F.3060203@...2308...> Message-ID: <1305968019.3023.48406.camel@...2150...> Hi Bruce 1. I'd suggest you have a startup module that you use to 'manually' open the forms. Keep track of the detail forms you've opened in a Collection or array. If you raise an event from the 'main' form when the user clicks on a detail line, you can handle it appropriately in your module... look through the list of detail forms you already have open, if it's already there, give it the focus/bring it to the top, if not then open a new detail form and store it in your collection. I have some sample code which you could probably adapt if you need it. 2. Hmmm, maybe Benoit can help you on this one. It's not the behaviour I would expect... Regards, Caveat On Sat, 2011-05-21 at 17:06 +0930, Bruce Bruen wrote: > My main form has a list view which allows the user to open a new form > for each of the items when they double-click on a row, but if the detail > form is already open then all I want to do is bring it to the "top". > > Achieving this is being fouled by: > 1) is there a collection/list/whatever of all the windows that belong to > the Application > 2) when the user minimizes one of the detail windows, all the > application windows are minimized > > (yep, I know I stuck two problems in one message =-O ) > > tia > bruce > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat May 21 12:32:22 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 21 May 2011 12:32:22 +0200 Subject: [Gambas-user] Simple (I hope) - A list of windows opened by the current app In-Reply-To: <4DD76B7F.3060203@...2308...> References: <4DD76B7F.3060203@...2308...> Message-ID: <201105211232.22661.gambas@...1...> > My main form has a list view which allows the user to open a new form > for each of the items when they double-click on a row, but if the detail > form is already open then all I want to do is bring it to the "top". > > Achieving this is being fouled by: > 1) is there a collection/list/whatever of all the windows that belong to > the Application Windows > 2) when the user minimizes one of the detail windows, all the > application windows are minimized It depends on your Gambas version and the window manager you use. Regards, -- Beno?t Minisini From gambas at ...1... Sat May 21 12:35:34 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 21 May 2011 12:35:34 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105210752.21584.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105210752.21584.wally@...2037...> Message-ID: <201105211235.34806.gambas@...1...> > Good morning Jussi, > > thank you for this solution. > > Don't you think, that a "gb.gsl" component would be from general interest ? > Benoit, what is your opinion ? > > wally > Of course. Any volunteer ? -- Beno?t Minisini From bbruen at ...2308... Sat May 21 12:51:16 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sat, 21 May 2011 20:21:16 +0930 Subject: [Gambas-user] Simple (I hope) - A list of windows opened by the current app In-Reply-To: <201105211232.22661.gambas@...1...> References: <4DD76B7F.3060203@...2308...> <201105211232.22661.gambas@...1...> Message-ID: <4DD79924.9090704@...2308...> On 21/05/11 20:02, Beno?t Minisini wrote: >> My main form has a list view which allows the user to open a new form >> for each of the items when they double-click on a row, but if the detail >> form is already open then all I want to do is bring it to the "top". >> >> Achieving this is being fouled by: >> 1) is there a collection/list/whatever of all the windows that belong to >> the Application >> > Windows > > Pretty Obvious 8-) Ya know what I really hate, I was browsing the help today and I saw this and thought "Hey, that may come in handy someday" and then prompty forgot all about it. :-X > Moving forward, I'll just use the tag property to track the instance. Is there a better way? >> 2) when the user minimizes one of the detail windows, all the >> application windows are minimized >> > It depends on your Gambas version and the window manager you use. > This is a weekend project, (for Little Athletics). I'm trying to lower the benchmark as far as possible so we can use old laptops, so it's Openbox on gambas2 (Still waiting!). > Regards, > > From bbruen at ...2308... Sat May 21 12:57:18 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sat, 21 May 2011 20:27:18 +0930 Subject: [Gambas-user] Simple (I hope) - A list of windows opened by the current app In-Reply-To: <1305968019.3023.48406.camel@...2150...> References: <4DD76B7F.3060203@...2308...> <1305968019.3023.48406.camel@...2150...> Message-ID: <4DD79A8E.5000808@...2308...> On 21/05/11 18:23, Caveat wrote: > Hi Bruce > > 1. > I'd suggest you have a startup module that you use to 'manually' open > the forms. Keep track of the detail forms you've opened in a Collection > or array. If you raise an event from the 'main' form when the user > clicks on a detail line, you can handle it appropriately in your > module... look through the list of detail forms you already have open, > if it's already there, give it the focus/bring it to the top, if not > then open a new detail form and store it in your collection. > > I have some sample code which you could probably adapt if you need it. > > 2. > Hmmm, maybe Benoit can help you on this one. It's not the behaviour I > would expect... > > Regards, > Caveat > > On Sat, 2011-05-21 at 17:06 +0930, Bruce Bruen wrote: > >> My main form has a list view which allows the user to open a new form >> for each of the items when they double-click on a row, but if the detail >> form is already open then all I want to do is bring it to the "top". >> >> Achieving this is being fouled by: >> 1) is there a collection/list/whatever of all the windows that belong to >> the Application >> 2) when the user minimizes one of the detail windows, all the >> application windows are minimized >> >> (yep, I know I stuck two problems in one message =-O ) >> >> tia >> bruce >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > Thanks Caveat, I actually missed your message, it arrived at the same time as Benoit's below, which answered all. Bruce > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat May 21 12:59:13 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 21 May 2011 12:59:13 +0200 Subject: [Gambas-user] Simple (I hope) - A list of windows opened by the current app In-Reply-To: <4DD79924.9090704@...2308...> References: <4DD76B7F.3060203@...2308...> <201105211232.22661.gambas@...1...> <4DD79924.9090704@...2308...> Message-ID: <201105211259.13322.gambas@...1...> > On 21/05/11 20:02, Beno?t Minisini wrote: > >> My main form has a list view which allows the user to open a new form > >> for each of the items when they double-click on a row, but if the detail > >> form is already open then all I want to do is bring it to the "top". > >> > >> Achieving this is being fouled by: > >> 1) is there a collection/list/whatever of all the windows that belong to > >> the Application > > > > Windows > > > > Pretty Obvious 8-) Ya know what I really hate, I was browsing the help > > today and I saw this and thought "Hey, that may come in handy someday" > > and then prompty forgot all about it. :-X > > Moving forward, I'll just use the tag property to track the instance. > Is there a better way? > 'Dunno why you need to "track" the instance. > >> 2) when the user minimizes one of the detail windows, all the > >> application windows are minimized > > > > It depends on your Gambas version and the window manager you use. > > This is a weekend project, (for Little Athletics). I'm trying to lower > the benchmark as far as possible so we can use old laptops, so it's > Openbox on gambas2 (Still waiting!). > In Gambas 2, the first opened window is the "main window". Minimizing it minimizes all other windows. Closing it closes all other windows. In Gambas 3, there is no automatic main window anymore. It is explicit. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Sat May 21 13:25:12 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 21 May 2011 14:25:12 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105211235.34806.gambas@...1...> References: <201105161812.08869.wally@...2037...> <201105210752.21584.wally@...2037...> <201105211235.34806.gambas@...1...> Message-ID: I don't think I have enough time to do it by myself, but I'm willing to help. Jussi 2011/5/21 Beno?t Minisini > > Good morning Jussi, > > > > thank you for this solution. > > > > Don't you think, that a "gb.gsl" component would be from general interest > ? > > Benoit, what is your opinion ? > > > > wally > > > > Of course. Any volunteer ? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Sat May 21 13:31:16 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Sat, 21 May 2011 21:01:16 +0930 Subject: [Gambas-user] Simple (I hope) - A list of windows opened by the current app In-Reply-To: <201105211259.13322.gambas@...1...> References: <4DD76B7F.3060203@...2308...> <201105211232.22661.gambas@...1...> <4DD79924.9090704@...2308...> <201105211259.13322.gambas@...1...> Message-ID: <4DD7A284.3070908@...2308...> On 21/05/11 20:29, Beno?t Minisini wrote: >> On 21/05/11 20:02, Beno?t Minisini wrote: >> >>>> My main form has a list view which allows the user to open a new form >>>> for each of the items when they double-click on a row, but if the detail >>>> form is already open then all I want to do is bring it to the "top". >>>> >>>> Achieving this is being fouled by: >>>> 1) is there a collection/list/whatever of all the windows that belong to >>>> the Application >>>> >>> Windows >>> >>> Pretty Obvious 8-) Ya know what I really hate, I was browsing the help >>> today and I saw this and thought "Hey, that may come in handy someday" >>> and then prompty forgot all about it. :-X >>> >> Moving forward, I'll just use the tag property to track the instance. >> Is there a better way? >> >> > 'Dunno why you need to "track" the instance. > > >>>> 2) when the user minimizes one of the detail windows, all the >>>> application windows are minimized >>>> >>> It depends on your Gambas version and the window manager you use. >>> >> This is a weekend project, (for Little Athletics). I'm trying to lower >> the benchmark as far as possible so we can use old laptops, so it's >> Openbox on gambas2 (Still waiting!). >> >> > In Gambas 2, the first opened window is the "main window". Minimizing it > minimizes all other windows. Closing it closes all other windows. In Gambas 3, > there is no automatic main window anymore. It is explicit. > > Regards, > > Well, I'm using this: PUBLIC SUB ListView1_DblClick() DIM f1 AS Form DIM sTag AS String DIM sHandel AS Window sTag = ListView1.Key sHandel = FindWindow(sTag) IF NOT IsNull(sHandel) sHandel.Raise ELSE f1 = NEW FTest 'the actual form class of the detail window f1.Center f1.Tag = ListView1.Key f1.Show ENDIF END PRIVATE FUNCTION FindWindow(tag AS String) AS Window DIM w AS Window FOR EACH w IN Windows IF w.Tag = tag THEN RETURN w NEXT RETURN NULL END This seems to do the trick for (1) and pretty works at light speed. So all is good. Re (2) it's not when the user acts on the main window, it's when they minimise the secondary ("detail") windows. That seems to minimise all the application windows. I've tried various combinations of SkipTaskBar and Stacking properties but no luck. I may have to try and intercept the minimise button click somehow to see whats going on. bruce From wally at ...2037... Sat May 21 13:42:40 2011 From: wally at ...2037... (wally) Date: Sat, 21 May 2011 13:42:40 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105211235.34806.gambas@...1...> References: <201105161812.08869.wally@...2037...> <201105210752.21584.wally@...2037...> <201105211235.34806.gambas@...1...> Message-ID: <201105211342.40669.wally@...2037...> On Saturday, May 21, 2011 12:35:34 Beno?t Minisini wrote: > > Good morning Jussi, > > > > thank you for this solution. > > > > Don't you think, that a "gb.gsl" component would be from general interest > > ? Benoit, what is your opinion ? > > > > wally > > Of course. Any volunteer ? I have enough time but not sufficient knowlledge. If someone more experienced see a way i mght help, sure i will. wally From gambas at ...1... Sat May 21 14:15:37 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 21 May 2011 14:15:37 +0200 Subject: [Gambas-user] Gambas 3 first release candidate Message-ID: <201105211415.37083.gambas@...1...> Hi Gambas fellows, The Gambas 3 RC1 source package is available for download now on the website! - Who said "already" ? The aim of this first release candidate is ensuring that Gambas 3 will be compiled and packaged correctly on the most possible distributions. So, packagers, please raise from your graves and howl under the moon for each problem you encounter. And report them on the mailing-list of course. Some distributions will need a bit of lobbying to ensure that these packages are put on their main repositories. I will create a page on the wiki for each distribution to centralize all the information, like the one that already exist but are a bit of mess. And now, I must go IRL, I have a rehearsal. Best regards, -- Beno?t Minisini From nando_f at ...951... Sat May 21 14:24:40 2011 From: nando_f at ...951... (nando) Date: Sat, 21 May 2011 08:24:40 -0400 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <201105211415.37083.gambas@...1...> References: <201105211415.37083.gambas@...1...> Message-ID: <20110521122418.M97856@...951...> I must ask: what is IRL ? ---------- Original Message ----------- From: Beno?t Minisini To: gambas-user at lists.sourceforge.net Sent: Sat, 21 May 2011 14:15:37 +0200 Subject: [Gambas-user] Gambas 3 first release candidate > Hi Gambas fellows, > > The Gambas 3 RC1 source package is available for download now on the website! > > - Who said "already" ? > > The aim of this first release candidate is ensuring that Gambas 3 will be > compiled and packaged correctly on the most possible distributions. > > So, packagers, please raise from your graves and howl under the moon for each > problem you encounter. And report them on the mailing-list of course. > > Some distributions will need a bit of lobbying to ensure that these packages > are put on their main repositories. > > I will create a page on the wiki for each distribution to centralize all the > information, like the one that already exist but are a bit of mess. > > And now, I must go IRL, I have a rehearsal. > > Best regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From lordheavym at ...626... Sat May 21 14:42:15 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 21 May 2011 14:42:15 +0200 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <20110521122418.M97856@...951...> References: <201105211415.37083.gambas@...1...> <20110521122418.M97856@...951...> Message-ID: <201105211442.16063.lordheavym@...626...> Le samedi 21 mai 2011 14:24:40, nando a ?crit : > I must ask: what is IRL ? > In Real Life ++ From gambas.fr at ...626... Sat May 21 16:27:13 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 21 May 2011 16:27:13 +0200 Subject: [Gambas-user] printing gambas 3 In-Reply-To: <4DD6E9F0.2070704@...2481...> References: <4DD656E1.4040204@...2481...> <4DD6E9F0.2070704@...2481...> Message-ID: 2011/5/21 Shane Powell : > On 21/05/11 00:53, Fabien Bodard wrote: >> 2011/5/20 Shane Powell: >>> trying to print in gambas 3 using drawtext but the letters are huge >>> what gives ? >> on gambas3 you need to use the paint class >> >> paint.text... >> >> paint generate vectorial and antialiased draw. >> >> you can use gb.report too >> >> but what did you want to draw ? >> >> >> >>> >>> ------------------------------------------------------------------------------ >>> What Every C/C++ and Fortran developer Should Know! >>> Read this article and learn how Intel has extended the reach of its >>> next-generation tools to help Windows* and Linux* C/C++ and Fortran >>> developers boost performance applications - including clusters. >>> http://p.sf.net/sfu/intel-dev2devmay >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > I just want to print text at certain size just like it use to in Gambas 2 > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > so you can use gb.report -- Fabien Bodard From jussi.lahtinen at ...626... Sat May 21 17:13:21 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 21 May 2011 18:13:21 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105211342.40669.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105210752.21584.wally@...2037...> <201105211235.34806.gambas@...1...> <201105211342.40669.wally@...2037...> Message-ID: Wally, use this version instead! I think I was bit too tired to make sense... this puts the struct to stream, no stupid hacks needed. Jussi On Sat, May 21, 2011 at 14:42, wally wrote: > On Saturday, May 21, 2011 12:35:34 Beno?t Minisini wrote: > > > Good morning Jussi, > > > > > > thank you for this solution. > > > > > > Don't you think, that a "gb.gsl" component would be from general > interest > > > ? Benoit, what is your opinion ? > > > > > > wally > > > > Of course. Any volunteer ? > > > I have enough time but not sufficient knowlledge. > If someone more experienced see a way i mght help, sure i will. > wally > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: derivative1-0.0.3.tar.gz Type: application/x-gzip Size: 7775 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sat May 21 17:16:30 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 21 May 2011 18:16:30 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105210752.21584.wally@...2037...> <201105211235.34806.gambas@...1...> <201105211342.40669.wally@...2037...> Message-ID: "Free(pData)" is missing from end of the code... Jussi On Sat, May 21, 2011 at 18:13, Jussi Lahtinen wrote: > Wally, use this version instead! > I think I was bit too tired to make sense... this puts the struct to > stream, no stupid hacks needed. > > Jussi > > > > > On Sat, May 21, 2011 at 14:42, wally wrote: > >> On Saturday, May 21, 2011 12:35:34 Beno?t Minisini wrote: >> > > Good morning Jussi, >> > > >> > > thank you for this solution. >> > > >> > > Don't you think, that a "gb.gsl" component would be from general >> interest >> > > ? Benoit, what is your opinion ? >> > > >> > > wally >> > >> > Of course. Any volunteer ? >> >> >> I have enough time but not sufficient knowlledge. >> If someone more experienced see a way i mght help, sure i will. >> wally >> >> >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From mauricio at ...2500... Sat May 21 17:21:47 2011 From: mauricio at ...2500... (Mauricio Baeza) Date: Sat, 21 May 2011 10:21:47 -0500 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <201105211415.37083.gambas@...1...> References: <201105211415.37083.gambas@...1...> Message-ID: <1305991309.2052.1.camel@...37...> El s?b, 21-05-2011 a las 14:15 +0200, Beno?t Minisini escribi?: > Hi Gambas fellows, > > The Gambas 3 RC1 source package is available for download now on the > website! > > - Who said "already" ? > > The aim of this first release candidate is ensuring that Gambas 3 will > be > compiled and packaged correctly on the most possible distributions. > > So, packagers, please raise from your graves and howl under the moon > for each > problem you encounter. And report them on the mailing-list of course. > > Some distributions will need a bit of lobbying to ensure that these > packages > are put on their main repositories. > > I will create a page on the wiki for each distribution to centralize > all the > information, like the one that already exist but are a bit of mess. > > And now, I must go IRL, I have a rehearsal. > > Hi Benoit... Hi everbody Config, compilation and installation correctly in ArchLinux x64 with Gnome3 http://uploadpie.com/K8TLf Best regards -- __________________________________ Mauricio Baeza Serv?n Universo Libre M?xico, A.C. Fundador y Director General Todo lo que no podemos dar nos posee... Andre Gide From wally at ...2037... Sat May 21 18:27:34 2011 From: wally at ...2037... (wally) Date: Sat, 21 May 2011 18:27:34 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105211342.40669.wally@...2037...> Message-ID: <201105211827.35271.wally@...2037...> Jussi, GSL is grouped in similar functions and i think if one member of a group works already, the remaining members should work also with similar code. I will try to make an emsemble of gb3 snippets and see what else is necessary to cover at least some main features of GSL. wally On Saturday, May 21, 2011 17:13:21 Jussi Lahtinen wrote: > Wally, use this version instead! > I think I was bit too tired to make sense... this puts the struct to > stream, no stupid hacks needed. > > Jussi > > On Sat, May 21, 2011 at 14:42, wally wrote: > > On Saturday, May 21, 2011 12:35:34 Beno?t Minisini wrote: > > > > Good morning Jussi, > > > > > > > > thank you for this solution. > > > > > > > > Don't you think, that a "gb.gsl" component would be from general > > > > interest > > > > > > ? Benoit, what is your opinion ? > > > > > > > > wally > > > > > > Of course. Any volunteer ? > > > > I have enough time but not sufficient knowlledge. > > If someone more experienced see a way i mght help, sure i will. > > wally > > > > > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavym at ...626... Sat May 21 18:33:55 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 21 May 2011 18:33:55 +0200 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <1305991309.2052.1.camel@...37...> References: <201105211415.37083.gambas@...1...> <1305991309.2052.1.camel@...37...> Message-ID: <201105211833.55447.lordheavym@...626...> Le samedi 21 mai 2011 17:21:47, Mauricio Baeza a ?crit : > El s?b, 21-05-2011 a las 14:15 +0200, Beno?t Minisini escribi?: > > Hi Gambas fellows, > > > > The Gambas 3 RC1 source package is available for download now on the > > website! > > > > - Who said "already" ? > > > > The aim of this first release candidate is ensuring that Gambas 3 will > > be > > compiled and packaged correctly on the most possible distributions. > > > > So, packagers, please raise from your graves and howl under the moon > > for each > > problem you encounter. And report them on the mailing-list of course. > > > > Some distributions will need a bit of lobbying to ensure that these > > packages > > are put on their main repositories. > > > > I will create a page on the wiki for each distribution to centralize > > all the > > information, like the one that already exist but are a bit of mess. > > > > And now, I must go IRL, I have a rehearsal. > > Hi Benoit... > Hi everbody > > Config, compilation and installation correctly in ArchLinux x64 with > Gnome3 > > http://uploadpie.com/K8TLf > > Best regards And you can grab the packages from community-testing ++ From support at ...2529... Sat May 21 18:54:03 2011 From: support at ...2529... (John Spikowski) Date: Sat, 21 May 2011 09:54:03 -0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105211827.35271.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105211342.40669.wally@...2037...> <201105211827.35271.wally@...2037...> Message-ID: <1305996843.2035.4.camel@...1833...> On Sat, 2011-05-21 at 18:27 +0200, wally wrote: > Jussi, > > GSL is grouped in similar functions and i think if one member of a group > works already, the remaining members should work also with similar code. > I will try to make an emsemble of gb3 snippets and see what else is necessary > to cover at least some main features of GSL. > > wally I'm adding GSL support to ScriptBasic by dynamically scripting the library at run time. My interests in GSL don't require a GUI so Gambas is overkill in my case. Here is an example of calling the "Regular Cylindrical Bessel" function. DECLARE SUB DLL ALIAS "_idll" LIB "gtk-server" DECLARE SUB REQUIRE ALIAS "_idll_require" LIB "gtk-server" DECLARE SUB DEFINE ALIAS "_idll_define" LIB "gtk-server" REQUIRE "libgsl.so" DEFINE "gsl_sf_bessel_J0 NONE DOUBLE 1 DOUBLE" PRINT FORMAT("J0(%g) = %.18e\n", 5.0, DLL("gsl_sf_bessel_J0 " & 5.0)) RESULTS: J0(5) = -1.775970000000000326e-01 From wally at ...2037... Sat May 21 20:04:48 2011 From: wally at ...2037... (wally) Date: Sat, 21 May 2011 20:04:48 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <1305996843.2035.4.camel@...1833...> References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> Message-ID: <201105212004.49027.wally@...2037...> On Saturday, May 21, 2011 18:54:03 John Spikowski wrote: > On Sat, 2011-05-21 at 18:27 +0200, wally wrote: > > Jussi, > > > > GSL is grouped in similar functions and i think if one member of a group > > works already, the remaining members should work also with similar code. > > I will try to make an emsemble of gb3 snippets and see what else is > > necessary to cover at least some main features of GSL. > > > > wally > > I'm adding GSL support to ScriptBasic by dynamically scripting the > library at run time. My interests in GSL don't require a GUI so Gambas > is overkill in my case. Here is an example of calling the "Regular > Cylindrical Bessel" function. > > DECLARE SUB DLL ALIAS "_idll" LIB "gtk-server" > DECLARE SUB REQUIRE ALIAS "_idll_require" LIB "gtk-server" > DECLARE SUB DEFINE ALIAS "_idll_define" LIB "gtk-server" > > REQUIRE "libgsl.so" > DEFINE "gsl_sf_bessel_J0 NONE DOUBLE 1 DOUBLE" > > PRINT FORMAT("J0(%g) = %.18e\n", 5.0, DLL("gsl_sf_bessel_J0 " & 5.0)) > > RESULTS: > > J0(5) = -1.775970000000000326e-01 > > > > > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Jussi never met scriba but installed and tried your bessel: error &H10:The requested module can not be loaded. seems i should read some docs and load some modules first :) wally From shanep at ...2481... Sat May 21 20:06:31 2011 From: shanep at ...2481... (Shane Powell) Date: Sun, 22 May 2011 04:06:31 +1000 Subject: [Gambas-user] printing gambas 3 In-Reply-To: References: <4DD656E1.4040204@...2481...> <4DD6E9F0.2070704@...2481...> Message-ID: <4DD7FF27.90102@...2481...> On 22/05/11 00:27, Fabien Bodard wrote: > 2011/5/21 Shane Powell: >> On 21/05/11 00:53, Fabien Bodard wrote: >>> 2011/5/20 Shane Powell: >>>> trying to print in gambas 3 using drawtext but the letters are huge >>>> what gives ? >>> on gambas3 you need to use the paint class >>> >>> paint.text... >>> >>> paint generate vectorial and antialiased draw. >>> >>> you can use gb.report too >>> >>> but what did you want to draw ? >>> >>> >>> >>>> ------------------------------------------------------------------------------ >>>> What Every C/C++ and Fortran developer Should Know! >>>> Read this article and learn how Intel has extended the reach of its >>>> next-generation tools to help Windows* and Linux* C/C++ and Fortran >>>> developers boost performance applications - including clusters. >>>> http://p.sf.net/sfu/intel-dev2devmay >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> I just want to print text at certain size just like it use to in Gambas 2 >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > so you can use gb.report > thanks fabien i will have a look From gambas at ...1... Sat May 21 20:43:07 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 21 May 2011 20:43:07 +0200 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <201105211833.55447.lordheavym@...626...> References: <201105211415.37083.gambas@...1...> <1305991309.2052.1.camel@...37...> <201105211833.55447.lordheavym@...626...> Message-ID: <201105212043.56567.gambas@...1...> > Le samedi 21 mai 2011 17:21:47, Mauricio Baeza a ?crit : > > El s?b, 21-05-2011 a las 14:15 +0200, Beno?t Minisini escribi?: > > > Hi Gambas fellows, > > > > > > The Gambas 3 RC1 source package is available for download now on the > > > website! > > > > > > - Who said "already" ? > > > > > > The aim of this first release candidate is ensuring that Gambas 3 will > > > be > > > compiled and packaged correctly on the most possible distributions. > > > > > > So, packagers, please raise from your graves and howl under the moon > > > for each > > > problem you encounter. And report them on the mailing-list of course. > > > > > > Some distributions will need a bit of lobbying to ensure that these > > > packages > > > are put on their main repositories. > > > > > > I will create a page on the wiki for each distribution to centralize > > > all the > > > information, like the one that already exist but are a bit of mess. > > > > > > And now, I must go IRL, I have a rehearsal. > > > > Hi Benoit... > > Hi everbody > > > > Config, compilation and installation correctly in ArchLinux x64 with > > Gnome3 > > > > http://uploadpie.com/K8TLf > > > > Best regards > > And you can grab the packages from community-testing > > ++ > I will update the "http://gambasdoc.org/help/doc/package" information about how Gambas 3 will be packaged for each distribution. Can you tell me, or directly update the page (once I have done it) with all the information related to the Gambas binary packages on Arch Linux ? I have the same request for all distributions of the universe. Please help! -- Beno?t Minisini From support at ...2529... Sat May 21 20:48:33 2011 From: support at ...2529... (John Spikowski) Date: Sat, 21 May 2011 11:48:33 -0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105212004.49027.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> Message-ID: <1306003713.2035.16.camel@...1833...> On Sat, 2011-05-21 at 20:04 +0200, wally wrote: > never met scriba but installed and tried your bessel: > error &H10:The requested module can not be loaded. > seems i should read some docs and load some modules first :) > You need the following to run my example. * GTK-Server extension module. I modified it to make REQUIRE and DEFINE easier to use. * libgsl.so - I downloaded the latest source and compiled using the configure defaults. I would be happy to put on the ScriptBasic site a tar.gz that contains the following. scriba (64 bit Ubuntu) or install the ScriptBasic 64 bit DEB. gtk-server.so (goes in the module include directory) libgsl.so (it was installed by make in the /usr/local/lib directory and nothing special is needed other than the DEFINE in the script) FWIW: I change the PRINT FORMAT() to return a precision of 48. J0(5) = -1.775970000000000326156879282279987819492816925049e-01 From jussi.lahtinen at ...626... Sat May 21 21:01:11 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 21 May 2011 22:01:11 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105212004.49027.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> Message-ID: Not me, it's John! I have no need for other basic, even if I don't need GUI, Gambas is my option. Why not to do command line programs with Gambas!?? It's much easier and simpler!!! This is all you need in Gambas: Extern gsl_sf_bessel_J0(x As Float) As Float In "libgsl:0" Public Sub Main() Print gsl_sf_bessel_J0(5) End Jussi On Sat, May 21, 2011 at 21:04, wally wrote: > On Saturday, May 21, 2011 18:54:03 John Spikowski wrote: > > On Sat, 2011-05-21 at 18:27 +0200, wally wrote: > > > Jussi, > > > > > > GSL is grouped in similar functions and i think if one member of a > group > > > works already, the remaining members should work also with similar > code. > > > I will try to make an emsemble of gb3 snippets and see what else is > > > necessary to cover at least some main features of GSL. > > > > > > wally > > > > I'm adding GSL support to ScriptBasic by dynamically scripting the > > library at run time. My interests in GSL don't require a GUI so Gambas > > is overkill in my case. Here is an example of calling the "Regular > > Cylindrical Bessel" function. > > > > DECLARE SUB DLL ALIAS "_idll" LIB "gtk-server" > > DECLARE SUB REQUIRE ALIAS "_idll_require" LIB "gtk-server" > > DECLARE SUB DEFINE ALIAS "_idll_define" LIB "gtk-server" > > > > REQUIRE "libgsl.so" > > DEFINE "gsl_sf_bessel_J0 NONE DOUBLE 1 DOUBLE" > > > > PRINT FORMAT("J0(%g) = %.18e\n", 5.0, DLL("gsl_sf_bessel_J0 " & 5.0)) > > > > RESULTS: > > > > J0(5) = -1.775970000000000326e-01 > > > > > > > > > > > > > --------------------------------------------------------------------------- > > --- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Jussi > > never met scriba but installed and tried your bessel: > error &H10:The requested module can not be loaded. > seems i should read some docs and load some modules first :) > > wally > > > > > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat May 21 21:04:10 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 21 May 2011 22:04:10 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> Message-ID: And BTW, Gambas gives more accurate result! Gambas; -0.177596771314338 Actual; -0.177596771314338304347397013074758711071130356008509128990... Jussi On Sat, May 21, 2011 at 22:01, Jussi Lahtinen wrote: > Not me, it's John! > I have no need for other basic, even if I don't need GUI, Gambas is my > option. > Why not to do command line programs with Gambas!?? > > It's much easier and simpler!!! > This is all you need in Gambas: > > Extern gsl_sf_bessel_J0(x As Float) As Float In "libgsl:0" > > Public Sub Main() > Print gsl_sf_bessel_J0(5) > End > > Jussi > > > > > On Sat, May 21, 2011 at 21:04, wally wrote: > >> On Saturday, May 21, 2011 18:54:03 John Spikowski wrote: >> > On Sat, 2011-05-21 at 18:27 +0200, wally wrote: >> > > Jussi, >> > > >> > > GSL is grouped in similar functions and i think if one member of a >> group >> > > works already, the remaining members should work also with similar >> code. >> > > I will try to make an emsemble of gb3 snippets and see what else is >> > > necessary to cover at least some main features of GSL. >> > > >> > > wally >> > >> > I'm adding GSL support to ScriptBasic by dynamically scripting the >> > library at run time. My interests in GSL don't require a GUI so Gambas >> > is overkill in my case. Here is an example of calling the "Regular >> > Cylindrical Bessel" function. >> > >> > DECLARE SUB DLL ALIAS "_idll" LIB "gtk-server" >> > DECLARE SUB REQUIRE ALIAS "_idll_require" LIB "gtk-server" >> > DECLARE SUB DEFINE ALIAS "_idll_define" LIB "gtk-server" >> > >> > REQUIRE "libgsl.so" >> > DEFINE "gsl_sf_bessel_J0 NONE DOUBLE 1 DOUBLE" >> > >> > PRINT FORMAT("J0(%g) = %.18e\n", 5.0, DLL("gsl_sf_bessel_J0 " & 5.0)) >> > >> > RESULTS: >> > >> > J0(5) = -1.775970000000000326e-01 >> > >> > >> > >> > >> > >> > >> --------------------------------------------------------------------------- >> > --- What Every C/C++ and Fortran developer Should Know! >> > Read this article and learn how Intel has extended the reach of its >> > next-generation tools to help Windows* and Linux* C/C++ and Fortran >> > developers boost performance applications - including clusters. >> > http://p.sf.net/sfu/intel-dev2devmay >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> Jussi >> >> never met scriba but installed and tried your bessel: >> error &H10:The requested module can not be loaded. >> seems i should read some docs and load some modules first :) >> >> wally >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From wally at ...2037... Sat May 21 21:16:15 2011 From: wally at ...2037... (wally) Date: Sat, 21 May 2011 21:16:15 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <1306003713.2035.16.camel@...1833...> References: <201105161812.08869.wally@...2037...> <201105212004.49027.wally@...2037...> <1306003713.2035.16.camel@...1833...> Message-ID: <201105212116.15879.wally@...2037...> sorry, messed up John and Jussi :) On Saturday, May 21, 2011 20:48:33 John Spikowski wrote: > On Sat, 2011-05-21 at 20:04 +0200, wally wrote: > > never met scriba but installed and tried your bessel: > > error &H10:The requested module can not be loaded. > > seems i should read some docs and load some modules first :) > > You need the following to run my example. > > * GTK-Server extension module. I modified it to make REQUIRE and DEFINE > easier to use. > > * libgsl.so - I downloaded the latest source and compiled using the > configure defaults. > > I would be happy to put on the ScriptBasic site a tar.gz that contains > the following. > > scriba (64 bit Ubuntu) or install the ScriptBasic 64 bit DEB. > gtk-server.so (goes in the module include directory) > libgsl.so (it was installed by make in the /usr/local/lib directory and > nothing special is needed other than the DEFINE in the script) > > FWIW: I change the PRINT FORMAT() to return a precision of 48. > > J0(5) = -1.775970000000000326156879282279987819492816925049e-01 > > > > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From support at ...2529... Sat May 21 21:20:49 2011 From: support at ...2529... (John Spikowski) Date: Sat, 21 May 2011 12:20:49 -0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105212004.49027.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> Message-ID: <1306005649.2035.24.camel@...1833...> On Sat, 2011-05-21 at 20:04 +0200, wally wrote: > never met scriba but installed and tried your bessel: > error &H10:The requested module can not be loaded. > seems i should read some docs and load some modules first :) > > wally You can get what you need from here. SB64 http://www.scriptbasic.org/forum/index.php/topic,216.0.html GTK-Server 64 (SB version I tweaked) http://www.allbasic.info/forum/index.php?topic=103.msg1052#msg1052 Note: gtk-server.so goes in /usr/local/lib/scriba directory after installing ScriptBasic. /usr/local/lib/libgsl* http://files.allbasic.info/ScriptBasic/libgsl.tar.z From support at ...2529... Sat May 21 21:24:54 2011 From: support at ...2529... (John Spikowski) Date: Sat, 21 May 2011 12:24:54 -0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> Message-ID: <1306005894.2035.27.camel@...1833...> On Sat, 2011-05-21 at 22:04 +0300, Jussi Lahtinen wrote: > And BTW, Gambas gives more accurate result! > Gambas; -0.177596771314338 > Actual; -0.177596771314338304347397013074758711071130356008509128990... > > Jussi > J0(5) = -1.775970000000000326156879282279987819492816925049e-01 I would be interest to know which is actually correct. (Gambas or ScriptBasic) Here is a C version to try. #include #include int main (void) { double x = 5.0; double y = gsl_sf_bessel_J0 (x); printf ("J0(%g) = %.48e\n", x, y); return 0; } From jussi.lahtinen at ...626... Sat May 21 21:27:18 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 21 May 2011 22:27:18 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <1306005894.2035.27.camel@...1833...> References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> <1306005894.2035.27.camel@...1833...> Message-ID: Gambas! http://www.wolframalpha.com/input/?i=besselj0%285%29 Jussi On Sat, May 21, 2011 at 22:24, John Spikowski wrote: > On Sat, 2011-05-21 at 22:04 +0300, Jussi Lahtinen wrote: > > And BTW, Gambas gives more accurate result! > > Gambas; -0.177596771314338 > > Actual; > -0.177596771314338304347397013074758711071130356008509128990... > > > > Jussi > > > > J0(5) = -1.775970000000000326156879282279987819492816925049e-01 > > I would be interest to know which is actually correct. (Gambas or > ScriptBasic) > > Here is a C version to try. > > #include > #include > > int > main (void) > { > double x = 5.0; > double y = gsl_sf_bessel_J0 (x); > printf ("J0(%g) = %.48e\n", x, y); > return 0; > } > > > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From support at ...2529... Sat May 21 21:45:03 2011 From: support at ...2529... (John Spikowski) Date: Sat, 21 May 2011 12:45:03 -0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> <1306005894.2035.27.camel@...1833...> Message-ID: <1306007103.2035.30.camel@...1833...> On Sat, 2011-05-21 at 22:27 +0300, Jussi Lahtinen wrote: > Gambas! > http://www.wolframalpha.com/input/?i=besselj0%285%29 > > Jussi Thanks for testing. Now I need to determine if the FORMAT() function is the problem or GTK-Server and the return of a DOUBLE. Good to know these things early in the game. ;-) From support at ...2529... Sat May 21 23:10:07 2011 From: support at ...2529... (John Spikowski) Date: Sat, 21 May 2011 14:10:07 -0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> <1306005894.2035.27.camel@...1833...> Message-ID: <1306012207.2035.32.camel@...1833...> On Sat, 2011-05-21 at 22:27 +0300, Jussi Lahtinen wrote: > Gambas! > http://www.wolframalpha.com/input/?i=besselj0%285%29 > > Jussi > Here is the result of the C version. gcc -Wall intro.c -lgslcblas -lgsl -o intro J0(5) = -1.775967713143382642471124199801124632358551025391e-01 For grins I DEFINED the printf() and used it instead of the SB FORMAT() function. DEFINE "printf NONE DOUBLE 3 STRING DOUBLE DOUBLE" DLL("printf \"J0(%g) = %.48e\n\" 5.0 " & DLL("gsl_sf_bessel_J0 " & 5.0)) J0(5) = -1.775970000000000048601123125990852713584899902344e-01 v = 1.775967713143382642471124199801124632358551025391e-01 PRINT FORMAT("J0(%g) = %.48e\n", 5.0, v) J0(5) = 1.775967713143382642471124199801124632358551025391e-01 I'm convinced I have a GTK-Server issue with DOUBLE returns. From jussi.lahtinen at ...626... Sat May 21 23:38:05 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 22 May 2011 00:38:05 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <1306012207.2035.32.camel@...1833...> References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> <1306005894.2035.27.camel@...1833...> <1306012207.2035.32.camel@...1833...> Message-ID: Just use Gambas to solve the problem! Jussi On Sun, May 22, 2011 at 00:10, John Spikowski wrote: > On Sat, 2011-05-21 at 22:27 +0300, Jussi Lahtinen wrote: > > Gambas! > > http://www.wolframalpha.com/input/?i=besselj0%285%29 > > > > Jussi > > > > Here is the result of the C version. > > gcc -Wall intro.c -lgslcblas -lgsl -o intro > > J0(5) = -1.775967713143382642471124199801124632358551025391e-01 > > For grins I DEFINED the printf() and used it instead of the SB FORMAT() > function. > > DEFINE "printf NONE DOUBLE 3 STRING DOUBLE DOUBLE" > > DLL("printf \"J0(%g) = %.48e\n\" 5.0 " & DLL("gsl_sf_bessel_J0 " & 5.0)) > > J0(5) = -1.775970000000000048601123125990852713584899902344e-01 > > > > v = 1.775967713143382642471124199801124632358551025391e-01 > > PRINT FORMAT("J0(%g) = %.48e\n", 5.0, v) > > > J0(5) = 1.775967713143382642471124199801124632358551025391e-01 > > I'm convinced I have a GTK-Server issue with DOUBLE returns. > > > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From support at ...2529... Sat May 21 23:56:36 2011 From: support at ...2529... (John Spikowski) Date: Sat, 21 May 2011 14:56:36 -0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105211827.35271.wally@...2037...> <1305996843.2035.4.camel@...1833...> <201105212004.49027.wally@...2037...> <1306005894.2035.27.camel@...1833...> <1306012207.2035.32.camel@...1833...> Message-ID: <1306014996.2035.36.camel@...1833...> On Sun, 2011-05-22 at 00:38 +0300, Jussi Lahtinen wrote: > Just use Gambas to solve the problem! > > Jussi ScriptBasic is < 500KB soaking wet. ;-) From lordheavym at ...626... Sun May 22 00:04:24 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 22 May 2011 00:04:24 +0200 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <201105212043.56567.gambas@...1...> References: <201105211415.37083.gambas@...1...> <201105211833.55447.lordheavym@...626...> <201105212043.56567.gambas@...1...> Message-ID: <201105220004.24827.lordheavym@...626...> Le samedi 21 mai 2011 20:43:07, Beno?t Minisini a ?crit : > > I will update the "http://gambasdoc.org/help/doc/package" information about > how Gambas 3 will be packaged for each distribution. > > Can you tell me, or directly update the page (once I have done it) with all > the information related to the Gambas binary packages on Arch Linux ? > > I have the same request for all distributions of the universe. Please help! Done for Archlinux, just ping if it isn't enough. ++ From gambas at ...1... Sun May 22 01:17:17 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 May 2011 01:17:17 +0200 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <201105220004.24827.lordheavym@...626...> References: <201105211415.37083.gambas@...1...> <201105212043.56567.gambas@...1...> <201105220004.24827.lordheavym@...626...> Message-ID: <201105220117.17198.gambas@...1...> > Le samedi 21 mai 2011 20:43:07, Beno?t Minisini a ?crit : > > I will update the "http://gambasdoc.org/help/doc/package" information > > about how Gambas 3 will be packaged for each distribution. > > > > Can you tell me, or directly update the page (once I have done it) with > > all the information related to the Gambas binary packages on Arch Linux > > ? > > > > I have the same request for all distributions of the universe. Please > > help! > > Done for Archlinux, just ping if it isn't enough. > > ++ > The "last update" of those packages is 03/26/2011, and not today. Is it normal? -- Beno?t Minisini From shanep at ...2481... Sun May 22 04:25:20 2011 From: shanep at ...2481... (Shane Powell) Date: Sun, 22 May 2011 12:25:20 +1000 Subject: [Gambas-user] printing gambas 3 In-Reply-To: References: <4DD656E1.4040204@...2481...> <4DD6E9F0.2070704@...2481...> Message-ID: <4DD87410.6080501@...2481...> On 22/05/11 00:27, Fabien Bodard wrote: > 2011/5/21 Shane Powell: >> On 21/05/11 00:53, Fabien Bodard wrote: >>> 2011/5/20 Shane Powell: >>>> trying to print in gambas 3 using drawtext but the letters are huge >>>> what gives ? >>> on gambas3 you need to use the paint class >>> >>> paint.text... >>> >>> paint generate vectorial and antialiased draw. >>> >>> you can use gb.report too >>> >>> but what did you want to draw ? >>> >>> >>> >>>> ------------------------------------------------------------------------------ >>>> What Every C/C++ and Fortran developer Should Know! >>>> Read this article and learn how Intel has extended the reach of its >>>> next-generation tools to help Windows* and Linux* C/C++ and Fortran >>>> developers boost performance applications - including clusters. >>>> http://p.sf.net/sfu/intel-dev2devmay >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> I just want to print text at certain size just like it use to in Gambas 2 >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > so you can use gb.report > is there any doc's for this component From lordheavym at ...626... Sun May 22 08:51:46 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 22 May 2011 08:51:46 +0200 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <201105220117.17198.gambas@...1...> References: <201105211415.37083.gambas@...1...> <201105220004.24827.lordheavym@...626...> <201105220117.17198.gambas@...1...> Message-ID: <201105220851.46489.lordheavym@...626...> Le dimanche 22 mai 2011 01:17:17, Beno?t Minisini a ?crit : > > Le samedi 21 mai 2011 20:43:07, Beno?t Minisini a ?crit : > > > I will update the "http://gambasdoc.org/help/doc/package" information > > > about how Gambas 3 will be packaged for each distribution. > > > > > > Can you tell me, or directly update the page (once I have done it) with > > > all the information related to the Gambas binary packages on Arch Linux > > > ? > > > > > > I have the same request for all distributions of the universe. Please > > > help! > > > > Done for Archlinux, just ping if it isn't enough. > > > > ++ > > The "last update" of those packages is 03/26/2011, and not today. Is it > normal? You're right, it isn't normal. It should be fixed now . ++ From wally at ...2037... Sun May 22 09:09:26 2011 From: wally at ...2037... (wally) Date: Sun, 22 May 2011 09:09:26 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <1306005894.2035.27.camel@...1833...> Message-ID: <201105220909.26801.wally@...2037...> here is a gambas3 demo of gsl cspline. wally -------------- next part -------------- A non-text attachment was scrubbed... Name: gsl_interp_cspline_demo-0.0.1.tar.gz Type: application/x-compressed-tar Size: 5734 bytes Desc: not available URL: From support at ...2529... Sun May 22 11:24:50 2011 From: support at ...2529... (John Spikowski) Date: Sun, 22 May 2011 02:24:50 -0700 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105220909.26801.wally@...2037...> References: <201105161812.08869.wally@...2037...> <1306005894.2035.27.camel@...1833...> <201105220909.26801.wally@...2037...> Message-ID: <1306056290.1995.21.camel@...1833...> On Sun, 2011-05-22 at 09:09 +0200, wally wrote: > here is a gambas3 demo of gsl cspline. > wally Here is a working ScriptBasic Windows version (running under Wine) using the DYC extension module for the FFI. (GTK-Server was the issue under Ubuntu 64) Code: (testgsl.sb) DECLARE SUB DLL ALIAS "dyc" LIB "dyc" dv = DLL("ms8,d,libgsl-0.dll,gsl_sf_bessel_J0,d",5.0) PRINT FORMAT("%.16e",dv) Results: C:\scriptbasic\test>scriba testgsl.sb -1.7759677131433826e-001 C:\scriptbasic\test> From jussi.lahtinen at ...626... Sun May 22 14:14:37 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 22 May 2011 15:14:37 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105220909.26801.wally@...2037...> References: <201105161812.08869.wally@...2037...> <1306005894.2035.27.camel@...1833...> <201105220909.26801.wally@...2037...> Message-ID: Nice work. Code quality is good, this could be official demo for using external libraries. Only "clear" button is missing. Jussi On Sun, May 22, 2011 at 10:09, wally wrote: > > here is a gambas3 demo of gsl cspline. > wally > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Sun May 22 15:10:15 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 22 May 2011 16:10:15 +0300 Subject: [Gambas-user] One line to IDE Message-ID: Benoit, I think you forgot to add this line... I have long procedure lists, and I want to jump automatically to right position of list. FProcedureList --> SetCurrent --> line 96: gvwProc.MoveTo(iCurrent, 0) Jussi From wally at ...2037... Sun May 22 15:17:49 2011 From: wally at ...2037... (wally) Date: Sun, 22 May 2011 15:17:49 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105220909.26801.wally@...2037...> Message-ID: <201105221517.50044.wally@...2037...> ok , i'll add clear button the remaining interpolation types are ready. also derivative of interpolation now adding derivative2 and integral of interpolation then i'll try rootfinding wally On Sunday, May 22, 2011 14:14:37 Jussi Lahtinen wrote: > Nice work. > Code quality is good, this could be official demo for using external > libraries. > Only "clear" button is missing. > > Jussi > > On Sun, May 22, 2011 at 10:09, wally wrote: > > here is a gambas3 demo of gsl cspline. > > wally > > > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From wally at ...2037... Sun May 22 15:36:27 2011 From: wally at ...2037... (wally) Date: Sun, 22 May 2011 15:36:27 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105220909.26801.wally@...2037...> Message-ID: <201105221536.27808.wally@...2037...> clear button added On Sunday, May 22, 2011 14:14:37 Jussi Lahtinen wrote: > Nice work. > Code quality is good, this could be official demo for using external > libraries. > Only "clear" button is missing. > > Jussi > > On Sun, May 22, 2011 at 10:09, wally wrote: > > here is a gambas3 demo of gsl cspline. > > wally > > > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: gsl_interp_cspline_demo-0.0.2.tar.gz Type: application/x-compressed-tar Size: 5798 bytes Desc: not available URL: From jussi.lahtinen at ...626... Sun May 22 16:31:53 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 22 May 2011 17:31:53 +0300 Subject: [Gambas-user] Problems with gbs In-Reply-To: References: Message-ID: This problem is now "solved". I'm going to do distribution update, and because of that I temporarily change my fstab: /tmp ext4 relatime,nosuid,noexec 0 2 --> /tmp ext4 defaults 0 2 So, looks like even when gbs3 is not executed in /tmp, it is enough that compiled byte code is in /tmp... it's marked as executable. Is it possible to change this behaviour? Isn't byte code just read for interpreter, and not executed by itself..? Or maybe there could be alternative path for byte code (example ~/.gambastmp) that would be automatically cleared when execution ends? Jussi On Wed, Apr 6, 2011 at 20:13, Jussi Lahtinen wrote: > Hi! > I tried to run the benchmarks. But I couldn't run gambas script. > > $ gbs3 -v -c ./testscript > gbs: Main procedure not defined, create it > > OK, then I added "Sub Main()" and "End" to the script. > > $ gbs3 -v -c ./testscript > gbs: Main procedure not defined, create it > MMain.module:42: error: 'Main' already declared > > # Gambas Project File 3.0 > Title=Gambas Script > Startup=MMain > ... > > If I run it just with "./testscript" I won't get any errors, nor any > indication that program was ran or not. > > Gambas 3 rev 3735 @ Ubuntu 10.10 64bit > > Jussi > From gambas at ...1... Sun May 22 16:41:39 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 May 2011 16:41:39 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105221536.27808.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105221536.27808.wally@...2037...> Message-ID: <201105221641.39260.gambas@...1...> > clear button added > I'd like to use it as an example. Can you just do the following changes: - Add an about box with your name. - Use "libgsl:0" as library name, otherwise the example will need the libgsl development packages. Thanks in advance. Regards, -- Beno?t Minisini From gambas at ...1... Sun May 22 17:01:12 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 May 2011 17:01:12 +0200 Subject: [Gambas-user] One line to IDE In-Reply-To: References: Message-ID: <201105221701.12489.gambas@...1...> > Benoit, I think you forgot to add this line... I have long procedure lists, > and I want to jump automatically to right position of list. > FProcedureList --> SetCurrent --> line 96: > > gvwProc.MoveTo(iCurrent, 0) > > > Jussi Not the good fix, but I understand the problem. I will post a fix soon. Regards, -- Beno?t Minisini From gambas at ...1... Sun May 22 17:08:04 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 May 2011 17:08:04 +0200 Subject: [Gambas-user] One line to IDE In-Reply-To: <201105221701.12489.gambas@...1...> References: <201105221701.12489.gambas@...1...> Message-ID: <201105221708.04866.gambas@...1...> > > Benoit, I think you forgot to add this line... I have long procedure > > lists, and I want to jump automatically to right position of list. > > FProcedureList --> SetCurrent --> line 96: > > > > gvwProc.MoveTo(iCurrent, 0) > > > > > > Jussi > > Not the good fix, but I understand the problem. I will post a fix soon. > > Regards, OK, it should be fixed in revision #3856. Regards, -- Beno?t Minisini From wally at ...2037... Sun May 22 18:29:31 2011 From: wally at ...2037... (wally) Date: Sun, 22 May 2011 18:29:31 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105221641.39260.gambas@...1...> References: <201105161812.08869.wally@...2037...> <201105221536.27808.wally@...2037...> <201105221641.39260.gambas@...1...> Message-ID: <201105221829.32322.wally@...2037...> ok, done On Sunday, May 22, 2011 16:41:39 Beno?t Minisini wrote: > > clear button added > > I'd like to use it as an example. Can you just do the following changes: > > - Add an about box with your name. > > - Use "libgsl:0" as library name, otherwise the example will need the > libgsl development packages. > > Thanks in advance. > > Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: gsl_interp_cspline_demo-0.0.3.tar.gz Type: application/x-compressed-tar Size: 5879 bytes Desc: not available URL: From gambas.fr at ...626... Sun May 22 18:57:18 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 22 May 2011 18:57:18 +0200 Subject: [Gambas-user] printing gambas 3 In-Reply-To: <4DD87410.6080501@...2481...> References: <4DD656E1.4040204@...2481...> <4DD6E9F0.2070704@...2481...> <4DD87410.6080501@...2481...> Message-ID: 2011/5/22 Shane Powell : > On 22/05/11 00:27, Fabien Bodard wrote: >> 2011/5/21 Shane Powell: >>> On 21/05/11 00:53, Fabien Bodard wrote: >>>> 2011/5/20 Shane Powell: >>>>> trying to print in gambas 3 using drawtext but the letters are huge >>>>> what gives ? >>>> on gambas3 you need to use the paint class >>>> >>>> paint.text... >>>> >>>> paint generate vectorial and antialiased draw. >>>> >>>> you can use gb.report too >>>> >>>> but what did you want to draw ? >>>> >>>> >>>> >>>>> ------------------------------------------------------------------------------ >>>>> What Every C/C++ and Fortran developer Should Know! >>>>> Read this article and learn how Intel has extended the reach of its >>>>> next-generation tools to help Windows* and Linux* C/C++ and Fortran >>>>> developers boost performance applications - including clusters. >>>>> http://p.sf.net/sfu/intel-dev2devmay >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>> I just want to print text at certain size just like it use to in Gambas 2 >>> >>> ------------------------------------------------------------------------------ >>> What Every C/C++ and Fortran developer Should Know! >>> Read this article and learn how Intel has extended the reach of its >>> next-generation tools to help Windows* and Linux* C/C++ and Fortran >>> developers boost performance applications - including clusters. >>> http://p.sf.net/sfu/intel-dev2devmay >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> so you can use gb.report >> > is there any doc's for this component heu.... i've not done it yet... it's on my long todo list but there is an example in the ide examples > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Sun May 22 20:43:09 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 22 May 2011 21:43:09 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105221829.32322.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105221536.27808.wally@...2037...> <201105221641.39260.gambas@...1...> <201105221829.32322.wally@...2037...> Message-ID: For some reason I get error message with this code; "The program has returned value 127." And then to console; "gsl_interp_cspline_demo: symbol lookup error: /usr/lib/libQtGui.so.4: undefined symbol: _ZN18QThreadStorageDataD1Ev" Gambas 3 rev 3856 @ Ubuntu 11.04 64bit Jussi On Sun, May 22, 2011 at 19:29, wally wrote: > > ok, done > > On Sunday, May 22, 2011 16:41:39 Beno?t Minisini wrote: > > > clear button added > > > > I'd like to use it as an example. Can you just do the following changes: > > > > - Add an about box with your name. > > > > - Use "libgsl:0" as library name, otherwise the example will need the > > libgsl development packages. > > > > Thanks in advance. > > > > Regards, > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Sun May 22 21:00:19 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 22 May 2011 22:00:19 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105221536.27808.wally@...2037...> <201105221641.39260.gambas@...1...> <201105221829.32322.wally@...2037...> Message-ID: Hmmm.... official example doesn't have this problem..? What is the difference? Jussi On Sun, May 22, 2011 at 21:43, Jussi Lahtinen wrote: > For some reason I get error message with this code; > "The program has returned value 127." > And then to console; > "gsl_interp_cspline_demo: symbol lookup error: /usr/lib/libQtGui.so.4: > undefined symbol: _ZN18QThreadStorageDataD1Ev" > > Gambas 3 rev 3856 @ Ubuntu 11.04 64bit > > > Jussi > > > > On Sun, May 22, 2011 at 19:29, wally wrote: > >> >> ok, done >> >> On Sunday, May 22, 2011 16:41:39 Beno?t Minisini wrote: >> > > clear button added >> > >> > I'd like to use it as an example. Can you just do the following changes: >> > >> > - Add an about box with your name. >> > >> > - Use "libgsl:0" as library name, otherwise the example will need the >> > libgsl development packages. >> > >> > Thanks in advance. >> > >> > Regards, >> >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From jussi.lahtinen at ...626... Sun May 22 21:16:59 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 22 May 2011 22:16:59 +0300 Subject: [Gambas-user] One line to IDE In-Reply-To: <201105221708.04866.gambas@...1...> References: <201105221701.12489.gambas@...1...> <201105221708.04866.gambas@...1...> Message-ID: No, problem persist! Jussi 2011/5/22 Beno?t Minisini > > > Benoit, I think you forgot to add this line... I have long procedure > > > lists, and I want to jump automatically to right position of list. > > > FProcedureList --> SetCurrent --> line 96: > > > > > > gvwProc.MoveTo(iCurrent, 0) > > > > > > > > > Jussi > > > > Not the good fix, but I understand the problem. I will post a fix soon. > > > > Regards, > > OK, it should be fixed in revision #3856. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun May 22 23:57:49 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 May 2011 23:57:49 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> Message-ID: <201105222357.49866.gambas@...1...> > Hmmm.... official example doesn't have this problem..? > What is the difference? > > Jussi > Beside a few GUI changes, no difference at all. When do you get that message exactly? -- Beno?t Minisini From gambas at ...1... Mon May 23 01:01:03 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 May 2011 01:01:03 +0200 Subject: [Gambas-user] One line to IDE In-Reply-To: References: <201105221708.04866.gambas@...1...> Message-ID: <201105230101.03582.gambas@...1...> > No, problem persist! > > Jussi > So I didn't understand what you talked about. -- Beno?t Minisini From wally at ...2037... Mon May 23 10:49:18 2011 From: wally at ...2037... (wally) Date: Mon, 23 May 2011 10:49:18 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105222357.49866.gambas@...1...> References: <201105161812.08869.wally@...2037...> <201105222357.49866.gambas@...1...> Message-ID: <201105231049.18809.wally@...2037...> should i post the remaining gsl-interpolation group examples here ? (linear, polynomial, akima,derivation, integral ) actuakky i have problem to pass the splines to rootfinder wally On Sunday, May 22, 2011 23:57:49 Beno?t Minisini wrote: > > Hmmm.... official example doesn't have this problem..? > > What is the difference? > > > > Jussi > > Beside a few GUI changes, no difference at all. When do you get that > message exactly? From rterry at ...1946... Mon May 23 11:23:08 2011 From: rterry at ...1946... (richard terry) Date: Mon, 23 May 2011 19:23:08 +1000 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105231049.18809.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105222357.49866.gambas@...1...> <201105231049.18809.wally@...2037...> Message-ID: <201105231923.08379.rterry@...1946...> On Monday 23 May 2011 18:49:18 wally wrote: What's this example meant to do/show. I've installed and tried to run it and nothing happens. I seem to have according to synaptic GNU Scientific Library (GSL) -- library package installed. Can your demo do some sort of check on this and then popup something for the user saying "bla bla... is missing - you need to install...... " Regards richard > should i post the remaining gsl-interpolation group examples here ? > (linear, polynomial, akima,derivation, integral ) > actuakky i have problem to pass the splines to rootfinder > wally > > On Sunday, May 22, 2011 23:57:49 Beno?t Minisini wrote: > > > Hmmm.... official example doesn't have this problem..? > > > What is the difference? > > > > > > Jussi > > > > Beside a few GUI changes, no difference at all. When do you get that > > message exactly? > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Mon May 23 13:23:30 2011 From: wally at ...2037... (wally) Date: Mon, 23 May 2011 13:23:30 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105231923.08379.rterry@...1946...> References: <201105161812.08869.wally@...2037...> <201105231049.18809.wally@...2037...> <201105231923.08379.rterry@...1946...> Message-ID: <201105231323.30754.wally@...2037...> do some left-mouse-clicks on the drawingarea and push button cspline On Monday, May 23, 2011 11:23:08 richard terry wrote: > On Monday 23 May 2011 18:49:18 wally wrote: > > What's this example meant to do/show. > > I've installed and tried to run it and nothing happens. > > I seem to have according to synaptic GNU Scientific Library (GSL) -- > library package installed. > > Can your demo do some sort of check on this and then popup something for > the user saying "bla bla... is missing - you need to install...... " > > Regards > > richard > > > should i post the remaining gsl-interpolation group examples here ? > > (linear, polynomial, akima,derivation, integral ) > > actuakky i have problem to pass the splines to rootfinder > > wally > > > > On Sunday, May 22, 2011 23:57:49 Beno?t Minisini wrote: > > > > Hmmm.... official example doesn't have this problem..? > > > > What is the difference? > > > > > > > > Jussi > > > > > > Beside a few GUI changes, no difference at all. When do you get that > > > message exactly? > > > > ------------------------------------------------------------------------- > > -- --- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Mon May 23 14:15:18 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 23 May 2011 14:15:18 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105231923.08379.rterry@...1946...> References: <201105161812.08869.wally@...2037...> <201105222357.49866.gambas@...1...> <201105231049.18809.wally@...2037...> <201105231923.08379.rterry@...1946...> Message-ID: 2011/5/23 richard terry : > On Monday 23 May 2011 18:49:18 wally wrote: > > What's this example meant to do/show. > > I've installed and tried to run it and nothing happens. > > I seem to have according to synaptic GNU Scientific Library (GSL) -- library > package installed. > > Can your demo do some sort of check on this and then popup something for the > user saying "bla bla... is missing - you need to install...... " try to install the-dev package sometime some links are not present without it > > Regards > > richard > > >> should i post the remaining gsl-interpolation group examples here ?? >> (linear, polynomial, akima,derivation, integral ) >> actuakky i have problem to pass the splines to rootfinder >> wally >> >> On Sunday, May 22, 2011 23:57:49 Beno?t Minisini wrote: >> > > Hmmm.... official example doesn't have this problem..? >> > > What is the difference? >> > > >> > > Jussi >> > >> > Beside a few GUI changes, no difference at all. When do you get that >> > message exactly? >> >> --------------------------------------------------------------------------- >> --- What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From bbruen at ...2308... Mon May 23 14:24:47 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 23 May 2011 21:54:47 +0930 Subject: [Gambas-user] Cancelling TableView Edit Message-ID: <4DDA520F.8090607@...2308...> I have a TabStrip with a TableView in each tab. The Click event is set up to allow the user to edit the cell in-place, which works fine as long as they stay on the same tab. But if they change the active tab while the editor is active, it stays active??? and the textbox is visible on the other tab (and can be clicked on to "continue" the edit. Once this is done, then clicking on any other cell in the new tab still leaves the editor active. There appears to me to be no way to cancel the editor. Is this true? bruce From bbruen at ...2308... Mon May 23 14:29:57 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Mon, 23 May 2011 21:59:57 +0930 Subject: [Gambas-user] Cancelling TableView Edit In-Reply-To: <4DDA520F.8090607@...2308...> References: <4DDA520F.8090607@...2308...> Message-ID: <4DDA5345.4080502@...2308...> On 23/05/11 21:54, Bruce Bruen wrote: > I have a TabStrip with a TableView in each tab. The Click event is set > up to allow the user to edit the cell in-place, which works fine as long > as they stay on the same tab. > But if they change the active tab while the editor is active, it stays > active??? and the textbox is visible on the other tab (and can be > clicked on to "continue" the edit. Once this is done, then clicking on > any other cell in the new tab still leaves the editor active. > > There appears to me to be no way to cancel the editor. Is this true? > bruce > > n.b. Does not seem to happen under KDE only GTK! > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon May 23 15:19:23 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 May 2011 15:19:23 +0200 Subject: [Gambas-user] Cancelling TableView Edit In-Reply-To: <4DDA5345.4080502@...2308...> References: <4DDA520F.8090607@...2308...> <4DDA5345.4080502@...2308...> Message-ID: <201105231519.23238.gambas@...1...> > On 23/05/11 21:54, Bruce Bruen wrote: > > I have a TabStrip with a TableView in each tab. The Click event is set > > up to allow the user to edit the cell in-place, which works fine as long > > as they stay on the same tab. > > But if they change the active tab while the editor is active, it stays > > active??? and the textbox is visible on the other tab (and can be > > clicked on to "continue" the edit. Once this is done, then clicking on > > any other cell in the new tab still leaves the editor active. > > > > There appears to me to be no way to cancel the editor. Is this true? > > bruce > > n.b. Does not seem to happen under KDE only GTK! > Can you send me a little project example that shows exactly the problem? Thanks. -- Beno?t Minisini From jussi.lahtinen at ...626... Mon May 23 17:33:57 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 May 2011 18:33:57 +0300 Subject: [Gambas-user] One line to IDE In-Reply-To: References: <201105221708.04866.gambas@...1...> <201105230101.03582.gambas@...1...> Message-ID: Gambas 3 rev 3857 @ Ubuntu 11.04 64bit Jussi On Mon, May 23, 2011 at 18:32, Jussi Lahtinen wrote: > Maybe you do understand and there is some other problem... > Screenshot1.jpg tells what happens now when I press "h" on my keyboard. > Screenshot2.jpg tells what I expect to happen when I press "h". > > Jussi > > > > > 2011/5/23 Beno?t Minisini > >> > No, problem persist! >> > >> > Jussi >> > >> >> So I didn't understand what you talked about. >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From jussi.lahtinen at ...626... Mon May 23 17:48:24 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 May 2011 18:48:24 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105231049.18809.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105222357.49866.gambas@...1...> <201105231049.18809.wally@...2037...> Message-ID: > actuakky i have problem to pass the splines to rootfinder > What you are exactly trying to achieve? Rootfinder tries to find root of function, it doesn't eat data as such... For data just seek for zero. Jussi From wally at ...2037... Mon May 23 17:55:02 2011 From: wally at ...2037... (wally) Date: Mon, 23 May 2011 17:55:02 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105231049.18809.wally@...2037...> Message-ID: <201105231755.03247.wally@...2037...> Jussi, i try to analyze some spectrographic data. Mainly peakfinding, start of peak end of peak, integral between start and end of sigle peak in numerical data containing unknown number of peaks and of course noise. wally On Monday, May 23, 2011 17:48:24 Jussi Lahtinen wrote: > > actuakky i have problem to pass the splines to rootfinder > > What you are exactly trying to achieve? > Rootfinder tries to find root of function, it doesn't eat data as such... > For data just seek for zero. > > Jussi > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From wally at ...2037... Mon May 23 17:56:16 2011 From: wally at ...2037... (wally) Date: Mon, 23 May 2011 17:56:16 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105231049.18809.wally@...2037...> Message-ID: <201105231756.17172.wally@...2037...> and have some fun with maths :) On Monday, May 23, 2011 17:48:24 Jussi Lahtinen wrote: > > actuakky i have problem to pass the splines to rootfinder > > What you are exactly trying to achieve? > Rootfinder tries to find root of function, it doesn't eat data as such... > For data just seek for zero. > > Jussi > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Mon May 23 18:13:50 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 May 2011 19:13:50 +0300 Subject: [Gambas-user] One line to IDE In-Reply-To: References: <201105221708.04866.gambas@...1...> <201105230101.03582.gambas@...1...> Message-ID: Apparently 122K + 123K is over 256K, I get 245K... anyway, another try to post these pesky screenshots. Jussi On Mon, May 23, 2011 at 18:38, Jussi Lahtinen wrote: > Screenshots were too big... > > Jussi > > > > On Mon, May 23, 2011 at 18:33, Jussi Lahtinen wrote: > >> Gambas 3 rev 3857 @ Ubuntu 11.04 64bit >> >> Jussi >> >> >> >> On Mon, May 23, 2011 at 18:32, Jussi Lahtinen wrote: >> >>> Maybe you do understand and there is some other problem... >>> Screenshot1.jpg tells what happens now when I press "h" on my keyboard. >>> Screenshot2.jpg tells what I expect to happen when I press "h". >>> >>> Jussi >>> >>> >>> >>> >>> 2011/5/23 Beno?t Minisini >>> >>>> > No, problem persist! >>>> > >>>> > Jussi >>>> > >>>> >>>> So I didn't understand what you talked about. >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> What Every C/C++ and Fortran developer Should Know! >>>> Read this article and learn how Intel has extended the reach of its >>>> next-generation tools to help Windows* and Linux* C/C++ and Fortran >>>> developers boost performance applications - including clusters. >>>> http://p.sf.net/sfu/intel-dev2devmay >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot1.jpg Type: image/jpeg Size: 80749 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot2.jpg Type: image/jpeg Size: 80464 bytes Desc: not available URL: From gambas at ...1... Mon May 23 18:18:02 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 May 2011 18:18:02 +0200 Subject: [Gambas-user] One line to IDE In-Reply-To: References: Message-ID: <201105231818.02379.gambas@...1...> > Apparently 122K + 123K is over 256K, I get 245K... anyway, another try to > post these pesky screenshots. > > Jussi > Mails attachments are encoded, so their size is greater than their original binary size. And you have to take into account all the mail headers. -- Beno?t Minisini From wally at ...2037... Mon May 23 18:34:16 2011 From: wally at ...2037... (wally) Date: Mon, 23 May 2011 18:34:16 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105231049.18809.wally@...2037...> Message-ID: <201105231834.17361.wally@...2037...> Jussi, here is a screenshot from a peakgenerator made in gambas3. i use this to generate data similar to this i get from HPLC detector. i can send the data from the pealgenerator to several chromatography software. best solution would be to get the parameters set in peakgenerator back from the data in spite of noise, systematical error baseline etc. wally On Monday, May 23, 2011 17:48:24 Jussi Lahtinen wrote: > > actuakky i have problem to pass the splines to rootfinder > > What you are exactly trying to achieve? > Rootfinder tries to find root of function, it doesn't eat data as such... > For data just seek for zero. > > Jussi > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: peakgenerator.png Type: image/png Size: 71835 bytes Desc: not available URL: From jussi.lahtinen at ...626... Mon May 23 18:40:55 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 May 2011 19:40:55 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105231755.03247.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105231049.18809.wally@...2037...> <201105231755.03247.wally@...2037...> Message-ID: Rootfinder is not way to go... You may have to implement peak finder by yourself. Though, I suggest to google for ready algorithms, at best you may just have to do parametrization for peaks/noise/etc. Jussi On Mon, May 23, 2011 at 18:55, wally wrote: > Jussi, > > i try to analyze some spectrographic data. > Mainly peakfinding, start of peak end of peak, > integral between start and end of sigle peak in > numerical data containing unknown number of peaks > and of course noise. > > wally > > > On Monday, May 23, 2011 17:48:24 Jussi Lahtinen wrote: > > > actuakky i have problem to pass the splines to rootfinder > > > > What you are exactly trying to achieve? > > Rootfinder tries to find root of function, it doesn't eat data as such... > > For data just seek for zero. > > > > Jussi > > > --------------------------------------------------------------------------- > > --- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon May 23 18:47:32 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 May 2011 19:47:32 +0300 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: <201105231834.17361.wally@...2037...> References: <201105161812.08869.wally@...2037...> <201105231049.18809.wally@...2037...> <201105231834.17361.wally@...2037...> Message-ID: Sounds like you need to use statistical methods to find what you need. Jussi On Mon, May 23, 2011 at 19:34, wally wrote: > Jussi, > > here is a screenshot from a peakgenerator made in gambas3. > i use this to generate data similar to this i get from HPLC detector. > i can send the data from the pealgenerator to several chromatography > software. > best solution would be to get the parameters set in peakgenerator back from > the data in spite of noise, systematical error baseline etc. > > wally > > > > > On Monday, May 23, 2011 17:48:24 Jussi Lahtinen wrote: > > > actuakky i have problem to pass the splines to rootfinder > > > > What you are exactly trying to achieve? > > Rootfinder tries to find root of function, it doesn't eat data as such... > > For data just seek for zero. > > > > Jussi > > > --------------------------------------------------------------------------- > > --- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From wally at ...2037... Mon May 23 18:56:21 2011 From: wally at ...2037... (wally) Date: Mon, 23 May 2011 18:56:21 +0200 Subject: [Gambas-user] Gambas3 and Gnu scientific library In-Reply-To: References: <201105161812.08869.wally@...2037...> <201105231755.03247.wally@...2037...> Message-ID: <201105231856.21843.wally@...2037...> "parametrization" sounds good, but i'm not a mathematic. On Monday, May 23, 2011 18:40:55 Jussi Lahtinen wrote: > Rootfinder is not way to go... > You may have to implement peak finder by yourself. > Though, I suggest to google for ready algorithms, at best you may just have > to do parametrization > for peaks/noise/etc. > > Jussi > > On Mon, May 23, 2011 at 18:55, wally wrote: > > Jussi, > > > > i try to analyze some spectrographic data. > > Mainly peakfinding, start of peak end of peak, > > integral between start and end of sigle peak in > > numerical data containing unknown number of peaks > > and of course noise. > > > > wally > > > > On Monday, May 23, 2011 17:48:24 Jussi Lahtinen wrote: > > > > actuakky i have problem to pass the splines to rootfinder > > > > > > What you are exactly trying to achieve? > > > Rootfinder tries to find root of function, it doesn't eat data as > > > such... For data just seek for zero. > > > > > > Jussi > > > > ------------------------------------------------------------------------- > > -- > > > > > --- What Every C/C++ and Fortran developer Should Know! > > > Read this article and learn how Intel has extended the reach of its > > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > > developers boost performance applications - including clusters. > > > http://p.sf.net/sfu/intel-dev2devmay > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------- > > ----- What Every C/C++ and Fortran developer Should Know! > > Read this article and learn how Intel has extended the reach of its > > next-generation tools to help Windows* and Linux* C/C++ and Fortran > > developers boost performance applications - including clusters. > > http://p.sf.net/sfu/intel-dev2devmay > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > --------------------------------------------------------------------------- > --- What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From richard_sandia at ...1541... Mon May 23 21:37:25 2011 From: richard_sandia at ...1541... (xnome) Date: Mon, 23 May 2011 12:37:25 -0700 (PDT) Subject: [Gambas-user] Problem in configuting Message-ID: <31684795.post@...1379...> Hi, I am using gambas2 on ubuntu 10.10 32bit when read that gambas3 rc1 already publish i downloaded it and extract ASAP i followed your instruction from http://gambasdoc.org/help/install?en&view all files are fully extracted without any error but here the result: richard at ...2591...:/usr/src/gambas3-2.99.1$ sudo ./reconf-all ./reconf-all: 7: libtoolize: not found ./reconf-all: 8: autoreconf: not found i hope it can help make gambas better Merci beaucoup Richard -- View this message in context: http://old.nabble.com/Problem-in-configuting-tp31684795p31684795.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Mon May 23 21:39:56 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 23 May 2011 21:39:56 +0200 Subject: [Gambas-user] Problem in configuting In-Reply-To: <31684795.post@...1379...> References: <31684795.post@...1379...> Message-ID: apt-get install build-essential 2011/5/23 xnome : > > Hi, > I am using gambas2 ?on ubuntu 10.10 32bit > when read that gambas3 rc1 already publish i downloaded it and extract ASAP > i followed your instruction from http://gambasdoc.org/help/install?en&view > all files are fully extracted without any error > but here the result: > > richard at ...2591...:/usr/src/gambas3-2.99.1$ sudo ./reconf-all > ./reconf-all: 7: libtoolize: not found > ./reconf-all: 8: autoreconf: not found > > i hope it can help make gambas better > Merci beaucoup > > Richard > -- > View this message in context: http://old.nabble.com/Problem-in-configuting-tp31684795p31684795.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Mon May 23 21:45:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 May 2011 21:45:43 +0200 Subject: [Gambas-user] One line to IDE In-Reply-To: References: Message-ID: <201105232145.43851.gambas@...1...> > Apparently 122K + 123K is over 256K, I get 245K... anyway, another try to > post these pesky screenshots. > > Jussi > Fixed in revision #3858. Maybe :-) -- Beno?t Minisini From jussi.lahtinen at ...626... Mon May 23 21:46:05 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 May 2011 22:46:05 +0300 Subject: [Gambas-user] Problem in configuting In-Reply-To: <31684795.post@...1379...> References: <31684795.post@...1379...> Message-ID: Also do not use sudo, it is only needed with "make install". Jussi On Mon, May 23, 2011 at 22:37, xnome wrote: > > Hi, > I am using gambas2 on ubuntu 10.10 32bit > when read that gambas3 rc1 already publish i downloaded it and extract ASAP > i followed your instruction from http://gambasdoc.org/help/install?en&view > all files are fully extracted without any error > but here the result: > > richard at ...2591...:/usr/src/gambas3-2.99.1$ sudo ./reconf-all > ./reconf-all: 7: libtoolize: not found > ./reconf-all: 8: autoreconf: not found > > i hope it can help make gambas better > Merci beaucoup > > Richard > -- > View this message in context: > http://old.nabble.com/Problem-in-configuting-tp31684795p31684795.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From richard_sandia at ...1541... Mon May 23 21:52:05 2011 From: richard_sandia at ...1541... (xnome) Date: Mon, 23 May 2011 12:52:05 -0700 (PDT) Subject: [Gambas-user] Problem in configuting In-Reply-To: References: <31684795.post@...1379...> Message-ID: <31684894.post@...1379...> thank you Fabien it solved my problem Fabien Bodard-4 wrote: > > apt-get install build-essential > > 2011/5/23 xnome : >> >> Hi, >> I am using gambas2 ?on ubuntu 10.10 32bit >> when read that gambas3 rc1 already publish i downloaded it and extract >> ASAP >> i followed your instruction from >> http://gambasdoc.org/help/install?en&view >> all files are fully extracted without any error >> but here the result: >> >> richard at ...2591...:/usr/src/gambas3-2.99.1$ sudo ./reconf-all >> ./reconf-all: 7: libtoolize: not found >> ./reconf-all: 8: autoreconf: not found >> >> i hope it can help make gambas better >> Merci beaucoup >> >> Richard >> -- >> View this message in context: >> http://old.nabble.com/Problem-in-configuting-tp31684795p31684795.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> What Every C/C++ and Fortran developer Should Know! >> Read this article and learn how Intel has extended the reach of its >> next-generation tools to help Windows* and Linux* C/C++ and Fortran >> developers boost performance applications - including clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Problem-in-configurating-tp31684795p31684894.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Mon May 23 21:58:54 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 23 May 2011 22:58:54 +0300 Subject: [Gambas-user] One line to IDE In-Reply-To: <201105232145.43851.gambas@...1...> References: <201105232145.43851.gambas@...1...> Message-ID: Works fine! Thanks! Jussi 2011/5/23 Beno?t Minisini > > Apparently 122K + 123K is over 256K, I get 245K... anyway, another try to > > post these pesky screenshots. > > > > Jussi > > > > Fixed in revision #3858. Maybe :-) > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Tue May 24 04:01:17 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 23 May 2011 22:01:17 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <201105100359.24713.gambas@...1...> References: <4DC220D9.7020309@...1887...> <4DC88689.8030300@...1887...> <201105100359.24713.gambas@...1...> Message-ID: <4DDB116D.6020604@...1887...> On 05/09/2011 09:59 PM, Beno?t Minisini wrote: >> Think of it like a spreadsheet instead of an array. I need each "row" >> sorted by the value in a "column". The two column values are >> ObjectNumber and ObjectY and the row represents the array index. >> >> There's got to be something like this in GAMBAS, but if not I can start >> Google searching sort algorithms and make a procedure. > > - Put the objects you have to draw on the screen in a temporary array. > - Define the (X,Y) final coordinates in two object variables. > - Implement the "_sort" special method in the object class. > > That way, you just have to call "Sort" to sort only the objects you want the > way you want. The documentation didn't do much to alleviate my confusion, so if anyone understands this could you please post the simplest example possible? A link to the documentation on the _sort special method might be enough (I couldn't find it). As a refresher I'm basically trying to sort an array by one of its elements, much like sorting a spreadsheet. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Tue May 24 04:18:57 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 24 May 2011 11:48:57 +0930 Subject: [Gambas-user] Cancelling TableView Edit In-Reply-To: <201105231519.23238.gambas@...1...> References: <4DDA520F.8090607@...2308...> <4DDA5345.4080502@...2308...> <201105231519.23238.gambas@...1...> Message-ID: <4DDB1591.9070204@...2308...> On 23/05/11 22:49, Beno?t Minisini wrote: >> On 23/05/11 21:54, Bruce Bruen wrote: >> >>> I have a TabStrip with a TableView in each tab. The Click event is set >>> up to allow the user to edit the cell in-place, which works fine as long >>> as they stay on the same tab. >>> But if they change the active tab while the editor is active, it stays >>> active??? and the textbox is visible on the other tab (and can be >>> clicked on to "continue" the edit. Once this is done, then clicking on >>> any other cell in the new tab still leaves the editor active. >>> >>> There appears to me to be no way to cancel the editor. Is this true? >>> bruce >>> >> n.b. Does not seem to happen under KDE only GTK! >> >> > Can you send me a little project example that shows exactly the problem? > > Thanks. > > Attached bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: LittleAthsDemo-0.0.1.tar.gz Type: application/x-gzip Size: 8639 bytes Desc: not available URL: From kevinfishburne at ...1887... Tue May 24 04:22:45 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 23 May 2011 22:22:45 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DDB116D.6020604@...1887...> References: <4DC220D9.7020309@...1887...> <4DC88689.8030300@...1887...> <201105100359.24713.gambas@...1...> <4DDB116D.6020604@...1887...> Message-ID: <4DDB1675.8090109@...1887...> On 05/23/2011 10:01 PM, Kevin Fishburne wrote: > On 05/09/2011 09:59 PM, Beno?t Minisini wrote: >>> Think of it like a spreadsheet instead of an array. I need each "row" >>> sorted by the value in a "column". The two column values are >>> ObjectNumber and ObjectY and the row represents the array index. >>> >>> There's got to be something like this in GAMBAS, but if not I can start >>> Google searching sort algorithms and make a procedure. >> >> - Put the objects you have to draw on the screen in a temporary array. >> - Define the (X,Y) final coordinates in two object variables. >> - Implement the "_sort" special method in the object class. >> >> That way, you just have to call "Sort" to sort only the objects you want the >> way you want. > > The documentation didn't do much to alleviate my confusion, so if anyone > understands this could you please post the simplest example possible? A > link to the documentation on the _sort special method might be enough (I > couldn't find it). As a refresher I'm basically trying to sort an array > by one of its elements, much like sorting a spreadsheet Looks like Matti had the same question back in 2009: http://old.nabble.com/sort-multidimensional-arrays-td26051359.html#a26059190 The proposed solution sounds similar to the response given to me, though my feeble brain isn't able to convert it into code. Interesting that the post mentions a variant can be used as well as an object. Matti, if you're out there, do you have an example of how you sorted the example array in your post using these (or other) techniques? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue May 24 05:44:14 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 23 May 2011 23:44:14 -0400 Subject: [Gambas-user] more trigonometry fun (not) Message-ID: <4DDB298E.8070309@...1887...> I was already helped graciously in figuring out how to translate a point in a plane along its local axes at a given orientation, but now need a bit of the inverse of the equation. I need to know the (x, y) offset of a point at a given orientation and velocity. For example if a point is moving at an angle of 45 degrees (or radians, take your pick), what would its x and y coordinate be increased/decreased by? The variables I can think of would be: x1 (point's current x coordinate) y1 (point's current y coordinate) a (point's angle/orientation in degrees/radians) v (point's velocity) x2 (x coordinate offset of point's new position) y2 (y coordinate offset of point's new position) The calculation would take x1, y1 a and v as inputs and produce x2 and y2 as offsets (x1 + x2, y1 + y2 = point's new position). There really should be a list of basic things like this for graphics programmers. I've searched for years and found practically nothing. Weird, considering this has probably been done thousands of times since the days of DOS. :/ In case anyone's wondering why I need this, the equation will allow particles and projectiles to follow logical paths. Currently they're bound to local coordinates and ignore player orientation. Digging, shooting arrows, throwing objects, etc. can't work without it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Tue May 24 06:01:45 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 24 May 2011 13:31:45 +0930 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DDB1675.8090109@...1887...> References: <4DC220D9.7020309@...1887...> <4DC88689.8030300@...1887...> <201105100359.24713.gambas@...1...> <4DDB116D.6020604@...1887...> <4DDB1675.8090109@...1887...> Message-ID: <4DDB2DA9.30206@...2308...> On 24/05/11 11:52, Kevin Fishburne wrote: > On 05/23/2011 10:01 PM, Kevin Fishburne wrote: > >> On 05/09/2011 09:59 PM, Beno?t Minisini wrote: >> >>>> Think of it like a spreadsheet instead of an array. I need each "row" >>>> sorted by the value in a "column". The two column values are >>>> ObjectNumber and ObjectY and the row represents the array index. >>>> >>>> There's got to be something like this in GAMBAS, but if not I can start >>>> Google searching sort algorithms and make a procedure. >>>> >>> - Put the objects you have to draw on the screen in a temporary array. >>> - Define the (X,Y) final coordinates in two object variables. >>> - Implement the "_sort" special method in the object class. >>> >>> That way, you just have to call "Sort" to sort only the objects you want the >>> way you want. >>> >> The documentation didn't do much to alleviate my confusion, so if anyone >> understands this could you please post the simplest example possible? A >> link to the documentation on the _sort special method might be enough (I >> couldn't find it). As a refresher I'm basically trying to sort an array >> by one of its elements, much like sorting a spreadsheet >> > Looks like Matti had the same question back in 2009: > > http://old.nabble.com/sort-multidimensional-arrays-td26051359.html#a26059190 > > The proposed solution sounds similar to the response given to me, though > my feeble brain isn't able to convert it into code. Interesting that the > post mentions a variant can be used as well as an object. > > Matti, if you're out there, do you have an example of how you sorted the > example array in your post using these (or other) techniques? > > Kevin, Here is the code I use to sort a tableview. It is constrained by a) only coping with string or numeric data b) only sorts ascending. but it may get you started PUBLIC SUB SELF_ColumnClick(Col AS Integer) '========================================== ' Sort the underlying gridview by the selected column. NB this will only ' sort the display data - any onscreen formatting that relies ' on the underlying data will refer to the "wrong row"! ' These are the two native arrays that we will sort using their own sort method DIM sarray AS NEW String[ME.Rows.Count] DIM narray AS NEW Float[ME.Rows.Count] ' We need a few indices to operate on the orginal array and the sort array DIM idx, idy AS Integer DIM ida, idv AS Integer ' This is a flag to tell us which sort array to use DIM numeric AS Boolean = TRUE ' First figure out if the column only contains numbers. If not then we will ' just use a string sort FOR idx = 0 TO ME.Rows.Count - 1 IF NOT IsNumber(Val(ME[idx, Col].Text)) THEN numeric = FALSE NEXT ' Now unload each item from the original array into the relevant sort array FOR idx = 0 TO ME.Rows.Count - 1 IF numeric narray[idx] = Val(ME[idx, Col].Text) ELSE sarray[idx] = ME[idx, Col].Text ENDIF NEXT ' and sort it! IF numeric narray.Sort(gb.Ascent) ELSE sarray.Sort(gb.Ascent + gb.Text) ENDIF ' Now the tricky bit, use the sorted sort array to reorder the original array FOR ida = 0 TO sarray.Max ' upper limit is the size of any of the arrays ' idv is the row offset for the original array ' in each loop, we only have to look "downwards" from where we are in the ' sort array ( i.e. from ida onwards) and no need to do the last row! FOR idv = ida TO ME.Rows.Count - 1 IF IIf(numeric, narray[ida], sarray[ida]) = ME[idv, col].Text ' have we found the row? IF ida <> idv ' is it in the wrong place? FOR idx = 0 TO ME.Columns.Count - 1 ' then swap it SWAP ME[idv, idx].Text, ME[ida, idx].Text NEXT ENDIF BREAK ' and stop looking for it ENDIF NEXT ' inc idv - haven't found it so keep looking NEXT ' inc ida - loop back for the next sorted row END From bbruen at ...2308... Tue May 24 06:16:23 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 24 May 2011 13:46:23 +0930 Subject: [Gambas-user] more trigonometry fun (not) In-Reply-To: <4DDB298E.8070309@...1887...> References: <4DDB298E.8070309@...1887...> Message-ID: <4DDB3117.9040108@...2308...> On 24/05/11 13:14, Kevin Fishburne wrote: > I was already helped graciously in figuring out how to translate a point > in a plane along its local axes at a given orientation, but now need a > bit of the inverse of the equation. > > I need to know the (x, y) offset of a point at a given orientation and > velocity. For example if a point is moving at an angle of 45 degrees (or > radians, take your pick), what would its x and y coordinate be > increased/decreased by? The variables I can think of would be: > > x1 (point's current x coordinate) > y1 (point's current y coordinate) > a (point's angle/orientation in degrees/radians) > v (point's velocity) > x2 (x coordinate offset of point's new position) > y2 (y coordinate offset of point's new position) > > The calculation would take x1, y1 a and v as inputs and produce x2 and > y2 as offsets (x1 + x2, y1 + y2 = point's new position). > > There really should be a list of basic things like this for graphics > programmers. I've searched for years and found practically nothing. > Weird, considering this has probably been done thousands of times since > the days of DOS. :/ > > In case anyone's wondering why I need this, the equation will allow > particles and projectiles to follow logical paths. Currently they're > bound to local coordinates and ignore player orientation. Digging, > shooting arrows, throwing objects, etc. can't work without it. > > 1) Need to include i being the time increment in the same units as velocity 2) Basic physics says point will move d units in i time increments according to distance=velocity * time . So point will have a deltaXY of v*i. Basic trig converts this to deltaX and deltaY using the old "Sign On Here 'Coz Alf Has Tan OverAlls" deltaX = deltaXY * sin(a) deltaY=deltaXY *cos(a) Bobs, yer uncle, return deltaX and deltaY! From wally at ...2037... Tue May 24 06:34:25 2011 From: wally at ...2037... (wally) Date: Tue, 24 May 2011 06:34:25 +0200 Subject: [Gambas-user] more trigonometry fun (not) In-Reply-To: <4DDB298E.8070309@...1887...> References: <4DDB298E.8070309@...1887...> Message-ID: <201105240634.25825.wally@...2037...> On Tuesday, May 24, 2011 05:44:14 Kevin Fishburne wrote: > I was already helped graciously in figuring out how to translate a point > in a plane along its local axes at a given orientation, but now need a > bit of the inverse of the equation. > > I need to know the (x, y) offset of a point at a given orientation and > velocity. For example if a point is moving at an angle of 45 degrees (or > radians, take your pick), what would its x and y coordinate be > increased/decreased by? The variables I can think of would be: > > x1 (point's current x coordinate) > y1 (point's current y coordinate) > a (point's angle/orientation in degrees/radians) > v (point's velocity) > x2 (x coordinate offset of point's new position) > y2 (y coordinate offset of point's new position) > > The calculation would take x1, y1 a and v as inputs and produce x2 and > y2 as offsets (x1 + x2, y1 + y2 = point's new position). > > There really should be a list of basic things like this for graphics > programmers. I've searched for years and found practically nothing. > Weird, considering this has probably been done thousands of times since > the days of DOS. :/ > > In case anyone's wondering why I need this, the equation will allow > particles and projectiles to follow logical paths. Currently they're > bound to local coordinates and ignore player orientation. Digging, > shooting arrows, throwing objects, etc. can't work without it. Hello Kevin, the problem seems pretty easy to solve, so I'm not sue i understand the question correctly. A good idea would be to use polar coordinates for this: P( r, a) where r = radial distance to (0,0) offset and a the angle a . r = sqrt( x^2 + y^2) r(p2) = r(p1) + vt , new radius point 2 = 1st radius + distance to move (velocity * time) a does not change in cartesian coordinates: x2 = x1 + cos(a) * v * t y2 = y1 + sin(a) * v * t if you need more complex paths, using matrices is a good way. but always time is needed to calculate. You did not mention time t so i assume i did not understand the question. wally From kevinfishburne at ...1887... Tue May 24 06:38:32 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 24 May 2011 00:38:32 -0400 Subject: [Gambas-user] more trigonometry fun (not) In-Reply-To: <4DDB3117.9040108@...2308...> References: <4DDB298E.8070309@...1887...> <4DDB3117.9040108@...2308...> Message-ID: <4DDB3648.5090605@...1887...> On 05/24/2011 12:16 AM, Bruce Bruen wrote: > On 24/05/11 13:14, Kevin Fishburne wrote: >> I was already helped graciously in figuring out how to translate a point >> in a plane along its local axes at a given orientation, but now need a >> bit of the inverse of the equation. >> >> I need to know the (x, y) offset of a point at a given orientation and >> velocity. For example if a point is moving at an angle of 45 degrees (or >> radians, take your pick), what would its x and y coordinate be >> increased/decreased by? The variables I can think of would be: >> >> x1 (point's current x coordinate) >> y1 (point's current y coordinate) >> a (point's angle/orientation in degrees/radians) >> v (point's velocity) >> x2 (x coordinate offset of point's new position) >> y2 (y coordinate offset of point's new position) >> >> The calculation would take x1, y1 a and v as inputs and produce x2 and >> y2 as offsets (x1 + x2, y1 + y2 = point's new position). >> >> There really should be a list of basic things like this for graphics >> programmers. I've searched for years and found practically nothing. >> Weird, considering this has probably been done thousands of times since >> the days of DOS. :/ >> >> In case anyone's wondering why I need this, the equation will allow >> particles and projectiles to follow logical paths. Currently they're >> bound to local coordinates and ignore player orientation. Digging, >> shooting arrows, throwing objects, etc. can't work without it. >> >> > 1) Need to include i being the time increment in the same units as velocity > 2) Basic physics says point will move d units in i time increments according > to distance=velocity * time . So point will have a deltaXY of v*i. > Basic trig converts this to deltaX and deltaY using the old "Sign On > Here 'Coz Alf Has Tan OverAlls" > deltaX = deltaXY * sin(a) > deltaY=deltaXY *cos(a) > > Bobs, yer uncle, return deltaX and deltaY! Very true. I didn't want to include time because I didn't want to complicate the issue. Time is basically whatever number I multiply the velocity by in the mystical and unknown equation. In my case time is a single rendering frame, so it's not currently tied to any real sense of the word "time". While I appreciate the hint, what's the equation for DeltaX/Y using Sin/Cos/Tan if that is what's being used? I think you may be a bit more under the weather than I. :) And it's not even Friday... Fortunately when I cross the threshold I stop programming and write music for the game. A much more forgiving medium for sure. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From kevinfishburne at ...1887... Tue May 24 06:45:44 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 24 May 2011 00:45:44 -0400 Subject: [Gambas-user] more trigonometry fun (not) In-Reply-To: <201105240634.25825.wally@...2037...> References: <4DDB298E.8070309@...1887...> <201105240634.25825.wally@...2037...> Message-ID: <4DDB37F8.2030704@...1887...> On 05/24/2011 12:34 AM, wally wrote: > On Tuesday, May 24, 2011 05:44:14 Kevin Fishburne wrote: >> I was already helped graciously in figuring out how to translate a point >> in a plane along its local axes at a given orientation, but now need a >> bit of the inverse of the equation. >> >> I need to know the (x, y) offset of a point at a given orientation and >> velocity. For example if a point is moving at an angle of 45 degrees (or >> radians, take your pick), what would its x and y coordinate be >> increased/decreased by? The variables I can think of would be: >> >> x1 (point's current x coordinate) >> y1 (point's current y coordinate) >> a (point's angle/orientation in degrees/radians) >> v (point's velocity) >> x2 (x coordinate offset of point's new position) >> y2 (y coordinate offset of point's new position) >> >> The calculation would take x1, y1 a and v as inputs and produce x2 and >> y2 as offsets (x1 + x2, y1 + y2 = point's new position). >> >> There really should be a list of basic things like this for graphics >> programmers. I've searched for years and found practically nothing. >> Weird, considering this has probably been done thousands of times since >> the days of DOS. :/ >> >> In case anyone's wondering why I need this, the equation will allow >> particles and projectiles to follow logical paths. Currently they're >> bound to local coordinates and ignore player orientation. Digging, >> shooting arrows, throwing objects, etc. can't work without it. > > Hello Kevin, > > the problem seems pretty easy to solve, so I'm not sue i understand > the question correctly. > A good idea would be to use polar coordinates for this: > > P( r, a) where r = radial distance to (0,0) offset and a the angle a . > r = sqrt( x^2 + y^2) > > r(p2) = r(p1) + vt , > new radius point 2 = 1st radius + distance to move (velocity * time) > a does not change > > in cartesian coordinates: > x2 = x1 + cos(a) * v * t > y2 = y1 + sin(a) * v * t > > if you need more complex paths, using matrices is a good way. > > but always time is needed to calculate. You did not mention time t > so i assume i did not understand the question. Hi Wally. I'm going to test that code, but my gut tells me that it's correct. The two Cartesian coordinate lines are surely correct (I will confirm in the next couple of days). The reason it seems easy and that you think you may have misunderstood my question is probably because I'm really bad at math other than basic algebra. It's a hell of a thing, as I'm dangerously clever in many other ways. Thank you, and as I said I'll let everyone know if that does the trick. I'll even put up a YouTube video of the righteous usage of the algorithm to show how cool its implementation is. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From bbruen at ...2308... Tue May 24 06:57:55 2011 From: bbruen at ...2308... (Bruce Bruen) Date: Tue, 24 May 2011 14:27:55 +0930 Subject: [Gambas-user] more trigonometry fun (not) In-Reply-To: <4DDB3648.5090605@...1887...> References: <4DDB298E.8070309@...1887...> <4DDB3117.9040108@...2308...> <4DDB3648.5090605@...1887...> Message-ID: <4DDB3AD3.3020700@...2308...> On 24/05/11 14:08, Kevin Fishburne wrote: > On 05/24/2011 12:16 AM, Bruce Bruen wrote: > >> On 24/05/11 13:14, Kevin Fishburne wrote: >> >>> I was already helped graciously in figuring out how to translate a point >>> in a plane along its local axes at a given orientation, but now need a >>> bit of the inverse of the equation. >>> >>> I need to know the (x, y) offset of a point at a given orientation and >>> velocity. For example if a point is moving at an angle of 45 degrees (or >>> radians, take your pick), what would its x and y coordinate be >>> increased/decreased by? The variables I can think of would be: >>> >>> x1 (point's current x coordinate) >>> y1 (point's current y coordinate) >>> a (point's angle/orientation in degrees/radians) >>> v (point's velocity) >>> x2 (x coordinate offset of point's new position) >>> y2 (y coordinate offset of point's new position) >>> >>> The calculation would take x1, y1 a and v as inputs and produce x2 and >>> y2 as offsets (x1 + x2, y1 + y2 = point's new position). >>> >>> There really should be a list of basic things like this for graphics >>> programmers. I've searched for years and found practically nothing. >>> Weird, considering this has probably been done thousands of times since >>> the days of DOS. :/ >>> >>> In case anyone's wondering why I need this, the equation will allow >>> particles and projectiles to follow logical paths. Currently they're >>> bound to local coordinates and ignore player orientation. Digging, >>> shooting arrows, throwing objects, etc. can't work without it. >>> >>> >>> >> 1) Need to include i being the time increment in the same units as velocity >> 2) Basic physics says point will move d units in i time increments according >> to distance=velocity * time . So point will have a deltaXY of v*i. >> Basic trig converts this to deltaX and deltaY using the old "Sign On >> Here 'Coz Alf Has Tan OverAlls" >> deltaX = deltaXY * sin(a) >> deltaY=deltaXY *cos(a) >> >> Bobs, yer uncle, return deltaX and deltaY! >> > Very true. I didn't want to include time because I didn't want to > complicate the issue. Time is basically whatever number I multiply the > velocity by in the mystical and unknown equation. In my case time is a > single rendering frame, so it's not currently tied to any real sense of > the word "time". > > While I appreciate the hint, what's the equation for DeltaX/Y using > Sin/Cos/Tan if that is what's being used? I think you may be a bit more > under the weather than I. :) And it's not even Friday... Fortunately > when I cross the threshold I stop programming and write music for the > game. A much more forgiving medium for sure. > > Not sure I understand "what's the equation for DeltaX/Y"? Did you mean deltaXY? If so it's just v*i as stated. By the way, a few hints if I can remember my work on sonar beamplot ray tracing from over 35 years ago: 1) The trig is always easier if you orient your framework so the particle is moving (from the point of view of the trig math function) in quadrant 0 i.e. in the "north east" quarter of the compass. This done by reflecting the angle into q0, then do the math and then de-reflect it back. 2) As Mr Newton said, a body will continue to move at a given rate until acted on by an outside force. It may be useful for the future if you do the trig calcs ONLY when the particle is so affected. 3) More Newton. If you are going to include "gravity" in your system, consider it to be an outside force that always acts, i.e. every clock tick. In fact you may have to consider using sub ticks when particles are (thusly) moving along curved paths. 4) Above all make sure you use the same dimensions everywhere in your calc functions, do not have velocities that are points/second in some places and millipoints/minute somewhere else in other calcs. This will preserve you sanity next week or later when you come to modify something. 5) Finally, if you are considering 3 dimensions and therefore spherical trig - please don't call me! :-) It nearly sent me mad 35 years ago, or maybe it did? From kevinfishburne at ...1887... Tue May 24 07:50:46 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 24 May 2011 01:50:46 -0400 Subject: [Gambas-user] more trigonometry fun (not) In-Reply-To: <4DDB3AD3.3020700@...2308...> References: <4DDB298E.8070309@...1887...> <4DDB3117.9040108@...2308...> <4DDB3648.5090605@...1887...> <4DDB3AD3.3020700@...2308...> Message-ID: <4DDB4736.8000509@...1887...> On 05/24/2011 12:57 AM, Bruce Bruen wrote: > On 24/05/11 14:08, Kevin Fishburne wrote: >> On 05/24/2011 12:16 AM, Bruce Bruen wrote: >> >>> On 24/05/11 13:14, Kevin Fishburne wrote: >>> >>>> I was already helped graciously in figuring out how to translate a point >>>> in a plane along its local axes at a given orientation, but now need a >>>> bit of the inverse of the equation. >>>> >>>> I need to know the (x, y) offset of a point at a given orientation and >>>> velocity. For example if a point is moving at an angle of 45 degrees (or >>>> radians, take your pick), what would its x and y coordinate be >>>> increased/decreased by? The variables I can think of would be: >>>> >>>> x1 (point's current x coordinate) >>>> y1 (point's current y coordinate) >>>> a (point's angle/orientation in degrees/radians) >>>> v (point's velocity) >>>> x2 (x coordinate offset of point's new position) >>>> y2 (y coordinate offset of point's new position) >>>> >>>> The calculation would take x1, y1 a and v as inputs and produce x2 and >>>> y2 as offsets (x1 + x2, y1 + y2 = point's new position). >>>> >>>> There really should be a list of basic things like this for graphics >>>> programmers. I've searched for years and found practically nothing. >>>> Weird, considering this has probably been done thousands of times since >>>> the days of DOS. :/ >>>> >>>> In case anyone's wondering why I need this, the equation will allow >>>> particles and projectiles to follow logical paths. Currently they're >>>> bound to local coordinates and ignore player orientation. Digging, >>>> shooting arrows, throwing objects, etc. can't work without it. >>>> >>>> >>>> >>> 1) Need to include i being the time increment in the same units as velocity >>> 2) Basic physics says point will move d units in i time increments according >>> to distance=velocity * time . So point will have a deltaXY of v*i. >>> Basic trig converts this to deltaX and deltaY using the old "Sign On >>> Here 'Coz Alf Has Tan OverAlls" >>> deltaX = deltaXY * sin(a) >>> deltaY=deltaXY *cos(a) >>> >>> Bobs, yer uncle, return deltaX and deltaY! >>> >> Very true. I didn't want to include time because I didn't want to >> complicate the issue. Time is basically whatever number I multiply the >> velocity by in the mystical and unknown equation. In my case time is a >> single rendering frame, so it's not currently tied to any real sense of >> the word "time". >> >> While I appreciate the hint, what's the equation for DeltaX/Y using >> Sin/Cos/Tan if that is what's being used? I think you may be a bit more >> under the weather than I. :) And it's not even Friday... Fortunately >> when I cross the threshold I stop programming and write music for the >> game. A much more forgiving medium for sure. >> >> > Not sure I understand "what's the equation for DeltaX/Y"? > Did you mean deltaXY? If so it's just v*i as stated. I think you're helping too much! I just need a basic formula for moving a point along a certain angle by a certain number of units. The angle of movement, the velocity (number of units divided by time) and the original coordinates are all known. The only unknown is how much the point's x and y coordinates should be modified by using addition/subtraction. Imagine you're looking at a piece of graph paper. You have a point drawn as a dot in pencil on an intersection of the grid. You need to move that point one unit/square in a any direction as specified in radians or degrees. It's 2D, there's no gravity, wind or curvatures of any kind. No allowance is necessary for other variables or factors. That is the equation that I need. Move the point an arbitrary number of units in an arbitrary direction. Point position, units moved and angle of movement known; new point position is unknown. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From doriano.blengino at ...1909... Tue May 24 09:19:22 2011 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 24 May 2011 09:19:22 +0200 Subject: [Gambas-user] more trigonometry fun (not) In-Reply-To: <4DDB4736.8000509@...1887...> References: <4DDB298E.8070309@...1887...> <4DDB3117.9040108@...2308...> <4DDB3648.5090605@...1887...> <4DDB3AD3.3020700@...2308...> <4DDB4736.8000509@...1887...> Message-ID: <4DDB5BFA.2010900@...1909...> Kevin Fishburne ha scritto: > On 05/24/2011 12:57 AM, Bruce Bruen wrote: > >>>>> I need to know the (x, y) offset of a point at a given orientation and >>>>> velocity. For example if a point is moving at an angle of 45 degrees (or >>>>> radians, take your pick), what would its x and y coordinate be >>>>> increased/decreased by? The variables I can think of would be: >>>>> >>>>> x1 (point's current x coordinate) >>>>> y1 (point's current y coordinate) >>>>> a (point's angle/orientation in degrees/radians) >>>>> v (point's velocity) >>>>> x2 (x coordinate offset of point's new position) >>>>> y2 (y coordinate offset of point's new position) >>>>> >>>>> The calculation would take x1, y1 a and v as inputs and produce x2 and >>>>> y2 as offsets (x1 + x2, y1 + y2 = point's new position). >>>>> >>>>> Wally said: > in cartesian coordinates: > x2 = x1 + cos(a) * v * t > y2 = y1 + sin(a) * v * t which is correct; only, you specified that you want x2 and y2 "as offsets", i.e., the distance covered and not the new position. In this case, the formulas are: x2 = cos(a) * v y2 = sin(a) * v "v" indicates the velocity of the object, expressed in space/deltaT (pixels for frame, for example). The angle "a" must be in radians. Also, Bruce said: > 1) The trig is always easier if you orient your framework so the > particle is moving (from the point of view of the trig math function) in > quadrant 0 i.e. in the "north east" quarter of the compass. This done > by reflecting the angle into q0, then do the math and then de-reflect it > back. On computer screens there is always this problem. Probably you can simply change the sign of y2: add x2 to x1 and subtract y2 from y1. But you could write the algorithm as is, test it, and see if you need to mirror the Y or to do a rotation (angle+90, angle+180, or whatever), or both. Bruce added: > 2) As Mr Newton said, a body will continue to move at a given rate until > acted on by an outside force. It may be useful for the future if you do > the trig calcs ONLY when the particle is so affected. If you are thinking about projectiles, they are shooted away, by a force applied to them, for a small amount of time; then the force ceases, and the projectile slows down. This can be simulated by decrementing "v" at every frame and, when "v" falls below some arbitrary value, set it to zero: the throw is terminated. May be that you don't want infinite distances, so this method gives you a way to terminate early a throw if it misses it target. Or may be that you terminate the throw when the missile hits a target, or goes out the screen. In this case, varying "v" only gives some more reality (pretty useless, may be, unless you throw boulders using catapults). I remember that your player has a heading. If the player shoots always ahead of it, then you use, in the formula of the missile, the same angle as the player orientation. If the player shoots at its right, the you must subtract 90 degrees; to the left, you add 90 degrees. Regards, Doriano From jussi.lahtinen at ...626... Tue May 24 17:50:30 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 24 May 2011 18:50:30 +0300 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DDB1675.8090109@...1887...> References: <4DC220D9.7020309@...1887...> <4DC88689.8030300@...1887...> <201105100359.24713.gambas@...1...> <4DDB116D.6020604@...1887...> <4DDB1675.8090109@...1887...> Message-ID: Not sure, but I think Benoit means special method "_compare" which is used (if exist) to sort objects. http://gambasdoc.org/help/lang/special/compare?view http://gambasdoc.org/help/comp/gb/object%5B%5D/sort?v3 Jussi On Tue, May 24, 2011 at 05:22, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > On 05/23/2011 10:01 PM, Kevin Fishburne wrote: > > On 05/09/2011 09:59 PM, Beno?t Minisini wrote: > >>> Think of it like a spreadsheet instead of an array. I need each "row" > >>> sorted by the value in a "column". The two column values are > >>> ObjectNumber and ObjectY and the row represents the array index. > >>> > >>> There's got to be something like this in GAMBAS, but if not I can start > >>> Google searching sort algorithms and make a procedure. > >> > >> - Put the objects you have to draw on the screen in a temporary array. > >> - Define the (X,Y) final coordinates in two object variables. > >> - Implement the "_sort" special method in the object class. > >> > >> That way, you just have to call "Sort" to sort only the objects you want > the > >> way you want. > > > > The documentation didn't do much to alleviate my confusion, so if anyone > > understands this could you please post the simplest example possible? A > > link to the documentation on the _sort special method might be enough (I > > couldn't find it). As a refresher I'm basically trying to sort an array > > by one of its elements, much like sorting a spreadsheet > > Looks like Matti had the same question back in 2009: > > > http://old.nabble.com/sort-multidimensional-arrays-td26051359.html#a26059190 > > The proposed solution sounds similar to the response given to me, though > my feeble brain isn't able to convert it into code. Interesting that the > post mentions a variant can be used as well as an object. > > Matti, if you're out there, do you have an example of how you sorted the > example array in your post using these (or other) techniques? > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue May 24 17:55:21 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 24 May 2011 17:55:21 +0200 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: References: <4DC220D9.7020309@...1887...> <4DDB1675.8090109@...1887...> Message-ID: <201105241755.22052.gambas@...1...> > Not sure, but I think Benoit means special method "_compare" which is used > (if exist) to sort objects. > http://gambasdoc.org/help/lang/special/compare?view > http://gambasdoc.org/help/comp/gb/object%5B%5D/sort?v3 > > Jussi > Yep, sorry, I meant that. -- Beno?t Minisini From math.eber at ...221... Tue May 24 20:37:43 2011 From: math.eber at ...221... (Matti) Date: Tue, 24 May 2011 20:37:43 +0200 Subject: [Gambas-user] gb3: sorting an array-like structure In-Reply-To: <4DDB1675.8090109@...1887...> References: <4DC220D9.7020309@...1887...> <4DC88689.8030300@...1887...> <201105100359.24713.gambas@...1...> <4DDB116D.6020604@...1887...> <4DDB1675.8090109@...1887...> Message-ID: <4DDBFAF7.7000801@...221...> Hi Kevin, this sorting problem is (at least to me) still unsolved. I gave up and used a lousy workaround, reading the 2-dim array into a 1-dim string array like "field1/field2", then sorting this and reading the fields backward again. See Examples/Image/Lighttable, the sorting subs. Works ok with a few hundred pictures (tested up to 1200), but for your amount of data it sure will be not practicable. If somebody knows a solution, I would be glad, too. Regards Matti Am 24.05.2011 04:22, schrieb Kevin Fishburne: > > Looks like Matti had the same question back in 2009: > > http://old.nabble.com/sort-multidimensional-arrays-td26051359.html#a26059190 > > The proposed solution sounds similar to the response given to me, though > my feeble brain isn't able to convert it into code. Interesting that the > post mentions a variant can be used as well as an object. > > Matti, if you're out there, do you have an example of how you sorted the > example array in your post using these (or other) techniques? > From handriolijr at ...626... Wed May 25 03:53:51 2011 From: handriolijr at ...626... (Hamilton Geminiano Andrioli Junior) Date: Tue, 24 May 2011 22:53:51 -0300 Subject: [Gambas-user] Brazilian help Message-ID: <1306288431.1715.0.camel@...2585...> I'm looking for brazilians in this list. Please contact me. I really need your help. -- Hamilton Geminiano Andrioli Junior From sebikul at ...626... Thu May 26 02:01:07 2011 From: sebikul at ...626... (Sebi Kul) Date: Wed, 25 May 2011 21:01:07 -0300 Subject: [Gambas-user] gb.Desktop and Gnome Keyring Message-ID: <4DDD9843.4040100@...626...> Hi! I wanted to know how is the keyring accessed using Gambas. I found on the gb.Desktop component a Gambas class (_DesktopPasswords) and a C component when the desktop enviroment is Gnome. but i couldn't find any info regarding it's usage. The _DesktopPasswords is exported as a static class, but it isn't loaded outside the component, the same with the C component. How could i do to be able to get and set passwords? Also, will the component ask the user to unlock the keyring or will it fail (with an error)? and how is the name of the key defined? Thanks all! -------------- next part -------------- A non-text attachment was scrubbed... Name: 0xC5D113F0.asc Type: application/pgp-keys Size: 1711 bytes Desc: not available URL: From gambas at ...1... Thu May 26 02:21:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 26 May 2011 02:21:24 +0200 Subject: [Gambas-user] gb.Desktop and Gnome Keyring In-Reply-To: <4DDD9843.4040100@...626...> References: <4DDD9843.4040100@...626...> Message-ID: <201105260221.24281.gambas@...1...> > Hi! > > I wanted to know how is the keyring accessed using Gambas. I found on > the gb.Desktop component a Gambas class (_DesktopPasswords) and a C > component when the desktop enviroment is Gnome. but i couldn't find any > info regarding it's usage. The _DesktopPasswords is exported as a static > class, but it isn't loaded outside the component, the same with the C > component. How could i do to be able to get and set passwords? > > Also, will the component ask the user to unlock the keyring or will it > fail (with an error)? and how is the name of the key defined? > > Thanks all! To store a password: Desktop.Passwords[Key] = Password "Key" is a way to identify your password inside the password storage system. To read a password: Password = Desktop.Passwords[Key] What happens exactly depends on the password storage system. As I don't use Gnome, you will tell me! The Gnome keyring is accessed through the gb.desktop.gnome hidden component. Look at the source in ./gb.desktop/src/gnome to see which code is executed exactly to access the keyring. Regards, -- Beno?t Minisini From sebikul at ...626... Thu May 26 03:36:39 2011 From: sebikul at ...626... (Sebi Kul) Date: Wed, 25 May 2011 22:36:39 -0300 Subject: [Gambas-user] gb.Desktop and Gnome Keyring In-Reply-To: <201105260221.24281.gambas@...1...> References: <4DDD9843.4040100@...626...> <201105260221.24281.gambas@...1...> Message-ID: <4DDDAEA7.2090609@...626...> On mi? 25 may 2011 21:21:24 ART, Beno?t Minisini wrote: >> Hi! >> >> I wanted to know how is the keyring accessed using Gambas. I found on >> the gb.Desktop component a Gambas class (_DesktopPasswords) and a C >> component when the desktop enviroment is Gnome. but i couldn't find any >> info regarding it's usage. The _DesktopPasswords is exported as a static >> class, but it isn't loaded outside the component, the same with the C >> component. How could i do to be able to get and set passwords? >> >> Also, will the component ask the user to unlock the keyring or will it >> fail (with an error)? and how is the name of the key defined? >> >> Thanks all! > > To store a password: > > Desktop.Passwords[Key] = Password > > "Key" is a way to identify your password inside the password storage system. > > To read a password: > > Password = Desktop.Passwords[Key] > > What happens exactly depends on the password storage system. As I don't use > Gnome, you will tell me! > > The Gnome keyring is accessed through the gb.desktop.gnome hidden component. > Look at the source in ./gb.desktop/src/gnome to see which code is executed > exactly to access the keyring. > > Regards, It works flawlessly, and if the keyring is locked it asks you to enter it's password. I've made an example to test this before including it into my project, if you would like to add it to the examples please let me know. Thanks a lot! From gambas at ...1... Thu May 26 19:15:31 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 26 May 2011 19:15:31 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... Message-ID: <201105261915.31293.gambas@...1...> Hi, I'm going to flash the firmware of my WD Velociraptor hard disk, because it freezes sometimes, and I want to know if it will fix that. So if you have no news from me, it's because some bad things may happened! See you in the next world! -- Beno?t Minisini From nando_f at ...951... Thu May 26 19:26:55 2011 From: nando_f at ...951... (nando) Date: Thu, 26 May 2011 13:26:55 -0400 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <201105261915.31293.gambas@...1...> References: <201105261915.31293.gambas@...1...> Message-ID: <20110526172641.M5053@...951...> Best wishes on your voyage! ---------- Original Message ----------- From: Beno?t Minisini To: gambas-user at lists.sourceforge.net Sent: Thu, 26 May 2011 19:15:31 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... > Hi, > > I'm going to flash the firmware of my WD Velociraptor hard disk, because it > freezes sometimes, and I want to know if it will fix that. > > So if you have no news from me, it's because some bad things may happened! > > See you in the next world! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas.fr at ...626... Thu May 26 20:39:03 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 May 2011 20:39:03 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <20110526172641.M5053@...951...> References: <201105261915.31293.gambas@...1...> <20110526172641.M5053@...951...> Message-ID: good luck 2011/5/26 nando : > Best wishes on your voyage! > > > ---------- Original Message ----------- > From: Beno?t Minisini > To: gambas-user at lists.sourceforge.net > Sent: Thu, 26 May 2011 19:15:31 +0200 > Subject: [Gambas-user] We live a dangerous life sometimes... > >> Hi, >> >> I'm going to flash the firmware of my WD Velociraptor hard disk, because it >> freezes sometimes, and I want to know if it will fix that. >> >> So if you have no news from me, it's because some bad things may happened! >> >> See you in the next world! >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> vRanger cuts backup time in half-while increasing security. >> With the market-leading solution for virtual backup and recovery, >> you get blazing-fast, flexible, and affordable data protection. >> Download your free trial now. >> http://p.sf.net/sfu/quest-d2dcopy1 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From david.villalobos.c at ...626... Thu May 26 20:51:07 2011 From: david.villalobos.c at ...626... (David Villalobos Cambronero) Date: Thu, 26 May 2011 12:51:07 -0600 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: References: <201105261915.31293.gambas@...1...> <20110526172641.M5053@...951...> Message-ID: Good luck. Hope it goes well. --- David On Thu, May 26, 2011 at 12:39, Fabien Bodard wrote: > good luck > > 2011/5/26 nando : > > Best wishes on your voyage! > > > > > > ---------- Original Message ----------- > > From: Beno?t Minisini > > To: gambas-user at lists.sourceforge.net > > Sent: Thu, 26 May 2011 19:15:31 +0200 > > Subject: [Gambas-user] We live a dangerous life sometimes... > > > >> Hi, > >> > >> I'm going to flash the firmware of my WD Velociraptor hard disk, because > it > >> freezes sometimes, and I want to know if it will fix that. > >> > >> So if you have no news from me, it's because some bad things may > happened! > >> > >> See you in the next world! > >> > >> -- > >> Beno?t Minisini > >> > >> > ------------------------------------------------------------------------------ > >> vRanger cuts backup time in half-while increasing security. > >> With the market-leading solution for virtual backup and recovery, > >> you get blazing-fast, flexible, and affordable data protection. > >> Download your free trial now. > >> http://p.sf.net/sfu/quest-d2dcopy1 > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > > > > > ------------------------------------------------------------------------------ > > vRanger cuts backup time in half-while increasing security. > > With the market-leading solution for virtual backup and recovery, > > you get blazing-fast, flexible, and affordable data protection. > > Download your free trial now. > > http://p.sf.net/sfu/quest-d2dcopy1 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Thu May 26 21:34:30 2011 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 26 May 2011 21:34:30 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <201105261915.31293.gambas@...1...> References: <201105261915.31293.gambas@...1...> Message-ID: <1306438470.6363.6.camel@...40...> Am Donnerstag, den 26.05.2011, 19:15 +0200 schrieb Beno?t Minisini: > Hi, > > I'm going to flash the firmware of my WD Velociraptor hard disk, because it > freezes sometimes, and I want to know if it will fix that. > > So if you have no news from me, it's because some bad things may happened! > > See you in the next world! > Salut, flashing a HD firmware! You have a backup ! did you check/change cable and/or port! Whats about the graphic card ? (mostly fro here the pb commes) courageux .... Bonne chance ! -- Amicalement Charlie From jussi.lahtinen at ...626... Thu May 26 21:56:20 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 26 May 2011 22:56:20 +0300 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <1306438470.6363.6.camel@...40...> References: <201105261915.31293.gambas@...1...> <1306438470.6363.6.camel@...40...> Message-ID: Sometimes bad power cable connection does things like that, but maybe Benoit has already check those. Jussi On Thu, May 26, 2011 at 22:34, Charlie Reinl wrote: > Am Donnerstag, den 26.05.2011, 19:15 +0200 schrieb Beno?t Minisini: > > Hi, > > > > I'm going to flash the firmware of my WD Velociraptor hard disk, because > it > > freezes sometimes, and I want to know if it will fix that. > > > > So if you have no news from me, it's because some bad things may > happened! > > > > See you in the next world! > > > Salut, > > flashing a HD firmware! You have a backup ! > > did you check/change cable and/or port! > > Whats about the graphic card ? (mostly fro here the pb commes) > > courageux .... Bonne chance ! > > -- > Amicalement > Charlie > > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu May 26 22:41:55 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 26 May 2011 22:41:55 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: References: <201105261915.31293.gambas@...1...> <1306438470.6363.6.camel@...40...> Message-ID: <201105262241.55885.gambas@...1...> > Sometimes bad power cable connection does things like that, but maybe > Benoit has already check those. > > Jussi > I come back, with a new firmware. I have two SATA hard disks. The first one is the original one, and I had no freeze with it. The second one, the WD Velociraptor, was added after. When I got the freezes, I swapped the two cables, but it changed nothing. Concretely, the drive stops between 1 and 2 mn each hour, making the system unusable until it wakes up. Only the mouse and processes doing no disk access work. Sometimes I have no freeze at all during a long time. For the SMART utility, there is no problem at all on the disk. I noticed that running Firefox help having the freezes. So I suspected the kernel part of the nouveau driver. But I use the NVIDIA blob since a few days, and I got the freezes too. They are just shorter (?) Then I found on the web someone that created a bootable CD with Windows 98 that updates the firwares of my model (WD1500HLFS). On the web page, some comments of a guy that describes the same problem as mine telling that the update fixed it! So... Now, let's see if I will continue having freezes... -- Beno?t Minisini From oceanosoftlapalma at ...626... Thu May 26 23:59:50 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 26 May 2011 22:59:50 +0100 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <201105262241.55885.gambas@...1...> References: <201105261915.31293.gambas@...1...> <1306438470.6363.6.camel@...40...> <201105262241.55885.gambas@...1...> Message-ID: It will be funny if you repair your HD using win 98 XD 2011/5/26 Beno?t Minisini > > Sometimes bad power cable connection does things like that, but maybe > > Benoit has already check those. > > > > Jussi > > > > I come back, with a new firmware. > > I have two SATA hard disks. The first one is the original one, and I had no > freeze with it. The second one, the WD Velociraptor, was added after. When > I > got the freezes, I swapped the two cables, but it changed nothing. > > Concretely, the drive stops between 1 and 2 mn each hour, making the system > unusable until it wakes up. Only the mouse and processes doing no disk > access > work. Sometimes I have no freeze at all during a long time. > > For the SMART utility, there is no problem at all on the disk. > > I noticed that running Firefox help having the freezes. So I suspected the > kernel part of the nouveau driver. But I use the NVIDIA blob since a few > days, > and I got the freezes too. They are just shorter (?) > > Then I found on the web someone that created a bootable CD with Windows 98 > that updates the firwares of my model (WD1500HLFS). On the web page, some > comments of a guy that describes the same problem as mine telling that the > update fixed it! So... > > Now, let's see if I will continue having freezes... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri May 27 04:01:38 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 May 2011 04:01:38 +0200 Subject: [Gambas-user] Release of Gambas 2.23.1 Message-ID: <201105270401.38701.gambas@...1...> Hi, Here is a little update of Gambas 2. It mainly fixes the gb.v4l component so that it compiles correctly on recent Linux kernels. Here is the full ChangeLog: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * NEW: Support for Lithuanian language. * NEW: Swedish translation updated. [INTERPRETER] * BUG: The GB.ToZeroString() API now correctly handles zero length strings. [ARCHIVER] * BUG: Ignore "core", "vgcore.*" and "callgrind.*" files when making an executable. [GB.V4L] * BUG: Make gb.v4l compile with recent kernels. ------------------------------------------------------------------------------- Regards, -- Beno?t Minisini From ihaywood at ...1979... Fri May 27 04:08:11 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 27 May 2011 12:08:11 +1000 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: <201105211415.37083.gambas@...1...> References: <201105211415.37083.gambas@...1...> Message-ID: 2011/5/21 Beno?t Minisini : > Hi Gambas fellows, > > The Gambas 3 RC1 source package is available for download now on the website! > > - Who said "already" ? > > The aim of this first release candidate is ensuring that Gambas 3 will be > compiled and packaged correctly on the most possible distributions. > > So, packagers, please raise from your graves and howl under the moon for each > problem you encounter. And report them on the mailing-list of course. > > Some distributions will need a bit of lobbying to ensure that these packages > are put on their main repositories. > > I will create a page on the wiki for each distribution to centralize all the > information, like the one that already exist but are a bit of mess. compiles fine on ubuntu lucid. I have also changed the distro list to match Laurent's archlinux packages, see https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1741887/+listing-archive-extra Ian From ihaywood at ...1979... Fri May 27 04:12:32 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Fri, 27 May 2011 12:12:32 +1000 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: References: <201105211415.37083.gambas@...1...> Message-ID: On Fri, May 27, 2011 at 12:08 PM, Ian Haywood wrote: > I have also changed the distro list to match Laurent's archlinux packages, I mean the binary *package* list sorry. PS the best way to get into Ubuntu and friends is to get the packages in Debian, then it will filter its way into all the Debian-derived distros. Debian has a standard procedure for submitting new packages, let me know when gambas3 is ready for this. Ian From eilert-sprachen at ...221... Fri May 27 08:29:08 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 27 May 2011 08:29:08 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <201105262241.55885.gambas@...1...> References: <201105261915.31293.gambas@...1...> <1306438470.6363.6.camel@...40...> <201105262241.55885.gambas@...1...> Message-ID: <4DDF44B4.6090400@...221...> Am 26.05.2011 22:41, schrieb Beno?t Minisini: >> Sometimes bad power cable connection does things like that, but maybe >> Benoit has already check those. >> >> Jussi >> > > I come back, with a new firmware. > > I have two SATA hard disks. The first one is the original one, and I had no > freeze with it. The second one, the WD Velociraptor, was added after. When I > got the freezes, I swapped the two cables, but it changed nothing. > > Concretely, the drive stops between 1 and 2 mn each hour, making the system > unusable until it wakes up. Only the mouse and processes doing no disk access > work. Sometimes I have no freeze at all during a long time. > > For the SMART utility, there is no problem at all on the disk. > > I noticed that running Firefox help having the freezes. So I suspected the > kernel part of the nouveau driver. But I use the NVIDIA blob since a few days, > and I got the freezes too. They are just shorter (?) > > Then I found on the web someone that created a bootable CD with Windows 98 > that updates the firwares of my model (WD1500HLFS). On the web page, some > comments of a guy that describes the same problem as mine telling that the > update fixed it! So... > > Now, let's see if I will continue having freezes... > Arrgh - if I had seen that earlier, I might have warned you it could be futile. Currently, there is a discussion between the kernel guys going on about this, it is due to a kernel module which was changed to make it fit for a special controller but it had this "side effect" on other controllers. I stumbled across this because I had the same problem on my laptop. In the Linux forum I use, someone pointed me to it as a possible solution. I used iotop to find the source of the writing activity, but to no avail. But tail -f /var/log/messages shows errors on SATA each time the system comes back. First I thought of the hardware, but that guy pointed me to this discussion: One Posting says that "device reported invalid CHS sector 0" could come from a kernel bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/397096 The line: "device reported invalid CHS sector 0", seems to be an "off by one error" reported in http://patchwork.kernel.org/patch/41773/ and fixed upstream, and not seen often "The bug isn't very visible because ata_tf_read_block() is used only when generating sense data for a failed RW command and CHS addressing isn't used too often these days.", Tejun Heo says. Then he said the problem might be in /usr/src/linux-2.6.37.6-0.5/drivers/ata/ahci.c which doesn't help me too much ;-) And he gives this URL http://help.lockergnome.com/linux/AHCI-driver-problem-SB700-SB800-Acer-Ferrari--ftopict537147.html Now, what do you think? Could this be your problem, too? If so, I guess we just have to wait for the next kernel update from the repos? Regards Rolf From eilert-sprachen at ...221... Fri May 27 12:14:25 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 27 May 2011 12:14:25 +0200 Subject: [Gambas-user] What is faster: OPEN or File.Load? Message-ID: <4DDF7981.70304@...221...> When I have different directories which contain text files, and I have to open each file and read only the first line of it, which one will be faster and more efficient: FOR OPEN read first line CLOSE list.Add NEXT or FOR File.Load(...) Split(... chr$(10)) list.Add(...) NEXT Or wouldn't that be feasible in case of, say, 50 - 70 files in such directories? Thanks for your comments :-) Rolf From gambas at ...1... Fri May 27 12:23:56 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 May 2011 12:23:56 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <4DDF44B4.6090400@...221...> References: <201105261915.31293.gambas@...1...> <201105262241.55885.gambas@...1...> <4DDF44B4.6090400@...221...> Message-ID: <201105271223.56913.gambas@...1...> > Am 26.05.2011 22:41, schrieb Beno?t Minisini: > >> Sometimes bad power cable connection does things like that, but maybe > >> Benoit has already check those. > >> > >> Jussi > > > > I come back, with a new firmware. > > > > I have two SATA hard disks. The first one is the original one, and I had > > no freeze with it. The second one, the WD Velociraptor, was added after. > > When I got the freezes, I swapped the two cables, but it changed > > nothing. > > > > Concretely, the drive stops between 1 and 2 mn each hour, making the > > system unusable until it wakes up. Only the mouse and processes doing no > > disk access work. Sometimes I have no freeze at all during a long time. > > > > For the SMART utility, there is no problem at all on the disk. > > > > I noticed that running Firefox help having the freezes. So I suspected > > the kernel part of the nouveau driver. But I use the NVIDIA blob since a > > few days, and I got the freezes too. They are just shorter (?) > > > > Then I found on the web someone that created a bootable CD with Windows > > 98 that updates the firwares of my model (WD1500HLFS). On the web page, > > some comments of a guy that describes the same problem as mine telling > > that the update fixed it! So... > > > > Now, let's see if I will continue having freezes... > > Arrgh - if I had seen that earlier, I might have warned you it could be > futile. > > Currently, there is a discussion between the kernel guys going on about > this, it is due to a kernel module which was changed to make it fit for > a special controller but it had this "side effect" on other controllers. > > I stumbled across this because I had the same problem on my laptop. In > the Linux forum I use, someone pointed me to it as a possible solution. > > I used iotop to find the source of the writing activity, but to no > avail. But tail -f /var/log/messages shows errors on SATA each time the > system comes back. First I thought of the hardware, but that guy pointed > me to this discussion: > > One Posting says that "device reported invalid CHS sector 0" could come > from a kernel bug: > > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/397096 > > The line: "device reported invalid CHS sector 0", seems to be an "off by > one error" reported in > http://patchwork.kernel.org/patch/41773/ and fixed upstream, and not > seen often "The bug isn't very visible because ata_tf_read_block() is > used only when generating sense data for a failed RW command and CHS > addressing isn't used too often these days.", Tejun Heo says. > > Then he said the problem might be in > > /usr/src/linux-2.6.37.6-0.5/drivers/ata/ahci.c > > which doesn't help me too much ;-) > > And he gives this URL > > http://help.lockergnome.com/linux/AHCI-driver-problem-SB700-SB800-Acer-Ferr > ari--ftopict537147.html > > Now, what do you think? Could this be your problem, too? If so, I guess > we just have to wait for the next kernel update from the repos? > > Regards > > Rolf > I don't think it is the same problem, as I didn't have any error message in the kernel logs. The drive just froze during a minute, and the kernel just seems to wait for it, without printing any message. The only error message I got some nouveau driver belch. At the moment, all seems to be fine (I cross my fingers...). I will go back to the nouveau driver soon to see if freezes come again. Regards, -- Beno?t Minisini From gambas at ...1... Fri May 27 12:24:51 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 May 2011 12:24:51 +0200 Subject: [Gambas-user] What is faster: OPEN or File.Load? In-Reply-To: <4DDF7981.70304@...221...> References: <4DDF7981.70304@...221...> Message-ID: <201105271224.51254.gambas@...1...> > When I have different directories which contain text files, and I have > to open each file and read only the first line of it, which one will be > faster and more efficient: > > FOR > OPEN > read first line > CLOSE > list.Add > NEXT > > or > > FOR > File.Load(...) > Split(... chr$(10)) > list.Add(...) > NEXT > > Or wouldn't that be feasible in case of, say, 50 - 70 files in such > directories? > > Thanks for your comments :-) > > Rolf > The second one is obviously faster. Just check the execution time! Regards, -- Beno?t Minisini From gambas at ...1... Fri May 27 12:33:30 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 May 2011 12:33:30 +0200 Subject: [Gambas-user] What is faster: OPEN or File.Load? In-Reply-To: <201105271224.51254.gambas@...1...> References: <4DDF7981.70304@...221...> <201105271224.51254.gambas@...1...> Message-ID: <201105271233.30848.gambas@...1...> > > When I have different directories which contain text files, and I have > > to open each file and read only the first line of it, which one will be > > faster and more efficient: > > > > FOR > > > > OPEN > > > > read first line > > > > CLOSE > > list.Add > > > > NEXT > > > > or > > > > FOR > > > > File.Load(...) > > Split(... chr$(10)) > > list.Add(...) > > > > NEXT > > > > Or wouldn't that be feasible in case of, say, 50 - 70 files in such > > directories? > > > > Thanks for your comments :-) > > > > Rolf > > The second one is obviously faster. Just check the execution time! > > Regards, Oops, sorry, I didn't see that you wanted just the first line. Then the first one will be faster, unless you have very small files. Regards, -- Beno?t Minisini From wally at ...2037... Fri May 27 13:26:10 2011 From: wally at ...2037... (wally) Date: Fri, 27 May 2011 13:26:10 +0200 Subject: [Gambas-user] another extern math problem Message-ID: <201105271326.10392.wally@...2037...> Hi, i have another extern math library problem and need your help. i want to use the peakfind from fityk lib. The working C example code looks pretty easy and the c-code and the header file is included in project. Please have a look on the gambas3 project and explain what i need to do to get it work. Thank you wally -------------- next part -------------- A non-text attachment was scrubbed... Name: fityk_001-0.0.1.tar.gz Type: application/x-compressed-tar Size: 8879 bytes Desc: not available URL: From pinozollo at ...626... Fri May 27 14:35:09 2011 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 27 May 2011 08:35:09 -0400 Subject: [Gambas-user] Release of Gambas 2.23.1 Message-ID: <4DDF9A7D.1070509@...626...> Hi, Some problem with 2.23.1 ..... the 2.23.0 did compile fine. Salud Pino -------------------------------------------------------------------------------------------------- make[4]: se ingresa al directorio ?/usr/src/gambas2-2.23.1/gb.v4l/src? /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o In file included from main.c:36: CWebcam.h:40:22: error: videodev.h: No existe el fichero o el directorio In file included from main.c:36: CWebcam.h:65: error: field ?vcap? has incomplete type CWebcam.h:66: error: field ?vchan? has incomplete type CWebcam.h:67: error: field ?vmbuf? has incomplete type CWebcam.h:68: error: field ?vmmap? has incomplete type CWebcam.h:69: error: field ?vwin? has incomplete type CWebcam.h:70: error: field ?videopict? has incomplete type make[4]: *** [main.lo] Error 1 make[4]: se sale del directorio ?/usr/src/gambas2-2.23.1/gb.v4l/src? make[3]: *** [all-recursive] Error 1 make[3]: se sale del directorio ?/usr/src/gambas2-2.23.1/gb.v4l? make[2]: *** [all] Error 2 make[2]: se sale del directorio ?/usr/src/gambas2-2.23.1/gb.v4l? make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio ?/usr/src/gambas2-2.23.1? make: *** [all] Error 2 From pinozollo at ...626... Fri May 27 16:52:39 2011 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 27 May 2011 10:52:39 -0400 Subject: [Gambas-user] 'Form.Name' is badly overridden in class 'FMain' Message-ID: <4DDFBAB7.6030001@...626...> Hi, I am trying to convert my old application from GAMBAS 2 to GAMBAS3. On GAMBAS3 I get the error 'Form.Name' is badly overridden in class 'FMain' when I call FMain.show Can somebody please help me to understand this matter ? Salud Pino From gambas at ...1... Fri May 27 17:00:24 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 May 2011 17:00:24 +0200 Subject: [Gambas-user] Release of Gambas 2.23.1 In-Reply-To: <4DDF9A7D.1070509@...626...> References: <4DDF9A7D.1070509@...626...> Message-ID: <201105271700.24861.gambas@...1...> > Hi, > Some problem with 2.23.1 ..... the 2.23.0 did compile fine. > > Salud > > Pino > > Oops, sorry. I have updated the source package, and now it should compile fine. -- Beno?t Minisini From lordheavym at ...626... Fri May 27 17:24:58 2011 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 27 May 2011 17:24:58 +0200 Subject: [Gambas-user] Release of Gambas 2.23.1 In-Reply-To: <201105271700.24861.gambas@...1...> References: <4DDF9A7D.1070509@...626...> <201105271700.24861.gambas@...1...> Message-ID: <26132836.D50Q8F5L2V@...2592...> Le Friday 27 May 2011 17:00:24, Beno?t Minisini a ?crit : > > Hi, > > Some problem with 2.23.1 ..... the 2.23.0 did compile fine. > > > > Salud > > > > Pino > > Oops, sorry. I have updated the source package, and now it should compile > fine. I got also some problem building db.firebird component with gcc-4.6.0, but fixed it, commit will follow soon (just time to add the failling part in the svn log message). ++ From pinozollo at ...626... Fri May 27 19:51:04 2011 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 27 May 2011 13:51:04 -0400 Subject: [Gambas-user] GAMBAS3.0 RC1 crash Message-ID: <4DDFE488.5090906@...626...> Hi Run GAMBAS3 and load an application, then help ? and F1 , then select the language Italian or any other language. All will close without any message. Regards Pino From gambas at ...1... Fri May 27 20:00:01 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 May 2011 20:00:01 +0200 Subject: [Gambas-user] GAMBAS3.0 RC1 crash In-Reply-To: <4DDFE488.5090906@...626...> References: <4DDFE488.5090906@...626...> Message-ID: <201105272000.01144.gambas@...1...> > Hi > Run GAMBAS3 and load an application, then help ? and F1 , then select > the language Italian or any other language. > > All will close without any message. > > Regards > Pino > I cannot reproduce it. Can you give more details about your system? -- Beno?t Minisini From gambas at ...1... Fri May 27 20:02:42 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 May 2011 20:02:42 +0200 Subject: [Gambas-user] 'Form.Name' is badly overridden in class 'FMain' In-Reply-To: <4DDFBAB7.6030001@...626...> References: <4DDFBAB7.6030001@...626...> Message-ID: <201105272002.42878.gambas@...1...> > Hi, > I am trying to convert my old application from GAMBAS 2 to GAMBAS3. > > On GAMBAS3 I get the error > > 'Form.Name' is badly overridden in class 'FMain' > > > when I call FMain.show > > > Can somebody please help me to understand this matter ? > > > Salud > > Pino > This is explained in the "Porting from Gambas 2 to Gambas 3 page" on the wiki. http://gambasdoc.org/help/doc/gb2togb3?v3 Regards, -- Beno?t Minisini From gambas at ...1... Sat May 28 02:47:18 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 May 2011 02:47:18 +0200 Subject: [Gambas-user] another extern math problem In-Reply-To: <201105271326.10392.wally@...2037...> References: <201105271326.10392.wally@...2037...> Message-ID: <201105280247.18557.gambas@...1...> > Hi, > i have another extern math library problem and need your help. > i want to use the peakfind from fityk lib. > The working C example code looks pretty easy and the c-code and the > header file is included in project. Please have a look on the gambas3 > project and explain what i need to do to get it work. > Thank you wally Fityk is a C++ library, not a C library. You can only access library written in C. There is almost no way to use a C++ library outside of C++. Regards, -- Beno?t Minisini From gambas at ...1... Sat May 28 02:58:29 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 May 2011 02:58:29 +0200 Subject: [Gambas-user] Gambas 3 first release candidate In-Reply-To: References: <201105211415.37083.gambas@...1...> Message-ID: <201105280258.29758.gambas@...1...> > On Fri, May 27, 2011 at 12:08 PM, Ian Haywood wrote: > > I have also changed the distro list to match Laurent's archlinux > > packages, > > I mean the binary *package* list sorry. > > PS the best way to get into Ubuntu and friends is to get the packages > in Debian, then it > will filter its way into all the Debian-derived distros. Debian has a > standard procedure for submitting new packages, let me know when > gambas3 is ready for this. > > Ian > Gambas 3 RC1 was made for that: making binary packages in all distributions! I know that Jos? L. R. Rodr?guez made packages for Gambas in Debian, but I have no news from him. Regards, -- Beno?t Minisini From imageek247 at ...626... Sat May 28 04:08:57 2011 From: imageek247 at ...626... (Christian DaGeek247 Stephens) Date: Fri, 27 May 2011 21:08:57 -0500 Subject: [Gambas-user] File Operations Message-ID: Hey all, im back again. How would I open/edit/and delate a file in gambas? i have no idea where to look in the included docs. -- *Live Chat room!* *http://dglivechat.tk My Website: dageek247.tk* *Calvin: *BU-URP! *Mom:* Good heavens, Calvin! What do we say after that? *Calvin:* "Must be a barge coming through!" *Mom:* WHAT Do you say?! *Calvin: *That sure tasted better going down than coming up! *Mom: *Three strikes and you're history kiddo. *Calvin: *excuse me. From rterry at ...1946... Sat May 28 08:11:42 2011 From: rterry at ...1946... (richard terry) Date: Sat, 28 May 2011 16:11:42 +1000 Subject: [Gambas-user] Colourchooser question Message-ID: <201105281611.42504.rterry@...1946...> I Wondered if there was any way one could detect the slider event in the colour chooser control. Any help appreciated. Regards Richard From rterry at ...1946... Sat May 28 08:17:37 2011 From: rterry at ...1946... (richard terry) Date: Sat, 28 May 2011 16:17:37 +1000 Subject: [Gambas-user] Colourchooser question In-Reply-To: <201105281611.42504.rterry@...1946...> References: <201105281611.42504.rterry@...1946...> Message-ID: <201105281617.37454.rterry@...1946...> On Saturday 28 May 2011 16:11:42 richard terry wrote: Umm.. do answer my own question, after giving up fiddling I just realised I could over-ride the change event and get the value. Regards Richard > I Wondered if there was any way one could detect the slider event in the > colour chooser control. > > Any help appreciated. > > Regards > > Richard > > --------------------------------------------------------------------------- > --- vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Sat May 28 09:31:35 2011 From: ron at ...1740... (Ron) Date: Sat, 28 May 2011 09:31:35 +0200 Subject: [Gambas-user] another extern math problem In-Reply-To: <201105280247.18557.gambas@...1...> References: <201105271326.10392.wally@...2037...> <201105280247.18557.gambas@...1...> Message-ID: If you really need to talk to an C++ library you can try to create a wrapper lib. Someone made one for my project to be able to use the openzwave library (C++) from my project Gambas2. Look here for the code: http://domotiga.nl/browser/trunk/wrappers/domozwave You have to make sure that the calls you need to call from Gambas2 are defined within: // C style bindings are required since we call these functions from gambas. extern "C" { } But of cource this approach can be way over the top for your case... Regards, Ron_2nd. 2011/5/28 Beno?t Minisini : >> Hi, >> i have another extern math library problem and need your help. >> i want to use the peakfind from fityk lib. >> The working C example code looks pretty easy and the c-code and the >> header file is included in project. Please have a look on the gambas3 >> project and explain what i need to do to get it work. >> Thank you ?wally > > Fityk is a C++ library, not a C library. You can only access library written > in C. There is almost no way to use a C++ library outside of C++. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat May 28 10:22:06 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 May 2011 10:22:06 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <201105271223.56913.gambas@...1...> References: <201105261915.31293.gambas@...1...> <4DDF44B4.6090400@...221...> <201105271223.56913.gambas@...1...> Message-ID: <201105281022.07056.gambas@...1...> > > At the moment, all seems to be fine (I cross my fingers...). I will go back > to the nouveau driver soon to see if freezes come again. > I use the nouveau driver now, and all freezes are gone. :-) So, if you have a Western Digital Velociraptor 1500HLFS disk, I can help you upgrading its firmware! Regards, -- Beno?t Minisini From Gambas at ...1950... Sat May 28 10:34:39 2011 From: Gambas at ...1950... (Caveat) Date: Sat, 28 May 2011 10:34:39 +0200 Subject: [Gambas-user] [Gambas-user OT] We live a dangerous life sometimes... In-Reply-To: <201105281022.07056.gambas@...1...> References: <201105261915.31293.gambas@...1...> <4DDF44B4.6090400@...221...> <201105271223.56913.gambas@...1...> <201105281022.07056.gambas@...1...> Message-ID: <1306571679.3077.3887.camel@...2150...> We're disappointed in you Benoit... we don't want to use a Windoze 98 disk, we want to use SUB upgrade_firmware Dim myDisk As Velociraptor myDisk.setID("40CF80AD1A") myDisk.updateFW("/home/benoit/Downloads/fw_2011_05_15.bin") END SUB :-) On Sat, 2011-05-28 at 10:22 +0200, Beno?t Minisini wrote: > > > > At the moment, all seems to be fine (I cross my fingers...). I will go back > > to the nouveau driver soon to see if freezes come again. > > > > I use the nouveau driver now, and all freezes are gone. :-) > > So, if you have a Western Digital Velociraptor 1500HLFS disk, I can help you > upgrading its firmware! > > Regards, > From jussi.lahtinen at ...626... Sat May 28 14:54:27 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 28 May 2011 15:54:27 +0300 Subject: [Gambas-user] File Operations In-Reply-To: References: Message-ID: http://gambasdoc.org/help/cat/file http://gambasdoc.org/help/lang/open Jussi On Sat, May 28, 2011 at 05:08, Christian DaGeek247 Stephens < imageek247 at ...626...> wrote: > Hey all, im back again. How would I open/edit/and delate a file in > gambas? i have no idea where to look in the included docs. > > -- > *Live Chat room!* > *http://dglivechat.tk > My Website: > dageek247.tk* > *Calvin: *BU-URP! > *Mom:* Good heavens, Calvin! What do we say after that? > *Calvin:* "Must be a barge coming through!" > *Mom:* WHAT Do you say?! > *Calvin: *That sure tasted better going down than coming up! > *Mom: *Three strikes and you're history kiddo. > *Calvin: *excuse me. > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Sat May 28 16:12:34 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Sat, 28 May 2011 16:12:34 +0200 Subject: [Gambas-user] We live a dangerous life sometimes... In-Reply-To: <201105281022.07056.gambas@...1...> References: <201105261915.31293.gambas@...1...> <4DDF44B4.6090400@...221...> <201105271223.56913.gambas@...1...> <201105281022.07056.gambas@...1...> Message-ID: <4DE102D2.60300@...221...> Am 28.05.2011 10:22, schrieb Beno?t Minisini: >> >> At the moment, all seems to be fine (I cross my fingers...). I will go back >> to the nouveau driver soon to see if freezes come again. >> > > I use the nouveau driver now, and all freezes are gone. :-) > > So, if you have a Western Digital Velociraptor 1500HLFS disk, I can help you > upgrading its firmware! > > Regards, > No, it's a Toshiba... don't know which type, so no help for me yet. Anyway, thanks a lot! Rolf From rterry at ...1946... Sun May 29 03:33:22 2011 From: rterry at ...1946... (richard terry) Date: Sun, 29 May 2011 11:33:22 +1000 Subject: [Gambas-user] Application.Font Message-ID: <201105291133.22699.rterry@...1946...> Is there any documentation which states exactly what is changed when this is changed? Also is there any easy way to globally search the gambas documentation for such information? Regards richard From ron at ...1740... Sun May 29 12:05:23 2011 From: ron at ...1740... (Ron) Date: Sun, 29 May 2011 12:05:23 +0200 Subject: [Gambas-user] Gambas3 and database connection Message-ID: Running my project with Gambas3 RC1 now. Always used the database manager from gambas2, I noticed that now you have a connections folder in the project tree. How can you manage the database in Gambas3, can find it... I have a connection defines in my project itself like so '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' connect to the mysql database '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Function ConnectDatabase() As Boolean With hDB .Type = "mysql" .Host = sSQLHost .Login = sSQLUser .Password = sSQLPass .Name = sSQLDatabase .Open End With End Regards, Ron_2nd. From kevinfishburne at ...1887... Mon May 30 04:48:54 2011 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Sun, 29 May 2011 22:48:54 -0400 Subject: [Gambas-user] odd gb3 issue Message-ID: <4DE30596.4080408@...1887...> Any reason a compiled app would behave differently than an app run in the IDE? My app stalls half-way through receiving network packets from the server when compiled, but when both are running in the IDE it works fine. Didn't have this problem earlier tonight. This is new to me. I'm using build 3866. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From eilert-sprachen at ...221... Mon May 30 10:47:12 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 30 May 2011 10:47:12 +0200 Subject: [Gambas-user] What is faster: OPEN or File.Load? In-Reply-To: <201105271233.30848.gambas@...1...> References: <4DDF7981.70304@...221...> <201105271224.51254.gambas@...1...> <201105271233.30848.gambas@...1...> Message-ID: <4DE35990.9000707@...221...> Am 27.05.2011 12:33, schrieb Beno?t Minisini: >>> When I have different directories which contain text files, and I have >>> to open each file and read only the first line of it, which one will be >>> faster and more efficient: >>> >>> FOR >>> >>> OPEN >>> >>> read first line >>> >>> CLOSE >>> list.Add >>> >>> NEXT >>> >>> or >>> >>> FOR >>> >>> File.Load(...) >>> Split(... chr$(10)) >>> list.Add(...) >>> >>> NEXT >>> >>> Or wouldn't that be feasible in case of, say, 50 - 70 files in such >>> directories? >>> >>> Thanks for your comments :-) >>> >>> Rolf >> >> The second one is obviously faster. Just check the execution time! >> >> Regards, > > Oops, sorry, I didn't see that you wanted just the first line. Then the first > one will be faster, unless you have very small files. > > > Regards, > Well, I want both... First I simply need the complete list of names (first line only), later I have to look into each file to find data. So I will use both ways, thank you! Rolf From ihaywood at ...1979... Mon May 30 13:16:33 2011 From: ihaywood at ...1979... (Ian Haywood) Date: Mon, 30 May 2011 21:16:33 +1000 Subject: [Gambas-user] What is faster: OPEN or File.Load? In-Reply-To: <4DE35990.9000707@...221...> References: <4DDF7981.70304@...221...> <201105271224.51254.gambas@...1...> <201105271233.30848.gambas@...1...> <4DE35990.9000707@...221...> Message-ID: On Mon, May 30, 2011 at 6:47 PM, Rolf-Werner Eilert wrote: > Well, I want both... First I simply need the complete list of names > (first line only), later I have to look into each file to find data. So > I will use both ways, thank you! Hmm, most of the time will be opening the file, so doing both may be the slowest solution as you are opening twice. If you eventually need to read in all the files, and you have enough RAM, best solution would be to read the lot using File.Load () If you only read the rest of some files, then read the first line using OPEN and keep the file objects so you can read the rest without opening them a second time. Ian From eilert-sprachen at ...221... Mon May 30 15:30:10 2011 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 30 May 2011 15:30:10 +0200 Subject: [Gambas-user] What is faster: OPEN or File.Load? In-Reply-To: References: <4DDF7981.70304@...221...> <201105271224.51254.gambas@...1...> <201105271233.30848.gambas@...1...> <4DE35990.9000707@...221...> Message-ID: <4DE39BE2.4080207@...221...> Am 30.05.2011 13:16, schrieb Ian Haywood: > On Mon, May 30, 2011 at 6:47 PM, Rolf-Werner Eilert > wrote: > >> Well, I want both... First I simply need the complete list of names >> (first line only), later I have to look into each file to find data. So >> I will use both ways, thank you! > Hmm, most of the time will be opening the file, so doing both may be the > slowest solution as you are opening twice. > If you eventually need to read in all the files, and you have enough > RAM, best solution > would be to read the lot using File.Load () > If you only read the rest of some files, then read the first line > using OPEN and keep the file objects > so you can read the rest without opening them a second time. > > Ian That's a good idea :-) Although I must say that Linux has very good file buffering. As soon as a file has been read once, it will take only milliseconds to open and read it again, even with masses of files. Anyway, this is a thing I'll keep in mind for next time when I have to revamp the file and filtering functions. It could really help. Rolf From jussi.lahtinen at ...626... Mon May 30 20:50:37 2011 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 30 May 2011 21:50:37 +0300 Subject: [Gambas-user] To wish list. Message-ID: Hi! It would be nice to be able to change order of tabs with drag&drop, just like in Firefox. Maybe to Gambas 4! Jussi From pinozollo at ...626... Mon May 30 21:18:34 2011 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 30 May 2011 15:18:34 -0400 Subject: [Gambas-user] GAMBAS3.0 RC1 crash etc. Message-ID: <4DE3ED8A.7040408@...626...> > > Hi > > Run GAMBAS3 and load an application, then help ? and F1 , then select > > the language Italian or any other language. > > > > All will close without any message. > > > > Regards > > Pino > > I cannot reproduce it. Can you give more details about your system? Yes...Ubuntu 10.04 at last update. ...... I still can not compile 2.23.1 ...did you replace the source ? .......... I have noticed that changing from Gamabs2 to Gambas3 Connection.nameDB changes to Connection.name . Maybe the conversion program should change it automatically....or go back to the old name. ............ Salud Pino From gambas at ...1... Mon May 30 21:28:54 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 30 May 2011 21:28:54 +0200 Subject: [Gambas-user] GAMBAS3.0 RC1 crash etc. In-Reply-To: <4DE3ED8A.7040408@...626...> References: <4DE3ED8A.7040408@...626...> Message-ID: <201105302128.54291.gambas@...1...> > > I cannot reproduce it. Can you give more details about your system? > > Yes...Ubuntu 10.04 at last update. Mmm. *More* details means the full output of the compilation and installation process, if you use a 32 or 64 bits system, which destkop you use. > > ...... > > I still can not compile 2.23.1 ...did you replace the source ? Yes. Please provide the full output of the compilation process. If you have the same error, check that you have a file named "videodev.h" located in the 'gb.v4l/src' directory. > > .......... > > I have noticed that changing from Gamabs2 to Gambas3 Connection.nameDB > changes to Connection.name . Maybe the conversion program should change it > automatically....or go back to the old name. What are you talking about exactly? I don't see... Regards, -- Beno?t Minisini From gambas at ...1... Mon May 30 21:31:15 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 30 May 2011 21:31:15 +0200 Subject: [Gambas-user] odd gb3 issue In-Reply-To: <4DE30596.4080408@...1887...> References: <4DE30596.4080408@...1887...> Message-ID: <201105302131.15384.gambas@...1...> > Any reason a compiled app would behave differently than an app run in > the IDE? My app stalls half-way through receiving network packets from > the server when compiled, but when both are running in the IDE it works > fine. Didn't have this problem earlier tonight. This is new to me. I'm > using build 3866. Mmm. Very hard to guess as soon as you do network programming. When your program is stalled, do that in a terminal: $ gdb /usr/bin/gbx3 ... (gdb) bt ... And send me the result of the 'bt' command, which should tell where the program is stalled. Note: replace /usr/bin/gbx3 by where the gambas interpreter is actually installed. Regards, -- Beno?t Minisini From gambas at ...1... Mon May 30 21:32:47 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 30 May 2011 21:32:47 +0200 Subject: [Gambas-user] Application.Font In-Reply-To: <201105291133.22699.rterry@...1946...> References: <201105291133.22699.rterry@...1946...> Message-ID: <201105302132.47188.gambas@...1...> > Is there any documentation which states exactly what is changed when this > is changed? > Application.Font changes the default font used by the controls. You should use it before creating any control. > Also is there any easy way to globally search the gambas documentation for > such information? There is a link named "Search" on the wiki. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Mon May 30 21:55:01 2011 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 30 May 2011 20:55:01 +0100 Subject: [Gambas-user] To wish list. In-Reply-To: References: Message-ID: +1 It would be great!! 2011/5/30 Jussi Lahtinen > Hi! > It would be nice to be able to change order of tabs with drag&drop, just > like in Firefox. > Maybe to Gambas 4! > > Jussi > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Mon May 30 22:11:14 2011 From: pinozollo at ...626... (Pino Zollo) Date: Mon, 30 May 2011 16:11:14 -0400 Subject: [Gambas-user] QPainter in GAMBAS3 Message-ID: <4DE3F9E2.1040105@...626...> Hi This message is a bit obscure for me..... please help ! It appears in the Console. "QPainter::begin: A paint device can only be painted by one painter at a time. QPainter::end: Painter not active, aborted" Actually I can not determine which statement and which class exactly generates it Thanks Pino From gambas.fr at ...626... Tue May 31 11:02:33 2011 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 31 May 2011 11:02:33 +0200 Subject: [Gambas-user] QPainter in GAMBAS3 In-Reply-To: <4DE3F9E2.1040105@...626...> References: <4DE3F9E2.1040105@...626...> Message-ID: i think you call paint.begin in a _draw event, no ? 2011/5/30 Pino Zollo : > Hi > This message is a bit obscure for me..... please help ! > > It appears in the Console. > > "QPainter::begin: A paint device can only be painted by one painter at a > time. > QPainter::end: Painter not active, aborted" > > Actually I can not determine which statement and which class exactly > generates it > > Thanks > > Pino > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From ron at ...1740... Tue May 31 11:27:27 2011 From: ron at ...1740... (Ron) Date: Tue, 31 May 2011 11:27:27 +0200 Subject: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails Message-ID: See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[4]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus/src' Compiling the gb.dbus project... gb.dbus OK Installing the gb.dbus control icons if needed... Creating the information files for gb.dbus component... gb.dbus make[4]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src' make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src' make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src' make[2]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus' make[3]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus' make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus' make[1]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus' Making install in comp make[1]: Entering directory `/home/ron/install/gambas/trunk/comp' make[2]: Entering directory `/home/ron/install/gambas/trunk/comp' Running the informer again twice because of dependencies between information files gb gb.cairo gb.compress gb.crypt gb.db gb.db.mysql gb.db.odbc gb.db.postgresql gb.db.sqlite2 gb.db.sqlite3 gb.dbus gb.debug gb.desktop gb.eval gb.gtk gb.gui gb.image gb.image.effect gb.image.imlib gb.image.io gb.net gb.net.curl gb.net.smtp gb.opengl gb.opengl.glsl gb.opengl.glu gb.option gb.pcre gb.pdf gb.qt4 gb.qt4.ext gb.qt4.opengl gb.qt4.webkit gb.sdl gb.sdl.sound gb.signal gb.v4l gb.vb gb.xml gb.xml.rpc gb.xml.xslt gb gb.cairo gb.compress gb.crypt gb.db gb.db.mysql gb.db.odbc gb.db.postgresql gb.db.sqlite2 gb.db.sqlite3 gb.dbus gb.debug gb.desktop gb.eval gb.gtk gb.gui gb.image gb.image.effect gb.image.imlib gb.image.io gb.net gb.net.curl gb.net.smtp gb.opengl gb.opengl.glsl gb.opengl.glu gb.option gb.pcre gb.pdf gb.qt4 gb.qt4.ext gb.qt4.opengl gb.qt4.webkit gb.sdl gb.sdl.sound gb.signal gb.v4l gb.vb gb.xml gb.xml.rpc gb.xml.xslt Installing the components... Compiling gb.eval.highlight... OK Installing gb.eval.highlight... Compiling gb.settings... OK Installing gb.settings... Compiling gb.form... OK Installing gb.form... Compiling gb.form.stock... OK Installing gb.form.stock... Compiling gb.form.dialog... OK Installing gb.form.dialog... Compiling gb.form.mdi... OK Installing gb.form.mdi... Compiling gb.db.form... OK Installing gb.db.form... Compiling gb.web... OK Installing gb.web... Compiling gb.report... OK Installing gb.report... Compiling gb.chart... OK Installing gb.chart... Compiling gb.mysql... OK Installing gb.mysql... make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/ron/install/gambas/trunk/comp' make[1]: Leaving directory `/home/ron/install/gambas/trunk/comp' Making install in app make[1]: Entering directory `/home/ron/install/gambas/trunk/app' make[2]: Entering directory `/home/ron/install/gambas/trunk/app' Installing the development environment... Compiling gambas3... OK Installing gambas3... Compiling gbs3... OK Installing gbs3... Installing the scripter... Registering Gambas script mimetype Registering Gambas server page mimetype make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/ron/install/gambas/trunk/app' make[1]: Leaving directory `/home/ron/install/gambas/trunk/app' Making install in examples make[1]: Entering directory `/home/ron/install/gambas/trunk/examples' make[2]: Entering directory `/home/ron/install/gambas/trunk/examples' Installing the gambas examples... Compiling Automation/DBusExplorer/... OK Compiling Basic/Blights/... OK Compiling Basic/Collection/... OK Compiling Basic/DragNDrop/... OK Compiling Basic/Object/... OK Compiling Basic/Timer/... OK Compiling Control/ArrayOfControls/... OK Compiling Control/Embedder/... OK Compiling Control/HighlightEditor/... OK Compiling Control/TextEdit/... OK Compiling Control/TreeView/... OK Compiling Control/Wizard/... OK Compiling Database/Database/... OK Compiling Database/MySQLExample/... OK Compiling Database/PictureDatabase/... OK Compiling Drawing/AnalogWatch/... OK Compiling Drawing/Barcode/... OK Compiling Drawing/Chart/... OK Compiling Drawing/Clock/... OK Compiling Drawing/Gravity/... OK Compiling Drawing/GSLSpline/... OK Compiling Drawing/OnScreenDisplay/... OK Compiling Drawing/Painting/... OK Compiling Games/BeastScroll/... OK Compiling Games/Concent/... OK Compiling Games/DeepSpace/... OK Compiling Games/GameOfLife/... OK Compiling Games/GNUBoxWorld/... OK Compiling Games/Puzzle1To8/... OK Compiling Games/RobotFindsKitten/... OK Compiling Games/Snake/... OK Compiling Games/Solitaire/... OK Compiling Image/ImageViewer/... OK Compiling Image/Lighttable/... OK Compiling Misc/Console/... OK Compiling Misc/Evaluator/... OK Compiling Misc/Explorer/... OK Compiling Misc/Notepad/... OK Compiling Misc/PDFViewer/... OK Compiling Networking/ClientSocket/... OK Compiling Networking/DnsClient/... OK Compiling Networking/HTTPGet/... OK Compiling Networking/HTTPPost/... OK Compiling Networking/SerialPort/... OK Compiling Networking/ServerSocket/... OK Compiling Networking/UDPServerClient/... OK Compiling Networking/WebBrowser/... OK Compiling OpenGL/3DWebCam/... OK Compiling OpenGL/GambasGears/... OK Compiling OpenGL/PDFPresentation/... OK Compiling Printing/Printing/... OK Compiling Printing/ReportExample/... OK Compiling Sound/CDPlayer/... OK Compiling Sound/MusicPlayer/... OK Compiling Video/MoviePlayer/... OK Compiling Video/MyWebCam/... OK Compiling Video/WebCam/... OK make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/ron/install/gambas/trunk/examples' make[1]: Leaving directory `/home/ron/install/gambas/trunk/examples' Making install in . make[1]: Entering directory `/home/ron/install/gambas/trunk' make[2]: Entering directory `/home/ron/install/gambas/trunk' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/ron/install/gambas/trunk' make[1]: Leaving directory `/home/ron/install/gambas/trunk' ron at ...2593... ~/install/gambas/trunk $ gambas3 warning: unable to load Qt translation: en_US.UTF-8 CRecentFile.Load.118: #45: File or directory does not exist 0: CRecentFile.Load.118 1: Project.Main.266 64bit Mint 11, latest rev trunk Configure and compile without errors... Regards, Ron_2nd. From gambas at ...1... Tue May 31 11:35:43 2011 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 31 May 2011 11:35:43 +0200 Subject: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails In-Reply-To: References: Message-ID: <201105311135.43993.gambas@...1...> > ... > ron at ...2593... ~/install/gambas/trunk $ gambas3 > warning: unable to load Qt translation: en_US.UTF-8 > CRecentFile.Load.118: #45: File or directory does not exist > 0: CRecentFile.Load.118 > 1: Project.Main.266 > > > 64bit Mint 11, latest rev trunk > Configure and compile without errors... > > Regards, > Ron_2nd. > It should be fixed in revision #3867. Regards, -- Beno?t Minisini From ron at ...1740... Tue May 31 11:55:41 2011 From: ron at ...1740... (Ron) Date: Tue, 31 May 2011 11:55:41 +0200 Subject: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails In-Reply-To: <201105311135.43993.gambas@...1...> References: <201105311135.43993.gambas@...1...> Message-ID: Yes that fixed it, thanks. Regards, Ron_2nd. 2011/5/31 Beno?t Minisini : >> ... >> ron at ...2593... ~/install/gambas/trunk $ gambas3 >> warning: unable to load Qt translation: en_US.UTF-8 >> CRecentFile.Load.118: #45: File or directory does not exist >> 0: CRecentFile.Load.118 >> 1: Project.Main.266 >> >> >> 64bit Mint 11, latest rev trunk >> Configure and compile without errors... >> >> Regards, >> Ron_2nd. >> > > It should be fixed in revision #3867. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > 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. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Select a project.png Type: image/png Size: 56987 bytes Desc: not available URL: From ron at ...1740... Tue May 31 11:57:27 2011 From: ron at ...1740... (Ron) Date: Tue, 31 May 2011 11:57:27 +0200 Subject: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails In-Reply-To: References: <201105311135.43993.gambas@...1...> Message-ID: Nevermind the screenshot, it was another problem which is already fixed. ;-) On Tue, May 31, 2011 at 11:55 AM, Ron wrote: > Yes that fixed it, thanks. > > Regards, > Ron_2nd. > 2011/5/31 Beno?t Minisini : >>> ... >>> ron at ...2593... ~/install/gambas/trunk $ gambas3 >>> warning: unable to load Qt translation: en_US.UTF-8 >>> CRecentFile.Load.118: #45: File or directory does not exist >>> 0: CRecentFile.Load.118 >>> 1: Project.Main.266 >>> >>> >>> 64bit Mint 11, latest rev trunk >>> Configure and compile without errors... >>> >>> Regards, >>> Ron_2nd. >>> >> >> It should be fixed in revision #3867. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> 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. Data protection magic? >> Nope - It's vRanger. Get your free trial download today. >> http://p.sf.net/sfu/quest-sfdev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From ron at ...1740... Tue May 31 14:11:14 2011 From: ron at ...1740... (Ron) Date: Tue, 31 May 2011 14:11:14 +0200 Subject: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails In-Reply-To: References: <201105311135.43993.gambas@...1...> Message-ID: Some small issues: This BackColor isn't converted to Gambas3: If Row Mod 2 Then gvPhoneCalls.Data.BackColor = Color.Background Maybe these are missing icons: ? warning: unable to load 16/cancel warning: unable to load 16/view-hidden Or it this an Mint thing? Regards, Ron_2nd. On Tue, May 31, 2011 at 11:57 AM, Ron wrote: > Nevermind the screenshot, it was another problem which is already fixed. ;-) > > On Tue, May 31, 2011 at 11:55 AM, Ron wrote: >> Yes that fixed it, thanks. >> >> Regards, >> Ron_2nd. >> 2011/5/31 Beno?t Minisini : >>>> ... >>>> ron at ...2593... ~/install/gambas/trunk $ gambas3 >>>> warning: unable to load Qt translation: en_US.UTF-8 >>>> CRecentFile.Load.118: #45: File or directory does not exist >>>> 0: CRecentFile.Load.118 >>>> 1: Project.Main.266 >>>> >>>> >>>> 64bit Mint 11, latest rev trunk >>>> Configure and compile without errors... >>>> >>>> Regards, >>>> Ron_2nd. >>>> >>> >>> It should be fixed in revision #3867. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------------------------ >>> 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. Data protection magic? >>> Nope - It's vRanger. Get your free trial download today. >>> http://p.sf.net/sfu/quest-sfdev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > From pinozollo at ...626... Tue May 31 14:17:17 2011 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 31 May 2011 08:17:17 -0400 Subject: [Gambas-user] QPainter in GAMBAS3 Message-ID: <4DE4DC4D.8080605@...626...> > i think you call paint.begin in a _draw event, no ? No, ...Draw.begin please see the all class source. Sub Disegna() is called continuously...how would be a better way ? Shall I put Draw.Begin only once at the opening of the window ? Thanks Pino 2011/5/30 Pino Zollo : > > Hi > > This message is a bit obscure for me..... please help ! > > > > It appears in the Console. > > > > "QPainter::begin: A paint device can only be painted by one painter at a > > time. > > QPainter::end: Painter not active, aborted" > > > > Actually I can not determine which statement and which class exactly > > generates it ' Gambas class file '********************************************************** Static Public Fine As Float Static Public Inizio As Float Static Public zoom As Float Static Public Freq As Float Static Public Fin As Float Static Public Ffin As Float Static Public F2 As Float Static Public D As Float = 0 Static Public Ba As Boolean Static Public vfo0 As Float = 14200 Static Public FullSpan As Boolean = False Static Public DH As Float Static Public OldBand As String = "20m" Static Public Band As String = "20m" Static Public CaCol As Integer ' Call Color Static Public BeCol As Integer ' Background Color Public Sub _new() End Public Sub Form_Open() Me.Text = "DBLog Scale" Me.Top = Settings["Scale/Top", Me.Top] Me.Left = Settings["Scale/Left", Me.Left] Me.Height = Settings["Scale/Height", Me.Height] Me.Width = Settings["Scale/Width", Me.Width] ' ME.Move(200, 80) ' ME.ShowModal ' a cosa serve ?? ' ME.Sticky = TRUE ' does nothing ' DEBUG ME.Sticky ' ME.TopOnly = TRUE ' DEBUG ME.TopOnly ' Why is always false ? after 2.15 it works... Inizio = FMain.lowerl Fine = FMain.upperl Freq = FMain.F 'Val(Replace$(FMain.FreqRadio.text, ",", "")) '14.200 ' dummy zoom = 30 ' 30 KHz 30 marks in the full Height F2 = Freq * 1000 ' in KHz 'DEBUG Inizio;; Fine;; Freq DrawingArea1.Resize(Me.ClientW, Me.ClientH) DrawingArea1.Cached = True ' Draw.Begin(DrawingArea1) Disegna() Catch Debug error.text, error.Where End Public Sub Form_Close() ' Draw.End Settings["Scale/Top"] = Me.Top Settings["Scale/Left"] = Me.Left Settings["Scale/Height"] = Me.Height Settings["Scale/Width"] = Me.Width End Public Sub Form_Resize() Try DrawingArea1.Resize(Me.ClientW, Me.ClientH) 'TRY Disegna() ' DrawingArea1.Refresh ' what is this for ? End Public Sub Disegna() ' dovrebbe aspettare la fine della scrittura su Band Dim i, passo, Rap, St, En, p0 As Float Dim F, P, R As Integer Dim hField As ResultField ' for Spots Dim iInd As Integer Dim FSpot As Float Dim Raw_Count As Integer Dim Columns_Count As Integer _label: Inizio = FMain.lowerl ' Get band limits Fine = FMain.upperl Band = FMain.ComboBand.Text If Band <> OldBand And FullSpan Then ' Put in Full Span the new band zoom = (Fine - Inizio) * 1000 Fin = Inizio Freq = (Fine + Inizio) / 2 OldBand = Band Endif Draw.Begin(DrawingArea1) ' <--------------------------------------------------------------------- here Rap = Draw.w / 3 DH = Draw.H ' [GB2:BCOL] DrawingArea1.BackColor = Color.White ' OK works DrawingArea1.Background = Color.White ' OK works Draw.Foreground = &HDFEFFF& Draw.FillStyle = Fill.Solid Draw.FillColor = &HDFEFFF& Draw.Rect(0, 0, Rap, Draw.h) Draw.Foreground = Color.Black Draw.Line(Rap, 0, Rap, Draw.H) St = Inizio * 1000 ' in KHz En = Fine * 1000 F = Int((Freq * 1000 - zoom / 2)) Fin = F passo = (Draw.H / (zoom)) ' KHz -1 senza Int Draw.Font.Size = 8 For i = 0 To Draw.H + 1 Step passo ' dirty trick !! the +1 If F > En Or F < St Then Draw.Foreground = Color.Red Else Draw.Foreground = Color.Black End If If F Mod 5 <> 0 Then Draw.Line(Rap - 5, i, Rap, i) Else Draw.Line(Rap - 10, i, Rap, i) If FMain.comma Then Draw.Text(Replace$(Format$(F / 1000, "##0.000"), ",", "."), 0, i - 6,,, Align.TopLeft) ' -6 because Align seems not to work Else Draw.Text(Format$(F / 1000, "##0.000"), 0, i - 6,,, Align.TopLeft) Endif End If Inc F Next Ffin = F - 1 ' DEBUG Fin;; Ffin;; Ffin - Fin;; F2;; St;; En p0 = (F2 - Fin) / (Ffin - Fin) * Draw.H P = Int(p0) R = Int(Rap) ' Draw.Transparent = TRUE Draw.Foreground = Color.Red Draw.FillColor = Color.Red Draw.Polygon([R, P, R - 8, P - 5, R - 8, P + 5]) ' Fill spots Draw.Font.Size = 9 Draw.FillColor = Color.White For iInd = 0 To FBand.GridStations.Rows.Count - 1 If FMain.comma Then Try Fspot = Val(Replace$(FBand.GridStations[iInd, 1].Text, ".", ",")) * 1000 Else Try Fspot = Val(FBand.GridStations[iInd, 1].Text) * 1000 Endif If Fspot >= Fin And Fspot <= Ffin Then SelectColor(iInd) P = Int((FSpot - Fin) / (Ffin - Fin) * Draw.H) Draw.Foreground = Color.White Draw.FillColor = BeCol Draw.Rect(R + 1, P - 6, Draw.W - R, 13) ' for background Draw.Foreground = CaCol Draw.Line(R, P, R + 20, P) Draw.Text(FBand.GridStations[iInd, 2].Text, R + 25, P - 6,,, Align.TopLeft) Endif Next Draw.End Catch Debug error.text, error.Where End Public Sub SelectColor(I As Integer) Select Case Left$(FBand.GridStations[I, 0].Text, 4) Case " NEW" BeCol = &HFFFF00& CaCol = &HFF0000& ' yellow was &HFF0000& Case " NEE" ' Draw.Background = &HCBFFCC& ' does not work ' Draw.BackColor = &HCBFFCC& ' does not work BeCol = &HCBFFCC& CaCol = &HFF0000& ' red Case "CQCQ" BeCol = Color.White CaCol = &H0505050& Case "DIAL" BeCol = Color.White CaCol = &H0800040& Case "WKB4" BeCol = Color.White CaCol = &H0A0A0A0& Case " Not" BeCol = Color.White CaCol = Color.Blue Case "MEMO" BeCol = Color.White CaCol = &H0000000& Default BeCol = Color.White CaCol = Color.Blue End Select End Public Sub Control(VFO As Float) If VFO <> vfo0 Then D = (Ffin - Fin) / 10 F2 = VFO If Not FullSpan Then ' do not slide is in Fill span mode If F2 < Fin Or F2 > Ffin Then Freq = F2 / 1000 D = 0 Else If Abs(F2 - Fin) < D Then Ba = True Freq = (F2 + 3 * D) / 1000 End If If Abs(F2 - Ffin) < D Then Ba = False Freq = (F2 - 3 * D) / 1000 End If End If Endif ' Form_Resize Disegna() vfo0 = VFO Endif End Public Sub DrawingArea1_Menu() MenuPopUp.popup Catch Debug error.text, error.Where End Public Sub Zin_Click() zoom = zoom - 10 If zoom <= 0 Then zoom = 3 Freq = F2 / 1000 FullSpan = False Disegna() Catch Debug error.text, error.Where End Public Sub Zo_Click() zoom = zoom + 10 Freq = F2 / 1000 FullSpan = False Disegna() Catch Debug error.text, error.Where End Public Sub Reset_Click() zoom = 30 Freq = F2 / 1000 FullSpan = False Disegna() Catch Debug error.text, error.Where End Public Sub CW_Click() zoom = 10 Freq = F2 / 1000 FullSpan = False Disegna() Catch Debug error.text, error.Where End Public Sub DIGI_Click() zoom = 3 Freq = F2 / 1000 FullSpan = False Disegna() Catch Debug error.text, error.Where End Public Sub SSB_Click() zoom = 90 Freq = F2 / 1000 FullSpan = False Disegna() Catch Debug error.text, error.Where End Public Sub Full_Click() zoom = (Fine - Inizio) * 1000 Fin = Inizio Freq = (Fine + Inizio) / 2 FullSpan = True Disegna() Catch Debug error.text, error.Where End Public Sub DrawingArea1_MouseDown() Dim Fm As Float If Mouse.Left Then Fm = (Fin + (Ffin - Fin) * Mouse.Y / DH) / 1000 FMain.FreqA = Fm FMain.FreqB = Fm If FMain.fldigi_on Then FMain.Command_fldigi("log.set_call", "", "main.set_frequency", Str(Int(Fm * 1000000)), FMain.ComboMode.Text) ' IF FMain.comma THEN ' ' FMain.Command_fldigi("log.set_call", "", "main.set_frequency", Replace$(Str(Fm), ".", ""), FMain.ComboMode.text) ' ELSE ' FMain.Command_fldigi("log.set_call", "", "main.set_frequency", Str(Int(Fm * 1000000)), FMain.ComboMode.Text) ' ENDIF Else FMain.tune = True ' Inform FMain to change VFO frequencies Endif Endif Catch Debug error.text, error.Where End From pinozollo at ...626... Tue May 31 14:23:46 2011 From: pinozollo at ...626... (Pino Zollo) Date: Tue, 31 May 2011 08:23:46 -0400 Subject: [Gambas-user] QPainter in GAMBAS3 ...error #11 Message-ID: <4DE4DDD2.1020208@...626...> Just moving Draw.Begin into Public Sub Form_Open() ------------------------------------ Public Sub Form_Open() Draw.Begin(DrawingArea1) Me.Text = "DBLog Scale" ----------------------------------- I get Error #11 please inform Benoit ;-) Pino From ron at ...1740... Tue May 31 14:46:47 2011 From: ron at ...1740... (Ron) Date: Tue, 31 May 2011 14:46:47 +0200 Subject: [Gambas-user] Starting Gambas3 RC1 IDE on Mint 11 fails In-Reply-To: References: Message-ID: Running a compiled cli project in Gambas3 also seem to behave differently that running it from IDE. Sending e-mail seem to fail reguarly, while when run from IDE I didn't had that yet. 2011/05/31 13:22:55 The error was 'Connection to mailserver failed while connecting to SMTP server (SMTP error code #0)' [-1] at SmtpClient.Send.66'. Maybe same cause as what Kevin (i believe) was reporting about udp problems... Regards, Ron_2nd. On Tue, May 31, 2011 at 11:27 AM, Ron wrote: > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > ---------------------------------------------------------------------- > make ?install-data-hook > make[4]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus/src' > > Compiling the gb.dbus project... > gb.dbus > OK > Installing the gb.dbus control icons if needed... > Creating the information files for gb.dbus component... > gb.dbus > > make[4]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src' > make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src' > make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus/src' > make[2]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus' > make[3]: Entering directory `/home/ron/install/gambas/trunk/gb.dbus' > make[3]: Nothing to be done for `install-exec-am'. > make[3]: Nothing to be done for `install-data-am'. > make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus' > make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus' > make[1]: Leaving directory `/home/ron/install/gambas/trunk/gb.dbus' > Making install in comp > make[1]: Entering directory `/home/ron/install/gambas/trunk/comp' > make[2]: Entering directory `/home/ron/install/gambas/trunk/comp' > > Running the informer again twice because of dependencies between > information files > gb > gb.cairo > gb.compress > gb.crypt > gb.db > gb.db.mysql > gb.db.odbc > gb.db.postgresql > gb.db.sqlite2 > gb.db.sqlite3 > gb.dbus > gb.debug > gb.desktop > gb.eval > gb.gtk > gb.gui > gb.image > gb.image.effect > gb.image.imlib > gb.image.io > gb.net > gb.net.curl > gb.net.smtp > gb.opengl > gb.opengl.glsl > gb.opengl.glu > gb.option > gb.pcre > gb.pdf > gb.qt4 > gb.qt4.ext > gb.qt4.opengl > gb.qt4.webkit > gb.sdl > gb.sdl.sound > gb.signal > gb.v4l > gb.vb > gb.xml > gb.xml.rpc > gb.xml.xslt > gb > gb.cairo > gb.compress > gb.crypt > gb.db > gb.db.mysql > gb.db.odbc > gb.db.postgresql > gb.db.sqlite2 > gb.db.sqlite3 > gb.dbus > gb.debug > gb.desktop > gb.eval > gb.gtk > gb.gui > gb.image > gb.image.effect > gb.image.imlib > gb.image.io > gb.net > gb.net.curl > gb.net.smtp > gb.opengl > gb.opengl.glsl > gb.opengl.glu > gb.option > gb.pcre > gb.pdf > gb.qt4 > gb.qt4.ext > gb.qt4.opengl > gb.qt4.webkit > gb.sdl > gb.sdl.sound > gb.signal > gb.v4l > gb.vb > gb.xml > gb.xml.rpc > gb.xml.xslt > Installing the components... > Compiling gb.eval.highlight... > OK > Installing gb.eval.highlight... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.form... > OK > Installing gb.form... > Compiling gb.form.stock... > OK > Installing gb.form.stock... > Compiling gb.form.dialog... > OK > Installing gb.form.dialog... > Compiling gb.form.mdi... > OK > Installing gb.form.mdi... > Compiling gb.db.form... > OK > Installing gb.db.form... > Compiling gb.web... > OK > Installing gb.web... > Compiling gb.report... > OK > Installing gb.report... > Compiling gb.chart... > OK > Installing gb.chart... > Compiling gb.mysql... > OK > Installing gb.mysql... > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/ron/install/gambas/trunk/comp' > make[1]: Leaving directory `/home/ron/install/gambas/trunk/comp' > Making install in app > make[1]: Entering directory `/home/ron/install/gambas/trunk/app' > make[2]: Entering directory `/home/ron/install/gambas/trunk/app' > Installing the development environment... > Compiling gambas3... > OK > Installing gambas3... > Compiling gbs3... > OK > Installing gbs3... > Installing the scripter... > Registering Gambas script mimetype > Registering Gambas server page mimetype > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/ron/install/gambas/trunk/app' > make[1]: Leaving directory `/home/ron/install/gambas/trunk/app' > Making install in examples > make[1]: Entering directory `/home/ron/install/gambas/trunk/examples' > make[2]: Entering directory `/home/ron/install/gambas/trunk/examples' > > Installing the gambas examples... > Compiling Automation/DBusExplorer/... > OK > Compiling Basic/Blights/... > OK > Compiling Basic/Collection/... > OK > Compiling Basic/DragNDrop/... > OK > Compiling Basic/Object/... > OK > Compiling Basic/Timer/... > OK > Compiling Control/ArrayOfControls/... > OK > Compiling Control/Embedder/... > OK > Compiling Control/HighlightEditor/... > OK > Compiling Control/TextEdit/... > OK > Compiling Control/TreeView/... > OK > Compiling Control/Wizard/... > OK > Compiling Database/Database/... > OK > Compiling Database/MySQLExample/... > OK > Compiling Database/PictureDatabase/... > OK > Compiling Drawing/AnalogWatch/... > OK > Compiling Drawing/Barcode/... > OK > Compiling Drawing/Chart/... > OK > Compiling Drawing/Clock/... > OK > Compiling Drawing/Gravity/... > OK > Compiling Drawing/GSLSpline/... > OK > Compiling Drawing/OnScreenDisplay/... > OK > Compiling Drawing/Painting/... > OK > Compiling Games/BeastScroll/... > OK > Compiling Games/Concent/... > OK > Compiling Games/DeepSpace/... > OK > Compiling Games/GameOfLife/... > OK > Compiling Games/GNUBoxWorld/... > OK > Compiling Games/Puzzle1To8/... > OK > Compiling Games/RobotFindsKitten/... > OK > Compiling Games/Snake/... > OK > Compiling Games/Solitaire/... > OK > Compiling Image/ImageViewer/... > OK > Compiling Image/Lighttable/... > OK > Compiling Misc/Console/... > OK > Compiling Misc/Evaluator/... > OK > Compiling Misc/Explorer/... > OK > Compiling Misc/Notepad/... > OK > Compiling Misc/PDFViewer/... > OK > Compiling Networking/ClientSocket/... > OK > Compiling Networking/DnsClient/... > OK > Compiling Networking/HTTPGet/... > OK > Compiling Networking/HTTPPost/... > OK > Compiling Networking/SerialPort/... > OK > Compiling Networking/ServerSocket/... > OK > Compiling Networking/UDPServerClient/... > OK > Compiling Networking/WebBrowser/... > OK > Compiling OpenGL/3DWebCam/... > OK > Compiling OpenGL/GambasGears/... > OK > Compiling OpenGL/PDFPresentation/... > OK > Compiling Printing/Printing/... > OK > Compiling Printing/ReportExample/... > OK > Compiling Sound/CDPlayer/... > OK > Compiling Sound/MusicPlayer/... > OK > Compiling Video/MoviePlayer/... > OK > Compiling Video/MyWebCam/... > OK > Compiling Video/WebCam/... > OK > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/ron/install/gambas/trunk/examples' > make[1]: Leaving directory `/home/ron/install/gambas/trunk/examples' > Making install in . > make[1]: Entering directory `/home/ron/install/gambas/trunk' > make[2]: Entering directory `/home/ron/install/gambas/trunk' > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/home/ron/install/gambas/trunk' > make[1]: Leaving directory `/home/ron/install/gambas/trunk' > ron at ...2593... ~/install/gambas/trunk $ gambas3 > warning: unable to load Qt translation: en_US.UTF-8 > CRecentFile.Load.118: #45: File or directory does not exist > 0: CRecentFile.Load.118 > 1: Project.Main.266 > > > 64bit Mint 11, latest rev trunk > Configure and compile without errors... > > Regards, > Ron_2nd. >