• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

mac os x

Load SSH key at startup for Mac OS X

February 5, 2013 by Webhead

If your ssh key is not adding and you continuously have to keep doing ssh-add -l ~/.ssh/mykey then do the following to add it to your keychain:

ssh-add -K ~/.ssh/mykey

 

source: http://stackoverflow.com/questions/1909651/svnssh-not-having-to-do-ssh-add-every-time-mac-os

keywords: mac osx ssh-add all the time

 

Filed Under: Coding Tagged With: git, linux, mac os x

MAMP – MySQL can’t connect after OS X Crash

September 4, 2012 by Webhead

Problem

I had my macbook open, it went to sleep and I couldn’t wake it up.  After holding down the powerbutton for over 10 seconds, it turned on.  Everything was fine until I tried to open the MAMP home page.  MySQL couldn’t start.  the error logs showed:

InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
120904 14:51:31 InnoDB: Unable to open the first data file
InnoDB: Error in opening ./ibdata1

Solution

Solution is to find the mysqlid process and end it.  Then restart MAMP and things should be good to go.  more details on this great post:

http://aralbalkan.com/1931

 

Another Problem

When visiting phpMyAdmin you get the following errors:

“Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.”

Another Solution

Clear your browser cache.

thanks to: http://stackoverflow.com/questions/5013118/cannot-start-session-without-errors-in-phpmyadmin

 

 

keywords: mamp check that you do not already have another mysqlid process

Filed Under: Server Stuff Tagged With: apache, linux, mac os x, mysql

Find large files on mac

July 9, 2012 by Webhead

Found a good article on how to find large files on the Mac OS X.  You can also save it as a smart folder so you can quickly see the largest files on your computer.

http://www.chriswrites.com/2012/02/10-tips-to-free-up-hard-drive-space-in-mac-os-x/

Filed Under: Random Thoughts Tagged With: mac os x

How to Remove CVS folders recursively in Terminal

June 29, 2012 by Webhead

In mac os x terminal (linux) you can navigate to the desired directory and run the following command to remove any specific file or folder.

find . -name CVS -exec rm -rf {} \;

Basically a “find” command can be concatenated with other commands so the same operation can be applied recursively to all the found results.

keywords: terminal remove all cvs folders
source: http://www.phinesolutions.com/remove-the-cvs-folders.html

Filed Under: Coding Tagged With: linux, mac os x

Convert Mac dfont files to TTF format

March 13, 2012 by Webhead

Windows only accepts TTF font files while Mac format’s their font into Dfont format.  This tool by Peter Upfold lets you convert those beautiful Mac fonts into windows format.  Then with your TTF fonts you can upload them to http://www.font2web.com/ or http://onlinefontconverter.com and make web fonts!

http://peter.upfold.org.uk/blog/2008/03/11/dfontsplitter-convert-dfont-files-to-ttf/

What to do about PostScript type files?

Say you thought you had a dfont file, dragged the file into the tool above and got an error saying it’s not the right format.  Well, Looking more into the file you’ll probably find that you have a PostScript Type 1 file.

What I did was go to http://www.adobe.com/type/opentype/Type1-2-OpenType.pdf and find the OpenType format of the font you want to convert.  Then go to somewhere like http://www.fontpalace.com/.  There you can download your font in OTF format and it can be used everywhere.

Filed Under: Tools Tagged With: html, mac os x, open source

Mac OS X Linux Stuff

September 15, 2011 by Webhead

Locations and commands on the Mac OS X vs any other Linux/Unix system are different.  Below are some of the locations and commands I ran across in setting up my macbook as a webserver.

apache2 is located in

/etc/apache2/

Along with the httpd.conf:

/etc/apache2/httpd.conf

By default apache2 logs are located at:

/var/log/apache2

By default files in the root directory are at:

/Library/WebServer/Documents/

To restart apache:

sudo /usr/sbin/apachectl restart

or

sudo apachectl -k restart

To Enable PHP, in httpd.conf remove the ‘#’ from this line:

#LoadModule php5_module        libexec/apache2/libphp5.so

Filed Under: Server Stuff Tagged With: apache, linux, mac os x, php

Primary Sidebar

Topics

apache apple block editor chrome cms css debug eCommerce embed firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery linux localization mac os x ms sql mysql open source optimize php php 5.3 responsive rest api seo svg tinymce woocommerce wordpress wpengine xss yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools