Author: FastBikri Team

How to format date from one format to another format in JAVA?

public static String formateDateFromstring(String inputFormat, String outputFormat, String inputDate){ Date parsed = null; String outputDate = ""; SimpleDateFormat df_input = new SimpleDateFormat(inputFormat, java.util.Locale.getDefault()); SimpleDateFormat df_output = new SimpleDateFormat(outputFormat, java.util.Locale.getDefault()); try { parsed = df_input.parse(inputDate); outputDate = df_output.format(parsed); } catch (ParseException e) { } return outputDate; } Usage: String inputdate="01-JAN-2021"; String convertedDate = formateDateFromstring( "dd-MMM-yyyy", "dd/MM/yyyy",

Laravel 8 & AdminLTE

composer global require laravel/installer laravel new example-app cd example-app Create database update .env file php artisan migrate:fresh composer require infyomlabs/laravel-ui-adminlte php artisan ui adminlte php artisan ui adminlte –auth npm install && npm run dev src: https://levelup.gitconnected.com/integrating-adminlte-3-and-laravel-8-51c1555efa60 In .env added APP_URL=http://localhost:8000 MIX_ASSET_URL=http://localhost:8000 MIX_ASSET_URL=http://localhost/example-app/public/ In config/app.php 'mix_url' => env('MIX_ASSET_URL', null) https://stackoverflow.com/questions/65492953/wrong-laravel-mix-rewrite-url-path-when-place-project-in-subfolder

Settings Activity Preferences.xml

AndroidManifest.xml <activity android:name=".SettingsActivity" android:parentActivityName=".MainActivity2" /> SettingsFragment.java package com.zakasoft.newspaperbd; import android.os.Bundle; import androidx.preference.PreferenceFragmentCompat; public class SettingsFragment extends PreferenceFragmentCompat { @Override public void onCreatePreferences(Bundle savedInstanceState, String s) { addPreferencesFromResource(R.xml.preferences); // implement your settings here } } SettingsActivity.java package com.zakasoft.newspaperbd; import android.os.Bundle; import androidx.preference.PreferenceFragmentCompat; public class SettingsFragment extends PreferenceFragmentCompat { @Override public void onCreatePreferences(Bundle savedInstanceState, String s) {

Best Domestic Airlines in Bangladesh

Are you looking for the best domestic airlines in Bangladesh? If the answer is yes, you are in the right place where you will know about the best domestic airlines in Bangladesh. Domestic flights are flights that take place within a country’s borders. Airlines are capable of transporting passengers as well as cargo. For military

How to develop a Flip Coin App in Android Studio

In this tutorial, you will learn how to develop a flip coin app in Android Studio. Download the live app from https://play.google.com/store/apps/details?id=com.zakasoft.flip Manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.zakasoft.flip"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>