分类
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 用来处理用户权限,可以制定规则来 […]

分类
Develop linux 系统维护

Cron

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

分类
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 […]

分类
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 […]

分类
Develop iOS

How to save image data with exif information from UIImagePickerController

The UIImage returned from UIImagePickerController is wi […]

分类
Develop 系统维护

如何安装三分区Mac和Windows双操作系统

分区情况 我装好系统后分区是这样的: 1.EFI,200M,保留分区,这个不用管。 2.Windows系统分区 […]

分类
Develop

Using Github

git status this is used for checking the status of loca […]

分类
Develop 系统维护

Mac下修改终端提示符

环境变量PS1中存放的就是终端提示符的格式,可以通过这个命令来查看: echo $PS1 环境变量PS2是换行 […]

分类
C# Develop

NetStream.Read in C#

调用NetStream.Read(buffer, offset, len)有一个坑,那就是它一次读取并不一定会 […]

分类
Develop iOS

Push Notification, Step by Step Setup.

坑爹的苹果,居然在提交证书的时候,由于浏览器(自家的Safari)的问题导致提交不成功,换成别的浏览器才成功。 […]

分类
Develop iOS

【转】iOS开发中的UITableView编辑模式

文章写得很好,转载自:http://my.oschina.net/plumsoft/blog/53271 这篇 […]

分类
Develop iOS

ARC – Automatic Reference Counting in iOS Development

ARC帮我们做了很多事情,主要的几点如下: 1·自动生成dealloc函数,帮我们释放对象中的变量 2·如果你 […]

分类
Develop iOS

Why we use ‘copy’ attribute for NSString property?

@interface AClass:NSObjet @property (nonatomic, copy) N […]

分类
C# Develop

Access to ‘class’ Tag Attribute in HTML using HtmlDocumentElement in C#

<p class=”aClass”>some content</p> 像上面这一段ht […]

分类
Develop iOS

Size with UITextView in iOS Development

In the iOS development, the UITextView is frequently us […]

分类
Android Develop

Service in Android Development

记录一下,这篇文章写得很好,很简洁,以至于我都没动力复述一遍了: http://www.cnblogs.com […]

分类
Android Develop

ListView in Android Develop

ListView是比较常用的控件,相当于iOS中的TableView,用来展示数据列表。 使用方法的话也很简单 […]

分类
Android Develop

Handler in Android Development

Handler是在Android系统中用来做消息分发和处理的类。在涉及到跨线程调用的时候,可以使用这个组件。 […]

分类
Develop iOS

【转】iOS中的一些宏定义,用于进行log输出定位Bug。

转自:http://www.linuxidc.com/Linux/2012-12/76754.htm 我该如何 […]

分类
Develop iOS

【转】IOS开发之所有类型的UIKeyboardType图片展示

这篇文章很好,用图片展示了所有的UIKeyboardType: IOS开发之所有类型的UIKeyboardTy […]