alexa.com has been Shut Down for website ranking in May 2022, The Best Alternatives

As per Alexa.com the Amazon’s subsidiary company has stopped services on May 1, 2022. The message from Alexa team as below

“Twenty-five years ago, we founded Alexa Internet. After two decades of helping you find, reach, and convert your digital audience, we’ve made the difficult decision to retire Alexa.com on May 1, 2022. Thank you for making us your go-to resource for content research, competitive analysis, keyword research, and so much more.”

The following below other best options to check website global rankings

1: Ahrefs

2: Semrush

3: Similarweb

4: Moz

5: Serpstat

6: Ubersuggest

7: Spyfu

8: Kissmetrics

9: Authoritas

10: Comscore

11: Tranco List

12: Quantcast

13: Website Informer

14: WatchThemLive

15: Majestic

16: Cisco Umbrella

17: Cloudflare Radar

18: SERanking

19: Internet Traffic Report

20: Amazon Quicksight

How Artificial Intelligence can Support Healthcare Industry


Artificial Intelligence (AI) has the potential to revolutionize healthcare in various ways, improving efficiency, accuracy, and patient outcomes.

The following below ways Artificial Intelligence can Support Healthcare Industry

  1. Diagnostic Assistance: Artificial Intelligence can assist healthcare professionals in diagnosing diseases by analyzing medical images (such as X-rays, CT scans, and MRIs) and identifying patterns or anomalies that may be difficult for the human eye to detect.
  2. Predictive Analytics: Artificial Intelligence can analyze patient data to identify patterns and predict potential health issues. This can help in early detection of diseases and enable proactive intervention to prevent or manage conditions effectively.
  3. Personalized Treatment Plans: Artificial Intelligence can analyze large datasets to identify the most effective treatment plans based on individual patient characteristics. This can lead to more personalized and targeted treatment approaches.
  4. Drug Discovery and Development: Artificial Intelligence algorithms can analyze biological data to identify potential drug candidates, significantly accelerating the drug discovery process. This can lead to the development of new treatments for various diseases.
  5. Virtual Health Assistants: Artificial Intelligence powered virtual assistants and chatbots can provide information, answer medical queries, and offer basic healthcare advice. They can also schedule appointments, send medication reminders, and monitor patient progress.
  6. Remote Patient Monitoring: Artificial Intelligence can enable continuous monitoring of patients with chronic conditions through wearable devices and sensors. This real-time data can help healthcare providers track patient health, intervene early, and optimize treatment plans.
  7. Natural Language Processing (NLP): NLP allows computers to understand and respond to human language. In healthcare, NLP can be used to extract valuable insights from unstructured clinical notes, research papers, and patient records, facilitating data analysis and decision-making.
  8. Robotics in Surgery: Artificial Intelligence-powered robotic systems can assist surgeons in performing complex and precise surgeries. These systems can enhance surgical precision, reduce recovery times, and improve overall patient outcomes.
  9. Administrative Efficiency: Artificial Intelligence can streamline administrative tasks, such as appointment scheduling, billing, and coding. This can reduce the administrative burden on healthcare professionals, allowing them to focus more on patient care.
  10. Fraud Detection and Security: Artificial Intelligence can enhance healthcare cybersecurity by identifying and preventing potential security breaches. It can also assist in detecting fraudulent activities related to insurance claims and billing.
  11. Education and Training: Artificial Intelligence applications can be used for medical education and training. Virtual reality (VR) and augmented reality (AR) simulations, powered by AI, can provide realistic training scenarios for healthcare professionals.
  12. Population Health Management: Artificial Intelligence can analyze population health data to identify trends, risk factors, and potential areas for intervention. This can help healthcare organizations in designing public health programs and allocating resources effectively.

Website is displaying HTML in its body instead of the correct content.

