F5 to Execute Your Program from Gedit – From Go to Python – Gedit External Tools

Gedit editor can run any command or script for you. Even though Gedit looks very simple, it’s easy to integrate Gedit to your own toolchains. Here is a simple script to execute your program by pressing F5. The script handles … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | Comments Off on F5 to Execute Your Program from Gedit – From Go to Python – Gedit External Tools

Hello World Python3, Bash, C, C++, Go, Lua, Ruby, Java – Programming Languages on Ubuntu 18.04

Hello world! All programs start with a hello world. It tests that your environment is working, so that you can run your code. This is how you install and run the most important languages on Linux: Python 3, Bash, C, … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , | Comments Off on Hello World Python3, Bash, C, C++, Go, Lua, Ruby, Java – Programming Languages on Ubuntu 18.04

Print Special Characters as Backslash Escapes – Python3 One-liner with Unicode Support

Let’s find that weird or invisible character that breaks your code $ echo “Hello in Finnish: Päivää”|python3 -c ‘import sys; s=sys.stdin.read(); print(s.encode(“unicode_escape”));’ b’Hello in Finnish: P\\xe4iv\\xe4\\xe4\\n’

Posted in Uncategorized | Tagged , , , , , , , , , , , , | Comments Off on Print Special Characters as Backslash Escapes – Python3 One-liner with Unicode Support

pydoc3 str – Python Reference in Your Command Line – Airplane & Cottage Entertainment

You can read Python documentation offline with pydoc3. It’s installed automatically with Python, and it always shows documentation for the version of Python you have installed. $ pydoc3 str You can see reference for a library ‘pydoc3 re’ or a single … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | Comments Off on pydoc3 str – Python Reference in Your Command Line – Airplane & Cottage Entertainment

Hello Flask Web App – Python 3 Flask Development Server Install on Ubuntu 16.04

You can create web apps with Python and Flask. This short “Hello World” tutorial shows you how to install development server for Python 3 and Flask. There are two very successful Python web frameworks. Flask is the simple one, Django … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | 1 Comment

Install OpenAI Universe on Ubuntu 16.04

OpenAI: Write Python program that plays any game. Optionally, use machine learning so that computer learns the game by itself. OpenAI “hello world” is just ten lines. But installing the environment is difficult. This article shows you how to install … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , | 5 Comments

Deploy Flask & Python3 on Apache2 & Ubuntu

Deploy Flask, a Python 3 microframework, on Apache web server on Ubuntu. Then you can write your own web pages in Python. Flask is a very simple framework for writing server side applications with Python. This article shows how to … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | 13 Comments