Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-02 Thread Christer Johansson
4 Path=/usr/local/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.6.3 GTK+=libgtk-x11-2.0.so.0.2000.1 > -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > Sent: Monday, February 18, 2013 10:35 AM > To: mailing list for gambas users > Subject: Re:

[Gambas-user] The MagPi Magazine

2013-04-02 Thread Christer Johansson
This may be old news for some and I hope it's not to much OT... The MagPi is a free magazine focused on the Raspberry Pi and have some good information if you are just starting out. http://themagpi.com/ Maybe a Gambas 3 article in this magazine would let more people know about Gambas 3 and wha

Re: [Gambas-user] MySQL language problems

2013-02-27 Thread Christer Johansson
> Well... with Gambas2 I have the problem that my Mysql server, cut by > time-out the conexions after a few minutes of no activities. The users > complains that, so, y develop this module that re-open the > connection if > there is an error. > Usually I call the functions inside passing a sql stri

Re: [Gambas-user] gb.web

2013-02-27 Thread Christer Johansson
> You can't get this working with "Apache 2 standard out of the > box installs". > You must configure Apache to recognise Gambas webpages as CGI > scripts to call the gbw3 interpreter. > >I could send you an archive with a test project an a German PDF explaining >the Apache2 configuration for Ga

Re: [Gambas-user] Which version of Gambas installed?

2013-02-19 Thread Christer Johansson
Easiest would be to click on the question mark and then check "About Gambas..." in the IDE. /CJ > There are several versions of Gambas3 in my Download dir including a > trunk dir, and I don't remember which of those I installed last. > > In order to uninstall that last version before installing

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-02-19 Thread Christer Johansson
Thanks for the help Benoît hope to give it a go coming weekend! > Extern wiringPiIsr(iPin As Integer, iEdgeType As Integer, pFunction As Pointer) In "lib..." > > ... > > And then you use the name of a static function as 'pFunction' > argument when calling wiringPiIsr. > > Gambas will automaticall

[Gambas-user] Shared WiringPi library for RasPi

2013-02-18 Thread Christer Johansson
Since I bumped into problems using Mike McCauley's bcm2835 library when trying to access the SPI-port on the Raspberry Pi from Gambas 3 I also made a shared lib version of WiringPi. This C lib is made by a gentleman named Gordon Henderson and _ALL_ credits belongs to him and not me, I just compile

Re: [Gambas-user] Armhf packages in Gambas3 PPA

2013-02-18 Thread Christer Johansson
Thanks for clarifying! /CJ > Well, actually, I did not plan that, because officially there > is no such armel release of Ubuntu. > At least, not now: > > http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release > http://cdimage.ubuntu.com/ubuntu-core/releases/12.10/release > http://cdimage

Re: [Gambas-user] MySQLExample

2013-02-18 Thread Christer Johansson
OK, also found the Database example available in Gambas 3 so that should get me started. /CJ > The "MySQLExample" is made by David Villalobos Cambrenoro as > an example of its "gb.mysql" component, which is actually a component > build on top of Gambas mysql support that implements some specific

Re: [Gambas-user] Armhf packages in Gambas3 PPA

2013-02-15 Thread Christer Johansson
Hi Kendek, Thank you for your efforts, I've been using your repo in the past. Since I do not run armhf I wonder if you have plans to add armel packages to the list someday? > I am the maintainer of nemh/gambas3 PPA. From > now on armhf architectu

[Gambas-user] MySQLExample

2013-02-14 Thread Christer Johansson
Anyone else having problem with the MySQLExample 3.0.90 included in 3.3.4? When trying to connect to the server I get an error saying... File already exists and after I press OK on that dialog it says... modMain.Main.41::'Form.Refresh' is incorrecty overridden in class 'FTables' I know th

Re: [Gambas-user] Screen Shots of GambOS

2013-02-08 Thread Christer Johansson
Nice initiative! This will help alot of newcomers to this great dev environment. /CJ > Here are a few screen shots of GambOS as it is now, enjoy. > > John > > http://www.flickr.com/photos/mynetbookos/8453527047/ > http://www.flickr.com/photos/mynetbookos/8453527177/ > http://www.flickr.com/ph

[Gambas-user] Shared bcm2835 library for RasPi

