Polybot Project: a Simple Pretty Logger
In a series of blog posts “Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design” (1-8) (see references) we discussed how we could design a multi-bot/multi-language webhook handler...
View ArticlePython : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (8)
Multiple-Language Functionality In this post, we will add the multiple languages functionality to the polybot project so that our bots could speak a few languages based on the corresponding user’s...
View ArticlePython : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (7)
Setting up Multi-Bot Design – polybot project From this blog post after, we focus on a multi-bot design: polybot project. The first step is to define our bots. Maybe the easiest way is to use a...
View ArticlePython : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (6)
6 – Providing Decorator for Bot Commands Using a Dedicated Message Text Processing Class A good practice to design a bot command processing system is that we define a central engine which looks for the...
View ArticlePython : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (5)
5 – Adding Commands in Single-Bot Design Let your mind fly! Let it surf over the clouds! There is no limitation on imagination on what a bot in the Telegram system can do for us. You want to know what...
View ArticlePython : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (4)
4 – Setting up the Webhook for a Single-Bot English Speaking Bot To be able to understand and follow this post properly, you should have enough skills in python programming, and you must have some...
View ArticlePython : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (3)
Part 3 – Some bot programming practice To start handling your bot with programming codes … as sci-tech robot movies say, uploading software in the robot! … you would need an internet connection with...
View ArticlePython : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (2)
Part 2 – Sample operational bots There are some bots available for full functional serious applications. There are also some of them available for user test. Merex is one of them. You could access...
View ArticlePython : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (1)
Part 1 – The non-programming part If you are new to the concept of the Telegram bots and how you could write programs to manipulate them, you could review these references before you read this article:...
View ArticleJava: Angular Helper
For engineering graphics, double type interpreted as radians is a perfect class for representing the unit for angles. all non-NaN and non-infinity values are valid and meaningful Besides user code...
View ArticleTrue Modulo Operation According To Congruence Relation
In programming, I frequently need a modulo operation (a mod b) whose result (r) should fit in the range [0, b[. In fact. it is the case when both a > 0 and b > 0. I frequently encounter the...
View ArticleJava: A Simplified Demo for Spelling Numbers
This article provides a simplified demo for previous article: Java: Spelling out a Number and Vice Versa with a Proposed Validating Method (Link:...
View ArticleJava: Spelling out a Number and Vice Versa with a Proposed Validating Method
This program attempts to provide a method to convert a number to text (spelling the number) and vice-versa. It also provides a method to validate texts containing a spelled number. Continue reading →
View ArticleC++: A Simple Command-Line Parser Add-in for Console-Based Applications
A well-structured non-trivial console-based application uses many options and variables which could be set by user in command-line. A unified way of handling the command-line options is an...
View ArticleMixed C++/Assembly: Numeric Practice using x87 Math Coprocessor
This simple prgram demostrates the use of x87 numeric (math) coprocessor in numeric analysis. Here, the taylor expansion for sin is examined. Continue reading →
View ArticleJava: Integration Using Composite Trapezoidal Rule
This article demonstrates how we could evaluate the integration of a function using interface definition in Java. We have used a simple composite trapezoidal rule to evaluate the integration....
View ArticleJava: Printing the Calendar Month / Year
This demo program prints the calendar month / year The month and year are given by user as two integer values. For example, for July 2010, they would enter 7 2007 The output will be July 2010 Su Mo...
View Article