Friday, October 9, 2015

Google Handwriting Input

After updating the software for my phone, the handwriting was better. So I have been checking out some handwriting applications and I came across this one which seems quite handy. Now I am using it to write this blog entry. I am writing this on my tablet as it seems to be a little easier to do so.
Editing is a little bit difficult with this application but it seems to be able to spot most words quite well. Still I will probably be using this more for the next blog entries. If I do get tired of writing, I will switch back to typing. Typing appears to be faster  so writing is  for the smaller tablets or phones.

Wednesday, September 30, 2015

edX MITx: 6.002.1x Circuits and Electronics 1: Basic Circuit Analysis

edX MITx-6.002x Circuits and Electronics course seems to have gone through a slight revamp and has been divided into three parts.  I presume not much of the content is going to change except probably the course will run at a more relaxed pace. There will be a better chance to earn a cert. I think the original one was a tough course and dividing it into 3 parts may be a good idea.

Sunday, September 20, 2015

What's Buzzing?

The handphone was not very good for writing (Update: I updated my software for it so now it is much better for writing) so I used the tablet that was given to me as a Christmas present last year - but that did not last long either. It automatically powered off at times so I tried to repair it. Unfortunately the front display part broke(it seems like it may have been made of cheaper glass) and I more or less decided to buy a new one. Later, I tried to repair the broken ones and that was when  I learnt something about the tablet - from the internet

"All phones are obviously different, but many use separate elements for the touch-sensing component called the digitiser and the actual LCD/OLED display."

Sunday, September 13, 2015

What's Buzzing?

Very hazy over here. I haven't seen it that bad for some time.

I bought quite a a few things last week -  a handphone, a bracket for it, a remote shutter, a wireless mouse and some kind of workout armband which was a bit of a disappointment.

The handphone is okay. (Update:My otg cable was spoilt so actually the handphone has some otg capability in it.)  I bought it as my  tablet had more or less conked out. There was an area of the screen  which was not functioning.

It cost me about RM250 but that is not too bad considering it has 1GB of RAM. So performance of it is quite smooth. The brand is Winds Mobile which is meant to be from Malaysia but  the seller seems to claim - it is mostly manufactured in China. I heard Winds Mobile was a good brand for a handphone, a couple of years ago so I decided to give it a try. I haven't checked how good is the phone lime though as I had been using it more like a mini tablet.

Monday, August 31, 2015

edX - HKUSTx: ELEC1200.1x A System View of Communications: From Signals to Packets (Part 1)

Am in  the second week of the course and has been quite interesting for the most part so far. Usually communication systems courses are tough but this one has been quite comprehensible so far. I am quite impressed by it. There is  Matlab programming which I am not really that fond of as I had only just completed some Python courses but I do realize, it is used quite a lot in  the workplace. The wonderful thing about these courses is that there are sandboxes where you can try out these softwares and take your time to learn them if you want.

However, datelines for this course is quite short as it is not really self paced - if you are not too worried about earning a cert but just want to learn something  then this is fine.

Sunday, August 23, 2015

Python on the go - Revision of Class and Inheritance

Referred from

  A class can be defined as a template for creating objects such as functions. For example the program below provides a description of a shape  and what operations you can do with the shape (that is, the functions). The  __init__()  function is always run when the class is called.

class Shape:

    def __init__(self, x, y):
        self.x = x
        self.y = y
        self.description = "This shape has not been described yet" = "Nobody has claimed to make this shape yet"
    def area(self):
        return self.x * self.y

    def perimeter(self):
        return 2 * self.x + 2 * self.y

    def describe(self, text):
        self.description = text

    def authorName(self, text): = text

    def scaleSize(self, scale):
        self.x = self.x * scale
        self.y = self.y * scale

rectangle = Shape(100, 45)      #calling the class Shape
print rectangle.area()                # the area of the rectangle:

print rectangle.perimeter()       #the perimeter of it:

rectangle.scaleSize(0.5)         #makes it 50% smaller
print rectangle.area()              #the new area of the rectangle

It is possible to add extra features to a new class by using inheritance. The example below shows how a new class has inherited some of the features of the old one but its  __init__() function has changed.

class Square(Shape):
    def __init__(self,x):
        self.x = x
        self.y = x
print square1.area()

Sunday, August 16, 2015

Python on the go - Revision of Files

One of the simplest ways for programs to maintain their data is by reading and writing
text files.

To write a file, you have to open it with mode 'w' as a second parameter:

file = open('out.txt', 'w')
file.write("Hello there.\n")

If the file already exists in the same directory as the program, opening it in write mode clears out the old data . If the file doesn’t exist, a new one is created.

To read a file, you have to open it with mode 'r' as a second parameter:

file = open('out.txt', 'r')
print returns a string with all the characters in the file. With print, the output can be seen in the Python shell.

The above two programs can be combined in one program to write and read a file.

file = open('out.txt', 'w')
file.write("Hello there.\n")

file = open('out.txt', 'r')