Bitcoin Forum
May 26, 2024, 09:37:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 »
1701  Economy / Marketplace / Re: I need a company name (30 BTC to the winner) on: March 03, 2011, 11:20:29 PM
Ekeforte

Esperanto for sudden yet strong.

Fideco

The quality of trust.

Fortikema

Having a propensity for being a robust/sturdy person or thing.
1702  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 03, 2011, 09:37:28 PM
That's code to parse JSONs. There's a Python library to work with JSON-RPC.
Huh?  See that 'import json' statement at the top?  That would be the standard (as of python 2.6) JSON parsing library.

The code I posted tells the standard JSON parsing library to read JSON Numbers as Decimal.  If you are doing monetary calculations in python, then you should be using Decimal.  That is what it is for.


Not json but json-rpc as recommended by json-rpc themselves.
http://json-rpc.org/wiki/python-json-rpc
1703  Other / Off-topic / Re: Suggestion: Extended Rank System on: March 03, 2011, 07:37:45 PM
How about something also showing how many donations that person has made? Would encourage/pressure people into tipping others too Grin
1704  Bitcoin / Development & Technical Discussion / Re: New, standardized wallet protocol on: March 03, 2011, 05:00:51 PM
The current JSON-RPC needs to be replaced (this thread), before splitting the client (or creating a split one) is even possible.

Yeah well I haven't been too happy at the response. I was told: "let us know what needs to be done to make a client wrapper possible. everything should be possible through the RPC".

