Video Link: Apache Kafka Crash Course | What is Kafka?
- Knowledge
- Node.JS Intermediate level
- Experience with designing distributed systems
- Tools
- Node.js: Download Node.JS
- Docker: Download Docker
- VsCode: Download VSCode
Video Link: Apache Kafka Crash Course | What is Kafka?
shutdown /s /t xxx :: xxx -> seconds before shutdown |
public static void hideKeyboard(Context context, View view) { | |
InputMethodManager imm = (InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE); | |
imm.hideSoftInputFromWindow(view.getWindowToken(), 0); | |
} |
public File saveBitmapToFile(File file) { | |
try { | |
// BitmapFactory options to downsize the image | |
BitmapFactory.Options o = new BitmapFactory.Options(); | |
o.inJustDecodeBounds = true; | |
o.inSampleSize = 6; | |
// factor of downsizing the image | |
FileInputStream inputStream = new FileInputStream(file); |
import androidx.annotation.NonNull; | |
import androidx.appcompat.app.AppCompatActivity; | |
import androidx.camera.core.Camera; | |
import androidx.camera.core.CameraSelector; | |
import androidx.camera.core.ImageAnalysis; | |
import androidx.camera.core.ImageCapture; | |
import androidx.camera.core.ImageCaptureException; | |
import androidx.camera.core.Preview; | |
import androidx.camera.extensions.HdrImageCaptureExtender; | |
import androidx.camera.lifecycle.ProcessCameraProvider; |
inputStream.close(); | |
outputStream.close(); | |
Uri copyImage = Uri.fromFile(copyImageFile); |