之所以會寫這份文件是因為想要記錄一下弄了好幾天的iAP Server驗證終於做出來了,後來才發現其實好簡單 …
廢話不多說,就直接開始吧
- 先有一個iAP的流程,反正就是要可以買就是了,然後在購買成功的時候會呼叫
- (void)completeTransaction:(SKPaymentTransaction*)transaction才對,而整個流程就是在這個裡面處理。 - Apple送過來的東西基本上要轉成Base64才可以work,而轉換的程式碼是:
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |
| # source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list | |
| # A list of available STUN server. | |
| stun.l.google.com:19302 | |
| stun1.l.google.com:19302 | |
| stun2.l.google.com:19302 | |
| stun3.l.google.com:19302 | |
| stun4.l.google.com:19302 | |
| stun01.sipphone.com | |
| stun.ekiga.net |
| #!/bin/sh | |
| # | |
| # puma - this script starts and stops the puma daemon | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Description \ | |
| # goes here... | |
| # processname: puma | |
| # config: /etc/puma.conf | |
| # pidfile: /home/stanislaw/apps/micro-apps/puma/puma.pid |
在 Web 上应用字体是一项基本技术,同时也是一门艺术。对于英文字体来说可选择的范围实在是太广泛了,合理的使用它们将会为你的网站增色不少。关于英文字体的使用和搭配技巧,在这里不做赘述,只推荐一套非常好的视频:Fundamentals of Design by CodeSchool
而真正的挑战在于中文字体,由于中文字体组成的特殊性导致其体积过于庞大,除了操作系统内置的字体之外,我们很难在网站上应用其他的字体。在可选性很差的前提之下,如何正确的使用中文字体呢?
首先,以下的字体声明都是很糟糕的,切忌使用:
font-family: "宋体";under the replication, how deprecated mongodb --auth option instead use network security strategies
As compiled by Kevin Wright a.k.a @thecoda
(executive producer of the movie, and I didn't even know it... clever huh?)
please, please, please - If you know of any slides/code/whatever not on here, then ping me on twitter or comment this Gist!
This gist will be updated as and when I find new information. So it's probably best not to fork it, or you'll miss the updates!
Monday June 16th