When formatting thumb drives, Windows give you the flexibility to choose which format to use, whether it’s NTFS, FAT32, and exFAT. Windows will support all three formats. There are advantages and disadvantages to each format. I’m not going to cover in detail the differences between all three. You can read them here. Here is where it makes sense though. If you need full compatibility, especially if you’re switching between Windows and Mac, then I recommend that you use the exFAT format. It’s readable and writeable on both Windows and MacOS. The only downside is Linux. For full compatibility, you need to install a couple of packages called exfat-fuse and exfat-utils in your Linux distro. You can use this guide. Hopefully, this short article and the linked articles, benefits you, in terms of choosing the correct format that’s best for your needs.
If you record videos of your desktop, especially the Terminal, it’s a challenge to get your window to fit properly in a 16:9 format. Without the proper tool, eyeballing a window to fit a certain resolution is a difficult task to do.
One of the tools I use to set my window to a resolution that I want is to use my browser as a guide. There are several websites out there that allow you to set your browser to any size or resolution. Head over to resizemybrowser.com. They have several presets in varying resolutions.
If you don’t like any of their presets, then you can create your own. In addition, you can also manually adjust your current window to any size you want. The website gives you feedback of your resolution in real time. Once you set your browser to the right size, then you can match your Terminal with the size of your browser.
Homebrew is the missing package manager for the Mac OS. It’s missing because the MacOS doesn’t have one. Homebrew is the MacOS equivalent of apt-get or aptitude in Ubuntu Linux. With Homebrew installed on your MacOS, you can easily install and uninstall programs, packages, and utilities via the command line. For example, to install the wget, apache, git and ffmpeg, you can run the following commands from the Terminal.
$ brew install wget $ brew install apache $ brew install git $ brew install ffmpeg
If you don’t have Homebrew installed, run the following command from the Terminal.
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If for some unexplained reason you’re having problems with Homebrew, you can uninstall and reinstall it.
$ rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Previously, I wrote about installing and accessing Amazon S3 (Simple Storage Service) from Ubuntu using s3cmd command line tool. Interestingly enough, the S3cmd command line tool is also available on the Mac, since MacOS is based on NeXT, which was based on BSD, which is a major variant of Unix. Anyways, you can install s3cmd on the Mac so you can access to Amazon S3 via the command line.
How to Install
$ sudo sudo python setup.py install
$ s3cmd --configure
The configuration will ask you to provide your access key and secret key. You can get those keys from your AWS account or your AWS administrator.
Once it’s configured and you have access to the S3, you can try the following commands.
# list the files $ s3cmd ls # get file sizes in human form $ s3cmd du -H s3://yourbucket # create a new bucket $ s3cmd mb s3://newbucket # put file into bucket $ s3cmd put filename.ext s3://bucket/folder # get file from bucket $ s3cmd get s3://yourbucket/yourfolder/yourfile # delete file from bucket $ s3cmd del s3://yourbucket/yourfolder/yourfile
There are a lot more commands you can explore. Here’s the documentation.
WordPress is a content management system for running blogs or websites. Meanwhile, Docker is a software container platform for building, shipping and running applications and/or utilities. Since there are thousands of Docker images already built, installing an application such as WordPress is fairly easy. In this article, I will show you how to install WordPress, MySQL, PHPMyadmin on the Docker environment.
Docker is agnostic, meaning it really doesn’t matter what platform you use, whether you’re on Windows, Linux or the Mac.
Download Docker Docker. Install.
Create A Project Folder
$ mkdir wordpress $ cd wordpress
Create a Docker Compose file
The docker file for composing an image is called docker-compose.yml. It’s a YAML file that contains instructions on what to do and apps to use.
$ nano docker-compose.yml
Type in the following configuration in the YAML file. In this example, I’m telling docker to install WordPress, MySQL and PHPMyAdmin and using the following TCP ports, credentials, and volumes.
wordpress: image: wordpress links: - wordpress_db:mysql ports: - 8080:80 volumes: - ~/Docker/wordpress/html:/var/www/html wordpress_db: image: mariadb environment: MYSQL_ROOT_PASSWORD: password phpmyadmin: image: corbinu/docker-phpmyadmin links: - wordpress_db:mysql ports: - 8181:80 environment: MYSQL_USERNAME: root MYSQL_ROOT_PASSWORD: password
Run Docker Compose
$ docker-compose up -d
The installation may take anywhere from 5-10 mins or longer. So, grab a cup of coffee.
Once installed, open up your browser and access WordPress and PHPMyadmin
WordPress at: http://localhost:8080
PHPMyAdmin at: http://localhost:8181
You can access the WordPress files from your project’s “wordpress/html” directory.