rchatley / extreme_startup Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hello,
It's not an issue but a question and since I don't know how to contact you, i send an issue. Feel free to close/delete it.
I read the feedback and it seems that the choice of asking people to create a server on client and the main server have to connect to player servers generate some problems like firewalls, nat, different network and so on.
I would like to understand what are the reasons behind this choice?
BTW: I love the idea and plan to test on my geek network :)
When I run the container like that docker@boot2docker:/mnt/sda2/tmp/extreme_startup$ docker run -ti -p 80:3000 es
I get this error : /bin/sh: 1: [ruby: not found
When I run it with
docker run -ti -p 80:3000 es bash
ruby web_server.rb
It works
It seems like the most interesting contributions to extreme startup comes in terms of new question types. By splitting out question.rb from question_factory.rb, it may be easier to merge these contributions.
Make it a little bit easier for game facilitator to move on to next round.
At the moment a user can register multiple times with same username and same URL.
It looks it cause them to loose scores.
Code from server:
def correct_answer
n = which_number
root5 = Math.sqrt(5)
phi = 0.5 + root5/2
Integer(0.5 + phi**n/root5)
end
While this is a mathematically clever way, this fails miserably on larger fibonaccis due to precision issues. sqrt(5) is an irrational number, its precision is calculated to over 1 mill decimals. Ruby float: Math.sqrt(5) == 2.23606797749979
is just too imprecise.
It actually fails already with fib(71):
def gr_fib(n)
root5 = Math.sqrt(5)
phi = 0.5 + root5/2
Integer(0.5 + phi**n/root5)
end
>> (69...72).map { |n| gr_fib n }
=> [117669030460994, 190392490709135, 308061521170130]
>> 117669030460994+190392490709135
=> 308061521170129
I suggest to use an iterative version instead. For instance:
def fib(n)
a, b = 0, 1
(0...n).each { |_| a, b = b, a + b }
a
end
When I access /controlpanel, I get this ruby exception :
NoMethodError at /controlpanel
undefined method `round' for #ExtremeStartup::WarmupQuestionFactory:0x0000000154dd40
Other URLs seem to work fine.
I'm running in docker, here is my env
HOSTNAME=3a3e170a5bc1
GEM_HOME=/usr/local/bundle
TERM=xterm
BUNDLE_APP_CONFIG=/usr/local/bundle
PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
WARMUP=0
PWD=/usr/src/app
RUBY_MAJOR=1.9
SHLVL=1
HOME=/root
RUBY_VERSION=1.9.3-p551
_=/usr/bin/env
Putting the leaderboard alongside the graph would work better on projector screens, giving more vertical space for the leader board.
When we ran the game at ScoRUG, we had an early leader (@lenary) who was never caught. He suggested afterwards:
One thing I was thinking of after the session yesterday was making it easier for the leader to be toppled via their own mistakes. Perhaps the more points you have, the more detrimental any failures/errors are to your points, because you have more reputation to lose.
Seems like a good idea, provided we can do it simply enough that people can understand what's going on and still follow the relationship between the penalty and the points available for getting a question right.
This is an idea for making the game more interesting - have some questions that are high value, but only appear infrequently. At the moment, all questions appear with roughly the same frequency.
i.e. what time a request was made, whether or not it was correct.
Otherwise it's too easy for you to accidentally withdraw another player.
Fix QuestionFactory to implement some rule to do this.
You could add a tip in the README about https://ngrok.com/
It's really an easy way to solve all the firewall / nat / network issues : all servers (both facilitator and trainees) can be exposed on internet in 1 min with that :)
Yikes, we have some kind of dependency between the tests.
Very late to the game here, but I was originally drawn to this workshop via @jhannes, whom I met in Kiev where he hosted a dojo.
Now I'd like to host a similar event myself, but I'm having trouble getting the application to run. The fact that I'm on Windows probably doesn't help, but I've previously managed to get other Ruby-based programs running, including my own blog, which is created with Jekyll.
My other big disadvantage is that I'm not a Ruby programmer at all.
I've been asking about some of my issues on Stack Overflow, and I'm currently stuck with this one: http://stackoverflow.com/q/32228794/126014 From the answer provided so far, I understand that the main issue is that the code in the repo isn't compatible with current Ruby tools/dependencies.
If so, would it be possible to update the code base to current Ruby tools, or are there other attempts I can make of getting the current code base up and running?
I realise that this is software provided for free, so I completely understand if this is too big of an effort. On the other hand, if I don't ask, the answer is automatically no... ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.