MAMP optimizations

18 May

“Optimizations” in the sense that you’ll have to do less work.  This website gives some great tips on saving you some time using MAMP. http://www.sitepen.com/blog/2008/05/16/supercharge-mamp/ This site below actually helped me with the silent MAMP startup.  Read the comments on this page for updates on getting it to work with version 2.  It’s so good [...]

git move files

11 May

Problem I added and pushed a bunch of files into my repository, but now I need to put it into a subfolder.   Solution Git is smart and will find the files you moved.  Do the following: $ mkdir newFolder $ mv oldFolder newFolder $ git rm -r oldFolder $ git add newFolder source:  http://stackoverflow.com/questions/3900805/git-command-to-move-a-folder-inside-another [...]

Firefox Table Row Height

30 Apr

Problem In Firefox and Chrome, having a table with an image of height 1 causes the row height to be 6px.   Code as shown below:   <table height=”1″> <tr> <td><img src=”images/spacer.gif” width=”170″ height=”1″ alt=””></td> <td><img src=”images/spacer.gif” width=”163″ height=”1″ alt=””></td> <td><img src=”images/spacer.gif” width=”334″ height=”1″ alt=””></td> <td><img src=”images/spacer.gif” width=”153″ height=”1″ alt=””></td> <td><img src=”images/spacer.gif” width=”180″ height=”1″ alt=””></td> [...]

jQuery add table row

21 Apr

Problem How do you add a table row using jQuery?  A table has so many different elements in it that things might get screwy.   Solution There is no one statement-to-use-on-all, but the below line is a pretty general answer and should solve your needs even when there are no table rows: $(‘#myTable > tbody:last’).append(‘<tr>…</tr><tr>…</tr>’); [...]

git couldn’t resolve proxy null

13 Apr

Problem: I keep getting this error: “Couldn’t resolve proxy ‘(null) …”. I googled so hard!   Solution: Thank you to someone who just plainly answers my question.  You just have to unset http.proxy and possibly https.proxy! git config –global –unset http.proxy searched: proxy connect aborted while accessing git Thanks to: http://stackoverflow.com/questions/5102361/pull-command-error-failed-connect-to-github-com8080

Media Uploader Crunching Issue

10 Apr

Problem Wordpress has a bug.  When uploading an image (even a small,  1KB image) the Media uploader stalls and freezes in when Crunching is 100%.   This problem happens in both the flash and html uploader.  In the HTML uploader you can see a 500 Internal Server Error.   Solution There are 2 different problems [...]

WordPress Deactive Plugin

5 Apr

Problem I had a wordpress site where the public side was fine, but the admin side was throwing a Internal Server Error 500 intermittently.   I couldn’t figure out what was wrong since I had done no changes, and my host said nothing was wrong with the server.  To solve mysterious crashing errors in WordPress, the [...]

Page Speed SEO

4 Apr

One of the metrics for Search Engine Optimization is the time it takes to load a page.  With Google’s PageSpeed tool, you can see if your page is loading optimally.  One of the ways to better your page loading is by leveraging browser cache.  The article below explains it well.  What I did was a [...]