By default Piwik uses the provider location to guess a visitor's country based on the language they use. This is not very accurate, so they recommend installing and using GeoIP.
- Ubuntu server
- libgeoip-dev
- Nginx
- Nginx minimal website
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
A quick list of tools for building HTML/CSS/JS apps that work well offline. Ping me at @nolanlawson if I missed anything!
Tools for bundling your HTML/CSS/JS into a native app.
function shouldTextBeBlack (backgroundcolor) { | |
return computeLuminence(backgroundcolor) > 0.179; | |
} | |
function computeLuminence(backgroundcolor) { | |
var colors = hexToRgb(backgroundcolor); | |
var components = ['r', 'g', 'b']; | |
for (var i in components) { | |
var c = components[i]; |
[ | |
{ | |
"key": "ctrl+shift+n", | |
"command": "workbench.action.terminal.new" | |
}, | |
{ | |
"key": "ctrl+shift+right", | |
"command": "workbench.action.terminal.focusNext" | |
}, | |
{ |