Friday, March 12, 2021

Flutter: Enable Flutter Outline view in Adroid Studio

 

  1. Android Studio > Preferences > Languages & Frameworks > Flutter > App Execution > Open Flutter Inspector view on launch.
  2. Close and Relaunch Android Studio > Open any Flutter Project > Open iOS Simulator or Android Emulator and Run Debug Mode.

Flutter: Configure Web Firebase

<script src="https://www.gstatic.com/firebasejs/8.3.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.0/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.0/firebase-auth.js"></script>

<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyBMrhRJqdZBjqgOMjw-2lcsiIAyA5na3VU",
authDomain: "fir-project-e1016.firebaseapp.com",
databaseURL: "https://fir-project-e1016-default-rtdb.firebaseio.com",
projectId: "fir-project-e1016",
storageBucket: "fir-project-e1016.appspot.com",
messagingSenderId: "65139327059",
appId: "1:65139327059:web:1a6472ddc7655c174d46a6",
measurementId: "G-LH4D913KNT"
};
// Initialize Firebase

firebase.initializeApp(firebaseConfig);
firebase.analytics();
firebase.firestore();
</script>

Flutter: Running with unsound null safety

 

Update pubspec.yaml

analyzer:

  enable-experiment:
- non-nullable

environment:
sdk: '>=2.12.0 <3.0.0'

Thursday, March 11, 2021

Configure Apache Virtual Host SSL & Virtual Host None SSL

 <VirtualHost *:443>

        ServerName xxx.com

        ServerAlias www.xxx.com


        DocumentRoot /var/www/xxx.com


        SSLEngine on

        SSLCertificateFile /etc/ssl/certs/xxx.crt

        SSLCertificateKeyFile /etc/ssl/private/xxx.key


    <Directory /var/www/ktechglobe.com>

        Options Indexes FollowSymLinks MultiViews

        AllowOverride All

        Require all granted

    </Directory>


        ErrorLog ${APACHE_LOG_DIR}/error.log

        CustomLog ${APACHE_LOG_DIR}/access.log combined



</VirtualHost>


<VirtualHost *:80>


        ServerName xxx.com

        ServerAlias www.xxx.com

        #ServerAdmin webmaster@localhost

        DocumentRoot /var/www/xxx.com

        #Redirect permanent / https://www.xxx.com/

    <Directory /var/www/ktechglobe.com>

        Options Indexes FollowSymLinks MultiViews

        AllowOverride All

        Require all granted

    </Directory>



        ErrorLog ${APACHE_LOG_DIR}/error.log

        CustomLog ${APACHE_LOG_DIR}/access.log combined


</VirtualHost>

Monday, March 8, 2021

Flutter: d8: cannot fit requested classes in a single dex file

Solution to fixed: d8-cannot-fit-requested-classes-in-a-single-dex-file 

android {

    defaultConfig {
        ...
        multiDexEnabled true
    }
    ...
}

dependencies {
  implementation 'com.android.support:multidex:1.0.3'
}

Saturday, August 3, 2019

Xcode Uncategorized Command Codesign Failed With a Nonzero Exit Code

For me following steps worked:
  1. Quit Xcode.
  2. Open Terminal.
  3. Typed Command xattr -rc /Users/manabkumarmal/Desktop/Projects/MyProjectHome
  4. Open Xcode.
  5. Cleaned.
  6. Now worked and No Error.

Friday, July 5, 2019

Remote MYSQL Timeout (Ubuntu)

Run this:
netstat -plant|grep ":3306"|grep "LISTEN"
If it comes back with something like this:
tcp        0      127.0.0.1:3306              0.0.0.0:*               LISTEN      1881/mysql
This means that it's bound to local only. To fix this, follow the appropriate guide below for your distro.
If it shows something like this:
tcp        0      0.0.0.0:3306              0.0.0.0:*               LISTEN      1881/mysql
This means it's a firewall issue. Follow the Firewall guide below for your distro.