Category: software.python

  • Speed up Python with C++

    Python is a popular programming language known for its simplicity and readability. However, it has a few drawbacks, one of which is slow performance. This can be especially problematic when dealing with complex computations or large datasets. Fortunately, there are a few strategies and techniques that can help improve Python’s performance and make it more…

  • Accessing Mac OS API’s with Python over AppleScript / Shortcuts

    As a Python programmer; if you need to access a Mac OS API, the traditional way to go is to use the PyObjC library. However, this might be too cumbersome for simple tasks; such as getting the E-Mail address of a Mac contact. For such small tasks, your Python code can simply make an AppleScript…

  • Hosting Multiple Domains on Python Flask

    No, we will not use host matching! Instead, we’ll use our own architecture. The title makes the content of this article obvious, so let’s jump right into it. This method might be a little tedious for high-traffic websites, but if you have a handful of low-traffic websites and want to host them under a single…

  • PyQt5 Problem on MacOS Big Sur SOLVED

    If you are a Python developer on a Mac, here is a nasty surprise: The latest PyQt5 release (5.15) doesn’t work on Big Sur (yet). When you start your Python application, all you see is a blank slate and your CPU running at 100%. The workaround is simple: Downgrade your PyQt5 to 5.13. This solved…

  • Veri Analisti Olmak

    Bir takipçimin sorusuna verdiğim cevabı paylaşıyorum. Veri analistliği şu anda taze ve güncel bir konu. Ancak, bu konuda kendi çabanızla gelebileceğiniz nokta, muhtemelen kurumsal ortamda değer görecek kadar ileri bir nokta olmayacaktır. Zira; Pandas, PySci, TensorFlow gibi kütüphanelerle Internet’ten bulduğunuz örnekleri yaparak bazı sonuçlar alsanız bile, gerçek hayattan çıkmış bir problemle karşılaştığınızda, bilhassa Hyperparameter’ları doğru…

  • Accurate metronome with Python

    Problem The build-in time / timer libraries in Python fluctuate. If you try to build a metronome at 60 BPM and imagine using the timer with a sleep time of 60 milliseconds, you will quickly find out that it will be triggered somewhere between 59.50 – 60.50 milliseconds. Such a fluctuating metronome is not usable…

  • Accessing Dropbox files via RESTful API

    In this article, I will guide you through the steps to access Dropbox files from an app. If you want to skip the document and see some sample code; check my following pet projects accessing Dropbox: Igigi (React Native / JavaScript): dropbox.js Kutapada (iOS / Swift): DropBox.swift App Registration Assuming that you have a working…

  • Some useful coding standards

    ABAP – Clean ABAP JavaScript – Standard Python – PEP 8

  • Python vs ABAP Data Structures

    Python ABAP List Standard table Tuple N/A Dict Work area Set Hashed table Frozenset N/A N/A (*1) Field Symbol N/A (*1) Reference N/A Interface abc.ABC Abstract Class (*1) Any Python variable / function name can be used / passed as a reference. Therefore, although Python doesn’t officially have a pointer concept, you can achieve pointer…

  • Reusing Python Packages over GitHub

    Well, the title speaks for itself. In this article, I will demonstrate how to reuse a Python library in various projects over GitHub. I prefer this method over reusing local files due to benefits of GitHub. Library Project In this article, I will use a sample library called “Databus”. The project structure should look like…