Accessing your iOS Photo Stream from the Mac OS X using the Finder

In order for this to work, you will need the following:

  • Mac OS X 10.7.2 or later on the Mac, with iCloud configured
  • iOS 5 or later on all iOS devices, with iCloud configured
  • Photo Stream must be enabled on all iOS devices involved, and must be enabled on the Mac

If you don’t have iCloud set up and Photo Stream turned on, do that before proceeding.

Accessing your iOS Photo Stream from the Mac OS X using the Finder

  1. From anywhere on the OS X desktop, hit Command+Shift+G to bring up Go To Folder and enter the following path:
~/Library/Application Support/iLifeAssetManagement/assets/sub/

 

Posted in OSX | Comments Off

How to re-direct Windows Home Folder to Different Hard Drive

This can be useful, for example, for freeing up space on your computer’s primary hard disk. (By default, Documents, Pictures, and other personal folders are located in C:\Users.) You could redirect, say, your Pictures or Music folder to another computer on the network, a different hard disk on your computer, or a new location on the same hard disk.

When you redirect one of these folders to a new location, you change where it is stored, but not the way you access the folder or the files within it.

  1. Right-click the folder that you want to redirect, and then clickProperties.
  2. Click the Location tab, and then click Move.
  3. Picture of the Location tab
  4. Browse to the location where you want to redirect this folder. You can select another location on this computer, another drive attached to this computer, or another computer on the network. To find a network location, type two backslashes (\\) into the address bar followed by the name of the location where you want to redirect the folder (for example, \\mylaptop), and then press ENTER. Or to select your drive D:E: etc
  5. Click a folder in the new location where you want to store the files, click Select Folder, and then click OK.

    To restore a folder to its original location

    1. Right-click the folder that you want to restore to its original location, and then click Properties.
    2. Click the Location tab, click Restore Default, and then click OK.
      Option 2. 

    1. After installing windows 7 you will be greeted with a user creation prompt press shift+f10 and you should get a cmd window up like in the image belowcmduser2. Copy the Users Profiles, Program Files And ProgramData Folders onto the Partition you want to userobocopy “C:\Users” “D:\Users” /E /COPYALL /XJ
    robocopy “C:\Program Files” “D:\Program Files” /E /COPYALL /XJ
    robocopy “C:\ProgramData” “D:\ProgramData” /E /COPYALL /XJ3. Delete the old folders and create links For Program Files:rmdir “C:\Program Files” /S /Q
    mklink /J “C:\Program Files” “D:\Program Files”

    For the User Profiles:

    rmdir “C:\users” /S /Q
    mklink /J “C:\users” “D:\users”

    and lastly ProgramData:

    rmdir “C:\ProgramData” /S /Q
    mklink /J “C:\ProgramData “D:\ProgramData”

    If you have any permissions issues while deleting C:\ProgramData don’t worry about them just try to delete it and make the links again after first reboot
    4. Now open regedit simply by typing regedit on the cmd window
    5. To change the program files path navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion and edit the ProgramFilesDir and CommonFilesDir as needed regeditproc
    6. For the user profiles you’ll need to go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList and again edit the paths as needed regeditprof
    7. Exit Regedit and the cmd window
    8. Continue to create your user
    9. Reboot your machine and you should be good to go

Posted in Windows | Comments Off

Long list of defaults commands

# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string “NO”
defaults write com.apple.menuextra.battery ShowTime -string “YES”
# Always show scrollbars
defaults write NSGlobalDomain AppleShowScrollBars -string “Always”
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Display ASCII control characters using caret notation in standard text views
# Try e.g. `cd /tmp; unidecode “\x{0000}” > cc.txt; open -e cc.txt`
defaults write NSGlobalDomain NSTextShowsControlCharacters -bool true
# Disable opening and closing window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Increase window resize speed for Cocoa applications
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# Disable Resume system-wide
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
# Disable the “reopen windows when logging back in” option
# This works, although the checkbox will still appear to be checked,
# and the command needs to be entered again for every restart.
defaults write com.apple.loginwindow TALLogoutSavesState -bool false
defaults write com.apple.loginwindow LoginwindowLaunchesRelaunchApps -bool false
# Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo)
# Commented out, as this is known to cause problems when saving files in Adobe Illustrator CS5 :(
#echo “0×08000100:0″ > ~/.CFUserTextEncoding
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Enable subpixel font rendering on non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Enable tap to click (Trackpad) for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Map bottom right Trackpad corner to right-click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true
# Require password immediately after sleep or screen saver begins
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Save screenshots to the desktop
defaults write com.apple.screencapture location -string “$HOME/Desktop”
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string “png”
# Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons
defaults write com.apple.finder QuitMenuItem -bool true
# Disable window animations and Get Info animations in Finder
defaults write com.apple.finder DisableAllAnimations -bool true
# Show all filename extensions in Finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Show status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true
# Allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
# Disable disk image verification
defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
# Automatically open a new Finder window when a volume is mounted
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
# Display full POSIX path as Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Show item info below desktop icons
/usr/libexec/PlistBuddy -c “Set :D esktopViewSettings:IconViewSettings:showItemInfo true” ~/Library/Preferences/com.apple.finder.plist
# Enable snap-to-grid for desktop icons
/usr/libexec/PlistBuddy -c “Set :D esktopViewSettings:IconViewSettings:arrangeBy grid” ~/Library/Preferences/com.apple.finder.plist
# Disable the warning before emptying the Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Empty Trash securely by default
defaults write com.apple.finder EmptyTrashSecurely -bool true
# Enable AirDrop over Ethernet and on unsupported Macs running Lion
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
# Show the ~/Library folder
chflags nohidden ~/Library
# Hot corners
# Top left screen corner → Mission Control
defaults write com.apple.dock wvous-tl-corner -int 2
defaults write com.apple.dock wvous-tl-modifier -int 0
# Top right screen corner → Desktop
defaults write com.apple.dock wvous-tr-corner -int 4
defaults write com.apple.dock wvous-tr-modifier -int 0
# Bottom left screen corner → Start screen saver
defaults write com.apple.dock wvous-bl-corner -int 5
defaults write com.apple.dock wvous-bl-modifier -int 0
# Enable highlight hover effect for the grid view of a stack (Dock)
defaults write com.apple.dock mouse-over-hilte-stack -bool true
# Set the icon size of Dock items to 36 pixels
defaults write com.apple.dock tilesize -int 36
# Enable spring loading for all Dock items
defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
# Show indicator lights for open applications in the Dock
defaults write com.apple.dock show-process-indicators -bool true
# Don’t animate opening applications from the Dock
defaults write com.apple.dock launchanim -bool false
# Remove the auto-hiding Dock delay
defaults write com.apple.Dock autohide-delay -float 0
# Remove the animation when hiding/showing the Dock
defaults write com.apple.dock autohide-time-modifier -float 0
# Enable the 2D Dock
defaults write com.apple.dock no-glass -bool true
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Make Dock icons of hidden applications translucent
defaults write com.apple.dock showhidden -bool true
# Enable iTunes track notifications in the Dock
defaults write com.apple.dock itunes-notifications -bool true
# Add a spacer to the left side of the Dock (where the applications are)
#defaults write com.apple.dock persistent-apps -array-add ‘{tile-data={}; tile-type=”spacer-tile”;}’
# Add a spacer to the right side of the Dock (where the Trash is)
#defaults write com.apple.dock persistent-others -array-add ‘{tile-data={}; tile-type=”spacer-tile”;}’
# Disable shadow in screenshots
defaults write com.apple.screencapture disable-shadow -bool true
# Disable Safari’s thumbnail cache for History and Top Sites
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
# Enable Safari’s debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
# Make Safari’s search banners default to Contains instead of Starts With
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
# Remove useless icons from Safari’s bookmarks bar
defaults write com.apple.Safari ProxiesInBookmarksBar “()”
# Add a context menu item for showing the Web Inspector in web views
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
# Enable the debug menu in Address Book
defaults write com.apple.addressbook ABShowDebugMenu -bool true
# Enable the debug menu in iCal
defaults write com.apple.iCal IncludeDebugMenu -bool true
# Only use UTF-8 in Terminal.app
defaults write com.apple.terminal StringEncodings -array 4
# Enable “focus follows mouse” for Terminal.app and all X11 apps
# This means you can hover over a window and start typing in it without clicking first
#defaults write com.apple.terminal FocusFollowsMouse -bool true
#defaults write org.x.X11 wm_ffm -bool true
# Disable the Ping sidebar in iTunes
defaults write com.apple.iTunes disablePingSidebar -bool true
# Disable all the other Ping stuff in iTunes
defaults write com.apple.iTunes disablePing -bool true
# Make ⌘ + F focus the search input in iTunes
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add “Target Search Field” “@F”
# Disable send and reply animations in Mail.app
defaults write com.apple.Mail DisableReplyAnimations -bool true
defaults write com.apple.Mail DisableSendAnimations -bool true
# Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
# Enable Dashboard dev mode (allows keeping widgets on the desktop)
defaults write com.apple.dashboard devmode -bool true
# Reset Launchpad
find ~/Library/Application\ Support/Dock -name “*.db” -maxdepth 1 -delete
# Prevent Time Machine from prompting to use new hard drives as backup volume
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
# Disable local Time Machine backups
hash tmutil &> /dev/null && sudo tmutil disablelocal
# Remove Dropbox’s green checkmark icons in Finder
file=/Applications/Dropbox.app/Contents/Resources/check.icns
[ -e "$file" ] && mv -f “$file” “$file.bak”
unset file
# Kill affected applications
for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer; do killall “$app” > /dev/null 2>&1; done
echo “Done. Note that some of these changes require a logout/restart to take effect.”
Posted in OSX | Comments Off

