Wednesday, January 29, 2014

Starhub TV Free Preview for Chinese New Year 2014

Starhub is offering 30 FREE TV channels this Lunar New Year from 30 Jan, 12pm to 3 Feb, 3pm.


And if you are on the move, download StarHub TV Anywhere App which is available on both Android and iOS.

Tuesday, January 28, 2014

Isaac Asimov’s Three Laws

The Three Laws of Robotics (often shortened to The Three Laws or Three Laws) are a set of rules devised by the science fiction author Isaac Asimov. The rules were introduced in his 1942 short story "Runaround", although they had been foreshadowed in a few earlier stories. The Three Laws are:

  1. A robot may not injure a human being or, through inaction, allow a human being to come to harm.
  2. A robot must obey the orders given to it by human beings, except where such orders would conflict with the First Law.
  3. A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.

» Three Laws of Robotics | Wikipedia

Sunday, January 12, 2014

Share Your Android Screen to PC or Laptop

I came across this BBQScreen app few months back and I thought it worth a mention to blog it. With BBQScreen, it is possible to share your Android screen right onto your PC or laptop. What you need to do is to install the app on your Android and also on your PC or laptop. BBQScreen support Windows, Linux and Mac OS. What's most important is that it is absolutely free of charge!

Saturday, January 11, 2014

15 jQuery Tips and Tricks to Increase Performance

jQuery has been widely used in several websites to make use of available libraries. Though the API itself is already optimised, it is still possible to enhance its performance.

Here are 15 tips and tricks by the Web Revisions.
  1. Always Use the Latest jQuery Version
  2. Always load CDN-hosted copy of jQuery
  3. Always use ID as Selector Instead of Classes or Name
  4. Always Cache jQuery Objects before use
  5. Always use Tags Before Classes
  6. Use Chaining
  7. Just give your Selectors a Context
  8. Storing Data
  9. Preloading images
  10. Try to make code simpler using group queries
  11. jQuery Lazy Loading
  12. Always Return False
  13. Use join() for Longer Strings
  14. Try to avoid DOM Manipulation
  15. Check if an Element Exists

Wednesday, January 08, 2014

10 Awesome Infographics to Guide your Marketing Plan for 2014

The Buffer blog has rounded up 10 infographics and suggestions on online marketing to help us get our 2014 marketing strategy off to a great start. Visit the page now.

Wednesday, January 01, 2014

Typography: Care about how sentences are looked, read and understood

Do you care about words and how they look, read, and are understood? 24 Ways mentioned the need to manicure the right rag. There are 5 possible violations that we should be mindful of.

Violation 1. Never break a line immediately following a preposition
Solution 1: Are there any prepositions in the text? If so, add a   after them.

Violation 2. Never break a line immediately following a dash
Solution 2: Are there any dashes? If so, add a   after them.

Violation 3. No small words at the end of a line
Solution 3: Are there any words of fewer than three characters that you haven't already added spaces to? If so, add a   after them.

Violation 4. Hyphenation
Solution 4: Are there any emphasised groups of words either two or three words long? If so, add a   in between them.

Violation 5. Don't break emphasised phrases of three or fewer words
Solution 5: Are there emphasised phrases of three or fewer words? If so, try not to break the line among them. Group them.

To implement the above on your blog or website itself, you may try out this script on GitHub.

» Run Ragged | 24 Ways

How to defer loading of javascript efficiently using the Google way?

If there is a piece of code that is intended to be loaded after a webpage finishes loading, one efficient method as recommended by Google is to use listeners. An article on feedthebot illustrates the Google's method. The following code should be placed in your HTML just before the </body> tag. Also, all code blocks supposed to be delayed are to be placed in an external js file (defer.js in this case).

<script type="text/javascript">
function downloadJSAtOnload() {
    var element = document.createElement("script");
    element.src = "defer.js";
    document.body.appendChild(element);
}

if (window.addEventListener)
    window.addEventListener("load", downloadJSAtOnload, false);
else if (window.attachEvent)
    window.attachEvent("onload", downloadJSAtOnload);
else
    window.onload = downloadJSAtOnload;
</script>