2013-02-06 Thread Christer Johansson
First of all thanks to Mike McCauley for making and sharing the bcm2835 library, _ALL_ credits belongs to him and not me, I just compiled a shared lib version so we can use Mike's great work to access GPIO, SPI ports etc. on the Raspberry Pi to toggle LED's or interface with other hardware! Since

Re: [Gambas-user] Suggestion for gb.settings component

2012-10-20 Thread Christer Johansson
Thanks for the input Richard but it won't work in my case since I alter a existing config file with lots of comments. Anyway, I written a simple routine that solves the problem. > -Original Message- > From: RICHARD WALKER [mailto:richard.j.wal...@ntlworld.com] > Sent: Saturday, October 20

Re: [Gambas-user] Suggestion for gb.settings component

2012-10-20 Thread Christer Johansson
Thanks for clarifying, it's easy enough to write my own routine doing what I wan't, ie replace a single line with everything else intact I just tought it would be handy to have this function in gb.settings since I use already use that to read config values. > -Original Message- > From: Be

Re: [Gambas-user] gb.net.pop3 example?

2012-10-19 Thread Christer Johansson
Just in case someone else are looking for an example. > I have a really simple example, but it's not finished yet. I > will upload it tomorrow once it's finished ;) Sebastian updated the examples in latest revision to include a simple POP3 example as well as a bug fix. Thanks again Sebastian!

[Gambas-user] Suggestion for gb.settings component

2012-10-19 Thread Christer Johansson
When using gb.settings to write to existing .conf files I noticed it automaticly removed all comments lines. It would be great if it leaved the exisiting comments intact since when dealing with large .conf files comments are IMHO invaluable to have in there. Just an idea and hope it makes sense.

[Gambas-user] gb.net.pop3 example?

2012-10-17 Thread Christer Johansson
Anyone used the new POP3 component and have a simple example to share? I'm a bit unsure how to use it in a CLI app since it's not creatable like ClientSocket etc. /CJ -- Everyone hates slow websites. So do we. Make yo

Re: [Gambas-user] Release of Gambas 3.3.3

2012-10-11 Thread Christer Johansson
> I have just released Gambas 3.3.3 with some fixes for annoying bugs > still present in Gambas 3.3.2. Thanks for the update! After compiling it I received the following... || || Unable to compile gb.net.pop3 || I got the same error in 3.3.2 but read here that this was a known issue wit

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-10-03 Thread Christer Johansson
Thanks to everyone involved for the recent 3.3.2+ release! > you can then compile the debian packages for armel inside the source > directory like so > > debian/rules binary > > this will give you a home directory full of .deb files, you can copy > across the ones you want to the NAS and instal

Re: [Gambas-user] High CPU usage when using serialport component

2012-08-11 Thread Christer Johansson
> -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > > Can you try the unmodified SerialPort example with revision #5029? > > Now I do the polling with a fixed frequency. That frequency is defined > with a new optional argument to the Open() method. It is 5

Re: [Gambas-user] High CPU usage when using serialport component

2012-08-11 Thread Christer Johansson
> -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > > 2) By commenting all SPort1_xxxChange event handlers in the example > source code? Bingo! This improved things alot... Running a quick test CPU usage was 0.0% after opening /dev/ttyAMA0 as expected. W

Re: [Gambas-user] High CPU usage when using serialport component

2012-08-11 Thread Christer Johansson
> -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > > Can you try: > > 1) By using gb.qt4 instead of gb.gtk? > > 2) By commenting all SPort1_xxxChange event handlers in the example > source code? I will try later today but since the same problem exists in

Re: [Gambas-user] High CPU usage when using serialport component

2012-08-11 Thread Christer Johansson
> From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > > To confirm that, can you use gdb to run the exemple, hit > CTRL+C during the high CPU usage, and show me what the backtrace is then? Sorry I forgott to include system info, test was done in 3.1.1 but also happend in 3.2.1. [Syste

Re: [Gambas-user] Gambas 3 Ubuntu ARMv7

2012-08-09 Thread Christer Johansson
> On Wed, 2012-08-08 at 22:10 -0700, John Spikowski wrote: > > Has anyone tried to build Gambas3 native on an ARM Linux before? Yes, I sucessfully built 3.2.1 past weekend on the Raspberry Pi runnig Debian Squeeze, took quite a few hours but worked. /CJ --

Re: [Gambas-user] Raspberry Pi

2012-08-09 Thread Christer Johansson
> It would be nice if you could also make available the compiled package > under armel so others can test it ;) Maybe just a typo and you mean armhf since this is available for armel... http://tomv.home.xs4all.nl/raspberry/gambas3_3.1.1-1_armel.deb Not the latest stable but something to get s

