• missing xbfish.com image
missing xbfish.com image
Posted on

Syntax Highlighter for WordPress (Version 2) now on GitHub!

Some readers have requested for the source files of the Syntax Highlighter WordPress plugin that I have been using. Feel free to fork the plugin at https://github.com/xbfish/Syntax-Highlighter-for-WordPress–Version-2-

Partial screenshot of this plugin at the admin panel:

missing image

Introduction
This WordPress plugin is an extension to the original syntax highlighter by Okamoto at http://wordpress.org/extend/plugins/syntax-highlighter/

Prerequiste to Run
Requires: WordPress version 2.5 or higher
Last tested on WordPress version 3.5.1

Significant Changes from Okamoto’s version

This version of plugin removes the vertical scrollbar and question mark icon on the top right hand corner of the code snippet. The settings of the plugin in WordPress Admin Panel is also removed since it is not working for WordPress version 3 and higher.

The removal of vertical scrollbar and question mark icon can be found on my previous posts:

For how to use, refer to my post at http://xbfish.com/2012/08/21/syntax-list-for-syntax-highlighter-for-wordpress-plugin/

missing xbfish.com image
Posted on

PC Cleaning Day

It has been 5 years since I last cleaned my computer as taking out the parts is particularly tedious.

missing image

Shall go and continue cleaning…

missing xbfish.com image
Posted on

3 ways to say “I love you” in Japanese culture

missing image

missing image

missing image

In Japan, there are 3 ways to say “I love you”:

“Daisuki (大好き)” : for the friends and person you like,

“Aishiteru (愛してる)” : for a more serious relationship,

“Koishiteru ( 恋してる)” : to the person you want to spend the rest of your life with.

The Japanese follow this rule to preserve the meaning of ‘I love you’. They never lose its essence unlike us. :(

Adapted from: http://chickenshit.tumblr.com/post/49854272734

missing xbfish.com image
Posted on

周星驰 – 李香兰

missing xbfish.com image
Posted on

Removing VIM .swp file in one folder

A line to remove all .swp file from VIM:

find . -name ".*.swp" | xargs rm -f

Command is referenced from 24 Hours Apps.

missing xbfish.com image
Posted on

成功男人背后的女人

missing xbfish.com image
Posted on

Ubuntu 8.04 LTS CD

I found this while I was doing some housekeeping. It was given free about 5 ~ 6 years ago if I remember correctly.

Missing image

Now Canonical does not provide free Ubuuntu CD anymore. :(

missing xbfish.com image
Posted on

Nicholas Tse on Leadership

I am surprise that Nicholas can speak fluent English! I love his style of managing people:

missing xbfish.com image
Posted on

[R] Removing column and multiple columns from data set

Assuming that df is the data frame with the following columns:

Col1 Col2 Col3 Col4 Col5

To remove the second column from the data set:

df[2] <- NULL

Alternatively, we can can remove the second column through this:

df$Col2 <- NULL

To remove the second column to the fourth column, we can do something like this:

df[2:4] <- NULL
missing xbfish.com image
Posted on

Kyu Sakamoto – Sukiyaki

Classic Japanese song: