Skip to content

Instantly share code, notes, and snippets.

XavierAntoviaque|2013-10-25 08:20:01.595277|browser|page_close|192.168.20.1|Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0||precise32|2013-10-25 08:20:01.594267|1158|http://192.168.20.40:8000/courses/Paris2/Test-101/test/courseware/60bc3ee356d44aa0b797b17ce205514d/7da0cb7fd44942e0bafe53b4686b7966/
XavierAntoviaque|2013-10-25 08:20:02.088360|server|/jsi18n/|192.168.20.1|Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0|{"POST": {}, "GET": {}}|precise32|2013-10-25 08:20:02.087436|1159|
XavierAntoviaque|2013-10-25 08:20:05.610617|browser|load_video|192.168.20.1|Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0|{"id":"i4x-Paris2-Test-101-video-88eaae7b67d04f498c1144b6328785ec","code":"sMFSoMkLhic"}|precise32|2013-10-25 08:20:05.609251|1160|http://192.168.20.40:8000/courses/Paris2/Test-101/test/courseware/60bc3ee356d44aa0b797b17ce205514d/7da0cb7fd44942e0bafe53b4686b7966/
XavierAntoviaque|2013-10-25 08:20:06.647623|browser|play_vide
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAu23zAzdBiV9cweNorE/Xu9LtJg29FiH2mYHT5FAp6NBQxIkPYu3kvsP+l0D9WTKbPNXEHA71BR0QodQJ1aT5/rnZFlTUlQrTo5ck/DD5XY65fLMwSvvgdHDwDt255Q5D5nbD1RC6ImVOp4f8quCVvi9u4u9KH9TlqPwhHgArDxf9G9P4DqUqQYnQ1RDJjIBEZ0OqByc2X9/QXLvpEXYNpAOeiweJKFOlRtIuFujgDSw6J+CEFoa20p/60WW9gWpUKojQ0XetxPyLMx/cjqai9zZjgjRivyzeZHNiPO5LW3vyoPWRU3TNIT1Tf4mXrcWdqGcNMhNzN90ryakJnqJdpQ== antoviaque@antoviaque-laptop
(function($) {
$.scribble = {
window: window,
location: location,
bootstrap: function(root) {
var $this = this;
if(root.hasClass('scribble_root')) {
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="jquery.scribble.js"></script>
<script>
$(function() {
$('.scribble').scribble();
});
2013-12-10 16:55:25,474 WARNING 12535 [xmodule.modulestore.mongo.base] base.py:211 - Failed to load descriptor
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mongo/base.py", line 206, in load_item
inherit_metadata(module, metadata_to_inherit)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/inheritance.py", line 86, in inherit_metadata
descriptor.xblock_kvs.inherited_settings = inherited_data
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 203, in xblock_kvs
self.save()
File "/edx/app/edxapp/edx-platform/xblock-mentoring/mentoring/answer.py", line 88, in save
super(AnswerBlock, self).save()
2014-01-06 15:38:40,289 ERROR 2001 [django.request] base.py:215 - Internal Server Error: /courses/Harvard/HC/January/courseware/69eaa100718542faab5ea1d56ac86ce8/8b3507f44ddd4d968a7c1bf5a3e41e6c/
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 75, in _cache_controlled
response = viewfunc(request, *args, **kw)
@antoviaque
antoviaque / gist:8423488
Created January 14, 2014 18:45
Granting superuser privileges to an existing user in edX
edxapp@edx:~/edx-platform$ ./manage.py lms shell --settings=devstack
Python 2.7.3 (default, Sep 26 2013, 20:03:06)
Type "copyright", "credits" or "license" for more information.
IPython 0.13.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
ItemNotFoundError: i4x://TestX/MENTOR-1/vertical/3d425f55b5d94c29ab33c477dee6a4fb
2014-01-16 11:54:10,608 ERROR 3837 [root] import_export.py:358 - There was an error exporting course i4x://TestX/MENTOR-1/course/now. 'MentoringBlockWithMixins' object has no attribute 'export_to_xml'
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/import_export.py", line 325, in export_handler
export_to_xml(modulestore('direct'), contentstore(), old_location, root_dir, name, modulestore())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_exporter.py", line 108, in export_to_xml
draft_vertical.export_to_xml(draft_course_dir)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py", line 368, in export_to_xml
xml_object = self.definition_to_xml(resource_fs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/seq_module.py", line 154, in definition_to_xml
2014-01-18 17:23:49,727 ERROR 7642 [root] import_export.py:358 - There was an error exporting course i4x://TestX/MENTOR-1/course/now. 'NoneType' object has no attribute 'makedir'
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/import_export.py", line 325, in export_handler
export_to_xml(modulestore('direct'), contentstore(), old_location, root_dir, name, modulestore())
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_exporter.py", line 57, in export_to_xml
course.export_xml(root)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 686, in export_xml
xml_string = self.export_to_xml(self.runtime.export_fs)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py", line 368, in export_to_xml
xml_object = self.definition_to_xml(resource_fs)
<vertical display_name="Test unit">
<mentoring url_name="goal_definition" followed_by="getting_feedback">
<answer name="goal" />
</mentoring>
</vertical>