HTML5 Up and Running

HTML5 Up and RunningHTML5 Up and Running is Mark Pilgrim’s book on HTML5. The entire text of the book is also available at DiveintoHTML5.org. Just like the other books written by Mark (Dive into Python, Greasemonkey Hacks), this book will serve as a very comprehensive introduction to the topic.

The book begins with history of HTML specification starting from conversations on www-talk mailing lists to formation of W3C and to WHAT Working Group. Then it moves on to Feature Detection, high level view of new features – canvas, video, Storage, Web Workers, Geolocation. The next chapter is a dive into details of the Document elements, new semantic elements. The next few chapters cover in detail each of the new features – Canvas, Video & Audio, Geolocation, Local Storage, Offline applications, Form semantics, Microdata. Each of these later chapters can be read stand-alone without depending on others.

There are some open source projects mentioned in the book – Modernizr for HTML5 feature detection, geo.js for smoothing out differences over gelolocation APIs. These pointers should be of great value to developers.

The book website is itself a great study in HTML5 with its very detailed attention to live examples, typography. Great work by Mark once again and kudos to O’Reilly for allowing full version (which is in fact more up-to-date than the printed book) online and also for selling the ebook in DRM free formats!

Disclaimer: I am writing this post as a part of Blogger Review program. I am not being paid to write this review. But I received the ebook free for doing this.

twitter auto refresh

Google chrome – CTRL+SHIFT+J to open javascript console. Type the following line there…

function updateIT(){$(‘#new-tweets-bar,.new-tweets-bar’).click();setTimeout(updateIT, 1000);}updateIT();

Update: Here is a small extension if you are on google chrome (or using Firefox with greasemonkey installed).

Update (2013-01-15): Playing with twitter is a cat and mouse game! Here is what works as of today:
window.setInterval(function(){$(“.js-new-tweets-bar”).click();},10000);

Google Finance bookmarklet

I use Google Finance to track stock/fund portfolios. Many of these portfolios track some investment policies and I enter the actual trades in there too. But the portfolios keep showing the old (i.e. closed) positions in the table making it look cluttered. I checked on their product blog/forum and this seems to be requested by some people (and ignored). Here is a small bookmarklet which will do this. You will need to drag the link to your bookmarks bar (Tested only with google chrome). Next, when you are on the google portfolio page, just click on the bookmark and it will hide all the closed positions! Woohoo!

Drag this link to Bookmarks bar: GFinance: Hide Closed Positions

P.S. If there is interest, I can turn this into a google chrome extension (greasemonkey) so this gets done automatically when you go to google portfolios page.

Book Notes – The Investor’s Manifesto – by William J. Bernstein

Cover Art - Amazon
Just finished reading a book by one of my favorite personal finance authors: William Bernstein. It appears that with every book he writes, he is making them easier to read and addressed to broader audience. In this book, he uses the recent financial “meltdown” as a “teachable moment”.

Chapter 1 – A Brief History of Financial Time

  • Throughout history, there have always been providers and consumers of capital; today it is no different.
  • Also throughout history, that capital has taken two basic forms: loans (including bonds) and equity (partnership or stock). The latter has a lower legal standing than the former, and it is thus riskier and necessitates a higher long-term return to attract investors.
  • During times of great social, political, and military turbulence, the prices of both stocks and bonds usually decline precipitously. Most often, this sets the stage for high future returns. Less frequently, however, the losses can be permanent and even total. Financial history demonstrates vividly the fact that just because this has not happened in the U.S. stock and bond markets yet is no guarantee that it might not occur in the future.

Chapter 2 – The Nature of the Beast

(To be completed)

 

Derek Sivers has a great page on this book. Refer to it for more details. I recommend this book to any investor.

Restoring Send, Menu, Home keys on your HTC mytouch android phone

I had this frustrating experience before on my android phone (HTC MyTouch 3G). This usually happens after powering on the phone after some time, it does not respond to the physical keys like “Send”, “back”, “home”, “menu”. The keyboard lock pattern is gone and you just cannot seem to lock the phone and you need to use the dialer application to make a call! The last time this happened, the factory reset fixed it. But it’s a pain trying to reinstall all of your apps and settings back on the phone. So this time I was determined to fix this somehow.

I called the customer service and convinced them to ship me a new phone. Which is nice, but I will still need to reinstall all the apps again. I just searched the forums to see if there is a solution and it seems there is! Unfortunately, many people still seem to have the issue, so this hopefully helps someone.

Basically you need to fool your phone to run the setup wizard that is automatically run when you get your phone. Somehow this kicks out the bug that disables these buttons! But there is no way you can find that wizard (maybe it is possible to launch it somehow from the filesystem, but I don’t know how to do that). But this is a way to do that:

  • Go to android market and search for the application Anycut and install it. (This application allows you add a shortcut to any activity on the home screen, so it is good to have it anyway.) (Or scan this QR code: Anycut Android Application
  • On the home screen, long press and add  “Shortcuts” to add to home screen. Choose Anycut from the list.
  • Choose Activity and scroll through the long list of activities.
  • Select “Setup Wizard”. I had three of them in the list, third one worked for me. (Thanks Mr. Murphy). You might want to try all of them. (First one is for enabling Google Location, second for “Backing up settings to google account and third for Initial Setup)
  • It will prompt you to edit the name of the shortcut, you can just accept the default and select it from the home screen and complete through all the screens (use the same google account as you are using).
  • Your keys should now be magically working!

The problem might be happening because of some hardware issues (bad internal flash?), but its good to know that it’s possible to fix it without factory reset.