473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

32 bit or 64 bit?

Quick question:
I have python code that does a lot of floating point arithmetic. How
do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If
I'll install a 64-bit operating system, will that do the trick?
Jun 27 '08 #1
29 5763
ra********@gmail.com wrote:
Quick question:
I have python code that does a lot of floating point arithmetic. How
do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If
I'll install a 64-bit operating system, will that do the trick?
The Python float type uses a C double internally which is 64 bit even on 32
bit CPUs.

Peter
Jun 27 '08 #2
On Jun 15, 2:48*pm, Peter Otten <__pete...@web.dewrote:
ram.rac...@gmail.com wrote:
Quick question:
I have python code that does a lot of floating point arithmetic. How
do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If
I'll install a 64-bit operating system, will that do the trick?

The Python float type uses a C double internally which is 64 bit even on 32
bit CPUs.

Peter
Does it mean that even now it does arithmetic in 64 bit?
I'm not getting enough precision. Is there any way to increase it?

Ram.
Jun 27 '08 #3
ra********@gmail.com wrote:
On Jun 15, 2:48Â*pm, Peter Otten <__pete...@web.dewrote:
>ram.rac...@gmail.com wrote:
Quick question:
I have python code that does a lot of floating point arithmetic. How
do I make it do the arithmetic in 64 bit? (I have a 64 bit CPU.) If
I'll install a 64-bit operating system, will that do the trick?

The Python float type uses a C double internally which is 64 bit even on
32 bit CPUs.

Peter

Does it mean that even now it does arithmetic in 64 bit?
Yes. See

http://en.wikipedia.org/wiki/IEEE_fl...ecision_64_bit

for details.
I'm not getting enough precision. Is there any way to increase it?
http://gmpy.sourceforge.net/

If by "not enough precision" you mean you are bothered by
>>.1
0.10000000000000001

have a look at the decimal module, see

http://docs.python.org/lib/module-decimal.html

Peter
Jun 27 '08 #4
ra********@gmail.com wrote:
Does it mean that even now it does arithmetic in 64 bit?
I'm not getting enough precision. Is there any way to increase it?
Buy a good book about numerics or take a course. ;)

Seriously, computers and IEEE 754 floating point numbers have a lot of
pit falls. If you chose the wrong algorithm you *will* get wrong
results. With floats a*b*c and a*c*b can give you a different result.

The decimal module is not an option if you need speed.

Jun 27 '08 #5
On Jun 15, 5:05*pm, Christian Heimes <li...@cheimes.dewrote:
ram.rac...@gmail.com wrote:
Does it mean that even now it does arithmetic in 64 bit?
I'm not getting enough precision. Is there any way to increase it?

Buy a good book about numerics or take a course. ;)

Seriously, computers and IEEE 754 floating point numbers have a lot of
pit falls. If you chose the wrong algorithm you *will* get wrong
results. With floats a*b*c and a*c*b can give you a different result.

The decimal module is not an option if you need speed.
I do need speed. Is there an option?
Jun 27 '08 #6
I do need speed. Is there an option?
Mind telling us what you *actually* want to achieve? (What do you want to
calculate?)

Christian

Jun 27 '08 #7
On Jun 15, 6:58*pm, Christian Meesters <meest...@uni-mainz.dewrote:
I do need speed. Is there an option?

Mind telling us what you *actually* want to achieve? (What do you want to
calculate?)

Christian
Physical simulations of objects with near-lightspeed velocity.
Jun 27 '08 #8
ra********@gmail.com wrote:
On Jun 15, 6:58Â*pm, Christian Meesters <meest...@uni-mainz.dewrote:
I do need speed. Is there an option?

Mind telling us what you *actually* want to achieve? (What do you want to
calculate?)

Christian

Physical simulations of objects with near-lightspeed velocity.
How did you determine that standard python floats are not good enough?
Everything beyond that is unlikely to be supported by the hardware and will
therefore introduce a speed penalty.

Did you try gmpy?

