1 Infinite Loop

On my recent trip to the Silicon Valley, I was fortunate enough to be able to make a side trip to see the Apple headquarters. Finally getting to visit the well known “1 Infinite Loop” was as rewarding as might be expected, and at least I can now say I’ve been there.

1 Infinite Loop

See this location on a map, and use Street View for a look around.

Unfortunately, getting a photo is about the most you can do. Despite the word “Visitors” on the sign, this only applies to people with an invite, and the only way to get past the entrance is if you have a host and are able to print a badge at one of the self serve stations.

Lastly, a tribute to Apple from the good old days on a related note:

10 PRINT “INFINITE LOOP”
20 GOTO 10

Travel Tips

If you want to visit the Apple Headquarters, here are a few quick tips:

  1. Plan for about 15 minutes to look around and get a photo. If you feel like walking the loop, you could probably do it in about 15 minutes. Sorry, wish there was more!
  2. The parking lot is huge, and I saw no visible notices about where or where not to park. It seemed safe enough to find a parking spot for a quick visit.
  3. I read about there being a store, but I didn’t see it. As it turns out, the store is under renovations. Watch for it again in the future.

Google Cardboard

This Virtual Reality viewer is one of the most unusual and interesting items I received at a recent conference at the Googleplex. It consists of a cardboard frame that you get to fold yourself, two lenses, and a magnetic button trigger. The front opens up, allowing you to place a smart phone inside, and if running the correct software can create a really great display.

Google Cardboard Virtual Reality Viewer

There are apps that let you do all sorts of things, from a virtual rollercoaster, to looking around on Mars, to navigating the streets around Paris. The educational and entertainment, and even business possibilities here are huge, and I’m surprised this isn’t more well known than it is.

This technology is meant to be open and available, and you can download printable templates to build your own. Of course you’ll need a few special items such as lenses, but all components are available to your average consumer. For those who want to jump right in and perhaps get something more solid than cardboard, you can find a number of viewers available online.

Read more about Google Cardboard: https://www.google.com/get/cardboard/

Debugging PHP Files From The Command Line

Here’s a handy tip for debugging PHP files when all you get is a blank white screen. You know something is wrong, but it isn’t telling you what. This is a common problem when editing custom template files for WordPress.

Error output can be configured by modifying the php.ini file, but this may not always be accessible. Another way to have PHP tell you where it’s having a problem is by going to the command line and running it there:

    $ php -l report.php 
    
    Parse error: parse error in report.php on line 834
    Errors parsing report.php

There it is: “line 834”. It’s a quick and simple solution, and should work for just about any PHP file.

Dealing With A Hacked WordPress Site

If your WordPress site gets hacked, it’s usually pretty obvious. More than likely, your website shows nothing but a message from the hacker, often accompanied by some loud music.

site-hacked

Luckily, in most cases, the damage done to the site is merely visual, and finding and replacing a couple of key files is enough to get the site back up and running. However, you should also take steps to find out where your site was vulnerable and resolve those issues to prevent it from happening again.

WordPress has an FAQ especially for all of this. Read it first and determine whether or not this is something you can deal with yourself. If not, give me a call. I’ve dealt with a number of these and can get your site back online quickly.