Re: [Gambas-user] Faults on new Project name

2012-09-23 Thread Benoît Minisini
Le 21/09/2012 16:51, John Rose a écrit : > I've taken an existing project and done Save As with a new project > name. I've then amended this new project including setting the > Project Properties' Title & Description. I've added a new icon for > the app into the project's Data section (of the IDE)

Re: [Gambas-user] httpclient error code -1018

2012-09-23 Thread Benoît Minisini
Le 24/09/2012 07:42, Bruce a écrit : > or to be correct it is actually the Status code. > > But what does it mean? > Is it the same as libcurl error code 18? "CURLE_PARTIAL_FILE (18) > A file transfer was shorter or larger than expected. This happens when > the server first reports an expected tran

[Gambas-user] httpclient error code -1018

2012-09-23 Thread Bruce
or to be correct it is actually the Status code. But what does it mean? Is it the same as libcurl error code 18? "CURLE_PARTIAL_FILE (18) A file transfer was shorter or larger than expected. This happens when the server first reports an expected transfer size, and then delivers data that doesn't m

[Gambas-user] My first Gambas program in test stage

2012-09-23 Thread Tiago Baciotti Moreira
Hi, Just to let you know my impressions on Gambas. Today I put my first gambas program in "Beta test" stage! It is a simple Management program that my wife will use in her small store. Just 11 tables We have there 2 computers. One Linux Mint and other W7 with a VM with Mint. I developed entirel

Re: [Gambas-user] test build of 3.3.0

2012-09-23 Thread RICHARD WALKER
Benoît, the build was successful. I just have a few tweaks to make to the rpm spec file before I test the installation. Richard -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Downlo

Re: [Gambas-user] run project as root - BIS

2012-09-23 Thread Ru Vuott
--- Dom 23/9/12, Jussi Lahtinen ha scritto: > I don't understand... > > This works in terminal (so there is nothing wrong with the > xdg-su script): > xdg-su -c whoami > > Jussi > I collect the data (like you know) from the supporting file, and I show those in TextEdit on Form. > But Deskto

Re: [Gambas-user] run project as root

2012-09-23 Thread Ru Vuott
> I wonder why it works on your system... What it your > system? > > Jussi > --- Hello jussi my system is: Linux Mint 13 - Maya - Ubuntu 64bit Kernel=3.2.0-27-generic [Libraries] Qt4=libQtCore.so.4.8.1 GTK+=libgtk-x11-2.0

Re: [Gambas-user] Some questions about project Translation

2012-09-23 Thread RICHARD WALKER
OK Sebastian, I have done a bit of research (spelt g-o-o-g-l-e) and I have decided to set a constant string as "LANG=C" and add it to the front of those shell commands my program issues where the text of the sub-processes' output is important. My reasoning is that if that changes the text I am che

Re: [Gambas-user] test build of 3.3.0

2012-09-23 Thread RICHARD WALKER
On 23/09/2012, Tobias Boege wrote: > I successfully built the main/ directory from untouched trunk/ and > tags/3.3.0/ trees. Where do you get your sources from? Do you mean an RPM > or > a gcc 'spec file'? The former, I wouldn't know what to do with, sorry. In > this case, if I were you and knew R

Re: [Gambas-user] test build of 3.3.0

2012-09-23 Thread RICHARD WALKER
Thanks Benoît, rebuilding now. more later ...? -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503

Re: [Gambas-user] test build of 3.3.0

2012-09-23 Thread Tobias Boege
On Sun, 23 Sep 2012, Beno?t Minisini wrote: > Le 23/09/2012 19:33, RICHARD WALKER a ?crit : > > Hi Beno?t > > > > I am on my first attempt to build 3.3.0 and I have this error: > > > > Making all in data > > make[5]: Entering directory > > `/home/richard/rpm/BUILD/gambas3-3.3.0/main/lib/data' > >

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
I don't understand... This works in terminal (so there is nothing wrong with the xdg-su script): xdg-su -c whoami But Desktop.RunAsRoot() does something else..? Jussi On Sun, Sep 23, 2012 at 8:44 PM, Jussi Lahtinen wrote: > I tried your code, and I obtain in TextEdit simply the word: r

Re: [Gambas-user] test build of 3.3.0

2012-09-23 Thread Benoît Minisini
Le 23/09/2012 19:33, RICHARD WALKER a écrit : > Hi Benoît > > I am on my first attempt to build 3.3.0 and I have this error: > > Making all in data > make[5]: Entering directory > `/home/richard/rpm/BUILD/gambas3-3.3.0/main/lib/data' >CC gb_data_la-main.lo >CC gb_data_la-c_list.lo >

