echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
$ mkdir out
$ for f in *.mp3; do ffmpeg -f lavfi -i color=s=160x120:r=2 -i "$f" \
-c:v libx264 -preset ultrafast -c:a copy -shortest \
The reason which causes my problem, if I am right, is that I run command `sudo chmod -R ./` under the wrong directory, namely, my home folder.
The solution is just setting your home folder permissions back.
Stop your problematic instance.
Create a new instance and stop the new problem-free instance.
The newly created instance should be in the same `Availability Zone` like ‘us-west-2c’ which can be set on the ‘Network’ step under which the menu is ‘Subnet’.
[ubuntu ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvdf 202:80 0 100G 0 disk
xvda1 202:1 0 8G 0 disk /
[ubuntu ~]$ sudo mount /dev/xvdf/ /mnt
I handled this by following this three guide of which their original links are:
Sorry for missing out the second source link, I will add that later.
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
fatal: Could not read from remote repository.
vim known_hosts– if you already have known_hosts, skip this.
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
ssh-keygen -t rsa -C "user.email"
ssh-copy-id -i /path/to/key.pub SERVERNAME
Your config file from step 2 should have something similar to the following:
Handing on my new Surface Pro 4,I try to install ubuntu on it. But I lost my “Security” menu in UEFI while I try to boot from a PE in my USB stick.Then I get stuck in the “Restart to Surface UEFI” loop with a message ‘The security settings on Surface cannot be modified at this time. A restart is required to make changes to the security settings’. The default security settings menu no longer appear no matter how many times I restart. I googled as many as I can, but I still cannot find a way to fix this.
Though I nearly give up this, but as a geek I have to know what’s the ball in it. It still lingered in my mind luring me. And most important I feel I lost my control on my computer, which is unacceptable!
I have to know!!! Or I can’t stop to ponder this.
Last night, an idea occured in my mind. I try to turn off the ‘Devices’ to trigger the settings to fix this. The result is amazing. I didn’t believe it worked. The pity is I still don’t know the reason why this happend.
Turn off the Devices:
The Security settings come back again:
Turn on all the Devices, you don’t expect a computer without camera, WIFI, and bluetooth…
Enjoy your full-controled computer again!
by Chen Miao
mul is used for unsigned multiplication whereas imul is used for signed multiplication. Algorithm for both are same, which is as follows:
when operand is a byte:
AX = AL * operand.
when operand is a word:
(DX AX) = AX * operand.
You may want to build a virtualenv of python3, then install packages of python3 after activating the virtualenv. So your system won’t be messed up 🙂
This could be something like:
virtualenv -p /usr/bin/python3 py3env
pip install package-name
To compile tensorflow on my Amazon AWS server, I always get some strange error. No answer got upon enormous googling.
I installed swig which is needed. However, I don’t know if this matters.
sudo apt install swig
Otherwise, maybe it just a simple running out of memory problem.
Try reducing number of parallel builds by passing ‘–local_resources 2048,.5,1.0’, which would instruct bazel to spawn no more than one compiler process at the time.
bazel build -c opt --jobs 1 --local_resources 2048,0.5,1.0 --verbose_failures --config=cuda //tensorflow/tools/pip_package:build_pip_package