Skip to content

Instantly share code, notes, and snippets.

View champs's full-sized avatar

Peerakit Champ Somsuk champs

View GitHub Profile
@champs
champs / setup-zinnia-install
Created August 6, 2012 05:56
Setup Zinnia django blog enine
## required
pip install django-tagging
pip install PIL
pip install beautifulsoup
pip install django-blog-zinnia
pip install django-mptt
@champs
champs / gist:1482242
Created December 15, 2011 18:32
migrate --ignore-ghost-migration
Traceback (most recent call last):
File "./_manage.py", line 7, in <module>
execfile(__file__)
File "/Users/blue/work/socialize/socialize-api/ssz/scripts/manage.py", line 17, in <module>
execute_manager(settings)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
iVBORw0KGgoAAAANSUhEUgAAAFMAAABTCAIAAABs0KxXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8 IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QjlBQjBFNzAxQzQ1MTFFMDk2QjJBNkU0QUU2NUFDN0YiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QjlBQjBFNzExQzQ1MTFFMDk2QjJBNkU0QUU2NUFDN0YiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCOUFCMEU2RTFDNDUxMUUwOTZCMkE2RTRBRTY1QUM3RiIgc3RSZWY6ZG9jdW1l
@champs
champs / gist:1338699
Created November 4, 2011 05:05
error 500 server
{"category": "Education", "user_id": 145874, "description": "\u279c \"An excellent app to teach numbers/letters/multiplication tables.\" Technology in Education\r\n\r\n\u279c \"Featuring outstanding management features, lots of levels ... this collection of 42 dot-to-dot puzzles can be used to practice counting, the alphabet, or times tables.\" Children's Technology Review\r\n\r\n\u279c\u201dAs a kid I used to love dot-to-dot pictures. This app takes it to the next level with fun pictures, filled in on completion, timed modes where kids have to finish in a certain time to open the next level and number sequences based on times tables so that older kids can still use the app to practice their arithmetic.\u201d Thenextweb.com\r\n\r\nNumber counting. Learning the times tables. Repeating the alphabet. This needn\u2019t be boring for kids. With DotToDot numbers and letters it\u2019s fun to practise all three!\r\n\r\nUsing dot-to-dot puzzles, DotToDot numbers and letters teaches the sequence of numbers and letters
{"error_message": "Unterminated string starting at: line 1 column 4201 (char 4201)", "traceback": "Traceback (most recent call last):\n\n File \"/Users/blue/work/socialize/socialize-api/ssz/ssz/system/packages/tastypie/resources.py\", line 185, in wrapper\n response = callback(request, *args, **kwargs)\n\n File \"/Users/blue/work/socialize/socialize-api/ssz/ssz/system/packages/tastypie/resources.py\", line 390, in dispatch_list\n return self.dispatch('list', request, **kwargs)\n\n File \"/Users/blue/work/socialize/socialize-api/ssz/ssz/system/packages/tastypie/resources.py\", line 420, in dispatch\n response = method(request, **kwargs)\n\n File \"/Users/blue/work/socialize/socialize-api/ssz/ssz/socialize/partner/v1/resources.py\", line 407, in post_list\n result = self._process_app_update_or_creation(request, pk=None)\n\n File \"/Users/blue/work/socialize/socialize-api/ssz/ssz/socialize/partner/v1/resources.py\", line 315, in _process_app_update_or_creation\n decoded_payload = simplejson.l