Bitcoin Forum
May 26, 2024, 07:30:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 [83] 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 »
1641  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 11, 2011, 10:35:33 PM
Yeah those are integer values,

var_dump(gmp_strval(gmp_div_q(gmp_init("5"), gmp_init("2"))));

output:
string(1) "2" 

Here's my solution, http://codepad.viper-7.com/tbZ9oD
Code:
<?php

$quot 
gmp_init("5");
$divis gmp_init("2");
# number of decimals
$precision 2;

$shift gmp_pow("10"$precision);
$quot gmp_mul($quot$shift);

$res gmp_div_q($quot$divis);
$repr gmp_strval($res);
$dotpos strlen($repr) - $precision;
$repr substr($repr0$dotpos) . "." substr($repr$dotpos);

echo 
"Number is $repr";
$res gmp_init($repr);

Multiply the quotient by 10^p (p = precision), perform the integer division, convert to string, insert the decimal point, convert back to GMP.
1642  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 11, 2011, 10:00:55 PM
ShadowOfHarbringer: Do you know how to divide numbers in PHP GMP and obtain a decimal number (not quotient + remainder)?
1643  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 11, 2011, 08:53:38 PM
This is stubborness... Now I'm trying to integrate Bitcoin into a website but the JSON-RPC library only returns floats.

Quote
Floating point numbers have limited precision. Although it depends on the system, PHP typically uses the IEEE 754 double precision format, which will give a maximum relative error due to rounding in the order of 1.11e-16. Non elementary arithmetic operations may give larger errors, and, of course, error progragation must be considered when several operations are compounded.

Additionally, rational numbers that are exactly representable as floating point numbers in base 10, like 0.1 or 0.7, do not have an exact representation as floating point numbers in base 2, which is used internally, no matter the size of the mantissa. Hence, they cannot be converted into their internal binary counterparts without a small loss of precision. This can lead to confusing results: for example, floor((0.1+0.7)*10) will usually return 7 instead of the expected 8, since the internal representation will be something like 7.9999999999999991118....

So never trust floating number results to the last digit, and never compare floating point numbers for equality. If higher precision is necessary, the arbitrary precision math functions and gmp functions are available.

Why can't Bitcoin return strings?

You're deliberately breaking with all the languages (python JSON-RPC library, PHP JSON-RPC and Perl JSON-RPC). Using floats anywhere in financial transactions is unacceptable.

php's json_decode DOESN'T support anyway to return floats as strings. The option doesn't exist.
PHP solution: write/maintain my own JSON parser.

Neither does Python's JSON-RPC. Have to write my own JSON-RPC lib using json module instead of using the one that already exists.

Same for Perl.

Really, why is it such a big deal? Bitcoin is broken and this needs fixing.
1644  Bitcoin / Development & Technical Discussion / Re: [REVIEW] Name lookup branch (bitcoind send genjix@fishysnax.com 99999) on: March 11, 2011, 08:04:20 PM
This was on the development roadmap, http://bitcointalk.org/index.php?topic=4170.msg60385
"design/implement a secure DNS-like "map string to bitcoin address" system  (so I can send bitcoins to "gavin@acm.org")"
I had the impression the roadmap called for a BitDNS-like decentralized mapping system, since Gavin asked to map "strings" to addresses. Maybe I misunderstood.

I think you did.

- BitDNS is a block chain decentralised DNS system.
- DNS-like means a system like DNS (federated servers).
1645  Bitcoin / Bitcoin Discussion / Re: Bitcoin killer app? on: March 11, 2011, 07:13:19 PM
http://poker.bitcoinvegas.com/

Looking for investors.
1646  Bitcoin / Project Development / Re: Bitcoin.org Redesign (mockups inside) on: March 11, 2011, 07:12:10 PM
I don't know if you all are familiar, but I think distributed.net's page is concise (but reports a lot of old news, sadly).
Link: http://distributed.net

lol... this is why hackers make poor designers. We think differently to usual people.

Usual people like sites like yahoo.com , use MSN messenger, have a facebook

Me- I go on IRC and use email.

So I sometimes have trouble when designing interfaces for general use because I start thinking about what *I* would like. I reckon many of you have the same problem but aren't mindful of it.
1647  Other / Off-topic / Re: Government regulation always a bad thing? on: March 11, 2011, 06:56:24 PM
Are we really to believe individuals would have not build earthquake resistant structures in Japan but for the Japanese government?

