Re: [Gambas-user] Upper left cell in a TableView
>TableView1[0, 0].Text = "FOO" that gives error > > From: Fabien Bodard> Subject: Re: [Gambas-user] Upper left cell in a TableView > To: mailing list for gambas users > > > Yes but you need to use the drawing event and drawing it by hand. It's not > a true cell but all .can be done Imagine that the treeview is based on > the gridview too. ?? > too complex! > From: Gianluigi > Subject: Re: [Gambas-user] Upper left cell in a TableView > To: mailing list for gambas users > Message-ID: >
[Gambas-user] Upper left cell in a TableView
It is possible to put some text in a tableview's upper left cell when both headers are set? -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to catch actions from a control used by a table's EdithWith
Hi: I need to catch the keypress event from a textbox used by the EdithWith method. This doesn't work: Sub txtEntry_KeyPress() Debug Key.Text Stop If Key.code = Key.up Then tblHoja.Save Try tblHoja.row -= 1 Endif End The keyPress event isn't raised in the Tableview control neither when editing. -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas-user Digest, Vol 122, Issue 14
Thanks Fabien. Please send me the file to estru3d at gmail.com as it gets scrubbed here. I need it to use it as a table with some cols for user input, some with fixed data, and some other to calculate what user inputs along with other data. I dont need to store any data outside the sheet itself. Pretty sure it can be done with a Tableview + EditWith , but I dont like its behaviour. Probably my fault. El 15/07/16 a las 06:05, gambas-user-requ...@lists.sourceforge.net escribió: I have an old code. But what is your needs ? GridView have the hability to manage borders and you can use the Interpreter class to manage interpretable code. SO what you need to do to have a simple spreedsheet is to find way to load and store spreadsheet datas and format. And then manage changing event to propagate the formulas recalculating. You store the formulas in a fomula property and the result in a value property. Maybe then to increase the speed of calculating you can manage a relation tree between cells formula. -- Fabien Bodard -- Saludos Ing. Martin P Cristia -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Grid with spreadsheet behaviour
Hi, just wondering if someone has it and want to share the code. -- Saludos Ing. Martin P Cristia -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas-user Digest, Vol 121, Issue 29
Update: After uninstall from Ubuntu Software, and reinstall from the PPA, this showed at startup: "Some components are missing: gb.qt5, gb.qt5.opengl, gb.qt5.webkit" So, tilted qt4 components (now present) and program run OK El 29/06/16 a las 06:36, gambas-user-requ...@lists.sourceforge.net escribió: > Got CDocumentation.ImplementAndNeed.1138 on startup, fresh > install. (martin p cristia) -- Saludos Ing. Martin P Cristia -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Got CDocumentation.ImplementAndNeed.1138 on startup, fresh install.
Hi: On a fresh install, I got the same error message as Lewis reported a few emails before but the workaround (turn on offline help) didn't worked. The box shows up when loading a program. After closing the box, my program loads, but don't run. All the QT4 components are gone (Project/Properties/Components) [System] Gambas=3.8.4 OperatingSystem=Linux Kernel=4.4.0-28-generic Architecture=x86_64 Distribution=Ubuntu 16.04 LTS Desktop=GNOME Theme=Gtk Language=es_ES.UTF-8 Memory=5843M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.801.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.49.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-EdOAfqbk6z DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=ubuntu GDM_LANG=es_AR GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=3244 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=es_ES.UTF-8 LANGUAGE=es_ES:en LC_ADDRESS=es_AR.UTF-8 LC_IDENTIFICATION=es_AR.UTF-8 LC_MEASUREMENT=es_AR.UTF-8 LC_MONETARY=es_AR.UTF-8 LC_NAME=es_AR.UTF-8 LC_NUMERIC=es_AR.UTF-8 LC_PAPER=es_AR.UTF-8 LC_TELEPHONE=es_AR.UTF-8 LC_TIME=es_AR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1153 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus -- Saludos Ing. Martin P Cristia -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Aquaris M10 Ubuntu Edition
Because is a tablet, I guess. Runs on: CPU MediaTek Quad Core MT8163A up to 1,5 GHz GPU MediaTek Mali-T720 MP2 up to 600 MHz https://www.bq.com/uk/aquaris-m10-ubuntu-edition?utm_source=web_bq_medium=banner_campaign=m10-ubuntu-sale-bq/ Le 23/06/2016 00:32, martin p cristia a ?crit : >> Is there a chance Gambas3 working on these? >> > No idea what Aquaris M10 is. And if it is Ubuntu, why would not Gambas > work on it? > -- Saludos Ing. Martin P Cristia -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Aquaris M10 Ubuntu Edition
Is there a chance Gambas3 working on these? -- Saludos Ing. Martin P Cristia -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Share code across projects
I have a module of utils I use on every project. It woud be great if I can use a single file for all of the as I'm always add some new stuff (or fix old one). This is for the IDE. -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Is gambas-dev list active?
Is the developers list active? I subscribed to it on 30/dec and haven't received a digest. -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] GL Vertex Buffer Objects
El 22/12/15 a las 04:43, gambas-user-requ...@lists.sourceforge.net escribió: > Le 21/12/2015 21:00, martin p cristia a ?crit : >> >Hi: >> >Is vertex array and VBO in the agenda for the OpenGL component? >> > > It needs a volunteer to implement it. > > -- Beno?t Minisini I can do the hard work, if you're ready to face 100 emails of questions -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] GL Vertex Buffer Objects
Hi: Is vertex array and VBO in the agenda for the OpenGL component? -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Rubik cube 0.1.7
New version has the Timer.Trigger - ed refreshing , and removed all Fasts. Since Fabien idea gave me some CPU %, I added shadows, with a customizable light position. Settings can be changed at FMain.Form_Open: Rounded = False ' True is slower (this is for rounded cubes) Paint3D.AntiAlias = False ' True is slower Paint3D.LightX = 900 Paint3D.LightY = 900' the position of the sun Paint3D.LightZ = 2000 Paint3D.UseShadow = True ' False is much faster -- Saludos Ing. Martin P Cristia -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741551=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] New soft at the farm
Thanks for all the critics, help improving things. Version 0.1.6 just uploaded to the Farm has the following changes: - .Refresh instead of a cached DrawingArea - prevents click while mixing - From starting position, mixing time (now displayed at the window's title after the mix) takes : 3.95 secs with Antialias = False (@ Fmain.graph_drawer) and 8.00 secs when set to True, what's yours? Cube actually fly here. (to Jussi) -> Sub modMotor3D.fRotateVector complains about receiving a Integer[] at this line when declared as Fast: matrizXmatriz(MatrizRVieja, MatrizRNueva, MatrizRotacion, 3) all matrices are declared as Float[], as well as in the multiplication routine -> Sub Paint3D.SortPaths makes Ubuntu pop a Unexpected Error message when Fast -ened, and program stops without making Gambas crash -- Saludos Ing. Martin P Cristia -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741551=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New soft at the farm
New 0.1.5 version pre-processor is 50% faster with some optimization and Fasts. -- Saludos Ing. Martin P Cristia -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741551=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] GB Rubik
Runs smooth in my i5, without GPU. Anyway, It's far from being optimized. With some Fast's over there it should be better. Also 25% of the load is the pre-processor and 75% it's the Paint itself, according to the profiler. =UTF-8 2015-11-19 22:58 GMT+01:00 Moviga Technologies <mov...@mykolab.ch>: >> >> Looks cool, but my i7 processor can't handle the load :) > too slow for me too > >> -- >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Saludos Ing. Martin P Cristia -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741551=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] New soft at the farm
It's a Rubik's cube. Hope you enjoy it! -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Illegal instruction when calling a C
> Le 11/11/2015 23:33, martin p cristia a ?crit : >> After removing 3.8.3 installed from sources with... >> >> $ ./reconf-all >> >> $ ./configure -C >> >> $ make >> >> $ sudo make install >> >> and reinstalling with... >> >> sudo apt-get install gambas3 >> >> problem was solved. Have no clue how. >> > You cannot both install gambas3 binary packages and compile it from > sources : they usually install the same files at the same places, so you > are actually poisoning your system. > > You can avoid that by carefully installing gambas3 from sources using an > installation prefix different from the one used by the packaging system. > > Or you can carefully uninstall every gambas3 package before compiling > and installing it from sources. > > Anyway, if you don't know what you are doing exactly, I'm not amaze that > you encounter such strange crashes. > > Regards, > > -- Beno?t Minisini I should try hard before posting here :/ I also ran Gambas as SUDO once. Funny things happened. -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Illegal instruction when calling a C library
After compiling and installing 3.8.3 (from 3.8.2): this call... modLibMatrix8.setCG(cgx, cgy, cgz) declared as... Public Extern setCG(x As Float, y As Float, z As Float) (no modifications in the C .so library, or in the gambas code) void setCG(double x, double y, double z) { // saving CG location for future use cg.x = x; cg.y = y; cg.z = z; } gives "Illegal instruction" [System] Gambas=3.8.3 OperatingSystem=Linux Kernel=4.2.0-18-generic Architecture=x86_64 Distribution=Ubuntu 15.10 Desktop=GNOME Theme=Gtk Language=es_ES.UTF-8 Memory=5843M [Libraries] Cairo=libcairo.so.2.11400.2 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.14.3 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.600.0 GTK+2=libgtk-x11-2.0.so.0.2400.28 GTK+3=libgtk-3.so.0.1600.7 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.49.0.0 Poppler=libpoppler.so.52.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.4.2 SDL=libSDL-1.2.so.0.11.4 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6oD2oA7o1a DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=es_ES GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=1967 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=es_ES.UTF-8 LANGUAGE=es_ES:en LC_ADDRESS=es_AR.UTF-8 LC_IDENTIFICATION=es_AR.UTF-8 LC_MEASUREMENT=es_AR.UTF-8 LC_MONETARY=es_AR.UTF-8 LC_NAME=es_AR.UTF-8 LC_NUMERIC=es_AR.UTF-8 LC_PAPER=es_AR.UTF-8 LC_TELEPHONE=es_AR.UTF-8 LC_TIME=es_AR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT4_IM_MODULE=xim QT_IM_MODULE=ibus QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/900 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/ XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Illegal instruction when calling a C
After removing 3.8.3 installed from sources with... $ ./reconf-all $ ./configure -C $ make $ sudo make install and reinstalling with... sudo apt-get install gambas3 problem was solved. Have no clue how. El 11/11/15 a las 19:24, gambas-user-requ...@lists.sourceforge.net escribió: > Le 11/11/2015 13:19, martin p cristia a ?crit : >> >After compiling and installing 3.8.3 (from 3.8.2): >> > >> >this call... >> > >> > modLibMatrix8.setCG(cgx, cgy, cgz) >> > >> >declared as... >> > >> > Public Extern setCG(x As Float, y As Float, z As Float) >> > >> >(no modifications in the C .so library, or in the gambas code) >> > >> >void setCG(double x, double y, double z) >> >{ >> >// saving CG location for future use >> >cg.x = x; >> >cg.y = y; >> >cg.z = z; >> >} >> > >> >gives >> > >> > "Illegal instruction" >> > > Can you provide a gdb backtrace of the crash? > > Did you just upgrade Gambas? > > -- Beno?t Minisini -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Can Gambas3 compiled program be reversed?
Can the xxx.gambas file be reverse engineered (or whatever has to be spelled) ?? Not that I care too much because my code pretends to be opensource but was wondering that. Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Debian installlation package problem
The .deb installer for my program creates odd folders at the mount point: /'/usr/lib' /'/usr/share/estru3d' as well as the correct folders: /usr/lib/ my lib.so /usr/share/estru3d/ my stuff here This is the output: Guardando archivo CHANGELOG. == CREANDO PAQUETE PARA UBUNTU / KUBUNTU / MINT Creando el directorio de construcción. Creando archivo de escritorio... Se están debianizando los fuentes. Creando paquete... cd '/home/martin/estru3d/ubuntu/estru3d-0.0.8' dpkg-buildpackage -d -rfakeroot dpkg-buildpackage: paquete fuente estru3d dpkg-buildpackage: versión de las fuentes 0.0.8-0ubuntu9 dpkg-buildpackage: distribución de las fuentes unstable dpkg-buildpackage: fuentes modificadas por martin <estr...@gmail.com> dpkg-buildpackage: arquitectura del sistema amd64 dpkg-source --before-build estru3d-0.0.8 fakeroot debian/rules clean dh_testdir dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dpkg-source -b estru3d-0.0.8 dpkg-source: información: usando el formato de fuente «1.0» dpkg-source: aviso: El número de versión sugiere cambios para Ubuntu, pero «Maintainer:» no tiene una dirección de correo de Ubuntu dpkg-source: aviso: El número de versión sugiere cambios para Ubuntu, pero no hay ningún campo «XSBC-Original-Maintainer» dpkg-source: información: construyendo estru3d en estru3d_0.0.8.orig.tar.gz dpkg-source: información: construyendo estru3d en estru3d_0.0.8-0ubuntu9.diff.gz dpkg-source: aviso: ignorando la eliminación del directorio «src/estru3d/.gambas» dpkg-source: información: construyendo estru3d en estru3d_0.0.8-0ubuntu9.dsc debian/rules build dh_testdir touch build-stamp /usr/bin/gbc3 -e -a -t -x src/estru3d OK gba3 -o 'src/estru3d/estru3d' src/estru3d fakeroot debian/rules binary dh_testdir dh_testroot dh_prep dh_installdirs touch install-stamp dh_testdir -i dh_testroot -i dh_installdocs -i dh_installchangelogs -i dh_install -i dh_installmenu dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i dpkg-deb: construyendo el paquete `estru3d' en `../estru3d_0.0.8-0ubuntu9_all.deb'. dh_testdir dpkg-genchanges >../estru3d_0.0.8-0ubuntu9_amd64.changes dpkg-genchanges: incluyendo el código fuente completo en la subida dpkg-source --after-build estru3d-0.0.8 dpkg-buildpackage: subida completa (se incluye la fuente original) signfile estru3d_0.0.8-0ubuntu9.dsc gpg: failed to create temporary file `/home/martin/.gnupg/.#lk0x11e50f0.martin-Aspire-V5-572G.3935': Permiso denegado gpg: /home/martin/.gnupg/secring.gpg: recurso de bloqueo de claves: Error general gpg: failed to create temporary file `/home/martin/.gnupg/.#lk0x11e9aa0.martin-Aspire-V5-572G.3935': Permiso denegado gpg: /home/martin/.gnupg/pubring.gpg: recurso de bloqueo de claves: Error general gpg: omitido «martin <estr...@gmail.com>»: clave secreta no disponible gpg: dpkg-sign.4HSDZCH_/estru3d_0.0.8-0ubuntu9.dsc: clearsign failed: clave secreta no disponible dpkg-buildpackage: fallo: fallo al firmar los ficheros «.dsc» y «.changes» La creación del paquete ha fallado. Package.MakeDebPackage.991: 'dpkg-buildpackage' ha fallado. -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Is Fast faster than C all the time ??
I've found that this transformation run 10M times take: Fast Public Sub rotar3d(punto As Punto3d, rotado As Punto3d) ' voy a probar otro sistema rotado.x = MatrizRotacion[0, 0] * punto.x + MatrizRotacion[0, 1] * punto.Y + MatrizRotacion[0, 2] * punto.z rotado.Y = MatrizRotacion[1, 0] * punto.x + MatrizRotacion[1, 1] * punto.Y + MatrizRotacion[1, 2] * punto.z rotado.z = MatrizRotacion[2, 0] * punto.x + MatrizRotacion[2, 1] * punto.Y + MatrizRotacion[2, 2] * punto.z End Sub 24.5 seg normal 1.65 seg with C 0.94 seg with Fast then, it is worthy to use C in math (double precision) routines at all? -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Circular references and allocations non freed
How? Can it be sent to the farm? Its huge and has help files, images, and a .so library 'No idea... Can you send your project? -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Circular references and allocations non freed
Me neither. Can't isolate it. It's a strange errror because those structs are created only once as global variables. In example: ' Gambas module file ' modEstru Public Struct datosSTRUCT magic As String proyecto As String descripcion As String totalnudos As Integer totalbarras As Integer totalcargasnudo As Integer totalcargasplacas As Integer totalplacas As Integer TotalGrupos As Integer totalapoyos As Integer totalsecciones As Integer totalSectores As Integer tipo As Integer totalcargasbarra As Integer unidades As Struct UnidadesSTRUCT End Struct Public datos As Struct DatosSTRUCT then, in the whole program (8 modules and 18 forms), they are used like this: modEstru.tipo = 3 or if modEstru.TotalGrupos = 0 then and so on AFAIK they are static variables I use for flags for something, how can they be re allocated thos amount of times??? or even worse, how can they be circular on any way??? El 12/09/15 a las 11:30, gambas-user-requ...@lists.sourceforge.net escribió: > I can't reproduce the problem with that code. Please try to isolate the > problem in small runnable project. > > > Jussi -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Circular references and allocations non freed
I hope so: It's like when I ask my wife to prepare breakfast and she tells me she'll do that after I set the bed, and I allways set the bed after breakfast. Still don't know why that comes out. Public Struct unidadesSTRUCT ' TODO long_nombre As String ' metr , cmtr, inch, feet peso_nombre As String ' kilo, tons, poun, kntw 'no guardo mas un "indice" , solo guardo los nombres en 4 carcteres ang_nombre As String ' grad , rads factorEG As Float '8 factorSUP As Float '8 factorDEN As Float '8 factorLONG As Float'8 factorANG As Float '8 agregue 40 bytes--> total 64 bytes End Struct Public Struct datosSTRUCT magic As String proyecto As String descripcion As String totalnudos As Integer totalbarras As Integer totalcargasnudo As Integer totalcargasplacas As Integer totalplacas As Integer TotalGrupos As Integer totalapoyos As Integer totalsecciones As Integer totalSectores As Integer tipo As Integer totalcargasbarra As Integer unidades As Struct UnidadesSTRUCT End Struct Public Struct flagsSTRUCT LogFile As File ' 0 = cerrado LogFileName As String Perfil As Integer Pausa As Boolean PerfilTipo As String LogOn As Boolean palabra_clave As String lenguaje As String parar_calculos As Integer carga As Integer barra As Integer nudo As Integer material As Integer dibujar As Boolean Calculando As Boolean CalculandoEnvolventes As Boolean CalculandoSismos As Boolean CalculadoSismos As Boolean checked As Boolean ' la uso para no chequearla muchas veces ayuda_ok As Boolean redibujar As Boolean calculo_tipo As Integer seccion As Integer dibujado As Boolean dibujable As Boolean calculado As Boolean CalculadoEnvolventes As Boolean resultado As Integer modo As Integer cambios As Boolean dibujando As Integer ayuda As String ayuda_mostrar As Boolean Estado As Integer ' control del texto en la linea de entrada Entrada As String EntradaLista As Boolean EntradaCancel As Boolean asistente_copletado As Integer asistente_actual As Integer MostrarDespuesCalculo As Integer OcultarCargas As Boolean End Struct Public flags As Struct FlagsSTRUCT Public datos As Struct DatosSTRUCT that is the code, they are not cross referenced or circular El 11/09/15 a las 17:41, gambas-user-requ...@lists.sourceforge.net escribió: >> >Public flags As Struct FlagsSTRUCT >> > >> >any ideas? >> > > Do you know what a circular reference is? > > -- -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Array Resize limits
'thi is the actual (just what's important) code Public MatRigEst As New Float[] Function calcular() As Integer Dim longo As Long, longo2 As Long ' longo = 18000 * 6 * 64000 ' = -1677934592 !!! 'correct value longo = CLong(18000) * 6 * 64000 ' = 691200 MatRigEst.Resize(longo) '-- no error Debug MatRigEst.Max ' -1677934592 !!! 'test For longo2 = 0 To longo MatRigEst[longo2] = 1000 '--- Out of bounds on first element Next End Function -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Array Resize limits
Hi: I need a huge array of Floats, use: longNumber = 4 ' 400M * 8bytes = 3.2GB Resize fArray[longNumber] ' this gives no error !!! fArray[1] = 1000 ' this gives Out of Bounds workaround? -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to pass a structure to a C routine
nevermind, just found out ;) -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to pass a structure to a C routine
Hi: I need to pass a structure to a C routine Public Struct punto3d x As Float Y As Float z As Float End Struct and call it like this: dim p1 as new punto3d fXnew = rotate3D(p1) how to declare? Public Extern rotate3D( point3D as ?) As Float and how to use the structure in C? struct punto3D { double x; double y; double z; }; double rotate3D( punto3D pp) . . . -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Since 3.8 open project with files in state changed
Same issue here. But they get saved. Its just an IDE problem. Also, sometimes, the cursor dissapear from the code. After clicking in another part of the IDE and comming back to the code part, it apears again. Strange behaviour. Run time works perfect. -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] New Gambas bug tracker (alpha)
Couldn't registeror my english is too bad -- Saludos Ing. Martin P Cristia -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas-user Digest, Vol 105, Issue 9
sure, my bad tnx El 04/02/15 a las 05:35, gambas-user-requ...@lists.sourceforge.net escribió: AFAIK, a package cannot install anything in the home folder of a user. Regards, -- Saludos Ing. Martin P Cristia -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas-user Digest, Vol 105, Issue 8
tnx, but neither work El 03/02/15 a las 21:45, gambas-user-requ...@lists.sourceforge.net escribió: The environment variable for the user's home folder is not $home, but $HOME. Maybe also try ~/.myprogram. Lee __ Artificial Intelligence is no match for natural stupidity. On 02/03/2015 07:30 PM, martin p cristia wrote: In the 8th tab of the Make Installation package, you can add Extra files; how to obtain the end-user home folder? I want to install my program in the usual folder, i.e.: /home/joe/.myprogram $home/.myprogram dont work. tnx -- Saludos Ing. Martin P Cristia -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] DEB packager
In the 8th tab of the Make Installation package, you can add Extra files; how to obtain the end-user home folder? I want to install my program in the usual folder, i.e.: /home/joe/.myprogram $home/.myprogram dont work. tnx -- Saludos Ing. Martin P Cristia -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas-user Digest, Vol 105, Issue 3
Great! putting in the extra files works, it also register the library automatically El 02/02/15 a las 10:09, gambas-user-requ...@lists.sourceforge.net escribió: Another option to create a .deb package only for the .so library: https://ubuntulife.wordpress.com/2010/08/05/crear-un-paquete-deb-manualmente/ Regards Julio 2015-01-31 20:21 GMT+01:00 T Lee Davidsont.lee.david...@gmail.com: I haven't actually done this, so I hope someone will correct me if I am wrong. But, I believe you would list your .so file in the Extra Files (step #8) section of the Make installation package process. Lee __ Artificial Intelligence is no match for natural stupidity. On 01/31/2015 10:19 AM, martin p cristia wrote: Hi: I need to include a .so library in the Installation package , how to do it? it needs to be at /usr/lib or it can reside at program folder? tnx -- Saludos Ing. Martin P Cristia -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to include a .so library in the .deb package?
Hi: I need to include a .so library in the Installation package , how to do it? it needs to be at /usr/lib or it can reside at program folder? tnx -- Saludos Ing. Martin P Cristia -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] estru3D
Have a look here http://whiteislandsoftware.com http://whiteislandsoftware.com I'm in touch with Willy already, tnx anyway -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] estru3d
Hi all: With the guys @ gambas-es.org forum, Jesus Guardon and Julio Sanchez, I made a port (from VB6) of a structural calculation program I started back in my university days. Now that is in the first beta, and translated to english, I feel the need to put it someplace else so its available for more people. Its open source with lots of room for improovment and I would love that some young guys get interest on it, as I'm getting rusty. Were is the best place to put the code and the executables? googlecode? sourceforge? (I read theres is going to be a Gambas farm??) were are more gambas3 programers? Thanks. This is a short presentation of it (my english is rusty too, sorry about it). Hope you like it. Feel free to leave your comments. http://youtu.be/pHFMEvdw5jM -- Saludos Ing. Martin P Cristia -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Send Mouse events to a given window
Hi: Hope everyone have a good 2015. It is possible to send mouse events (clicks) to a non-gambas (external) window? -- Saludos Ing. Martin P Cristia -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Language
I have a similar problem with the language. The program has been done in spanish, and so far its been translated to en_US. How can a german user run it in english if he dont have it installed in its system? -- Saludos Ing. Martin P Cristia -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Improve a Fast routine
Hi, is there any way to speed up this routine? Thanks Fast Public Function solucionarXgauss(x As Float[], ti As Float[], iOrden As Integer) As Integer ' OK GAMBAS Dim c1 As Float Dim i As Integer, j As Integer, a As Integer, b As Integer, ok As Integer Dim l As Integer, h As Integer, i1 As Integer, j1 As Integer Dim p1 As Float, iTest As Integer, nTest As Integer contador = 0 If iOrden = 0 Then Return 0 ok = True 'usa el metodo de Gauss 'debe ser cuadrada la matriz ' triangulacion itest = iorden / 100 For i = 0 To iOrden - 1 'This is to show the progress in the GUI FMain.debugInfo(Resolviendo el sistema , True, Format$(100 * i / iorden, 0.00) %) If debanda(i, i) 0 Then For j = i + 1 To iOrden - 1 If debanda(j, i) 0 Then c1 = - debanda(j, i) / debanda(i, i) For h = i To iOrden - 1 addbanda(j, h, c1 * debanda(i, h)) Next ti[j] = ti[j] + c1 * ti[i] End If Next Else Return l = i If i = iOrden - 1 Or l iOrden - 1 Then Return 0 ' el sistema es incompatible Do If debanda(l, i) 0 Then For h = 0 To iOrden - 1 addbanda(i, h, debanda(l, h)) Next ti[i] = ti[i] + ti[l] Exit Else l = l + 1 If i = iOrden - 1 Or l iOrden - 1 Then Return 0 ' el sistema es incompatible End If Loop End If Next ' sustitucion atrás x[iOrden - 1] = ti[iOrden - 1] / debanda(iOrden - 1, iOrden - 1) For i = iOrden - 2 To 0 Step -1 p1 = 0 For j = i + 1 To iOrden - 1 p1 = p1 - x[j] * debanda(i, j) Next p1 = ti[i] + p1 x[i] = p1 / debanda(i, i) Next Return ok End Function Fast Public Sub ABanda(ib As Integer, jb As Integer, valor As Float) modCalculus.MatRigEst[ib * modEstru.ordmatrig + jb] = valor Return End Sub DeBanda() and AddBanda() are similar -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to swich between translations when the program starts
I've transtaled a project to english, but couldnt find in the wiki about how to swich language in runtime. -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to save the contents of a drawingarea and a GLArea
Hi: I need to save the contents of a drawingarea and a GLArea as a JPG, how to do it? tnx -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to save the contents of a drawingarea and a GLArea
Thanks for the fast answer, Tobi. The program is very complex, and the user can opt for a Draw or OpenGL method to draw things (each with its own control), so I thing a better way could be to copy the entire window and clip the drawn rectangle area, if that is possible. On Mon, 10 Mar 2014, martin p cristia wrote: Hi: I need to save the contents of a drawingarea and a GLArea as a JPG, how to do it? AFAIK, there is no way to access the internal buffer of a DrawingArea. So what I do is: define a routine that fills my DrawingArea but is agnostic about the drawing device (i.e. uses Paint.Device to refer to it instead of a fixed object like the DrawingArea), let's call it DrawIt() and then I do: Public Sub dwgArea_Draw() DrawIt() End and the drawing will be in the DrawingArea whenever needed. If you want to save it you just do: Dim hPicture As New Picture(dwgArea.W, dwgArea.H) Paint.Begin(hPicture) DrawIt() Paint.End() hPicture.Save(...) Does that help you? If not, you should be more precise about your code and your experience with Gambas next time. My assumptions when writing this were: - you are familiar with drawing in Gambas - you use the Draw event - your drawing is not a function of external variables, like time (so that you can call DrawIt() at any time in your program and produce the same result as before) For the GLArea: no idea. Never used that but maybe you can adapt the idea above. Regards, Tobi -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] GambasGears FPS
Is there a reason for GambasGears giving 60 FPS normally and 101 FPS when running in a VirtualBox with Lubuntu? I have an Acer laptop with i5 and 6GB. Also a Geforce 720m. [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.11.0-17-generic Architecture=x86_64 Distribution=Ubuntu 13.10 Desktop=GNOME Theme=QGtk Language=es_AR.UTF-8 Memory=5845M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Long C routine
Hi: I need a way to keep the GUI alive while processing a EXTERNAL C routine: Public Extern M8gauss(mfMatriz As Float[], vfX As Float[], vfTermns As Float[], lOrder As Long) As Long wich is a Gaussian ecuations system solver, and can take up to 10minutes ( 10^10 aritmetic operations). Any help on doing this? tnx in advance I'll paste the actual C routine from the .SO long M8gauss(double *matriz, double *x, double * ti, long n ) { if(n == 0)return 1; int i, i1, j, h, h1; //long ok = -1; //long contador = 0,i1,h1,h,i,j; double c1; // triangulacion for (i = 0;in;i++) { i1=i*n; if(matriz[i+i1] != 0) { for (j = (i + 1);jn;j++) { if(matriz[j+i1] != 0) { c1 = -matriz[j+i1] / matriz[i+i1]; for(h = i; hn ; h++) { h1=h*n; matriz[j+h1] += c1 * matriz[i+h1]; } ti[j] = ti[j] + c1 * ti[i]; } } } else // exit returning the position of 0 element return i+i1; } // backward sustitucion double p1; x[n-1] = ti[n-1] / matriz[n* n-1]; for (i = n - 2;i=0;i--) { p1 = 0; for (j = i + 1;jn;j++) p1 += - x[j] * matriz[i+ j*n]; p1 += ti[i]; x[i] = p1 / matriz[i+i*n]; } return -1; } -- WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Long C routine
So you need to run the routine as a background task? Try the Task class (there is an example of it in the Fractal example, IIRC). Regards, Tobi Not backgroud, as the user cannot do much while that routine is working, but I need the program look at least alive as Ubuntu blackens the window. Will look at the example.. Tnx. Also, I read that in some cases JIT is faster than C. I have a C library for matrices that came from a Gambas library source translation, do you think that would be the case for the code I've provided in the last mail (I will bencchmark them now, but a word from experience is nice) -- WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Long C routine
Just a FYI This is the benchmark result solving a ecuation system 1578 order ( 1.309.782.606 operations) Gambas 147 seg Gambas+Fast27 seg Gambas + C2 seg So I still need the C library giving signs of life -- WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas Future or what kind of Gambas we want.
(too many to quote!) I'm one of those experienced VB6 users that used to swim in the Caribe, and Microsoft sent to the Marianas abiss with .NET ; so I think there is a huge amount of potential ex VB6 programmers to join the Gambas force. So Gambas is not THAT easy to install or compile? Well, we're programmers, lets show some effort... Linux hard to install? Ubuntu sets a computer up in 20m, and if its a decent one, the only thing you need to know is your time zone. Otherwise it is all answered in Askubuntu. Our goal has to be making Gambas compiled program END users, use whatever O.S. they want, using a one-file-downloadable-installer. -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas Future or what kind of Gambas we, want.
If anyone is willing to work with me, that would be great. I do. I'm a experienced VB6 user, have a very little C knowledge and 60% Gambas, but learning fast. -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas Future or what kind of Gambas we want.
Stepping in this old conversation to point out my take: -computers nowadays are fast enough to run a VM that's fast enough to run a normal aplication -If Benoit says it's complicated, what's left for us ?? - so instead of trying to port gambas, why not making a installer that sets everything up for the inexperinced user??? Something like the SmallTalk approach. Making a small footprint VM+Linux+Gambas...they're all opensource, we can get rid of everyhing that Gambas dont need...even more, making a ligth weight Gambas or tagging components as portable and others not Say it's a 500MB installer? C'mon my android phone has Hello world like apps that weight 30MB, half giga is 15m download...even here in the ass of the world (small town Argentina) As for porting Gambas, it will be really good. I have the time (but not the brain) to help anyone that joins the party and has the know-how for a start. Le 01/11/2013 11:33, François Gallo a écrit : Le 01/11/2013 11:15, Fabien Bodard a écrit : After long talk with many gambas developpers, after years of joy on the use of this language, I want to talk about its future... its persistance. Benoit for me is a little bit like our Linus. He have done something for itself and it's today one of the better tool ever see. (Umm ... ;-)) Now, for me one thing lock down Gambas... why can't it be more known ? Because it is close to Linux world. Theire is no possibility to use it natively on other system ... this problem what explicitely exposed by RMS in the past in a mail sended to us. Yes in his request he wanted us to make the interpreter generate a cil code for interpreter like java/.net or parrot. Well today we know java isn't a sure way, and we can do things too without. I have a request to Benoit, and i know it's time is precious and like mine rare. I want him to concentrate on make it's code portable... separate specific linux part to allow all our friend that want to help to port gambas to stars to make theire job. By doing this, most people can participate on compiler/interpreter code, by having Gambas on other system we can have more component maker/maintainer. At the end Benoit can take hollidays and come take a Cognac at home . :-) I know this is a huge job as he/we need to take the time to mark all part of the code that is hard linked on Linux system, and then choose a way to separate it to symplify the maintainment Same thing for the toolkits but it's at a first time not the subject of today. Now we have hands that can help... but it can't be done if the code is not structured for. So for the Undred time ... Benoit ... Please, let us helping you. To all, the gambas user/dev, this exchange is for you so even if it take thouthen of mail, please give us your impress and your ideas, your support. Please, don't look at the spelling fault, it will take to many time to you ;-) Fabien's right! i worked on gambas' portability (OS X and *BSD) and i can say we need a new structure of code to make a good portability but mainly a proper maintenance. Gambas is too linked to Linux. I can understand Benoit isn't interesting to spend time in the developing to port Gambas, but Benoit MUST review its code. At the moment, Gambas is not coded to port properly on others OS. a lot of routines is too linked to Linux (i say it again). Add new components and features is great, but it is preferable to focus time to make it better. i hope a work will be done in the gambas code to have a modular code. Separate X11 in a single code is better for us, developers who wants to work on portability of Gambas! in this manner, each developer can works on a code for OS X, for Windows and so on ... X11 for OS X is ugly. X11 for Windows is ugly. Use translated X11 routines are ugly. Benoit, we don't ask you to port Gambas to OS X Windows, just to re-structure code of Gambas so that we can works efficiently! While this change will not be applied, i would not be motivated to work on any Gambas port again... « [hide part of quote http://gambas.8142.n7.nabble.com/Gambas-Future-or-what-kind-of-Gambas-we-want-td44034.html#] To port Gambas on non-X11 systems, the problems are the following: 1) The interpreter relies on some kernel features that are not exactly implemented in the Windows kernel, especially the fork() system call. The Cygwin emulation layer is too slow. 2) I don't care about Windows. Doing the port is a big job. I started to did it on Windows XP + Cygwin years ago. It worked, but there was the fork() system call emulation that was slow. 3) There is X11 code in gb.gtk, gb.qt4 and gb.desktop. 4) For gb.gtk: as GTK+ 2 is deprecated, gb.gtk should be ported to GTK+ 3. This implies removing all the X11 specific code. 5) For gb.qt4: the X11
Re: [Gambas-user] Matrices byref
On 20/01/14 01:28, gambas-user-requ...@lists.sourceforge.net wrote: I need this global matrix: Public MatRigGlo[12, 12] As Float that in some cases it needs to be [3,3] or [6,6] I pass that matrix to a C library: Public Extern M8simetrizarSQ(matriz As Float[], lOrden As Long) and the call is M8simetrizarSQ(MatRigGlo, 12) wich works perfectly. But its ineficient because if matrix is 3x3, the routine still need to process it like 12x12, and that matrix it's filled like 1M times. Will it work like this? Public Mat3[3,3] as Float Public Mat12[12,12] as Float Public MatRigGlo as Float[] ' Module MatrigGlo = Mat3 and the use MatRigGlo like a 3x3 matrix? wich other ways to do this? tnx No, because Mat3 and Mat12 are not normal Float arrays, but embedded Float arrays. You must declare them that way: Public Mat3 As Float[3, 3] Public Mat12 As Float[12, 12] Or dynamically: Public MatRigGlo as Float[] MatRigGlo = New Float[iSize, iSize] I'm embarrassed on it being that simple :s tnx, Martin -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Matrices byref
I need this global matrix: Public MatRigGlo[12, 12] As Float that in some cases it needs to be [3,3] or [6,6] I pass that matrix to a C library: Public Extern M8simetrizarSQ(matriz As Float[], lOrden As Long) and the call is M8simetrizarSQ(MatRigGlo, 12) wich works perfectly. But its ineficient because if matrix is 3x3, the routine still need to process it like 12x12, and that matrix it's filled like 1M times. Will it work like this? Public Mat3[3,3] as Float Public Mat12[12,12] as Float Public MatRigGlo as Float[] ' Module MatrigGlo = Mat3 and the use MatRigGlo like a 3x3 matrix? wich other ways to do this? tnx -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user