Peter
Jun 27 '08 #9
Peter Otten wrote:
>
How did you determine that standard python floats are not good enough?
Everything beyond that is unlikely to be supported by the hardware and
will therefore introduce a speed penalty.

Did you try gmpy?
I would like to add: If Python's precision (or that of additional modules)
won't do it for you, look around what other people in the physics community
are using.

Christian
Jun 27 '08 #10
On Jun 15, 7:43*pm, Peter Otten <__pete...@web.dewrote:
ram.rac...@gmail.com wrote:
On Jun 15, 6:58*pm, Christian Meesters <meest...@uni-mainz.dewrote:
I do need speed. Is there an option?
Mind telling us what you *actually* want to achieve? (What do you want to
calculate?)
Christian
Physical simulations of objects with near-lightspeed velocity.

How did you determine that standard python floats are not good enough?
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
Everything beyond that is unlikely to be supported by the hardware and will
therefore introduce a speed penalty.
I have thought of that as well. However I have no choice. I must do
these calculations. If you know of any way that is supported by the
hardware, it will be terrific, but for now the slower things will have
to do.
Did you try gmpy?
Not yet: I was kind of set back when I saw their homepage was last
updated 2002. But I'll give it a try. You think it's the best thing
there is?

Thanks,
Ram.
Jun 27 '08 #11
ra********@gmail.com wrote:
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
That the values are possible doesn't mean that you can trust them.
I concluded that I need Python to work at a higher precision.
How is WorkingPrecision defined? Python floats have about 16 significant
digits in base 10, so at first glance I would guess that you switched to
a /lower/ precision.

But I've come to agree with Christian that it would be good to show your
model to a physics and/or numerical maths expert. Perhaps you can find a
way for the errors to cancel out rather than accumulate.

Peter

Jun 27 '08 #12
Not yet: I was kind of set back when I saw their homepage was last
updated 2002. But I'll give it a try. You think it's the best thing
there is?

Thanks,
Ram.
gmpy has moved to Google.

http://code.google.com/p/gmpy/

gmpy only support the basic floating point operations so it may not be
sufficient for your needs.

A couple alternatives:

1) mpmath is a pure-Python, arbitrary precision floating-point
package. It will be faster than Decimal but slower than gmpy.
http://code.google.com/p/mpmath/

2) Sage is an open-source mathematics software package. It uses Python
as it glue/scripting language. It includes support for MPFR, a
multiple-precision floating point library based on GMP. www.sagemath.org

casevh
Jun 27 '08 #13
On Jun 15, 12:10*pm, "ram.rac...@gmail.com" <ram.rac...@gmail.com>
wrote:
On Jun 15, 7:43*pm, Peter Otten <__pete...@web.dewrote:
ram.rac...@gmail.com wrote:
On Jun 15, 6:58*pm, Christian Meesters <meest...@uni-mainz.dewrote:
I do need speed. Is there an option?
>Mind telling us what you *actually* want to achieve? (What do you want to
>calculate?)
>Christian
Physical simulations of objects with near-lightspeed velocity.
How did you determine that standard python floats are not good enough?

I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
Everything beyond that is unlikely to be supported by the hardware and will
therefore introduce a speed penalty.

I have thought of that as well. However I have no choice. I must do
these calculations. If you know of any way that is supported by the
hardware, it will be terrific, but for now the slower things will have
to do.
Did you try gmpy?

Not yet: I was kind of set back when I saw their homepage was last
updated 2002.
Try looking here:

http://code.google.com/p/gmpy/

The developers have abandoned SourceForge.
But I'll give it a try. You think it's the best thing
there is?
I haven't tried everything, but it's very good.
You might also want to go to the GMP site itself
and get their manual. Likee anything else, your
results will be no better than your algorithms.
>
Thanks,
Ram.
Jun 27 '08 #14

<ra********@gmail.comwrote in message
news:12**********************************@2g2000hs n.googlegroups.com...
|How did you determine that standard python floats are not good enough?

