Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.
As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.
Here's how to get it set up on Mac OS X:
OpenConnect can be installed via homebrew:
brew update
brew install openconnect
import android.content.Context; | |
import android.graphics.drawable.Drawable; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Checkable; | |
import android.widget.LinearLayout; |
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
// Tested with gradle 1.7 and android plugin 0.5.6 | |
// [..] Your gradle build script | |
// Copy *.so files from libs/ folder of your project to native-libs folder | |
// Adjust if your native libraries are somewhere else.. | |
task copyNativeLibs(type: Copy) { | |
from(new File(project(':yourproject').projectDir, 'libs')) { include '**/*.so' } |
#!/bin/bash | |
VERSION=1.4.3.9 | |
echo '[CMD] Install dependencies' | |
sudo apt-get install -y libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make | |
echo '[CMD] Downlaod openresty' | |
wget http://openresty.org/download/ngx_openresty-${VERSION}.tar.gz | |
echo '[CMD] Build openresty' |
RecyclerView
does not have an OnItemClickListener like it's predecessor, ListView
. However, detecting item clicks is pretty simple.
Set an OnClickListener
in your ViewHolder
creation:
private class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
public static class ViewHolder extends RecyclerView.ViewHolder
This Android Studio Theme (or IntelliJ in general) is based on many IDEs.