MacBook AppleTV AirPlay and Error -15006

If you run into Error -15000 or Error -15006 when using iTunes to stream to your AppleTV, you should try turning off IPv6. Whether on WiFi or Ethernet, it doesn't matter. Use the following two commands in your terminal to turn off IPv6 as Mac OSX 10.7 (Lion) nor 10.8 (Mountain Lion) give you this option in the Network TCP/IP settings.

networksetup -listallnetworkservices # this will list out the network interface names
networksetup -setv6off Ethernet # or Wi-Fi ... this will turn off IPv6 for the interface

Common Power Amp Resistance Watt Formulas

P is Power, also known as Volts, also known as Electromotive Force (EMF).
I is Resistance, measured in Ohms
E is Amps, also known as Current
W is Watts, the multiplication of Power and Amperes.
kW is kilo-Watts, also known as 1000 Watts
kWh is kilo-Watt Hours, which is how many Watts are used in 60 minutes.

P = W / E
I = P / E
E = W / P
W = P * E

Alternatively:

Volts = Watts / Amps
Ohms = Power / Amps
Amps = Watts / Volts
Watts = Power * Amps

Use mogrify to rotate and scale your images on the Linux command line

First, make sure you have ImageMagick installed:

#Ubuntu/Debian
sudo apt-get install imagemagick

#RedHat, Fedora, CentOS
sudo yum install imagemagick

After that, it's super easy.

mogrify -resize 800 -rotate 90 image.jpg

The above command would resize image.jpg to 800 pixels wide maintaining aspect ratio and rotate the image 90 degrees clockwise.

To define your own dimensions (discarding aspect ratio) use the following: