Bitcoin Forum

Bitcoin => Project Development => Topic started by: davout on January 10, 2011, 05:25:28 PM



Title: I changed my mind about bitcoin-central.net ...
Post by: davout on January 10, 2011, 05:25:28 PM
Instead of opening the source up on Feb 1 as promised I'll open it up right now,
grew bored of coding by myself and wanted to gather comments and pull requests too :)

Have fun!

https://github.com/davout/bitcoin-central


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on January 10, 2011, 08:59:51 PM
You are LEGEND!


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 10, 2011, 09:11:57 PM
You are LEGEND!
And you pledged 250 BTC :D


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on January 10, 2011, 09:23:11 PM
You are LEGEND!
And you pledged 250 BTC :D

Says the guy generating ~block per day! :P


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 10, 2011, 09:31:06 PM
You are LEGEND!
And you pledged 250 BTC :D

Says the guy generating ~block per day! :P

What are you implying?


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on January 10, 2011, 09:34:21 PM
You are LEGEND!
And you pledged 250 BTC :D

Says the guy generating ~block per day! :P

But seriously man, I am going to go through that other thread and also examine your source-code. Then I will send you the 250, just give me a few days. :)

Too bad I have no previous experience with Ruby on Rails, but going to read the two books from the README file link. Keep in eye on your Bitcoin balance. ;)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on January 10, 2011, 09:39:58 PM
You are LEGEND!
And you pledged 250 BTC :D

Says the guy generating ~block per day! :P

What are you implying?

Nothing, it was a joke. A bad one, it seems. ;)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 10, 2011, 09:45:39 PM
You are LEGEND!
And you pledged 250 BTC :D

Says the guy generating ~block per day! :P

What are you implying?

Nothing, it was a joke. A bad one, it seems. ;)
I like jokes, it's a nice! :)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 10, 2011, 10:10:22 PM
But seriously man, I am going to go through that other thread and also examine your source-code. Then I will send you the 250, just give me a few days. :)

Too bad I have no previous experience with Ruby on Rails, but going to read the two books from the README file link. Keep in eye on your Bitcoin balance. ;)
I would be really more than happy to answer your questions about the code or rails in general, even if you don't have any previous experience with it
Feel free to ask, open issues on the tracker, experiment send pull requests :)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on January 10, 2011, 10:25:14 PM
Feck it, just send you the 250BTC. :)

Thanks for the help, already studying an online tutorial.  8)

Amazing this thread is getting so little response; an open source bitcoin exchange is probably one of the most important things right now.

Once I get to know Ruby, I will convert this to a Polish exchange.


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 10, 2011, 10:44:42 PM
Yay, I see it in gray in my account :D

Ok, so if you want to localize the code, Rails makes it pretty easy, also it would really be an incredibly useful thing to do to pull out hardcoded strings and put them in localized files.

