Author Archives: earnfs

Amazon Ubuntu Deep Learning Instance Configuring Steps

Git server building. $ ssh-­keygen -­t rsa ­-C “user.email” Modifying hooks: $ vim sample.git/hooks/post-receive Sample code for hooks: #!/bin/sh GIT_WORK_TREE=/home/ubuntu/Deployment/sample git checkout -f chmod -R 777 /home/ubuntu/Deployment/sample Install bazel. 1). Add Bazel distribution URI as a package source (one time … Continue reading

Posted in Uncategorized | Leave a comment

Convert mp3 to mp4 In Batch

Solution 1: ls *.mp3 | while read mp3File ; do outputFile=$(basename “${mp3File}” .mp3) ; ffmpeg -i “${mp3File}” -loop 1 -i image.png -c:a copy -c:v libx264 -shortest “${outputFile}”.mp4 ; done Solution 2: $ mkdir out $ for f in *.mp3; do … Continue reading

Posted in Uncategorized | Leave a comment

Amazon Ubuntu Instance Suffers `Permission Denied(publickey).`

N.B. There are dozens of reasons to lead to this problem, for example, wrong permission of your pem file, incorrect username(e.g., ec2-user, ubuntu),wrong spelling in your command, etc.. The reason which causes my problem, if I am right, is that … Continue reading

Posted in Uncategorized | Leave a comment

PERMISSION DENIED (PUBLICKEY).

A problem occurred while I `git push` to my git server on ec2. I handled this by following this three guide of which their original links are: http://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository https://chenhuachao.com/2016/05/26/ssh%E5%87%BA%E9%94%99-sign-and-send-pubkey-signing-failed-agent-refused-operation/ Sorry for missing out the second source link, I will add … Continue reading

Posted in Uncategorized | Leave a comment

(SOLVED)HOW TO BREAK THE LOOP “RESTART SURFACE TO MODIFY SECURITY SETTINGS”

Reference Link: http://earnfs.sinaapp.com/html/1237.htm 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 … Continue reading

Posted in Uncategorized | Leave a comment

What is the basic difference between MUL and IMUL instruction in 8086 microprocessor?

Reference Link: http://www.answers.com/Q/What_is_the_basic_difference_between_MUL_and_IMUL_instruction_in_8086_microprocessor 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: … Continue reading

Posted in Uncategorized | Leave a comment

How to install python3 version of package via pip on Ubuntu?

Reference Link: http://stackoverflow.com/questions/10763440/how-to-install-python3-version-of-package-via-pip-on-ubuntu 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 source py3env/bin/activate … Continue reading

Posted in Uncategorized | Leave a comment