Hi,
Í'm building an interface for registering visitors to an expo. I'm on windows using 0.39.2-extended-test4 and the GUI is made with [gripd].... So, someone inserts his name, mail and phone number in 3 different textboxes in [gripd] and everything is [pack]ed together and added to a [textfile]. The problem is that the phone numbers get converted to scientific numeric format (eg: 0445554241424 = 4.4554e+011), so it´s of no use.
How can I get the 0445554241424 (yes, that's a cellphone) to enter the textfile exactly as it is written in the textbox?
Any help would be greatly appreciated, as this needs to be ready in the next 12 hours... jeje.
adrian.
On Tue Sep 19, 2006 at 05:49:57PM -0500, adrian goya wrote:
Hi,
Í'm building an interface for registering visitors to an expo. I'm on windows using 0.39.2-extended-test4 and the GUI is made with [gripd].... So, someone inserts his name, mail and phone number in 3 different textboxes in [gripd] and everything is [pack]ed together and added to a [textfile]. The problem is that the phone numbers get converted to scientific numeric format (eg: 0445554241424 = 4.4554e+011), so it´s of no use.
How can I get the 0445554241424 (yes, that's a cellphone) to enter the textfile exactly as it is written in the textbox?
Any help would be greatly appreciated, as this needs to be ready in the next 12 hours... jeje.
your best bet may be rewritnig the form in rails. it should take about 12 minutes. PD is not deaigned for what you are doing, the least of which evidenced by its lack of string support, and propensity to reformat numbers to fit its definition of a number..
adrian.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
mmmh,,, well, actually, I think it´s pretty much ok for what I´m doing, I just need to find the best way to make it work. The thing is that the register form has a GEM window in the background where a PMPD patch reacting to keystrokes make spheres dance around your textextruded name as you input your data and the camera changes position when each field is being written. Looks ok. For a non-programmer who doesn´t know what a string is, Pd´s open and non-presumtive design is still a great tool just waiting to be explored...(if you have the time for it, i suppose)
adrian.
On 9/19/06, carmen _@whats-your.name wrote:
On Tue Sep 19, 2006 at 05:49:57PM -0500, adrian goya wrote:
Hi,
Í'm building an interface for registering visitors to an expo. I'm on windows using 0.39.2-extended-test4 and the GUI is made with [gripd]....
So,
someone inserts his name, mail and phone number in 3 different textboxes in [gripd] and everything is [pack]ed together and added to a
[textfile].
The problem is that the phone numbers get converted to scientific
numeric
format (eg: 0445554241424 = 4.4554e+011), so it´s of no use.
How can I get the 0445554241424 (yes, that's a cellphone) to enter the textfile exactly as it is written in the textbox?
Any help would be greatly appreciated, as this needs to be ready in the
next
12 hours... jeje.
your best bet may be rewritnig the form in rails. it should take about 12 minutes. PD is not deaigned for what you are doing, the least of which evidenced by its lack of string support, and propensity to reformat numbers to fit its definition of a number..
adrian.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You can store the phone numbers if you make them a symbol rather than
a float. An easy way to do that is to start the number with a +.
Otherwise, you'll have to break up phone numbers into 6 digit
chunks. Pd's number format can only store 6 digits (unless you are
running 64-bit Pd on a 64-bit computer, then you have many more digits).
.hc
On Sep 19, 2006, at 8:42 PM, adrian goya wrote:
mmmh,,, well, actually, I think it´s pretty much ok for what I´m
doing, I just need to find the best way to make it work. The thing
is that the register form has a GEM window in the background where
a PMPD patch reacting to keystrokes make spheres dance around your
textextruded name as you input your data and the camera changes
position when each field is being written. Looks ok. For a non-programmer who doesn´t know what a string is, Pd´s open
and non-presumtive design is still a great tool just waiting to be
explored...(if you have the time for it, i suppose)adrian.
On 9/19/06, carmen _@whats-your.name wrote: On Tue Sep 19, 2006 at 05:49:57PM -0500, adrian goya wrote:
Hi,
Í'm building an interface for registering visitors to an expo.
I'm on
windows using 0.39.2-extended-test4 and the GUI is made with
[gripd].... So,
someone inserts his name, mail and phone number in 3 different
textboxes
in [gripd] and everything is [pack]ed together and added to a
[textfile].
The problem is that the phone numbers get converted to scientific
numeric
format (eg: 0445554241424 = 4.4554e+011), so it´s of no use.
How can I get the 0445554241424 (yes, that's a cellphone) to
enter the
textfile exactly as it is written in the textbox?
Any help would be greatly appreciated, as this needs to be ready
in the next
12 hours... jeje.
your best bet may be rewritnig the form in rails. it should take
about 12 minutes. PD is not deaigned for what you are doing, the
least of which evidenced by its lack of string support, and
propensity to reformat numbers to fit its definition of a number..adrian.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/
listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Computer science is no more related to the computer than astronomy is
related to the telescope. -Edsger Dykstra
aaargh, i had a problem with this a few weeks ago, cos i had pd open, and got a phone number from my friend, so i just typed it in as a comment in my patch and saved it.
next day i opened the patch so i could get my friend's number and it was 832457e-6 or whatever. i ended up walking the streets of amsterdam all night cos of that.
damn, just a +.... that was easy.. I ended up splitting the numbers in two fields, but it was somewhat awkward,,, for next time, then. thanks,,
adrian
On 9/21/06, hard off hard.off@gmail.com wrote:
aaargh, i had a problem with this a few weeks ago, cos i had pd open, and got a phone number from my friend, so i just typed it in as a comment in my patch and saved it.
next day i opened the patch so i could get my friend's number and it was 832457e-6 or whatever. i ended up walking the streets of amsterdam all night cos of that.
Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
You can store the phone numbers if you make them a symbol rather than
a float. An easy way to do that is to start the number with a +.
Actually this may be a bug in Pd: +1 is the same as 1 but in Pd it isn't (you cannot create a [float +1] object).
Frank Barknecht _ ______footils.org_ __goto10.org__
On Sun, 24 Sep 2006, Frank Barknecht wrote:
Actually this may be a bug in Pd: +1 is the same as 1 but in Pd it isn't (you cannot create a [float +1] object).
Yeah, in nearly every programming language, +1 is parsed as a number literal. Except Pd. This could be called a feature or a bug, but I'd rather have it be a float, by consistency with other systems, and have a way to quote symbols (it's been a while that I haven't talked about quoting...).
Personally I'd rather use strtod() to let the standard C library do the parsing for me. This is except for the problem that it will treat INF, INFINITY, NAN, as floats instead of symbols, but this is easy to circumvent and waaay easier to read than a finite-state-machine written explicitly as a long if-else-if statement chain.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Hallo, Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:
Yeah, in nearly every programming language, +1 is parsed as a number literal. Except Pd. This could be called a feature or a bug,
It could be a feature to circumvent the common beginner's mistake of writing [+1] instead of [+ 1]. However they still can make the same mistake with [-1].
but I'd rather have it be a float,
Me, too.
Frank Barknecht _ ______footils.org_ __goto10.org__