Language Selection

English French German Italian Portuguese Spanish

Python Programming

Filed under
Development
  • Difference between Map and Filter functions in Python

    In Python, map and filter functions application look similar and establishing the difference between the two might be sometime confusing.

    In this post, I would like to highlight the basic difference between the two functions with clear examples.

    While Maps takes a normal function, Filter takes Boolean functions. As a matter of fact, filter are maps with conditional logic, a Boolean logic.

  • Building Datagrid for CRUD in Flask in PythonGrid

    pythonGrid is a new free open source library to create a fully working datagrid for CRUD (Create, Read, Update, & Delete) for Flask that connects to a relation database such as Postgres or MySql/MariaDB database.

    It makes everyday datagrid tasks extremely easy. Standard functions like sorting, pagination, search, and CSV export are supported out-of-box without complicated programming.

  • 10 Tips to avoid getting Blocked while Scraping Websites

    Data Scraping is something that has to be done quite responsibly. You have to be very cautious about the website you are scraping. It could have negative effects on the website. There are FREE web scrapers in the market which can smoothly scrape any website without getting blocked. Many websites on the web do not have any anti-scraping mechanism but some of the websites do block scrapers because they do not believe in open data access.

  • Transmit extra data with signals in PyQt5 & PySide2

    Signals are a neat feature of Qt that allow you to pass messages between different components in your applications.

    Signals are connected to slots which are functions (or methods) which will be run every time the signal fires. Many signals also transmit data, providing information about the state change or widget that fired them. The receiving slot can use this data to perform different actions in response to the same signal.

    However, there is a limitation: the signal can only emit the data it was designed to. So for example, a QAction has a .triggered that fires when that particular action has been activated. The triggered signal emits a single piece of data -- the checked state of the action after being triggered.

  • Check your email addresses in Python, as a whole

    So recently, in MDN, we changed the setting WELCOME_EMAIL_FROM. Seems harmless right? Wrong, it failed horribly in runtime and we didn't notice until it was in production.

More in Tux Machines

Security Leftovers

  • What sort of SSH keys our users use or have listed in their authorized keys files

    My first surprise is that we have so many DSA keys listed, since they're no longer supported (and those 380 ssh-dss keys are across 203 different people). People clearly don't clean out their authorized keys files very often. 670 people have RSA keys, 13 have Ed25519 keys, and 15 have some form of ECDSA keys (which implies that a few people list a bunch of ECDSA keys).

    However, that's just what people have sitting around in their authorized keys files, not what actually gets used. What actually gets used is a somewhat different picture. Here are the numbers for how many different keys of each type have been used over the course of 2020 so far: [...]

  • Microsoft is blocking the Windows 10 May 2020 Update on lots of devices [Ed: Microsoft cannot even patch its own software without breaking it]

    Microsoft is preventing a large number of devices from updating to the Windows 10 May 2020 Update. While the software company released the update last week, Microsoft has quietly acknowledged that there are a number of known issues preventing the update from being installed on a variety of PCs. Microsoft has a list of 10 issues it’s currently investigating, and 9 of them have resulted in a “compatibility hold” which stops the Windows 10 May 2020 Update from being installed via Windows Update. One issue involving unexpected errors or reboots with always-on, always-connected devices, affects devices like Microsoft’s Surface Pro 7 or Surface Laptop 3.

  • Security updates for Tuesday

    Security updates have been issued by Arch Linux (ant, bind, freerdp, and unbound), CentOS (bind, freerdp, and git), Debian (python-httplib2), Fedora (ant, kernel, sqlite, and sympa), openSUSE (java-11-openjdk and qemu), Oracle (bind), Red Hat (freerdp), Scientific Linux (python-pip and python-virtualenv), Slackware (firefox), SUSE (qemu), and Ubuntu (Apache Ant, ca-certificates, flask, and freerdp2).

Android Leftovers

Mozilla Firefox 77 Is Now Available for Download, Here’s What’s New

Highlights of the Firefox 77 release include improved accessibility by allowing screen reader users to access the applications list in Firefox Options, providing labels for date/time inputs for users of accessibility tools and updated text in the JAWS screen reader for some live regions. This release also implements support for viewing and managing web certificates via a new about:certificate page, and adds Pocket recommendations on the New Tab page for users located in the United Kingdom (UK). Among other changes, Firefox 77 removes the browser.urlbar.oneOffSearches preference. Users will now have to uncheck the search engines on the One-Click Search Engines option in the about:preferences#search page if they want to hide the one-off search buttons. Read more Direct: 77.0 Firefox Release Also: Firefox 77 Released With Security Fixes, AV1 Image File Support Firefox 77.0 Released with Pocket Recommendations for UK users Firefox 77.0

IBM/Red Hat/Fedora Leftovers

  • Red Hat OpenShift 4 now available on IBM Power Systems

    Clients can exploit the unique capabilities of OpenShift 4 to incrementally modernize the capabilities of their IT infrastructure and streamline their deployment of cloud native applications with continuous integration and deployment. They will be primed to exploit the performance of the Power architecture as they begin to infuse AI and ML insights and Open Source innovations into Linux® applications running on Power Systems. OpenShift 4 combines the industry’s most comprehensive and trusted enterprise container and Kubernetes platform with single step installation, automated upgrades and lifecycle management for every part of our client’s container stack.

  • How to scale an open, energetic community

    Now we're undergoing what may be our largest evolution yet. We're reimagining our mission and vision. We're re-branding. We're renovating our spaces of community conversation and collaboration. We're recruiting new contributors. We're implementing new governance structures to make the project more inclusive. It's incredibly exciting. And in this series, members of the Open Organization project will share the community's journey with you—so you can see firsthand how community evolutions occur, how tough they can be, and how rewarding they become.

  • Ben Williams: F32-20200601 Updated Live isos Released

    The Fedora Respins SIG is pleased to announce the latest release of Updated F32-20200518-Live ISOs, carrying the 5.6.14-300 kernel. Welcome to Fedora 32. This set of updated isos will save considerable amounts of updates after install. ((for new installs.)(New installs of Workstation have about 840+MB of updates)). A huge thank you goes out to irc nicks dowdle, Southern-Gentleman for testing these iso.

  • Insights into hybrid cloud: Here's what to consider

    Our interactions with businesses can happen in person, on the web, on our mobile devices, in marketplaces or via APIs. To enable these interactions, IT organizations are increasingly being driven towards hybrid IT architectures involving private cloud, public cloud, edge computing, AI/ML and more to provide multiple different routes to the customer. This mixed use of public and private clouds, possibly with some degree of workload portability, integration, orchestration, and unified management across those clouds is often referred to as hybrid cloud computing. Research shows that improving business agility and increasing IT agility are key drivers for organizations that are implementing a hybrid cloud strategy.