Like the constructors of the Titanic who made sure to include enough lifeboats?
1648  Bitcoin / Project Development / Re: Bitcoin.org Redesign (mockups inside) on: March 11, 2011, 06:40:00 PM
Here's an idea.

(The default image for that video really needs to be changed.  Cheesy)




This is a perfect design. I was going to get around to doing this, but you've already done the job.

The flow is perfect. From top to bottom:
- What is Bitcoin.
- Where to get it.
- Now what to do with it.

Any new person will be interested in those topics. I vote this for the new front page design.

Nice. Simple. Uncluttered. Concise.

Couldn't be better.

Add this:


And remove the drop shadow for the coin. It's inconsistent with your plain flat colouring on the rest of the page.

I like the alignment, although I'm not sure about the download buttons. Having all 4 there is claustrophobic. Maybe better to get rid of the left Windows button and replace it with some javascript that expands the blue bar to offer the 2 windows download urls below when clicked.

Soon there will be both 32bit and 64 bit Linux versions, and you can't just keep adding more buttons!

If there's no javascript enabled then the page will simply offer the links straight up.

[Windows] [Mac OS X] [Linux]

Windows expands the bar to show below:

- Windows Exe (Recommended)
- Windows Zip

Mac OS X is a normal URL.

Linux expands to:
- Linux (Recommended)
- Linux 64bit
- Debian package
1649  Bitcoin / Project Development / Re: Bitcoin as the anti-spam measure that hashcash aspired to be on: March 11, 2011, 05:11:34 PM
I like the idea, but it means that a) people need bitcoins b) I would need 2 emails; 1 for people using this system and 1 for the plebs that don't (I'd recommend them to switch to this).

But why wasn't hash cash ever implemented? Newsletters and mailing lists do count as spam to me, and I maintain separate emails for all that junk. Something like hashmail would be great for personal emails and spam free! (so I would never be worried about posting my email all over the net)
1650  Bitcoin / Project Development / Re: Top reasons why bitcoin is awesome (or "killer feature list") on: March 11, 2011, 05:05:24 PM
The ability to quickly easily send somebody some money when they need it, no matter where they are.

- I'm not restricted how I spend my Bitcoins. Governments make it really difficult to deposit money online to play poker. Poker is banned in Washington state, Turkey, Thailand. UK has a bunch of restrictions... France cannot play on international sites. Russia, India, and a bunch of other places it's illegal.

- I've got friends in Iran. They contribute a lot to Free Software projects, but because of sanctions they find it impossible to pay for stuff they need web space .etc

- I own the Bitcoins. Not in some place, but actually on my hard drive.

- Coins are dividable to many decimal places.

- I am my own master. I can be truly independent in a Bitcoin economy if such a thing exists. Right now it's impossible for me to boycott corruption.

- Microtransactions. Will revolutionise the way artists/producers earn on the internet. Will really step up the game and improve the internet.

- Anonymous (you say it isn't but with precaution it is).
1651  Bitcoin / Wallet software / Re: Python client on: March 11, 2011, 09:59:24 AM
Not much to add here, except that if you had a basic reference implementation written in Python, then that'd be excellent.

Bitcoin should be broken down, and then there should be a core from which all the other components are built around. Imagine something *really* basic and difficult to use but very flexible for people to add new features to.
1652  Bitcoin / Bitcoin Discussion / Re: Poll: What OS do you use? on: March 11, 2011, 01:25:42 AM
I would also support calling Linux per GNU_OS if GNU wasn't such an ugly name. Linux has a catchy edge to it.
1653  Other / Off-topic / Re: School Project - MicrosizeMe [support us if you want :)] on: March 10, 2011, 09:25:29 PM
plenty of good free 3D engines around.

