Search content
Sort by

Showing 20 of 26 results by rokj
Post
Topic
Board Service Announcements
Topic OP
Timebits - simple time tracking
by
rokj
on 04/11/2014, 22:14:27 UTC
Hi,

we have made website and Android app with which you can track time easily and with little effort, for your personal project, work or something else.

We accept Bitcoins.

You can check it out on https://www.timebits.com
Post
Topic
Board Services
Re: Donation for 51% attack solution
by
rokj
on 17/07/2014, 13:54:05 UTC
accepted by whom?

Core developers and solution implemented into official Bitcoin client.

Unless you get someone to hold the coins in escrow for you, this is just spam.


edit:

Actually to do this right:
- let others contribute (0.1 alone is not much)
- make a 2/3 multisig address for it (you, escrow e.g. DannyHamilton, dev e.g. gmaxwell)
- properly define: "solution"

So I need BTC addresses from DannyHamilto and gmaxwell?
Post
Topic
Board Services
Re: Donation for 51% attack solution
by
rokj
on 17/07/2014, 13:30:46 UTC
accepted by whom?

Core developers and solution implemented into official Bitcoin client.
Post
Topic
Board Services
Topic OP
Donation for 51% attack solution
by
rokj
on 17/07/2014, 10:41:46 UTC
I will donate 0.1 BTC to anyone who's solution for 51% attack will be accepted.
Post
Topic
Board Speculation
Re: what would happen to bitcoin if a government made a large investment in it?
by
rokj
on 19/06/2012, 15:24:48 UTC
Imagine someone in accounting having a Bitcoin wallet on their desktop. Not only would the accountant be able to copy that wallet and take it home for later use (or skipping the country), but so would IT and possibly anyone else on the corporate network.

I am not saying that Bitcoin is not able to be used in such an environment. Just that the processes and software/services have not been properly vetted yet to do so.

This is false perception since anyone in IT can already do whatever he wants to "someone in accounting".

Also people in accounting do sign "NDA" and all sorts of contracts, so it would be unwise to do anything that stupid.

However it would be much harder if not "impossible" to "get" BTCs back, like it is now.

But it would not be so hard to implement some kind of verification system, where accounting would be limited to send BTSs only to certain addresses where after that, validation and verification would be required by "senior staff" or something.

Post
Topic
Board Bitcoin Discussion
Re: [ANN] Coinapult SMS wallet - no internet required
by
rokj
on 02/06/2012, 07:52:58 UTC
You can now use your cell phone to control your Coinapult funds. This is accomplished through simple SMS commands sent to the Coinapult phone number: (603)509-2102

Basic commands are:

Quote
help me - prints available commands
send (person) (amount) - Sends (amount) to (person). (person) can be a phone number, email or btc address.
bal - Returns your Bitcoin balance.
txs - Returns a list of your last 5 transactions.
addr - Returns a new Bitcoin address for you to receive at.
yes (code) - Confirm a send request

All Bitcoin sent to your phone number is accessible through these commands by default. Each time you receive funds, it will still give you the recovery URL, if you prefer to use the website. In the future, I'll allow site accounts to be created, and users will be able to combine multiple email addresses and phones into one account.

So, I've played around with this enough to be confident that it works well. I'd like feedback, though. I will send 0.2btc to the first 5 people who PM me their cell phone number. Please just leave your thoughts in this thread.

Currently only U.S. and Canadian numbers are supported.

[EDIT] All funds are sent. [/EDIT]

Just great idea, keep on good work and good luck!
Post
Topic
Board Trading Discussion
Re: MTGOX really having major issues!
by
rokj
on 10/05/2012, 20:08:29 UTC
Dude,

Take a chill pill. They've publicly posted that they've been having issues with withdrawals and it's a major holiday in Japan at the moment. Furthermore you've shared bugger all about the withdrawal they've delayed etc making this entire thread into an even worse than Goat rant as he'll at least share the details so people have a chance to form an opinion.



Seriously man, 3 weeks isn't something to just take a chill pill about. It should never happen.

Over the last year, it took from 3 days to 21 days to get money from MtGox, but at the end, I got it, so yes, chill.

(bitcoin does not care about holidays, weekends, ... while $, €, ... or better, banks does)
Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin dealer (trading bot/script)
by
rokj
on 25/04/2012, 21:46:58 UTC
Did not know what stop orders are until today, but script does support stop orders in a sense, ...  Cheesy

See https://en.wikipedia.org/wiki/Order_%28exchange%29#Stop_orders if you are unfamiliar with them also.

Post
Topic
Board Bitcoin Technical Support
Re: Req: Python MtGox auth example
by
rokj
on 20/04/2012, 20:25:09 UTC
Thanks for your help. Your code is working and I finally find out the reason Smiley

My .NET code generate nonce like this:
Code:
string parameters = "nonce=" + DateTime.Now.Ticks.ToString();
it'll generate a 18 length value like 634705522019762907

In Python code, it generate nonce like this:
Code:
string parameters = "nonce=" + DateTime.Now.Ticks.ToString();
which will generate 16 length value like 133492738213800

