13 Dec 2014

It's a wonderful life (by Nomad Cinema); yes it is, indeed.

After suffering from a cold for days unfortunately, I just got recovered by seeing the movie. Yes, 'no man is a failure who has friends.' (It's a Wonderful Life, 1946, directed by Frank Capra)

If there's a chance, I utterly absolutely indeed recommend to see it in a cinema, with good audience who clap their hands to thank to the truly wonderful movie. Today's fantastic event was was organised by the Nomad Cinema, who is supposed to donate 100% of their profits to The Sustainability Institute a pioneering environmental and educational charity in South Africa.
It's a Wonderful Life by The Nomad Cinema at the Look Out in the Hyde Park.
Indeed it is one of the best movies to wish a merry Christmas. The ending is so beautiful and heartwarming and the performance by James Stewart is just incredible. Just for my foot note, I did not know the fact that Frank Capra was from Sicily, Italy, like Giuseppe Tornatore, who directed Cinema Paradiso. I see they believed in the power of cinema, arguably.



6 Dec 2014

Learning Ruby on Rails

As I have been managing the company website, I realised I have to learn basics of web development. Therefore, last weekend, I joined a two-day workshop by Codecourse, which was a great opportunity to practically learn how to code with Ruby on Rails. This is my work-in-progress web applications.

It was really worthwhile course; what I essentially learnt was following:
  • All the important setups for web application development: online console by Nitrous, html and CSS frameworks by Bootstrap, online application platform by Heroku, Static Maps API by Google maps, voice and SMS APIs by Nexmo,  some gems in Github, and online e-commerce platform by Stripe.
  • How to practically develop (1) a personal website, (2) a web app to record locations and display in the map, (3) a web app to send a SMS text message, (4) a web app to upload pictures and purchase an order online, and (5) a web app to post status updates. So basically they are what you do mostly online nowadays (i.e. Wordpress or blogging, Messenger, Instagram, Amazon, Twitter etc.).
  • While following instructions by the organiser and facing unexpected errors, essentially my learning was about how to identify an error (mostly typo or undefined class or method) and how to crack it mostly by yourself.
Nitrous' console image
The following is my personal memo on the very basics on Ruby on Rails so that I would not forget about it at all.
  • To create a new project, command 'rails new the_name_of_the_project'. After run 'cd mysite", type 'rails server' starts the server so that you can check your code updates in your browser.
  • application.html enables every page to contain the same code that is in the application.html.
  • To add a new page, (1) open the routes.rb file in the config folder, (2) open the static_pages_controller.rb in app/controllers/, and (3) create a new file under the static_page folder.
  • To use Bootscamp CSS, first you have to copy Bootstrap CDN to the application.html.erb.
  • After you install in Gemfile (c.f. gem is a function defined/developed by someone already, e.g. Devise: sign-in and sign-up/authentication), you have to stop the server (Ctrl+c) and then run the "bundle install" command to reflect the changes while.
  • To upload updated pages, command (1)"cd the_name_of_the_project", (2) "git add . ", (3) "git commit -m"Finished the project", (4)"git push heroku master".
  • To create a database, run 'rails generate scaffold the_name_of_database', followed by name and definition of each column. (e.g. 'rails generate scaffold location name:string address:string latitude:float longitude:float')



3 Dec 2014

34 countries visited so far, outnumbering my age at least

When counted, quite unexpectedly, 34 countries have been visited; moreover, I stayed at least one night (usually more) in 32 of them (two exceptions are Ukraina in Aug 2014 and Vatican in Sep 2014). 7 were added in the last summer's trans-Eurasia honeymoon trip. On the other hand, this year I have added Norway only, which was part of my MBA's Global Consulting Project, indeed.

I have never thought about such a travelling-the-world life before entering the university as an undergraduate (10+ years ago!!). However, south America, most of Africa, Middle East, and Central Asia are still missing. I should visit at least one new country each year so that the number can keep outnumbering my age.