is the source code open?
1654  Bitcoin / Development & Technical Discussion / Re: [REVIEW] Name lookup branch (bitcoind send genjix@fishysnax.com 99999) on: March 10, 2011, 09:23:55 PM
Like this anybody can buy a cheap webhosting service with a free DNS. Then they create an account and disable others making new accounts (so it's only for them).

What does have a DNS offer in exchange? Here you can see a request, http://fishysnax.com/getaddress/?nickname=genjix

Directly storing the information in DNS is much faster, with newer network lookups and connections.

The official bitcoin client simply isn't designed for storing and serving lots of little bits of static data to the general public.

I'm not sure you understand how the patch works...

And lookups are done with bog standard MySQL. You can't get faster than that. And talking about speed here for a name lookup is premature.

Still not sure what you're arguing... Are you saying that each user is assigned a subdomain like: genjix.wikipedia.org ?
1655  Bitcoin / Development & Technical Discussion / Re: [REVIEW] Name lookup branch (bitcoind send genjix@fishysnax.com 99999) on: March 10, 2011, 08:44:11 PM
But you still need to set the records or new passwords using bitcoin. ATM that's done by POST requests using bitcoin rpc commands (setnewpassword, updatens).

The only change is that now you require that anybody that wishes to setup a provider must also setup a DNS.

Like this anybody can buy a cheap webhosting service with a free DNS. Then they create an account and disable others making new accounts (so it's only for them).

What does have a DNS offer in exchange? Here you can see a request, http://fishysnax.com/getaddress/?nickname=genjix

Just asking.
1656  Bitcoin / Development & Technical Discussion / Re: [REVIEW] Name lookup branch (bitcoind send genjix@fishysnax.com 99999) on: March 10, 2011, 08:14:51 PM
Just use TXT records

Why? Not everyone wants to get a hostname and they prefer to use a provider.
1657  Other / Off-topic / Re: School Project - MicrosizeMe [support us if you want :)] on: March 10, 2011, 08:12:53 PM
doesnt work on linux
1658  Bitcoin / Development & Technical Discussion / Re: [PATCH] InitializationCompleted on: March 10, 2011, 06:17:39 PM
Once a process realises that something is going on which should not, the process shall just log it, die gracefully and let OS and sysadmins  deal with it. Anything more than that is bloatware.

And that has what to do with this patch.......?
1659  Bitcoin / Development & Technical Discussion / Re: Poll: What are your Bitcoin Client Feature Request / wishlist? on: March 10, 2011, 05:13:39 PM
It is much easier to break stuff than to build it.

Removing the miner and GUI is a nobrainer. Just remove it and let someone else to build GUI on top of JSON API, in just a few weeks there will be a handful of competing GUI implementations. Every PHP 'programmer' out there would take a shot at it. The best way to improve stuff in open source world is to let go.
There already is one client that runs via RPC, and it is very unstable...I think its a good idea, in theory, and may be good for some people, but most people don't want to have to bother with opening multiple programs just to run Bitcoin.  There already is bitcoind which does what you want, just help make Spesmilo better.
Currently, the devs dont want to deffer too much from what Satoshi intended.  This keeps one client which is "mainline", but with all the new clients there should be plenty to do what you want. 
I do, however, agree that "Generate Bitcoins" should be removed or, at least, renamed to something like "Donate CPU Time to help the Bitcoin Network" due to the extreme difficulty of mining on CPUs these days. 

Spesmilo isn't unstable but it requires a patch to bitcoin that has been ignored,
http://bitcointalk.org/index.php?topic=3856.0

This is needed. But nobody has merged it in yet.
The patch isn't necessary if you run bitcoind 24/7 anyway (which I do).  It is still unstable for me.  I set some setting a long time ago, and now it wont open to let me revert it (and I have no idea where it saves it, some retarded qt location which I can't seem to find). 

You must be using the gitorious branch from luke-jr... Try this version https://github.com/genjix/spesmilo

I guarantee that's stable.
1660  Bitcoin / Development & Technical Discussion / Re: Poll: What are your Bitcoin Client Feature Request / wishlist? on: March 10, 2011, 04:00:35 PM
It is much easier to break stuff than to build it.

Removing the miner and GUI is a nobrainer. Just remove it and let someone else to build GUI on top of JSON API, in just a few weeks there will be a handful of competing GUI implementations. Every PHP 'programmer' out there would take a shot at it. The best way to improve stuff in open source world is to let go.
There already is one client that runs via RPC, and it is very unstable...I think its a good idea, in theory, and may be good for some people, but most people don't want to have to bother with opening multiple programs just to run Bitcoin.  There already is bitcoind which does what you want, just help make Spesmilo better.
Currently, the devs dont want to deffer too much from what Satoshi intended.  This keeps one client which is "mainline", but with all the new clients there should be plenty to do what you want. 
I do, however, agree that "Generate Bitcoins" should be removed or, at least, renamed to something like "Donate CPU Time to help the Bitcoin Network" due to the extreme difficulty of mining on CPUs these days. 

Spesmilo isn't unstable but it requires a patch to bitcoin that has been ignored,
http://bitcointalk.org/index.php?topic=3856.0

This is needed. But nobody has merged it in yet.
Pages: « 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 [83] 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!