Quantcast
Channel: Openstack RDO && KVM Hypervisor
Browsing all 297 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

Setting 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 Article


Image may be NSFW.
Clik here to view.

Setting 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 Article

Image may be NSFW.
Clik here to view.

Setting 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 Article

Image may be NSFW.
Clik here to view.

Exercising 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 Article


Image may be NSFW.
Clik here to view.

Working 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 Article

Image may be NSFW.
Clik here to view.

Create 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 Article

Image may be NSFW.
Clik here to view.

Create 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 Article


Image may be NSFW.
Clik here to view.

Building 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 Article


Image may be NSFW.
Clik here to view.

Simultaneous 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 Article

Image may be NSFW.
Clik here to view.

Assembly 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 Article

Image may be NSFW.
Clik here to view.

Build 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 Article

Image may be NSFW.
Clik here to view.

C++ 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 Article


Image may be NSFW.
Clik here to view.

C++ 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 Article

UPDATE 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 Article


Image may be NSFW.
Clik here to view.

Converting 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 Article

Image may be NSFW.
Clik here to view.

Assembly 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 Article


Image may be NSFW.
Clik here to view.

Assembly 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 Article

Image may be NSFW.
Clik here to view.

Operations 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 Article

Image may be NSFW.
Clik here to view.

Another 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
Browsing all 297 articles
Browse latest View live