PyCharm on Windows and Docker

I have recently started using Python and Docker. As a novice, I wanted to configure PyCharm on Windows to use my Docker Python image. Here are couple of things I had to do to successfully accomplish this: Your Project folder must be inside your Windows home folder, i.e. c:\users\user. If not, PyCharm will not be able to run your Python file Next, ensure that Docker is selected as a “Remote Python Interpreter”. Obviously as a …

Read morePyCharm on Windows and Docker

Creating SSH Key Based Authentication using Bitvise on CentOS

On your client machine (e.g. Laptop) Start Bitvise Client Key Manager, and click “Generate New” Select Algorithm “RSA” and Size 4096 (or any other) Set a Passphrase if required. Enter some comments, and click Generate. After Key is generated, select it, and click on “Export”. In the Export options, make sure you select “Export public key” and underneath it “OpenSSH format”. Click on Export and save the file somewhere. On the CentOS Server Upload the …

Read moreCreating SSH Key Based Authentication using Bitvise on CentOS

PyCharm & Git

Install Git for Windows first Using Git Bash, generate private and public keys Add public key to ~/.ssh/authorized_keys file on the remote server Create a local folder to store repository On server, create a new repository or initialize a repository from existing files cd some_dir git init git add . git commit In PyCharm, use ssh://vik@jarvis/~/code/jarvis/.git

Playing with wit.ai

wit.ai is a NLP (Natural Language Processing) api. Think of it as something that can be used to create next Cortana or Siri. Basically, the api allows you to send a text statement (or voice), and convert into meaningful form that your program can understand and respond to. I have started playing with it. First thing I am doing is install on Jarvis to be used with Python3. Installing is easy. First ensure following packages are installed: python3-dev, libcurl3-dev, …

Read morePlaying with wit.ai

Trick 2: Bulk download 4K wallpapers from alphacoders.com

A year ago I had posted about how you can bulk download 1080p wallpapers from Microsoft’s website. You can read the post here. That tricked worked very well and allowed me to download a total of 543 1080p wallpapers in one go. Now, I am using the same concept to download wallpapers from alphacoders.com albeit this time it’s 4K, baby! (3840×2160) Since the level of our pixel gorgeousness has increased we will step up our game …

Read moreTrick 2: Bulk download 4K wallpapers from alphacoders.com

Send emails when torrent is done – Windows & uTorrent

Here’s a snippet of PHP code to help you send emails from Windows machine when a torrent has downloaded through uTorrent.I am using Outlook.com to send and receive email but you can easily use GMail or any other internet mail service. You will need PHPMailer class $argOpts = “n:e:”;$argVal = getopt($argOpts);$torrent_name = $argVal[‘n’];$to_email = $argVal[‘e’];require(“phpmailer/class.phpmailer.php”);$mail = new PHPMailer();$mail->Username = “Your outlook.com username”;$mail->Password = “Your outlook.com password”;$mail->Host = “smtp-mail.outlook.com”;$mail->Port = 587;$mail->IsSMTP();$mail->SMTPSecure=”tls”;$mail->SMTPAuth = true;$mail->setFrom(“From address”, “From name”);$mail->addReplyTo(“Reply …

Read moreSend emails when torrent is done – Windows & uTorrent