Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Category Archives: Gadgets

Turn on “Ok Google” for any screen with HTC E9+ without Google Now Launcher

If you have invested to many time to organize the apps and folders, or just don’t want to change to Google Now launcher for any reason, you can still enjoy the “OK Google” from any screen.

Simply put, you can enable it with Google App.  Just follow the instruction provided from Google support.

Quick comparison between Astrid and Producteev

Astrid is acquired by Yahoo. LifeHacker does not seem to keen on it.

While I am quite satisfied what astrid android app generally, it is always good to check some alternative. Producteev was my favorite before astrid provided their own interface, so today I spend a few minutes to do a quick comparison.  I haven’t tried the voice task assignment because I never use it. 😛

My finding:



  • Very impressive client.
  • It encourages you to finish tasks.
  • Good recurrent support: Daily, Weekly, Fortnightly, Monthly, and so on
  • Snooze function to postpone reminders and tasks.


  • Some of widget do not work.
  • Server-> Client sync does no work: Client still remind you the tasks which you ticked-off at server.



  • Professional looking Web UI
  • Multiple workspace support
  • Server->Client sync does work: though it might be slow.


  • Client looks exactly like the trim down version of WebUI.
  • No so good recurrent support:
    • It does not support fortnightly recurrent
    • It does not update to the next date when you finish the current one.

Seems like I will stay with astrid for a little while.

calibre: How to convert and bind multiple html pages for kindle?

I tried to put  dive in python 3 on my kindle. Firstly I download sample from Amazon. The book is quite cheap, but well, … I would have bought it if it’s code blocks are actually represented as text (not as graph).

Then I tried calibre. Calibre is quite easy of use, but it keep telling me that

  1. html files should be known as “zip”
  2. The chapters should be ordered by chapter titles alphabetically, instead of original chapter number.

Luckily, calibre does provide command line too, namely, ebook-convert. It can automatically follow the hyperlinks and append the content of referenced local html files. However, it failed to recognize html files if they don’t actually have “<html>” tags (browsers render them fine, though). Well, inserting <html> and </html> on multiple files are not hard if you know sed and bash.

Are we done yet? No.  option “–breadth-first” is required, otherwise the chapter order is still messed up, as the latter chapters might inserted in the front just because they are referred first.

Are we there yet ? Well, yes. But of course, there are many knobs that can be tuned if you want better result.

The most easiest way to convert jpg/png files for kindle reading.

Recently I need to put some map files to my kindle, so I don’t need to bring lots of paper.
Kindle can read jpg, yet it only support certain resolution in certain depth.

After some search and research, I found that converting the jpgs to pdf is usually a good idea.

Converting jpg to pdf is simple if you have ImageMagik, like so:
convert *.jpg foo.pdf

That’s it.

Thinkpad is not as durable as before.

I remembered a few years ago there was an AD that showed how durable the thinkpad was by pouring water on it and slam it on the ground.

However, my personal experience shows otherwise, the first one is t60, after 1 year, the battery can only last 30 minutes, harddisk started making great voice, and sound card have broken sound.

I obtained the second one, t510, last year and thing got worse. ‘a’ key was not very responsive after a few months usage, and the display area have broken into 3 pieces when my wife tried to pick the computer up.

My latest one is still a t510, obtained 3 months ago. Well, ‘i’ key is not very responsive….
Let’s hope no other misfortune fell upon it.

[Update at 2013-11-02]

Well the ‘I’ key back to normal, but the speaker is dead.

One thing good of Lenovo for me is, they never change the power plugs so I have lots of spares. 🙂

Comparing “Send to Kindle” and “Later on Kindle”

I frequently visit sites that show source codes of programming language, so I compare the Send to Kindle and Later on Kindle, and see how they handle <pre> in this article.

Well, I admit it’s not a full scale test, so my test is bias.
Anyway, according what I saw:

  • On document selection, source field: Send to Kindle shows the host name of the site, while later on kindle shows, well “”
  • For normal <pre> tag display:
    • On Send to Kindle every lines seem to be joined together, like:

    • On Later on Kindle: lines are split like:
  • For “tabled” <pre> tag display (last code block):
    • On Send to Kindle, still every lines joined together, yet all the content is displayed:

    • On Later on Kindle, lines are separated, but truncate at right margin, you can only rely on either rotate to landscape view or use smaller fonts and margins.

To sum up, Later on Kindle generally better showing the pages with source code, but not good on long lines.