Sunday, November 5, 2023

[Windows11] [Resolved] docker desktop unexpected wsl error

 


Run command prompt with Administrator permission (Run as administrator) 

and then run the command :

netsh winsock reset

And then restart the computer, the issue disappear.


Reference:

https://www.cnblogs.com/520future/p/17615780.html

Tuesday, November 22, 2022

[Resolved][Errno 48] error while attempting to bind on address ('127.0.0.1', 8000): address already in use

Error:

[Errno 48] error while attempting to bind on address ('127.0.0.1', 8000): address already in use

Method 1

run this command to get the the related process

#ps -fA | grep python 

Mark down the second number of returned results. 

#kill 1192 


Method2 

Kill all process on 8000 port: 

#kill -9 $(lsof -t -i:"8000") 


Reference:

https://stackoverflow.com/questions/34457981/trying-to-run-flask-app-gives-address-already-in-use

https://stackoverflow.com/questions/19071512/socket-error-errno-48-address-already-in-usePE4WW9ubHOASEzgiT6lDg65jIDE/edit

Wednesday, March 9, 2022

[SwiftUI][resolved] Cannot find 'landmarks' in scope



there should be NOT mistake from apple official tutorial,  go clean the derived data then the code should be works, here is the method to clean xCode derived data :

https://stackoverflow.com/questions/46468220/how-can-i-delete-derived-data-in-xcode-9/46468334#46468334

Tuesday, March 8, 2022

[SwiftUI][solved] command-click not show menu with "Show SwiftUI Inspector"

i am a newbie to swiftUI and using Xcode version 13.2.1 and follow the official tutorial, use command-click the text "Hello world" but won't show the menu with option item "Show SwiftUI Inspector"in preview and it would auto select and highlight the code segment in code view.

tutorial instruction:

Finally i found alt-click work, but not use the command-click as the instruction said.


reference: 

https://developer.apple.com/tutorials/swiftui/creating-and-combining-views

https://developer.apple.com/documentation/xcode/creating-your-app-s-interface-with-swiftui

Wednesday, January 19, 2022

[example] update pip3 command in MacOS

command to update pip3: 

python3 -m pip install --upgrade pip

command to check pip3 version

pip-3 --version


Example: