Change Paypal Credit as default payment setting for Paypal

Here are the instructions for changing to or from BillMeLater as your primary source. It would not let me be any more specific in my preferences than to either have Bill Me Later as my preferred method, or “other sources” as my preferred method.

  1. Hover over Profile and then click Money. (Not one of the options under Money. The actual word Money).
  2. On the My Money screen, to the far right of your Bill Me Later listing, click Update.
  3. On the upper right, there is a box called Manage Bill Me Later Account.
    –If Bill Me Later is currently your preferred method, click Change.
    –If Bill Me Later is not currently your preferred method, click “Make Bill Me Later My Preferred Payment Method.”
  4. Save your new settings.

Installing mcrypt on Mountain Lion

  • http://www.coolestguyplanettech.com/how-to-install-mcrypt-for-php-on-mac-osx-lion-10-7-development-server/
  • http://www.jorble.com/2013/04/install-php-mcrypt-in-macosx/
  • https://github.com/josegonzalez/homebrew-php/issues/104
  • https://github.com/josegonzalez/homebrew-php/issues/205

Mountain Lion 10.8.4 php mail does not work anymore

Went through hell to figure this one out…  had to also make sure the hostname was not a domain I hosted with google sites.

  • http://stackoverflow.com/questions/11696609/php-mail-no-longer-works-after-update-to-osx-mountain-lion
  • http://osxdaily.com/2010/09/06/change-your-mac-hostname-via-terminal/
  • http://stackoverflow.com/questions/2450589/php-mail-using-sendmail-on-mac-os-x-leopard-10-5-8
  • http://stackoverflow.com/questions/11696609/php-mail-no-longer-works-after-update-to-osx-mountain-lion
  • http://jspr.tndy.me/php-mail-and-osx-leopard/

 

 

Create SSH key for Hostgator to log in without password

  1. Local machine: ssh-keygen -t rsa
  2. Press <ENTER> for paraphrase and name it something like ~/.ssh/<othersiteusername>
  3. Local machine: ssh-copy-id -i ~/.ssh/newarkologic.pub <othersiteusername>@siteIP
  4. Remote machine: 
chmod go-w ~/
chmod 700 ~/.ssh 
chmod 600 ~/.ssh/authorized_keys 

http://superuser.com/questions/187779/too-many-authentication-failures-for-username
http://serverfault.com/questions/431046/why-cant-i-ssh-into-my-server-using-my-private-key

 

OS X Disk Utility to Repartition USB External Hard Drive but froze and Force Quit Disk Utility and Now Missing Disk Space

Had to use

fsck_hfs -r /dev/disk1s3 (disk1s3 is EXAMPLE only)

http://joshwink.wordpress.com/2009/08/02/os-x-repairing-an-external-usb-drive-that-wont-mount/

If you have an external USB drive, you have to unmount it first. You can find the name of drive by going to Disk Utility and Get Info on the partition.

linux-image-server depends on linux-image-3.2.0-36-generic the error message indicates its a followup error from a previous failure

Kept getting this message on my Ubuntu server because I skipped a kernel when upgrading due to no space left on my boot partition.

linux-image-server depends on linux-image-3.2.0-36-generic the error message indicates its a followup error from a previous failure

Finally got answer here.

http://askubuntu.com/questions/264331/failed-kernel-install-results-in-apt-and-dpkg-failure-due-to-dependencies-and-co

  1. cd /var/cache/apt/
  2. rm -fr archives
  3. sudo apt-get update
  4. sudo apt-get install -f
  5. sudo dpkg-reconfigure -a

 

Great way to debug in Knockout

http://www.knockmeout.net/2011/06/10-things-to-know-about-knockoutjs-on.html

https://groups.google.com/forum/?fromgroups=#!topic/knockoutjs/nTLoWIE97mE

<div data-bind=”text: ko.toJSON(viewModel.interestingPart)”></div>

<span data-bind=”visible: console.log($data) “></span>

<pre data-bind=”text: ko.toJSON($data, null, 2)”></pre>

console.group(“Dumping view model”); 
console.dir(ko.toJS(viewModel)); 
console.groupEnd(); 

Installing PHP 5.4 on Mac OS X

1. Install php 5.4 using MacPorts

  • sudo port install php54 php54-apache2handler
  • ./pecl install imagick from /usr/local/php5/bin
  • copy /usr/local/php5/bin/php to /usr/bin
  • add extension=imagick.so to php.ini

2. Comment out php5 module in http.conf

  • #LoadModule php5_module        libexec/apache2/libphp5.so 

 

  • which php
  • phpize

Rsync bypass password

http://ramblings.narrabilis.com/using-rsync-with-ssh

The thing to remember is that you need to copy the pub file to the same user home directory as you are using the command to ssh into remote server. If it's www-data, then it should be /var/www/.ssh directory.