Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege)

2013-07-15 Thread Randall Morgan
Bruce, The blob data type is a binary object and is a MySQL data type. Not a Gambas data type. It is used in a few other databases as well. On Mon, Jul 15, 2013 at 10:05 PM, Bruce wrote: > On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: > 8< > > Picture files _are_ binary files. But any

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege)

2013-07-15 Thread Bruce
On Mon, 2013-07-15 at 22:11 +0200, Tobias Boege wrote: 8< > Picture files _are_ binary files. But anyways, to get this thread done, I > have attached a sample project which lets you import and export binary > files of any kind to a local SQLite3 database. > > You should look carefully at the expor

Re: [Gambas-user] Receiving an email

2013-07-15 Thread Randall Morgan
Yes, either passing your credentials , host and port info via the command line or storing it in a settings file would be best. What I sent should NOT be used as is!!! It has many issues I am sure. It was just a quick example to get you started. On Mon, Jul 15, 2013 at 3:57 PM, Sebastian Kulesz w

Re: [Gambas-user] Receiving an email

2013-07-15 Thread Sebastian Kulesz
You could use a cron tab to run the script Randall just sent. There is a POP3Client example you can open with the gambas IDE to know how it works. Just execute the app every x minutes and you are done! Remember not to hardcode your username and password. You will regret later On Mon, Jul 15, 201

Re: [Gambas-user] Receiving an email

2013-07-15 Thread Randall Morgan
Here's a really quick and dirty sample of using the gd.net.pop3 mail client using the command line project type: ' Gambas module file Public Sub Main() Dim hConn As New Pop3Client Dim sMailIds As String[] Dim sMailId As String Dim Stats As Integer[] Dim iCount As Integer Dim iSize As Intege

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO Lenz McKAY) (Tobias Boege)

2013-07-15 Thread Tobias Boege
On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote: > > Picture files _are_ binary files. But anyways, to get this thread done, I > > have attached a sample project which lets you import and export binary > > files of any kind to a local SQLite3 database. > > > ummm i'ts streange, i think that too, but

Re: [Gambas-user] Receiving an email

2013-07-15 Thread Tobias Boege
On Mon, 15 Jul 2013, Rolf-Werner Eilert wrote: > Thanks for your advice, Randall. > > Am 15.07.2013 17:16, schrieb Randall Morgan: > > Is your email pop3, IMAP, MAPI, or webmail? The way you approach this > > depends on the target system. > > It is pop3 and it is my own vserver for my firm's webs

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO Lenz McKAY) (Tobias Boege)

2013-07-15 Thread PICCORO McKAY Lenz
> Picture files _are_ binary files. But anyways, to get this thread done, I > have attached a sample project which lets you import and export binary > files of any kind to a local SQLite3 database. > ummm i'ts streange, i think that too, but dont work.. i'll try the code u provide me.. wheantime, i

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO Lenz McKAY) (Randall Morgan)

2013-07-15 Thread PICCORO McKAY Lenz
From: Randall Morgan > I'm guessing Piccoro's tone is due to his frustraition with trying to > comprehend the way GAMBAS works. This is the place to ask for help but not > the place to post insults. But we must also be understanding of new users > in the forum. > i'm sure u are not under pressure

Re: [Gambas-user] Receiving an email

2013-07-15 Thread Rolf-Werner Eilert
Thanks for your advice, Randall. Am 15.07.2013 17:16, schrieb Randall Morgan: > Is your email pop3, IMAP, MAPI, or webmail? The way you approach this > depends on the target system. It is pop3 and it is my own vserver for my firm's website. > > IMHO pop3 would be the easiest. There you would onl

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege)

2013-07-15 Thread Tobias Boege
On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote: > hello tobias, are u a devel of gambas? i could help with documentation > lacks, i see the pending tasks ... If you want to help with the documentation - and more importantly: if you have time to do so -, you should contact Benoit Minisini who'll gra

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz)

2013-07-15 Thread Randall Morgan
I'm guessing Piccoro's tone is due to his frustraition with trying to comprehend the way GAMBAS works. This is the place to ask for help but not the place to post insults. But we must also be understanding of new users in the forum. Piccoro, there is no easy way to learn anything other than doing

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz) (Tobias Boege)

2013-07-15 Thread PICCORO McKAY Lenz
hello tobias, are u a devel of gambas? i could help with documentation lacks, i see the pending tasks ... From: Tobias Boege > > but in open line said "file not exits" .. i wish to create the file from > > stream.. not open for write > So you want to write to it and to create it if it doesn't exi

Re: [Gambas-user] Gambas-user Digest, Vol 86, Issue 16