| I have a physical system set up in which a body is supposed to
| accelerate and to get very close to lightspeed, while never really
|attaining it.

Just a thought. You might do better if you can rearrange your equations in
terms of c-v instead of v. Letting c=1, you cannot accutrately express
v = .99999999999999999999
in Python, but can easily express
1-v = .00000000000000000001.
And so on.

tjr


Jun 27 '08 #15
On Jun 15, 10:01*pm, "Terry Reedy" <tjre...@udel.eduwrote:
<ram.rac...@gmail.comwrote in message

news:12**********************************@2g2000hs n.googlegroups.com...
|How did you determine that standard python floats are not good enough?

| I have a physical system set up in which a body is supposed to
| accelerate and to get very close to lightspeed, while never really
|attaining it.

Just a thought. *You might do better if you can rearrange your equationsin
terms of c-v instead of v. *Letting c=1, you cannot accutrately express
v = .99999999999999999999
in Python, but can easily express
1-v = .00000000000000000001.
And so on.

tjr
Good idea Terry, I'll think about it.
Jun 27 '08 #16
On Jun 15, 8:52*pm, Peter Otten <__pete...@web.dewrote:
ram.rac...@gmail.com wrote:
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.

That the values are possible doesn't mean that you can trust them.
I do not understand this comment.
I concluded that I need Python to work at a higher precision.

How is WorkingPrecision defined? Python floats have about 16 significant
digits in base 10, so at first glance I would guess that you switched to
a /lower/ precision.
I don't know how WorkingPrecision is defined. However, I think it's
not lower, it's higher.
But I've come to agree with Christian that it would be good to show your
model to a physics and/or numerical maths expert. Perhaps you can find a
way for the errors to cancel out rather than accumulate.
I might try that.

Jun 27 '08 #17
On Jun 15, 9:31*pm, casevh <cas...@gmail.comwrote:
Not yet: I was kind of set back when I saw their homepage was last
updated 2002. But I'll give it a try. You think it's the best thing
there is?
Thanks,
Ram.

gmpy has moved to Google.

http://code.google.com/p/gmpy/

gmpy only support the basic floating point operations so it may not be
sufficient for your needs.

A couple alternatives:

1) mpmath is a pure-Python, arbitrary precision floating-point
package. It will be faster than Decimal but slower than gmpy.http://code.google.com/p/mpmath/

2) Sage is an open-source mathematics software package. It uses Python
as it glue/scripting language. It includes support for MPFR, a
multiple-precision floating point library based on GMP. *www.sagemath.org

casevh
Thanks a bundle!
Jun 27 '08 #18
On Jun 15, 9:41*pm, Mensanator <mensana...@aol.comwrote:
On Jun 15, 12:10*pm, "ram.rac...@gmail.com" <ram.rac...@gmail.com>
wrote:
On Jun 15, 7:43*pm, Peter Otten <__pete...@web.dewrote:
ram.rac...@gmail.com wrote:
On Jun 15, 6:58*pm, Christian Meesters <meest...@uni-mainz.dewrote:
I do need speed. Is there an option?
Mind telling us what you *actually* want to achieve? (What do you want to
calculate?)
Christian
Physical simulations of objects with near-lightspeed velocity.
How did you determine that standard python floats are not good enough?
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
Everything beyond that is unlikely to be supported by the hardware andwill
therefore introduce a speed penalty.
I have thought of that as well. However I have no choice. I must do
these calculations. If you know of any way that is supported by the
hardware, it will be terrific, but for now the slower things will have
to do.
Did you try gmpy?
Not yet: I was kind of set back when I saw their homepage was last
updated 2002.

Try looking here:

http://code.google.com/p/gmpy/

The developers have abandoned SourceForge.
But I'll give it a try. You think it's the best thing
there is?