In like case, as it always smaller than the last .NET nonce in one account, then MtGox regards it as invalid and can't get authorization.

I simply added more zero to "int(time.time()*1000000000)" and it then works.
(or If I using one account for Python only, then it have no such problem also.)

Again, thanks for your code Smiley

No problem!  Wink

Argh ... and totally forgot to write this frustration with nonce also (have had same problems when doing it in PHP and then in Python).

Bold your message or something, I am sure someone else will also have the same experience in the future.  Smiley

Post
Topic
Board Bitcoin Technical Support
Re: Req: Python MtGox auth example
by
rokj
on 17/04/2012, 14:16:07 UTC
I just tried it. However, the result is same:  Huh
Code:
url = "https://mtgox.com/api/0/info.php"

Try APIv1.

https://mtgox.com/api/1/BTCUSD/public/ticker using GET or https://mtgox.com/api/1/generic/private/orders using POST.


Dose the code work on you side? If so, I may need start investigate my network problem instead of code...

I got this "403 {"result":"error","error":"Identification required to access private API","token":"login_required"}" when try https://mtgox.com/api/1/generic/private/orders using POST.

Thanks very much!

Yes, I am using https://github.com/rokj/bitcoin_dealer/, you probably copied wrong key or missed something out.
Post
Topic
Board Bitcoin Technical Support
Re: Req: Python MtGox auth example
by
rokj
on 17/04/2012, 10:12:20 UTC
I just tried it. However, the result is same:  Huh
Code:
url = "https://mtgox.com/api/0/info.php"

Try APIv1.

https://mtgox.com/api/1/BTCUSD/public/ticker using GET or https://mtgox.com/api/1/generic/private/orders using POST.
Post
Topic
Board Bitcoin Technical Support
Re: Req: Python MtGox auth example
by
rokj
on 17/04/2012, 08:27:43 UTC
Thanks for the code.

However, when I try it, I always get the not logon error like below:
Code:
{u'error': u'Must be logged in'}

The code is like below:
Code:
from urllib import urlencode
import urllib2
import time
from hashlib import sha512
from hmac import HMAC
import base64
import json
def get_nonce():
    return int(time.time()*100000)

def sign_data(secret, data):
    return base64.b64encode(str(HMAC(secret, data, sha512).digest()))
      
class requester:
    def __init__(self, auth_key, auth_secret):
        self.auth_key = auth_key
        self.auth_secret = base64.b64decode(auth_secret)
        
    def build_query(self, req={}):
        req["nonce"] = get_nonce()
        post_data = urlencode(req)
        headers = {}
        headers["User-Agent"] = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"
        headers["Accept"] = "application/json"
        headers["Rest-Key"] = self.auth_key
        headers["Rest-Sign"] = sign_data(self.auth_secret, post_data)
        return (post_data, headers)
        
    def perform(self, path, args):
        data, headers = self.build_query(args)
        req = urllib2.Request("https://mtgox.com/api/0/"+path, data, headers)
        res = urllib2.urlopen(req, data)
        return json.load(res)


m = requester(auth_key=mykey, auth_secret = mysecret)
print m.perform("info.php", {})

The wired thing is, when I using the C# code to communicate, it all works well.
I checked the http headers and found there're a little difference:

.NET header
Code:
CONNECT mtgox.com:443 HTTP/1.1
Host: mtgox.com
Connection: Keep-Alive

HTTP/1.1 200 Connection Established
FiddlerGateway: Direct
StartTime: 15:34:07.861
Connection: close

Code:
POST /api/0/info.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept: application/json
Rest-Key: fbbb66ba-5740-449d-a078-3d55752d82ed
Rest-Sign: BE3pmUGjOPh4069XH4j28tw3RKd0HEZWIWoJ+gahIXR5Qn4T+rc+E2aN2L0WfUcx4ptzmfuhe9lqKtkJHE+nGQ==
Host: mtgox.com
Content-Length: 24
Expect: 100-continue
Connection: Keep-Alive

HTTP/1.0 200 OK
Date: Tue, 17 Apr 2012 07:34:09 GMT
Server: Apache
X-Powered-By: PHP/5.3.10
Set-Cookie: SESSION_ID=ff7f7d011f6321a87b6cdd93d27fb7e5; expires=Thu, 19-Apr-2012 07:34:09 GMT; path=/; domain=.mtgox.com; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Strict-Transport-Security: max-age=1209600
Content-Length: 1253
nnCoection: close
Content-Type: application/json
Connection: Keep-Alive

Python header:
Code:
CONNECT mtgox.com:443 HTTP/1.0
Host: mtgox.com:443

HTTP/1.0 200 Connection Established
FiddlerGateway: Direct
StartTime: 15:34:20.718
Connection: close

Code:

POST /api/0/info.php HTTP/1.1
Accept-Encoding: identity
Rest-Sign: KV6aRCWoOSJbXMwY/c5hhlZ9GLsqxYfPMzvFWRV7KmrGCnL6dmp3mPAMNO3JCWDWfEFwAbMiCeUoUap7FIdewg==
Content-Length: 21
Rest-Key: fbbb66ba-5740-449d-a078-3d55752d82ed
Connection: close
Accept: application/json
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Host: mtgox.com
Content-Type: application/x-www-form-urlencoded

