Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

2010-08-17

Determining running environment and platform capabilities in Emacs.

To proper work on different Emacs releases and on different platforms large/complex .emacs config file must check certain condition.

I collect come of them and by this post make it public.

2010-08-12

Top 10 Secure Coding Practices from CERT.

  1. Validate input.
  2. Heed compiler warnings.
  3. Architect and design for security policies.
  4. Keep it simple.
  5. Default deny.
  6. Adhere to the principle of least privilege.
  7. Sanitize data sent to other systems.
  8. Practice defense in depth.
  9. Use effective quality assurance techniques.
  10. Adopt a secure coding standard.
You can read more at CERT site.

CERT, the home of the well-known CERT(R) Coordination Center, is located at Carnegie Mellon University's Software Engineering Institute. They study internet security vulnerabilities, research long-term changes in networked systems, and develop information and training to help you improve security.

2010-03-14

Travel into WEB past.

Some time you type URL and server respond "404 Not Found". Requested article moved to another place or ever deleted!

Don't panic!

There is exist "Internet Archive" which is a non-profit organization with the stated mission to collect all available human knowledge.

2009-10-11

Sort and uniquify lines in Emacs.

For only sort lines exist built-in func: C-x sort-lines.

Sort and uniquify lines:

  • select region
  • C-u M-| sort -u RET

With transient-mark-mode and delete-selection-mode enabled:

  • select region
  • M-| sort -u RET
to replace selection with sorted and uniquified lines.