How to create QR code in Python

What is a QR Code in nutshell?

A Quick Response code is a two-dimensional pictographic code used for its fast readability and comparatively large storage capacity. The code consists of black modules arranged in a square pattern on a white background. The information encoded can be made up of any kind of data (e.g., binary, alphanumeric)its very simple on console (tested on mac, debian and ubuntu latest OS)below command will install all required module including pil (Python Imaging Library):pillow pip...

Read more...

Visualization of DataSet is fun in Orange

 

Visualizing Data Set is fun using Orange

Introduction:

Data has become powerful source of earning and predict future and people will seek to utilize it even if they don’t know exactly how. Machine learning will become a usual part of programmer’s resume, data scientists will be as common as accountants. Now a days and for the next approximately two decades, we will continue to see a major need for machine learning and data science specialists to help apply machine learning technologies to...

Read more...

How to Connect LCD to Raspberry PI

This code will tested on this product of iotwebplanet. sudo rm -rf LCD-show git clone https://github.com/vivekaris/LCD-show.git chmod -R 755 LCD-show cd LCD-show/ Then Run Following command as per you screen size.In case of 2.8" LCD sudo ./LCD28-showIn case of 3.2" LCD sudo ./LCD32-showIn case of 3.5" GPIO Display sudo ./LCD35-showIn case of 3.5" HDMI Display-MPI3508 sudo ./MPI3508_480_320-show or sudo ./MPI3508_600_400-show or sudo ./MPI3508_720_480-show or sudo ./MPI3508_810_540-show or sudo ./MPI3508_960_640-showIn case of 3.5" DPI Display-MPI3510 sudo ./MPI3510-showIn case of 3.97" LCD sudo ./LCD397-showIn case of 4.3" LCD sudo ./LCD43-showIn case of 5" LCD sudo ./LCD5-showIn case of 7inch(B)-800X480 RPI LCD sudo ./LCD7B-showIn...

Read more...

How to display indian currency properly in pdf in Magento 2.x

Download the font that support Indian Rupee symbol. please download dejavu-sans font. copy  DejaVuSans.ttf place the above font folder in lib/LinLibertineFont/ directory../vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php./vendor/magento/module-sales/Model/Order/Pdf/Items/AbstractItems.php $font = \Zend_Pdf_Font::fontWithPath( // $this->_rootDirectory->getAbsolutePath(‘lib/internal/LinLibertineFont/LinLibertine_Re-4.4.1.ttf’) $this->_rootDirectory->getAbsolutePath(‘lib/internal/LinLibertineFont/DejaVuSans.ttf’) ); (in _setFontRegular(), _setFontBold(), _setFontItalic() functions in both files.)

Read more...