I haven't tried everything, but it's very good.
You might also want to go to the GMP site itself
and get their manual. Likee anything else, your
results will be no better than your algorithms.
Thanks,
Ram.
I'll check it out, thanks.
Jun 27 '08 #19
ra********@gmail.com wrote:
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
I conclude that your algorithm is numerical wrong. It probably suffers
from a rounding error which increases itself in every iteration.
Increasing the precision doesn't solve your problem. It's only going to
hide the fact that your algorithm doesn't do its job.

Please don't get me wrong. I don't want to imply that you are an idiot
who doesn't know what he is doing. :] Most likely you weren't taught how
to write numerical sound algorithms. Let's all blame your school or
university. *g*

Numerics is a complex area and it took me more than a year to learn the
basics. Don't be embarrassed!

Jun 27 '08 #20
On Jun 15, 11:30*pm, Christian Heimes <li...@cheimes.dewrote:
ram.rac...@gmail.com wrote:
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.

I conclude that your algorithm is numerical wrong. It probably suffers
from a rounding error which increases itself in every iteration.
Increasing the precision doesn't solve your problem. It's only going to
hide the fact that your algorithm doesn't do its job.

Please don't get me wrong. I don't want to imply that you are an idiot
who doesn't know what he is doing. :] Most likely you weren't taught how
to write numerical sound algorithms. Let's all blame your school or
university. *g*

Numerics is a complex area and it took me more than a year to learn the
basics. Don't be embarrassed!
I'll try to read some. But I used mpmath to pump up the precision in
my code, and now the problem doesn't happen. So I think it's okay for
now.
Jun 27 '08 #21
On Jun 16, 12:57*am, "ram.rac...@gmail.com" <ram.rac...@gmail.com>
wrote:
On Jun 15, 11:30*pm, Christian Heimes <li...@cheimes.dewrote:
ram.rac...@gmail.com wrote:
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
I conclude that your algorithm is numerical wrong. It probably suffers
from a rounding error which increases itself in every iteration.
Increasing the precision doesn't solve your problem. It's only going to
hide the fact that your algorithm doesn't do its job.
Please don't get me wrong. I don't want to imply that you are an idiot
who doesn't know what he is doing. :] Most likely you weren't taught how
to write numerical sound algorithms. Let's all blame your school or
university. *g*
Numerics is a complex area and it took me more than a year to learn the
basics. Don't be embarrassed!

I'll try to read some. But I used mpmath to pump up the precision in
my code, and now the problem doesn't happen. So I think it's okay for
now.
Thanks to all contributors for your advice.

Ram Rachum.
Jun 27 '08 #22
ra********@gmail.com wrote:
On Jun 15, 7:43 pm, Peter Otten <__pete...@web.dewrote:
>ram.rac...@gmail.com wrote:
>>On Jun 15, 6:58 pm, Christian Meesters <meest...@uni-mainz.dewrote:
I do need speed. Is there an option?
Mind telling us what you *actually* want to achieve? (What do you want to
calculate?)
Christian
Physical simulations of objects with near-lightspeed velocity.
How did you determine that standard python floats are not good enough?

I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
>Everything beyond that is unlikely to be supported by the hardware and will
therefore introduce a speed penalty.

I have thought of that as well. However I have no choice. I must do
these calculations. If you know of any way that is supported by the
hardware, it will be terrific, but for now the slower things will have
to do.
You need to change your representation. Try redoing the algebra using
(c-v) as the independent variable, and calculate that.

Cheers,

Phil Hobbs
Jun 27 '08 #23
On Jun 17, 3:13*pm, Phil Hobbs
<pcdhSpamMeSensel...@electrooptical.netwrote:
ram.rac...@gmail.com wrote:
On Jun 15, 7:43 pm, Peter Otten <__pete...@web.dewrote:
ram.rac...@gmail.com wrote:
On Jun 15, 6:58 pm, Christian Meesters <meest...@uni-mainz.dewrote:
I do need speed. Is there an option?
Mind telling us what you *actually* want to achieve? (What do you want to
calculate?)
Christian
Physical simulations of objects with near-lightspeed velocity.
How did you determine that standard python floats are not good enough?
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
Everything beyond that is unlikely to be supported by the hardware and will
therefore introduce a speed penalty.
I have thought of that as well. However I have no choice. I must do
these calculations. If you know of any way that is supported by the
hardware, it will be terrific, but for now the slower things will have
to do.

