12 Sep 2010, 5:17pm
Life:
by

2 comments

  • Xin Wang Restaurant Shanghai

    Warning, fifteen images on this blog post. I know it’s too many for non-thumbnails, but I just have to show you how nice the food looked. All pictures were taken by Latte Girl.

    Xin Wang restaurant was only 30 seconds away from the place where I stayed while I was in Shanghai. I passed this place several times before realising that it was a restaurant. At least it wasn’t immediately obvious to me who couldn’t read Chinese characters, who would’ve thunked? I thought it was a garage door-style entrance to a car dealership.

    After that, I had to take an escalator downstairs to find the restaurant.

    The interior was nicely decorated, I liked it.

    Here’s what we had for lunch:

    The food were really that damn good, the best I had in China. It was that good that we decided to return for dinner:

    If you ever visited Shanghai, I highly recommend you to to visit this restaurant and try out some of their delicious food.

    How to get there
    Take Line 10 on the Shanghai Metro (map). After exiting the station, you’ll find the intersection of Wujin Road and Sichuan North Road nearby. Xin Wang restaurant is right across the intersection.

    And oh, by the way…

    I didn’t notice this sign at all until I left the restaurant on the second visit. I guess we were not allowed to take any picture inside the restaurant? Sorry :p.

    Most of the food in China were absolutely delicious, they put Melbourne’s Chinatown restaurants to shame. And the best part? The most expensive dish was 40 Chinese Yuan =~ 6.37 Australian Dollars, I could only get 3 mediocre sushi rolls for about the same amount of money in Melbourne. The perk of being a tourist sometime.

    10 Sep 2010, 12:42am
    Projects:
    by

    leave a comment

  • CouchDB Upgrade From 0.11.0 To 1.0.1

    This post also serves as a note to self when I do another upgrade in the future.

    It’s still not clear to me of what’s the best practice for upgrading a CouchDB installation. From the mailing list, some people suggested backing up the config and database files, uninstalling the old version, then installing the new version. But, really, what’s involved in uninstalling a CouchDB installation? manually deleting the files from the old installation? I had the same confusion when I tried to do the upgrade on OS X, once from a compile from source, and another from a CouchDBX installation.

    So instead of ‘the best practice’, I’ll just share what worked for me. I simply installed the new version using the same way as when I installed the old version, i.e. compile from source, and the files from 1.0.1 installation overwrote the files from 0.11.0 . Here’s what I did:

    1. I searched for CouchDB config and database files, and found them in /usr/local/etc/couchdb/local.ini and /usr/local/var/lib/couchdb/mydatabase.couch . I then backed up those files.
    2. The fact that I found those files under /usr/local indicated that I must’ve used –prefix=/usr/local when I installed 0.11.0 .
    3. I downloaded the source code of CouchDB 1.0.1, then ran the usual:
      ./configure --prefix=/usr/local
      make
      sudo make install
    4. Voila, CouchDB 1.0.1 was installed, the config and database files were still intact, everything worked fine.

    9 Sep 2010, 1:52pm
    Projects:
    by

    leave a comment

  • My GitHub Cheat Sheet

    Some git commands that I’ve been using the most while working with projects on GitHub:

    Standard stuff:

    git add file.ext
    git status
    git commit -am "Message"
    git push origin master

    To create a patch:

    git clone git://github.com/user/project.git
    cd project
    git checkout -b fix_something
    (fix that something)
    git commit -a -m "Fix something"
    git log
    git format-patch master --stdout > fix_something.patch

    To add a tag:

    git tag -a v1.2.3 -m "Tag v1.2.3"
    git push --tags origin master
    

    To remove a tag:

    git tag -d v1.2.3
    git push --tags origin :v1.2.3

    To merge from another branch:

    git remote add --track master project git://github.com/otheruser/otherproject.git
    git remote
    git fetch project
    git merge project/master
    (resolve any conflict)
    git commit -a -m "Merge from otheruser/otherproject"
    git push git@github.com:youruser/yourproject.git

    To bisect:

    git bisect start
    git bisect good a1217cdc2e05dfd5672b
    git bisect bad HEAD
    git bisect run command.sh

    5 Sep 2010, 1:07pm
    Life:
    by

    leave a comment

  • Huairou Cloisonné Factory

    I’m just a total sucker when it comes to visiting places where people make stuffs, specially when there are tools (manual, automated, whatever) involved.

    I really really enjoyed my short visit to Huairou Cloisonné Factory in Beijing, learning how a cloisonné was produced, from pieces of metal to the finished product. My favourite part of the whole factory was a small room with a wooden workbench and a traditional furnace, awesome!

    Recent Posts

    Recent Comments

    • SIMAR PAUL SINGH: Define :global_known_hosts_file :user_known_hosts_file options with a list of valid host_file...
    • Penny: I received this book from my Grandmother 6 months before she died. She INSISTED I read it…and I kept...
    • Nicholas Orr: Hilarious ;) No need to put true, keep’em guessing. Thanks for posting this am going to have to...
    • Amy: Truly awesome! I will share it with my boys who lost their father at 4&5 they are 8&9 now. What a gift...
    • Michael Sharkey: Let the propaganda continue!

    Most Commented Posts

    Linkroll