Wednesday, May 27, 2015

Step by Step Install / Uninstall JDK 8 on OS X Yosemite

Step by Step Setup / Install of Java SE Development Kit 8 on OS X Yosemite

Download the Java SE Development Kit 8
Open Browser and proceed to Oracle's Java SE Downloads page

Click JDK DOWNLOAD button to goto the Java SE Development Kit 8 Downloads page
You must accept the Oracle Binary Code License Agreement for Java SE to enable links for downloading the JDKs.
Select the Accept License Agreement radio button and then will be prompted the message: Thank you for accepting the Oracle Binary Code License Agreement for Java SE; you may now download this software. You are now ready to download the binaries by clicking the corresponding Download link e.g. jdk-8u60-macosx-x64.dmg


Install Java SE Development Kit 8
Open the installer by double-clicking the downloaded Apple Disk Image file e.g jdk-8u60-macosx-x64.dmg










Double-click the pkg icon e.g. JDK 8 Update 60.pkg icon to start installation.















You will be prompted with Welcome to the JDK 8 Update Installer screen. Press the Continue button.
















You will then be prompted with the start of the installation confirmation screen. Press Install button.
















You will be prompted to enter administrator credentials in order to continue with the installation. Enter Password and press Install Software button to continue with the installation.













Follow installation instructions and press Close when 















You will be prompted with the installation was completed successfully screen and press Close button to finish installation. 















Once completed, set environment via ~/.bash_profile

$ export set JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
 
 

Verify Installed JDK
Verify installed JDK via java -version command.
 
$ java -version
 
java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
 

Uninstall an existing JDK
List installed Java Virtual Machines via ls command

$ ls /Library/Java/JavaVirtualMachines
jdk1.8.0_51.jdk    jdk1.8.0_60.jdk



To uninstall an existing JDK, issue rm -rf /Library/Java/JavaVirtualMachines/jdkmajor.minor.macro[_update].jdk command for a specific jdk e.g jdk1.8.0_51.jdk
 
$ sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk
Password:*
 
 

Setup / Install Tomcat 8 on OS X Yosemite

#Download latest tomcat
 
#Create /usr/local 
sudo mkdir -p /usr/local
 
#Goto directory to /usr/local
cd /usr/local


#Extract downloaded tomcat from the /usr/local
tar -zxvf ./apache-tomcat-8.0.45.tar.gz 
sudo ln -s /usr/local/apache-tomcat-8.0.45 /Library/Tomcat 
 
#Remove existing tomcat directory
sudo rm -f /Library/Tomcat


#Create symbolic link for easier access
sudo chown -R  /Library/Tomcat
sudo chmod +x /Library/Tomcat/bin/*.sh
 
#configure gui admin for tomcat via /Library/Tomcat/conf/tomcat-users.xml include inside 
  
  
   
 
#Start tomcat from terminal
/Library/Tomcat/bin/startup.sh
 
#Stop tomcat from terminal
/Library/Tomcat/bin/shutdown.sh

Wednesday, April 1, 2015

Xcode Archive Validation : Potential Loss of Keychain Access

Potential Loss of Keychain Access. The previous version of software has an application-identifier value of 'XXXX.com.company' and the new version of software being submitted has an application-identifier of 'YYYYY.com.company'. This will result in a loss of keychain access.

Note: This is a warning, not an error. You have the option of proceeding with the submission regardless of this warning, however this document should be used to determine whether you can safely ignore it. This warning indicates that the App ID prefix of the pending submission differs from the App ID prefix of the live app in the app store.

Important: The only apps that can safely ignore this warning are those that do not use technologies that rely on the App ID prefix, like keychain access, Handoff, and UIPasteboard sharing.

Reference https://developer.apple.com/library/ios/qa/qa1726/_index.html

Monday, March 30, 2015

Error Domain=GKErrorDomain Code=15 Application is not recognized by Game Center

Error Domain=GKErrorDomain Code=15 "The requested operation could not be completed because this application is not recognized by Game Center." UserInfo=0x155cbe70.



On the Device. Goto Settings ->  Game Center -> Developer-> Enable Sandbox


Tuesday, February 17, 2015

SuperSU Installation Failed! Please reboot and try again.

Go to Developer Options, then Root access, then select Apps and ADB option.

Update SuperSU







Thursday, February 12, 2015

Configure your LAMP on Amazon Elastic Compute Cloud (EC2) Red Hat instance

Connect to your instance via ssh

ssh -i aws-xxx.pem ec2-user@x.x.x.x 

Update Red Hat 

[ec2-user ~]$ sudo yum update -y 

Install the Apache web server, MySQL, and PHP

[ec2-user ~]$ sudo yum groupinstall -y "Web Server" "MySQL Database" "PHP Support" 

Install the php-mysql package.

 [ec2-user ~]$ sudo yum install -y php-mysql 

Start the Apache web server.

[ec2-user ~]$ sudo service httpd start 
Starting httpd: [ OK ] 

Configure the Apache web server to start at each system boot.

[ec2-user ~]$ sudo chkconfig httpd on 

To set file permissions Add the www group to your instance.

[ec2-user ~]$ sudo groupadd www 

Add your user (in this case, ec2-user) to the www group.

[ec2-user ~]$ sudo usermod -a -G www ec2-user 

Log-out and log back in after above changes

[ec2-user ~]$ exit 

Verify your membership in the www group.

[ec2-user ~]$ groups
ec2-user adm wheel systemd-journal www

Change the group ownership of /var/www and its contents to the www group.

[ec2-user ~]$ sudo chown -R root:www /var/www 

Change the Directory permissions of /var/www and its subdirectories to add group write permissions and to set the group ID on future subdirectories.

[ec2-user ~]$ sudo chmod 2775 /var/www 
[ec2-user ~]$ find /var/www -type d -exec sudo chmod 2775 {} + 

Recursively change the File permissions of /var/www and its subdirectories to add group write permissions.
[ec2-user ~]$ find /var/www -type f -exec sudo chmod 0664 {} + 

Create a simple PHP file in the Apache document root.

[ec2-user ~]$ echo "" > /var/www/html/testphpinfo.php

View page


Wednesday, January 28, 2015

Photo Amp

Photo Amp, a great way to Amplify your Photos! With Photo Amp you can enhance your photos, apply effects, add memes, focus on specific subject and many more!