Code
How to keep the Ubuntu laptop on working
We may edit the configure file "/etc/systemd/logind.conf" and change one line from
#HandleLidSwitch=suspend
We may edit the configure file "/etc/systemd/logind.conf" and change one line from
#HandleLidSwitch=suspend
To gracefully shutdown a http server requires a few steps.
The http library's serving function will block over there when getting started, until we call http.Server.Close(). As for us, we can invoke the starting function in a goroutine, and call close in another one.
A simple way is to generate a personal access token instead.
Suppose we are trying to process a few interfaces, but not sure does a specific function exists.
It is more complex than ordinary packages, but still not hard.
To detect the exists of the graphics cards on the computer, we may use command lshw. (more…)
Reset SMC or PRAM/NVRAM could helps.
In my data point, the second solution works for my MacBook Pro (15-inch, 2018).
Every time I start a new session in my macOS, it will take a lot of time to initialize the session. After some survey, the key problem is the bash_completion.
After installed vim-gnome, every time I execute "sudo vim", it will print one line
$ sudo vim # doing something, and quit it No protocol specified
CUDA is a parallel computing platform and application programming interface (API) model created by Nvidia. I am supposed to install this package in my system.