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.
| private static OkHttpClient getUnsafeOkHttpClient() { | |
| try { | |
| // Create a trust manager that does not validate certificate chains | |
| final TrustManager[] trustAllCerts = new TrustManager[] { | |
| new X509TrustManager() { | |
| @Override | |
| public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { | |
| } | |
| @Override |
| /*** | |
| Copyright (c) 2013 CommonsWare, LLC | |
| Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| use this file except in compliance with the License. You may obtain a copy | |
| of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required | |
| by applicable law or agreed to in writing, software distributed under the | |
| License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | |
| OF ANY KIND, either express or implied. See the License for the specific | |
| language governing permissions and limitations under the License. | |
| */ |
| 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 :