encode base64
Jeff,
I would not expect such a violent attack and blackmailing, but certainly you
have the right to express your feelings. I do not think I deserved it. I
believe I gave the community more programming techniques and tricks than
most of others.
As for the dynamic function calls - you are mistaken - I published the first
method for dynamic function execution using filters as soon as I found it
and before I wrote Vladdy. I did not bother publishing the performance
improvement with the assembler hack, since firstly I had no feedback or sign
of interest after publishing the first method, then the functionality is
identical, and lastly it required modifying the assembler, hence it was not
really a "clean" solution.
Am I creating a market advantage? Hmm, yes, probably yes, though I believe
everybody does it. I guess you are also not going to publish all your source
code. I've spent several days of experimenting and testing, before I found
the right way and managed to get the binary reading working. Although I love
to share various tricks with the community, this one was not easy to find,
and the effort has to pay back first.
Maybe, if you had asked and insisted politely without offences, I could had
changed my mind and published the trick, but I definitely won't do it under
such blackmailing pressure.
Sorry for that,
Ivo
http://mivo.truxoft.com
-----Original Message-----
From: Jeff Huber - Listmail
Ivo,
Since I, or any other developer that has released one or more
Miva Merchant modules could reasonably be considered your
"competitor", and since most of the people in that group, or I
assume most of them, could already easily release a Miva Merchant
software solution that attached files to email very easily and
thus compete with MmATTACH if we wanted to, I think it is a bad
excuse not to share the coding technique on this list.
This list has always been a place where people with a shared
interest for or in some cases a love of the Miva script language
can share experiences and work together to improve the ability of
all of use using the language.
There are a significant number of people that make a lot of money
selling Miva Merchant modules that learned a lot about how to
program from Myself and the other "core" members of this list and
they are our "competitors" now in one sense or another. I always
considered you one of the "core" members because I never saw you
hold back information based on some stupid market advantage
excuse, and because I thought that you, like many others, had a
fondness for the language that often goes beyond it's commercial
worth.
If you aren't going to share a technique of using the language
then it seems to me that maybe you are no longer really "One of
us". Maybe you have succumbed to the "dark side" and become "one
of them", whoever "them" is.
Many people who use Miva script only have Miva script as a
scripting option, they can't use other means, and for them, who
are not your "competitors" and who are the people who used to be
the only type of people on this list, knowing that technique
might be very nice.
The fact that you don't want to share it with the community
because of some supposed, and I believe non existent, market
advantage. makes me think less of you than I used to.
Especially when I combine this current event with the reaction
you had when Darren Ehlers posted his assembler file technique to
allow dynamic function calls and you quickly jumped in and said
that was an old obvious technique you had been using for a long
time with the Vladdy engine, and yet you had never seen fit to
publish the technique on this list. I guess that was another
market advantage that you didn't want to give up, and yet you
sure wanted to jump in and claim credit for the technique after
the fact.
I wonder if there are more of you than I realize and maybe that
is why we (Meaning Jeff Collins, myself, and a few others) found
it so hard to get support for the Miva script Open source
project.
When people have asked questions about things I have never
hesitated to answer and even provide source code, just because
what we were doing was a technique used in a Miva Merchant
module.
I am saddened by your attitude Ivo, adn even though it may not
mean anythign to you I am also dissapointed in you.
I hope you will see the error of your ways and "come back into
the light".
I shouldn't send this to the list because I am not in a calm and
rational frame of mind, but I usually avoid posting when I am
annoyed and upset for fear that I will say something I will
regret later.
In this case I don't care.
- Jeff Huber
President 4TheBest eCommerce Solutions
http://4TheBest.com
[email protected]
Office: 760-742-1469
Cell: 760-445-8454
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ivo Truxa
Sent: Tuesday, October 12, 2004 4:04 PM
To: 'Miva Users List'
Subject: RE: [meu] encode base64
Yes, it _is_ possible to achieve it in plain Miva Script.
Unfortunately, I
cannot disclose the exact way, because one of my commercial
products is
based on the trick (MmATTACH) and disclosing it would endanger
its market
position. The trick is not quite simple; it uses secondary
effects of
unexpected functions, but it works fine.
In case of need I could provide a compiled library containing the
function,
though. Better told, I could disclose the way how to call the
function from
the MmATTACH module (after adjusting it little bit), when
installed on the
system.
Just please note that the encoding is not very fast and not well
suitable
for files bigger than few hundreds of kilobytes. Whenever
possible, using an
external encoder like MimeConv 2 freely available on my website
is a much
faster solution.
Ivo
http://mivo.truxoft.com
-----Original Message-----
From: Jeff Huber - Listmail
Ahh, but if you can get the file into a string then you can use
it :)
We actually got very close to an algorithm that would let us
GUESS at the file contents enough that we could suck up files
using MvIMPORT and the encode them and manipulate them.
In fact we have successfully done it with a number of files but
it is not stable because if the guesses are wrong then everything
falls apart badly.
The problem of course is rooted in the fact that MvIMPORT is
specifically intended to import text files that are considered
one record per line, and a line is determined by the existence of
a LF, CR, or CRLF, which means that Miva eats some of the binary
data and you can't be sure which it eats.
I am holding out hope that we will get a way to read files in a
more raw manner into variables sometime after 5.o of Empresa is
released, and if we don't then we will be building and releasing
a file system function library for Miva Empresa VM because we
have some things planned for early next year that we HAVE to have
that functionality for and I have reasons why I want it all done
as Miva script rather than using PHP, Perl, C, etc.
- Jeff Huber
President 4TheBest eCommerce Solutions
http://4TheBest.com
[email protected]
Office: 760-742-1469
Cell: 760-445-8454
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Tuesday, October 12, 2004 2:09 PM
To: 'Claudiu Bischoff'; Miva Users List
Subject: RE: [meu] encode base64
Hi,
I was under the impression that crypto_base64_encode function
only worked on
strings-not files. How exactly do you use the function? -
crypto_base64_encode(l.image_url)???
Bill M.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf
Of Claudiu Bischoff
Sent: Tuesday, October 12, 2004 9:47 AM
To: [email protected]
Subject: [meu] encode base64
Hi all,
I'm trying to encode some images in my automated e-mails (due to
the new
SP2 I cannot use web hosted images in my multimedia e-mails
anymore) and I
want to make this happen with the new miva crypto_base64_encode
function.
The only problem I have is that I don't have the correct result.
I'm
importing the image and encoding it to insert it in my multipart
e-mail
body. All is fine less the encoded result. I have encoded the
same image
with another software and I noticed that the begining of the
encrypted
result is ok.. but after a few characters my miva result change..
Miva encoded image result :
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQg=DBQ=DAsLDBkSE
w8UHRofHh0a
HBw=GDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyM
jIyMjIyMjIy
Mv/AABEIAF8AXQMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQI ..
etc .. etc
VB software encoded image result :
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSE
w8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyI
RwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjL/wA ..
etc .. etc
The VB result is working well with Outlook and other e-mail
clients, but..
the miva one is not working at all (I have a broken image in the
e-mail
body)
Does anybody is aware of some encoding problems with the
crypto_base64_encode(data) function?
PS: I already looked on the Ivo website encoding solution but I
need a 100%
mivascript solution ( if there is one .. :s )
Thanks everybody
Claudiu
Jeff,
I would not expect such a violent attack and blackmailing, but certainly you
have the right to express your feelings. I do not think I deserved it. I
believe I gave the community more programming techniques and tricks than
most of others.
As for the dynamic function calls - you are mistaken - I published the first
method for dynamic function execution using filters as soon as I found it
and before I wrote Vladdy. I did not bother publishing the performance
improvement with the assembler hack, since firstly I had no feedback or sign
of interest after publishing the first method, then the functionality is
identical, and lastly it required modifying the assembler, hence it was not
really a "clean" solution.
Am I creating a market advantage? Hmm, yes, probably yes, though I believe
everybody does it. I guess you are also not going to publish all your source
code. I've spent several days of experimenting and testing, before I found
the right way and managed to get the binary reading working. Although I love
to share various tricks with the community, this one was not easy to find,
and the effort has to pay back first.
Maybe, if you had asked and insisted politely without offences, I could had
changed my mind and published the trick, but I definitely won't do it under
such blackmailing pressure.
Sorry for that,
Ivo
http://mivo.truxoft.com
-----Original Message-----
From: Jeff Huber - Listmail
Ivo,
Since I, or any other developer that has released one or more
Miva Merchant modules could reasonably be considered your
"competitor", and since most of the people in that group, or I
assume most of them, could already easily release a Miva Merchant
software solution that attached files to email very easily and
thus compete with MmATTACH if we wanted to, I think it is a bad
excuse not to share the coding technique on this list.
This list has always been a place where people with a shared
interest for or in some cases a love of the Miva script language
can share experiences and work together to improve the ability of
all of use using the language.
There are a significant number of people that make a lot of money
selling Miva Merchant modules that learned a lot about how to
program from Myself and the other "core" members of this list and
they are our "competitors" now in one sense or another. I always
considered you one of the "core" members because I never saw you
hold back information based on some stupid market advantage
excuse, and because I thought that you, like many others, had a
fondness for the language that often goes beyond it's commercial
worth.
If you aren't going to share a technique of using the language
then it seems to me that maybe you are no longer really "One of
us". Maybe you have succumbed to the "dark side" and become "one
of them", whoever "them" is.
Many people who use Miva script only have Miva script as a
scripting option, they can't use other means, and for them, who
are not your "competitors" and who are the people who used to be
the only type of people on this list, knowing that technique
might be very nice.
The fact that you don't want to share it with the community
because of some supposed, and I believe non existent, market
advantage. makes me think less of you than I used to.
Especially when I combine this current event with the reaction
you had when Darren Ehlers posted his assembler file technique to
allow dynamic function calls and you quickly jumped in and said
that was an old obvious technique you had been using for a long
time with the Vladdy engine, and yet you had never seen fit to
publish the technique on this list. I guess that was another
market advantage that you didn't want to give up, and yet you
sure wanted to jump in and claim credit for the technique after
the fact.
I wonder if there are more of you than I realize and maybe that
is why we (Meaning Jeff Collins, myself, and a few others) found
it so hard to get support for the Miva script Open source
project.
When people have asked questions about things I have never
hesitated to answer and even provide source code, just because
what we were doing was a technique used in a Miva Merchant
module.
I am saddened by your attitude Ivo, adn even though it may not
mean anythign to you I am also dissapointed in you.
I hope you will see the error of your ways and "come back into
the light".
I shouldn't send this to the list because I am not in a calm and
rational frame of mind, but I usually avoid posting when I am
annoyed and upset for fear that I will say something I will
regret later.
In this case I don't care.
- Jeff Huber
President 4TheBest eCommerce Solutions
http://4TheBest.com
[email protected]
Office: 760-742-1469
Cell: 760-445-8454
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ivo Truxa
Sent: Tuesday, October 12, 2004 4:04 PM
To: 'Miva Users List'
Subject: RE: [meu] encode base64
Yes, it _is_ possible to achieve it in plain Miva Script.
Unfortunately, I
cannot disclose the exact way, because one of my commercial
products is
based on the trick (MmATTACH) and disclosing it would endanger
its market
position. The trick is not quite simple; it uses secondary
effects of
unexpected functions, but it works fine.
In case of need I could provide a compiled library containing the
function,
though. Better told, I could disclose the way how to call the
function from
the MmATTACH module (after adjusting it little bit), when
installed on the
system.
Just please note that the encoding is not very fast and not well
suitable
for files bigger than few hundreds of kilobytes. Whenever
possible, using an
external encoder like MimeConv 2 freely available on my website
is a much
faster solution.
Ivo
http://mivo.truxoft.com
-----Original Message-----
From: Jeff Huber - Listmail
Ahh, but if you can get the file into a string then you can use
it :)
We actually got very close to an algorithm that would let us
GUESS at the file contents enough that we could suck up files
using MvIMPORT and the encode them and manipulate them.
In fact we have successfully done it with a number of files but
it is not stable because if the guesses are wrong then everything
falls apart badly.
The problem of course is rooted in the fact that MvIMPORT is
specifically intended to import text files that are considered
one record per line, and a line is determined by the existence of
a LF, CR, or CRLF, which means that Miva eats some of the binary
data and you can't be sure which it eats.
I am holding out hope that we will get a way to read files in a
more raw manner into variables sometime after 5.o of Empresa is
released, and if we don't then we will be building and releasing
a file system function library for Miva Empresa VM because we
have some things planned for early next year that we HAVE to have
that functionality for and I have reasons why I want it all done
as Miva script rather than using PHP, Perl, C, etc.
- Jeff Huber
President 4TheBest eCommerce Solutions
http://4TheBest.com
[email protected]
Office: 760-742-1469
Cell: 760-445-8454
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Tuesday, October 12, 2004 2:09 PM
To: 'Claudiu Bischoff'; Miva Users List
Subject: RE: [meu] encode base64
Hi,
I was under the impression that crypto_base64_encode function
only worked on
strings-not files. How exactly do you use the function? -
crypto_base64_encode(l.image_url)???
Bill M.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf
Of Claudiu Bischoff
Sent: Tuesday, October 12, 2004 9:47 AM
To: [email protected]
Subject: [meu] encode base64
Hi all,
I'm trying to encode some images in my automated e-mails (due to
the new
SP2 I cannot use web hosted images in my multimedia e-mails
anymore) and I
want to make this happen with the new miva crypto_base64_encode
function.
The only problem I have is that I don't have the correct result.
I'm
importing the image and encoding it to insert it in my multipart
body. All is fine less the encoded result. I have encoded the
same image
with another software and I noticed that the begining of the
encrypted
result is ok.. but after a few characters my miva result change..
Miva encoded image result :
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQg=DBQ=DAsLDBkSE
w8UHRofHh0a
HBw=GDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyM
jIyMjIyMjIy
Mv/AABEIAF8AXQMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQI ..
etc .. etc
VB software encoded image result :
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSE
w8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyI
RwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjL/wA ..
etc .. etc
The VB result is working well with Outlook and other e-mail
clients, but..
the miva one is not working at all (I have a broken image in the
body)
Does anybody is aware of some encoding problems with the
crypto_base64_encode(data) function?
PS: I already looked on the Ivo website encoding solution but I
need a 100%
mivascript solution ( if there is one .. :s )
Thanks everybody
Claudiu
Comment