Bitcoin Forum

Bitcoin => Project Development => Topic started by: Dayofswords on July 12, 2011, 07:14:08 PM



Title: [IN-DEVLOPMENT] How about a site to guess the next difficulty?(for fun)
Post by: Dayofswords on July 12, 2011, 07:14:08 PM
I'm trying to learn PHP by myself with help from my brother who is still learning too and I wanted to know if people would be interested in a site that lets you guess the next (or future?) difficulty for bitcoin generation.

What i was thinking is

  • A profile page to view your previous guesses
  • A page to view who got the closest(the difficulty goes right to the decimal, so that be interesting)
  • Guessing closes ~1 week before it changes
  • Guess at for any point in time, still closes 1 week before(guess waaaaay early and still was closest of all? you're a prediction god)
  • No BTC at stake, if you bet on the side, whatever, do that
  • Winner gets: Pride
  • a statistic page, has like page views, guesses, usercount, maybe browser stats(all this maybe)

What I'm looking to figure out on the server-side
  • A crude way of loging in and setting a cookie
  • sorting
  • file writing and reading, sorting, etc, etc.
  • user/password managing, figuring out how to use a salt and such and hashing them(I know nothing of security, so I will make that clear with giant text "USE A STUPID PASSWORD!!! I DON'T KNOW WHAT I'M DOING"
  • Maybe a way to change your password(still trying to think how i'll do user number
  • Database or SQL? ha, i'll figure that out some other time, for now TEXT FILE ALL THE THINGS
  • Other do-dads
  • no javascript, I don't know how to use JS...
  • EDIT: Maybe Who's line is it anyways? "point bets"  :D "where the bets don't matter, that's right, the bets are as real as Joan River's face.


All you need is to make a username and pass. No address, no email, nothing. Patience too, this will be buggier than timon and pumbaa.

I may host it on the server godaddy gave me for free with the domain purchase(it has ads that i can't remove) OR on this tiny little server I have here at home(no ads).




How's that sound for any idea?


Title: Re: How about a site to guess the next difficulty?
Post by: graingert on July 12, 2011, 09:26:28 PM
Django deals with most of your needs

user management (password SHA/cookies/CSRF/change password)
database abstraction
and Other do-dads (lots of modules)

get yourself an ubuntu server and sudo apt-get install python-django


Title: Re: How about a site to guess the next difficulty?
Post by: Dayofswords on July 12, 2011, 10:14:31 PM
Django deals with most of your needs

user management (password SHA/cookies/CSRF/change password)
database abstraction
and Other do-dads (lots of modules)

get yourself an ubuntu server and sudo apt-get install python-django
I'm actually just looking to learn how to do thing with PHP, it's nothing serious, just for fun. I'm also seeing what I can do completely from scratch. I also think I'd have no idea how to use that.

That and I have no access to a ubuntu server atm, just my windows server at home and my super limited access linux server i get free.



Title: Re: [IN-DEVLOPMENT] How about a site to guess the next difficulty?
Post by: Dayofswords on July 15, 2011, 10:01:30 PM
anyone like the idea?

I ask because I hate to waste my time and server doing something no one will use.