Testing 2.x in drupal 7.x

 If you are using Drupal 7.x and Testing 2.x, there's something new in module.info file:
testing_api=2.x
You need to add this into module.info and clear the cache. Then your testing code will appear in the testing list.

LEOS SDK

Subversion commit through http proxy

I'm working behind a huge firewall, probably the lagest in the world

So suddenly my subversion repo on unfuddle isn't working, I have to use subversion through a http proxy, here's how I did it.

open ~/.subversion/servers, find the [global] section in the end, and add the proxy connfiguration:

Mysqldump tips

  • Dump the table structure
    mysqldump  --compact --no-data
  • Dump the data only
    mysqldump --compact --no-create-info
  • Dump the routines
    mysqldump  --skip-opt --no-create-info --no-data --routines --triggers 

 

Download youtube videos with youtube-dl

While reading an article by Makeuseof.com: http://www.makeuseof.com/tag/14-youtube-playlists-watch-learn-computer-p...
I decide to take a quick python training since I never learn python seriously before.
It's a bit troublesome to watch the video from China through the firewall, so I downloaded it from the server with a command line utility called youtube-dl
youtube-dl -q -t  http://www.youtube.com/user/thenewboston#grid/user/EA1FEF17E1E5C0DA

Install Jomsocial Part 2

  • In part 1 we'd installed jomsocial successfully, however, it's not the thing I want. I'd rather only have jomsocial only.
  • The solution is create an empty template and make it default
  • I'd also included the blueprint css framework, to make it looks nicer, here's the theme: Empty Theme
  • Use Extension Manager to upload and install the theme
  • In Template Manager: Styles, set it as default and reload the home page

Install Jomsocial Part 1

  • Install latest Joomla 1.6
  • Unzip the jomsocial package: com_community_pro_unzip_first_2.2.2.zip to a folder, and install through the Extension manager
    • Install the com_community_pro_2.2.2.zip only
    • Have to unzip the app and modules and install one by one
  • After that, set the jomsocial as home page:
    • Goto Menu Manager, and edit Main Menu
    • Click the icon to set Jomsocial as "Home"

SWT: Add shortcut key for menuitem

Here's how to make the menu item link to the Ctrl+o
Which SWT.MOD1 = SWT.CTRL

MenuItem mntm_open = new MenuItem(menu_file, SWT.NONE);
mntm_open.setText("&Open...\tCtrl+O");
mntm_open.setAccelerator(SWT.MOD1  + 'O');

Setup GeSHi Filter for syntax highlighting in drupal

I needed a good way to display all kinds of source code in my site, and during my research I found a module called GeSHI Filter, which was exactly what I was looking for.
This module integrates the PHP library GeSHI (Generic Syntax Highlighter) into Drupal. Here's the step to install it onto drupal:.

Use ant to sync local files to ftp server

I'm developing a php project locally and need to upload files onto a ftp server. There are many folders and I'd rather to sync instead of re-upload everything each time. So apache ant provides a ftp task to just do that

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer