Kivy recipe: accessing main code and data from service

Generally the problem of communication between android service and the app itself is still not solved, the easiest way is to push it in service args. So let's do it. Send data to service In your app serialize needed data (for example in json). In my case it's configuration (I…

Kivy recipe: settings screen customization

So I've decided to build a kognitivo styled settings screen. Here is some documentation on how to build the custom settings screen. But here is the problem (actually like everywhere in kivy): You want the settings screen to be styled as your app in general, but almost all the styles…

Kivy recipe: android notifications and alarm manager

Finally I figured out how to make notifications work! Here are some links: BroadcastingReceiver and service discussion on users group Plyer project(notifications for freaks) Kivy android service tutorial Open notifications fired from service Code This snippet creates alarm event, which fires a notification. Used simply to notify the user…

Django-CMS 3.x ValueError: invalid literal for int() with base 10

If you use django-cms 3 and get something like in production File "/home/web/db/mobile_service.db.d.s-v.de/site/include/virtualenv/lib/python2.7/site-packages/django/db/models/sql/where.py", line 79, in _prepare_data value = obj.prepare(lookup_type, value) File "/home/web/db/mobile…

Django gives 400 even if ALLOWED_HOSTS set

I have found a really pretty django 'feature': if the subdomain contents underscores, django will give 400 even if DEBUG=True and even if ALLOWED_HOSTS=['*']. Here is django issue for that: https://code.djangoproject.com/ticket/19952 Fuck it!…

Kognitivo: challenge your brain!

Point As I have heard about kivy first time I was completely excited about the possibility to create my own app in python. Also as a programmer I want to optimize everything and my work process is not the last thing in my optimization queue. You've probably noticed, that everyone…