Re: [Gambas-user] The program 'Embedder' received an X Window System error.
On 9/25/12, Benoît Minisini gam...@users.sourceforge.net wrote: Anyway, don't use embedder, it will be removed as it is a X11 specific protocol that won't work on Wayland and is not really useful. Oh, dear... We've used embedded apps quite a bit, stuff like cfdisk, gparted and others. Oh well... Regards, Joe1962 -- 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] The program 'Embedder' received an X Window System error.
On 9/25/12, Benoît Minisini gam...@users.sourceforge.net wrote: Le 25/09/2012 20:35, Jose J. Rodriguez a écrit : On 9/25/12, Benoît Minisini gam...@users.sourceforge.net wrote: Anyway, don't use embedder, it will be removed as it is a X11 specific protocol that won't work on Wayland and is not really useful. Oh, dear... We've used embedded apps quite a bit, stuff like cfdisk, gparted and others. Oh well... Regards, Joe1962 Don't panic, Wayland is not out. :-) And a lot of other X11 stuff will break. But maybe the embedding protocol will continue to work in X-Wayland? Ok, I promise not to panic just yet... ;) Regards, Joe1962 -- 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] Create an application with root/sudo previlege
On 3/21/12, sundar_ima sundar_...@rediffmail.com wrote: I am creating an application which calls bash scripts many time with sudo/root privilege. Though i can execute bash script with either kdesu or gksu, it asks password many times. Instead it would be nice if any one help me on opening an application with sudo/root access. I have searched in google and found only this link on the subject http://old.nabble.com/Re%3A-Gambas-app-run-as-root-p29871170.html http://old.nabble.com/Re%3A-Gambas-app-run-as-root-p29871170.html . However when i tried (last example by Joe1962) the example, i got an error in Global.root = TRUE line. In AutoIT adding a line #include Admin will solve the problem. -- Sorry, the example was not the whole app. You need a Global class with variable named root and defined as boolean. It was used to know when the app was already running as root. I cannot be more clear, or send the whole code right now because I just lost most of my stuff due to a hard drive failure. regards, Joe1962 -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] some questions of: Struct
On 1/16/11, nando nand...@nothingsimple.com wrote: 4) This is similar to RECORD in VB. It is like Type in VB6. For example: Private Type MYSTRUCT ID As String Name As String End Type Then later you would do: Dim MyPerson As MYSTRUCT MyPerson.ID = 012 MyPerson.Name = Joe1962 Regards, Joe1962 -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas bug tracker
On 1/11/11, Benoît Minisini gam...@users.sourceforge.net wrote: Really? What is your country? Cuba. I had a few gambas and bash projects on googlecode myself, but haven't been able to manage them for a long time now. So I moved to www.berlios.de for my development stuff. Regards, Joe1962 -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas bug tracker
On 1/2/11, Benoît Minisini gam...@users.sourceforge.net wrote: Now, from the website, you can go to the new Gambas bug tracker located on code.google.com. I'd like to have a bug tracker written in Gambas, but for now, let's use the Google one. Too bad google code has been blocking my country for some time now. Oh well... Regards, Joe1962 -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas app run as root
On 10/1/10, IMP Technologies - Tajinder Singh imp.tsi...@gmail.com wrote: I have created a small basic interface for Fedora to change Plymouth theme. But as changing theme requires to run some commands as root, I would like to ask for root password before starting the application. Similarly whenever we run 'system-config-boot' or other software that requires root privileges. Here's how I did it in the Main class of a system utility that manages the kernel cpufreq settings: CODE ' Gambas module file PUBLIC SUB Main() DIM Ret AS String IF System.User.Id 0 THEN EXEC [which, gksu] TO Ret IF InStr(Ret, gksu) THEN EXEC [gksu, Application.Path / vcpufreq.gambas] ELSE EXEC [which, kdesu] TO Ret IF InStr(Ret, kdesu) THEN EXEC [kdesu, Application.Path / vcpufreq.gambas] ELSE PRINT No gksu or kdesu available (try vcpufreq in a root terminal)... ENDIF ENDIF QUIT ELSE Global.root = TRUE ENDIF FMain.Show ' Show main form... END /CODE Regards, Joe1962 -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas3 build issues
On 6/3/10, Benoît Minisini gam...@users.sourceforge.net wrote: hum... what is your version of gcc ? struct _GtkPrinter { GObject parent_instance; GtkPrinterPrivate *GSEAL (priv); }; it seem that the compilator don't like the '(priv)' I would have said that gtk+ version is too old instead. That's what I would have figured, but I don't know any C either. Dang! A gtk+2 upgrade tends to break a lot of stuff. VL6SOHO is still in development, but follows Slackware 12.2, Slackware 13.0 comes with 2.14.7, I wonder if that would do it? I have installed Slack13 packages on VL6SOHO before with little trouble, but then a system library is something else altogether. Regards, Joe1962 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas3 build issues
So I finally decided to check out Gambas3 from svn and give it a go, right after the new structure implemention announcement. However, I first had to download and build the latest versions of libtool, autoconf and automake, before reconf-all worked. Still, after all that, make fails, seemingly on something gtk related. I am using VectorLinux 6 SOHO Beta 4, which has gtk+2-2.12.9, does it need to be a newer version too? After attempting the more complicated build script we use, I tried a simple ./configure --prefix=/usr, then make.Here's the tail of the make log, just in case: In file included from gprinter.h:26, from cprinter.h:28, from cpaint_impl.cpp:37: ./gtkprinter.h:94: error: expected ';' before '(' token cpaint_impl.cpp: In function 'void draw_text(GB_PAINT*, bool, const char*, int, float, float, int)': cpaint_impl.cpp:621: warning: dereferencing type-punned pointer will break strict-aliasing rules cpaint_impl.cpp: In function 'void get_text_extents(GB_PAINT*, bool, const char*, int, GB_EXTENTS*)': cpaint_impl.cpp:661: warning: dereferencing type-punned pointer will break strict-aliasing rules make[5]: *** [cpaint_impl.lo] Error 1 make[5]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970/gb.gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/joe1962/packaging/VL60/0-sbbuilder/gambas3/2970/src/gambas3-2970' make: *** [all] Error 2 Regards, Joe1962 -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas3 build issues
On 6/2/10, Fabien Bodard gambas...@gmail.com wrote: hum... what is your version of gcc ? 4.2.3 Regards, Joe1962 -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas3 build issues
On 6/2/10, Fabien Bodard gambas...@gmail.com wrote: i've 4.4.3 ..; is there a change between this two version ... No idea, hopefully we will hear from others about what gcc versions have worked for them or not. Regards, Joe1962 2010/6/2 Jose J. Rodriguez joe1...@gmail.com: On 6/2/10, Fabien Bodard gambas...@gmail.com wrote: hum... what is your version of gcc ? 4.2.3 Regards, Joe1962 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas3 build issues
On 6/2/10, Charlie Reinl karl.re...@fen-net.de wrote: Am Mittwoch, den 02.06.2010, 21:28 +0200 schrieb Fabien Bodard: i've 4.4.3 ..; is there a change between this two version ... 2010/6/2 Jose J. Rodriguez joe1...@gmail.com: On 6/2/10, Fabien Bodard gambas...@gmail.com wrote: hum... what is your version of gcc ? 4.2.3 Regards, Joe1962 here i'v 4.2.4 on Ubuntu 8.04 LTS but gambas3 fails because libtool has not the newer version. on Mandriva 2010.0 gcc 4.4.1 and on Ubuntu 10.04 LTS gcc 4.4.3, both compile without problems. Well, if it takes a gcc update then I'm toast, that's pretty dangerous and entails recompiling other stuff with the new gcc, I think (like the kernel, for instance). Regards, Joe1962 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Structure support in Gambas 3
On 5/26/10, Benoît Minisini gam...@users.sourceforge.net wrote: Hi, I have just committed a new big internal change for Gambas 3 in revision #2970: structure support. Wow! That's cool! And I was just thinking this week that it might be about time for me to move up to G3... :D Regards, Joe1962 -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Trash
On 10/8/09, Matti math.e...@t-online.de wrote: Is there any way to move files and directories to the user's trash bin? Until someone implements the freedesktop.org trash specs on Gambas, you could try this: http://code.google.com/p/trash-cli/ Or a more involved general solution: http://freshmeat.net/projects/delsafe/ Regards, Joe1962 -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] kdesu vs gksu
On 5/18/09, Jesus Guardon jguar...@telefonica.net wrote: Yes, I know it may be a little off-topic, but the question is: I need to launch a process with root privileges from SHELL command in Gambas. Users of my application can have Gnome or KDE, so I don't know which command I must issue to get it to work. Is there a way to choose between either gksu o kdesu commands at runtime? I've figured it out if it could be something like: SHELL gksu | kdesu -u root 'some_command' or SHELL gksu -u root 'some_command' | kdesu -u root 'some_command' Here's what I do in the vl-hot-config utility: *** ' Gambas module file PUBLIC SUB Main() DIM MyProc AS Process DIM Ret AS String IF System.User.Id 0 THEN EXEC [which, kdesu] TO Ret IF InStr(Ret, kdesu) THEN EXEC [kdesu, Application.Path / vl-hot-config.gambas] ELSE EXEC [which, gksu] TO Ret IF InStr(Ret, gksu) THEN EXEC [gksu, Application.Path / vl-hot-config.gambas] ELSE PRINT No kdesu or gksu available (vl-hot-config needs to run as root)... ENDIF ENDIF QUIT ENDIF FMain.Show END *** Regards, Joe1962 -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Multiple TCP server sockets
On 2/19/09, Benoît Minisini gam...@users.sourceforge.net wrote: On 2/17/09, Benoît Minisini gam...@users.sourceforge.net wrote: Is there any way to get different TCP server objects with different ports to use a different socket object for read? I am trying to port my VB6 multiport communications server application to Gambas2 and (I think) I need something like that to get it to work. I would say yes. I see nothing that prevents from creating several SocketServer objects. That is not the issue, you can do that, but they all use the same socket_read sub. Or I my missing something here? Hem, you are right, I didn't notice. Internallly the Socket object knows which ServerSocket created it, but you don't have any access to it! As a workaround, I think you can use the port number to make the difference. I will look into that in the meantime. Maybe I will make a Server property in the Socket class to get the ServerSocket object creator. And I can add an optional argument to the Accep() method to define the event name of the created socket. That would be great! Thanks. Regards, Joe1962 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Multiple TCP server sockets
Is there any way to get different TCP server objects with different ports to use a different socket object for read? I am trying to port my VB6 multiport communications server application to Gambas2 and (I think) I need something like that to get it to work. Regards, Joe1962 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] ServerSocket application without Forms
On 1/28/09, Benoit Minisini gam...@users.sourceforge.net wrote: On mardi 27 janvier 2009, Jose J. Rodriguez wrote: Is it possible to use ServerSocket in an applciation without Forms? I have been placed all the code in the Main Module and though I get a connection, the _Connection event does not seem to fire. Of course. You just must not forget to specify the event name when instanciating the object: MyServerSocket = NEW ServerSocket AS ServerSocketEventName Doh! Thanks! Regards, Joe1962 -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] ServerSocket application without Forms
Is it possible to use ServerSocket in an applciation without Forms? I have been placed all the code in the Main Module and though I get a connection, the _Connection event does not seem to fire. Regards, Joe1962 -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Multiple instances of Gambas ...
On 11/4/08, Gareth Bult [EMAIL PROTECTED] wrote: I have 4 screens .. I start Gambas on screen 3 .. then gambas2 will work quite happily on screens 2,3 and 4 , but will give the dump as quoted if started on screen 1... although I'm sure it wasn't working on 2 and 4 earlier. FWIW, I just ran 2 instances of the Gambas2 IDE on virtual desktop (VD) 1, then 2 on VD2, then tried it the other way around, with no problems. Using Vector Linux 5.9.1 SOHO, KDE 3.5.9 and Gambas2-2.9. Regards, Joe1962 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user