How To Download and Install Sublime Text

If you’re going to code (HTML, CSS, PHP, or any language) you’re going to need a text editor.

I’d recommend Sublime Text. It’s free, AND it’s the best. Here’s a super quick video on how to download and install Sublime.

Note: Sublime is free, but until you purchase it you will get a pop-up asking you to pay. Feel free to press escape (to ignore), or to buy a license.

How do I Set Up A Domain: with GoDaddy?

You’ve purchased “the next big thing” domain at GoDaddy.com! Congrats! Now that you’re ready, there are three things you’ll need to get up and running.

First, you may also need to also purchase hosting if you haven’t already. If that’s the case read my recommended hosts and/or How To Setup Hosting.

1. Once you have purchased a domain go to “My Account” and find the domain you’d like to setup. Click “Launch”

2. Look for this page below. You want to go where it says “Nameservers”, the bottom left. Click “Set Nameservers”

3. Fill in your Nameservers

You want to choose “I have specific nameservers for my domain” and then fill in your nameservers. Usually there will be 2 or 3 nameservers to fill in. These ALWAYS start with the prefix “ns1.”, “ns2.” and so on. You’ll find your specific name servers in the welcome email from your hosting company  (ie. Hostgator, Dreamhost or Bluehost sent you this email when you signed up for hosting. If not? Then contact them and they’ll help you out).

Where do programming languages come from?

programming-language-history2

Mother tongues! The evolution of programming languages is as follows. This is a chart I use in my Programming for Non-Programmers class that traces the root of programming languages through the ages.

It’s a bit dense, but if you zoom in real close it starts to make sense. Start with “C” the mother of all programming languages.

Click here to Download the Full Map

How to Use Dropbox as a Web Server

Use Dropbox as a Server

The quickest and cheapest way to host HTML/CSS/JavaScript files on the Web is to use Dropbox.

Here’s an example of something I’m hosting on Dropboxhttps://dl.dropboxusercontent.com/u/182494/SHARE-LINKED/cookie-pfnp-site-link/index.html

Here’s how you can host files on Dropbox:

  1. Get a Dropbox Account.
  2. Put your working HTML files in your Dropbox shared folder.
  3. Right click on the file you want to make public. Navigate to “Dropbox -> Copy Public Link”. Now the public link is in your operating system’s clipboard (aka. you can “paste” the link).

Note: You cannot link to an entire folder/directory (eg. you can only a .html or .zip file).  Also, this won’t work for hosting backend languages like PHP, Ruby or databases like MySQL.

How to get started with HostGator

HostGator.com is a hosting service. They’ll help you get your website live on the Web. Here’s how to sign up and get started:

** Note: I set up a code for my class to use: “pfnp2ga902” =  This will give you 1 month of free Hostgator hosting **

1. Go to the hostgator.com website. Click “View WebHosting Plans” and choose the Baby Plan. I’d recommend Monthly. Click “Order Now”

2.

DONT HAVE A DOMAIN? If you don’t have a domain you can enter a new domain on the left and purchase it. Then continue.

HAVE A DOMAIN? If you already own a domain type it in on the right, and continue.

Want HostGator for 1 month free? –  Enter in code “pfnp2ga902” at the bottom for a discount. If you choose the Baby Monthly plan it should go down to only $0.01. Note that after 1 month it will renew for full price of about $8/month. So if you don’t want to keep this after the class then please just cancel it within a month.

OR, Want HostGator for 25% off the lifetime of your account? (this is a better deal for the longterm) – Enter in code “pfnp2ga915”

 

3. Fill in all your data on the next page. Notice the discount. Click Create Account.

4. You should receive a welcome email. Save this it’s important!

5. Try to login to your “Control Panel”. Works? Good!

6. If there are problems please contact Hostgator. Some of you may need to call to followup with verification. Please do this before class if possible.

The Internet vs. The Web

Most people use the terms “The Internet” and “The Web” interchangeably, although in reality they are two separate, but related, things.

The Internet is everything. It’s the massive network of wires, and connections sending data around the planet at light speed. And it’s exactly what you are thinking of right now! Yup, you got it.

The Web (or WWW) is a SUBSET of The Internet.

  • Basically, it’s the pages we see in a browser.
  • It uses the HTTP protocol (just look at the start of any URL).
  • It display Web pages (written with HTML/CSS/JS).
What is not the WWW? Well, the WWW is not the data we transmit via FTP, torrents, or email. All of that data is part of the Internet, but because it’s not being rendered through a browser it’s not the WWW.
If this is confusing, then just go old school and call it all “cyberspace”! I’m sure that term will come back… just as soon as hipsters start using Windows ironically.

 

 

How to Install A Web Server & Database on Your Laptop with MAMP

MAMP allows you to run PHP, a MySQL database, and WordPress right from your own computer without having to buy a server or hosting.

After you install MAMP to your computer you’ll be able to experiment with code locally (ie. meaning that you can “sandbox” your code/database and not break anything live on the Web).

MAMP is free. Mac only. Here’s a step-by-step tutorial for getting it installed:

Using a Windows PC? A simliar option is available for Windows called WAMP – this tutorial be useful for Windows users, but it’s the same concepts.