Monday, June 25, 2018

Notes about a few common codecs

Below given is a compilation of various codecs.



Sunday, June 24, 2018

Android - How to hide app icon



references:
https://readyandroid.wordpress.com/hideunhide-app-icon-programmatically-android/

Nginx How to specify the certificate chain

Providing the certificate chain is pretty easy.


Git find which branch contains a commit

to find which branches in a repo contains a commit with given commit id, below command can be used

git branch --contains  

for e.g.

git branch --contains e1eb22f630a659c0ce1eb22f630a659c0c

Type of AWS load balancing

Application Load Balancer
Application Load Balancer is best suited for load balancing of HTTP and HTTPS traffic and provides advanced request routing targeted at the delivery of modern application architectures, including microservices and containers. Operating at the individual request level (Layer 7), Application Load Balancer routes traffic to targets within Amazon Virtual Private Cloud (Amazon VPC) based on the content of the request.

Network Load Balancer
Network Load Balancer is best suited for load balancing of TCP traffic where extreme performance is required. Operating at the connection level (Layer 4), Network Load Balancer routes traffic to targets within Amazon Virtual Private Cloud (Amazon VPC) and is capable of handling millions of requests per second while maintaining ultra-low latencies. Network Load Balancer is also optimized to handle sudden and volatile traffic patterns.

Classic Load Balancer
Classic Load Balancer provides basic load balancing across multiple Amazon EC2 instances and operates at both the request level and connection level. Classic Load Balancer is intended for applications that were built within the EC2-Classic network.

references:
https://aws.amazon.com/elasticloadbalancing/?sc_channel=PS&sc_campaign=acquisition_IN&sc_publisher=google&sc_medium=load_balancing_b&sc_content=aws_load_balancer_e&sc_detail=aws%20load%20balancer&sc_category=load_balancing&sc_segment=159808182919&sc_matchtype=e&sc_country=IN&s_kwcid=AL!4422!3!159808182919!e!!g!!aws%20load%20balancer&ef_id=WNq5gAAAAI0yW6dy:20180625011629:s

Wednesday, June 13, 2018

Flutter get started - Installation

This below gives some notes from my attempt to get Started with installation on Mac OSX.
Does not seem like a heavy system requirement for installing the SDK, which is great.

It asked to download the SDK which is a zip file. and extract it and add it to the tool path.
Then a series of instruction as mentioned in the link was followed and basically got the app running
the first app that i could run was flutter gallery. Amazing to say in one word! rich set of ui components


export PATH=`pwd`/flutter/bin:$PATH

Set up the iOS simulator

open -a Simulator
brew update
brew install --HEAD libimobiledevice
brew install ideviceinstaller ios-deploy cocoapods
pod setup

tried to directly run it was not working in Xcode
but then ran the flutter run command and then opened in the Xcode using the workspace and it worked.

references:
https://flutter.io/get-started/

What is bearer token authentication

Bearer authentication (also called token authentication) is an HTTP authentication schemethat involves security tokens called bearer tokens. The name “Bearer authentication” can be understood as “give access to the bearer of this token.” The bearer token is a cryptic string, usually generated by the server in response to a login request. The client must send this token in the Authorization header when making requests to protected resources:

Authorization: Bearer

The Bearer authentication scheme was originally created as part of OAuth 2.0 in RFC 6750, but is sometimes also used on its own. Similarly to Basic authentication, Bearer authentication should only be used over HTTPS (SSL).

references:
https://swagger.io/docs/specification/authentication/bearer-authentication/