[Meta] Updating johnliu.net from Squarespace v5 to v7

This is actually something really, really long overdue.  v5 is from the year 2008.  That is SEVEN years ago.

You will notice:

  • Responsive Design
  • Comments are replaced with Disqus - the original comments are imported, but Squarespace's own comment spam detection has not been great for me. 
  • Squarespace v5 renders pages in X-COMPAT-IE8 which means it looked extra sucky.

You will find missing:

  • Some of my game blog pages - I've removed them because they are just the rambling of a young man.
  • /Storage is a bit funny - I "hope" I imported my old stuff properly.
  • My badges and tag cloud.  I hope to add them back in time.
  • I noticed the RSS feeds got confused and prepended www.johnliu.net - I've removed the www but there may be duplicate records in the RSS reader.

What I am missing:

  • I am absolutely devastated that v7 doesn't work with Windows Live Writer.

taskeng.exe command prompt - get out of my face

 

So I was minding my own business working, and suddenly, a command prompt popped up, blocking my work for a few seconds and then disappeared. 

Very annoying.  Because now I'm distracted.  I need to hunt this thing down.

 

Figure: It can look like this.

 

A quick Bing search reveals that this is actually frequently reported, but most people have the wrong idea to go about fixing this.  They think "oh this is a virus, because I don't know what it was", so I'm going to run anti-virus and just blast away everything.

 

Here's what you should do.

 

Task Engine is Windows' Schedule Tasks.  It is running something.  That something can be a virus, but most likely, something you have installed.

  • So run Task Scheduler
  • Expand the "Task Status" area - this shows you tasks that has run in the selected time period.  You will see there are hundreds of tasks that has ran and will be running.
  • Change the time period filter to the smallest setting "Last hour"
  • Now pick off the single task just just ran.  Moments ago.

image

 

Bingo!

Dell SupportAssistAgent AutoUpdate

 

Task Schedule Library

 

  • Head to Task Schedule Library on the side menu
  • Find the task that's the culprit

 

image

 

Strangely, this app checks for update at 2:33PM every Thursday, right after lunch.  It's been annoying me for nearly a month.  I must have installed it on 13/02/2015.

Now, it's a fairly harmless app doing it update check.  Instead of just disabling the task, I can also:

  • Move the trigger to logon
  • Change the time to 1pm (lunch)
  • Or my favourite - wait for Idle

 

image

 

So, at Thursday 1PM, wait for up to an hour (so between 1pm to 2pm) for my computer to be idle for 15minutes.  Then you can run this app.  When I'm not watching.

 

Perfect

Living with the Surface RT for 4 weeks

 

Across the new years holiday, I took a long four week holiday off in Indonesia with my family and in-laws.  Previously I have always taken my Dell laptop(s), but this time, I decided to take my Surface RT tablet.  (Yes, the first generation one, not the Surface 2).  I have owned the Surface RT for over a year and while I always thought it is a decent device, it lacked the number of Apps that the iPad has, and lacked the ability to run old x86 apps.  I wanted a decent attempt at using only the Surface RT for a number of weeks, and figure out where I stand on the device.

My Surface RT has been regularly updated and runs the latest Windows 8.1, it also synchronizes with my Microsoft Account and shares the Apps I have purchased on my main machine. 

In Indonesia, I have access to slow internet, based on where I was.  I didn't have mobile data, and turned off roaming.  So I relied on the Surface RT for both online and lots of offline activity.

So, consider this my report card.

The good:

  • Mail (not Outlook)
    The built in Mail app is very handy.  It downloads both my gmail and Outlook.com emails, which are available and fast to browse and read.  I can compose emails offline which is very handy.  I did not use either gmail or outlook.com websites during my 4 weeks.
  • Internet Explorer
    Is surprisingly useful for almost everything else:
    • Newsblur
      Runs great and I was able to catch up on all my blog reading.
    • Twitter
      Runs fine and I was able to read and write tweets.
    • Facebook
      Runs fine.  Although the people Tile was updated regularly, I find the browser experience for Facebook on par with what I have at home.  My wife isn't so impressed with many of the Flash-based Facebook games, some do run, but is sluggish.  I wondered if the new Surface 2 would handle these a lot better.
    • Reddit
      Actually works very well.  The only thing I missed is the Chrome extension: RES.  But I've stopped using Google Chrome a while back and increasingly don't really miss that plugin.  I will probably look for an App for Reddit next time.
  • Office
    I had to read a number of attachments: Word, Excel and PowerPoint on my holidays.  The built in Office did the trick, and I didn't feel I missed a beat.
    I had not set up Outlook to my office exchange server, and didn't want to start downloading a lot of emails on a slow data connection.  Luckily, my colleagues were really nice to me and didn't send me much work!  All the Office documents I was reviewing are related to conferences and activities throughout the year.
  • Apps
    I wanted to download a bunch of games and play them everywhere, but honestly I've stuck with Tiny Death Stars and Frozen Freefall - both great apps by Disney and available across both Windows 8 store as well as WindowsPhone.  Very happy with the games.
    I also downloaded a manga application and had it download some manga for offline reading. 
  • Account sync
    I really enjoyed the tiles' positions being synchronized across my Windows 8.1 desktop at home and the Surface RT.  I had no trouble remembering where my apps are. 

 

