Published in Level Up Coding·2 days agoAnyBotty: A Custom Command Discord BotSome time ago I created a Discord bot that had one important task: to let users know when Mount & Blade II: Bannerlord would release. After adding this bot to my Discord server (a small, family/friend server) I’ve received many requests about adding more functionality to the bot: custom commands…Python5 min read
Published in DataDrivenInvestor·6 days agoUsing Modern Portfolio Theory to Build an Optimized Dividend Income Portfolio with PythonSupport my content by signing up for Medium or by learning more about investing, dividend investing, or options trading (Amazon affiliate links). NOTE: this is not investment advice. In this post, two big questions are answered with respect to income investing: what is risk, and what is the expected return…Python7 min read
Published in DataDrivenInvestor·Apr 25Building a Portfolio Using Sector DivergenceCheck this tool out on ntrinsically.com (free to use). Support my content by learning more about value investing, options, or growth investing (Amazon.com affiliate links). Note: this is not investment advice. This project can be used to build a sector-diversified portfolio but it is up to the individual investor to…Investing4 min read
Published in Level Up Coding·Apr 5A General-Purpose File Writing Job Queue in C++Note: code for this project can be found on the project’s GitHub page. Inspiration In a series of recent posts, I wrote about a combinatorial object called a Latin square, a class in written C++ used to work with these objects, and some GPGPU (General Purpose GPU) algorithms I have developed…C Programming4 min read
Published in Level Up Coding·Jan 31Building an API in C++ With PistacheAccording to a RapidAPI blog post, the most popular languages/frameworks used to build APIs are PHP, NodeJS, and Python (by a pretty fair margin). It is not often the case that languages like C++ are used for this purpose as it is a little outside of their purview. I’ve experienced…C Programming6 min read
Published in Level Up Coding·Jan 8Using Python’s Multiprocessing Library to Improve Algorithm RuntimeIn a previous post, I wrote about a combinatorial object known as a Latin square. I also discussed some research I had previously done and some research directions for working with these objects. Particularly, I mention the need for efficient algorithms to generate and process these objects. One objective I…Python5 min read
Published in Level Up Coding·Dec 7, 2021Parsing JSON in C++ with RapidJSONEarlier this year while doing some consulting work, I was required to parse JSON files downloaded from a URL in C++. This is a task easily done in most languages with many having built-in libraries to handle reading and writing JSON files (e.g. the json package in Python). In the…C Programming3 min read
Published in Level Up Coding·Nov 29, 2021Plotting Data in C++In most of the work I do, the ability to easily plot data in Python is a major determinate when choosing a programming language for a project. A while back I was looking into what it would take to replace my Python machine learning workflow with C++ tools. Unfortunately, there…C5 min read
Published in Level Up Coding·Oct 3, 2021Taylor Series in PythonThe Taylor series of a function is an infinite sum of terms that uses information about the derivative of the function to create a polynomial that approximates the function. More accurate approximations can be determined by taking higher-order derivatives and using higher degree polynomials. Many posts about the Taylor series…Mathematics8 min read
Published in Analytics Vidhya·Sep 14, 2021The Problem with Stock Path GenerationRecently I’ve been reading Benoit Mandelbrot’s book The (Mis)Behavior of Markets: A Fractal View of Financial Turbulence (this is an affiliate link for Amazon, if a purchase is made via this link I will receive a portion of the proceeds). Early in this book Mandelbrot discusses one major issue with…Stocks4 min read