Share the Knowledge
RSS icon Home icon
  • Random Quotes

    Posted on September 30th, 2010 webmaster No comments         Print Print

    I’m currently reading Chris Guillebeau’s The Art of Non-Conformity and I really liked the quotes he put throughout the book.  I often paused for a few seconds after reading each one to think about it.

    I thought it might be a good idea to have random quotes appear on this blog so I searched the WordPress site for plugins and found this Quotes Collection plugin that can do exactly what I want (and more).  It lets you create a collection of quotes that can then be displayed on a page or on the sidebar.  If you look at the sidebar right now the first thing you’ll see is a random quote.  When you refresh the page or go to another page you’ll notice the sidebar will display a new random quote.

    I only have a few quotes entered right now but I’ll make sure to keep this updated whenever I find a new one that I like.

    Read the rest of this entry »

  • My Favorite WordPress Code Highlighter Plugin

    Posted on July 8th, 2010 webmaster No comments         Print Print

    If you’re wondering what I used for the code highlighter in my previous post, it’s the SyntaxHighlighter Evolved plugin.  It’s just like the Google Syntax Highlighter plugin but much easier to use.  I’ve tried a bunch of other ones such as the WP Advanced Code Editor, Developer Formatter, and WP-Codebox and this one is the best in my opinion.

    To use it you just put your code between these tags: “[language] …code goes here… [/language]” where “language” is the programming language (i.e. python, java, sql, etc.).

    Here are some examples of what the code would look like:

    Python

    import shutil
    
    class Copy:
        '''
        Copy files.
        '''
    
        def __init__(self):
            '''
            Nothing to see here.
            '''
    
        def copyFile(self, src, dst):
            shutil.copy2(src, dst)
            print "I don't know why I'm printing this."
    

    SQL

    SELECT * FROM cool_websites
    WHERE domain = 'calazan.com'
    AND ranking IS NOT NULL
    

    Java

    public class HelloVisitors {
    
    	public static void main(String[] args) {
    		// Just saying hello
    		System.out.println("Hello visitors!");
    	}
    }