I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.renderscript.Allocation; | |
| import android.renderscript.Element; | |
| import android.renderscript.RenderScript; | |
| import android.renderscript.ScriptIntrinsicBlur; | |
| import com.squareup.picasso.Transformation; | |
| public class BlurTransform implements Transformation { |
| # | |
| # This will force ActiveRecord to create proper `interval` column types in PostgreSQL | |
| # | |
| # def change | |
| # add_column :leases, :period, :interval | |
| # end | |
| # | |
| # This applies to a generated `schema.rb` file too. | |
| # | |
| # No special OID type is applied to an `interval` type. Rails will treat it as a string, although |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| public class SquaredImageView extends ImageView { | |
| public SquaredImageView(Context context) { | |
| super(context); | |
| } |
After finding a lot of other posts on the topic that didn't work out for me this one did the trick so I'm reposting for my own sense of self preservation.
Copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.
sudo cp \
/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist \
| configurations { | |
| apt | |
| } | |
| dependencies { | |
| compile 'com.squareup.dagger:dagger:1.1.0' | |
| apt 'com.squareup.dagger:dagger-compiler:1.1.0' | |
| } | |
| android.applicationVariants.all { variant -> |
| import java.io.IOException; | |
| import java.io.UnsupportedEncodingException; | |
| import java.net.HttpURLConnection; | |
| import java.security.MessageDigest; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.util.HashMap; | |
| import com.google.common.base.CharMatcher; | |
| import com.google.common.base.Joiner; | |
| import com.google.common.base.Splitter; |
For example xhdpi will be the reference for Android design and then we will able to export to ldpi, mdpi, hdpi and xxhdpi with only one click.
The export function creates a folder for each format named (ldpi, mdpi, hdpi, xhdpi, xxhdpi...) and each slice wil be resized like that :
| package com.readystatesoftware.views; | |
| import android.content.Context; | |
| import android.graphics.Rect; | |
| import android.util.AttributeSet; | |
| import android.widget.LinearLayout; | |
| public class FittingLinearLayout extends LinearLayout { | |
| public FittingLinearLayout(Context context, AttributeSet attrs, int defStyle) { |
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical" > | |
| <FrameLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="0dp" | |
| android:layout_weight="1" > |