Recent Post

Categories

Archives

Cow Computing

10 Mar 3

Some Hidden Mac’s Tips (Terminal Cmd)

In this post, i would like to share a couple of hidden terminal command on mac to help unlocking some useful feature. To use these feature, simply type the command as if it’s shown on the terminal, andd there you go.

  1. Using current Screensaver as the Wallpaper. This can be gorgeous, however, depending on which screensaver you pick, it might take up some CPU & memory. (*To stop it, simple press “Ctrl+C”)
    /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background
    
  2. Enable hidden files/folders be shown on Finder. This is very useful in particular when you want to locate some important hidden files like “.ssh” or “.bash_rc”.
    // Change TRUE to FALSE to disable the effect
    defaults write com.apple.finder AppleShowAllFiles YES
    
    // Restart the finder to take effect
    killall Finder
  3. Enable the highlight effect on Stack (Highlight the icon when mouse hover)
    // Change yes to no to cancel the effect
    defaults write com.apple.dock mouse-over-hilte-stack -boolean yes
    
    // Restart the Dock to take effect
    killall Dock
  4. Read More / Comment »

10 Jan 16

Some Useful HotKey for Eclipse

If you develop heavily on Java, Eclipse definitely should be your primary programming tool (other than Text Editor).
To be more effective in coding, one must master the tools he/she uses. In terms of Eclipse, hotkey is one of the chapter which should be learnt. After sometimes, the hotkey usage will eventually speed up your coding.

Below are some common ones:

Ctrl + Shift + P // Go to the corresponding ending brace
Ctrl + Q // Go back to last edited location
Alt + Left/Right Arrow // Go to previous or next editor
Ctrl + I // Format code
Ctrl + 1 // Generate try/catch or do/if/while/for
Ctrl + / // Comment/Uncomment
F3 // Find Method
Ctrl + L // Go to line
Ctrl + Space // Toggle code assist
Ctrl + Shift + Space // Toggle arguments hints