MySQL on OS X

Download MySQL at: http://dev.mysql.com/downloads/ (More Specific) & install the DMG

1. Open up Terminal

2. Add /usr/local/mysql/bin to PATH
- cd ~
- emacs .profile
- export PATH="$PATH:/usr/local/mysql/bin"

3. Restart Terminal

4. Create new user for login
- mysqladmin -u USERNAME -p -password PASSWORD

5. Log in to MySQL with new user created
- mysql --user=USERNAME --password=PASSWORD

You should be in MySQL now

SERVER: FSB vs. RAM

Taken from: http://www.directron.com/fsbguide.html

Front Side Bus (FSB)
- The Front Side Bus is the most important bus to consider when you are talking about the performance of a computer. The FSB connects the processor (CPU) in your computer to the system memory. The faster the FSB is, the faster you can get data to your processor.

S
ystem clock - The actual speed of your FSB with out any enhancements (such as double pumping, or quad pumping) on it.
An often-misunderstood property of the system clock is its effect on processor speed. You see, a thing called a "CPU Multiplier" determines the speed of a processor in MHz. If you take the CPU Multiplier and multiply it by the System Clock speed you get the speed of your processor.

DDR2 -
DDR2 memory has a different approach to design at the chip level than DDR. The simplest way to understand how it works would be to think that at the low level it had two chips of half the stated memory speed working in tandem together to achieve the full speed stated. So for DDR2 400 it would be something like 2 chips of DDR200 working together to achieve the full 400 speed. Notice that I say "chips" not sticks of memory. All this happens on 1 stick of memory. In other words, when calculating in tandem in respect to the FSB, just divide the given speed by 2.

Example:
Assume my quad-core, quad-pumped FSB = 1066MHz.
This means my System Clock is 1066/4 = 266MHz.
My CPU is clocked at 1.6GHz = 266MHz * CPU MULTIPLIER.
This means my CPU MULTIPLIER must be 1600/266 = 6.

Now here are my options for DDR2:
(A) 533MHz/2 = 266MHz. This is an EXACT MATCH to my System Clock.
(B) 667MHz/2 = 333MHz. This is the next highest speed available.
(C) 800MHz/2 = 400MHz. This is pure overkill since the System Clock is capped at 266MHz.

In these stated cases, (B) is actually preferred. (A) is an exact match which means sometimes its lag can adversely affect the CPU bus speed. As stated, option (C) is overkill.

WEB: How to set up web-server w/ FiOS

Since Verizon blocks port 80, this is listed online as the only workaround. It entails targeting a different port (like 8015), and then using the Verizon FiOS router to re-route the request to the correct web server machine.

Furthermore, people used no-ip.com's dynamic dns service to automatically forward the url name requests like www.happy.com to www.happy.com:8015, thereby eliminating the ugliness of forcing your customers to specify the ports.

* Prior to following the steps in this guide to hosting your web server, make sure you read the Verizon ToS, which states the following:

You also may not exceed the bandwidth usage limitations that Verizon may establish from time to time for the Service, or use the Service to host any type of server. Violation of this section may result in bandwidth restrictions on your Service or suspension or termination of your Service.

That said, be careful and charging on :)

STEP 1: Goto URL http://192.168.1.1
STEP 2: By default, username = admin, password = password (or password1)



STEP 3: On the top navi-bar, select Firewall Settings



STEP 4: Click yes to proceed



STEP 5: Click on Port Forwarding on the left navi-bar



STEP 6: From that table list, click Add at the bottom



STEP 7: Fill out the following table...
STEP 7a: Networked Computer/Device = danny (actual device name works best, since IPs can be dynamic)



STEP 8: Add new protocol



STEP 9: WAN Connection Type: All Broadband Devices
STEP 10: Forward to Port: Specify - 80
STEP 11: When should this rule occur: Always

STEP 12: Click Apply to get out of the Edit Port Forwarding Rule page
STEP 13: Click Apply to get out of the Port Forwarding page

STEP 14: From an external computer, type http://YOUR.IP:8015/, should direct you to the web server.