Save all of your Terminal activity to a file

Open Terminal’s preferences.

Go to Settings, then Shell. You can choose here to run a command at startup. You could create a simple log of your session using the following:

/usr/bin/script ~/Desktop/Terminal.log

This will log everything you do and append it to the log file.

I like to keep my history so instead I wrote this small script that archives previous sessions by renaming the file with a date/time string. I then set Terminal.app to run at startup the following command:

~/Desktop/logger.sh

Here’s the script:

#!/bin/bash # logger.sh # Log everything you do in Terminal. #* Formatted date & time string. FORMATTED_DATE=`/bin/date "+%Y-%m-%d%H%M%S"` #* Archive the previous file /bin/cp -f ~/Desktop/Terminal.log{,.&#36;FORMATTED_DATE.txt} #* Begin a new one /usr/bin/script ~/Desktop/Terminal.log
Posted in Lion, OSX, Snow Leopard | Comments Off

Enabling Remote Desktop VNC on OSX via Terminal Command Line

Prerequisites

1) User access with administrator’s rights on your remote OS X computer.

2) An Secure Shell (SSH) client on your local computer. On Windows, Puttyis a common and free version.  Linux and MAC OS X, by default, come withSSH.

3) A VNC viewer client on your local computer.  Tight VNC worked for me on Windows (for some reason, UltraVNC and TightVNC didn’t).  Ubuntu Linux’s Terminal Server Client worked for me too.  Apple OS X should come with the tool.

4) Network access to the SSH service on your remote machine.  This requires

a)  You know your remote machine’s hostname or IP address.
b)  Being behind the firewall, having VPN access, or being accessible to the public Internet (i.e. no firewall).

How to Remotely Turn On (and off) OS X Screen Sharing

1)  SSH into your remote OS X machine with an administrator’s log in and password.

2) Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC) with this command:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all

3) Login using a VNC client. As I mentioned, TightVNC worked for me; for some reason, RealVNC and UltraVNC didn’t.  Your password is “mypasswd” (see the -vncpw flag in the above command;  you can — and should — change this).

4) When you are done, turn of screen sharing using your SSH session:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off

Thanks To Ryan's Tech Notes:

http://technotes.twosmallcoins.com/?p=279

Posted in OSX, Snow Leopard | Comments Off

Where To Download iPad Firmware Files From

3.2.0: iPad1,1_3.2_7B367_Restore.ipsw
3.2.1: iPad1,1_3.2.1_7B405_Restore.ipsw
3.2.2: iPad1,1_3.2.2_7B500_Restore.ipsw
4.2.1: iPad1,1_4.2.1_8C148_Restore.ipsw
4.3.0 (iPad 1): iPad1,1_4.3_8F190_Restore.ipsw
4.3.0 (iPad 2 Wi-Fi): iPad2,1_4.3_8F191_Restore.ipsw
4.3.0 (iPad 2 GSM): iPad2,2_4.3_8F191_Restore.ipsw
4.3.0 (iPad 2 CDMA): iPad2,3_4.3_8F191_Restore.ipsw
4.3.1 (iPad 1): iPad1,1_4.3.1_8G4_Restore.ipsw
4.3.1 (iPad 2 Wi-Fi): iPad2,1_4.3.1_8G4_Restore.ipsw
4.3.1 (iPad 2 GSM): iPad2,2_4.3.1_8G4_Restore.ipsw
4.3.1 (iPad 2 CDMA): iPad2,3_4.3.1_8G4_Restore.ipsw
4.3.2 (iPad 1): iPad1,1_4.3.2_8H7_Restore.ipsw
4.3.2 (iPad 2 Wi-Fi): iPad2,1_4.3.2_8H7_Restore.ipsw
4.3.2 (iPad 2 GSM): iPad2,2_4.3.2_8H7_Restore.ipsw
4.3.2 (iPad 2 CDMA): iPad2,3_4.3.2_8H8_Restore.ipsw
4.3.3 (iPad 1): iPad1,1_4.3.3_8J3_Restore.ipsw
4.3.3 (iPad 2 Wi-Fi): iPad2,1_4.3.3_8J2_Restore.ipsw
4.3.3 (iPad 2 GSM): iPad2,2_4.3.3_8J2_Restore.ipsw
4.3.3 (iPad 2 CDMA): iPad2,3_4.3.3_8J2_Restore.ipsw
4.3.4 (iPad 1): iPad1,1_4.3.4_8K2_Restore.ipsw
4.3.4 (iPad 2 Wi-Fi): iPad2,1_4.3.4_8K2_Restore.ipsw
4.3.4 (iPad 2 GSM): iPad2,2_4.3.4_8K2_Restore.ipsw
4.3.4 (iPad 2 CDMA): iPad2,3_4.3.4_8K2_Restore.ipsw
4.3.5 (iPad 1): iPad1,1_4.3.5_8L1_Restore.ipsw
4.3.5 (iPad 2 Wi-Fi): iPad2,1_4.3.5_8L1_Restore.ipsw
4.3.5 (iPad 2 GSM): iPad2,2_4.3.5_8L1_Restore.ipsw
4.3.5 (iPad 2 CDMA): iPad2,3_4.3.5_8L1_Restore.ipsw
5.0 (iPad 1): iPad1,1_5.0_9A334_Restore.ipsw
5.0 (iPad 2 Wi-Fi): Pad2,1_5.0_9A334_Restore.ipsw
5.0 (iPad 2 GSM): iPad2,2_5.0_9A334_Restore.ipsw
5.0 (iPad 2 CDMA): iPad2,3_5.0_9A334_Restore.ipsw
5.0.1 (iPad 1): iPad1,1_5.0.1_9A405_Restore.ipsw
5.0.1 (iPad 2 Wi-Fi): iPad2,1_5.0.1_9A405_Restore.ipsw
5.0.1 (iPad 2 GSM): iPad2,2_5.0.1_9A405_Restore.ipsw
5.0.1 (iPad 2 CDMA): iPad2,3_5.0.1_9A405_Restore.ipsw
5.1.0 (iPad 1): iPad1,1_5.1_9B176_Restore.ipsw
5.1.0 (iPad 2 Wi-Fi): iPad2,1_5.1_9B176_Restore.ipsw
5.1.0 (iPad 2 GSM): iPad2,2_5.1_9B176_Restore.ipsw
5.1.0 (iPad 2 CDMA): iPad2,3_5.1_9B176_Restore.ipsw
5.1.0 (iPad 2 Unknown): iPad2,4_5.1_9B176_Restore.ipsw
5.1.0 (iPad 3 Wi-Fi): iPad3,1_5.1_9B176_Restore.ipsw
5.1.0 (iPad 3 GSM): iPad3,2_5.1_9B176_Restore.ipsw
5.1.0 (iPad 3 CDMA): iPad3,3_5.1_9B176_Restore.ipsw

Posted in Ipad | Comments Off

Bring Siri’s voice to your Mac with Samantha downloadable Voice for Lion & Mountain Lion

Open System Preferences> Speech> Text to Speech>System Voice> Customize> and select “Samantha” from the list. Apple will ask you to confirm the 469MB install.

Posted in OSX | Comments Off

Timewarner Motorola SBG6580

Getting a Motorola SBG6580 into “Bridge” mode on TimeWarner Wideband

Unplug coax cable from Motorola
Hold down the white reset button on the back panel with a pen for 30s. This resets all settings to factory defaults. The modem will be auto-reconfigured once you plug in the coax cable.
When modem is back on plug in a computer with an Ethernet cable into the modem.
Connect to http://192.168.0.1 and login with “admin” / “motorola”
Now you will make some changes:
Wireless -> Primary Network -> Disabled
Basic -> Setup -> NAPT Mode -> Disabled
Basic -> DHCP -> Disabled
Advanced -> Options -> Rg Passthrough -> Enable
Advanced -> Options -> Passthrough Mac Addresses -> Add WAN MAC address of your router. Connect port 1 on the Motorola modem to the WAN port of your router.
Plug the coaxial cable back into the modem and power cycle it.

According to some research (DSL Reports: 1 2 3 4 5), this should be sufficient, but that did not work for me.  I made a few more changes:

* Advanced -> Rg Passthrough -> Enabled

* Add the WAN MAC Address of your Linksys into the Passthrough list

* Basic -> WAN IP -> Static IP.  Make up some IP data like 192.168.99.1 / 255.255.255.0 / 192.168.99.250 / DNS: 8.8.8.8.  This way the modem doesn’t try to get an IP, allowing your computer/router to get one instead.

6. Connect port 1 on the Motorola modem to the WAN port of your Linksys.  Plug the coaxial cable back into the modem and power cycle it.  In theory it should just connect to the network after a little while, but mine required around 3 power cycles (you leave the modem for a min between each) to sync up all the required TWC settings.