Re: [Gambas-user] test build of 3.3.0

2012-09-23 Thread Tobias Boege
On Sun, 23 Sep 2012, RICHARD WALKER wrote: > Hi Beno?t > > I am on my first attempt to build 3.3.0 and I have this error: > > Making all in data > make[5]: Entering directory > `/home/richard/rpm/BUILD/gambas3-3.3.0/main/lib/data' > CC gb_data_la-main.lo > CC gb_data_la-c_list.lo > c_

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
> > I tried your code, and I obtain in TextEdit simply the word: root > > (But I should be getting: vuott) > No. If you run it as root, you should get root! I wonder why it works on your system... What it your system? Jussi

Re: [Gambas-user] Some questions about project Translation

2012-09-23 Thread RICHARD WALKER
On 23/09/2012, Sebastian Kulesz wrote: > On Sun, Sep 23, 2012 at 1:08 PM, RICHARD WALKER > wrote: >> So I was wondering, does it make sense to re-code a project so that >> strings, or string constants are used for repeated fragments of text? >> Might such an approach actually make it harder to tr

[Gambas-user] test build of 3.3.0

2012-09-23 Thread RICHARD WALKER
Hi Benoît I am on my first attempt to build 3.3.0 and I have this error: Making all in data make[5]: Entering directory `/home/richard/rpm/BUILD/gambas3-3.3.0/main/lib/data' CC gb_data_la-main.lo CC gb_data_la-c_list.lo c_list.c:25:18: fatal error: list.h: No such file or directory co

Re: [Gambas-user] Some questions about project Translation

2012-09-23 Thread Sebastian Kulesz
On Sun, Sep 23, 2012 at 1:08 PM, RICHARD WALKER wrote: > Greetings to all, > > I have been experimenting with the Translate option in the IDE. Just > for fun, I took a current mini-project which is nearing completion and > marked it up for translation. At only 116 strings it is not too > daunting

Re: [Gambas-user] run project as root - BIS

2012-09-23 Thread Ru Vuott
Hello Jussi, > > I tried your code, and I obtain in TextEdit simply the > word:  root > > (But I should be getting: vuott) > Oh, I understand that I obtain "root" because I launched that command as "root" by Desktop.RunAsRoot() Uhmm... ok. --

Re: [Gambas-user] run project as root

