Monday, July 14, 2014

7x7x7 Rubik's Cube Parity Case

This is the solution to the 7x7x7 Rubiks Cube Parity case

R  U2 
R  F2 
R  F2 
L  U2
L' U2 
R' U2 
R  U2 
R' U2 
R'

Yes, this is cryptic. I know. If you want more information, let me know.

Saturday, March 22, 2014

Install Oracle Java7 on Ubuntu

First, create a simple sh script for registering keys.
echo '#! /bin/sh' > regkey.sh
echo 'gpg --keyserver pgp.mit.edu --recv-keys $1' >> regkey.sh
echo 'gpg --export --armor $1 | sudo apt-key add -' >> regkey.sh
sudo chmod a+x regkey.sh
Now browse to the link below. Click on the Technical Details about the PPA link, and use the drop down box to find the links for your version:
https://launchpad.net/~webupd8team/+archive/java
I'm using Ubuntu 12.04, so mine are:
deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
Now append them to sources.list
echo 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' | sudo tee -a /etc/apt/sources.list
echo 'deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' | sudo tee -a /etc/apt/sources.list
Do an apt-get update:
sudo apt-get update
You should get an error message like:
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Grab the key from the end of the error message, and register it:
./regkey.sh C2518248EEA14886
You will see a response like the one below, grab that key and register it.
gpg: directory `/home/m/.gnupg' created
gpg: new configuration file `/home/m/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/m/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/m/.gnupg/secring.gpg' created
gpg: keyring `/home/m/.gnupg/pubring.gpg' created
gpg: requesting key EEA14886 from hkp server pgp.mit.edu
gpg: /home/m/.gnupg/trustdb.gpg: trustdb created
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
./regkey.sh EEA14886
Run the update again to make sure there are no more errors
sudo apt-get update
(This is optional!) Run an upgrade
sudo apt-get upgrade -y
Now you can run the Java installer:
sudo apt-get install oracle-java7-installer
# when prompted, agree to the conditions, congrats! You now have Oracle Java installed!

Droid Razr Maxx in Ubuntu

To get your Droid Razr Maxx to connect to an Ubuntu machine open the following files in a text editor
/etc/udev/rules.d/51-android.rules
/etc/udev/rules.d/52-mtp.rules
Then add the following line
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev"
Then restart the usb service
sudo service udev restart
On you droid go to Settings => Developer options and enable USB debugging.
Plug your phone in via USB cable, and it should work.