You can even run Python3 alongside a concurrent Python 2.7 installation without affecting the version 2.7 installation.

How we can do it?

1. Download the most recent package from the Python website and install latest package on your Mac.

2. Run terminaland write a command:

$ python --version
Python 2.7.6

$ python3 --version
Python 3.9.6

$ alias python=python3
$ python --version Python 3.9.6 #here your version latest to Python

 In regards to deleting the symbolic links Python2.7, I found this to be useful.

find /usr/local/bin -lname '../../../Library/Frameworks/Python.framework/Versions/2.7/*' -delete

 Now job done, try write in terminal $ python --version and you should be look Python 3.9.x

Same situation with pip, if you write in terminal $pip list and look $bash pip: command not found

Open the terminal and write

$ alias pip=pip3

$ pip --version
pip 21.1.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

 Jobe done and now you can write pip or pip3 - it's same like simlink.

Last modified on Wednesday, 07 July 2021 10:33

Remove CleanMyMac X HealthMonitor.app

Rm -rf ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X HealthMonitor.app

Add a read-only permission to CleanMyMac X HealthMonitor.app

Mkdir ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X HealthMonitor.app
Chmod 444 ~/Library/Application Support/CleanMyMac Setapp/CleanMyMac X HealthMonitor.app
Friday, 22 November 2019 08:50

How to change your version of your Mac OS?

  • Open Terminal and enter
    sudo nano /System/Library/CoreServices/SystemVersion.plist

    and enter your admin password.
  • Change the two strings "10.11" to "10.12". Leave the minor version number (e.g. 0, 1, 2...) like it is. Hit ctrlO and Enter to write the file to disk.
  • Hit ctrlX to quit nano
Last modified on Friday, 22 November 2019 08:53

I have Gutenberg plugin installed in WordPress and am trying to remove the CSS:

<link rel='stylesheet' id='wp-block-library-css'  href='http://site.loc/wp-includes/css/dist/block-library/style.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='wp-components-css'  href='http://site.loc/wp-includes/css/dist/components/style.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='wc-block-style-css'  href='http://site.loc/wp-content/plugins/woo-gutenberg-products-block/build/style.css' type='text/css' media='all' />

I am use this code to to remove default style.

function my_deregister_styles_and_scripts() {
    wp_dequeue_style('wp-block-library');
    wp_dequeue_style('wc-block-style');
}
add_action( 'wp_print_styles', 'my_deregister_styles_and_scripts', 100 );

 

Last modified on Saturday, 13 July 2019 15:10

Tired of the message “Hola! Please activate your copy of Visual Composer to receive automatic updates.”? Add this code to you child_theme/function.php

setcookie('vchideactivationmsg', '1', strtotime('+3 years'), '/');
setcookie('vchideactivationmsg_vc11', (defined('WPB_VC_VERSION') ? WPB_VC_VERSION : '1'), strtotime('+3 years'), '/');

Looks super! keep it up

Last modified on Tuesday, 30 April 2019 11:02

Today, Magento is releasing new versions of Magento Commerce and Open Source to increase product security, performance and functionality:

  • Magento Commerce and Open Source 2.3.1
  • Magento Commerce and Open Source 2.2.8
  • Magento Commerce and Open Source 2.1.17
  • Magento Commerce 1.14.4.1
  • Magento Open Source 1.9.4.1
  • SUPEE-11086 to patch earlier Magento 1.x versions
Last modified on Wednesday, 27 March 2019 05:48

Open function.php and add this code:

// change counts at blog pages
add_filter('widget_tag_cloud_args', 'tag_widget_limit'); 
function tag_widget_limit($args){
 if(isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag'){
  $args['number'] = 300; //Limit number of tags
 }
 return $args;
}

// change counts in Woocomerce
function custom_woocommerce_tag_cloud_widget() {
    $args = array(
        'number' => 500,
        'taxonomy' => 'product_tag'
    );
    return $args;
}
add_filter( 'woocommerce_product_tag_cloud_widget_args', 'custom_woocommerce_tag_cloud_widget' );

 

Last modified on Wednesday, 20 March 2019 14:52

Where does MacBook save Sierra OS update files?

Open the Finder and press Ctrl + Shift + G and run command:

/Library/Updates​​​​​​​​​​​​​​​​​​
Last modified on Friday, 15 March 2019 13:48