OS X Yosemite upgrade messed up both brew and nginx on my Mac.
The following are reasonably safer ways to fix both of them.
1. Fix brew
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
2. Fix nginx next
brew install nginx
brew reinstall nginx
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
$ sudo nginx
nginx: [emerg] mkdir() “/usr/local/var/run/nginx/client_body_temp” failed (2: No such file or directory)
Specified key was too long; max key length is 767 bytes
That error means you are trying to add unique index on a varchar(255) utf8mb4 column. In utf8mb4 column, each character needs 4 bytes. So 255 characters means 1020 bytes. The max key length is 767 bytes.
Do you really need 255 characters?..if not reduce it.
change_column :attachments, :message_uuid, :string, :limit => 38
If you really need all 255 characters, consider using this innodb setting.
So its Charlie Sheen who invented the Kickstarter rewards scheme in 1993
Watch from 4:06 minutes onwards if the video does not start at that time.
Reward1: For $15 you get a hot shots T-Shirt
Reward2: For $25, a hat and T-Shirt
Reward n: For $20,000, you get billing above the title.
He also holds the fundraising record as well, raised 4.5 Million in 2.5 hours.
Hunk means a piece of change in the Git world. Stage hunk means it is being added to the staging area.
Discard Hunk means remove the change without trace.
Replace the word ‘hunk’ with ‘change’ and it becomes pleasurable to follow Git.
If you don’t want to commit your change , you will have to discard your changes (hunks). God knows why the Git geeks chose “hunk” but it is what it is. Learn to love it and other idiosyncrasies(stash,rebase, to survive in Gitland.
Sometimes the focus freaks out when capturing back of the check. A couple of things to try, in that order.
1. Enable Flash on instead of Auto.
This fixes most of the focus issues when capturing checks in the day light.
2. Keep the check on a dark background like a black paper.
3. Reduce the image size to 8M 4:3 resolution
For some reason I am getting a feeling Yahoo is becoming lesser and lesser evil(stupid) these days. Those chose to be stupid as long as they could by restricting people to forward their emails or forced users to buy Yahoo Mail Plus.
All of a sudden it is now free and easy to forward all your long last yahoo emails to Gmail or other alternatives
Skitch on Mac is a better alternative to the in-built Preview tool.. for adding annotations on pictures.
The only idiotic design flaw is the need to configure Evernote to save pictures. I simply want to take a screenshot and add some annotation and save it.
Why Evernote crap in the middle?. It beats the whole purpose of being a super simple annotation tool.