Friday, March 29, 2019

Macbook external monitor display can't show up / disappear when macbook screen lid is closed

There are requirements for the closed-clamshell / closed-lid mode to work, such as:
  • AC power plug-in



more information is here: https://support.apple.com/en-gb/HT201834

Monday, March 25, 2019

[Solved]Macbook display horizontally stretched after display/screen put to sleep

I opened my macbook which was connected to two external screens. They resized mysteriously: horizontally stretched so that the texts were too fat.

I tried using system preference - > displays and switched to other modes but no luck.

The solution turned out to be surprisingly simple (not restarting the computer):

Close the lid of your macbook and reopen it.

Now everything looks fine!


IT support told me that I should restart my computer once per week to prevent this type of things from happening, in the long run.

Thursday, March 21, 2019

[solved] __init__() got an unexpected keyword argument 'height' seaborn

The cause is :
seaborn is outdated
pip3 install seaborn --upgrade

Check whether Jupyter notebook is running or disconnected

cmd + s to save the notebook

When running through a server, I was blindly trusting the [*] and the hour glass. A better way to check whether the notebook is running is cmd + s to save the notebook. If it's still running and should be saved properly. If it's not, an error message would occur.

Tuesday, March 19, 2019

how to set Beeway lock chain password

1 unlock the lock chain
2 rotate the switch to 90 degree
3 set your password
4 rotate the switch back

more details:
https://www.youtube.com/watch?v=wfWpOMY5Sw4

Error: C stack usage is too close to the limit

Change the limit:


https://stackoverflow.com/a/14719448/3020740

Monday, March 18, 2019

[Solved]scp: /home/ubuntu/ Permission denied

When using scp to move files to a server folder, I got errors saying permission denied.
It turned out that the destination folder can't accept files directly.
I moved these files to other folders instead (using the same user credentials)