7. Once the blue Network light comes on the modem, your Linksys should have requested and received a public IP address.  If this is not the case, click to “Renew Lease” in the Linksys interface.

Thanks:

Anthony Volodkin

Posted in Uncategorized | Comments Off

24 Multi-Touch Gestures for Mac OS X

Finder, Mission Control, and Desktop

  • Push Windows Aside to Show Desktop – Four Finger Spread
  • Activate Mission Control – Four Finger Swipe up
  • Switch Desktops & Full Screen Apps – Three finger swipe left or right
  • Mission Control All Windows for Current Application – Four Finger swipe down
  • Zoom Into Window in Mission Control – Two finger swipe up over window
  • Open Launchpad – Four finger pinch
  • Drag Windows – Three finger hold and drag over window bar
  • Tap to Click – Tap with a single finger
  • Right-Click – Two finger click
  • Scroll – Two finger swipe in direction to scroll

Safari, Chrome, Firefox

  • Zoom In & Increase Font Size – Spread
  • Zoom Out & Decrease Font Size – Pinch
  • Go Back – Two Finger swipe right
  • Go Forward – Two Finger swipe left
  • Look Up Word in Dictionary – Three fingered double tap over word (Safari only)
  • Smart Zoom – Two finger double tap (Safari only)

Quick Look & QuickTime Player

  • Enter Full Screen – Spread
  • Exit Full Screen – Pinch
  • Scrub Video – Two finger swipe right or left (QuickTime only)

Preview

  • Rotate Image – Two finger rotate gesture
  • Zoom Into Image – Spread
  • Zoom Out Image – Pinchvv

Thanks OSXDAILY.COM

Posted in OSX | Comments Off

Extended CPU Information/64bit/ precise boot, sleep, and wake times from the Command Line

Using sysctl we can get extended information on a Macs processor, covering everything from CPU brand and identifier, clock speed, number of cores, thread count, thermal sensor data, cache size, and some significantly more technical information.

Launch the Terminal and enter the following command:

sysctl -a | grep machdep.cpu
sysctl hw |grep 64bit
hw.cpu64bit_capable: 0 
sysctl hw |grep 64bit
hw.cpu64bit_capable: 1

0 – Non 64bit

1 – 64bit compatible

Check a Macs CPU the Fun Way: Command Line

sysctl machdep.cpu.brand_string
Get Precise System Boot Time
sysctl -a |grep kern.boottime
Get Mac System Sleep Time
sysctl -a |grep sleeptime
Get Mac OS X System Wake Time
sysctl -a |grep waketime

 


Posted in Uncategorized | Comments Off

Free Up Inactive Memory in Mac OS X with Purge Command

Free Up Memory in Mac OS X

Mac OS X has fairly good memory management but it’s not perfect, and sometimes RAM can be held unnecessarily in the “inactive” state despite the contents no longer being needed. If you’ve been participating in memory heavy activities or you just need to free up some available RAM you can actually force Mac OS X to clear out inactive memory.

    • Launch Terminal, found in /Applications/Utilities/ and enter the following command

purge

  • Give OS X a minute or two to complete the process

Open Activity Monitor to see the before and after results yourself, you’ll find dramatic changes at the “Free”, “Used”, and “Inactive” meters under System Memory.

The purge command forces disk and memory caches to be emptied, offering a ‘cold disk buffer cache’ which is similar to the state of the operating system after a reboot. Of course, the benefit of using purge rather than rebooting is that you don’t have to restart the machine and you can maintain currently active applications while still freeing up memory.

This is not necessary for most Mac users, but power users and those with heavy memory demands will undoubtedly find this command helpful in the future. If you feel like you are frequently hitting a memory ceiling learn how to check if your Mac needs a RAM upgrade and consider upgrading, it can dramatically improve overall system performance.

Note: You may need to have XCode & Developer Tools installed in order to use the purge command, that can be downloaded for free from the Mac App Store.

Or download Purge from here

 

Thanks to OSXDAILY.COM

Posted in OSX | Comments Off

24 Multi-Touch Gestures for Mac OS X

Finder, Mission Control, and Desktop

  • Push Windows Aside to Show Desktop – Four Finger Spread
  • Activate Mission Control – Four Finger Swipe up
  • Switch Desktops & Full Screen Apps – Three finger swipe left or right
  • Mission Control All Windows for Current Application – Four Finger swipe down
  • Zoom Into Window in Mission Control – Two finger swipe up over window
  • Open Launchpad – Four finger pinch
  • Drag Windows – Three finger hold and drag over window bar
  • Tap to Click – Tap with a single finger
  • Right-Click – Two finger click
  • Scroll – Two finger swipe in direction to scroll

Safari, Chrome, Firefox

  • Zoom In & Increase Font Size – Spread
  • Zoom Out & Decrease Font Size – Pinch
  • Go Back – Two Finger swipe right
  • Go Forward – Two Finger swipe left
  • Look Up Word in Dictionary – Three fingered double tap over word (Safari only)
  • Smart Zoom – Two finger double tap (Safari only)

Quick Look & QuickTime Player

  • Enter Full Screen – Spread
  • Exit Full Screen – Pinch
  • Scrub Video – Two finger swipe right or left (QuickTime only)

Preview

  • Rotate Image – Two finger rotate gesture
  • Zoom Into Image – Spread
  • Zoom Out Image – Pinch

Misc

  • Flip Calendar Pages – Two finger swipe left or right (iCal)
  • Refresh Tweet Stream – Two finger pull down (Twitter)

Thanks to OSXDAILY.Com

Posted in OSX | Comments Off

OSX Release Date

Mac OS X Version Information
Version Codename Date Announced Release Date Most Recent Version
Rhapsody Developer Release Grail1Z4 / Titan1U August 31, 1997 DR2 (May 14, 1998)
Mac OS X Server 1.0 Hera March 16, 1999 1.2v3 (October 27, 2000)
Darwin Developer Preview March 16, 1999 DP4 (April 5, 2000)
Public Beta Kodiak September 13, 2000
Mac OS X 10.0 Cheetah March 24, 2001 10.0.4 (June 22, 2001)
Mac OS X 10.1 Puma July 18, 2001[68] September 25, 2001 10.1.5 (June 6, 2002)
Mac OS X 10.2 Jaguar May 6, 2002[69] August 24, 2002 10.2.8 (October 3, 2003)
Mac OS X 10.3 Panther June 23, 2003[70] October 24, 2003 10.3.9 (April 15, 2005)
Mac OS X 10.4 Tiger May 4, 2004[71] April 29, 2005 10.4.11 (November 14, 2007)
Mac OS X 10.5 Leopard June 26, 2006[72] October 26, 2007 10.5.8 (August 5, 2009)
Mac OS X 10.6 Snow Leopard June 9, 2008[73] August 28, 2009 10.6.8 v1.1 (July 25, 2011)
Mac OS X 10.7 Lion October 20, 2010[74] July 20, 2011 10.7.3 (February 1, 2012)
OS X 10.8 Mountain Lion February 16, 2012[75] Late Summer 2012[75] DP2 (March 16, 2012)
Posted in OSX | Comments Off

Flashback malware removal tool

Flashback malware removal tool

Download icon

About Flashback malware removal tool

This Flashback malware removal tool that will remove the most common variants of the Flashback malware.

If the Flashback malware is found, a dialog will be presented notifying the user that malware was removed.

In some cases, the Flashback malware removal tool may need to restart your computer in order to completely remove the Flashback malware.

This update is recommended for all OS X Lion users without Java installed.

SHA1: d4372b9bb14387a20567817ab7e03ea103fdffc2

See http://support.apple.com/kb/HT5246 for more details about this update.

See http://support.apple.com/kb/HT1222 for information about the security content of this update

Download

  • Version: 1.0
  • Post Date: April 13, 2012
  • Download ID: DL1517
  • License: Update
  • File Size: 356 KB

System Requirements

OS X Lion without Java installed

Supported Languages

  • Deutsch, English, Français, 日本語
Posted in OSX | Comments Off

Trojan-Downloader:OSX/Flashback.I

Disinfection

Manual Removal

Caution: Manual disinfection is a risky process; it is recommended only for advanced users. Otherwise, please seek professional technical assistance. F-Secure customers may also contact our Support.
Manual Removal Instructions

  • 1. Run the following command in Terminal:defaults read /Applications/Safari.app/Contents/Info LSEnvironment
  • 2. Take note of the value, DYLD_INSERT_LIBRARIES
  • 3. Proceed to step 8 if you got the following error message:”The domain/default pair of (/Applications/Safari.app/Contents/Info, LSEnvironment) does not exist”
  • 4. Otherwise, run the following command in Terminal:grep -a -o ‘__ldpath__[ -~]*’ %path_obtained_in_step2%
  • 5. Take note of the value after “__ldpath__”
  • 6. Run the following commands in Terminal (first make sure there is only one entry, from step 2):sudo defaults delete /Applications/Safari.app/Contents/Info LSEnvironment

    sudo chmod 644 /Applications/Safari.app/Contents/Info.plist

  • 7. Delete the files obtained in steps 2 and 5
  • 8. Run the following command in Terminal:defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES
  • 9. Take note of the result. Your system is already clean of this variant if you got an error message similar to the following:”The domain/default pair of (/Users/joe/.MacOSX/environment, DYLD_INSERT_LIBRARIES) does not exist”
  • 10. Otherwise, run the following command in Terminal:grep -a -o ‘__ldpath__[ -~]*’ %path_obtained_in_step9%
  • 11. Take note of the value after “__ldpath__”
  • 12. Run the following commands in Terminal:defaults delete ~/.MacOSX/environment DYLD_INSERT_LIBRARIES

    launchctl unsetenv DYLD_INSERT_LIBRARIES

  • 13. Finally, delete the files obtained in steps 9 and 11.

