Why Tron founder Justin Sun’s “meme is the answer” is definitely not the answer
I recently came across this Bloomberg article (link attached below) where Justin Sun, Tron founder, and multi-millionaire that spent 4.6 million dollars to have lunch with Warren Buffet.
Interestingly, Justin Sun cannot possibly be more different to Warren Buffet.
Warren Buffet is all about value investing, picking unloved companies with low Price-to-Earnings ratio that have steady cash flows and cold hard assets. Justin Sun is all about chasing dreams — and apparently investing in memes.
In other words, Buffet is about buy low and sell…
A Review of LinkedIn’s short course titled “ Learning Python with PyCharm”
Recently, I’ve been going through some of the LinkedIn learning courses. There are a lot of courses. The point of this short note is to summarize the course and for the reader to get a gist of the course, and decide for himself/herself whether they want to devote several hours to complete the course.
The objective of this course is to introduce PyCharm as a IDE for beginner Python users. The course goes through all the basics of getting set up, and runs through a small web scraping…
There are three highly regarded “State Ivy” universities that offer a completely online master degrees for students both domestically and internationally. Unlike traditional degrees where costs are differentiated by in-state and out-of-state fees, these online degrees have opened up a new level of affordability for students.
Here we look at three affordable and reputable online masters of computer science degrees from:
These three State Ivy universities have partnered with three different online education providers to masters degrees you can complete from home.
Quick tutorial in improving your debugging techniques in RStudio
Here we outline the overall strategy for debugging:
Often by doing these two steps, you can resolve your error.
In this note we will go through two debugging…
A gentle beginner’s tutorial on how to use Git
Git is distributed version control system. It allows for multiple programmers to work on the same project.
If you intend to work in data science, quantitative analysis, or any role that requires programmers or coders collaborating, you will probably have to cross paths with it. At first Git can be quite intimidating to learn. It can also be quite confusing. This gentle tutorial will hopefully alleviate you from some of these fears.
A short tutorial on using sqlite3 in Python
SQLite is a lightweight database that does not require a separate server. SQLite is very popular in web applications and requires no administration. I use SQLite to store structured data that I scrape from the internet, such as cryptocurrency prices.
In this short note, we will go over the key commands to use SQLite with Python.
We will look at:
A tutorial on how to use the asyncio library in Python
Asyncio is a programming design that achieves concurrency without multi-threading. It is a single-threaded, single-process design. It uses cooperative multitasking, i.e., it gives a sense of concurrency despite using a single thread in a single process.
At the heart of asyncio are coroutines. Coroutines are declared with the
await syntax. They are in essence awaitable functions.
To run a coroutine, there are three main mechanisms.
asyncio.run() This executes the passed coroutine, and once finished, closes the threadpool.
async def printHello():
await asyncio.sleep(1) …
A quick beginner’s tutorial into Python websockets with a Deribit cryptocurrency example.
In this note, we’re going to run through some basics on running Python websockets, along with an example where we use websockets to receive live cryptocurrency data from one the largest Bitcoin futures trading platform Deribit.
Firstly, you need to install websockets.
pip install websockets
Websockets requires Python 3.6.1 or greater. Perhaps you can create a new virtual environment and install websockets into this environment. This way, you don’t mess around with your base environment.
conda create --name myNewEnv python=3.7
conda install -n myNewEnv websockets
Quick Python cheatsheets
This is a quick cheatsheet that lists essential conda commands for managing virtual environments in Python.
conda create --name <insert environment name>
In order to create a conda environment with a specific Python version.
conda create --name <insert environment name> python=3.7
Adding scipy to “myenv”:
conda install -n myenv scipy
We can create a Conda environment directly from a .yml file.
For instance, create a new environment called “statsenv” with a specific Python version and a few packages.
How to use uncompyle6 to decompile .pyc files in your directory.
pip install uncompyle6
A native Python cross-version decompiler and fragment decompiler. The successor to decompyle, uncompyle, and uncompyle2.
Make sure you have added your Python directory to Path in your environment variables. For instance, if you use an Anaconda distribution of Python, add the following to Path:
This ensures that you can run uncompyle6 directly from Windows command prompt. You can test this out by simply typing
uncompyle6 in your command prompt.
Go to the directory where you have your .pyc file which you want to decompile.
writes about economics and programming.