2013-07-15 Thread PICCORO McKAY Lenz
> data = wtable["hex_huelladactilar"] > > If Exist(User.Home &/ ".fprint/0002//1") Then > > Kill User.Home &/ ".fprint/0002//1" > > Endif > > myFinger = Open User.Home &/ ".fprint/0002//1" For > Write > >

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-15 Thread Ru Vuott
> libfontconfig seems to make problems. > But I don't know about this library either... Uhmmm... maybe is this ? http://www.freedesktop.org/wiki/Software/fontconfig/ Lun 15/7/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] A "Callback" f

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-15 Thread Tobias Boege
On Mon, 15 Jul 2013, Ru Vuott wrote: > Hello, > > well, I did the backtrace. > > Here I attach 2 text files: > > - test WITH Real-Time ENABLED Jack option; > > - test Real-Time NO ENABLED Jack option. > I'm sorry for your trouble - looks like I can't read anything meaningful out of these back

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-15 Thread Ru Vuott
Hello, well, I did the backtrace. Here I attach 2 text files: - test WITH Real-Time ENABLED Jack option; - test Real-Time NO ENABLED Jack option. regards. vuott Lun 15/7/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] A "Callback

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz)

2013-07-15 Thread Tobias Boege
On Mon, 15 Jul 2013, PICCORO McKAY Lenz wrote: > after long time of various triyngs get some example and got this error now: > > > data = wtable["hex_huelladactilar"] > If Exist(User.Home &/ ".fprint/0002//1") Then > Kill User.Home &/ ".fprint/0

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz)

2013-07-15 Thread Olivier Cruilles
Hi, It's because you wrote just WRITE in the OPEN line. You need to add CREATE because the file does not exist and the command must create it. If the file was existing, put just WRITE to write into. Cordialement, Olivier Cruilles Mail: linu...@club-internet.fr Le 15 juil. 2013 à 17:40, PICCOR

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz)

2013-07-15 Thread PICCORO McKAY Lenz
i modified the line: myFinger = Open User.Home &/ ".fprint/0002//1" For Write and added Create but now: the wtable["hex_huelladactilar"] its a blob type, the blob type only provides me the Data converter to string representation.. so i cannot write to stream.. there's any othe

Re: [Gambas-user] Hot to load and savbe to DB a binary file (not image either archive strings) (PICCORO McKAY Lenz)

2013-07-15 Thread PICCORO McKAY Lenz
after long time of various triyngs get some example and got this error now: data = wtable["hex_huelladactilar"] If Exist(User.Home &/ ".fprint/0002//1") Then Kill User.Home &/ ".fprint/0002//1" Endif myFinger = Op

Re: [Gambas-user] Receiving an email

2013-07-15 Thread Randall Morgan
Is your email pop3, IMAP, MAPI, or webmail? The way you approach this depends on the target system. IMHO pop3 would be the easiest. There you would only need to access your mail account to download the emails for processing. Gambas has PDF generation capabilities so that is not an issue. Another w

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-15 Thread Ru Vuott
Well, thank you. Today in the evening I'll do the backtrace. vuott Lun 15/7/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] A "Callback" function doesn't work. A: "mailing list for gambas users" Data: Lunedì 15 luglio 2013, 11:15 On

[Gambas-user] Receiving an email

2013-07-15 Thread Sprachschule Eilert
For a Gambas script, I'm looking for an easy way of receiving an email from my webserver. There is a contact form on our website, and it sends an email with the contact data to me. The idea is to have another contact form which is an application form, and to process these data by a Gambas to ma

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-15 Thread Tobias Boege
On Mon, 15 Jul 2013, Ru Vuott wrote: > > > I don't like to guess. The backtrace would maybe clear this up... > > > > Regards, > > Tobi > > > Hello Tobias, > > uhmm... how can I get the backtrace of the function ? > $ cd your/project/dir $ gbc3 -ga $ gdb gbx3 ... (gdb) r ... (gdb) bt There'

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-15 Thread Ru Vuott
> I don't like to guess. The backtrace would maybe clear this up... > > Regards, > Tobi Hello Tobias, uhmm... how can I get the backtrace of the function ? bye vuot -- See everything from the browser to the data

Re: [Gambas-user] A "Callback" function doesn't work.

2013-07-15 Thread Tobias Boege
On Mon, 15 Jul 2013, Ru Vuott wrote: > > > > Problem may be here: > > "sizeof (jack_default_audio_sample_t) * nframes);" > > "memcpy(outp, inp, SizeOf(gb.Float) * nframes)" > > > > Is it really float, instead of single (in C float and double)? > > > > Jussi > > > Hello Jussi, > > I tried