Oct 16, 2014

List of must-have softwares for Yosemite

Because recently, I've been working on some side projects that involve constantly reinstall my OSX, and I hate to remember all the softwares I need to install for every single time. So here we are, my list of all the must-have softwares for a fresh Yosemite.

EDIT: add some more on Oct. 17, 2014.
EDIT: add MacVim, Spotify, VLC, Plex, XMind on Oct. 27, 2014.

Apps:

  • Chrome (Safari is the fastest browser to download Chrome, IE is the second)
  • iWork set
    • Keynote
    • Numbers
    • Pages (barely use)
    • iPhoto
    • iMovie (just in case I have nothing to do)
  • iTerm 2 - the best terminal emulator on Mac and I don't know why. It is just good.
  • 163 Music (you need to at least know some Chinese to appreciate it)
  • Dropbox
  • Wunderlist
  • Evernote
  • Alfred (I like to set the key to be double tap "command")
  • Feedly
  • Mint
  • Skitch
  • Caffine
  • Intellij (for Java development, note it requires Java SE 6 runtime to run and will install on start)
  • cdto (a nice plugin for finder to open iterm at current folder)
  • Baidu Input Method (for Chinese input, download is always painfully slow)
  • OmniGraffle
  • QQ
  • Cinch (search "irradiated")
  • Mendeley (best tool for paper reading)
  • Skype
  • LyX (quick write up for school homework)
  • SourceTree (to quick manipulate git repo)
  • MacVim (Open text file with Vim!) (use the RCDefaultApp to change the default app setting)
  • RCDefaulApp (change default application for extensions)
  • Spotify (nice radios)
  • VLC (yet another video player)
  • PlexHomeTheater (watching videos could be fun)
  • XMind (Mind mapping)

Command line tools:

Games:

Other settings:

  • VPN Gate
    • I use Tsubuka's
    • vg2947755109.opengw.net
    • vpn:vpn

Oct 12, 2014

Hackintosh experience on Dell Alienware X51

Failed steps:

Follow the steps described here:
http://www.hackintoshosx.com/topic/21475-guide-aio-guides-for-hackintosh/?p=106895

Use boot flag "-v dart=0" and do not inject NVidia card driver.

After the first time of struggling, this time I am much faster on figuring out what to do when got stuck as the white screen. I think it was due to the conflict on the NVidia driver.

Installation is swift. However, I encountered the same problem as before,
Missing Bluetooth Controller Transport!
I tried :

  1. "-v dart=0" and not inject NVidia card, failed
  2.  "-v" and not inject NVidia card, failed
  3. InjectEDID+LoadVideoBios, failed
  4. "-v -f" failed


Switched to Unibeast.
Create bootable drive, use "-x" option for usage.

Switched back to clover:

  • -xcpm "Force XCPM to use mach_kernel for CPU Power Management on IvyBridge system."
  • UseKernelCache=Yes. Otherwise, the bootup could be really slow. 
  • "dart=0, injectNVidia"

Successful Steps:

Forgive me about these mess. I was just trying to keep a log of what I have done. And finnaly, I found my answer here
Type: mount -uw /
Type: cd /System/Library/Extensions
Type: mkdir intel_back
Type: mv AppleIntelHD* AppleIntelF* intel_back/
Type: touch ../Extensions

Turns out the problem is indeed the Intel video card driver problem.

Here is the config file I used:
https://gist.github.com/digizeph/a030a7b9d5bee21c33ee

Post installation

Audio driver:

Oct 5, 2014

Struggling youth

I've just discovered a great answer on Quora on the question of "What does it feel like to be really old knowing that death is imminent?"

I am too young to think about this question, however that does not prevent from rethinking what my life has become comparing what I expect it to be. Good things happened, bad things happened, and mostly nothing happened. The last thing scares me.

I can't remember how many times I tried to start a blog and told myself that I was going to keep writing no matter what. After a while, everything back to usual.

My life was like a pond of water peaceful like an mirror, while I expect it to be a place filled with storms and hurricanes. There are always two voices in my mind. One tells me to keep calm and carry on whatever I was doing, don't change. While the other one cuts me with its little knife of vision and ambition, pointing the places where others have been or are trying to go. Often the case, I compromise to the reality because I am afraid of changing my habit or my slow pace of life and work.

Will the imminent death change everything?

Read Quote of Stan Hayward's answer to What does it feel like to be really old knowing that death is imminent? on Quora

Oct 2, 2014

How to up subdomain on your Ubuntu server, and why you CAN'T do it.

What you have in hand:

You have a computer with a domain name pointing your machine's public IP.

What you want to do:

Create a subdomain for your server. For example, you have example.com and you want to have www.example.com.

What you essentially needs to do:

Create a virtualhost on your Apache server. In other words, although both www.example.com and example.com all pointing to the same IP address, you can process them differently.

How you can do it, ideally:


1. Go to /etc/apache2/sites-available/
2. Copy 000-default.conf to 001-example.conf. Name does not matter.
3. Add basic template to the new .conf file.

<VirtualHost *:80>
           ServerName www.example.com
           DocumentRoot /var/www/www.example.com
 </VirtualHost>
4. Create a corresponding folder in /var/www, which is "www.example.com". Again the name does not matter.

Why you won't succeed:

The Internet do NOT have the DNS record for the www.example.com. In other words, when you type in www.example.com in your browser, you browser cannot find the corresponding IP address for this URL, which means the traffic will never arrive to your machine.


How you deal with it:

Go ask your DNS provider (or parent domain) admin to delegate DNS records to your machine, meaning that your machine will need to act as both the web-server and DNS server. Whenever a strange URL comes, such as wtf.example.com, your parent DNS server knows that you might know the IP and you're the delegated server for your zone, so it will forward the request to you now. Now it's up to your server to decide which IP the wtf.example.com belongs to.

Then, how do you setup DNS Server then?
1.  a "zone" at /etc/bind/named.conf.local. Something like this:
zone "example.com" {
        type master;
        file "zones/unsigned/example";
};
2. create a folder /var/cache/bind/zones/unsigned/. Create a file named "exmaple.com". Name MATTERS now.
3. Edit the file and add the following content :
$TTL 60
$ORIGIN exmaple.com.
@ 1D IN SOA ns1example.com. root.example.com. (
        2014100200 ; serial
        360 ; refresh (6 minutes)
        360 ; retry (6 minutes)
        1800 ; expire (30 minutes)
        60 ; minimum (1 minute)
)
        IN NS ns1.example.com.
ns1     IN A YOURIP
www     IN A YOURIP
Note, remember to replace YOURIP with your actual IP address.
4. sudo service bind9 restart
5. sudo service apache2 restart