Showing headlines posted by dba477

« Previous ( 1 2 3 4 5 6 7 8 9 10 ... 27 ) Next »

Simultaneous assembly Python External C++ procedures returning vector and integer

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. Looks like under any circumstances building external Python procedure in C++ has a significant advantage over C. Just setup.py should be configured to run "gcc" properly against C++ code.

Create Basic Python 3.10(beta) C++ Extensions on Fedora Linux 34

Detecting all prime numbers in given range is supposed to performed by C++ code code below as a procedure invoked from Python. Tested with both Python 3.9.5 and Python 3.10 (beta) via Python API. Refactoring code proposed in python-cpp-extension@github

Exercising to Create Basic Python C Extensions on Fedora Linux 34

This post follows up "Creating Basic Python C Extensions - Tutorial" and does just one update required in static PyMethodDef myMethods still having "METH_NOARGS" instead of "METH_VARARGS", what, actually, confuses inexperienced learners.

Tuning remote connection PyQT5 to Mariadb on Debian Bullseye

Tuning remote connection of PyQT5 to Mariadb-Server as well as to MySQL seemed to me the most time consuming part of this small project. Obviously, the options for Mariadb and MySQL are mutually exclusive. Tuning network configs on bare metal described in details utilizing `netstat -ant | grep 3306` output required to get connection ready

Setting up PostgreSQL 13.2&&Python VENV verified by another PyQT5 module on Debian Bullseye

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 EFI mode along with ongoing hackery of PyQT5 code mentioned in my recent post at Lxer.com

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 Fedora 34 with Deepin Desktop installed. Here I have to notice then on KDE Plasma 5.20 Desktop instance on the same server seems to be a better choice for PyQT5 windowing running CRUD application with any of Mariadb 10.5 or PostgreSQL 13.2 .

Refactoring PyQT5 OldProgramer's code for Complete CRUD App on PostgreSQL 13.2 (Fedora 34 Server)

That is an immediate follow up for post Setup PostgreSQL 13.2 and PyQT5 to run CRUD App in PyCharm 2021.1.1 on F34. Method updating table students has been added to original code and front-end window has been updated as well to have one more button to invoke "Update table" on the fly

Setup PostgreSQL 13.2 and PyQT5 to run CRUD App in PyCharm 2021.1.1 on F34

  • https://dbaxps.blogspot.com/; By Boris Derzhavets (Posted by dba477 on May 25, 2021 2:22 AM EDT)
  • Story Type: Tutorial; Groups: Fedora, Python
Running PyQT5 CRUD (PostgreSQL 13.2) Application you might experience problem with importing psycopg2 . Posting below briefly provides the way to solve the issue and also describes in details database setup which is tuned specifically for Fedora 34 .

Install Virtual Box on Fedora 34 via rpmfusion repository

The most recent update to Fedora 34 installs kernel 5.11.14 and kernel-devel-5.11.14-300.fc34.x86_64 at a time . What makes possible to install Vitrual Box 6.1.18 via rpmfusion repository .

Setting up PyQt5 in PyCharm 2020.3.5 on Fedora 33 Server

PyQt5 is a comprehensive set of Python bindings for Qt v5. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android. Following below is a brief description to enable PyCharm 2020.3.5 to execute python scripts been written with PyQT5 bindings involved.

Install intellij-idea on Fedora 33 via COPR Repository

Procedure below works quite smoothly and eliminates any issues during similar manual setup which is available as well via `sudo dnf install openjfs`. First enable COPR Repository and perform install . . .

Django 3 Tutorial & CRUD Example with MySQL and Bootstrap on F33 KVM Guest

Regardless I've spent some time to overcome several issues (typos) in Original Howto........I strongly believe that mentioned article is one of the best for beginners to test the taste of Django 3.1.16

AMD Is Currently Hiring More Linux Engineers

While AMD has been delivering reliable Linux support with their recent launches, there is room for improvement in areas like more timely compiler support for new processors, better alignment of their new hardware enablement for getting the code not only upstreamed but into distributions for launch-day, and similar areas.

Refactoring one Java CRUD Application via adding two constructors to Bean class

The original application https://www.javatpoint.com/crud-in-jsp is using bean without any explicitly declared constructor . To be able invoke different constructors first one for "Update","Insert", "Delete" and another one for "Select" which is supposed to be invoked explicitly we've done following updates to bean User.java.

Recursion in Python. Having fun writing code to help out unhappy kids

The only purpose of python coding below is to prevent kids from straight forward calculations, which, actually, are boring rather then difficult. In doing so I intend to learn my students pretty old principle "Just think first"

Setting up Connection pooling on TomCat 9.0.41 Java Web Server

This Howto follows official guidelines and might be a bit more straight forward and easier to reproduce then original . That is a way I was able to get JNDI up and running on 9.0.41 release . I have also compiled in one post displaying mariadb's table data via Servlet and via JSP based on utilizing tags supported via the most recent versions of taglibs 1.2.5.

Setting up Tomcat 9.0.41 && mariadb-server 10.5 on Debian Bullseye/sid

Setup Tomcat via original tar.gz ball and JDK 11 allow to deploy "war" archive been built for Web Servlet Application from http://lxer.com/module/newswire/view/295844/index.html . Thus CRUD Server side Java Apps might be moved on Debian Bullseye/sid in 3-5 minutes .

Adding packaging and refactoring one sample of Java CRUD Application for Tomcat 9.0.41

Why packaging is important ? Original code was pretty straight forward Java coding which looks and works quite smoothly . However, all compiled classes appear to be placed in one folder WEB-INF/classes/ and in some way this minor design issue hides a business logic of apps.

Deployment Java CRUD App to Tomcat 9.0.40

As far as I can see any Java CRUD App would require a hack kind of described below , no matter is it "update" or "insert" or "select" JDBC setup doesn't work as it did earlier . Code bellow - invoking Connection "conn = DBConnection.createConnection();" along with localized JDBC setup in DBConnection.java works for me.

Sample of manual build MVC Web Application for Tomcat 9.0.40

This post follows up "Practice coding in Java by writing a game" recently published at LXER. Focus has been done on manual invoking "javac" using standard command line options for placing in right folders packaged Java Beans and Servlets which are required by Tomcat 9 Java Web's server.

« Previous ( 1 2 3 4 5 6 7 8 9 10 ... 27 ) Next »