Launch sublime in terminal

Posted by: Brian Chan | Filed in: technology | Tags: | 04:08 pm, April 24th, 2013 No Comments »

I don’t know why this symlink is not set up after installing sublime. (Textmate does it!)

You can simply do this:

sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime

Then you should be good to go. Try typing sublime in your terminal and sublime should be launched. If not, add this line to your ~/.bash_profile file.

export PATH=$PATH:/usr/local/bin

Or you can mess with your own $PATH variable to make it right for you.

Then next time, when you need to open up a project in a certain directory, just cd to that directory, then do “sublime .

Ref: https://gist.github.com/olivierlacan/1195304


AngularJS Fundamentals In 60-ish Minutes

Posted by: Brian Chan | Filed in: technology | Tags: | 05:45 pm, April 22nd, 2013 No Comments »

This video is a pretty good starter if you want to explore AngularJS. The speaker takes quite a bit of time to explain things before typing out the code.

This article is pretty good too: http://stephanebegaudeau.tumblr.com/post/48776908163/everything-you-need-to-understand-to-start-with

Or if you want to see actual code of an existing project, here is the famous todomvc.


Install owncloud on osx

Posted by: Brian Chan | Filed in: technology | Tags: | 11:38 pm, April 18th, 2013 No Comments »

Here is how you install the owncloud server version on your osx server. I am using Mountain Lion right now.

  1. Make sure your web server is working by going to http://localhost/
  2. Download the Community Edition at http://forum.owncloud.org/. You will need to click on a few links to get there. My version is 5.0.4 at this time.
  3. Then untar: tar -xvf owncloud*.tar.bz2
  4. Then copy the folder owncloud to your web file directory. Mine is at /Library/Server/Web/Data/Sites/Default/.
  5. Then change ownership of this folder: sudo chown -R _www:_www owncloud
  6. Then restart your web server.
  7. If all goes well, in your browser, go to http://localhost/owncloud/, it should ask you to input a new admin user/pass. (Copy this down for your owncloud client to sync!)
  8. Then you should be good to go. Now try setting up your owncloud client. ;)


Building circuits in browser?

Posted by: Brian Chan | Filed in: technology | Tags: | 12:30 pm, April 17th, 2013 No Comments »

My only hardware design experience was back when I was in college using MAX+PLUS. It was confusing to me at best. Gone are those days. Today I came across circuits.io. Basically, you can make your circuit design in your browser! I can imagine one day circuit design can even become open source.


Currency exchange

Posted by: Brian Chan | Filed in: finance | Tags: | 12:14 pm, April 17th, 2013 No Comments »

Recently I came across this currency exchange peer-to-peer service called CurrencyFair. I haven’t had a chance to try it out yet, but it looks quite promising. Basically, you get the best exchange rate by skipping the banks. They claim their commission rate is 0.15% only, much lower than anything you could possibly find.


Unbelievable dance

Posted by: Brian Chan | Filed in: music | Tags: | 11:30 pm, April 1st, 2013 No Comments »

Background music: Adele – Set Fire to the Rain

Background music: Foster The People – Pumped Up Kicks (Butch Clancy Dubstep Remix)


Preview -600 error

Posted by: Brian Chan | Filed in: technology | Tags: | 12:29 am, April 1st, 2013 No Comments »

I am not sure what I did that led to this error. I was simply doing some typing in TextEdit and some web browsing. Then while trying to open a pdf file, this happened. Then I tried opening some other picture files and it was the same error. Basically, Preview.app stopped working and kept giving me this -600 crash error.

To fix this, you need to reboot. Yea, I know, I ran out of ideas, so rebooted, and the error went away. Hope this helps!