Re: [Gambas-user] GB.JIT Crashes
Yes please, how does your source code look like? Are you trying to enumerate a class? /Emil 2012/6/9 Sebastian Kulesz sebi...@gmail.com Hi! I'm getting a crash when I place the fast keyword on top of a module. The output: 19PushClassExpression gbx3: jit.h:145: virtual llvm::Value* Expression::codegen_get_value(): Assertion `false codegen_get_value not done yet for this type' failed. If you need the source let me know! Thanks! -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Calling dbus method:how do I handle return values
I am trying to call a DBus method which takes one parameter and returns many. The method details are: method name=GetGraph arg name=known_graph_version type=t direction=in / arg name=current_graph_version type=t direction=out / arg name=clients_and_ports type=a(tsa(tsuu)) direction=out / arg name=connections type=a(tstststst) direction=out / /method If I use this: Dim graph_details As New Variant[] If 0 CurrentGraph Then graph_details = Jack.GetGraph(CurrentGraph) ...then graph_details[0] will return the numeric id for the graph (for example, 223) I don't seem to be able to guess what sort of variable to use for assigning graph_details[1] and [2]. Stepping through the code it seems to suggest that graph_details[1] is a Variant[][]. Same for graph_details[2], but as I am completely and unredeemably confused by array declaration syntax I am no closer to capturing these items. Initially I thought that I could declare two variables to be of type DBusVariant, set type signatures to a(tsa(tsuu)) and a(tstststst), and assign to them. But that is not how this apparently useful type is expected to be used. Anyone know how to achieve this? Richard -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https
Comment #6 on issue 236 by benoit.m...@gmail.com: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 Can you try to call SSL_library_init() explicitly from the Gambas code? Extern SSL_library_init() In libssl -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 256 in gambas: When executing a project on a read-only with profiling enabled the program crashes
Updates: Status: Fixed Comment #2 on issue 256 by benoit.m...@gmail.com: When executing a project on a read-only with profiling enabled the program crashes http://code.google.com/p/gambas/issues/detail?id=256 Fixed in revision #4820. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 256 in gambas: When executing a project on a read-only with profiling enabled the program crashes
Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 256 by benoit.m...@gmail.com: When executing a project on a read-only with profiling enabled the program crashes http://code.google.com/p/gambas/issues/detail?id=256 (No comment was entered for this change.) -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 246 in gambas: Random DrawingArea is being drawn error when using new gridview
Comment #3 on issue 246 by benoit.m...@gmail.com: Random DrawingArea is being drawn error when using new gridview http://code.google.com/p/gambas/issues/detail?id=246 If, inside the Data event, you change the visibility of a control that is above the GridView, then I think you may trigger a redraw event, and so a recursive call to the Data event. That can lead to infinite recursion and a crash. But normally you should get a stack overflow error. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https
Comment #7 on issue 236 by sebi...@gmail.com: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 It worked!! I added the Extern declaration and called SSL_library_init() at Form_Open() Any ideas of why this is happening?? Thanks a lot!! -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Server Socket Example
Hi list, i work on a server project similar to ServerSocket example and i have some questions 1) in example i see that there is the use of Tag property for the socket as Public Sub MyServerSocket_Connection(sHost As String) Obj.Tag = [$iId, 0, ] End Sub i understand that Tag[0] is the socket id Tag[2] is the socket data what is Tag[1]; 2) it is used in sub Public Sub Socket_Write() to send 10 times data to client, why to send 10 times data? I dont understand it. iInd = hSocket.Tag[1] If iInd 0 Then Return Do Inc iInd If iInd 10 Then hSocket.Tag[1] = -1 Return Endif Try Print #hSocket, iInd : hSocket.Tag[2] Space$(512) \n; Loop Thanks! -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
Thank you Jussi. That is just fantastic example that I intend to use for new projects. The point I am trying to make should not have to become an OO v non-OO programming debate. The broadest difference is that #include and its cousins (#define, #undefine, #ifdef, #ifndef, #endif) are to do with preprocessing before a program runs. I cover the argument in next post to Bruce. On Sat, 2012-06-09 at 18:27 +0300, Jussi Lahtinen wrote: OK, while that solution might work, it sucks. Instead see new attachment (IncludeProblem-2.0.tar.gz). Jussi On 9 June 2012 16:57, Jussi Lahtinen jussi.lahti...@gmail.com wrote: Thinking more closely your problem, I think I know what you need. You try to avoid writing *many* lines like this; sParameterNameArray = NEW String[MAXIMUM_CSV_PARAMETERS] That is caused by broken object design, usually because you need to use old code which had different approach than OO. I have had same problems. I attached my suggestion how to implement this (IncludeProblem-0.0.1.tar.gz). Is it working solution? Jussi On 9 June 2012 16:18, Jussi Lahtinen jussi.lahti...@gmail.com wrote: C thrives on #include without showing signs of design problems. Yes, I know, I wasn't talking about C, I was talking about object oriented language, Gambas. Tens of thousands of external lines of code can be pulled in with a dozen #include statements, leaving the code completely manageable, readable and a lot more powerful than any other competing method. Yes, but you use #include with libraries, not with programs that aren't designed for that. Or you have design problem. For example, in module_a.module you might have ... and in a file called initialise_csv_variables.include it would contain: PRIVATE WordMarker1 AS Integer : '200 further variable declarations and initialisations : PRIVATE sParameterNameArray AS NEW String[MAXIMUM_CSV_PARAMETERS] PRIVATE sParameterValueArray AS NEW String[MAXIMUM_CSV_PARAMETERS] The #include files can contain any amount of well trodden proven gambas code which is maintained in only one file. So, basically you would add module/class called initialise_csv_variables, and you use that module/class in modules a and b. I will argue that adding C like #include functionality saves a ton of work in mega programs which are already working well, but now needs to be expanded even further. I don't understand how. You would still need to write that initialise_csv_variables.include file, you could as well write it as module/class. Jussi __ This message has been checked for viruses and spam by Armourplate http://www.armourplate.com, the email archiving, anti virus and anti spam service from Corpex. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user __ This message has been checked for viruses and spam by Corpex using the ArmourPlate Anti Virus and Anti Spam Scanning Service. To find out more and see our email archiving service see http://www.armourplate.com or call Corpex on UK 0845 050 1898. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] crypt.md5 vs md5sum
hello, i noticed a difference between crypt.md5 function and command md5sum. Both give different results echo password | md5sum is different from crypt.md5(password) why is that? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 246 in gambas: Random DrawingArea is being drawn error when using new gridview
Comment #4 on issue 246 by kokok...@gmail.com: Random DrawingArea is being drawn error when using new gridview http://code.google.com/p/gambas/issues/detail?id=246 In fact, changing visibility inside the data handler may crash the application. But as soon as it closes with error, stack panel is hidden. Last message in console is: QWidget::repaint: Recursive repaint detected -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] A quicky on profiling
I note that the average durations have been commented out of the profiling UI. Is there any reason for that? I only ask because I'm looking at a project here that makes over 40,000 calls to a routine and obviously that represents a considerable shunk of the execution time. Averages would suit much better. cheers Bruce -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
Hi Bruce, The broadest difference between #include (and its cousins #define, #undefine, #ifdef, #ifndef and #endif) and OO programming is that #include is a preprocessing command that gets to work long before a program gets to run. Using #include and its cousins, the idea is to build big readable programs with the least amount of physical typing effort when used responsibly. I think if it gets pitched as a battle between OO and non-OO programming, the debate is still probably winnable by providing lots of examples where OO programming leads to more work. Basically if all the #include functionality is performed in OO, you got to keep track of objects, and as programs get more complex the syntax will grow which is excessive physical typing and leads to this method of writing programs: object1.object_within_object.object_within_that_object.method(parameters1,..) This can also turn into run time expense by having to dereference stuff. [I guess that will in turn let the OO camp will post ample examples of programming that leads to confusion where a use a of a #include is used irresponsibly and has altered programming behaviour in unexpected ways. This in turn will allow the #include camp to post more example where OO behaviour leads to unexpected results confusing the programmer. Lets not go there!! ] Instead of that, it is simpler to put aside the OO v non-OO debate and focus on merits of gambas having pre-processing functions as a subject in its own right. A #include that bolts together programs as needed. When the run button is pressed on the IDE, the idea is that gambas will do the pre-processing and stitch together the files to make a giant file save it to disk as say file_name_to_run.expanded and then run that expanded file. When debugging, there will have to be some kind of option to switch between expanded version of the file and non-expanded version of the file. Any chance of sneaking in this pre-processing productivity enhancing feature? :-) On Sat, 2012-06-09 at 23:30 +0930, Bruce wrote: On Sat, 2012-06-09 at 13:51 +0100, jm wrote: On Sat, 2012-06-09 at 02:45 +0300, Jussi Lahtinen wrote: Maybe I'm just too tired, but I don't understand the point. Jussi, maybe I'm just too old as well as tired, but I can't grasp the point of taking an object oriented language and trying to jam an old (albeit well tested) non-OO concept into it. Joe, I am having some degree of trouble really understanding your value proposition. Especially the last post (which I have snipped in entirety, sorry). All I can grasp from reading it several times is that you feel that #include has some productivity value in providing what we call inheritance and polymorphism. I am not trying to put you down but I really can't grasp the ideas of thousands of parameters and hundreds of initialisations. { We, here at paddys-hill have tens of clients (well a few tens anyway ) that use a dozen or so applications, the code base encompasses around two hundred or so classes and modules organized into around thirty components and libraries. The total code size is less than 25,000 lines and I would guess that probably 60% or more of that is comments. At a guess, the largest method calls would be 7 parameters, and they are just convenience calls to a class constructor. By far the largest chunk of code is a library that downloads the text of around 40 web pages a day (about 40,000 text lines), parses them, normalises them and uploads them to the central database. I just checked and it's 6345 lines of code, so about 2400 working lines, which are mainly involved in text parsing (things like discerning Mac Donald and MacDonald or Miss Jane O'Donnel and Ms Jan ODonnell are the same names). The primary application that uses this library runs once a day and adds about 1200 rows to a central postgresql database and can update anywhere between 2 and 10,000 other rows. It takes about 10 minutes. The central database has just over 3.2 million rows, the clients each have a sub-mirrored database of who-knows-what size.} Anyway, I hope you can see from the above {} that those numbers you are using are fairly un-emotive to the reader. regards Bruce -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user __ This message has been checked for viruses and spam by Armourplate http://www.armourplate.com, the
[Gambas-user] Possible bug in textarea foreground color
Hi, Try to exec this sample and you can see the text inside textarea is not green. If you select this, then it changes to green. [System] OperatingSystem=Linux Kernel=3.2.0-24-generic Architecture=x86_64 Memory=4046444 kB DistributionVendor=Ubuntu DistributionRelease=Ubuntu 12.04 LTS Desktop=Gnome [Gambas 2] Version=2.23.1 Path=/usr/bin/gbx2 [Gambas 3] Version=3.2.0 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.8.1 GTK+=libgtk-x11-2.0.so.0.2400.10 Regards, Ricardo Díaz -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] chart class like charts in excel or libre office calc
i want to ask if there is a chart class to get some data and make charts ? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] sorry, no more linux avaibable
I have to stay outside my usuable environment for a while. I will come back to linux and for all to gambas, but please quitt me from the mailing list for a time - I have other problems - I dont figure out how to do it All my love and regards to you -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] crypt.md5 vs md5sum
You should use echo -n to prevent it from printing a /n character. But anyway, they are different. -Original Message- From: Demosthenes Koptsis demosthen...@gmail.com Date: Mon, 11 Jun 2012 11:59:10 To: mailing list for gambas usersgambas-user@lists.sourceforge.net Reply-To: mailing list for gambas users gambas-user@lists.sourceforge.net Subject: [Gambas-user] crypt.md5 vs md5sum hello, i noticed a difference between crypt.md5 function and command md5sum. Both give different results echo password | md5sum is different from crypt.md5(password) why is that? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
I think this; object1.object_within_object.object_within_that_object.method(parameters1,..) can be avoided with good object design. I still can't see real usage for #include. Also should be noticed that new keywords are justified only if they have general usage. But after all this is decision of Benoit, whether he sees usage for #include or not. Jussi On 11 June 2012 11:10, jm j...@martindale-electric.co.uk wrote: Hi Bruce, The broadest difference between #include (and its cousins #define, #undefine, #ifdef, #ifndef and #endif) and OO programming is that #include is a preprocessing command that gets to work long before a program gets to run. Using #include and its cousins, the idea is to build big readable programs with the least amount of physical typing effort when used responsibly. I think if it gets pitched as a battle between OO and non-OO programming, the debate is still probably winnable by providing lots of examples where OO programming leads to more work. Basically if all the #include functionality is performed in OO, you got to keep track of objects, and as programs get more complex the syntax will grow which is excessive physical typing and leads to this method of writing programs: object1.object_within_object.object_within_that_object.method(parameters1,..) This can also turn into run time expense by having to dereference stuff. [I guess that will in turn let the OO camp will post ample examples of programming that leads to confusion where a use a of a #include is used irresponsibly and has altered programming behaviour in unexpected ways. This in turn will allow the #include camp to post more example where OO behaviour leads to unexpected results confusing the programmer. Lets not go there!! ] Instead of that, it is simpler to put aside the OO v non-OO debate and focus on merits of gambas having pre-processing functions as a subject in its own right. A #include that bolts together programs as needed. When the run button is pressed on the IDE, the idea is that gambas will do the pre-processing and stitch together the files to make a giant file save it to disk as say file_name_to_run.expanded and then run that expanded file. When debugging, there will have to be some kind of option to switch between expanded version of the file and non-expanded version of the file. Any chance of sneaking in this pre-processing productivity enhancing feature? :-) On Sat, 2012-06-09 at 23:30 +0930, Bruce wrote: On Sat, 2012-06-09 at 13:51 +0100, jm wrote: On Sat, 2012-06-09 at 02:45 +0300, Jussi Lahtinen wrote: Maybe I'm just too tired, but I don't understand the point. Jussi, maybe I'm just too old as well as tired, but I can't grasp the point of taking an object oriented language and trying to jam an old (albeit well tested) non-OO concept into it. Joe, I am having some degree of trouble really understanding your value proposition. Especially the last post (which I have snipped in entirety, sorry). All I can grasp from reading it several times is that you feel that #include has some productivity value in providing what we call inheritance and polymorphism. I am not trying to put you down but I really can't grasp the ideas of thousands of parameters and hundreds of initialisations. { We, here at paddys-hill have tens of clients (well a few tens anyway ) that use a dozen or so applications, the code base encompasses around two hundred or so classes and modules organized into around thirty components and libraries. The total code size is less than 25,000 lines and I would guess that probably 60% or more of that is comments. At a guess, the largest method calls would be 7 parameters, and they are just convenience calls to a class constructor. By far the largest chunk of code is a library that downloads the text of around 40 web pages a day (about 40,000 text lines), parses them, normalises them and uploads them to the central database. I just checked and it's 6345 lines of code, so about 2400 working lines, which are mainly involved in text parsing (things like discerning Mac Donald and MacDonald or Miss Jane O'Donnel and Ms Jan ODonnell are the same names). The primary application that uses this library runs once a day and adds about 1200 rows to a central postgresql database and can update anywhere between 2 and 10,000 other rows. It takes about 10 minutes. The central database has just over 3.2 million rows, the clients each have a sub-mirrored database of who-knows-what size.} Anyway, I hope you can see from the above {} that those numbers you are using are fairly un-emotive to the reader. regards Bruce -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond.
Re: [Gambas-user] crypt.md5 vs md5sum
Le lundi 11 juin 2012 15:39:16 Sebi a écrit : You should use echo -n to prevent it from printing a /n character. But anyway, they are different. -Original Message- From: Demosthenes Koptsis demosthen...@gmail.com Date: Mon, 11 Jun 2012 11:59:10 To: mailing list for gambas usersgambas-user@lists.sourceforge.net Reply-To: mailing list for gambas users gambas-user@lists.sourceforge.net Subject: [Gambas-user] crypt.md5 vs md5sum hello, i noticed a difference between crypt.md5 function and command md5sum. Both give different results echo password | md5sum is different from crypt.md5(password) why is that? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user I've already got this problem too. That's because if you don't give any prefix, a random one is used. (see http://gambasdoc.org/help/comp/gb.crypt/crypt/md5?env3) But I still don't undersand why... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] crypt.md5 vs md5sum
even i set a prefix the result is different. and i dont know what prefix to use to have the same result with md5sum? Στις 11/6/2012 18:51, ο/η Adrien Prokopowicz έγραψε: I've already got this problem too. That's because if you don't give any prefix, a random one is used. (see http://gambasdoc.org/help/comp/gb.crypt/crypt/md5?env3) But I still don't undersand why... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
Hi Folks, Thought I would chime in on this issue. As I see it include is a pre-processing directive. It simply replaces the #include statement with the contents of an external file. This is a project management consideration and not a programming paradigm i.e. OOP, Functional, Procedural, etc.. The include statement in C/C++ was intended to allow libraries of code to be pulled into the current project. Allowing the developer to split a large project up into smaller, more manageable files. While it is used to include header files for libraries, it can be used to include any text file. It is not a part of the formal language in C/C++. But is a compiler re-processor. Contrast this to Ada's use of packages. Package Specifications in Ada at first seem similar to C header and library files. The major difference is that packages are a formal part of the Ada language and as such the compiler knows details about what is in the file and how to use that information. It is not simply included as text the current compilation. In fact many Ada compilers use the package specification file to locate and bind to only the information needed from the package body and any further dependent data/functions those dependencies may need. So the question is not one of programming paradigm or language constructs when it comes to includes. But one of file management. Frankly, I'd love to see something more inline with Ada Packages placed into Gambas. Then you could create something that looked like C/C++ includes but would be much more powerful! However, from a Basic Language stand-point, I don't think packages are very Basic-like... As for includes, I think this could be a useful tool for some but wonder why simply refactoring the program into more manageable class' wouldn't give a better solution. IMHO, doing so would make the project more maintainable over the long haul On Mon, Jun 11, 2012 at 8:42 AM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: I think this; object1.object_within_object.object_within_that_object.method(parameters1,..) can be avoided with good object design. I still can't see real usage for #include. Also should be noticed that new keywords are justified only if they have general usage. But after all this is decision of Benoit, whether he sees usage for #include or not. Jussi On 11 June 2012 11:10, jm j...@martindale-electric.co.uk wrote: Hi Bruce, The broadest difference between #include (and its cousins #define, #undefine, #ifdef, #ifndef and #endif) and OO programming is that #include is a preprocessing command that gets to work long before a program gets to run. Using #include and its cousins, the idea is to build big readable programs with the least amount of physical typing effort when used responsibly. I think if it gets pitched as a battle between OO and non-OO programming, the debate is still probably winnable by providing lots of examples where OO programming leads to more work. Basically if all the #include functionality is performed in OO, you got to keep track of objects, and as programs get more complex the syntax will grow which is excessive physical typing and leads to this method of writing programs: object1.object_within_object.object_within_that_object.method(parameters1,..) This can also turn into run time expense by having to dereference stuff. [I guess that will in turn let the OO camp will post ample examples of programming that leads to confusion where a use a of a #include is used irresponsibly and has altered programming behaviour in unexpected ways. This in turn will allow the #include camp to post more example where OO behaviour leads to unexpected results confusing the programmer. Lets not go there!! ] Instead of that, it is simpler to put aside the OO v non-OO debate and focus on merits of gambas having pre-processing functions as a subject in its own right. A #include that bolts together programs as needed. When the run button is pressed on the IDE, the idea is that gambas will do the pre-processing and stitch together the files to make a giant file save it to disk as say file_name_to_run.expanded and then run that expanded file. When debugging, there will have to be some kind of option to switch between expanded version of the file and non-expanded version of the file. Any chance of sneaking in this pre-processing productivity enhancing feature? :-) On Sat, 2012-06-09 at 23:30 +0930, Bruce wrote: On Sat, 2012-06-09 at 13:51 +0100, jm wrote: On Sat, 2012-06-09 at 02:45 +0300, Jussi Lahtinen wrote: Maybe I'm just too tired, but I don't understand the point. Jussi, maybe I'm just too old as well as tired, but I can't grasp the point of taking an object oriented language and trying to jam an old (albeit well tested) non-OO concept into it. Joe, I am having some degree of trouble really understanding your value
Re: [Gambas-user] crypt.md5 vs md5sum
The crypt algorithm is encoded in the crypt string, so you do not need to specify it. http://gambasdoc.org/help/comp/gb.crypt/crypt/check?v3 So, I don't think you can use it to get clear MD5 sums. But you can use this; Dim sPassword As String Dim sCheckSum As String sPassword = MyPassWord Shell echo -n ' sPassword ' | md5sum To sCheckSum sCheckSum = Left$(sCheckSum, 32) Print sCheckSum Jussi On 11 June 2012 18:55, Demosthenes Koptsis demosthen...@gmail.com wrote: even i set a prefix the result is different. and i dont know what prefix to use to have the same result with md5sum? Στις 11/6/2012 18:51, ο/η Adrien Prokopowicz έγραψε: I've already got this problem too. That's because if you don't give any prefix, a random one is used. (see http://gambasdoc.org/help/comp/gb.crypt/crypt/md5?env3) But I still don't undersand why... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https
Updates: Status: WontFix Comment #8 on issue 236 by benoit.m...@gmail.com: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 It's your idea! :-) You told me that SSL_library_init() must be called, but that libcurl does not do it. I just suggested to call it directly from Gambas. But I can't add that call directly in the gb.net.curl component, because it does not depend on libssl. Just libcurl. Apparently this is a bug in libcurl, so it may be fixed in future release. Don't you think so? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
As I see it include is a pre-processing directive. It simply replaces the #include statement with the contents of an external file. This is a project management consideration and not a programming paradigm i.e. OOP, Functional, Procedural, etc.. I agree, but I think with OOP, C style #include is obsolete management choice. The include statement in C/C++ was intended to allow libraries of code to be pulled into the current project. Here is the main point. In Gambas we already have Extern, Export etc commands for external libraries, whether they are written with Gambas, C or whatever. Allowing the developer to split a large project up into smaller, more manageable files. With OOP I don't think you need to do that with files, you do it with classes. But maybe someone want to write code with non-OO style. Contrast this to Ada's use of packages. I don't know Ada, so I cannot say anything it being useful in Gambas. As for includes, I think this could be a useful tool for some but wonder why simply refactoring the program into more manageable class' wouldn't give a better solution. IMHO, doing so would make the project more maintainable over the long haul I agree. Jussi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
Hi Jussi, I don't think that OOP by itself replaces #includes. No more than OOP would replace SVN, CVS, Merc, etc.. Look at any reasonably sized C/C++ project and you'll see plenty of includes. I think the real issue here is the language choice. Gambas provides file management for it's projects. Using Gambas you can get file management for free by splitting a project into many classes which in Gambas results in the IDE managing these as different files. This is not necessarily the case with other OOP languages. So I think we agree on #includes not being the best solution for file management under Gambas, however, I think our reasoning differs... I'd also think that if an old project has grown to the point that someone is looking for a way to manage it's files, then it has matured to a point where refactoring the program would result in better long term management of the project. On Mon, Jun 11, 2012 at 10:38 AM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: As I see it include is a pre-processing directive. It simply replaces the #include statement with the contents of an external file. This is a project management consideration and not a programming paradigm i.e. OOP, Functional, Procedural, etc.. I agree, but I think with OOP, C style #include is obsolete management choice. The include statement in C/C++ was intended to allow libraries of code to be pulled into the current project. Here is the main point. In Gambas we already have Extern, Export etc commands for external libraries, whether they are written with Gambas, C or whatever. Allowing the developer to split a large project up into smaller, more manageable files. With OOP I don't think you need to do that with files, you do it with classes. But maybe someone want to write code with non-OO style. Contrast this to Ada's use of packages. I don't know Ada, so I cannot say anything it being useful in Gambas. As for includes, I think this could be a useful tool for some but wonder why simply refactoring the program into more manageable class' wouldn't give a better solution. IMHO, doing so would make the project more maintainable over the long haul I agree. Jussi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
On Mon, 11 Jun 2012, Jussi Lahtinen wrote: As I see it include is a pre-processing directive. It simply replaces the #include statement with the contents of an external file. This is a project management consideration and not a programming paradigm i.e. OOP, Functional, Procedural, etc.. I agree, but I think with OOP, C style #include is obsolete management choice. The include statement in C/C++ was intended to allow libraries of code to be pulled into the current project. Here is the main point. In Gambas we already have Extern, Export etc commands for external libraries, whether they are written with Gambas, C or whatever. Allowing the developer to split a large project up into smaller, more manageable files. With OOP I don't think you need to do that with files, you do it with classes. But maybe someone want to write code with non-OO style. Contrast this to Ada's use of packages. I don't know Ada, so I cannot say anything it being useful in Gambas. As for includes, I think this could be a useful tool for some but wonder why simply refactoring the program into more manageable class' wouldn't give a better solution. IMHO, doing so would make the project more maintainable over the long haul I agree. Jussi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, I first didn't want to interfere but there recently was a related thread here. Benoît stated back then that only the really needed features will be implemented in the Gambas Preprocessor and scolded me for my proposition to use the CPP instead. Nonetheless, if you really want to use the #include directive and other c-style things in your own dark chamber, nobody would care if you maintain your sources split, merge them via #include and then push them through the gbc3. As indirectly quoted above, it is not a solution for future gambas and I would strongly prefer OO over this but if you need it, why not... Uhh, too late to respond to Randall's last post but I totally recommend his last point. Regards, Tobi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
Gambas provides file management for it's projects. Using Gambas you can get file management for free by splitting a project into many classes which in Gambas results in the IDE managing these as different files. This is not necessarily the case with other OOP languages. OK, now I think I understand your point. In some language all classes could be in one big file, then I agree that #include would be useful. So I think we agree on #includes not being the best solution for file management under Gambas, however, I think our reasoning differs... I'd also think that if an old project has grown to the point that someone is looking for a way to manage it's files, then it has matured to a point where refactoring the program would result in better long term management of the project. Yeah, I think we completely agree now, and I think we should stop flooding this list with this topic until Benoit makes his decision. Jussi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] C like #include for Gambas
With apologies to all-who-know-more-about-this-than-me (or just all)... Joe, you have a problem with managing a growing Gambas codebase and you think having an #include method in Gambas would help you cope. We are agreed that if it were added then it would operate before the compiler kicks in to make code for the interpreter. That makes me ask the question; why reinvent the wheel? You already have at your disposal a program which fully understands what to do with #include (and all the other pre-processor directives which have been mentioned). Have you tried it out yet? You have another program which is ideally suited to managing the files for large text file processing projects. Why not have a go at knocking up a project definition file using all the #include and #define and #ifdef directives you need. Run that through the C pre-processor, maybe under the direction of a suitable makefile and see if you can create a Gambas project which the ide can then load (for checking?) and compile? This should work just as well for the forms as for the code as it is all just text files in the project. Could that work for you? Richard -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Question on distribution of Gambas3 libraries
Current situation: If a distribute an application to end users that contain a dependent Gambas3 library I need to make these end users aware of the fact that they first need to install this library or my application would not install. This somehow seems to confuse some end users. My question to the development team: Is it possible to make packaging in Gambas possible in such a way that, in case a Gambas library is used by a project, some sort of multi application package is made that contains both the application and the dependend library? This so that when end users installs the application, the library contained in the package is installed before the application (but all in one install). I'm not a packager and have no idea on these matters, but instaling Gambas (from my point of view) seems to be some sort of multi package as well. I.M.H.O this would enhance the ease of distributing applications to end users a lot and would using Gambas libraries in distributed applications a lot easier. Willy -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 236 in gambas: gb.net.curl fails to connect using https
Comment #9 on issue 236 by sebi...@gmail.com: gb.net.curl fails to connect using https http://code.google.com/p/gambas/issues/detail?id=236 I'm really confused, first because no one else seems to be affected by this bug. And second because curl (a terminal wrapper for libcurl) seems works fine! libcurl apparently depends on openssl, which provides libssl. Could a call to SSL_library_init() be added only when using https? Even tough libcurl should do it if it detects an https connection is requested, calling it would prevent this bug from occurring and hurt nobody. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to display a VU meter
Hi all, I'm currently work on my multimedia software I have got it working with both Mplayer and VLC. Is there a simple way to write code to work in with the desktop sound mixer to display a VU meter? I need to read both input and output settings to generate a visual display. My aim is monitor sound levels been sent out to my sound card from Mplayer or VLC. I'm looking around for example on how to do this but not found any so far. I also would like find out more about plugging in and out of sound cards from Gambas? Grant -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to display a VU meter
If you were using Jack then I would suggest you simply use an existing meter such as meterbridge (http://plugin.org.uk/meterbridge/) and perhaps embed it in you Gambas program's window. That would give you the choice of DPM, analogue VU or Peak so you could pick whichever suites your layout. If you are using plain Alsa, or even Pulse (see how I managed to repress the shudder?), there may be other existing solutions you could apply in the same way. If you must re-invent the wheel in Gambas then it would be easiest just to normalise the audio data, say in the range 0-1, and send representative updates to something like a progress bar (or two, for stereo). That would give you something to look at while you are hacking out a suitable data snooping and sub-sampling method. Remember that you will be getting thousands of samples per second, but the refresh rate (or the event loop) will be much less often and you might get away with averaging a few hundred milliseconds worth. It is entirely up to you whether you want to emulate a real measurement indicator (such as PPM or VU) or just have something which looks good. In the end, when you have got the right algorithm for your purposes, you can dump the progress bars and work on something prettier. Richard On 12/06/2012, Grant Taylor zl1...@yahoo.com wrote: Hi all, I'm currently work on my multimedia software I have got it working with both Mplayer and VLC. Is there a simple way to write code to work in with the desktop sound mixer to display a VU meter? I need to read both input and output settings to generate a visual display. My aim is monitor sound levels been sent out to my sound card from Mplayer or VLC. I'm looking around for example on how to do this but not found any so far. I also would like find out more about plugging in and out of sound cards from Gambas? Grant -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user