Re: [Gambas-user] Declaring external C libraries

2012-08-07 Thread Christer Johansson
> -Original Message- > From: Tobias Boege [mailto:tobiasboeg...@googlemail.com] > Sent: Monday, August 06, 2012 4:36 PM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Declaring external C libraries > > > On Mon, 06 Aug 2012,

Re: [Gambas-user] OpenSuse-Raspberry-Debian ?

2012-08-07 Thread Christer Johansson
> What minimum do i need to run a Gambas3 project, developed on > OpenSuse /Gambas 3-IDE on a Raspberry-Dbian system ? > > So far i installed gb3-runtime on the debian system and tried > to run a project.gambas executable using gbr3 ./project.gambas, > but this does not work. "No project file i

Re: [Gambas-user] Declaring external C libraries

2012-08-05 Thread Christer Johansson
> -Original Message- > From: Tobias Boege [mailto:tobiasboeg...@googlemail.com] > Sent: Sunday, August 05, 2012 6:26 PM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Declaring external C libraries > > > On Sun, 05 Aug 2012, Christer Johansson

Re: [Gambas-user] Declaring external C libraries

2012-08-05 Thread Christer Johansson
> Hi will it be setup to install & run on Raspbian or only Squeeze ? It will be compiled on Debian Squeeze so I doub't it will install on Raspbian? I've decided to stick to Squeeze for time being since Raspbian is WIP. BTW, the test compilation of Gambas3 3.2.1 on the RasPi worked fine but I'm s

Re: [Gambas-user] Declaring external C libraries

