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.

Friday, June 28, 2019

Swift Alamofire get response from JSON

                   
                    Alamofire.request(stringURL, method: .post, parameters: requestContents, encoding: JSONEncoding.default)
                        .responseJSON { response in
                           

                            do {
                                var json = try! JSON(data: response.data!)
                                let countlastrinfo = json["latest_receipt_info"].count
                             
print(json["latest_receipt_info"][1])
                                print("count: \(countlastrinfo)")
                                print(json["latest_receipt_info"][countlastrinfo-1])
                               
                             
                               
                             }catch{
                               
                            }
                           
                            if let value = response.result.value as? NSDictionary {
                                let latest_receipt_info = value.object(forKey: "latest_receipt_info")!
                                print(latest_receipt_info)
                               
                            } else {
                                print("Receiving receipt from App Store failed: \(response.result)")
                            }
                    }

Thursday, June 13, 2019

Wednesday, June 5, 2019

Fixed : break com.apple.commcenter.coretelephony.xpc (Validate Firebase)



Fixed : break com.apple.commcenter.coretelephony.xpc

Terminal MAC: 

xcrun simctl spawn booted log config --mode "level:off"  --subsystem com.apple.CoreTelephony