Zend Anwar

Full stack web developer

Notice: unserialize(): Unexpected end of serialized data in Magento 2 data migration

Just follow the following step. Go to /yii/caching/CCache.php file and replace with following code. $value=unserialize($value); Change to : $value=unserialize(base64_decode($value)); It will work fine. hope so  

Read More

magento 2 not working after the command bin/magento setup:di:compile

Very simple. please run following command:   php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush 🙂

Read More

Deprecated: The each() function is deprecated. C:\xampp\apps\magento\htdocs\vendor\colinmollenhour\cache-backend-file\File.php on line 81

This is probably because you use php 7.2 which Magento doesn’t support currently, even in 2.3 pre-release. You can downgrade to php 7.1.X and use Magento 2.2.X or downgrade to php 7.0.7.X and use Magento 2.1.X.

Read More

django.db.utils.OperationalError: no such table: auth_user

just run below command from root directory.>>>python manage.py migrate

Read More

scrapy version check with CLI mode

It’s very simple, just run below command.>>> scrapy version

Read More

New Features in Magento 2.3

1. Progressive Web Apps 2. Page Builder 3. GraphQL 4. Declarative Database Schema 5. Google ReCAPTCHA 6. Multi-Source Inventory 7. Asynchronous API 8. Import/Export Improvements 9. Two Factor Authentication

Read More

How many design patterns in Magento 2?

Magento has a total of 12 design patterns. These patterns are given below: Factory Pattern Singleton Pattern Model View Controller Pattern Front Controller Pattern Registry Pattern Prototype Pattern Iterator Pattern Object Pool Pattern Service Locator Pattern Lazy Loading Pattern Observer Pattern Module Pattern  

Read More

how to open Jupyter notebook in chrome on windows

Just make chrome as a default browser and launch the jupyter . It will work

Read More

Expectation find out with pyhton

The expected value of a random variable X is given by: E ( X ) =∑xi pi E(X) = 1( 1/6 ) + 2( 1/6 ) + 3( 1/6 ) + 4( 1/6 ) + 5( 1/6 ) + 6( 1/6 ) = 3.5 In python >>> import numpy as np integer = [1, 2, […]

Read More

anaconda mysqldb install

Just run following command conda install -c anaconda mysql-python

Read More