Note:

Some Flashback variants include additional components, which require additional steps to remove. Please refer to ourTrojan-Downloader:OSX/Flashback.K description for additional information and removal instructions.

Additional Details

Trojan-Downloader:OSX/Flashback.I is dropped by malicious Java applets that exploit the known CVE-2011-3544vulnerability.

On execution, the malware will prompt the unsuspecting user for the administrator password. Whether or not the user inputs the administrator password, the malware will attempt to infect the system, though entering the password will affect how the infection is done.

If infection is successful, the malware will modify the contents of certain webpages displayed by web browsers; the specific webpages targeted and changes made are determined based on configuration information retrieved by the malware from a remote server.
Installation

On execution, the malware checks if the following path exists in the system:

  • /Library/Little Snitch
  • /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
  • /Applications/VirusBarrier X6.app
  • /Applications/iAntiVirus/iAntiVirus.app
  • /Applications/avast!.app
  • /Applications/ClamXav.app
  • /Applications/HTTPScoop.app
  • /Applications/Packet Peeper.app

If any of these are found, the malware will skip the rest of its routine and proceed to delete itself.
Downloading the Payload

The malware connects to the following URL to download its payload:

  • h t t p : / / 95.215.63.38/counter/%encoded_data%Where decoded data follows this format:
    • %hardware_UUID|%machine_architecture%|%kernel_version%|%encoded_data2%|
      %architecture_of_malware_process%|%current_hardware_type_of_system%|%is_user_daemon%

      • %encoded_data2% is the MD5 hash of the following:
        • %hardware_UUID%Jiangxi
      • %is_user_daemon% is “1″ if the process is running as the first OS X user account or daemon “0″ otherwise

The filename and actual content of the payload depends on reply of the remote host. The reply is compressed and encrypted but the actual content follows this format:

  • %encoded_filename%|%encoded_binary1_content%|%encoded_payload_config%| %encoded_binary2_content%|%encoded_png_content%Where:
      • Binary 1Binary1 is more or less the malware’s main component. In the sample that we analyzed, it hijacks CFReadStreamRead and CFWriteStreamWrite by creating an interposition to these functions. The malware modifies contents returned or send by these APIs. It targets the contents of specific webpages, as determined by config information returned by the remote host.
    • Binary 2Binary2 is basically a filter component that will load binary1 only into a targeted process. This is to avoid crashing incompatible applications and raising the user’s suspicions. In the sample that we analyzed, it targets the Safari web browser.

Infection

Only after downloading the payload does Flashback.I proceed with infecting the machine. To do so, the malware prompts for the administrator password, as in the following screenshot:

Trojan-Downloader:OSX/Flashback.I prompt

The icon indicated by the red box in the screenshot is the PNG content returned by the remote host. This is dropped to the location ‘/tmp/.i.png’ on the system. Since this image is controlled by the remote host, it can be changed any time the author deems necessary.

Whether or not the user inputs their administrator password at the prompt determines the type of infection the malware subsequently performs:
Infection Type 1

If the user inputs their administrator password, the malware will create the following files:

  • /Applications/Safari.app/Contents/Resources/.%decoded_filename%.png - contains %decoded_binary1_contents% and %decoded_payload_config%
  • /Applications/Safari.app/Contents/Resources/.%decoded_filename%.xsl - contains %decoded_binary2_contents%

The malware then creates a launch point, inserting the following line into “/Applications/Safari.app/Contents/Info.plist”:

  • <key>LSEnvironment</key><dict><key>DYLD_INSERT_LIBRARIES</key>
    <string>/Applications/Safari.app/Contents/Resources/.%decoded_filename%.xsl</string></dict>

This in effect will inject binary2 into Safari when the browser is launched.

If the malware was able to infect the system this way, it reports success to the following URL:

  • h t t p ://95.215.63.38/stat_d/

If it failed to infect the system, the malware reports to the following URL:

  • h t t p ://95.215.63.38/stat_n/

Infection Type 2

In cases where the user did not input their administrator password, the malware checks if the following path exists in the system:

  • /Applications/Microsoft Word.app
  • /Applications/Microsoft Office 2008
  • /Applications/Microsoft Office 2011
  • /Applications/Skype.app

If any of these are found, the malware again skips the rest of its routine and proceeds to delete itself, presumably to avoid infecting a system that has an incompatible application installed.

If none of the incompatible applications are found, the malware will create the following files:

  • ~/Library/Application Support/.%decoded_filename%.tmp - contains %decoded_binary1_contents% and %decoded_payload_config%
  • /Users/Shared/.libgmalloc.dylib - contains %decoded_binary2_contents%

The malware then creates a launch point by creating “~/.MacOSX/environment.plist”, containing the following lines:

  • <key>DYLD_INSERT_LIBRARIES</key>
    <string>/Users/Shared/.libgmalloc.dylib</string>

This in effect will inject binary2 into every application launched by the infected user.

For this infection type, the malware reports the successful infection to the following URL:

  • h t t p : / / 95.215.63.38/stat_u/
Posted in OSX | Comments Off

How to Check for the Flashback Trojan in Mac OS X

    • Launch Terminal (found in /Applications/Utilities/) and enter the following commands:

defaults read /Applications/Safari.app/Contents/Info LSEnvironment

    • If you see a message like “The domain/default pair of (/Applications/Safari.app/Contents/Info, LSEnvironment) does not exist” proceed to the next defaults write command:

defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES

  • If you see a message similar to “The domain/default pair of (/Users/joe/.MacOSX/environment, DYLD_INSERT_LIBRARIES) does not exist” then the Mac is NOT infected.

What if you see something different in the Terminal? If the defaults read commands show actual values, you may have the trojan though this does seem to be very rare. In the event you run into a Mac with the problem follow the guide on f-secure to remove the Flashback trojan, it’s just a matter of copying and pasting a few commands into the Terminal.

Posted in OSX | Comments Off

Send Multiple Photos from an iPhone or iPad

Email Multiple Photos from iOS

Sending out multiple photos at the same time from an iPhone, iPad, or iPod touch is easy and intuitive, here’s how to do it:

    1. Open the Photos app
    2. Tap the arrow icon in the lower left corner
    3. Tap to select each photo you wish to send, you will see a red check appear in the corner of each picture

Send Multiple Photos from an iPhone or iPad

    1. Tap on “Share” and tap “Email” (5 photo limit with email)

Send Multiple Pictures from an iPhone or iPad

  1. Fill out the email as usual and click send

To get around the five picture limit of sending through email, choose the “Message” option instead of email, this will use the iMessage protocol but it does require that iMessage is set up on the sending and receiving devices. Using the Message option also lets you send the pictures to a Mac with iMesssage.

 

Thanks to OSXDAILY.COM

Posted in Ipad, Iphone | Comments Off

Checking to see if someone is logging into your OSX machine via logs grep sshd /private/var/log/secure.log

You need to Grep the logs to see what comes up.

grep sshd  /private/var/log/secure.log
Mar 1 11:53:50 username sshd[10733]: input_userauth_request: invalid user duster
Mar 1 11:53:50 username sshd[10733]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:53:51 username sshd[10736]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:53:53 username sshd[10739]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:53:54 username sshd[10741]: Invalid user paul from 222.87.204.14
Mar 1 11:53:54 username sshd[10742]: input_userauth_request: invalid user paul
Mar 1 11:53:54 username sshd[10742]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:53:56 username sshd[10745]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:53:57 username sshd[10748]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:53:59 username sshd[10751]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:54:00 username sshd[10752]: Invalid user webairadmin from 222.87.204.14
Mar 1 11:54:00 username sshd[10753]: input_userauth_request: invalid user webairadmin
Mar 1 11:54:01 username sshd[10753]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:54:02 username sshd[10756]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:54:04 username sshd[10759]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:54:05 username sshd[10761]: Invalid user games from 222.87.204.14
Mar 1 11:54:05 username sshd[10762]: input_userauth_request: invalid user games
Mar 1 11:54:05 username sshd[10762]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:54:07 username sshd[10764]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:54:08 username sshd[10767]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:54:10 username sshd[10770]: Received disconnect from 222.87.204.14: 11: Bye Bye
Mar 1 11:54:11 username sshd[10772]: Invalid user jerrygskk from 222.87.204.14

 

Posted in OSX, Snow Leopard | Comments Off

Syncing an iPhone with a New Mac by Copying Sync Data

Syncing an iPhone with a New Mac by Copying Sync Data

    1. Quit iTunes on both Macs and disconnect the iPhone from both Macs
    2. Open the Home folder and copy the iTunes directory from the old computer to the new one, located at:

~/Music/iTunes

    1. Now open the user library directory and copy the backups from the old computer to the new one, located at:

~/Library/Application Support/MobileSync/

    1. To be certain everything is in order, copy over iTunes Preferences files as well:

