Category: Apple

  • Removing certain text in multiple filenames in OS X

    , ,

    I had a large number of ebooks that looked like the following: Walter%20Isaacson%20-%20Einstein_His%20Life%20And%20Universe.mobi And because I’m lazy, I looked for an automated way to clean all of them up.  This is how: 1. Back up all your files in another directory2. Launch terminal3. Go to the directory you’d like to perform the changes4. Type: for…

  • Restarting a frozen Dock in OS X Lion

    Open Applications > Utilities > Terminal > type killall Dock. Voila!

  • Pretty-print XML or jSon via the Terminal in OS X

    ,

    Simply copy the jSon or XML into your clipboard and then run one of the following: pbpaste | python -m json.tool > formatted.json For XML: pbpaste | xmllint –format – > formatted.xml

  • Mounting network folders using SSH on OS X Lion

    ,

    It’s easy as clapping your hands! Just get Macfusion and use the GUI to mount to any *nix-based systems.

  • Fix for soapUI freezing on Mac OS X Lion

    soapUI-Pro-4.5.1 kept on freezing on me intermittently on my MacBook Pro.  The cause of the problem is the jxbrowser browser component.  To fix it, do the following: Close/kill soapUI /Applications/SmartBear/soapUI-Pro-4.5.1.app > Show Package Contents Edit /Applications/SmartBear/soapUI-Pro-4.5.1.app/Contents/Resources/app/bin/soapui-pro.sh Uncomment "JAVA_OPTS="$JAVA_OPTS -Dsoapui.jxbrowser.disable=true" Start soapUI Hope this helps.

  • Add color to iTerm and terminal on OS X Lion

    ,

    1. Add the following to your .bash_profile: # Enables color in the terminal bash shell exportCLICOLOR=1# Sets up the color scheme for list exportLSCOLORS=gxfxcxdxbxegedabagacad# Sets up the prompt color (currently a green similar to linux terminal)export PS1=’\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ ‘# Enables color for iTermexport TERM=xterm-color# Sets up proper alias commands when calledalias ls=’ls -G’alias ll=’ls -hl’ 2.…