You need to change your representation. *Try redoing the algebra using
(c-v) as the independent variable, and calculate that.

Cheers,

Phil Hobbs
That was suggested. Problem is, that sometimes the velocities are near
zero. So this solution, by itself, is not general enough.
Jun 27 '08 #24

<ra********@gmail.comwrote in message
news:10**********************************@r66g2000 hsg.googlegroups.com...
>That was suggested. Problem is, that sometimes the velocities are near
zero. So this solution, by itself, is not general enough.
Maybe working in p, and delta-p would be more stable.
Jun 27 '08 #25
ra********@gmail.com wrote:
>
That was suggested. Problem is, that sometimes the velocities are near
zero. So this solution, by itself, is not general enough.
Are you sure? I sort of doubt that you're spending zillions of
iterations getting closer and closer to zero. It would be worth
actually doing the error analysis and finding out.

Cheers,

Phil Hobbs
Jun 27 '08 #26
On Tue, 17 Jun 2008 08:13:40 -0400, Phil Hobbs wrote:
ra********@gmail.com wrote:
[snip]
>I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
[snip]
You need to change your representation. Try redoing the algebra using
(c-v) as the independent variable, and calculate that.
Or represent the velocity as c*tanh(b), where b is the independent
variable. If memory serves, this is the representation in which
constant acceleration corresponds to db/dt = constant.

--
To email me, substitute nowhere->spamcop, invalid->net.
Jun 27 '08 #27
On Jun 17, 5:04*pm, "Richard Brodie" <R.Bro...@rl.ac.ukwrote:
<ram.rac...@gmail.comwrote in message

news:10**********************************@r66g2000 hsg.googlegroups.com...
That was suggested. Problem is, that sometimes the velocities are near
zero. So this solution, by itself, is not general enough.

Maybe working in p, and delta-p would be more stable.
That's a good one. It will, however, involve complicated calculations
for obtaining v from p, so it might be slower than mpmath. I'll
consider it.
Jun 27 '08 #28
On Jun 18, 7:12*pm, Peter Pearson <ppear...@nowhere.invalidwrote:
On Tue, 17 Jun 2008 08:13:40 -0400, Phil Hobbs wrote:
ram.rac...@gmail.com wrote:
[snip]
I have a physical system set up in which a body is supposed to
accelerate and to get very close to lightspeed, while never really
attaining it. After approx. 680 seconds, Python gets stuck and tells
me the object has passed lightspeed. I put the same equations in
Mathematica, again I get the same mistake around 680 seconds. So I
think, I have a problem with my model! Then I pump up the
WorkingPrecision in Mathematica to about 10. I run the same equations
again, and it works! At least for the first 10,000 seconds, the object
does not pass lightspeed.
I concluded that I need Python to work at a higher precision.
[snip]
You need to change your representation. *Try redoing the algebra using
(c-v) as the independent variable, and calculate that.

Or represent the velocity as c*tanh(b), where b is the independent
variable. *If memory serves, this is the representation in which
constant acceleration corresponds to db/dt = constant.

--
To email me, substitute nowhere->spamcop, invalid->net.
See my comment to Brodie.
Jun 27 '08 #29
On Jun 18, 3:02*am, Phil Hobbs
<pcdhSpamMeSensel...@electrooptical.netwrote:
ram.rac...@gmail.com wrote:
That was suggested. Problem is, that sometimes the velocities are near
zero. So this solution, by itself, is not general enough.

Are you sure? *I sort of doubt that you're spending zillions of
iterations getting closer and closer to zero. * It would be worth
actually doing the error analysis and finding out.

Cheers,

Phil Hobbs

See my comment to Brodie.
Jun 27 '08 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.