Avoid The Mou Markdown Editor

Mou Defrauded Its Indiegogo Backers
Mou Defrauded Its Indiegogo Backers

The shady company 25.io (https://twitter.com/25io), apparently based in Tianjin, China, initiated an Indiegogo campaign for their Mou Markdown editor back in late 2014. They received $27,334 of the $20,000 they requested, promising to ship version 1.0 of Mou by April 2015.

The only updates they’ve posted since the end of the Indigogo campaign were to briefly mention that they were “ashamed” for not having delivered 1.0 on 31 August 2015 — almost six months ago.

So, avoid Mou as a Markdown editor. In beta, the project was sub-standard, anyway, freezing on saves — often.

Backers of the project on Indiegogo have suggested https://www.typora.io/ and https://github.com/dvcrn/markright as alternatives to Mou.

Generating an SSH Key for Mac OS X with GitHub/BitBucket

This tutorial is aimed at users who want to create a new SSH key on Mac OS X and configure it for use with GitHub. (Configuring for BitBucket is exactly the same.)

  1. Start The Terminal and go to your home folder:
    cd
  2. Make a directory called .ssh:
    mkdir .ssh
  3. Navigate into the .ssh directory:
    cd .ssh
  4. Generate a new SSH key, replacing YOUR_EMAIL_HERE@YOUR_DOMAIN with your own email:
    ssh-keygen -t rsa -C "YOUR_EMAIL_HERE@YOUR_DOMAIN"
  5. You’ll be prompted to save the file in /Users/USERNAME/.ssh/id_rsa, where USERNAME is your Mac username. Hit enter.
  6. You’ll now be asked to enter a passphrase twice. A passphrase is a string of text that is something longer than a simple password. If you hit enter, no passphrase will be associated with the key. This is not advisable.
  7. You now have a private key (id_rsa) and a public key (id_rsa.pub). Add the private key to your Mac keychain via the Keychain Access program:
    ssh-add -K ~/.ssh/id_rsa
  8. With your private key now setup on your local computer, the public key must be setup with the remote host, which can be GitHub, Bitbucket, etc. I’ll use GitHub for this example.
  9. Copy the public key to your clipboard:
    pbcopy < ~/.ssh/id_rsa.pub
  10. Log into GitHub and choose the “Settings” option underneath your profile in the upper right-hand corner of your home page:1
  11. Choose the “SSH Keys” option along the left menu:
    2
  12. Click the “Add SSH key” button in the upper right-hand corner:
    3
  13. Give your key a name:
    5
  14. Assuming you haven’t added anything to your clipboard since step 9, paste the contents of your clipboard under the “Key” area, then hit “Add key”:
    6

Fix SSH Key Security Issue in Cygwin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0660 for 'id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.

I recently came across an issue with a Git-related SSH key in which I received the message above. This appears to be caused by the default ownership and permissions assigned to new files in Cygwin. Configuring SSH keys in Cygwin requires that the id_rsa/id_rsa.pub key pairs be owned by the correct entity and have the correct permissions. (This is likely true in other operating systems, also.)

For the following example on how to solve this, I’ll use id_rsa as the private key file and id_rsa.pub as the public key file. I’ll assume that the folder .ssh is in your Cygwin home directory, which, in my case, is /home/Roy.

  1. Launch Cygwin
  2. Start your ssh-agent, if you haven’t already:
    eval `ssh-agent -s`
  3. Navigate to the .ssh folder:
    cd ~/.ssh
  4. Change the group of the id_rsa and id_rsa.pub files to Users:
    chown :Users id_rsa id_rsa.pub
  5. The owner of the key files must have read and write privileges, but the group and the world should have no access to these files. Thus, permissions on both files should be 600:
    chmod 600 id_rsa id_rsa.pub
  6. Load the key, and enter your password (should you need to) when prompted:
    ssh-add id_rsa

Creation Tool for Sublime Text Preferences File

Screen Shot of http://www.create-sublime-text-user-preferences-file.org/

Over the last few months, I’ve been working on an online tool that gives users the ability to create their own Sublime Text user preferences file, based on a clear explanation of each of the 101 settings in the Preferences.sublime-settings file. Although I’m only about 40% done, the project is ready for sharing in an alpha capacity.

Consider this tool a supplement—not a replacement—to the explanations included with the Sublime Text default preferences file.

The project is of course open source.

http://www.create-sublime-text-user-preferences-file.org

JavaScript-Based Dynamic HTML Project for Students

Screen capture of JavaScript project

I’m in the middle of teaching students JavaScript and have put together a small project that performs some basic dynamic HTML. I’m using facts surrounding the assassination of Abraham Lincoln as content of the project, since this month marks the 150th anniversary of his death.

The project is incomplete on purpose so students can fork and contribute.

https://github.com/code-warrior/abraham-lincoln-assassination-trivia