The following below reason as Website is displaying HTML in its body instead of the correct content

  1. Server-Side Processing Issue:
    • Check the server logs for any error messages that might indicate problems with processing server-side scripts or generating the HTML content.
    • Ensure that server-side scripting languages (such as PHP, Python, or Ruby) are correctly installed and configured on the server.
    • Verify that the server is not experiencing any issues, and the web server software (e.g., Apache, Nginx) is running properly.
  2. File Extension Mismatch:
    • Ensure that the file extensions of your web pages match the expected extensions for the server to interpret and process correctly (e.g., .html, .php, .aspx).
  3. Incorrect MIME Type:
    • Check that the server is sending the correct MIME type for HTML content. The Content-Type header should be set to “text/html” for HTML pages.
  4. Missing or Misconfigured .htaccess file:
    • If you’re using Apache as your web server, make sure that your .htaccess file (if you have one) is correctly configured. It may be affecting the way files are processed.
  5. Issues with Content Management System (CMS):
    • If the website is built on a content management system (e.g., WordPress, Joomla), ensure that the CMS is installed correctly, and there are no issues with the configuration or theme/template files.
  6. Browser Cache Issue:
    • Clear your browser cache and try accessing the website again. Sometimes, browsers may cache a corrupted version of a page.
  7. Check for Typos and Syntax Errors:
    • Review the HTML code of the affected page for any typos or syntax errors that might be causing the rendering issue.
  8. Database Connection Issues:
    • If the website relies on a database, check for any issues with the database connection. Ensure that the database server is running and that the connection details in your website’s configuration are accurate.
  9. Security Issues:
    • Consider the possibility of a security breach, especially if your website is displaying unexpected content. Ensure that your website’s software, plugins, and themes are up-to-date, and review your server’s security settings.
  10. Contact Hosting Provider:
    • If you’re unable to identify and resolve the issue, consider reaching out to your hosting provider for assistance. They may be able to help diagnose and address server-related problems.

Magento 2.4.6 or Adobe Commerce 2.4.6 Installation Steps in XAMPP

Follow below steps.

Step [1] – System Requirement

Operating system:

Windows 11
Linux x86-64 (such as Red Hat Enterprise Linux, CentOS, Ubuntu, Debian, etc.)
macOS (only for local development environments)

Web server:

Apache 2.4 or later
NGINX 1.18 or later

Database:

MySQL 8.0 or later
MariaDB 10.4 or later

PHP version:

PHP 8.1 or later
Required PHP extensions:

ext-bcmath
ext-ctype
ext-curl
ext-dom
ext-gd
ext-hash
ext-iconv
ext-intl
ext-mbstring
ext-openssl
ext-pdo_mysql
ext-simplexml
ext-soap
ext-xsl
ext-zip
ext-sockets
ext-xml
ext-xmlreader
ext-xmlwriter
lib-libxml (DOMDocument)

In Case XAMPP php.ini – below extensions need to be enabled.

extension=intl
extension=curl
extension=soap
extension=sockets
extension=sodium
extension=xsl
extension=zip
extension=gd


Composer / Elasticsearch

Composer 2.2 or later
Elasticsearch 7.9 or later

Step [2] – Run below script to downland Magento 2.x or Adobe Commerce Repository

composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition:2.4.x

composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition:2.4.6

composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition:2.4.6-p1

composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition:2.4.7

Step [3] – Run below CLI Script

php bin/magento setup:install –base-url=”http://dev.adobeb2b246.com” –db-host=”localhost” –db-name=”adobeb2b246p1″ –db-user=”root” –admin-firstname=”admin” –admin-lastname=”admin” –admin-email=”admin@admin.com” –admin-user=”admin” –admin-password=”admin123″ –language=”en_US” –currency=”INR” –timezone=”America/Chicago” –use-rewrites=”1″ –backend-frontname=”admin” –search-engine=elasticsearch7 –opensearch-host=localhost –opensearch-port=9200 –opensearch-index-prefix=magento2 –opensearch-timeout=15

php bin/magento setup:install 
--base-url="http://dev.adobeb2b246.com" 
--db-host="localhost" 
--db-name="adobeb2b246p1" 
--db-user="root" 
--admin-firstname="admin" 
--admin-lastname="admin" 
--admin-email="admin@admin.com" 
--admin-user="admin" 
--admin-password="admin123" 
--language="en_US" 
--currency="INR" 
--timezone="America/Chicago" 
--use-rewrites="1" 
--backend-frontname="admin" 
--search-engine=elasticsearch7 
--opensearch-host=localhost 
--opensearch-port=9200 
--opensearch-index-prefix=magento2 
--opensearch-timeout=15































Rest of steps as per below link

Magento 2. x or Adobe Commerce Database Tables need to be truncated to increase high speed up Performance.

The following below set of Database tables need be truncated to increase high speed up Performance.

  • dataflow_batch_export,
  • dataflow_batch_import,
  • log_customer,
  • log_quote,
  • log_summary,
  • log_summary_type,
  • log_url,
  • log_url_info,
  • log_visitor,
  • log_visitor_info,
  • log_visitor_online,
  • report_viewed_product_index,
  • report_compared_product_index,
  • report_event,
  • index_event,
  • Catalog_compare_item.

How to Protect template files against XSS attack in Adobe Commerce / Magento 2.x

