Ionic notes

Some notes on ionic CLI command

Create new project (will create myApp directory):

> ionic start myApp blank

(besides blank, there is option to use other template like tabs, sidemenu, tutorial, super)

  • tabs : a simple 3 tab layout
  • sidemenu: a layout with a swipable menu on the side
  • blank: a bare starter with a single page
  • super: starter project with over 14 ready to use page designs
  • tutorial: a guided starter project

Get into the directory and start service

> ionic serve

Launch editor to start coding

> atom .

Other resources

  1. ionic framework doc
  2. ionic crashed course video (~30 minutes)

Completely uninstall Atom in Mac

Can run the following scripts in terminal to completely uninstall Atom


rm -rf ~/.atom
rm -rf /usr/local/bin/atom
rm -rf /usr/local/bin/apm
rm -rf /Applications/Atom.app
rm -rf ~/Library/Preferences/com.github.atom.plist
rm -rf ~/"Library/Application Support/com.github.atom.ShipIt"
rm -rf ~/"Library/Application Support/Atom"
rm -rf ~/"Library/Saved Application State/com.github.atom.savedState"
rm -rf ~/Library/Caches/com.github.atom
rm -rf ~/Library/Caches/com.github.atom.Shipit
rm -rf ~/Library/Caches/Atom

source

Ways to filter bots

 

  1. Most popular is recaptcha by google
  2. Honeypot technique – include a hidden field, if it is filled, then it is a robot
  3. A simple random questions. E.g. is fire hot or cold , five – 3 is ___
  4. http://nomorecaptchas.com/ (with price)
  5. https://visualcaptcha.net/ (no longer developed but they claim it still work)
  6. Algorithm
    1. after 5 failed attempt, lockout IP for 15 minutes
    2. if 5 times lockout, lockout IP for 24 hours
    3. if 3 times lockout, blacklist IP permanently (option for sys admin to clear)
  7. More alternatives