Wednesday, 16 November 2016

Best Learning Resources on the Python Computer Language

Sharing some Free Learning Resources on the Python Computer Language:

1. Python Tutorials on the Full Circle Magazine:
The Full Circle Magazine consists of a series on learning Python and they have recently released a compilation of all python articles till FCM#102. You can download this edition from this link: http://fullcirclemagazine.org/2016/01/01/python-collection-vol-1/

2. The Coder's Apprentice - Learning Programming with Python 3:
Another great free to download book for computer language beginners. Download this book from http://www.spronck.net/pythonbook/

3. Invent With Python
The http://inventwithpython.com website hosts links to the books by 'Al Sweigart'.

3.1 Automate the Boring Stuff with Python:
In this book you learn how to use Python in real life scenarios. This book is free to read at https://automatetheboringstuff.com

3.2 Invent Your Own Computer Games with Python
Book by the same author on programming games with Python. Read for free/download at http://inventwithpython.com/chapters/

3.3 Making Games with Python & Pygame
A sequel for the above book. Read for free/download at: http://inventwithpython.com/pygame/chapters/

3.4 Hacking Secret Ciphers with Python
Learn how ciphers work in this book. Read for free/download at: http://inventwithpython.com/hacking/chapters/


Thursday, 3 November 2016

Get ready for Square(ish) Displays on Smartphones

Foldable smart phones are the next iteration in display technology. The latest news from the Apple camp is on a patent showing a foldable iPhone. Of course such gimmicks were seen earlier also by the likes of Samsung and many mockups by others too.

But now that the need and the market for bigger displays is on the rise, we can see the requirements for a foldable display. Smart phones of 5 inches have become the norm while 5.5 inches are the 'Max/Plus' companion of each smart phone. This trend will be taken even further by this years end when Oppo R9s series of phones will be released. The Oppo R9s is the base model with the size of 5.5 inches while the Oppo R9s Plus will be 6 inches.

So, there is definitely a trend to go larger. But the 'Bar' design can be used normally with one hand or even by using two hands at only so much size. Even the 5 inches models are hard to operate by just one hand and the 5.5 inches required you to use two hands to operate.

The solution is foldable displays. Now, foldable displays do sound a good solution to get bigger displays but they also pose a problem. What would the user use/see when the hold their phone. A phone of such a design will require additional screen(s) on the fold that will be facing the user. Also, the 16:9 ratio results in nearly a square when folded.

What is the most comfortable width our hand can hold without getting uncomfortable. Lets look at some of the prevailing sizes (considering only the display size and not the additional bezel):
(All sizes are in inches, bezel-less, and considers the Bar-Portrait 16:9 view)

Diagonal SizeWidth of the PhoneHeight of the Phone
4.02.03.5
4.52.23.9
5.02.54.4
5.52.74.8
5.72.85.0
6.02.95.2
6.43.25.6
6.83.35.9
7.03.46.1
8.03.97.0

In my opinion the most that we can hold for longer periods is around 3 inches and not more. Also, the average shirt's pocket is also around that size.

Also, we would fold the phone by its height in terms of the 'Bar/Portrait' view. This means we would kind off letting go of the Portrait view and use the phone only in the 'Landscape' view. Even when folded the display would be held such that opening the fold will show the 'Landscape' view.

So, if we consider 3 inches (width) to be the folded size and obviously the opened size will be 6 inches (width), what sort of dimensions are we looking at. Lets calculate. Remember that we now use the 'Landscape' 16:9 view.

Width when FoldedWidth of the PhoneHeight of the PhoneDiagonal Size
3.006.003.386.88

The above is the best dimensions.

Lets also consider the widths of today's phones and how would they translate in a foldable design:

Width when FoldedWidth of the PhoneHeight of the PhoneDiagonal Size
1.963.922.214.50
2.204.402.485.05
2.454.902.765.62
2.695.383.036.17
2.795.583.146.40
2.945.883.316.75
3.156.303.547.23
3.336.663.757.64
3.436.863.867.87
3.927.844.419.00

Lets also see the diagonal sizes when the phones will be folded:

Width when FoldedHeight when foldedDiagonal Size
3.003.384.52

Width when FoldedHeight when foldedDiagonal Size
1.962.212.95
2.202.483.31
2.452.763.69
2.693.034.05
2.793.144.20
2.943.314.43
3.153.544.74
3.333.755.01
3.433.865.16
3.924.415.90

In addition, when folded the display ratio is 1.125 which is very close to being a Square.

Hmm, so, will the folded design be worth it. At only one fold, as we can see above, the ideal size would result in only a 6.88 inch screen when opened. Isn't this size already available. There are many 7 inch voice calling tablets available and >6 inches phablets too.

In conclusion, I think we would require a triple fold or a roll design to get the most of such a design. Hmm, need to brush up on an Origami lesson.