Launch sublime in terminal

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

You can simply do this:

1
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.

1
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

Install owncloud on osx

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. ;)

Currency exchange

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.

Preview -600 error

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!