HTTP/1.0 200 OK
Date: Tue, 17 Apr 2012 07:34:23 GMT
Server: Apache
X-Powered-By: PHP/5.3.10
Set-Cookie: SESSION_ID=3e8b54b2e889b2516c87639d02252daf; expires=Thu, 19-Apr-2012 07:34:23 GMT; path=/; domain=.mtgox.com; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Strict-Transport-Security: max-age=1209600
Content-Length: 29
Connection: close
Content-Type: application/json

The only difference is that:
https://public.sn2.livefilestore.com/y1pvy4eqYCVgTia_7dDcpCIVy4wQ9-xxLR-VcM-NBvt1cGxzqiv7V2ijeAgimnTpXKXykAjrJlHo9Oz8DMasUL23g/123.png?psid=1

I guess it may related with the connection type, but I'm new to Python and have no idea how to control it...
(why there're dozens of http lib exist in Python Smiley

Any help is appreciate!

Had "similar" problems.

First, use APIv1 and for some reason I got it working only with urllib3. See: https://bitcointalk.org/index.php?topic=49789.msg762709#msg762709.
Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin dealer (trading script)
by
rokj
on 09/03/2012, 12:42:41 UTC
can you believe I just paid someone $220 for a php script doing less than this?

I'll tip you once my sites up mate, you did good work.

Maybe "I am spitting into my own bowl" and do not get me wrong, but work should be paid and you did the right thing from my point of view.

Now you can pay him to add another feature or something.  Smiley
Post
Topic
Board Bitcoin Technical Support
Re: Bitcoin dealer (trading script)
by
rokj
on 05/03/2012, 11:35:00 UTC
Now API version 1 is supported with multiple currencies on MtGox.

Have fun! Smiley
Post
Topic
Board Bitcoin Discussion
Re: the Free Software Foundation accepts bitcoin donations!???
by
rokj
on 23/02/2012, 13:52:22 UTC
Looks like they are accepting bitcoins again, sent few coins today.
When did they stop?

They also accept bitcoin for their merchandise. (We mailed them and asked, sent bitcoin and now two stuffed gnus are on their way.)


Yeah. I've mixed up also, I apologize.

FSF != EFF
Post
Topic
Board Bitcoin Discussion
Re: the Free Software Foundation accepts bitcoin donations!???
by
rokj
on 23/02/2012, 12:25:22 UTC
Looks like they are accepting bitcoins again, sent few coins today.

https://my.fsf.org/donate/other/

This is good news.  Smiley
Post
Topic
Board Bitcoin Technical Support
Re: Req: Python MtGox auth example
by
rokj
on 22/02/2012, 11:24:37 UTC
Following seems to work.

Code:
params = [(u"nonce", self._create_nonce())]
headers = {'Rest-Key': key, 'Rest-Sign': base64.b64encode(str(hmac.new(base64.b64decode(secret), urllib.urlencode(params), hashlib.sha512).digest())), 'Content-type': 'application/x-www-form-urlencoded', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'}
http_pool = urllib3.connection_from_url(url)
response = http_pool.urlopen('POST', url, body=urllib.urlencode(params), headers=headers)

print response.status, response.data

For some reason I could not get it working with MtGox APIv1 with other than with urllib3:
Post
Topic
Board Bitcoin Technical Support
Re: Req: Python MtGox auth example
by
rokj
on 19/02/2012, 15:45:36 UTC
https://github.com/rokj/bitcoin_dealer/blob/master/exchange/exchange/mtgox.py

Here it is how I am doing, but it supports older API.

Will implement support for newer API in few days.

UPDATE: Here is for APIv1 https://github.com/rokj/bitcoin_dealer/blob/master/exchange/exchange/mtgox1.py
Post
Topic
Board Bitcoin Technical Support
Topic OP
Bitcoin dealer (trading script)
by
rokj
on 16/01/2012, 22:55:15 UTC
Hi, I have made a little script a while ago and maybe you will find it usefull.

from https://github.com/rokj/bitcoin_dealer:

Bitcoin dealer is simple Django script for trading bitcoins currently only on MtGox exchange. Currently only API version 0 is supported, which will be deprecated on 1th of March, but new API support should be available before that date. Smiley

Script is most useful for those who do not have time to watch price of bitcoin all the time, have a PC running all the time and know how to write few "Hello worlds" with two if cases.


... and if you find it usefull
1MC1BSkwD45gAuQ8mvXtD1RZWhNtxGV1ho
 Smiley
Post
Topic
Board Trading Discussion
Re: Mt Gox TO Euro Bank Account - Longest Waiting
by
rokj
on 28/06/2011, 20:56:12 UTC
For it usually takes from 2-12 business days.

I just keep my log and a little patience. :-)

Personally I think they are overwhelmed by everything (bugs, withdraws, deposits, crash, ...).

It is not easy to handle so much people with such a small team.

If they wanted to scam us, they could already done it and make a really nice profit, for the next 10 years for sure.