Re: [Gambas-user] Using gb.web in my own gambas web server

2009-06-30 Thread Benoît Minisini
 Hi Benoit, hi to all.

 You kwon I'm the author of BaShare, a simple web server with a GUI useful
 in file sharing.

 I'm trying to implement file reception in BaShare from a web form like
 this:

 form method='post' action='http://localhost:65001' name='Upload'
 enctype='multipart/form-data'
 input name='File' type='file'brbrinput value='Invia' name='SubBtn'
 type='submit'br
 input type='hidden' name='action' value='upload'
 /form

 So it was very useful if was possible to use gb.web in my application. I
 tryed this:

 PUBLIC SUB Socket_Read()


 PRINT Request.Fields.Count

  TRY LAST.Close
  TRY client.Remove(client.Find(LAST))

 END

 but Request.Fields.Count is 0

 The alternative is to parse manually the stream... but is very tedious.

 Have you some suggests?

 Thank you very much.

As stated in the documentation, gb.web allows you to implement *CGI* scripts, 
i.e. executables that are run by the HTTP server and that return the HTTP 
response on their standard output stream.

Regards,

-- 
Benoît

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Using gb.web in my own gambas web server

2009-06-30 Thread guiodic



Benoît Minisini wrote:
 
 As stated in the documentation, gb.web allows you to implement *CGI*
 scripts, 
 i.e. executables that are run by the HTTP server and that return the HTTP 
 response on their standard output stream.
 
 Regards,
 
 -- 
 Benoît
 
 
 

yes, of course. So, the solution could be to make a separate executable
which I send the raw stream and receive the output. Is it a good idea in you
opinion?

Best regards and thank you.


-- 
View this message in context: 
http://www.nabble.com/Using-gb.web-in-my-own-gambas-web-server-tp24266408p24269316.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Using gb.web in my own gambas web server

2009-06-30 Thread Benoît Minisini
 Benoît Minisini wrote:
  As stated in the documentation, gb.web allows you to implement *CGI*
  scripts,
  i.e. executables that are run by the HTTP server and that return the HTTP
  response on their standard output stream.
 
  Regards,
 
  --
  Benoît

 yes, of course. So, the solution could be to make a separate executable
 which I send the raw stream and receive the output. Is it a good idea in
 you opinion?

 Best regards and thank you.

Why shouldn't be a good idea? It depends on what you will do with your CGI 
script.

-- 
Benoît

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] something very strange with the compiler

2009-06-30 Thread Benoît Minisini
 I found something very strange with the compiler . I have a variable that I
 declare it public in a module . I use the variable in a form code . then I
 change the name of the variable and select compile all and make . no error
 show up . but when I run the program and hit the line where I using the
 variable , an exception show up .


 is gambas suppose to be like that ?

Yes, this is by design.

All project files are compiled independently, and all linkage is done at 
runtime.

-- 
Benoît

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.net.smtp doubt!!

2009-06-30 Thread Diego Fernández
Benoît Minisini escribió:
 Hi all,

 I am implementing a notification system on an app.  The thing is i need
 to be able to conect to a mail server with authentication.  Ive been
 playing around with the component all day but seems i cant do that.
 Correct me if i am wrong.

 Also if someone has any suggestion it will be well received.

 Thanks

 

 I'm afraid the rudimentary gb.net.smtp is not able to do that. I have found a 
 better smtp library to do the job in the past, but I don't remember it!

   
:S :( i am sadly to hear that.  If you could do some memory please to 
remember what was the library you use in the past i will much apreciate 
that.

thanks.

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Side panel example??

2009-06-30 Thread Stephen Bungay
   Using Gambas 2.1.2 on KUbuntu 8.04.

   Perhaps I've been away from Gambas for far too long, either that or 
I'm just thick, but whichever it is I can't seem to get the side panel 
working as 'I' think it should, and that is perhaps the problem.
   Has anyone got a simple example of using the side panel that they 
would be willing to share, or perhaps cook up a small sample app showing 
it's usage? Nothing fancy, just the side panel hosting a push button 
would do, because whenever I try to use the sidepanel, it slides around 
just fine, but the control contained within it is not visible (kind of 
useless then)... and it has me somewhat perplexed as to the proper 
useage of this component.

Being Thick.. perhaps needing some coffee...
Steve.

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] V4L2 backport do-able?

2009-06-30 Thread Ron

Is it do-able to backport V4L2 to Gambas stable?

I find a lot of video cams/devices using this version, and they do not 
seem to work with the current component.

It gets a bit useless as time goes by

Anyone has taken a shot at this yet?

Kind regards,
Ron_2nd.

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Example MoviePlayer in Black

2009-06-30 Thread craf
Hello. 

I'm trying the example that comes with Gambas, called movieplayer. When
the executive, control Movieplay stays black, and only appears sound. 

System to use: 

Ubuntu Jaunty Jackalope 
Shrimp 2.14
mplayer 2.1.0

any idea?

