分类
Develop 系统维护

Manage User Group in Mac

List all users dscl . list /users dscl . readall /users […]

分类
Develop 系统维护

Modify $PATH in Docker

Tried many methods but only this works: Use docker file […]

分类
Develop mysql 系统维护

Mysql Error: Table ‘performance_schema.session_variables’ doesn’t exist [Solved]

Got a mysql error: Table ‘performance_schema.session_va […]

分类
Develop 系统维护

SSH Timeout and Non-password Login

There are some inconveniences login via ssh. Timeout Th […]

分类
Develop ruby on rails

Formatting DateTime in Rails

There are some useful params with Time#to_s [14] pry(ma […]

分类
Develop 系统维护

Burn bootable ISO file into U-Disk in Mac OSX Yosemite

1 Open DiskUtil and format your u-disk with FAT format […]

分类
Develop ruby on rails

[Solved] Install Nokogiri on Yosemite with Ruby 2.1.3

Updated to Yosemite and got the following problem while […]

分类
Develop

Using SPF13 Vim – Install

Intro VIM is a powerful text/code editor, and there are […]

分类
Develop ruby on rails

Time Zone in Rails

Get All Time Zones Use ActiveSupport::TimeZone.all.each […]

分类
Develop iOS

Link Error of undefined symbol delete[] and new[] in iOS Development with WXAPI

和微信Api对接的时候遇到这个问题: Undefined symbols for architecture x […]

分类
系统维护

Hide ‘Others’ on the login screen of Mac OS X

Run following command in Terminal: sudo defaults write […]

分类
Develop 系统维护

Config ssh access with apache

First, generate the ssh keys and the certificate. We us […]

分类
曲谱

《秋风词》古琴曲谱

入门曲子,学学。 这个版本曲谱简洁,五线谱,就一张: 另一个曲谱,简谱,看起来挺长的:

分类
Develop Site

Setup Git Repo on VPS

We can setup our own Git repo on VPS, it’s very e […]

分类
Develop ruby on rails

acts_as_paranoid Gem in Rails

https://github.com/goncalossilva/acts_as_paranoid This […]

分类
曲谱

《沧海一声笑》古琴曲谱

原图不是很清楚,所以又抄了一遍,然后中间有几个指法改了改弹起来更顺手。 原图:

分类
Develop ruby on rails

Rails Gem CanCan

CanCan https://github.com/ryanb/cancan 用来处理用户权限,可以制定规则来 […]

分类
Life

古琴音阶分布

要做到看到简谱或者五线谱能弹出来,必须知道每个按音的分布,今天从按音图出发总结了一些规律,很简单的几条 徽位 […]

分类
Music 曲谱

《酒狂》古琴曲谱

《酒狂》曲子挺好听,但是真快·· 第三行开始把历看成劈了,怎么弹都不顺手···

分类
Life Music 曲谱

《笑傲江湖》古琴曲谱

笑傲江湖古琴曲谱,吕颂贤版 这是用GarageBand弄出来的mp3,钢琴的,可以听一听节奏。省去了第二页开始 […]

分类
Life Music

古琴基本指法练习之八

左右手一起的简单练习。

分类
Life Music

古琴基本指法练习之七 – 左手按音和吟

左手大指和无名指按音练习,还有吟。

分类
Life Music

古琴基本指法练习之六

第一个比较有旋律的练习

分类
Life Music

古琴基本指法练习之五 – 撮滚弗

分类
Life Music

古琴基本练习之四

这个练习弹起来还挺好听。

分类
Life Music

古琴基本练习之三 – 异弦散挑勾

分类
Life Music

古琴基本练习之二 – 散抹挑和散勾剔

散抹挑和散勾剔,剔有点难,还不太顺手,需要多练习。尤其是后面的十六分音符,太快了,感觉忙不过来了。

分类
Life Music

古琴基本练习之一

这是最基本的练习了,散挑勾和节拍。 这几篇练习都摘自沈草农先生的《古琴自学方法》

分类
Life Music

古琴F调按音图

各弦音域(散音加徽内按音) 一弦: 5– 到 5+ 二弦: 6– 到 6+ 三弦: 1 […]

分类
Develop linux 系统维护

Cron

Cron在Linux系统中用于计划任务。 举个例子 0 */2 * * * date >> /var/log/ […]

分类
Music

十二平均律

简介 十二平均律是音乐定调的基本方法,是指将一个八度,(频率相差1倍),的范围,平均分成12分(等比)。每一段 […]

分类
Develop ruby on rails

Using VCR with WebMock in Rails Rspec Tests

If the application need interaction with another web se […]

分类
Develop ruby on rails

[Repost] Here Document in Ruby

This is repost from http://log.gmarik.info/2007/12/ruby […]

分类
Uncategorized

[Repost]How to kill a dragon with various programming languages

Repost from How to kill a dragon with various programmi […]

分类
Develop http

SOAP Protocol

SOAP – Simple object access protocol, based on th […]

分类
Develop ruby on rails

STI of ActiveRecord in Rails

STI, Single Table Inheritance, supported by ActiveRecor […]

分类
Develop ruby on rails

The difference from %w to %W in Ruby

Difference between %w and %W In short, %w act as ‘, whi […]

分类
Develop ruby on rails

Typhoeus : a gem for http requests in rails.

Typhoeus Single request request = Typhoeus::Request.new […]

分类
Develop 系统维护

How to customize screen resolution in windows7 with ATI graphics card

Recently, I brought a Dell U2713HM display, with resolu […]

分类
Develop linux

Less

Zete says: “Less is more” Color: export LES […]