To fix the problem with matplotlib in some of coursera assignments with AttributeError: 'Polygon' object has no property 'normed'
we just need to chage normed=True
with density=True
That's all you need.
To fix the problem with matplotlib in some of coursera assignments with AttributeError: 'Polygon' object has no property 'normed'
we just need to chage normed=True
with density=True
That's all you need.
run the following code in the console and it will prevent you from disconnecting.
function ClickConnect(){
console.log("Working");
document.querySelector("colab-toolbar-button#connect").click()
}
setInterval(ClickConnect,60000)
#!/bin/bash | |
now=`date +"%Y-%m-%d"` | |
directory=~/Documents//Overleaf/backup | |
outputTmpDirectory=$directory/tmp.zip | |
outputDirectory=$directory/$backup.zip | |
# To get the cookie | |
cookie=`python - << EOF | |
import re | |
# pip install mechanize |
When trying to install ROOT I ran into this error
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
To solve the problem I had to re-install developer toolkit
xcode-select --install
In case this doesn't work you can force reset.
# Step 1: Download the pre-built ROOT tarball from GitHub Releases | |
!wget -q --show-progress https://github.com/MohamedElashri/ROOT/releases/download/v6.30.04_python11/root_v6.30.04_Ubuntu_Python3.11.zip | |
# Step 2: Extract the ROOT files | |
!unzip -q root_v6.30.04_Ubuntu_Python3.11.zip | |
# Step 3: Install missing system dependencies for ROOT | |
!sudo ldconfig & apt-get install -y git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev tar gfortran subversion libpython3.11-dev |
import timeit | |
code_to_test = """ | |
a = range(100000) | |
b = [] | |
for i in a: | |
b.append(i*2) | |
""" |
Add this to .zshrc
by
runnning nano .zshrc
Add this to the file
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
To renew or add new ssl certificates for now I have to do the following
ps -ef | grep certb
kill <process id>
Hint: In my case, usually it is the second process
root 25614 24813 0 17:54 ? 00:00:00 /bin/sh -c /opt/certbot/bin/certbot renew --non-interactive --config "/etc/letsencrypt.ini" --cert-name "npm-16" --preferred-challenges "dns,http" --disable-hook-validation
grc works great for this. It is installable with brew and colorizes a number of terminal commands out of the box, diff being one of them. To build on the approved answer: grc works great for this. It is installable with brew and colorizes a number of terminal commands out of the box, diff being one of them.
grc
via homebrewbrew install grc
source "`brew --prefix`/etc/grc.bashrc"
Install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/
Install nano from homebrew
brew install nano
Update your nanorc file with the contents of the nanorc file below
nano ~/.nanorc
Add custom syntax files to nanorc
include /opt/homebrew/Cellar/nano/5.7/share/nano/*.nanorc