The bad.

  • Touch Cover
    The touch cover, oh how much I wanted you to work, but you are just not comfortable.  I can type reasonably well on the touch cover, but I'm afraid I will never be able to type perfectly.  I need the Type-Cover.  Rumour goes there is a better Powered-Type Cover coming.  I can't wait.
  • Windows Updates and poor battery management
    Windows Update must have ran at some point, and I found the Surface poor at handling the battery when I'm not using it.  I did read there was a firmware over December that was causing a lot of issues but I thought it was only with the Surface PRO devices.  This one was not good.  I could use the table for half a day.  Close it and put it down.  And there won't be any battery left when I pick it up again in the evening. 
  • No Windows Live Writer
    I wanted to update my blog, but without a good blog writing software, I was stuck with the web interface.  I ended up writing most of my blog on OneNote, and then copy the text over to the web interface to post to my blog site.
    A Windows 8 Store Blog Application needs to be a thing.

 

The surprise.

  • Dropping the Surface RT
    I dropped the Surface RT - face down, from a bedside table onto the wooden floor.  Luckily there was no damage.  I... don't want to try this again.
  • Rotational Lock and reading manga
    Rotational Lock and how easy it was to access from the charms bar was great.  On the Windows Phone rotation lock is a bit harder to reach in the settings.
  • Fast charging
    The Surface charges really quick.  From a depleted Surface it can be charged within 2 hours.
  • Take picture from lock screen
    I discovered that you can swipe down from the lock screen and the Surface RT will activate the camera!  I was not able to do this on my laptop - I can't swipe the lock screen down.

Introduce your drastic UI changes... slowly

 

We are in the middle of a somewhat sudden rebranding exercise.  One of the main colours that was used prominently in the previous theme of the website is now being retired as the UI is simplified.

 

So here is what we have right now:

image

 

And here is where we're going (currently in development).

image

 

Where's the Yellow?

 

In every case where we ask one of our existing users the first response is always: Where's the "Company Yellow"?

There's of course a marketing message that will go out with our latest release. 

But here's the secret developer compromise.

 

We can reduce the yellow, slowly, overtime

 

The old header background will remain.  But in the Javascript that's run on every page, we introduce a small piece of script that modifies the opacity of the background header.

var days = (new Date("2013-08-20") - new Date()) / (24*60*60*1000);  // remaining days until 2013-08-20
var opacity = (days > 0) ?  (0.5  * (days / 14)) : 0;   // starts from 0.5 opacity to 0
$(".header-banner").css("opacity", opacity);

What this does, is that over the course of two weeks, the yellow's opacity reduces from the original (50% at this next release) to 0%.  So as days go on, the yellow header begins to fade, and after two weeks, it will simply disappear!

I wonder what'd be the water cooler conversation.  Each person will wonder what happened to the yellow as it slowly faded out of our lives.

Chrome, the Trojan Horse we didn't know about

 

I do not like where Chrome browser is going, and I'm typing this on Chrome.
Let me explain, there are a few pieces in this puzzle.

Language and API

  1. Google is working on a javascript pre-compiler, Dart.
  2. Google argues that because javascript will never be as fast as native code, Dart will eventually run on its own VM. Dartium. The Dart development browser has two VM's, the Javascript VM (Chrome's V8) and Dart VM.
  3. Dart provides its own methods to talk to the browser and access features such as storage, camera, geo.

Browser

  1. Google splits off from WebKit and starts its own browser engine Blink.
  2. Google says this will allow them to drop support for legacy features in WebKit and focus on new stuff. What I think they mean is that eventually Dart VM will be included side by side with the chrome Javascript VM (V8).
  3. I think this was never about WebKit. This decision is purely so that they can structure the chrome development to be completely in-house, and they can dictate including a second VM, without having to get approval from Apple's Safari guys.

OS

  1. Google continues to manufacture the Chromebook. Even with a very low market penetration.
  2. The Android operating system is under the ChromeOS group. Now that may seem strange. Android has huge penetration, Chrome OS is unheard of. Why are they structured like this?

Java

  1. Oracle sued Google for Java infringements, and Google does not licensing Java from Oracle. This means Google can't use a number of improved Java VM from Oracle who holds much stronger patents. Aka. Java performance on Google Android's Dalvik VM can't go faster because Google doesn't license those techniques from Oracle.

Joining the dots

  1. I think Dart will tie the whole thing together.
  2. Dart will provide API to Android, allowing developers to work directly with Android OS without going through the Dalvik VM.
  3. Dart will provide javascript developers ways to call the Operating System functions through Chrome browser, even APIs that aren't finalized by the W3C. Because Google will dictate these APIs.
  4. Chrome OS will run Dart natively, yes right now it's just a notebook that only runs a browser. But what if that browser now has access to OS level APIs? Suddenly it's a device that can run code that goes outside of the browser.
  5. Both javascript developers currently writing Chrome apps as well as Android developers will suddenly form that army that will be able to develop Dart apps. These will run across Chrome OS, Chrome Browser and Android.
  6. Dart is Google's version of Microsoft's .NET Framework. Born out of a necessity to control the entire ecosystem and with a gentle push (lawsuit) from Oracle. To give them a complete framework and API that they can control completely, without having to ask for approval from anyone.
  7. Chrome browser is the Trojan Horse that will allow Dart to run on Windows & Mac. It will run on Android and ChromeOS (which Google controls).
  8. The only places where Dart won't run are going to be few: WindowsPhone and Windows RT - neither OS Google cares or has any plans to support. iOS currently has Chrome (without Dart) - it remains to be seen if Apple will bow to public pressure if Google plays the card to include Dart within the iOS Chrome browser. But I think that war will come, especially since Chrome is the gateway drug.
  9. So while we're bashing Adobe's Flash and MS' Silverlight for being non-standard and plugin architecture degrades the security of our systems, Google's been ramping up to ship another VM right under our noses.