2012-09-23 Thread Ru Vuott
> I tried: > > sFile = Temp$() > Desktop.RunAsRoot("whoami > " & sFile) > > Do >    Wait 0.1 > Loop Until Exist(sFile) > > fl = Open sFile For Read Watch > I tried your code, and I obtain in TextEdit simply the word: root (But I should be getting: vuott) -- In the meantime, I

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
I tried: sFile = Temp$() Desktop.RunAsRoot("whoami > " & sFile) Do Wait 0.1 Loop Until Exist(sFile) fl = Open sFile For Read Watch But I can only get: Try `whoami --help' for more information. Same command works in terminal: whoami > /tmp/gambas.1000/2413/6.tmp So, I'm not sure what

Re: [Gambas-user] run project as root

2012-09-23 Thread Ru Vuott
> --- Dom 23/9/12, Jussi Lahtinen ha scritto: > > This is good idea, but instead of "/tmp/a", I would use > Temp$(): > > Private fl As File > Private sFile As String > > Public Sub Form_Open() > > sFile = Temp$() > Desktop.RunAsRoot("cat /dev/ttyUSB1 > " & sFile) > > fl = Open sFile For R

[Gambas-user] Some questions about project Translation

2012-09-23 Thread RICHARD WALKER
Greetings to all, I have been experimenting with the Translate option in the IDE. Just for fun, I took a current mini-project which is nearing completion and marked it up for translation. At only 116 strings it is not too daunting a task. To make it even easier I elected to start with a translatio

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
> Private fl As File > > > Public Sub Form_Open() > > Desktop.RunAsRoot("cat /dev/ttyUSB1 > /tmp/a") > > fl = Open "/tmp/a" For Read Watch > > End > > > Public Sub File_Read() > > Dim s As String > >s = File.Load("/tmp/a") > >TextEdit1.Text = s > > End > This is good idea, but instead

[Gambas-user] Pre-release of Gambas 3.3.0 package

2012-09-23 Thread Benoît Minisini
Hi, I have made the source package of Gambas 3.3.0 there: http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.3.0.tar.bz2/download I invite you to test it and report me any problem before I make it officially public. Thanks in advance. Regards, -- Benoît Minisini ---

Re: [Gambas-user] run project as root

2012-09-23 Thread Ru Vuott
> > i 've seen in other postingsyou mentioned tests using > > "Desktop.RunAsRoot("whoami")" > > Can you provide a working example how to use > Desktop.RunAsRoot, please ? > > (e.g. how to get the returned usersname) Hello Wally, you could use a supporting file, and then you could read in it... I

Re: [Gambas-user] run project as root

2012-09-23 Thread Jussi Lahtinen
Oh, yes, that was the reason I haven't use it! It doesn't have method to return value. So far I have used gksudo with shell command, but generally working solution is needed. Jussi On Sun, Sep 23, 2012 at 11:10 AM, wally wrote: > Hello Jussi, > > i 've seen in other postingsyou mentioned tes

Re: [Gambas-user] run project as root - BIS

2012-09-23 Thread Ru Vuott
> > ...but Ihad a problem: > I tried function Desktop.RunAsRoot(), but I heve got this > notice: > > /tmp/gambas.1000/3328/xdg-utils/xdg-su: 361: > /tmp/gambas.1000/3328/xdg-utils/xdg-su: xterm: not found > Opss, I didn't have "xterm" program installed in my system ! :-D Now I installed

Re: [Gambas-user] run project as root

2012-09-23 Thread Ru Vuott
> Can you provide a working example how to use Desktop.RunAsRoot("cat /dev/ttyUSB1") ...but Ihad a problem: I tried function Desktop.RunAsRoot(), but I heve got this notice: /tmp/gambas.1000/3328/xdg-utils/xdg-su: 361: /tmp/gambas.1000/3328/xdg-utils/xdg-su: xterm: not found So, I changed

Re: [Gambas-user] MySQL, $Query = "SELECT CURTIME()"

2012-09-23 Thread Jesus
El 23/09/12 09:39, abbat escribió: > > Hi, > > I cant get how to get current time. > > In tutorial is clear example to get var from Query using name of Query: > > $Phone = $Result!Phone > > But how to get Result if my Query is > $Query = "SELECT CURTIME()" > > And, how to trasform that result to

Re: [Gambas-user] MySQL, $Query = "SELECT CURTIME()"

2012-09-23 Thread abbat
abbat wrote: > > Hi, > > I cant get how to get current time. > > In tutorial is clear example to get var from Query using name of Query: > > $Phone = $Result!Phone > > But how to get Result if my Query is > $Query = "SELECT CURTIME()" > > And, how to trasform that result to date format >

Re: [Gambas-user] run project as root

2012-09-23 Thread wally
Hello Jussi, i 've seen in other postingsyou mentioned tests using "Desktop.RunAsRoot("whoami")" Can you provide a working example how to use Desktop.RunAsRoot, please ? (e.g. how to get the returned usersname) thx wally --

[Gambas-user] MySQL, $Query = "SELECT CURTIME()"

2012-09-23 Thread abbat
Hi, I cant get how to get current time. In tutorial is clear example to get var from Query using name of Query: $Phone = $Result!Phone But how to get Result if my Query is $Query = "SELECT CURTIME()" And, how to trasform that result to date format Thanks . -- View this message in context: