Archive for the ‘usage’ Category
Wednesday, March 11th, 2009
When an application in OS X is stalling on you and you have given up on regaining control of it, the best thing to do is kill it before it takes down your whole machine. Usually you would right click on the application icon in the Dock and choose the menu item “Quit” or “Force Quit” if available and that should do the trick.

Dock Menu When Right Clicking Application
Or you could click on the top left corner “apple” icon which will bring up a menu where you will see something called “Force Quit”. Choosing that option will open a small window with a list of the running applications which you can forcibly kill.

Force Quit Applications
Sometimes though a key component of OS X fails on you which you don’t have an option to force quit like the above mentioned methods. I came to such a situation when the Dock froze on me the other day. It just would not come up at all. Today I had a similar situation when I had cover flow switched on in the finder while I was browsing an external hard drive that has 20 gigs of hundreds of subfolders inside hundreds of subfolders that contain thousands of photos. Cover flow could not handle this and it wouldn’t allow me to do antyhing else either. I had an application crunching data for the past 5 hours so restarting the machine was definitely not an option. I needed a way to cleanly kill Finder without destroying any other work going on. In situations like this you need to go beyond the GUI and directly to the terminal. Yes, I know, now that I am writing this article, I noticed that the “Force Quit” application actually has Finder as an option but being someone from a linux background I immediately go to Terminal for anything I need rather than look for GUI solutions.
What you need to do is find the PID (Process ID) of the application you need to kill. To do this, type the following in Terminal:
ps aux | grep Finder
The result of that command will be something like:
sergemadenian 131 97.1 25.9 1213744 542124 ?? R Fri12PM 54:49.70 /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder -psn_0_40970
sergemadenian 3932 0.1 0.0 590472 192 s000 R+ 10:07PM 0:00.00 grep Finder
“ps aux” is the command that prints out all the currently running processes from all users. ” | grep Finder” will restrict the results of the “ps” command to show only the lines that contain the word “Finder”.
From the above result you can tell that the Finder application is question is the first line and I have set the PID in Bold and red “131″. You can also tell that this process is struggling because immediately after the pid we see the CPU and memory usage which in this case is “97.1 25.9″ (those are percentages).
Now that we know the PID (131) all you need to do is run the command:
kill -9 131
“-9″ tells the OS to kill immediately. That took care of the offending Finder window and I noticed that a new Finder process had been kicked off by the OS. If a new process had not automatically been kicked off, I would have had to start it manually by running the command that was running before which I’ve marked in blue and bold ”
Same process applies to any application including the Dock. All you need to do is find the specific PID by changing what you filter with grep. For the Dock as an example, you will need to run:
ps aux | grep Dock
Remember that the PID is not a universal number (that is your Finder application will not have 131, even my computer will have a different PID for Finder when I restart it) so you need to always find the unique PID running at the time.
Tags: dock, finder, Kill, Killing a process, mac newbie, Mac OS X, recovering from a crash, terminal, tutorial
Posted in Application, OS X, apple, control, finder, linux, mac, mac newbie, macbook, problem, prompt, terminal, tutorial, usage | 1 Comment »
Saturday, February 28th, 2009
Here’s another post that will be a short one for mac OS X. The best way to control what will run on startup is to go to System Preferences -> Accounts Pick the user you want to modify the startup list for and choose the “Login Items” tab. You should see something like this:

Account Login Items
At this point just pick the application you want to stop running on startup and click on the “-” sign to remove it from the list.
Tags: Disabling Skype, Disabling Startup Applications, login items, Mac OS X
Posted in Application, OS X, apple, configuration, control, mac, mac newbie, macbook, usage | No Comments »
Wednesday, October 22nd, 2008
While using the macbook I’ve picked up a few keyboard shortcuts that I now use all the time. Here is a list of them:
- Command+tab: to switch between different applications. This is similar to window’s alt+tab. You can hold down the command button and press/release tab and a prompt will come up to show you all the currently open programs. If you press and release the tab button it will then go to the next program and so on until you find the one you want and you let the command button go. This is extremely useful when you have multiple applications open and switching between them often. The biggest difference between windows and linux is that you switch between different application and not different windows of an application. For example if you have three different windows of firefox open comman+tab will not switch between those windows whereas alt+tab on other systems will. Mac OS X has a different keyboard shortcut to accomplish just that and it’s the next on the list.
- Command+~: Switching between different windows of the same application. Just as the case specified above, when you have three windows of firefox open and you want to switch between then, you just use the command+~ shortcut.
- Command+C: Copy.
- Command+V: Paste.
- Command+X: Cut.
- Command+Q: Quit the current application. This is similar to pressing Alt+F4 on a windows machine but the greatest difference is that with Alt+F4 you only close the current window or instance of that application you are looking at, whereas with Command+Q you are quitting the whole application. If we continue our example of having three firefox windows open, on a windows machine Alt+F4 will close the current window and when you are at the last window it will quit the whole application. On a macbook Command+Q will wuit the application closing all three windows at once. Just like Command+Tab there is a window specific shortcut and that is next.
- Command+W: Close only the current window of an application. This key is what is probably the closest to Alt+F4 on a windows machine because it will close the current window of the application you are on. Unlike windows’ shortcut though it will not quit the application if you close the last window. You will notice that the application is still showing as active in the Dock as well as the menu bar showing up at the top. If we follow the firefox example, closing the last window will still keep firefox open and you could open firefox again very fast because it’s still running in memory. You could use the next shortcut to open the new widnow.
- Command+N: Open a new window of the application. This is application specific.
- Command+Space: Open the spotlight prompt. You can use spotlight to find any files or even start up an application for you. Once you get used to this you will see that you rarely use finder or even the Dock to start your application. you want to open up firefox, just press Command+Space and then start typing the name “fire” you won’t even need to finish it and you’ll see firefox come up in the list. Use the arrow keys to go up and down the list to highlight the firefox Application and press enter.
- Command+Shift+3 and Command+Shift+4: Take a screenshot. For more information look at our screen capture post.
- Shift+Fn+Left Arrow: Home. This works in different ways on different application. I use terminal a lot and in terminal it will be like pressing “Home” on a keyboard and go to the beginning of the command. In other applications I’ve seen it go to the top of the text (like this input box in the browser jumps to the first character). In other applications you also don’t need to press the Shift key but you do in terminal.
(Edit: Peter Morgan recently posted a comment pointing out that point 11, 12 and 13 do not need the Shift key to work if you are using Mac OS X 10.5.6. Thank you Peter for the info )
- Shift+Fn+Right Arrow: End. Works the same way as the home button.
- Shift+Fn+Up Arrow or Down Arrow: Page Up and Page Down respectively. Works the same way as the home button
- Fn+Delete: Delete. The way the delete button alone works is more commonly known as backspace in other systems, it will delete the text found right behind (to the left of) the cursor. To delete the text found in front (to the right of) the cursor you need to press Fn+Delete.
- Fn+FX where X is a number between 1 and 12: Issues that function key as pressed. You will notice that the Function keys (F1, F2, … F12) have other uses like dimming the screen, controlling the speaker, starting spaces or expose and so on. Sometimes though you just want to press the F1 button, in those cases you need to use it in conjunction with the Fn key.
- Ctrl+Eject: Brings up the shutdown prompt to easily issue a shutdown or restart command.
- Command+Home: Go to beginning of the line.
- Command+End: Go to end of the line.
- Command+Up Arrow (Page Up): Go to beginning of file.
- Command+Down Arrow (Page Down): Go to end of file.
These are the most common keyboard shortcuts that I use and can think of right now. Let me know if you have a favorite one and I’ll add that to the list.
Tags: keyboard shortcuts, Mac OS X, mac OSX, macbook
Posted in OS X, apple, control, firefox, keyboard shortcuts, mac, mac newbie, macbook, switching, tutorial, usage | 12 Comments »
Sunday, September 28th, 2008
I’m finally back. I had to close the site for a while because of a bad spam problem. While I was away I learned something new about the macbook. How to get some diagnostic data on your battery.
Issues with my battery started recently. What would happen is the battery would be chargning, reaches “finishing charge”, then the adapter light turns green and the battery indicator turns to “Charged”. A few seconds later though the adapter light turns orange again and the indicator goes back to “Charging” then “Finishing Charge”. It basically looks like it continuously charges and doesn’t stop once done. This definitely can’t be good for the battery.
Well I took it into the apple store and a genius looked at it and basically told me that my battery has passed the recommended number of cycles and it is pretty much downhill from here. The typical “Cycal count” is around 300 and I was at 318. You can tell this by going to the apple icon at the top left of your screen, click on “About this mac”, in the dialog that comes up click on the “More Info” button and then under hardware find the “Power” section. In that section you should be able to see more details about your battery including the cycle count.
A few tools I found useful for battery info:
- Coconut Batter: http://www.coconut-flavour.com/coconutbattery/
if you don’t want to go throught he “About this mac” dialog. You can download coconut battery. This will pretty much tell you the same info but also allows you to save the details at any point in time so you can view it again later. It also has the default charge for most mac laptops so you can tell how much charge your battery has lost.
- iStat Pro by iSlayer: http://www.islayer.com/index.php?op=item&id=7
iSlayer has a cool widget that tells you the overall health of your laptop. Things like CPU load, heat of the processor, the heatsink, the hard drive and battery info as well.
Tags: always charging, battery, coconut battery, iStat Pro, macbook
Posted in apple care, battery, genius, genius bar, mac newbie, macbook, problem, usage | No Comments »
Saturday, July 28th, 2007
In the Mac world, what PC users call the touchpad mouse is called the trackpad. When I first got this macbook, I started playing around with some of the settings. Here is a screen shot of my current settings:

I think two finger scroll is the best solution I’ve seen on using the trackpad to scroll. On PCs, scrolling is usually done by moving your finger up or down on the right side of the touchpad. Having the right side devoted to scrolling basically narrows the touchpad’s surface area.Under the option of two finger scroll you’ll notice you can enable the horizontal scrolling and zooming while holding down the control key. You can read more about zooming
here.
The clicking and dragging feature is pretty common among PCs as well. You can basically double click on the trackpad while holding down your finger on the second click and dragging it to move objects or select an area of the screen.
My other favorite feature that’s missing from PCs is the two finger “right” click. If you enable the “Tap trackpad using two fingers for secondary clicks”, then you can, as the name suggests, tap with two fingers to act as the right click.
With the scrolling, two finger right click and dragging in place, you basically never need to use the big button under the trackpad with your thumb at all. This helps your hand lie at a neutral position at all times.
Posted in OS X, apple, configuration, mac, mac newbie, macbook, mouse, touchpad, trackpad, tutorial, usage | No Comments »
Friday, June 15th, 2007
If you installed the developer tools on macbook as I did the moment I started it up, you should have VI on your system. I’m used to the syntax highlighting in VI but macs don’t have that enabled by default. You could just run the command:
:syntax onÂ
And immediately you’ll have syntax highlighting. The issue with this method though is that once you quit VI and open a new file, there will be no syntax highlighting and you will need to run the command again.
To have highlighting always enabled, just create or edit the file $HOME/.vimrc and add the following line to it:
:syntax on
Open a new file in VI to test and you should see your code in color.
Posted in OS X, apple, configuration, linux, mac, mac newbie, macbook, terminal, tutorial, usage, vi, vim, vimrc | No Comments »
Friday, June 15th, 2007
Here’s a feature I didn’t know the macbook had until I saw someone using it and asked them how they did it. One of the accessibility features of the macbook is zooming. I’ve seen this in other operating systems where a box comes up next to the mouse with a zoomed in view around the mouse pointer. On the macbook, if you have accessibility turned on, you can zoom into the desktop by pressing and holding the “CTRL” key and then using two fingers on the trackpad, next to each other, move your fingers up towards the monitor. You will immediately notice the screen has now zoomed in. Unfortunately, taking a screenshot doesn’t really show the zoomed in effect properly.
Once you have zoomed in, moving the mouse/trackpad will make it seem like you are dragging the entire screen. And when you don’t need to be zoomed in anymore, press “CTRL” key and with both fingers on the trackpad move down (away from the monitor) until the screen is back to normal.
You can enable and disable the zooming feature by going to System Preferences -> Universal Access and change the Zoom setting to off. You can also change which keys will zoom in and out and even have a hot key to turn zooming on or off.
Posted in OS X, apple, control, ctrl, keyboard shortcuts, mac, mac newbie, macbook, switching, tutorial, usage, zoom | 8 Comments »
Sunday, June 3rd, 2007
Another commonly used function that took me a while to understand how to accomplish in OS X is to rename files. It took me quite some time to figure this one out and eventually I found the shortcut by accident.
First off I was trying to right click (or on the macbook using the trackpad to click on the file with two fingers which acts like a right click) and the following menu comes up:
As you can see in the above screen capture, there’s no option to rename the file. If you’d like to know how to capture the screen on OS X, look at our previous post: Mac OS X Screen Capture
Next, I thought maybe it would be in the finder edit menu at the top of the screen and maybe I could also find the shortcut key for renaming.
Again the edit menu doesn’t show anything related to renaming a file.
After trying many different things, I went into the “Get Info” dialog box when I right clicked on the file. The following dialog box comes up:
In this dialog box under the “Name and extension” section, you can see there is a text edit box with the name of the file. Modifying that text box and closing the dialog box will rename the file.
That is an extremely difficult to find method of renaming a file. You have to remember that I’m very new to macs and OS X and so it was not immediately obvious to me. I also couldn’t find a shortcut in renaming until I accidentally tried to use the keyboard to navigate through folders.
Navigating through folders on linux or windows involves arrow keys to pick a file or folder and the enter key to open or go into that folder. I was doing the same when I noticed that pressing the “enter” key on OS X is the actual keyboard shortcut to rename the file or folder.
So there you have it, the fastest way to rename a file in finder is to click on the file and press the “enter” key on the keyboard.
Posted in OS X, apple, finder, keyboard shortcuts, mac, mac newbie, macbook, rename, renaming, renaming files, tutorial, usage | 7 Comments »
Saturday, May 26th, 2007
If you ask me which application I’ve used the most on my new Mac, I’d have to say it’s Quicksilver by Blacktree.
I haven’t even used all the capabilities/features of this program. Currently I use it mostly to open other apps. I should explain what quicksilver is first for those who don’t know.
From the surface, quicksilver seems to be an application launcher but it’s much more than that. Quicksilver indexes your applications so that with just a few keypresses it’ll bring up the app you are looking for and you can open it from there. It’s also adaptive so pressing “f” now brings up firefox for me and “t” brings up terminal. As for other functions quicksilver provides. You can add the contacts plugin and it will index your address book as well. You can then search for addresses and phone numbers from your address book. For example pressing the first few characters of a name “serg” will bring up my information (including my picture that’s set in address book). Then if I press the right arrow key, I see a menu pop up with the different elements in address book like address, mobile phone, home phone, email. Pressing the down arrow, I can go to home phone and if I press enter it will bring up my phone number in big text on the screen and stays there until I press another button. Very useful if you are dialing someone. Another feature is that you can find a file through quicksilver and when you press tab it will bring up the action menu that allows you to perform different actions on that file such as compress it, email it, send it through IM.
You can find a good tutorial on quicksilver on Dan Dickinson’s blog. You can find other good tutorials on blacktree’s tutorial page.
I highly recommend you install and make quicksilver a startup item on your Mac OS X. I now officially can’t use a computer if it’s not installed on there and when it crashes (which isn’t too often) and exits I feel something missing.
Posted in OS X, application launcher, blacktree, intalling applications, launcher, mac, mac newbie, macbook, must have application, quicksilver, usage | No Comments »
Tuesday, May 22nd, 2007
In my last post I was discussing keyboard shortcuts and I had 2 screen capture images. I’ve already had a few people ask me how I was able to do that.
I used the built in screen capture capability of OS X. Press:
Command + Shift + 3 to capture the whole screen. The captured picture should now be on your desktop as Picture 1.png
Commange + Shift + 4 to capture part of the screen. When you press that key combination, your cursor turns into a crosshair. Just click and drag the area you’d like to capture. The picture will again be on your desktop.
You’ll find these and other helpful utilities at the following post on Mac Dev Center.
Screenshot Hacks for Mac OS X [oreillynet]
Posted in keyboard shortcuts, macbook, screen capture, usage | 9 Comments »