- Need initialisation flag. Submit patch. Patch ignored. Workaround hack (that doesn't even work for all cases) proposed instead.
- Not able to import bitcoin RPC values into Python. Propose I write my own JSON RPC lib because Python's implementation is wrong.
- Propose consistent naming scheme for JSON-RPC Api. WONTFIX. Better to leave the inconsistent usage of getblaa or doaction because it's not a problem now.

I mean wtf. Come on.
1705  Bitcoin / Development & Technical Discussion / Re: New, standardized wallet protocol on: March 03, 2011, 03:39:47 PM
Does DBUS work on Windows or Mac?

It's the default used in all Linux desktops. It's a mature, battle-hardened protocol.

http://www.freedesktop.org/wiki/Software/dbus
1706  Bitcoin / Development & Technical Discussion / Re: New, standardized wallet protocol on: March 03, 2011, 03:37:52 PM
So what's your proposal? I'm willing to get behind this. Show us the code.
1707  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 03, 2011, 03:34:56 PM
That's code to parse JSONs. There's a Python library to work with JSON-RPC. There's also a PHP library to do JSON-RPC. Both use floats.

Solution A: everybody that wishes to interface with Bitcoin in Python/PHP must write their own (potentially buggy) RPC http code because the default libs for those languages uses floats.
Solution B: a small change is made to Bitcoin.

B is a much better solution Smiley
1708  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 03, 2011, 02:43:17 PM
Yep, just noticed that.

But then the Python JSON-RPC library does not and I couldn't find one for the PHP RPC library either.

Code:
>>> from jsonrpc import ServiceProxy
>>> access = ServiceProxy("http://user:password@127.0.0.1:8332")
>>> type(access.getbalance())
<type 'float'>

BTW, in that wiki page why did you use those lambdas instead of simply using decimal.Decimal? Multiplying by e8 will cause everything like version numbers or difficulty to be multiplied.
1709  Bitcoin / Development & Technical Discussion / Re: why JSON RPC values not use INT64 instead of float string? on: March 03, 2011, 02:17:12 PM
Python uses floats for it's JSON library. Herein lies the problems.

$ python
>>> import json
>>> json.dumps(10.001)
'10.000999999999999'
>>> json.loads('{"blaa": 0.333331}')
{u'blaa': 0.33333099999999999}
>>> type(json.loads('{"blaa": 0.333331}')['blaa'])
<type 'float'>

This is unacceptable.
1710  Bitcoin / Development & Technical Discussion / why JSON RPC values not use INT64 instead of float string? on: March 03, 2011, 12:49:34 PM
This would solve a bunch of problems.

Why not just return the int64 and let the client cast it to a float & divide 10^8 for display?

Currently since the JSON RPC returns floats, any library you use will return the values as floats, not strings. So to get the int64 value you need to multiply the float by 10^8 and cast to an int for internal usage.

Also by returning the value as int64, it will be enforcing good practice on clients instead of them unwittingly using floats.
1711  Economy / Marketplace / Re: mtgox.con and Liberty reserve on: March 03, 2011, 12:23:27 PM
I know a few details of this move and am not allowed to share them publicly.

However rest assured that it's nothing to do with Baron and mtgox is being moved to a more reliable host (guy actually runs an ISP) who will be doing everything with the proper paperwork i.e making mtgox legit.
1712  Bitcoin / Development & Technical Discussion / Re: Announcing Pycoin, a (partial) bitcoin protocol implementation in python3 on: March 03, 2011, 12:20:18 PM
yes! great work Grin
1713  Economy / Marketplace / Re: In Gox we trust on: March 03, 2011, 01:03:44 AM
woah, so Jed is of the eDonkey fame? motherfucking hero. I remember that software being the centre piece of my life as a kid.
1714  Economy / Marketplace / Re: List of honest traders. on: March 02, 2011, 03:53:19 PM
ptmhd:
- speedy delivery
- everything as advertised
- up to date with all info
- included extras (webcam, pcmcia network card, english coins!)
A++

thanks
1715  Other / Off-topic / Anonymous or distributed web technologies on: March 02, 2011, 03:14:22 PM
Say I wanted to make a website selling newspapers in a country where it's illegal to buy them. What technologies could I use?

Freenet only serves static pages AFAIK, so not sure if that would be appropriate since it only hands out content but doesn't provide a way for users to interact with the site (discreetly or publicly).

Would a tor service fit the job here? What other tools exist?

The aim is to provide some level of protection for buyers of newspapers on the site (enough to make the government go after easier fish) and make it difficult to attack the site owner.
1716  Economy / Exchanges / Re: mtgox.com has blocked my account with 45 000 USD in it! on: March 02, 2011, 11:50:13 AM
he exploited security problems in the mtgox site and deserves his entire funds to be taken.
1717  Other / Off-topic / Re: BitARSE my ass :D on: March 02, 2011, 11:43:14 AM
If you want it then make it Grin
1718  Economy / Marketplace / Re: I need a laptop for around 120 BTC. on: March 02, 2011, 10:37:53 AM
i recommend you PM ptm
http://bitcointalk.org/index.php?topic=3817.0

He sold me an IBM Thinkpad T41, 1.5 GHz Pentium M, 1.5 GB RAM, 80 GB HDD
for 150 BTC

I still owe 50 to him Smiley

I know he has some PowerPC iBooks left. Pics: http://uselessguy.com/ibook/
1719  Bitcoin / Development & Technical Discussion / Re: Coding guidelines on: March 02, 2011, 10:34:20 AM
Get on it then Grin
1720  Bitcoin / Bitcoin Discussion / Re: Some questionable aspects of Bitcoin on: March 01, 2011, 07:13:03 PM
Can the administers of bitcoin track who is using their service?
There's no administrators.

Quote
Do they retain sorting codes and account numbers of money origins and destination?
Bitcoins uses a cryptographic address. You can see the flow of money around the network. That's not stopping somebody using a mixing service to obfuscate the origins of their money, so no.

Quote
Which bank provides bitcoin an account to store money which has been used to buy coins?
None. You store then on your computer. You can use a service like mybitcoin to store them for you.

Quote
What is to stop, say, an identity thief, moving large amounts of money from my account into bitcoins and collecting them into their account?
Nothing. You lost your identity and the criminal has access to all your emails, passwords, bitcoins, .etc Maybe you can buy insurance to protect yourself. I don't want such a service since I can protect myself more adequately than any bank and am willing to take on the risk for when I do.

Quote
What is to stop drug money being laundered through bitcoin?
Nothing.

Quote
What is to stop bitcoin being accessed by individuals or organisations under national or international sanctions - like evil regimes or terror groups?
Nothing.

Quote
(End of questions)

I don't mean to pry, and I don't imply any threats - I ask totally 100% out of personal curiosity. Just bear in mind that if the answers to those questions aren't what I want to hear, its probably because my work days might become a lot more stressful!
Peace and love x
Pages: « 1 ... 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!