~/Library/Preferences/com.apple.iTunes.plist

  1. Now connect the iPhone to the new Mac, launch iTunes, confirm that everything is in order, and authorize the new computer

 

Syncing an iPhone with a New Windows PC

The instructions are basically the same as above, but the files and folders you are looking to copy are in different locations. For Windows 7 users, you’ll want to copy the following directories and their contents from the old PC to the new PC:

C:\Users\USERNAME\Music\iTunes
C:\Users\USERNAME\AppData\Roaming\Apple Computer\MobileSync\
C:\Users\USERNAME\AppData\Roaming\Apple Computer\Preferences\

Replace “USERNAME” with the users account name, obviously. Older versions of Windows haveiPhone backups located at the following location instead:

C:\Documents and Settings\USER\Application Data\Apple Computer\MobileSync\Backup

Now launch iTunes and connect the iPhone and it should sync as normal. Go ahead and authorize iTunes with the new computer as well.

Posted in Ipad, Iphone | Comments Off

Enable Trim Support Via Terminal Commands

TRIM can be enabled by using the following Terminal commands. Copy these commands and run them in Terminal:

Backup the file that you’re about to patch:

sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /IOAHCIBlockStorage.original

Patch the file to enable TRIM support:

sudo perl -pi -e ‘s|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg’ /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

Clear the kext caches:

sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches

Important: reboot your Mac!

To disable TRIM support in the future:

sudo perl -pi -e ‘s|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00).{9}(\x00\x51)|$1\x41\x50\x50\x4C\x45\x20\x53\x53\x44$2|sg’ /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

Finally, if this does not work as expected, or if something goes wrong, simply restore the backup:

sudo cp /IOAHCIBlockStorage.original /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

This patch simply edits a file called IOAHCIBlockStoage, removing a string that makes TRIM work for only Apple SSDs.

Posted in Lion, OSX, Snow Leopard | Comments Off

Checking Mac OS X virtual memory usage with vm_stat

vm_stat will spit out a generic overview of virtual memory usage, looking something like this:
$ vm_stat
Mach Virtual Memory Statistics: (page size of 4096 bytes)
Pages free: 5231.
Pages active: 130041.
Pages inactive: 73169.
Pages wired down: 53703.
"Translation faults": 84039105.
Pages copy-on-write: 7089068.
Pages zero filled: 32672437.
Pages reactivated: 432070.
Pageins: 62166.
Pageouts: 63545.
Object cache: 1445817 hits of 1470191 lookups (98% hit rate)

If you want a continual update of your virtual memory usage, try adding a numeric value after the vm_stat command, indicating the amount of seconds that pass before refreshing the data. For example:
vm_stat 3

Posted in OSX | Comments Off

Mac Virtual Memory – What it is, the Swap Location, and How to Disable Swap in Mac OS X

Mac OS X Swap aka Virtual Memory

You may recall that in older versions of Mac OS (OS 8 and 9) you could manually disable swapping, then called Virtual Memory, by just adjusting a setting in the Control Panels. Mac OS X is a bit different because it’s built on top of a unix core which relies heavily on swap files and paging for general memory and cache management. Because of this, swap is actually more important now than it was in prior versions of Mac OS.

Basically when your Mac needs memory it will push something that isn’t currently being used into a swapfile for temporary storage. When it needs accessing again, it will read the data from the swap file and back into memory. In a sense this can create unlimited memory, but it is significantly slower since it is limited by the speed of your hard disk, versus the near immediacy of reading data from RAM.

If you’re curious, you can check Mac OS X’s virtual memory usage using the ‘vm_stat’ command, or by using the Activity Monitor (often erroneously called the Mac task manager by Windows converts).

Mac OS X Swap File Location

If you’re curious where the swap files are stored on your Mac, they’re located at:

/private/var/vm/

This directly also contains your sleepimage file, which is essentially what your Mac has been storing in memory prior to system sleep. This file is read again when you wake your Mac up to return to it’s previous state. Anyway, back to swap files in the same directory: they are named successively swapfile0, swapfile1, swapfile2, swapfile3, swapfile4, swapfile5. You can see them for yourself with the following command:

ls -lh /private/var/vm/swapfile*

The swapfiles are generally staggered in size, ranging from 64MB to 512MB.

Disable Mac OS X Paging / Swap

Caution: I would highly recommend against modifying how Mac OS X handles memory management and swap files. Unless you know exactly what you’re doing and why, this is not a recommended adjustment. Again, if you don’t know what you’re doing, do not mess around with Mac OS X’s swapfiles or paging ability!

In the Terminal, enter the following command. This will unload the dynamic pager from the Mac OS X kernel:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

Again, this completely disables the Mac OS X paging ability, do not mess around with this for fun.

Your next step would be to remove the swapfiles that are currently stored, they are generally pretty large (it is your virtual memory after all) and take up a fair amount of disk space.

sudo rm /private/var/vm/swapfile*

To re-enable it type:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

Thanks to
OSXDAILY.COM
Posted in Lion, OSX | Comments Off

Speed Up Mission Control Animations in Mac OS X Lion

Speed Up Mission Control Animations

This will speed up Mission Control quite noticeably but still maintain a decent looking animation:

defaults write com.apple.dock expose-animation-duration -float 0.15

Now you can kill the Dock to restart Mission Control:

killall Dock

Do a three-fingered swipe up or down to see the difference in speed.

Super Fast Mission Control Animations
If you want to have an extremely fast animations,  write command:

defaults write com.apple.dock expose-animation-duration -float 0.1

Again, kill the Dock for changes to take effect:

killall Dock

As you may have guessed, you can adjust the animation speeds by changing the number after the -float flag, the larger the number the slower the animation, and the lower the number the faster the animation. The default setting is probably about 0.2 or 0.25, meaning anything larger than that starts to be slower than default. Whole numbers become increasingly slow, similar to holding down the shift key.

Slowing Down Mission Control Animations
This is marginally slower, but can quickly become a nuisance with usability:

defaults write com.apple.dock expose-animation-duration -float 1

Followed by:

killall Dock

Disable Mission Control Animations
This removes all animations, making Mission Control just snap in and out:

defaults write com.apple.dock expose-animation-duration -float 0

Killing the Dock is required for the animations to disappear:

killall Dock

The effect of disabling the animation is quite jarring and unless you’re trying to preserve frame rate for some reason it’s not very pleasant.

Return to Default Mission Control Animation Speeds

Want Mission Control to be back to normal? Use the following defaults command to clear any customizations, returning to the default setting:

defaults delete com.apple.dock expose-animation-duration; killall Dock

 

Thanks to OSXDAILY.com

Posted in Lion | Comments Off

Always boot Mac OS X in Verbose Mode

Booting Mac OS X is attractive and all, but some users would prefer to see what’s going on behind the scenes. Verbose mode shows you what is really happening during system startup, and is great for troubleshooting. Typically if you wanted to boot in verbose mode you would hit Command-V during startup, which brings up the familiar white on black console. If you’d prefer to always see the system messages on boot, you can adjust the firmware from the Terminal with the nvram command.
To turn on Verbose booting, at the Terminal type the following:
sudo nvram boot-args="-v"

Disabling Verbose booting is just as easy:
sudo nvram boot-args=

If you’re curious what the current firmware nvram settings are, type the following:
nvram -p

Again, if you just want to boot into verbose mode once, hold the following keys on system boot:
Command+V

Posted in OSX | Comments Off

Enable TRIM on SSD Snow Leopard and Lion for aftermarket SSD

Trim is must-have feature for most Solid State Drives. It not only increases data writing speeds, but it increases the lifetime of the SSD itself. With Trim Enabler, you can bring that feature to Mac OSX. It’s as easy as flipping a switch.

Trim Enabler can also analyze your drive and show information about it’s health and show lifetime statistics.

http://www.groths.org/?p=639

http://groths.org/trimenabler/TrimEnabler.dmg

Posted in Lion, OSX | Comments Off

Give your App in OSX More Power sudo renice -20 ProcessIDHere Adjust a Mac Apps CPU Priority

You need to launch Activity Monitor and note the Process ID for FCP.

Then launch Terminal and type “sudo renice -20 ProcessIDHere”.

In the above example you’d put the Process ID for FCP in the obvious spot. The “-20″ is the highest priority you can give a program. The lowest would be “20″.

After you type that line above into Terminal it’ll ask you for your adminstrative password.

It’ll then show something like:
“ProcessIDHere: old priority 0, new priority -20″

All apps in OS X are a Priority 0, but using the renice command can tell OS X which apps you want to give more juice to.

 

Thanks to: http://forums.creativecow.net/archivepost/8/494109

Posted in OSX | Comments Off

Enable TRIM on SSD Snow Leopard and Lion for aftermarket SSD

Trim is must-have feature for most Solid State Drives. It not only increases data writing speeds, but it increases the lifetime of the SSD itself. With Trim Enabler, you can bring that feature to Mac OSX. It’s as easy as flipping a switch.

Trim Enabler can also analyze your drive and show information about it’s health and show lifetime statistics.

http://www.groths.org/?p=639

http://groths.org/trimenabler/TrimEnabler.dmg

Posted in OSX | Comments Off

Setting Up Find My iPhone (iPad Macbook Pro etc )

