Skip to content

Instantly share code, notes, and snippets.

View mtyaka's full-sized avatar

Matjaz Gregoric mtyaka

View GitHub Profile
2015-10-10 09:55:47 | INFO | instance.models.instance | instance=pr10007.sandbox | TASK: [edxapp | syncdb and migrate] *******************************************
2015-10-10 09:55:50 | INFO | instance.models.instance | instance=pr10007.sandbox | failed: [149.202.174.88] => (item=lms) => {"changed": true, "cmd": ["/edx/bin/edxapp-syncdb-lms"], "delta": "0:00:03.470181", "end": "2015-10-10 09:55:50.836722", "item": "lms", "rc": 1, "start": "2015-10-10 09:55:47.366541", "warnings": []}
2015-10-10 09:55:50 | INFO | instance.models.instance | instance=pr10007.sandbox | stderr: warning: unable to access '/root/.config/git/attributes': Permission denied
2015-10-10 09:55:50 | INFO | instance.models.instance | instance=pr10007.sandbox | 2015-10-10 09:55:49,927 INFO 25356 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
2015-10-10 09:55:50 | INFO | instance.models.instance | instance=pr10007.sandbox | Traceback (most recent call last):
2015-10-10 09:55:50 |
@mtyaka
mtyaka / count.js
Last active October 1, 2015 14:18
var count = 0;
json.layout.pages.set.forEach(function(set) {
if (set.count) {
count += set.print_page.length;
}
});
console.log('COUNT', count);
2015-09-28 10:12:26,833 ERROR 10989 [django.request] base.py:213 - Internal Server Error: /courses/edX/DemoX/Demo_Course/xblock/i4x:;_;_edX;_DemoX;_problem-builder;_728c2be9a24d435492d71a55970eec24/handler/submit
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 109, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 945, in handle_xblock_callback
return _invoke_xblock_handler(request, course_id, usage_id, handler, suffix, course=course)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 1064, in _invoke_xblock_handler
resp = instance.handle(handler, req, suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/mixins.py", line 86, in handle
return self.runtime.handle(self, handler_name, request, suffix)
(pipeline)[analytics@edx-analytics-devstack pipeline]$ launch-task InsertToMysqlUserProfilesTask --local-scheduler
DEBUG:stevedore.extension:found extension EntryPoint.parse('sqoop-import = edx.analytics.tasks.sqoop:SqoopImportFromMysql')
DEBUG:stevedore.extension:found extension EntryPoint.parse('last-country = edx.analytics.tasks.user_location:LastCountryForEachUser')
DEBUG:stevedore.extension:found extension EntryPoint.parse('enrollment_validation = edx.analytics.tasks.enrollment_validation:CourseEnrollmentValidationTask')
DEBUG:stevedore.extension:found extension EntryPoint.parse('inc-enrollments-report = edx.analytics.tasks.reports.incremental_enrollments:WeeklyIncrementalUsersAndEnrollments')
DEBUG:stevedore.extension:found extension EntryPoint.parse('total-enrollments-report = edx.analytics.tasks.reports.total_enrollments:WeeklyAllUsersAndEnrollments')
DEBUG:stevedore.extension:found extension EntryPoint.parse('video = edx.analytics.tasks.video:InsertToMysqlAllVideoTask')
DEBUG:stevedore.extension:foun
@mtyaka
mtyaka / test_js.out.sh
Created July 23, 2015 13:46
paver test_js
edxapp@precise64:~/edx-platform$ paver test_js
---> pavelib.js_test.test_js
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
---> pavelib.utils.test.utils.clean_reports_dir
find /edx/app/edxapp/edx-platform/reports -type f -delete
Setting up for all javascript
---> pavelib.utils.test.utils.clean_test_files
git clean -fqdx test_root/logs test_root/data test_root/staticfiles test_root/uploads
@mtyaka
mtyaka / test_acceptance.out.sh
Created July 23, 2015 13:42
paver test_acceptance
edxapp@precise64:~/edx-platform$ paver test_acceptance
---> pavelib.acceptance_test.test_acceptance
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
Ruby prereqs unchanged, skipping...
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
---> pavelib.prereqs.install_python_prereqs
Python prereqs unchanged, skipping...
---> pavelib.utils.test.utils.clean_reports_dir
@mtyaka
mtyaka / test_python.out.sh
Last active August 29, 2015 14:25
paver test_python
edxapp@precise64:~/edx-platform$ paver test_python
---> pavelib.tests.test_python
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
Ruby prereqs unchanged, skipping...
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
---> pavelib.prereqs.install_python_prereqs
Python prereqs unchanged, skipping...
---> pavelib.utils.test.utils.clean_reports_dir
2015-02-06 17:59:02,842 ERROR 22551 [root] exceptions.py:9 - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'>
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 109, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/http.py", line 41, in inner
return func(request, *args, **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/edx-platform/common/djangoapps/util/json_request.py", line 24, in parse_json_into_request
return view_function(request, *args, **kwargs)
2014-03-04 19:53:53,063 ERROR 10574 [django.request] base.py:215 - Internal Server Error: /courses/Nanolearning/Fin201/2014/instructor
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/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)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/instructor/views/legacy.py", line 558, in instructor_dashboard
datatable['title'] = _u('Student profile data for course {couse_id}').format(course_id = course_id)
@mtyaka
mtyaka / poppler.rb
Created August 19, 2013 13:11
Homebrew formula that installs poppler 0.22.5 with several patches applied to the pdftocairo utility. The patches fix output to stdout and add -jpegquality <int> and -pngcompression <int> command line options.
require 'formula'
class PopplerData < Formula
url 'http://poppler.freedesktop.org/poppler-data-0.4.6.tar.gz'
sha1 'f030563eed9f93912b1a546e6d87936d07d7f27d'
end
class Poppler < Formula
homepage 'http://poppler.freedesktop.org'
url 'http://poppler.freedesktop.org/poppler-0.22.5.tar.gz'