Maracas Mazes Mac OS

Apple recently phased out MySQL in favor of PostgreSQL. There are still valid reasons why we might prefer MySQL, such as compatibility with legacy code.

Here are my instructions on how to install MySQL as a permanent service on OS X. These instructions work with or without OS X Server installed. For the most part, installation is straightforward, but read this carefully because there are gotchas where it comes to file permissions.

The newest beta version of macOS 11 is Mac OS 11.2 beta 4 which was released to beta testers on 2 March 2021. Rather worryingly, a note that appears in OS 11.2 beta 4 suggests that Rosetta may not. The first release of the new OS — Mac OS X Server 1.0 — used a modified version of the Mac OS GUI, but all client versions starting with Mac OS X Developer Preview 3 used a new theme known as Aqua. Aqua was a substantial departure from the Mac OS 9 interface, which had evolved with little change from that of the original Macintosh operating. Maze2P - (easy to hard) 2-Player maze This is a 2-player maze. Player 1 uses the A,S,D,W keys to move and player 2 uses the arrow keys. Whoever gets to the fruit first, wins. If you touch the wall, you go all the way back to the beginning. Try to beat your partner in this game. Download: Mac - Windows - LiveCode.

I’ve tested these instructions several times on OS X 10.11 El Capitan and 10.10 Yosemite. I think these instructions will probably work on 10.8 Mountain Lion and 10.9 Mavericks.

Backup your MySQL databases.

You want to back up your MySQL databases before doing a OS X upgrade. The easiest way is to create a mysqldump file. Databases can also be restored from data files, but this is harder and I don’t recommend it.

Install or upgrade OS X.

According to your plan.

Download Xcode from the App store and install the command line tools.

Xcode is a dependency for Homebrew, which uses Xcode’s gcc compiler to compile everything from source. Once you have Xcode installed, you need to install the command line tools for the gcc compiler to work. From Terminal:

Check the systemwide PATH variable.

Open a Terminal window:

Make sure that /usr/local/bin occurs before /usr/bin. If they don’t, then you need to change this order. Edit /etc/pathsusing vi or your favorite text editor. I love and use TextWrangler. Close your Terminal window and open a new Terminal window for this change to take effect.

Obtain Homebrew.

Homebrew is a great package manager for OS X that installs everything in /usr/local/binand does not require sudo.It then symlinks to the expected locations so that the packages can find one another. Because the packages are centralized in the Cellar, they are easily updated and removed.

Fix any problems that Homebrew detects.

Follow brew doctor‘s instructions. brew doctor usually complains about Xcode. If I’m guessing the error correctly, here is the solution that brew doctor will suggest (assuming OS X 10.10 – note the version since this affects what you will type into Terminal):

Run brew doctor again. Continue to follow brew doctor‘s instructions until it tells you that “Your system is ready to brew.”

Maracas Mazes Mac OS

Install MySQL.

Homebrew has just installed MySQL to run under the current user, which is not what we want for our server, but we will get to that in a moment. First, we will test the mysqld service to see if it launches. In newer versions of MySQL, the command to launch the service is $ mysql.server start.

Modify the .plist file to improve logging.

Using vi or your favorite text editor, modify the .plist file.

Add these lines within the <dict> block:

Set up the MySQL service to launch at boot time as part of a server.

Homebrew’s instructions, which I asked you to ignore, would have installed a LaunchAgent for your current user account, so that the mysqld service would start whenever you logged in. This would work great for a personal development machine, but it’s not not ideal for a server.

For a server, what we want is for mysqld to start up at boot time by the root account. So, we need to make two changes:

  1. the .plist must link into /Library/LaunchDaemons and have the appropriate permissions to be launched by root.
  2. the mysql database files in /usr/local/var/mysql must all be owned by _mysql. You might wonder why the owner must be_mysql, since the server starts up as root. This is because whenever mysqld detects that it is being run as root, the process steps down to user _mysql as a security measure. This is typical behavior for services. Apache, for example, steps down to user _www.

Open a Terminal window, and enter:

Important: Now that mysql belongs to root, do not run the $ mysql.server command again! Don’t do it. This will result in an aborted launch with permissions errors. You will need to delete the resulting .pid files in /usr/local/var/mysql before mysqld will be able to run again, even as root. Again, don’t do it.

Verify that the MySQL service starts up at boot time.

We will reboot the server machine. At boot time, launchctl should load our modified .plist and run mysqld. We will then run the mysql command from Terminal to interface with the mysqld service and verify that it’s running.

After the machine restarts, re-enter Terminal and type:

If the mysql command fails, then we know that either the LaunchDaemon didn’t kick in, or that mysqld failed to start successfully. Again, if this happens it is usually because of a permissions issue. To troubleshoot, check the log files at:

Restore your MySQL databases.

A full dump from a recent version of MySQL should successfully restore all databases plus the privilege table, which controls users. If there are problems with the privilege table after restoring, then edit out the privilege table from your mysql dump file, and re-create your users manually using a tool like phpmyadmin.

I hope this post helped someone. Happy monkeying!

Instructions - for desktops, laptops. phones and tablets

You are welcome to download these apps and use them on your computers and phones.
- PCs (Windows), Mac (OS/X), Linux computers as well as Android, iPhones and iPads
Disclaimer:
Learning Apps: These apps are first attempts, not yet polished apps. They could still have issues on some platforms/versions but enjoy and use them anyway.

Installation:
- PC's - just download the Windows version and run. No installation needed
- Mac/Linux - download the Mac version and unpack/unzip (just double click on it and it should unpack)
Mobile Platforms:
- Android - download the Android version and follow these directions -Installing the App on Your Phone
- iPhone - download the iOS version (simple directions coming soon, Apple just made changes Feb 1st.)
(It will become easier for the mobile versions once they are up in the Apple and Google Play stores.)

These are some of the programs that were produced by 9-12th grade students (ages 13 to 17). The goal is not necessarily a finished, polished product but to learn and practice programming. As you can see, their programs are creative, diverse and challenging. Many of the game effects they figured out themselves. Some of the games are still works in progress but you can see how far they have come. I will continue to add more games to this site...

Maracas Mazes Mac Os Catalina


For best results, install the latest Community version of LiveCode and download the LiveCode versions of the games. That way, you can run the game, then look at the code to see how it was done.