Regards
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Example MoviePlayer in Black

2009-06-30 Thread Stefano Palmeri
Il martedì 30 giugno 2009 22:50:20 craf ha scritto:
 Hello.

 I'm trying the example that comes with Gambas, called movieplayer. When
 the executive, control Movieplay stays black, and only appears sound.

 System to use:

 Ubuntu Jaunty Jackalope
 Shrimp 2.14
 mplayer 2.1.0

 any idea?

 Regards
 ---
--- ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


It seems to be a gb.gtk problem. Save the MoviePlayer example
in your home directory, then open it again and switch from gb.gtk to gb.qt 
in Project--Properties--Components.

Stefano


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] TreeView example doesn't work

2009-06-30 Thread Stefano Palmeri
TreeView example doesn't work. It simply does nothing.
Gambas 2.13.1.

Stefano

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TreeView example doesn't work

2009-06-30 Thread craf
Did you try with version 2.14?. It seems to have no problems



-Mensaje original-
De: Stefano Palmeri rospolo...@tiscali.it
Reply-to: mailing list for gambas users
gambas-user@lists.sourceforge.net
Para: mailing list for gambas users gambas-user@lists.sourceforge.net
Asunto: [Gambas-user] TreeView example doesn't work
Fecha: Tue, 30 Jun 2009 23:47:04 +0200


TreeView example doesn't work. It simply does nothing.
Gambas 2.13.1.

Stefano

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Side panel example??

2009-06-30 Thread richard terry
On Wed, 1 Jul 2009 02:00:54 am Stephen Bungay wrote:
Using Gambas 2.1.2 on KUbuntu 8.04.

Perhaps I've been away from Gambas for far too long, either that or
 I'm just thick, but whichever it is I can't seem to get the side panel
 working as 'I' think it should, and that is perhaps the problem.
Has anyone got a simple example of using the side panel that they
 would be willing to share, or perhaps cook up a small sample app showing
 it's usage? Nothing fancy, just the side panel hosting a push button
 would do, because whenever I try to use the sidepanel, it slides around
 just fine, but the control contained within it is not visible (kind of
 useless then)... and it has me somewhat perplexed as to the proper
 useage of this component.

 Being Thick.. perhaps needing some coffee...
 Steve.

 ---
--- ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

You must have a bug in your system somewhere, as on my machine it looks like 
the pictures shown.

Regards

Richard



steve-0.0.1.tar.gz
Description: application/tgz
attachment: sidepanel1.pngattachment: sidepanel2.png--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Example MoviePlayer in Black

2009-06-30 Thread Benoît Minisini
 ¡Was absolutely right!.

 Thank you very much

 Regards


Anyway, it should work with gb.gtk too. This needs some investigation...

-- 
Benoît

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in package creator?

2009-06-30 Thread Benoît Minisini
 Le mardi 30 juin 2009 23:26:06 Leonardo Miliani, vous avez écrit :
  Benoît Minisini ha scritto:
   In revision #2044, you can now use any database driver as a component
   and check it in the IDE project property dialog. This way, they can be
   an explicit dependency when generating a package.
  
   So you will get it in the upcoming 2.14 version.
 
  Several users have confirmed me that the bug still persists...
  If they specify Connection.Type=sqlite3 inside their programs and then
  they compile them, on the destination computers the component
  gb.db.sqlite isn't marked as a dependency and so the application doesn't
  start/work.

 I guess you must add gb.db.sqlite3 in project property.

 project - properties - components tab

 ++


Yes! There is no magic in dependencies. They are all explicit.

Regards,

-- 
Benoît

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Side panel example??

2009-06-30 Thread Stephen Bungay
   Hi Richard;

Thanks for that, at least I was starting to think I was becoming 
thick-in-the-head. You're probably right, I hate second-guessing the 
tools, no error on run-time, but no button showing up either. I'm using 
the package from the KUbuntu 8.04 repo.. perhaps it has problems.

richard terry wrote:
 On Wed, 1 Jul 2009 02:00:54 am Stephen Bungay wrote:
Using Gambas 2.1.2 on KUbuntu 8.04.

Perhaps I've been away from Gambas for far too long, either that or
 I'm just thick, but whichever it is I can't seem to get the side panel
 working as 'I' think it should, and that is perhaps the problem.
Has anyone got a simple example of using the side panel that they
 would be willing to share, or perhaps cook up a small sample app showing
 it's usage? Nothing fancy, just the side panel hosting a push button
 would do, because whenever I try to use the sidepanel, it slides around
 just fine, but the control contained within it is not visible (kind of
 useless then)... and it has me somewhat perplexed as to the proper
 useage of this component.

 Being Thick.. perhaps needing some coffee...
 Steve.

 ---
 --- ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 You must have a bug in your system somewhere, as on my machine it looks like 
 the pictures shown.
 
 Regards
 
 Richard
 
 
 
 
 
 
 
 
 
 
 
 --
 
 
 
 
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user