Skip to content

Instantly share code, notes, and snippets.

View groovecoder's full-sized avatar

luke crouch groovecoder

View GitHub Profile
........................................................................................S..........SS...............http_app_kuma: 2015-04-28 06:47:36,980 django.request:ERROR Internal Server Error: /en-US/test_exception/: /home/vagrant/src/vendor/src/django/django/core/handlers/base.py:231
Traceback (most recent call last):
File "/home/vagrant/src/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/vagrant/src/vendor/src/django/django/db/transaction.py", line 394, in inner
return func(*args, **kwargs)
File "/home/vagrant/src/kuma/core/tests/logging_urls.py", line 5, in exception_raiser
raise Exception('Raising exception to test logging.')
Exception: Raising exception to test logging.
.http_app_kuma: 2015-04-28 06:47:37,002 django.request:ERROR Internal Server Error: /en-US/test_exception/: /home/vagrant/src/vendor/src/django/django/core/handlers/base.py:231
#!/bin/bash
cd /Users/lcrouch/code/kuma
git co master
git pull
git rev-parse HEAD && git rev-parse HEAD | pbcopy
[13/Apr/2015 19:36:30] "POST /api/v1/changesets HTTP/1.1" 201 2216
[13/Apr/2015 19:36:31] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1293
[13/Apr/2015 19:36:31] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1265
[13/Apr/2015 19:36:31] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1267
[13/Apr/2015 19:36:31] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1263
[13/Apr/2015 19:36:31] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1287
[13/Apr/2015 19:36:31] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1302
[13/Apr/2015 19:36:31] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1257
[13/Apr/2015 19:36:32] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1277
[13/Apr/2015 19:36:32] "POST /api/v1/specifications?changeset=5 HTTP/1.1" 201 1240
vagrant@precise32:~/src$ sudo /home/vagrant/env/bin/python manage.py update_product_details
/home/vagrant/src/kuma/core/managers.py:23: RemovedInDjango18Warning: `_PrefetchTaggableManager.get_prefetch_query_set` method should be renamed `get_prefetch_queryset`.
class _PrefetchTaggableManager(_TaggableManager):
/home/vagrant/src/vendor/packages/django-threadedcomments/threadedcomments/models.py:120: RemovedInDjango18Warning: `PublicThreadedCommentManager.get_query_set` method should be renamed `get_queryset`.
class PublicThreadedCommentManager(ThreadedCommentManager):
/home/vagrant/src/kuma/search/admin.py:46: RemovedInDjango18Warning: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is deprecated - form IndexModelForm needs updating
class IndexModelForm(forms.ModelForm):
(kuma)lcrouch-14912:ui lcrouch$ node_modules/.bin/intern-runner config=intern-local
/Users/lcrouch/code/kuma/node_modules/path/path.js:330
if (!util.isString(path)) {
^
TypeError: Object #<Object> has no method 'isString'
at Object.exports.resolve (/Users/lcrouch/code/kuma/node_modules/path/path.js:330:17)
at Object.exports.relative (/Users/lcrouch/code/kuma/node_modules/path/path.js:405:20)
at getSource (/Users/lcrouch/code/kuma/tests/ui/node_modules/intern/lib/util.js:372:22)
at formatLine (/Users/lcrouch/code/kuma/tests/ui/node_modules/intern/lib/util.js:411:40)
var contestants = ['Luke Crouch', 'Joseph Peters', 'Matt Casteel', 'Steven Copley', 'Blixa Morgan', 'Josh Mize'];
var winnerIdx = Math.floor(Math.random()*contestants.length);
alert(contestants[winnerIdx]);
mysql> select d.locale Locale, YEAR(created) Year, MONTH(created) Month,
-> count(distinct creator_id) Editors from wiki_revision as r LEFT JOIN
-> wiki_document as d on r.document_id = d.id where d.locale<>'en-US' GROUP
-> BY MONTH(created), YEAR(created), Locale ORDER BY Locale, Year, Month;
+--------+------+-------+---------+
| Locale | Year | Month | Editors |
+--------+------+-------+---------+
| af | 2014 | 8 | 1 |
| af | 2014 | 11 | 3 |
| af | 2015 | 1 | 4 |
mysql> select YEAR(created) Year, MONTH(created) Month, count(distinct
-> creator_id) Editors from wiki_revision as r LEFT JOIN wiki_document as d
-> on r.document_id = d.id where d.locale<>'en-US' GROUP BY MONTH(created),
-> YEAR(created) ORDER BY Year, Month;
+------+-------+---------+
| Year | Month | Editors |
+------+-------+---------+
| 2005 | 5 | 4 |
| 2005 | 6 | 12 |
| 2005 | 7 | 27 |
mysql> select YEAR(created) Year, MONTH(created) Month, count(distinct
-> creator_id) Editors from wiki_revision as r LEFT JOIN wiki_document as d
-> on r.document_id = d.id where d.locale='en-US' GROUP BY MONTH(created),
-> YEAR(created) ORDER BY Year, Month;
+------+-------+---------+
| Year | Month | Editors |
+------+-------+---------+
| 2005 | 3 | 4 |
| 2005 | 4 | 26 |
| 2005 | 5 | 59 |
mysql> select YEAR(created) Year, MONTH(created) Month, count(distinct
-> creator_id) Editors from wiki_revision as r LEFT JOIN wiki_document as d
-> on r.document_id = d.id GROUP BY MONTH(created), YEAR(created) ORDER BY
-> Year, Month;
+------+-------+---------+
| Year | Month | Editors |
+------+-------+---------+
| 2005 | 3 | 4 |
| 2005 | 4 | 26 |
| 2005 | 5 | 60 |