http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-9-mavericks/
phpmyadmin Cannot log in to the MySQL server
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
# your svn folder should be at root like /svn | |
# to use at your terminal : bash migrate.sh OLD_SVN_URL REPO_NAME | |
# e.g. : bash migrate.sh http://foo/svn bar | |
export OLD_SVN_URL=$1 | |
export REPO_NAME=$2 | |
cd /svn | |
svnadmin create ${REPO_NAME} | |
chown -R apache.apache ${REPO_NAME} | |
cd /svn/${REPO_NAME}/hooks |
#template for SVN config /etc/httpd/conf/extra/httpd-svn.conf | |
#svn folder must be at root tho | |
#try | |
#service httpd restart | |
#when done | |
LoadModule dav_svn_module /usr/lib/apache/mod_dav_svn.so | |
LoadModule authz_svn_module /usr/lib/apache/mod_authz_svn.so | |
<IfModule dav_svn_module> |
#dump.sh | |
#how to use : bash dump.sh your-old-repos-folder-name-go-here | |
svnadmin dump $1 > $1.svn_dump | |
#undump.sh | |
#how to use : bash undump.sh your-old-repos-folder-name-go-here | |
export REPO=$1 | |
svnadmin create ${REPO} | |
chown -R apache.apache ${REPO}/ |
import UIKit | |
class EMCollectionViewFlowLayout: UICollectionViewFlowLayout { | |
override func targetContentOffsetForProposedContentOffset(proposedContentOffset: CGPoint, withScrollingVelocity velocity: CGPoint) -> CGPoint { | |
var _proposedContentOffset = CGPoint(x: proposedContentOffset.x, y: proposedContentOffset.y) | |
var offSetAdjustment: CGFloat = CGFloat.max | |
let horizontalCenter: CGFloat = CGFloat(proposedContentOffset.x + (self.collectionView!.bounds.size.width / 2.0)) | |
let targetRect = CGRect(x: proposedContentOffset.x, y: 0.0, width: self.collectionView!.bounds.size.width, height: self.collectionView!.bounds.size.height) |
# Refer to https://github.com/jxcore/jxcore/blob/master/doc/HOW_TO_COMPILE.md | |
# Install brew first (Ruby should already there) | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# GCC 4.2 or newer (for SpiderMonkey builds 4.7+) | |
brew install gcc | |
# Python 2.6 or 2.7 | |
brew install python | |
# GNU Make 3.81 or newer (Not sure on this one, should be already come with xcode build tool?) | |
xcode-select --install | |
# libexecinfo (FreeBSD and OpenBSD only) |
# to fix... | |
# Can’t locate loadable object for module SVN::_Core in @INC | |
# try | |
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/SVN /System/Library/Perl/Extras/5.18/SVN | |
# and | |
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN/ /System/Library/Perl/Extras/5.18/auto/SVN |
package | |
{ | |
import flash.desktop.InvokeEventReason; | |
import flash.desktop.NativeApplication; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.events.HTTPStatusEvent; | |
import flash.events.IOErrorEvent; | |
import flash.events.InvokeEvent; | |
import flash.events.ProgressEvent; |
// 2015/07/22 | |
// nav to | |
https://www.facebook.com/v2.3/plugins/like.php?layout=button&locale=en_US&sdk=joey&share=false&show_faces=false&href=https%3A%2F%2Fm.facebook.com%2FHealthyPetZociety | |
// then console | |
window.getComputedStyle($(".pluginConnectButtonConnected")).display == "inline-block" |
http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-9-mavericks/
phpmyadmin Cannot log in to the MySQL server
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
php_value max_execution_time 6000000 | |
php_value memory_limit 128M |