Search in Bootcamp From Mac OS X

SpotLight doesn’t index Bootcamp drive, since it has another file system. SpotLight indexes only HFS and HFS+ file systems.
To find files in a Bootcamp drive from Mac OS X drive, do the following:

  • Type in Terminal
  • Then find all your drive names, you have:
  • Now you can search something by pattern. For instance all Microsoft Word files in Bootcamp:
  • After you have found what you need, you might want to stop the search, that can be pretty long. To stop search just press Ctrl+C

Reference

Two NSStrings are same but different when you compare them

Recently I was shocked by the fact that two NSStrings that resemble each other on NSLog may be different. It is because sometimes NSString can contain a zero width space character. Be aware of that and consider:

To conquer this you should clean your string from zero width white space characters before comparing:

How to clear cash in Safari in Mac OS X Mountain Lion

Web browsers and web proxy servers employ web caches to store previous responses from web servers, such as web pages and images. Web caches reduce the amount of information that needs to be transmitted across the network, as information previously stored in the cache can often be re-used. This reduces bandwidth and processing requirements of the web server, and helps to improve responsiveness for users of the web.
Web browsers employ a built-in web cache, but some internet service providers or organizations also use a caching proxy server, which is a web cache that is shared among all users of that network.

To clear cache in Safari in Mac OS X Mountain Lion:

1. Enable Developer Menu by clicking last checkbox in last tab in Safari/Preferences.
2. Click Developer Menu/Clear caches or Press Alt+Cmd+E

More about Web Cache in Wikipedia.