Find My iPhone

If you haven’t set up iCloud and Find My iPhone yet, now is a good time to do so. This friendly reminder comes to us from a recent New York Times article, which details the story of a police officer using iCloud to bust an iPhone thief and return the iPhone to its rightful owner using none other than the free Find My iPhone service:

Setting Up Find My iPhone (or iPad)

You will need an Apple ID, iOS 5 or later on an iPad, iPhone, or iPod touch, and iCloud setup.

  • Launch the Settings app
  • Locate and tap on “iCloud” – if you are asked for an Apple ID you haven’t setup iCloud yet
  • Near the bottom of iCloud settings, look for “Find My iPhone” and switch to “ON”, allow the app to use location services

Find My iPhone

It’s that easy to turn on, but you’re not quite finished yet because you will want to also install the Find My iPhone app for iOS. The Find My iPhone application is a free download on the iOS App Store, and lets you locate the iOS devices or Macs on a map, send messages and pings to the devices, and even remotely wipe them of their data.

Find My iPhone map and options

Setting Up Find My Mac

Assuming you already have iCloud enabled in OS X 10.7.2, setting up Find My Mac is very easy:

  • Launch System Preferences
  • Click on “iCloud”
  • Click the checkbox next to “Find My Mac” and then click “Allow”

The Mac will now be accessible via the iOS Find My iPhone app in the device list, and can also be pinpointed on a map using the iCloud.com website.

Thanks to OSXDaily.com

Posted in Iphone | Comments Off

Mac OS X – Show / Hide Hidden Files in Finder

To show hidden files in Finder pop open your terminal and type the text shown in the screen grab below.

To go back to hiding files we obviously just flip the AppleShowAllFiles flag to FALSE.

*Update*
As noted in the comments its nice to have the text available for easy copy and paste into your terminal.

Show:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

Hide:

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

*Update 2*

You can use this script toggle between states:

# check if hidden files are visible and store result in a variable
isVisible=”$(defaults read com.apple.finder AppleShowAllFiles)”

# toggle visibility based on variables value
if [ "$isVisible" = FALSE ]
then
defaults write com.apple.finder AppleShowAllFiles TRUE
else
defaults write com.apple.finder AppleShowAllFiles FALSE
fi

# force changes by restarting Finder
killall Finder

You can also download an Automator application which will toggle hidden file visibility here:

http://www.brooksandrus.com/downloads/show_files.zip

Thanks to: http://www.brooksandrus.com/blog/2007/03/23/mac-os-x-show-hide-hidden-files-in-finder/

Posted in OSX | Comments Off

Hide HFS and NTFS Partions in OSX

1. We need to find the UUID for the disk.  We can only get that via the slice number, so, we get that first:

# diskutil list
/dev/disk0
#:                  type name              size      identifier
0: Apple_partition_scheme                    *76.7 GB  disk0
1:    Apple_partition_map                    31.5 KB  disk0s1
2:              Apple_HFS StuC_HD            76.6 GB  disk0s3
/dev/disk1
#:                  type name              size      identifier
0: Apple_partition_scheme                    *279.5 GB disk1
1:    Apple_partition_map                    31.5 KB  disk1s1
2:              Apple_HFS StuC_HD_Backup    139.6 GB  disk1s3
3:              Apple_HFS backup2            139.6 GB  disk1s5

Great!  Stu_C_HD_Backup is “disk1s3″

2. Now, let’s get the UUID:

# diskutil info disk1s3
Device Node:        /dev/disk1s3
Device Identifier:  disk1s3
Mount Point:
Volume Name:        StuC_HD_Backup

File System:        Journaled HFS+
Owners:            Disabled
Partition Type:    Apple_HFS
Bootable:          Is bootable
Media Type:        Generic
Protocol:          ATA
SMART Status:      Verified
UUID:              CDCDFBA1-EF2C-39FA-998B-94C63B8F23E1

Total Size:        139.6 GB
Free Space:        0.0 B

Read Only:          No
Ejectable:          No
Device Location:    “B (lower)”

Note the “UUID” line.  Copy the UUID value.

3. Edit /etc/fstab – the “File System Table”.

his file may not exist, so, you’ll be creating it from scratch.  You can read the fstab man page for more info, but the idea is this: the system looks to this file to gather mount options for disks.  Since OS X doesn’t guarantee assigning the same device id to the same disk each boot, we need to tell the system to use the same mount options for a particular UUID.  The option we need to pass is the ‘noauto’ flag.  Here’s the /etc/fstab entry for the disk in question:

# fstab
# Created 28 March 2006
# Ed Marczak

# Identifier, mount point, fs type, options, dump order, check order

This is for HFS
UUID=CDCDFBA1-EF2C-39FA-998B-94C63B8F23E1 none hfs rw,noauto 0 0

This is for NTFS

UUID=CDCDFBA1-EF2C-39FA-998B-94C63B8F23E1 none ntfs rw,noauto 0 0

UUID= (Insert your drive’s exact UUID here) none ntfs ro,noauto 0 0

For FAT32 formatted drives, replace “ntfs” with “msdos”. Exit and save with ctrl+x (it will prompt you to save the changes).

4. Reboot, and you’ll see that the partition in question hasn’t mounted.

Posted in OSX | Comments Off

Enable Single Application Mode in Mac OS X

What is Single Application mode?

Single Application Mode is a way to force Mac OS X to show only the application that is currently in use, all other open applications and windows will be minimized into the Dock. Selecting another application from the Dock will then minimize the current application, and the new selection becomes the only thing on screen. I have heard this feature was originally intended for presentation purposes when showing off Mac OS X, but it’s actually a handy way to avoid distractions and maximize screen space on smaller resolution displays.

How to enable Single Application mode in Mac OS X

Enabling this feature is done through the command line, so launch the Terminal then enter the following commands exactly:

defaults write com.apple.dock single-app -bool true

For this to take effect, you now must kill the Dock:

killall Dock

You can reverse single application mode and get back to multiple application mode easily by changing the original command as follows:

defaults write com.apple.dock single-app -bool false

and again, killing the Dock:

killall Dock
Posted in OSX | Comments Off

Take a screen capture from the command line

Taking screenshots from the command line is made easy, thanks to a utility included in Mac OS X called screencapture. Here’s how to use it:
screencapture test.jpgThe screen capture will then appear in the directory that the command was executed.

There are more advanced features to the screencapture utility though, here’s a few examples.

Open the screencapture in Preview immediately after being taken:
screencapture -P test.jpg

Take screenshots silently, with no sound playing:
screencapture -x silentscreenshot.jpg

Delay when the screenshot is taken by using the -T flag followed by seconds:
screencapture -T 3 delayedpic.jpg

Specify a file type for the screenshot (most major image formats are supported: JPG, PNG, PDF, etc):
screencapture -t pdf pdfshot.pdf

Like most other terminal commands, you can combine the flags together and do all of the above at once:
screencapture -xt pdf -T 4 pic.jpg

To see a full list of screencapture options, use the -h flag:
screencapture -h

Posted in Unix | Comments Off

Compare two directories contents on your Mac using diff

If you want to see the difference between two folders on a Mac, launch the Terminal and read on. Using the command line tool ‘diff’ you can easily compare the contents of any two directories, here’s the command we’ll use to achieve this:

diff -rq directory1 directory2 >> differences.txt

This executes the diff command comparing directory1 and directory2 (if you have a folder with a space in the file name, just put it in quotes like so: “folder one”), and then redirects the output of that command to a file named differences.txt. Here’s an example and how the actual printout will look:
diff -rq "old music" "new music" >> musicfolders.txt
Now look in the present working directory for the file you just created via outputting the diff command, in this case the file is musicfolders.txt and the contents can be viewed in any text editor, command line or otherwise. Opening the text file you’ll see something like this:
Only in old music: song1.mp3
Only in old music: song2.mp3
Only in old music: song3.mp3
Only in new music: instrumental1.mp3
Only in new music: instrumental1.mp3

If you want to view the file from the command line, try:
more musicfolders.txt
Otherwise just navigate to the containing directory and open it in your favorite text editor. If you’d prefer not to create a text file with the changes, just leave off the output redirection of the command. You might want to pipe the output to something like ‘more’ to make it easier to scan though:
diff -rq "old music" "new music" | more

It’s worth mentioning that this command will work in Mac OS X as well as most Unix based OS’s.

Posted in Unix | Comments Off

Mac OS X keyboard shortcuts

Here are the modifier key symbols you can see in Mac OS X menus:

Command key icon (Command key) – On some Apple keyboards, this key also has an Apple logo (apple<br />
logo)
Control key icon (Control key)
Option or Alt key icon (Option key) – “Alt” may also appear on this key
Shift icon (Shift key)
Caps lock icon (Caps Lock) – Toggles Caps Lock on or off
fn (Function key)

Startup keyboard shortcuts

Press the key or key combination until the expected function occurs/appears (for example, hold Option during startup until Startup Manager appears, or Shift until “Safe Boot” appears). Tip: If a startup function doesn’t work and you use a third-party keyboard, connect an Apple keyboard and try again.

Option Display all bootable volumes (Startup Manager)
Shift Perform Safe Boot (start up in Safe Mode)
C Start from a bootable disc (DVD, CD)
T Start in FireWire target disk mode
N Start from NetBoot server
X Force Mac OS X startup (if non-Mac OS X startup volumes are present)
Command-V Start in Verbose Mode
Command-S Start in Single User Mode

