2018年3月16日 / kirito / 0 Comments
When pod shows like Unable to find a pod with name, author, summary, or description matching
The solution is
|
rm ~/Library/Caches/CocoaPods/search_index.json |
Means remove the search the index. After pod search again, the search index will recreate and works fine.
2016年8月29日 / kirito / 0 Comments
If the exc_bad_access exeption happened, the best solution is check the parameters you transferred should not be like int, it should be:
|
[NSNumber numberWithInt:the_int_number] |
The solution means, DON’T transfer any original type(like int) to FMDB
refer: link
2014年6月5日 / kirito / 0 Comments
The origin post at here: http://mwholt.blogspot.com/2012/09/fix-home-and-end-keys-on-mac-os-x.html
If you use a keyboard that’s not designed specifically for Macs, you probably are familiar with the annoying mapping of the Home and End keys: they scroll to the beginning or end of an entire document, with no regard to the cursor’s location.
Fortunately it’s an easy fix. (Note: This works for native Cocoa apps only, not X11 programs.)
To get your Home and End keys working properly on Mac OS X (in my case, Mountain Lion, although this should work in prior versions back to at least Tiger), simply open the Terminal and do this:
$ cd ~/Library
$ mkdir KeyBindings
$ cd KeyBindings
$ nano DefaultKeyBinding.dict
Put these lines in that file, including the curly braces:
{
/* Remap Home / End keys to be correct */
“UF729” = “moveToBeginningOfLine:”; /* Home */
“UF72B” = “moveToEndOfLine:”; /* End */
“$UF729” = “moveToBeginningOfLineAndModifySelection:”; /* Shift + Home */
“$UF72B” = “moveToEndOfLineAndModifySelection:”; /* Shift + End */
“^UF729” = “moveToBeginningOfDocument:”; /* Ctrl + Home */
“^UF72B” = “moveToEndOfDocument:”; /* Ctrl + End */
“$^UF729” = “moveToBeginningOfDocumentAndModifySelection:”; /* Shift + Ctrl + Home */
“$^UF72B” = “moveToEndOfDocumentAndModifySelection:”; /* Shift + Ctrl + End */
}
Press Ctrl+O and then Enter to save the file, and Ctrl+X to exit. Restart your computer to have it take full effect.