setup a new WordPress site in five minutes

  1. Choose a name, e.g. my-new-blog.com
  2. Order and setup the new domain according to your provider
  3. Create a “wordpress” user (see here).
  4. Setup a database and phpMyAdmin to administrate it (see here).
  5. Download latest WordPress
  6. A new folder wordpress is created
  7. Rename wordpress to e.g. mynewblog
  8. Create a symlink to the wordpress directory
  9. Configure Apache2
    1. Create a site configuration: Make it look like this:
    2. Enable the site
    3. Change permissions for the new website directory to www-data (the webserver user)
  10. Done! Open my-new-blog.com to access your fresh WordPress site.

Working Set specific Problems View

If you are working with many different projects, Eclipse let’s you organize them into “Working Sets”. You can add projects to different Working Sets and configure your Package Explorer to show only certain Working Sets.

assign_working_sets working_sets_assignments

The Eclipse “Problems View” nevertheless, shows per default all Errors and Warnings from all projects open in your current workspace.

To change the default behaviour you can configure the default Problems View and even create a new one:

Click on the tiny triangle on the right side of the Problems View to open a configuration window.

problems_view_configure_1 problems_view_configure_2

Here you can change the default behavior to show only errors and warnings for the current selection or to show errors and warnings for a specific working set.

The latter is especially interesting in combination with creating a new Problems View. You can for example create a Problems View for each working set and then configure it to show only the problems of the specific working set.

This way you can create Working Set-specific Problems Views and for example configure the default one to show only the current selection. This will give you some extra flexibility when working with many different projects.

useful aliases

  1. Show today’s date in the ISO 8601 format.
    alias today="date +%F"
    
  2. When using mv, do not override files but create a backup per default.
    alias mv="mv --backup=numbered"
    
  3. Always use p and v flags when using mkdir.
    alias mkdir="mkdir -pv"
    
  4. Create a new command mkt, which appends today’s date to directories created.
    alias mkt='function _mkt(){ mkdir -pv $(sed -E "s|([^/]+)(/*.*)|\1-$(today)\2|" <<< $1);}; _mkt'
    
    Example:
    $ mkt test/test2
    mkdir: created directory ‘test-2015-12-17’
    mkdir: created directory ‘test-2015-12-17/test2’
    $ tree
    .
    └── test-2015-12-17
        └── test2
    
    Note: today alias needs to be defined. When using the p flag, today's date is only appended to the folder highest in the directory tree.
  5. When using wget, always try to resume a partially-downloaded file.
    alias wget="wget -c"
    
  6. To grep the history is a quite frequent use case.
    alias histg="history | grep"
    
    Example:
    $ histg mkt
    179  alias mkt='function _mkt(){ mkdir -pv $(sed -E "s|([^/]+)(/*.*)|\1-$(today)\2|" <<< $1);}; _mkt'
    180  mkt test/test2
    183  mkt test/test2
    190  histg mkt