Refactoring PyQT5 code of OldProgramer for Complete CRUD App on PostgreSQL...
That is an immediate follow up for post Setup PostgreSQL 13.2 and PyQT5 to run CRUD App in PyCharm 2021.1.1 on F34Method updating table students has been added to original code and front-end window...
View ArticleSetting up PyQT5 && Mariadb CRUD Application on Fedora Server 34
Code posted below is actually a kind of POC and may be freely modified any way you like. It is testing standard connection setup Python 3.9.5 to native Fedora's Mariadb-Server running on Server Edition...
View ArticleSetting up PostgreSQL 13.2 && Python VENV verified via another PyQT5 module...
Expecting Debian Bullseye release to happen pretty shortly (by the end of September 2021) PostgreSQL 13.2 setup has been verified on Debian Bullseye/sid as Oracle's Virtual Box 6.1.22 Guest running in...
View ArticleSetting up PyQT5 && Mariadb CRUD Application on Debian Bullseye/sid
Tuning remote connection of PyQT5 to Mariadb-Server seemed to me the most time consuming part of this small project The very first time setup root account privileges to access the database server.#...
View ArticleExercising to Create Basic Python C Extensions on Fedora Linux 34
According https://realpython.com/build-python-c-extension-module/To write Python modules in C, you’ll need to use the Python API, which defines the various functions, macros, and variables that allow...
View ArticleWorking on Basic Python C Extensions on Fedora Linux 34 (2)
Relatively complicated sample based onhttps://stackabuse.com/enhancing-python-with-custom-c-extensionswith minor refactoring just to make things clear (.env) [boris@sever33fedora enhancePython]$ cat...
View ArticleCreate Basic Python C++ Extensions on Fedora Linux 34
Building Fibonacci sequence is supposed to be performed by C++ code below as a procedure invoked from Python via Python API. Per https://www.mygreatlearning.com/blog/vectors-in-c/Vectors are part of...
View ArticleCreate Basic Python 3.10(beta) C++ Extensions on Fedora Linux 34
Detecting all prime numbers in given range is supposed to be performed by C++ code below as a procedure invoked from Python. Tested with both Python 3.9.5 and Python 3.10 (beta) via Python API....
View ArticleBuilding Fibonacci sequence via Python C++ Extensions on Fedora Linux 34
Building Fibonacci sequence is supposed to be performed by C++ code below as a procedure invoked from Python via Python API. Per https://www.mygreatlearning.com/blog/vectors-in-c/Vectors are part of...
View ArticleSimultaneous assembly of Python External C++ procedures returning vector and...
Simultaneous assembly of two Python External C++ procedures returning sum and sequence of factorials of the first n members of the natural series via Python API. You might want to compare code below...
View ArticleAssembly of Python External C++ procedure using 2D vector
I was unable to return 2D vector from C++ to Python via Python API. Thus content of 2D vector has been written to file and later on the Python Runtime Module displayed the content of file been created...
View ArticleBuild Catalan Sequence via Python Extension to C++
Notice that Python module (.env) [boris@fedora33server CATALAN]$ cat mainCatalan.pydef Catl(n): if n == 0: return 1 s = 0 for i in range(n): s += Catl(i)*Catl(n-1-i) return sdef...
View ArticleC++ versus Python solving Problem #25 of Demo USE in Informatics 2021
The version of C++ code here differs from the first one been posted at Lxer.com . Vector "v1" been pushed back by 2D vector "vec" is supposed to be re-declared before every next push back by "vec"...
View ArticleC++ versus Python solving one interesting problem from the field of number...
The version of C++ code here differs from the first one been posted at Lxer.com . Vector "v1" been pushed back by 2D vector "vec" is supposed to be re-declared before every next push back by "vec"...
View ArticleUPDATE as of 18/07/201 for C++ versus Python solving one problem from the...
Consider following code implementing the same business logic as procVector.cpp(.env) [boris@fedora33server NEWFORWARD]$ cat procVector2.cpp#include <iostream>#include <vector>#include...
View ArticleConverting to C++ and refactoring #24 from Eugene Djobs Stream as of 12/25/2020
Writing C++ procedure below we get a final answer as C++ string , then via sequence of operators which convert string to the pointer (say c) to "const char" and finally return required value via...
View ArticleAssembly of Python External C++ procedure returning the value of string type
Writing C++ procedure below we get a final answer as C++ string , then via sequence of operations which convert string to the pointer (say c) to "const char" and finally return required value via...
View ArticleAssembly of Python External C++ procedure returning the vector of objects of...
This post is an immediate followup for the most recent post at Lxer.com regarding return of one string. Consider the task already been treated with 2D vector and dumping the content of vector to disk...
View ArticleOperations on Armadillo matrices via NumPy array and Python Extension to C++
I was able to succeed with armadillo-10.6.1 setup on fedora 34 only via build from source , previously installed$ sudo dnf install cmake openblas-devel lapack-devel \ arpack-devel SuperLU-devel$...
View ArticleAnother version of Python to C++ Extension building Catalan Sequence
(.env) [boris@sever33fedora CatStrike]$ cat CatStrike.h#pragma once#include <vector>#include <cstddef>namespace abc { class CatStrike { public: double *mem; long...
View Article