Start Terminal.app and type:
sudo nvram boot-args="kext-dev-mode=1"
Verify that command works by typing:
sudo nvram -p | grep -i boot-args
*SHA256–Bit Hash Java Example* | |
import java.security.MessageDigest; | |
import java.security.SignatureException; | |
String sourceString = ...; // shared secret + fields in correct format | |
String hash = sha256Digest(sourceString); | |
public String sha256Digest (String data) throws SignatureException { | |
return getDigest(“SHA-256”, data, true); | |
} |
# ~/Library/Rime/default.custom.yaml | |
patch: | |
menu/page_size: 5 | |
recognizer/patterns/yuncheng123: "^yuncheng[0-9]+$" | |
recognizer/patterns/yunchengime: "^yuncheng[-_.0-9]*$" | |
recognizer/patterns/xiang123: "^xiang[0-9]+$" | |
recognizer/patterns/xiangime: "^xiang[-_.0-9]*$" | |
recognizer/patterns/xuxiang123: "^xuxiang[0-9]+$" | |
recognizer/patterns/xuxiangime: "^xuxiang[-_.0-9]*$" |
1. Hello World! | |
git log | |
git checkout 9b9380ba22cd3f1d0974abeea9738fa60ef96a2e | |
2. bug | |
git checkout origin/bug | |
3. LinusTorvalds2014 | |
git log cool.cpp | |
git blame cool.cpp | |
git branch -a | |
git checkout origin/LinusTorvalds2014 |
<form action="http://v0.api.upyun.com/rbtest/" method="post" enctype="multipart/form-data"> | |
<%= upyun_form_input_tag(:return_url => new_post_path) %> | |
<input type="file" name="file" /> | |
<button type="submit">上传图片</button> | |
</form> |
We will be setting up a Ruby on Rails development environment on Mac OS X 10.10 Yosemite.
First, we need to install Homebrew. Homebrew allows us to install and compile software packages easily from source. Homebrew comes with a very simple install script. When it asks you to install XCode CommandLine Tools, say yes. Open Terminal and run the following command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
GitHub上发现OSX下一个Trello的第三方开源客户端Trello.app,实际是一个webview的实现。 可以尝试把访问的地址改成其他网站,找到关键语句:
NSString *urlAddress = @"https://trello.com/login/";
把这段代码替换成其他URL
NSString *urlAddress = @"https://xxx.com/";
另外使用Xcode编译项目时,需注意设置应用图标。
$> mysqladmin variables -u user -p
This will display the current variables, in this case max_allowed_packet, and as someone said in another answer you can set it temporarily with
$> mysql -u user -p
mysql> SET GLOBAL max_allowed_packet=1072731894
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>