Sunday, March 9, 2014

String Copy

I've stumbled upon this piece of code earlier in the day and I have found it quite amusing.

while(*s++=*t++);

Guess what it it does? It copies a string. It actually meant this.

while (*t != 0) {
    *s = *t;
    s++;
    t++;
}

Basically the process goes as follows, the contents of t (*t) are copied to s (*s) at every loop. Both s and t are then incremented with (++). And when (*t) couldn't get any further, it breaks out of the while loop. A string is then copied through that one lines of code, while being written in a much more compacted way.

By Jay Chua

Wednesday, March 5, 2014

Euro Trip

Last December, I went on a trip to Europe with my extended family.

Amazing food, amazing views, amazing people.
Here's some panoramic views of Europe


Colosseum - Rome - Italy


Piazza S. Pietro - Rome - Italy


Trevi Fountain - Rome - Italy


Piazza del Campo - Sienna - Italy


Tower of Pisa - Pisa - Italy


Piazza del Duomo - Florence - Italy


Random Interior - Florence - Italy


Docks near St. Marks Square - Venice - Italy


St. Marks Square - Venice - Italy


Canals - Venice - Italy


Outside Galleria Vittorio Emanuele II - Milan - Italy


Galleria Vittorio Emanuele II - Milan - Italy


Ride up Jungfraujoch - Interlaken - Switzerland


Jungfraujoch - Interlaken - Switzerland


Mona Lisa, Lourve Museum - Paris - France


Lourve Museum - Paris - France


Siene River - Paris - France

Post Trip Stopover in Dubai

Burj Al Arab - Dubai - UAE


Somewhere in the middle of the desert - Dubai - UAE

By Jay Chua

Saturday, March 1, 2014

A new beginning


After a long hiatus on the development of my previous portfolio website, I've finally found the time to pick up the pieces and complete it. The whole website has been overhauled to better showcase works. The old one in my opinion was too cramped and niche.

Oh and this is my first venture into blogging too. So pardon the lack quality in my writing. Hopefully I will improved with time. There are still some things missing around the corners, but I'll try to update as often as time allows.

So yeah, welcome and thank you for your time and attention.

By Jay Chua