Posts

Lenovo A6000 / Plus with Lollipop 5.1.1 with Hindi Font issue solved

I recently updated my Lenovo A6000 (which is showing signs of wear) to Lollipop 5.1.1 using this tutorial on XDA Developers. (The forum post tells me that the author of this rather marvelous mod is A-MOD ). After updating, I found that I could no longer read WhatsApp forwards which were not in English. All Hindi and Marathi characters where replaced by blocks or what some people call "Tofu"(and hence the No To fu font - the Noto fonts by Google). So I did what I do best and found articles dating back to 2010 and 2012 talking about DroidSanFallback.ttf font, the /system/fonts folder, the /system/etc folder, the fonts.xml file and the fallback_fonts.xml file. After several permutations and combinations which luckily did not brick my phone. I got the following solution. To begin with, you will need a freshly tortured A6000/Plus with the 5.1.1 unofficial ROM installed. After that, I would recommend enabling Root Access from Developer Options for Apps, installing the ES File B...

MixRadio India subscriptions discontinued

Microsoft who took over Nokia's mobile division, is no longer offering renewals for MixRadio in India. The subscription allowed users to download songs. Mixradio will continue as a streaming only service. The related FAQ page on microsoft.com has the following message: "You will no-longer be able to purchase renewals for your unlimited download subscription via Operator Billing, Credit/Debit Card or Voucher as this feature is no-longer available" Source: http://www.microsoft.com/en-in/mobile/support/product/mixradio/faq/?action=singleTopic&topic=FA144145 Update: wmpoweruser.com received a reply from Mixradio India's twitter handle saying they are working on re-enabling vouchers. Source: http://wmpoweruser.com/mixradio-working-on-re-enabling-voucher-payments-in-india/

Touchpad and WiFi stopped working on Ubuntu

The last thing I remember about using this laptop was that bluetooth had stopped working. Even though it worked when I booted up Windows 8. I remember fiddling around with scripts I did not understand. So when I booted up my old laptop weeks later, I found that mouse(touchpad) and WiFi were dead too. What's more, everything worked fine on Windows. Let's cut to the chase. Since I did not have a working internet connection on the laptop(in Ubuntu), I wondered if I could reinstall the touchpad packages and opened up Synpatic Package Manager, which gave me an error asking me to run the following > sudo dpkg --configure -a  I ran it and rebooted Ubuntu. Mouse and Wifi started working after restarting the system.

Appengine: Custom Error Handlers using webapp2 - Python 2.7

Google Developers has a writeup on Custom Error Responses using app.yaml Here is a sample app.yaml app.yaml application: appname version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /static static_dir: static http_headers: Vary: Accept-Encoding - url: /articles/.* script: articles.app On the Development Environment, I get the following error when I visit http://localhost:8080/ i.e the home page Not found error: / did not match any patterns in application configuration. On Appengine, a standard 404 Error is shown Error: Not Found The requested URL / was not found on this server. This is because the app.yaml file does not specify any handler for "/" Here is the articles.py file articles.py import webapp2 class HomePage(webapp2.RequestHandler): def get(self): self.response.write.out("Hello Birds!") app = webapp2.WSGIApplication( [ (r'/articles/', HomePage) ], debug=True) Specify...

AppEngine: Intermittent DJANGO_SETTINGS_MODULE is undefined error on Django with Python 2.7 on Google App Engine

Ever since moving from webapp to Django on Python 2.7, I was plagued with the following error, albeit intermittently. Whenever, I would flush my memcache or start a new instance or run into an unhandled exception, my appengine based app wouldn't start. Logs gave me the following error, Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. I searched far and wide for a solution, looked up topics on stackoverflow. The DJANGO_SETTINGS_MODULE is a common problem for django novices like yours truly and stackoverflow had umpteen questions and answers regarding the issue, but I couldn't find the right answer. Well, let me start off with a piece of my bad code. I looked up the official documentation for pointers when I started the migration from webapp templates to purer Django templates on my appengine project. The Django Documentation on Settings page mentions the following two options to configure django settings on a project(ap...

AppEngine: Python 2.7, Django Custom Template Filters without webapp, errors and more

Part of the move from Python 2.5 to Python 2.7 on Google App Engine, included moving from Django 0.96 to Django > 1.2. Another part of moving, for me atleast, included leaving webapp behind. I moved to Django 1.3, but leaving webapp is a work in progress and a part of the topic of this post. Webapp Django vs Django AppEngines's Internal Django: Webapp uses django to handle templating, however, this django version is an internal version(Let's call this "AppEngine's Internal Django"). This internal version may not support some of the features that a regular installation of Django templates would. As of SDK 1.7.3, webapp is located in google.appengine.ext.webapp and the internal django is located at google.appengine._internal.django . To use templates from webapp, one is expected to do the following from google.appengine.ext.webapp import template The webapp.template module is just a wrapper for Appengine's Internal Django templates. which are...

AppEngine: Migrating from Python 2.5 to Python 2.7 on Google App Engine in simple steps

I tried moving an old app on Google App Engine from Python 2.5 to Python 2.7. Google Developers has provided a nice writeup , with all the prerequisites. However, being a noob, I found it rather difficult. The first problem being, main.app. In Python 2.5, the script is named after the filename. If you have a file called main.py which you want to be called to handle certain urls, you put the script name as main.py, under handlers in app.yaml. In the Python 2.7 runtime, app engine wants you to use the dot notation to call the appropriate "WSGI application object". So app.yaml has main.app instaed of main.py. handlers: - url: /.* script: main.app And by main.app, you are referring to the app attribute of main.py file(i.e the module called "main") I did not understand this at first, and changed the line in app.yaml to main.app and changed the name of the file main.py to main.app ImportError: No module named main  On running the application dev_appserver,...