Wood work, something that I have never done before.

This is a small post goes back to July 2016, my dad bought me an AEG mitre saw from Bunnings which I had no project in mind and have never done wood work before. So I did big clean up in the garage in the morning to make room for the to be built workshop, then… Read More »

Reading Material: Recognizing Traffic Lights With Deep Learning

A pretty good Non-AI-Experience required article talking about how to train models to recognise traffic lights. It has a few link references that will be very helpful for my future AI training/projects, eg. image-net.org https://medium.freecodecamp.com/recognizing-traffic-lights-with-deep-learning-23dae23287cc#.k941su69v

4 dimension analogy

Was reading an article about different dimensions, especially 4th dimension is time. So what’s like being in 4 dimension world? My guess is similar to watching a movie, every frame of the world is a 3 dimensional world.

How it feels to learn JavaScript in 2016

“I need to display data on a page, not perform Sub Zero’s original MK fatality.” https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.67qnsecr5

Alkaline Battery Comparison

Been studying electricity lately and stumbled on to this article http://www.powerstream.com/AA-tests.htm Looks like Energizer is a clear winner.

DRY recipe on Django pagination template

Here is a quick recipe for Django templates, let’s say you are building a Django web which has many list views, and which has pagination, it’s wise to abstract the pagination template out to be reusable by all list view templates. My preference is to keep all reusable templates in a partials folder, and place the… Read More »

Django Rest Framework QuerySet

I have just created this python library so that you can query the remote api just like the Django queryset. It is particularly usefully when used in Django ListView with pagination. https://github.com/variable/django-rest-framework-queryset 

Posting image to thumbor using requests package

Seems like there are not many code sample there, and the requests documentation was giving the wrong hint to use files={‘file’: open(‘image.jpg’)} which you will end up getting 415 response code. I think I will just share my working sample code here to save someone’s time


Suppressing imported but unused warnings from flake

If you are a good python dev, surely you follow PEP8 coding style guidelines, and surely you have installed the flake8 plugin to constantly reminding yourself to format your code properly, and surely you have valid cases that you import stuff but not used, eg. __init__.py and surely your IDE will annoy the fuck out of… Read More »