See also: Startup key combinations for Intel-based Macs.


Finder keyboard shortcuts

Command-A Select all items in the front Finder window (or desktop if no window is open)
Option-Command-A Deselect all items
Shift-Command-A Open the Applications folder
Command-C Copy selected item/text to the Clipboard
Shift-Command-C Open the Computer window
Command-D Duplicate selected item
Shift-Command-D Open desktop folder
Command-E Eject
Command-F Find any matching Spotlight attribute
Shift-Command-F Find Spotlight file name matches
Option-Command-F Navigate to the search field in an already-open Spotlight window
Shift-Command-G Go to Folder
Shift-Command-H Open the Home folder of the currently logged-in user account
Command-I Get Info
Option-Command-I Show Inspector
Control-Command-I Get Summary Info
Shift-Command-I Open iDisk
Command-J Show View Options
Command-K Connect to Server
Shift-Command-K Open Network window
Command-L Make alias of the selected item
Command-M Minimize window
Option-Command-M Minimize all windows
Command-N New Finder window
Shift-Command-N New folder
Option-Command-N New Smart Folder
Command-O Open selected item
Shift-Command-Q Log Out
Option-Shift-Command-Q Log Out immediately
Command-R Show original (of alias)
Command-T Add to Sidebar
Shift-Command-T Add to Favorites
Option-Command-T Hide Toolbar / Show Toolbar in Finder windows
Shift-Command-U Open Utilities folder
Command-V Paste
Command-W Close window
Option-Command-W Close all windows
Command-X Cut
Option-Command-Y Slideshow (Mac OS X 10.5 or later)
Command-Z Undo / Redo
Command-1 View as Icon
Command-2 View as List
Command-3 View as Columns
Command-4 View as Cover Flow (Mac OS X 10.5 or later)
Command-, (Command and the comma key) Open Finder preferences
Command-` (the Grave accent key–above Tab key on a US English keyboard layout) Cycle through open Finder windows
Command-Shift-? Open Mac Help
Option-Shift-Command-Esc (hold for three seconds) – Mac OS X v10.5, v10.6 or later only Force Quit front-most application
Command-[ Back
Command-] Forward
Command-Up Arrow Open enclosed folder
Control-Command-Up Arrow Open enclosed folder in a new window
Command-Down Arrow Open highlighted item
Command-Tab Switch application–cycle forward
Shift-Command-Tab Switch application–cycle backward
Command-Delete Move to Trash
Shift-Command-Delete Empty Trash
Option-Shift-Command-Delete Empty Trash without confirmation dialog
Spacebar (or Command-Y) Quick Look (Mac OS X 10.5 or later)
Command key while dragging Move dragged item to other volume/location (pointer icon changes while key is held–see this article)
Option key while dragging Copy dragged item (pointer icon changes while key is held–see this article)
Option-Command key combination while dragging Make alias of dragged item (pointer icon changes while key is held–see this article)

 

Application and other Mac OS X keyboard commands 

Note: Some applications may not support all of the below application key combinations.

Command-Space Show or hide the Spotlight search field (if multiple languages are installed, may rotate through enabled script systems)
Control-A Move to beginning of line/paragraph
Control-B Move one character backward
Control-D Delete the character in front of the cursor
Control-E Move to end of line/paragraph
Control-F Move one character forward
Control-H Delete the character behind the cursor
Control-K Delete from the character in front of the cursor to the end of the line/paragraph
Control-L Center the cursor/selection in the visible area
Control-N Move down one line
Control-O Insert a new line after the cursor
Control-P Move up one line
Control-T Transpose the character behind the cursor and the character in front of the cursor
Control-V Move down one page
Option-Delete Delete the word that is left of the cursor, as well as any spaces or punctuation after the word
Option-Command-Space Show the Spotlight search results window (if multiple languages are installed, may rotate through keyboard layouts and input methods within a script)
Command-Tab Move forward to the next most recently used application in a list of open applications
Shift-Command-Tab Move backward through a list of open applications (sorted by recent use)
Shift-Tab Navigate through controls in a reverse direction
Control-Tab Move focus to the next grouping of controls in a dialog or the next table (when Tab moves to the next cell)
Shift-Control-Tab Move focus to the previous grouping of controls
Command-esc Open Front Row (if installed)
Option-Eject Eject from secondary optical media drive (if one is installed)
Control-Eject Show shutdown dialog
Option-Command-Eject Put the computer to sleep
Control-Command-Eject Quit all applications (after giving you a chance to save changes to open documents), then restart the computer
Control Option-Command-Eject Quit all applications (after giving you a chance to save changes to open documents), then shut down the computer
fn-Delete Forward Delete (on portable Macs’ built-in keyboard)
Control-F1 Toggle full keyboard access on or off
Control-F2 Move focus to the menu bar
Control-F3 Move focus to the Dock
Control-F4 Move focus to the active (or next) window
Shift-Control-F4 Move focus to the previously active window
Control-F5 Move focus to the toolbar.
Control-F6 Move focus to the first (or next) panel
Shift-Control-F6 Move focus to the previous panel
Control-F7 Temporarily override the current keyboard access mode in windows and dialogs
F9 Tile or untile all open windows
F10 Tile or untile all open windows in the currently active application
F11 Hide or show all open windows
F12 Hide or display Dashboard
Command-` Activate the next open window in the frontmost application
Shift-Command-` Activate the previous open window in the frontmost application
Option-Command-` Move focus to the window drawer
Command- – (minus) Decrease the size of the selected item
Command-{ Left-align a selection
Command-} Right-align a selection
Command-| Center-align a selection
Command-: Display the Spelling window
Command-; Find misspelled words in the document
Command-, Open the front application’s preferences window (if it supports this keyboard shortcut)
Option-Control-Command-, Decrease screen contrast
Option-Control-Command-. Increase screen contrast
Command-? Open the application’s help in Help Viewer
Option-Command-/ Turn font smoothing on or off
Shift-Command-= Increase the size of the selected item
Shift-Command-3 Capture the screen to a file
Shift-Control-Command-3 Capture the screen to the Clipboard
Shift-Command-4 Capture a selection to a file
Shift-Control-Command-4 Capture a selection to the Clipboard
Command-A Highlight every item in a document or window, or all characters in a text field
Command-B Boldface the selected text or toggle boldfaced text on and off
Command-C Copy the selected data to the Clipboard
Shift-Command-C Display the Colors window
Option-Command-C Copy the style of the selected text
Control-Command-C Copy the formatting settings of the selected item and store on the Clipboard
Option-Command-D Show or hide the Dock
Command-Control-D Display the definition of the selected word in the Dictionary application
Command-D Selects the Desktop folder in Open and Save dialogs
Selects “Don’t Save” in dialogs that contain a Don’t Save button, in Mac OS X v10.6.8 and earlier
Command-Delete Selects “Don’t Save” in dialogs that contain a Don’t Save button, in OS X Lion
Command-E Use the selection for a find
Command-F Open a Find window
Option-Command-F Move to the search field control
Command-G Find the next occurrence of the selection
Shift-Command-G Find the previous occurrence of the selection
Command-H Hide the windows of the currently running application
Option-Command-H Hide the windows of all other running applications
Command-I Italicize the selected text or toggle italic text on or off
Option-Command-I Display an inspector window
Command-J Scroll to a selection
Command-M Minimize the active window to the Dock
Option-Command-M Minimize all windows of the active application to the Dock
Command-N Create a new document in the frontmost application
Command-O Display a dialog for choosing a document to open in the frontmost application
Command-P Display the Print dialog
Shift-Command-P Display a dialog for specifying printing parameters (Page Setup)
Command-Q Quit the frontmost application
Command-S Save the active document
Shift-Command-S Display the Save As dialog
Command-T Display the Fonts window
Option-Command-T Show or hide a toolbar
Command-U Underline the selected text or turn underlining on or off
Command-V Paste the Clipboard contents at the insertion point
Option-Command-V Apply the style of one object to the selected object (Paste Style)
Option-Shift-Command-V Apply the style of the surrounding text to the inserted object (Paste and Match Style)
Control-Command-V Apply formatting settings to the selected object (Paste Ruler Command)
Command-W Close the frontmost window
Shift-Command-W Close a file and its associated windows
Option-Command-W Close all windows in the application without quitting it
Command-X Remove the selection and store in the Clipboard
Command-Z Undo previous command (some applications allow for multiple Undos)
Shift-Command-Z Redo previous command (some applications allow for multiple Redos)
Control-Right Arrow Move focus to another value or cell within a view, such as a table
Control-Left Arrow Move focus to another value or cell within a view, such as a table
Control-Down Arrow Move focus to another value or cell within a view, such as a table
Control-Up Arrow Move focus to another value or cell within a view, such as a table
Command-Right Arrow Move the text insertion point to the end of the current line
Command-Left Arrow Move the text insertion point to the beginning of the current line
Command-Down Arrow Move the text insertion point to the end of the document
Command-Up Arrow Move the text insertion point to the beginning of the document
Shift-Command-Right Arrow Select text between the insertion point and the end of the current line (*)
Shift-Command-Left Arrow Select text between the insertion point and the beginning of the current line (*)
Shift-Right Arrow Extend text selection one character to the right (*)
Shift-Left Arrow Extend text selection one character to the left (*)
Shift-Command-Up Arrow Select text between the insertion point and the beginning of the document (*)
Shift-Command-Down Arrow Select text between the insertion point and the end of the document (*)
Shift-Up Arrow Extend text selection to the line above, to the nearest character boundary at the same horizontal location (*)
Shift-Down Arrow Extend text selection to the line below, to the nearest character boundary at the same horizontal location (*)
Shift-Option-Right Arrow Extend text selection to the end of the current word, then to the end of the following word if pressed again (*)
Shift-Option-Left Arrow Extend text selection to the beginning of the current word, then to the beginning of the following word if pressed again (*)
Shift-Option-Down Arrow Extend text selection to the end of the current paragraph, then to the end of the following paragraph if pressed again (*)
Shift-Option-Up Arrow Extend text selection to the beginning of the current paragraph, then to the beginning of the following paragraph if pressed again (*)
Control-Space Toggle between the current and previous input sources
Option-Control-Space Toggle through all enabled input sources
Option-Command-esc Force Quit