The locale files reside in :
config/locales/*.yml

http://guides.rubyonrails.org/i18n.html this is a must read if you want to start localizing it properly :)

I suggest, that if you want to see a quick result you fork the projet, create a polish locale and start easy by translating the model attributes names


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on January 10, 2011, 10:49:17 PM
Yay, I see it in gray in my account :D

Ok, so if you want to localize the code, Rails makes it pretty easy, also it would really be an incredibly useful thing to do to pull out hardcoded strings and put them in localized files.

The locale files reside in :
config/locales/*.yml

http://guides.rubyonrails.org/i18n.html this is a must read if you want to start localizing it properly :)

I suggest, that if you want to see a quick result you fork the projet, create a polish locale and start easy by translating the model attributes names

Hah, this is going to be fun!


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on January 10, 2011, 11:36:33 PM
Amazing this thread is getting so little response; an open source bitcoin exchange is probably one of the most important things right now.

don't worry, this thread (and the other one about bitcoin-central) are watched.
maybe ppl have nothing to say/contribute to discussion?


What I meant was I was expecting some kind of appreciation for davout since he decided to release the source code nearly a month earlier. Anyway, it made ME happy.


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: fabianhjr on January 10, 2011, 11:43:59 PM
YEah! :-) :D  8)

Lots of forks coming in! I will figure out RoR and how to make it work with my host(Installed the gems, tried to update everything, chenged the de[endencies to match my versions such as adding >=3.0.0 to the rails verions and still nothing.) ):

I will follow hellow world guides and then figure out how your implementation works. :)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: jgarzik on January 11, 2011, 12:36:15 AM
What I meant was I was expecting some kind of appreciation for davout since he decided to release the source code nearly a month earlier. Anyway, it made ME happy.

A 5678.00 BTC incentive helps, too.  :)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Cryptoman on January 11, 2011, 12:38:59 AM
I will figure out RoR and how to make it work with my host(Installed the gems, tried to update everything, chenged the de[endencies to match my versions such as adding >=3.0.0 to the rails verions and still nothing.) ):
I recommend compiling the latest Ruby 1.9 from source and then using gem to install Rails.  This way you'll pull in the latest of everything.  You'll also need openssl, sqlite3, zlib and probably some other dependencies.


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 11, 2011, 08:14:15 AM
I recommend compiling the latest Ruby 1.9 from source and then using gem to install Rails.  This way you'll pull in the latest of everything.  You'll also need openssl, sqlite3, zlib and probably some other dependencies.
I wouldn't recommend that.


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 11, 2011, 08:16:38 AM
Lots of forks coming in! I will figure out RoR and how to make it work with my host(Installed the gems, tried to update everything, chenged the de[endencies to match my versions such as adding >=3.0.0 to the rails verions and still nothing.) ):
What are you talking about exactly?
You just need to issue the "bundle" command for it to automatically fetch/install everything that's needed, you might need to install the bundler gem first but that's all.


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 11, 2011, 12:04:19 PM
Here we go, for those who would like to localize the code for their particular language I've commited an example at https://github.com/davout/bitcoin-central/commit/e135135f3f7a1062104b7e59ae36701a94559123

In this example I've localized a template into french, so you can see that it basically involved removing strings from the template and putting them into a translations dictionary.

I've also added some locale switching code, so if you want to change locale at run-time, instead of modifying the core config file you can just pass a ?locale=pl GET parameter in the request and your session will start using the locale you passed.

If you want to translate large chunks of text dictionaries are cumbersome, see http://guides.rubyonrails.org/i18n.html#localized-views to see how Rails elegantly manages this one too.

As a final word, would you want to start translating into a language that doesn't yet have a locale file in config/locales you'll want to get the base translations from here https://github.com/svenfuchs/rails-i18n and add them into config/locales before starting the actual extraction/translation work.

Have fun and request pulls (on the integration branch) :)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on January 11, 2011, 11:11:23 PM
Here we go, for those who would like to localize the code for their particular language I've commited an example at https://github.com/davout/bitcoin-central/commit/e135135f3f7a1062104b7e59ae36701a94559123

In this example I've localized a template into french, so you can see that it basically involved removing strings from the template and putting them into a translations dictionary.

I've also added some locale switching code, so if you want to change locale at run-time, instead of modifying the core config file you can just pass a ?locale=pl GET parameter in the request and your session will start using the locale you passed.

If you want to translate large chunks of text dictionaries are cumbersome, see http://guides.rubyonrails.org/i18n.html#localized-views to see how Rails elegantly manages this one too.

As a final word, would you want to start translating into a language that doesn't yet have a locale file in config/locales you'll want to get the base translations from here https://github.com/svenfuchs/rails-i18n and add them into config/locales before starting the actual extraction/translation work.

Have fun and request pulls (on the integration branch) :)

You are Legend +1 :)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 12, 2011, 02:13:36 PM
Bitcoin Central now completely switched to jQuery and jqPlot instead Prototype and Protocharts.
Charting code a little cleaned up, still some work to do, but tweaking should be much easier now.


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: alowm on January 15, 2011, 10:28:40 AM
I will figure out RoR and how to make it work with my host(Installed the gems, tried to update everything, chenged the de[endencies to match my versions such as adding >=3.0.0 to the rails verions and still nothing.) ):
I recommend compiling the latest Ruby 1.9 from source and then using gem to install Rails.  This way you'll pull in the latest of everything.  You'll also need openssl, sqlite3, zlib and probably some other dependencies.

RVM is your friend (http://rvm.beginrescueend.com/).


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: kiba on January 26, 2011, 05:16:19 AM
Yo. I am using your code to create my own(As yours is under GPL, and mine was under MIT as I thought I couldn't license any more liberally than that).

https://github.com/kiba/bitpredict/tree/master/lib/bitcoin

It does things a little differently. I hope I didn't violate copyright law in older version of my code or as it is now. If it is, I will either remove the offending code or we could work out something. Or we could remove uncertainty of this matters by coming up with an agreement?


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 26, 2011, 09:34:27 AM
Yo. I am using your code to create my own(As yours is under GPL, and mine was under MIT as I thought I couldn't license any more liberally than that).

https://github.com/kiba/bitpredict/tree/master/lib/bitcoin

It does things a little differently. I hope I didn't violate copyright law in older version of my code or as it is now. If it is, I will either remove the offending code or we could work out something. Or we could remove uncertainty of this matters by coming up with an agreement?
I'm glad someone uses it, do whatever you want with it, and re-license it the way you like :)


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: liorh on January 27, 2011, 06:28:51 PM
i can't sing up to your site...
it keeps saying i got the captcha wrong


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: FreeMoney on January 27, 2011, 10:32:26 PM
i can't sing up to your site...
it keeps saying i got the captcha wrong

I haven't had that much trouble, but they are a pain. Why not limit failed attempts/time instead of captcha?


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on January 28, 2011, 01:43:27 PM
Captcha problems are now fixed.

A more general update can be found here http://bitcointalk.org/index.php?topic=2519.60


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: Mahkul on February 18, 2011, 07:09:39 PM
Will this work with ruby version 1.8.7 and rubygems ver 1.8?


Title: Re: I changed my mind about bitcoin-central.net ...
Post by: davout on February 18, 2011, 08:48:16 PM
Will this work with ruby version 1.8.7 and rubygems ver 1.8?

Yes sir.

david@bankbox:~$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
david@bankbox:~$ gem -v
1.3.7