You are here

J.B. Churchill's blog

Finding bugs with git bisect

I was looking around on stackexchange trying to figure out how to roll back some changes temporarily to see where this bug I have started. It is easy enough to just use git checkout and then see if it is fixed but when it goes back a ways, you could be checking out several old commits.

Mac OS X upgrade - localhost stopped running

I ran "apachectl configtest" and it reported "Syntax OK". but it was not running (any localhost page had an error). So I ran "sudo apachectl start" and now everything is good. I'm not sure whether this happened upgrading to Yosemite or El Capitan because I did them both within about a week.

BBEdit Prefs

Here is a good setting I learned about today. I guess I got tired of tabbing to indent and then trying to convert it to spaces.
The setting is auto-expand tabs.!topic/bbedit/c0n4BTnL9i0

How I accessed MAMP MySQL from my other localhost

I just figured out how to access the MySQL that runs when I run MAMP from my other localhost (the one that came with my mac). I'm referring to http://localhost/~myusername. The error 2002 said it couldn't find MySQL at /var/mysql so I created a symbolic link there and pointed it to the MySQL that I have installed as a result of installing MAMP. Of course I have to run MySQL there by starting MAMP. Here is what I did.
sudo mkdir /var/mysql
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock is at a new host

So I decided to give bluehost a try. I moved my business website ( there and made it my primary domain. I've been frustrated with being unable to give me a straight answer as to why 2 of my sites continuously have errors. I understand that they don't support various applications (like gallery) but how can you explain seeing errors one day and not the next day and permissions changing on folders after I've set them manually?

Unacceptable GoDaddy Security Restriction

I think I finally figured out one of the reasons why I have had such trouble with some of my Drupal websites. The problem is described in this drupal forum post. The policy does not let me update a required core include file ( Just another reason to think about switching hosts.

Google Maps API - Upgrading to v3

I noticed recently that maps on my online birding database had stopped working. I thought “That is odd, I haven't updated that page in quite awhile and I think it was working last time I checked”. Upon further investigation, using the Javascript Console Developer tool in Google Chrome, I discovered that some functions I was using in API v2 were deprecated. Other simple maps I've made were still working but not the list of all locations within a given county. Here is an example of that page using Calvert County, Maryland.

Dock weirdness

I noticed some weirdness on my MBP laptop yesterday evening. When I would CMD-tab to go from program to program, none of my other programs were there. I googled this and the best suggestion I saw was to restart the dock. From the terminal I issued the command killall -KILL Dock. The dock restarted and everything was fine. I'm not sure what caused it but I was working with some heavy graphics in Photoshop, so that may have had something to do with it.

Browser Wars (Mobile ?)

My personal preference of a web browser changes frequently for a number of reasons so I was interested in knowing what other people have to say about it. The topic is currently dominated by browser market share analysis particularly in the mobile arena. Frankly I don't care much about mobile browsing. Maybe I'm just getting old but I just can't even see the browser on my iPhone. Interesting though that Safari dominates as top mobile browser.

The Client Questionairre

This article summarizes a list of good questions to ask a potential client. I find myself asking a lot of these questions informally but I kind of like the idea of a questionairre. The article is “How to Extract the Facts with a Web Design Client Questionairre”.


Subscribe to RSS - J.B. Churchill's blog