Posts

Showing posts with the label mac

System Restart - Mac OS X

If your mac icon isn't working on the system menu, then here are 2 quick ways to achieve the same. Ctrl-Cmd-Eject works - does a force reboot. Open a terminal and type in: sudo reboot (sudo is required if you are not an admin) or you can use sudo shutdown -r  which is mentioned to be more gracious and other options.

TextWrangler and formating XML & JSON Documents

TextWrangler is a good alternative for Notepad++ on Mac Os X but it quite doesn't have the plugins that notepad++ enjoys. 2 Scripts which I really use: Format Xml Document: http://www.bergspot.com/blog/2012/05/getting-xml-tidy-xmllint-to-work-on-textwrangler-4-0/ Format JSon Document: http://ukitech.blogspot.in/2012/08/format-json-in-free-textwrangler.html For assigning shortcuts - Goto preferences in TextWrangler (Cmd + ,), Click on Menus & Shortcuts Select Text on the right side box. Expand Text Filters Click on the plugin (on to the right most side) Type a unique key combination Close Preferences.

Http Post utility

Poster seems to be a very good browser plugin to do HTTP Posts. It supports all http method calls, headers and post body formats. It's available for Firefox and Chrome for both Windows and Mac. Link for chrome:  https://chrome.google.com/webstore/detail/cdjfedloinmbppobahmonnjigpmlajcd http://hurl.it/ is another good one if you want to try it on browser & not install a plugin. If you want to download an app for Mac, then try out ApiKitchen. Url:  http://www.macupdate.com/app/mac/39400/apikitchen . It has an online version too:  http://apikitchen.com/ It's still in beta (as of 30 May 2012) but accomplishes most of the job very well. Rest-Client is another good tool.

Mac OS X Lion Tweaks Tool

Mac OS X Tweaks - Very useful tool especially to show and hide hidden files. http://ifredrik.com/applications/download_step.html

XCode 4.3.2 install fails

Image
If you get an error stating mobile device framework has to be installed, but errors out when trying to install it, then try the following: Right click on the xcode.app file and click on show package contents. Goto Contents/Resources/Packages/ and open MobileDevices.pkg Try launching xcode after installing above and it should go ahead fine now.

MAC: Remove icons from Finder toolbar

Image
Customize Toolbar doesn't have option to remove the icons. Right clicking the icon only gives options to If you want to remove the icon, then press "Command" and drag the icon outside the toolbar and release the mouse.

Associating file types to an app in MAC

There doesn't seem to be one place like windows registry classes subclass or the file associations application where you can set the application to open a file of certain extension in Mac OS X. If you select one file and click open with and select an App, it's associated to open that file only even if you select "Always open with". It doesn't set the open with app association for all files with that extension. Easiest way (or is it the only way?) to do that seems to be this way: Open File Info of a file of that extension. For e.g., to set all .sh to open in macvim, select any .sh file in Finder. Then Click Command I or right click -> File Info. In the Open With section, select the app to open the file with And importantly select the option "Change All". That's it - This should do.

Quick Calc on Mac

Click on Apps icon - Select calculator Or open spotlight, type calculator and select the first option to launch calculator. Type in your numbers and operators to get the result, seems to be the most used one.  You can also use Dashboard (by pressing F4) and calculator should be there by default. BUt the easiest of them if your data isn't very complex is just open spotlight (cmd-space) and type in your data there... For e.g., 3^4*2 and the first result is your answer. :)

Mac - dvd drive not visible in Finder

Image
In MAC, the dvd drive gets listed in finder only if a dvd is present. Else it's hidden. In some rare cases, even after you inserted a drive, the disk might not be visible in finder and since there is no eject hardware button near the DVD, there doesn't seem to be a way for removing the disk. Browsing around, found the following ways (from multiple sources) to eject the disk and re-insert it: Force restart finder. Open disk utilities (Applications/Utilities/DiskUtility) and the drive should be available there. Right click on it and select eject. Command line always rocks. Run the following in a terminal:  drutil tray eject Cross posted from:  http://techieconnect.blogspot.com/2011/11/mac-dvd-not-visible-in-finder.html

Open Terminal window here - Mac OS X

It isn't as easy as updating registry key in windows (or atleast I don't know). Found this link to be good source for app to do that. https://sites.google.com/site/michaelsafyan/software-engineering/open-in-terminal Chose the one with customized terminal window icon. If the folder Finder doesn't exist in your 'Application Support' directory, then do create it. If you have any other easy ways of doing this, let me know.

Function key on aluminium keyboards - MAC

Seen that many people do not find the Fn key in the new aluminium keyboard for mac and end up setting "use default functionality of function keys" in system preferences. However this affects the laptop keys too and might not be preferred by all. Solution: There IS a function key in the keyboard. Not in the place we expect it though. Look for the key under F13. :-)

Opening multiple instances of Eclipse on mac.

Double clicking on eclipse icon always opens the same instance on MAC. To solve this, you can open terminal (Command-Space to launch spotlight. Type in terminal and click on the top hit/Terminal link). Cd to the place where you unzipped eclipse. For .e.g,  Eclipse/Eclipse.app/Contents/MacOS/ Then run  eclipse &. (& makes sure you run eclipse in background, so that you can kill the terminal window.).