Tools | Learn for Master
  • How to send email on linux terminal

    You may want to send email using linux terminal. 

    The easiest way is to use mail tool.

    for example, you can use the following command to send an email easily. 

    echo “content the email” | mail -s “subject of this email” [email protected]

    You can also use -a option to attach a file:

    echo “content the email” | mail -s “subject of this email” -a ~/filename  [email protected] 

    However, you may want to specify the sender’s email address. Then a good tool is sendEmail.

    About SendEmail
    SendEmail is a lightweight,

    [Read More...]
  • WordPress database error Table crashed

    For mysql database you may get the following error:

    Fix “WordPress database error Table … is marked as crashed and should be repaired”

    WordPress database error Table … is marked as crashed and last repair (automatic?) failed. 

    We can fix this error using the following commands:

    Fix “WordPress database error Table … is marked as crashed and should be repaired”

    [Read More...]
  • Cache with nginx

    Here are some good resources to use cache a website with NGINX.

    NGINX is commonly deployed as a reverse proxy or load balancer in an application stack and has a full set of caching features. It can be helpful for:

    1. Speeding up the website by caching full pages, static files (js, images, css etc.).
    2. Serving g-zipped data to browsers for faster delivery.
    3. Rewrite the urls to make them more human readable and easier to remember.
    4. Adding proper ‘expires header’ to static content so that they can be cached by the browsers.
    [Read More...]
  • Good resources learn how to develop WordPress plugin

    Admin panel

    Create a Custom WordPress Plugin From Scratch

    This tutorial is from:–net-2668

    1 Files and folders

    WordPress stores its plugins in the wp-content/plugins/ folder. This is the place where we’ll be adding our files as well.

    we are going to use two files (one for the main plugin file and one for implementing the administration page) therefore we’ll be putting all our files in a specific folder that we’ll name oscommerce_importer

    2. Creating the plugin file

    Now we create our main plugin file. We’ll name it as  itoscommerce_importer.php.

    [Read More...]
  • How to create plugins for wordpress

    Screen Shot 2015-03-18 at 9.41.47 pm

    Here are two good examples to show how to add buttons to wordpress editor by build wordpress plugins. 

    WordPress has two different editors: TinyMCE editor(i.e., visual editor) and Text editor(i.e., HTML editor).

    WordPress also lets us create custom buttons to both of the visual and text(or HTML) editor. To add a button for Text editor we need to use Quicktags API and to add buttons to the TinyMCE editor we have to use JavaScript APIs provided by the TinyMCE library. Here are two articles that will help you to learn these APIs.

    Add Buttons to WordPress Text Editor

    Here is an example code snippet which adds a button to the WordPress code editor and wraps the selected text using [code][/code] tags.

    [Read More...]
  • automatic text summarizers in python or java

    • mohaps/tldrzr Algorithmic summarizer for RSS/Atom Feeds, Web Urls and arbitrary text. Codebase for the application deployed at
    • sc3/cookcountyjail A Django app that tracks the population of Cook County Jail over time and summarizes trends.
    • Emergya/redmine_cmi CMI is a Redmine plugin to have a summarized view of the projects. It calculates and shows with graphics different metrics as actual effort,
    [Read More...]
  • python and java libraries to parse wikipedia dump dataset

    Here are some python and java parsers to parse wikipedia dump dataset.

    The english wikipedia dump dataset can be downloaded here:

    Name and link
    Principal author(s)
    Comments / other info

    Java API (Bliki engine)
    Markup fragment
    Java Wikipedia API – (supports ParserFunctions, Lua/Scribunto…)

    Mylyn WikiText
    David Green
    Local files
    HTML, DocBook, Eclipse Help, DITA, extensible
    Integration with Ant and Eclipse runtime

    Sweble Wikitext Parser
    Hannes Dohrn
    Abstract syntax tree, XML, HTML
    Claims to be very thorough.

    [Read More...]
  • remove alternativ background lines for wp-syntax

    wp-syntax is a power tool to highlight your code, but the alternative background lines can make your code unreadable on some screens. 

    To remove the alternative background lines feature, we can just overwrite the css by adding the two lines in your theme’s style.css.

    You can change the background color to whatever you like.

    [Read More...]
  • The most essential Git commands you must know

    git file change diagram

    Git is the most widely used modern version control system.  When you learn git, you may encounter issues to master all the git commands.  In this tutorial, we list the essential git commands. After master these commands, you can use git to accomplish most of the version control tasks. 

    The following two diagrams show how git manages your files.

    git file change diagram

    The four stages of a file in git

    git diagram

    1. Create a Repository
      Create a new local repository from scratch

      Download from an existing repository

    2. Check your repository
      List the files that have not been committed 

      Show the changes to files not staged

      Show full change history

      Show more detailed change history

      show the changes between two commits ids

    3. Git Branches
      List all local branches

      List all local and remote branches

      create a new branch

      Switch to a branch

      create a new branch using an old branch and switch to the new branch

      delete a local branch

      delete a remote branch

      tag a branch

      merge branch_a to branch_b

    4. Add files to repository and do commit
      Add a single file to index,
    [Read More...]
  • How to use memcached in WordPress

    What is Memcached?

    Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

    Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

    You can get more information of memecached from this link:

    Why do you use Memcached?

    By using memcached (properly), you limit the number of queries to the database (because they’ll read the results from memcached instead).

    [Read More...]
Page 1 of 212