julython / julython.org Goto Github PK
View Code? Open in Web Editor NEWJulython Website
Home Page: http://www.julython.org
License: MIT License
Julython Website
Home Page: http://www.julython.org
License: MIT License
We need an api endpoint to register successful answers to the beginner questions. This will also require a new model for questions 1 to 31 like this, parent will be the User object.
class Question(ndb.Model):
number = ndb.IntegerProperty() # 1- 31
title = ndb.StringProperty()
score = ndb.IntegerProperty() # not sure if we need this
date = ndb.DatetimeProperty(auto_now_add=True)
The barchart should be made to work with a array like:
[{'label': '7/23', 'count': 45}, ...]
This will require the labels to be rotated as well as the function changes to parse the data.
I think it's more useful to see the projects a user is involved with rather than the commits.
Trying to sign in with GitHub doesn't work for me. I get a "Whoops! More work to do!".
The first time I tried this, I got the question for the authorization decision (in OAuth2 parlance). Accepting this led to the aforementioned error. Subsequent sign in attempts lead to a whoops immediately.
Big query will allow all manners of sql like queries on the data. Possibly help with creating reports and graphs.
Create a page listing out 31 questions and a quick link to submit an answer for one.
Create a new model to store questions:
I signed up for Julython today (June 28th 2013) and I forget to put in my last name.
When I tried to change my last name in the 'Edit Profile' tab in my account's page, my browser (tried it with Chrome/Firefox) is directed to a 'Whoops! More work to do!' page, Attempting to change any of my profile's information leads to the same thing.
Bellow is my julython information:
github account: mfarhan12
First name: Mohammad
Location: Ottawa, Canada
Team: OPAG
When a user updates his/her email address, kick off a deferred task to associate orphan commits with them. This will make the user experience slightly better.
If you log in to julython, click on "Edit Profile", and click on "Cancel", it will lead to a 404.
The cancel button leads to http://www.julython.org/username/ instead of http://www.julython.org/username
Running
python manage.py loaddata july/fixtures/development.json
throws
DeserializationError: Problem installing fixture 'july/fixtures/development.json'[u"'Python' value must be an integer."]
When this is resolved, I'll be able to test a few tweaks I have. 😄
Send out an email to remind everyone that Julython is coming up!
Add a display of questions that have been answered by the user along side any commits they have on their profile.
My account is linked to a couple of old repos from the last Julython that I no longer want linked. I'd really appreciate the ability to remove them.
I haven't pushed any commits to github yet today, but some from yesterday are showing up under July 2nd.
1.4 is available so we should use it
In order to stop the spammers short circuit the api that resolve to de-active accounts.
The winners will need to have shirts shipped to them.
The url can be 'secret' for now and we'll decide later how to expose it.
I'm trying to stand up julython.org locally. I've created a virtualenv and have pip installed the requirements (I commented out MySQL-python and gunicorn). I ran python manage.py syncdb
and python manage.py migrate
. I created a secrets.py file and set up Twitter and GitHub apps and put their keys in secrets.py along with a SECRET_KEY. Then I ran python manage.py runserver
and hit http://localhost:8000/ and I get:
Is this because I don't have grunt set up yet, maybe?
How do I debug this? I don't have a traceback in my console, just this line:
[05/Jan/2013 13:39:55] "GET / HTTP/1.1" 500 657
s/appengine/rackspace/g
k thx bye
When I joined Julython, I registered a project named "matex". I have since renamed the repo to "lamark". My projects page on julython now shows my points split between two projects, and the matex project pointing to a dead link.
Add a answer question form with takes a file upload and a question number. Place the file in google drive and kick off a task on an external server to test the code. Run the code in a fresh chroot to minimize security risks :)
When I try to log in via Twitter, I get a server error saying something like the following:
Whoops! More work to do!
You should submit a pull request to fix this bug.
Our github
The web hook improperly sets the description to None when the user does not have a website set.
description = repo.get('website') or ''
The profile page should get the active or latest game and use that for the start and end days.
There's a couple ways this could be done:
Then I was thinking this would show up on a person page:
Is this something you'd be interested in?
Need a way for users to reset passwords by emailing a special link or temp password.
Update the translation files and ping translators.
Since the move off of appengine the account creation and login with just email and password has been broken.
UPDATE:
Allow people to sign up without oauth again. Allow people to reset their passwords as well through email.
Also, it did not detect that I already had an account through GitHub.
We need web workers to handle the creation of commits.
Use GAE full text search engine on commits and projects.
I suppose it's a matter of preference, but editing these templates is painful. Why not use HamlPy?
The current histogram is not very smart. It just creates a list from the days returned, this means that if there are no commits on day 3 but there are on day 4 they appear on day 3. We need to inspect the data coming back and fill in zeros for the missing days. Also we should change the front end to accept a json object like:
{'count': 9, 'label': '2013-07-04'}
First of all, I must say that julython is an awesome idea and thank you for it.
I've run across an interesting thing in the leaderboard: http://www.julython.org/projects/gh-FNNDSC-chrisreloaded/
There would be nothing wrong with that project except for the fact that welll, it's not Python.
And that's against the rules.
I'm not sure how to fix this but perhaps we could have a look at GitHub API and see if the project is mostly writen in Python?
Thanks for julython anyway!
Create a backup or a alternative table to store old commits in?
Then delete the data so we can start fresh.
We should re-use the logic in Game.active_or_latest()
Change the username static link to a drop down menu and add items:
All language boards are showing up.
I suspect this comes from having made my account with Twitter and having signed in to edit it with GitHub. Although the site recognizes that I'm signed into my own account, when I try to edit my profile it tells me I'm not me.
I'm not particularly concerned or bothered by this, I just thought you might like to know.
When a user changes their location the points are not updated for the old and new locations. Need a simple job to total all the user points for a location each night or after profile updates (the later would be better)
Probably use http://rendro.github.io/easy-pie-chart/
I'm not a twitter user, so I have no means of logging in. GitHub would probably be a logical choice to add support for IMHO
add a management command to merge accounts.
Traceback (most recent call last):
File "/usr/local/julython/venv/src/july/july/api.py", line 136, in _publish_commits
requests.post(url + 'project-%s' % commit.project.id, serialized)
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/requests/api.py", line 81, in post
return request('post', url, data=data, **kwargs)
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/newrelic-1.9.0.21/newrelic/api/object_wrapper.py", line 220, in __call__
self._nr_instance, args, kwargs)
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/newrelic-1.9.0.21/newrelic/api/external_trace.py", line 60, in dynamic_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/requests/api.py", line 38, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 262, in request
resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 357, in send
r = adapter.send(request, **kwargs)
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/requests/adapters.py", line 152, in send
timeout=timeout,
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 422, in urlopen
body=body, headers=headers)
File "/usr/local/julython/venv/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 274, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python2.7/httplib.py", line 962, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 996, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 958, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 822, in _send_output
self.send(message_body)
File "/usr/lib/python2.7/httplib.py", line 794, in send
self.sock.sendall(data)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 201: ordinal not in range(128)
Example post:
{"pusher":{"name":"fluxbot","email":"[email protected]"},
"repository":{
"name":"dput-ng","size":1564,"created_at":"2012-10-27T07:44:08-07:00","has_wiki":false,"watchers":1,"private":false,"fork":false,"url":"https://github.com/Debian/dput-ng","language":"Python","id":6417909,"pushed_at":"2013-01-02T14:40:10-08:00","has_downloads":true,"open_issues":0,"homepage":"http://people.debian.org/~paultag/dput-ng/","has_issues":false,"organization":"Debian","forks":0,"description":"next generation of dput -- mirror only, real repo @ git.d.o","stargazers":1,"owner":{"name":"Debian","email":null}
},
"forced":false,
"after":"64621d4ff11f25337f05ca0e2b9c22452670ea1c",
"head_commit":{
"modified":[],
"added":["dput/commands/contrib/__init__.py"],
"author":{"name":"Arno Töll","email":"[email protected]"},
"timestamp":"2013-01-02T14:37:26-08:00",
"removed":[],
"url":"https://github.com/Debian/dput-ng/commit/64621d4ff11f25337f05ca0e2b9c22452670ea1c",
"id":"64621d4ff11f25337f05ca0e2b9c22452670ea1c",
"distinct":true,
"message":"Merge branch 'master' of ssh://git.debian.org/git/collab-maint/dputng",
"committer":{"name":"Arno Töll","email":"[email protected]"}},
"deleted":false,
"ref":"refs/heads/master",
"commits":[{"modified":["TODO","dput/command.py"],"added":[],"author":{"name":"Arno Töll","email":"[email protected]"},"timestamp":"2013-01-02T14:37:12-08:00","removed":[],"url":"https://github.com/Debian/dput-ng/commit/71f2456bac403243bcae3e9319530a428f02452e","id":"71f2456bac403243bcae3e9319530a428f02452e","distinct":true,"message":"Write a memo why we stubbed the profile in dcut","committer":{"name":"Arno Töll","email":"[email protected]"}},{"modified":[],"added":["dput/commands/contrib/__init__.py"],"author":{"name":"Arno Töll","email":"[email protected]"},"timestamp":"2013-01-02T14:37:26-08:00","removed":[],"url":"https://github.com/Debian/dput-ng/commit/64621d4ff11f25337f05ca0e2b9c22452670ea1c","id":"64621d4ff11f25337f05ca0e2b9c22452670ea1c","distinct":true,"message":"Merge branch 'master' of ssh://git.debian.org/git/collab-maint/dputng","committer":{"name":"Arno Töll","email":"[email protected]"}}],"compare":"https://github.com/Debian/dput-ng/compare/5d5d7fc673b2...64621d4ff11f","before":"5d5d7fc673b2265f2f69badcdec8ac5d79ae1fd8","created":false}
The leader board should have three columns. 'small', 'medium', 'large' depending on the number of watchers/stars/forks.
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.