Cross-site scripting, or XSS, is a security vulnerability that can be found in web applications. This vulnerability allows attackers to inject malicious code/styles into a web page viewed by users. Hackers trying to attack in HTML code to attack / harm files

PHTML templates
An ‘Escaper’ class is provided for .phtml templates and PHP classes responsible for generating HTML. It contains HTML sanitization methods for a variety of contexts.

The following code sample illustrates XSS-safe output in templates:

<?php echo $block->getTitleHtml() ?>
<?php echo $block->getHtmlTitle() ?>
<?php echo $block->escapeHtml($block->getTitle()) ?>
<?php echo (int)$block->getId() ?>
<?php echo count($var); ?>
<?php echo 'some text' ?>
<?php echo "some text" ?>
<a href="<?php echo $block->escapeUrl($block->getUrl()) ?>"><?php echo $block->getAnchorTextHtml() ?></a>

The $block local variable available inside .phtml templates duplicates these methods.

Follow below adobe commerce link to know more details

https://devdocs.magento.com/guides/v2.3/extension-dev-guide/xss-protection.html

How To Get Store Email addresses in Magento 2.x / Adobe Commerce by Programmatically

The following below code to get store Email Address

<?php
namespace John\Mage2db\Controller\Index;

use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Store\Model\ScopeInterface;

class Index extends \Magento\Framework\App\Action\Action
{
    protected $request;
    protected $scopeConfig;

public function __construct(
    \Magento\Framework\App\Action\Context $context,
    \Magento\Framework\App\Request\Http $request,
    ScopeConfigInterface $scopeConfig
){
    parent::__construct($context);
    $this->scopeConfig = $scopeConfig;
    $this->request = $request;
}

public function execute()
{
    $email = $this->scopeConfig->getValue('trans_email/ident_support/email',ScopeInterface::SCOPE_STORE);
    $name  = $this->scopeConfig->getValue('trans_email/ident_support/name',ScopeInterface::SCOPE_STORE);

    echo $email;echo "<br/>";
    echo $name;echo "<br/>";

}

The abovecode provide Store Support Email ID & Name

If you want to do General Email, Sales Email, Customer Support Email, Customer Support Email1 and Customer Support Email2

General :– ident_general

Sales:- ident_sales

Customer Support:- ident_support

Custom Email1:- ident_custom1

Custom Email2:- ident_custom2

Change below line code as per your business need ident_support to ident_general or ident_sales or ident_custom1 or ident_custom2
$email = $this->scopeConfig->getValue('trans_email/ident_support/email',ScopeInterface::SCOPE_STORE);
    $name  = $this->scopeConfig->getValue('trans_email/ident_support/name',ScopeInterface::SCOPE_STORE);

How To Get Region or State List by Country id in Magento 2 / Adobe Commerce

The following below code in your Block of your custom module

Step [1] – Code inside your block / controller / helper file

<?php
/*
 * John_Country

 * @category   Adobe Commerce Region / State List By Country ID
 * @package    Country Form
 * @copyright  Copyright (c) 2023 - Mage2DB.com
 * @Email      johndusa1021@gmail.com
 * @version    1.0.0
 */
namespace John\Country\Model;

use Magento\Directory\Model\Country;
use Magento\Directory\Model\CountryFactory;

class Country
{
/**
* @var Country
*/
public $countryFactory;

public function __construct(
    CountryFactory $countryFactory
) {
    $this->countryFactory = $countryFactory;
}

/**
 * Region / State List By Country ID
 *
 * @return string
 */
Public function getregionsOfCountry($countryCode) {
 $regionCollection = $this->countryFactory->create()->loadByCode($countryCode)->getRegions();
        $regions = $regionCollection->loadData()->toOptionArray(false);
        return $regions;
    }

}

Step [2] – if you have written above code in your Custom Block, call this Block in your custom template.

<?php
/*
 * John_Customercompanycreation

 * @category   Adobe Commerce Region / State List By Country ID
 * @package    Customerregister Form
 * @copyright  Copyright (c) 2023 - Mage2DB.com
 * @Email      johndusa1021@gmail.com
 * @version    1.0.0
 */
?>
<?php
 $countryCode="US";

 echo"<BR><B>Country=</b>".$block->getCountryName($countryCode);

foreach($block->getregionsOfCountry($countryCode) as $key=>$regionlist):

  if($key>0): 
  echo"<BR><b>Region / State ID==".$regionlist['value']."&nbsp;&nbsp;&nbsp;&nbsp;"."Region / State ID==</b>".$regionlist['title'];
  endif;
endforeach;

?>