2012-08-05 Thread Christer Johansson
> Does somebody have a compiled version of Gambas for the > Raspberry Pi? (I don't have time to compile my own...) Jyst a FYI... Since it's raining here today I decided to set things up so I can compile Gambas3 3.2.1 on my Raspberry Pi. So if everything works out OK and I figure out how to mak

Re: [Gambas-user] Declaring external C libraries

2012-08-05 Thread Christer Johansson
> Does somebody have a compiled version of Gambas for the Raspberry Pi? (I > don't have time to compile my own...) I use this one at the moment, just like you I have not had enough time to compile latest final build on RasPi yet. http://tomv.home.xs4all.nl/raspberry/gambas3_3.1.1-1_armel.deb

Re: [Gambas-user] Declaring external C libraries

2012-08-04 Thread Christer Johansson
> Pardon me for butting in, but I wonder if you have tried a Gambas > short (16 bits). > > The last time I can recall seeing a byte or character passed as an > 8bit value I was using a Z80! I have a vague recollection that the > Lattice C compiler for the MC68008 used the bottom word (16 bits) in

Re: [Gambas-user] Declaring external C libraries

2012-08-03 Thread Christer Johansson
> uint8_t is a type as specified by the _t in the naming. u = unsigned > and int = integer 8 = eight bits. So this declares an unsigned integer > of 8 bits. Thanks for the clarification Randall but question remains, how should I declare a uint8_t in Gambas3 when using the EXTERN command? The onl

Re: [Gambas-user] Declaring external C libraries

2012-08-02 Thread Christer Johansson
> Of course i've seen your recent posting, but i do not understand the > line, but i'm do not know apt-get in details. > > sudo dpkg -i gambas2_2.24.0-1_armel.deb ; sudo apt-get -f install > > we are talking about gambas3. tomtors install example was for Gambas2. Just replace the name of th

Re: [Gambas-user] Declaring external C libraries

2012-08-02 Thread Christer Johansson
Hi Wally, > your posting is very interesting, thank you > > I use GB3 on Opensuse so far and now i'm learning for RaspBerry PI. > > 1st step was to make a Virtual machine of debian. > 2nd is to get Gmabs3 working on it ... > but this failed. > > Your information sounds as you successfully run

Re: [Gambas-user] Raspberry Pi

2012-08-02 Thread Christer Johansson
> -Original Message- > From: wally [mailto:wa...@voosen.eu] > Sent: Thursday, August 02, 2012 2:16 PM > To: Mike Crean; mailing list for gambas users > Subject: Re: [Gambas-user] Raspberry Pi > > > On Thursday 02 August 2012 03:34:42 Mike Crean wrote: > > Well my Rpi has turned up and it

[Gambas-user] Declaring external C libraries

2012-08-01 Thread Christer Johansson
With some luck and Google I managed to compile a shared version of the C library to RaspberryPi I/O by Mike McCauley and it seems to work (at least partly) within Gambas3 using the EXTERN function. I started with the simplest function there was in the library and that was pretty strait forward an

Re: [Gambas-user] Holidays

2012-08-01 Thread Christer Johansson
> I leave Paris, my computer and Internet for a week. I will be back on > August, 6th. > > So you have six days to fill my mailbox with hundreds of bug reports. Hope you enjoy your holiday! /CJ -- Live Security Virtu

Re: [Gambas-user] Raspberry pi question

2012-07-30 Thread Christer Johansson
>Maybe I say something stupid, but there is a shell script example there: > > http://elinux.org/RPi_Low-level_peripherals#GPIO_Driving_Example_.28Shell_script.29 > >It is just a matter of writing or reading files in /sys/class/gpio as >root. So you can use the standard file functions in Gambas f

Re: [Gambas-user] Raspberry pi question

2012-07-30 Thread Christer Johansson
> >> A guy named Gordon have already made a C library named WiringPi but I > >> have no > >> clue on how to use it from within Gambas3 or if it's even possible? > >> > >>https://projects.drogon.net/raspberry-pi/wiringpi/ > >> > > This is a more interesting thing. I think by using Extern > f

Re: [Gambas-user] Raspberry pi question

2012-07-28 Thread Christer Johansson
> Le 26/07/2012 10:53, fulippo_fuli...@tiscali.it a écrit : > > Hi > > Somebody know how to use gpio port with Gambas 2/3 on Raspberry pi > > > > in python is possible there is som libraries > > > > thank's > > > > I don't know what python does. > > According to: > > http://www.haifux.org

Re: [Gambas-user] My Raspberry Pi has arrived!

2012-05-30 Thread Christer Johansson
Conrats Caveat, still waiting for mine... > I was thinking: maybe I must find a way to let the IDE debug programs > remotely. I mean: developing the program on the PC, click on > the start button, and magically the program is run on the Raspberry and > debugged remotely. > > But I don't know wha

Re: [Gambas-user] Two bugs/issues noted

2012-05-21 Thread Christer Johansson
NAS is running Debian Lenny @ ARM. /CJ > -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > Sent: Monday, May 21, 2012 7:05 PM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Two bugs/issues noted > > > Le 14

Re: [Gambas-user] Two bugs/issues noted

2012-05-21 Thread Christer Johansson
as users > Subject: Re: [Gambas-user] Two bugs/issues noted > > > Le 14/05/2012 12:00, Christer Johansson a écrit : > > > > Noted some issues last night... > > > > First one is with Date(now). If assigned to a variable (or > printed) it > > adds pla

Re: [Gambas-user] New feature in Gambas 3

2012-05-21 Thread Christer Johansson
Sounds like a great addition, looking forward to test it! /CJ > -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > Sent: Saturday, May 19, 2012 1:58 PM > To: mailing list for gambas users > Subject: [Gambas-user] New feature in Gambas 3 > > > Hi, > > I hav

Re: [Gambas-user] Two bugs/issues noted

2012-05-14 Thread Christer Johansson
> -Original Message- > From: tobi [mailto:tobiasboeg...@googlemail.com] > Sent: Monday, May 14, 2012 4:50 PM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Two bugs/issues noted > > > On Mon, 14 May 2012, Christer Johansson wrote: > > &g

[Gambas-user] Two bugs/issues noted

2012-05-14 Thread Christer Johansson
Noted some issues last night... First one is with Date(now). If assigned to a variable (or printed) it adds placeholders for time as zeroes like... 05/14/2012 00:00:00 Second is regarding the Shell command. If I execute the following code on my NAS nothing happens, same code works OK in Xubun

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-13 Thread Christer Johansson
> > Attached is a simple program that hopefully shows it. > > > > If I start this simple server on my NAS (IP# 192.168.0.20) and then > > connect with... > > > >telnet 192.168.0.20 1122 > > > > from my Windows computer (IP# 192.168.0.15) the server > running on the NAS > > shows... > > > >

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-13 Thread Christer Johansson
> -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > Sent: Sunday, May 13, 2012 5:04 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Debian ARMEL packages for Gambas3 > components? > > > Le 10/05/2012 13:42,

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-13 Thread Christer Johansson
> -Original Message- > From: Benoît Minisini [mailto:gam...@users.sourceforge.net] > Sent: Sunday, May 13, 2012 5:04 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] Debian ARMEL packages for Gambas3 > components? > > > Le 10/05/2012 13:42,

Re: [Gambas-user] Is gambasdoc.org down?

2012-05-13 Thread Christer Johansson
> Sorry, the building our server is in lost power for something like 18 > hours. It's back now, though. Thank you! /CJ -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security

Re: [Gambas-user] [Feature Request] Offline Documentation

2012-05-13 Thread Christer Johansson
> Somebody who has a downloadable .tar.gz containing the documentation? I did found older Gambas3 offline doc package over at http://whiteislandsoftware.com, look in the guides section. If you have problems getting it just let me know and I can upload it somewhere. /CJ --

[Gambas-user] Is gambasdoc.org down?

2012-05-12 Thread Christer Johansson
Anyone else having problem reaching http://gambasdoc.org? Been down whole day for me... /CJ -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has cha

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-10 Thread Christer Johansson
Some good news! After rolling back to older code last night and trying to reproduce the freezing issue I can say that I was wrong in my conclusion that 3.1.90 r4702 had the same problem that I experience in Gambas2. The server have been running for 16+ hours on the NAS and are still going, no fre

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-09 Thread Christer Johansson
Hi Benoît. > When it is frozen, can you use gdb to get a backtrace? > > First you must get the process id of the frozen Gambas program. Let's > call it . > > Then you run: > > $ gdb gbx3 . > > gdb will take the control of the process, so that you can print the > backtrace... > > (gdb) bt > > ... a

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-08 Thread Christer Johansson
I forgott to add... If anyone are interested in the ARMEL *.deb files for Gambas3 3.1.90 r4702 just let me know, I will be happy to share them with anyone who want's them... /CJ -- Live Security Virtual Conference Exc

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-08 Thread Christer Johansson
The compilation of Gambas3 3.1.90 r4702 was successful, "gambas3-runtime" and gambas3-gb-net was installed on my NAS (running Debian Lenny) without errors and the "Segmentation fault" I had with 3.1.1 is gone :) Unfortunately I experience the same weird error when using SocketServer as before wit

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-08 Thread Christer Johansson
>Can I use the exact same procedure with the latest development version? I.e >grab the latest source from the trunk and then start compile using... After some more digging around last night I found that Kendek also had a repository for pre-releases at... https://launchpad.net/~nemh/+archive/ga

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-07 Thread Christer Johansson
... > this will give you a home directory full of .deb files, you can copy > across the ones you want to the NAS and install > >dpkg -i With Ian's help and a long hours last night I managed to compile the debian packages for ARMEL within QEMU (compilation took 6+ hours). Today I verified de

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-06 Thread Christer Johansson
> ON the emulated RasPi install kendek's > ubuntu packages from https://launchpad.net/~nemh/+archive/gambas3 to > your sources.list. > > then grab all the dependencies > apt-get build-dep gambas3 > > then grab the source code itself > > apt-get source gambas3 > > you may have to try differe

Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-06 Thread Christer Johansson
> gambas3 packages for debian are "close to release", hopefully > a matter of weeks. Thanks for the heads-up and looking forward to the release. > > I'm looking for the following two basic components so I can > get Gambas 3 > > CLI programs running on my NAS running Debian Lenny on ARM... > c

[Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-05 Thread Christer Johansson
Hi, Sorry if this have been covered here before, I'm new to the list. I wonder if any Debian ARMEL *.deb packages for the Gambas 3 components exists somewhere? I've searched high and low over at Debian.org etc. but there is only for Gambas 2. I'm looking for the following two basic components so