(*) Note: If no text is selected, the extension begins at the insertion point. If text is selected by dragging, then the extension begins at the selection boundary. Reversing the direction of the selection deselects the appropriate unit.


Universal Access - VoiceOver keyboard commands

For information about VoiceOver key combination differences in Mac OS X v10.6, see this article.

Command-F5 or
fn Command-F5
Turn VoiceOver on or off
Control Option-F8 or
fn Control Option-F8
Open VoiceOver Utility
Control Option-F7 or
fn Control Option-F7
Display VoiceOver menu
Control Option-;
or fn Control Option-;
Enable/disable VoiceOver Control Option-lock
Option-Command-8 or
fn Command-F11
Turn on Zoom
Option-Command-+ Zoom In
Option-Command- – (minus) Zoom Out
Option-Control-Command-8 Invert/revert the screen colors
Control Option-Command-, Reduce contrast
Control Option-Command-. Increase contrast

Note: You may need to enable “Use all F1, F2, etc. keys as standard keys” in Keyboard preferences for the VoiceOver menu and utility to work.


Universal Access – Mouse Keys

When Mouse Keys is turned on in Universal Access preferences, you can use the keyboard or numeric keypad keys to move the mouse pointer. If your computer doesn’t have a numeric keypad, use the Fn (function) key.

8 Move Up
2 Move Down
4 Move Left
6 Move Right
1 Move Diagonally Bottom Left
3 Move Diagonally Bottom Right
7 Move Diagonally Top Left
9 Move Diagonally Top Right
5 Press Mouse Button
0 Hold Mouse Button
. (period on number pad) Release Hold Mouse Button
Posted in OSX | Comments Off

How to use the Screen Recorder on a Mac

screen recorder mac

If you need to record screen activity on a Mac, you don’t need to download any additional software because the functionality is built directly into Mac OS X.

Using the Screen Recorder in Mac OS X

The screen recorder function is included with QuickTime Player in Mac OS X 10.6 and later, meaning it’s free and doesn’t require any downloads. Here’s how to use it:

  • Launch QuickTime Player (located in /Applications/)
  • Pull down the File menu and select “New Screen Recording”

screen recording mac

  • Press the Red button to start recording the screen activity
  • To stop recording, either press the Stop Recording button in the menubar, or hit Command+Control+Escape
  • Once the recording is stopped, the capture is automatically opened in QuickTime Player as “Screen Recording.mov” which you can then save and use as you’d like

QuickTime Player gets out of the way when you are recording the screen so that the activity is not obstructed by the application, this is also why it’s best to just use the keyboard shortcut to halt the screen recorder.

Posted in OSX | Comments Off

Show Print History in Mac OS X

show mac print history

You can check your entire print history in Mac OS X by accessing the browser based CUPS utility. Here’s how:

  • Launch your web browser (Like Safari and Chrome)
  • In the address bar type in: http://localhost:631
  • Click on “Jobs” in the menu
  • Now click “Show Completed Jobs” to display your Macs print history

You’ll now see the printer, name of the file that was printed, the user who completed the print job, size of the printed document, the number of pages, and the date of the printed file completion or attempt.

If you are looking for a specific event, you can use the “Search in Jobs” search engine to find a file. You can also select “Show All Jobs” to see everything you’ve printed or attempted to print, even if it failed.

CUPS stands for Common UNIX Printing System and is an open source printing system developed by Apple for Mac OS X and other UNIX based operating systems. The web based CUPS tool is a great way to troubleshoot misbehaving printers.

While we’re on the topic of printers, if you haven’t yet, you can make any printer AirPrint compatible by using a third party tool. Without this tool, AirPrint wireless printing is limited to a select few printers.

Posted in OSX | Comments Off

Stop the iPhone from opening iPhoto

It should be noted that this solution only works on Mac OS X 10.6 Snow Leopard. If you are running 10.5 or earlier, you’ll have to use one of the solutions noted above; we recommend the free Cameras preference pane as a quick fix.

You’ll see the image above is of iPhoto’s preferences. You may think the option of disabling iPhone auto-open is in there, but it’s not. To stop the iPhone from opening iPhoto you actually need to launch the Image Capture application.

Step 1: Launch Image Capture (Applications>Image Capture). If your iPhone isn’t plugged in already, plug it in to the USB port on your Mac. It should then show up in the devices source list.

Step 2: Make sure you have the iPhone selected in the source list. When you do, you should see any photos you have on the iPhone appear in the right-hand column of the Image Capture application.

Step 3: At the bottom of the source list, you’ll see your iPhone’s name then, below that, you’ll see the words “Connecting this iPhone opens:” and a drop-down menu. Select “No application.” Now close the Image Capture app and you’re done. No more iPhone opening up iPhoto, but your other cameras will still auto-launch iPhoto when they are connected!

Posted in Iphone | Comments Off

Disable Mac OS X Lion Resume & App Window Restore Completely

Disable App Resume in Mac OS X Lion

If manually deleting specific apps saved Resume states is too tedious for you, you can always choose to just disable the Resume and App Restore feature completely in Mac OS X 10.7.

  • Launch System Preferences and click on the “General” icon
  • At the bottom of the “Number of recent items” list, uncheck the checkbox next to “Restore windows when quitting and re-opening apps”

This is a sweeping change that impacts all applications and the Finder itself, meaning all apps will no longer save their previous state, including when you reboot your Mac.

Considering that Resumes is genuinely useful, plus it’s one of the snazzier new features that is heavily boasted about in OS X Lion, this should not be considered a recommended adjustment for everyone.
Disable Mac OS X Lion Resume feature

Posted in Lion | Comments Off

Adjust a Mac Apps CPU Priority with Process Renicer – Make your App Run Faster

mac-process-renice

As most modern OS’s go, Mac OS X is generally pretty intelligent with how it prioritizes processes. That said, if you want to give any running task an extra kick in the pants, you can use a free tool called Process Renicer. Launching the app gives you a task manager of sorts where you can double-click on any running process and then adjust it’s “nice” value to increase it’s CPU priority. The app is basically just a GUI frontend to the command line tool ‘renice’ which is generally for advanced users.

Giving any task a lower nice value will up it’s priority, and giving it a higher nice value will lower it’s CPU priority. This sounds paradoxical, but that’s just the way it works.

Most users won’t need an app like this, but if you want to push along a video conversion for your iPhone or something similar, you can do so. Remember that if you adjust the nice process downward dramatically, your CPU load is going to go through the roof and ignite your fans.

 

Download from here: 

Posted in OSX | Comments Off

Enable and Disable AirPort Wireless from the Command Line in Mac OS X

Sometimes the easiest fix when troubleshooting an AirPort wireless connection problem is to just turn AirPort on and off. Instead of using the menu item or System Preferences, we can enable and disable AirPort very quickly directly from the Mac OS X Terminal.

Turn Airport Off via Command Line
networksetup -setairportpower airport off

Turn Airport On via Command Line
networksetup -setairportpower airport on

You won’t see any confirmation in the Terminal that the command succeeded or failed, but if you watch the AirPort menu icon you will see the bars disappear indicating the wireless interface is turned off, or reappear indicating that wireless is activated again.

We can also string the commands one after the other to power cycle the wireless interface on a Mac:

Quickly Power Cycle AirPort with Mac OS X’s networksetup Tool
networksetup -setairportpower airport off; networksetup -setairportpower airport on

The AirPort wireless card seems to respond faster to the command line networksetup tool than any other method, making this an ultrafast method of power cycling the wireless interface. This is often enough to resolves basic wireless router connectivity issues like IP conflicts or malfunctioning DHCP requests.

I have enough regular encounters with one particularly flakey router that I created an alias to power cycle my AirPort card, you can do this by adding the following to your .bash_profile just be sure it is on one line:

alias airportcycle='networksetup -setairportpower airport off; networksetup -setairportpower airport on'

Now like any other alias, you only type ‘airportcycle’ and the wireless interface will immediately turn itself off and on again.

Disabling and reenabling AirPort is not the same as connecting to a wireless network from the command line, although you can do that too also by using the networksetup tool.

Posted in OSX | Comments Off