- Go to Firebase's Dashboard >
Develop
>Hosting
>Connect Domain
. - Enter the custom domain that you'd like to connect to your Hosting site.
- (Optional) Check the box to redirect of all requests on the custom domain to a second specified domain.
- Click Continue to initiate the validation process.
- Go to Namecheap's Dashboard >
Domain List
>Manage
>Advanced DNS
. - Under
Host Records
, add a new record with:
Source: StackOverflow, StackOverflow
Question: How to Apply Color LUT to bitmap images for filter effects in Android?
Answer:
final static int X_DEPTH = 64;
final static int Y_DEPTH = 64; //One little square in the LUT has 64x64 pixels in it
final static int ROW_DEPTH = 8;
Source: Francesco Cervone, Florina Muntenescu, Android Architecture Blueprint
-------- ------------- ---------
| View | <----> | Presenter | ----> | Model |
-------- ------------- ---------
General Info Useful Commands FFmpeg Docs
1. -y
: Overwrite output files without asking.
Source: GitHub
Question: How to use FFmpeg built by VPlayer (version 0.3.2 at the time I write this Gist) in Android Studio?
Answer This will take the FFmpeg built from here and use it as a library for our project in Android Stuio in Window 10.
- Download NDK from here, uncompress it to anywhere you want (
C:\Users\Viet\AppData\Local\Android\ndk\android-ndk-r11c
in my case). - Copy the whole
VPlayer_lib
folder build from here into the root of your project. - In Android studio, click on
app -> F4 -> SDK Location -> Android NDK location
. - Edit/create
gradle.properties
file in the root folder of your project withandroid.useDeprecatedNdk=true
.
Source: StackOverflow
Question: How to scale Bitmap
without losing much quality
Answer: Use Matrix
instead of Bitmap.createScaledBitmap()
/**
* @param bitmap the Bitmap to be scaled
* @param threshold the maxium dimension (either width or height) of the scaled bitmap
Source: StackOverflow
Question: Regular Expression to find a string included between two characters while EXCLUDING the delimiters
Answer:
Easy done:
(?<=\[)(.*?)(?=\])
Source: StackOverflow
Question: How do I save Bitmap to extrenal storage in Android?
Answer:
Use this function to save your bitmap in SD card:
public void saveTempBitmap(Bitmap bitmap) {
if (isExternalStorageWritable()) {
Source: Me, GitHub, following this for update GitHub
Question: How to fucking add JavaCV to Android Studio so I can use the fucking annoying FFmpeg?
Answer: This tut will use JavaCV 1.1, version 1.2 currently has SIGSEGV issue. JavaCV 1.1 comes with FFmpeg 2.8.1.
- Obtain the prebulit binaries here.
- Extract it and copy these files:
- javacpp.jar (essential).
- javacv.jar (essential).