Page 7 of 9

Disable same-origin policy in Chrome

Start chrome or chromium in Linux using following command: chromium-browser –disable-web-security google-chrome –disable-web-security

Install MySql in macOS step by step

Step 1:Install MySql with the help of homebrew. If it is not installed in your system. You can install it from here. Step 2: Run the below command from the terminal. brew install mysql Step 3:set the path of MySQL… Continue Reading →

How to install Apache in mac OS step by step

If you are trying to install Apache in Mac OS use the below step by step tutorial. Step 1: Install Apache with the help of homebrew. If it is not installed in your system. You can install it from here…. Continue Reading →

Install python in mac OS step by step

Step 1:Install Python with the help of homebrew. If it is not installed in your system. You can install it from here.https://mybeliefs.in/install-homebrew-package-manager-in-macos/ Step 2:Run the below command in the terminal to install python3 in your system. brew install python3

Install Homebrew package manager in macOS

Homebrew is a powerful package manager like apt in Ubuntu. With the help of homebrew you can install packages from the terminal quickly. Run the below command from the terminal to install homebrew package manager. ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”… Continue Reading →

One hot encoding in python

If you are working in machine learning then I am sure you will need this code many times. Use the below piece of code for one hot encoding. cat_vars=[‘LeadSource’,’Products__c’,’Service_Offering__c’] for var in cat_vars: cat_list=’var’+’_’+var cat_list = pd.get_dummies(dataset2[var], prefix=var) dataset3=dataset3.join(cat_list) cat_vars=[‘LeadSource’,’Products__c’,’Service_Offering__c’]… Continue Reading →

Enable email notification in redmine

Redmine is a free opensource project management tool. You can host it on your own server and can do all the customization and configuration. In this post, we will discuss how to enable the email notification in redmine, follow the… Continue Reading →

Check all the installed modules in your python environment

If you want to check that which modules or packages are installed in your python environment, use below command in terminal. pip3 freeze

Show or Send Desktop Notification in Python

Use below code to send the desktop notification. As a software engineer, you can use this script to send a notification to desktop when your background running script reaches to its end or it throws an error that needs your… Continue Reading →

Pandas read_csv low_memory and dtype options

If you are getting low memory error while trying to upload a large CSV file in the pandas data frame, you can use below line to import to a csv file with argument low_memory False. It will work for you…. Continue Reading →

« Older posts Newer posts »

© 2024 My Beliefs

Write us at [email protected]