Language Selection

English French German Italian Portuguese Spanish

Python Programming: Python 3.9.0a5, Twisted, Django and More

Filed under
Development
  • Python 3.9.0a5 is now available for testing

    On behalf of the entire Python development community, and the currently serving Python release team in particular, I’m pleased to announce the release of Python 3.9.0a5. Get it here:
    https://www.python.org/downloads/release/python-390a5/

  • Twisted Drops Python 2.7 Support

    With the open-source Python community at large dropping Python 2.7 support in their projects, Twisted has decided to do the same. Twisted 20.3.0, the most recently released version, is the final release to offer Python 2.7 support.

  • Simple Speech to Text Converter Using Speech Recognization in Python

    In this part, I'm going to share small script to create speech to text converter in python using google Speech Recognition module.

  • Against service layers in Django

    Recently I’ve seen posts and questions pop up in a few places about a sort of “enterprise” Django style guide that’s been getting attention. There are a number of things I disagree with in that guide, but the big one, and the one people have mostly been asking about, is the recommendation to add a “service layer” to Django applications. The short version of my opinion on this is: it’s probably not what you want in Django apps.

  • More on service layers in Django

    While there were plenty of people who agreed with the general idea of that post, there were also quite a few objections. And most of those seem to fall into two main categories: people who want some type of additional layer (and may or may not call it a “service”) as a way of managing cross-cutting complexity, and people who want it as an isolating abstraction for testing.

    There’s also a third group whose objections are more about the Active Record ORM pattern, but that’s not something that can be solved within the context of the Django ORM — it is and likely always will be an Active Record ORM. As I mentioned in the previous post, if you want a Data Mapper ORM in Python, I think you really should be using SQLAlchemy. And you probably shouldn’t be using Django at all in that case — instead, either go with a microframework that lets you plug in whatever you want (most likely Flask), or with a full-stack framework built around SQLAlchemy (your best choice is probably Pyramid). I think you’ll be much happier working with one of those than with trying to retrofit SQLAlchemy, or any other replacement ORM, into Django.

  • Stéphane Wirtel: Contribution to PythonIreland

    At the end of February, I was in Limerick to help the PythonIreland team for the PyCon Limerick held there during the weekend of February 29th.

    And because I wanted to help them, I have started to rewrite the web site of PyCon Limerick 2020. The current version of PyCon Limerick uses a Wordpress instance, I have no issues with the set up. But I prefer to work with a static site, and with some other members of the team, I have started to work on a static version with Hugo.

  • The Python math Module: Everything You Need to Know

    In this article, you’ll learn all about Python’s math module. Mathematical calculations are an essential part of most Python development. Whether you’re working on a scientific project, a financial application, or any other type of programming endeavor, you just can’t escape the need for math.

    For straightforward mathematical calculations in Python, you can use the built-in mathematical operators, such as addition (+), subtraction (-), division (/), and multiplication (*). But more advanced operations, such as exponential, logarithmic, trigonometric, or power functions, are not built in. Does that mean you need to implement all of these functions from scratch?

  • New pip resolver to roll out this year

    The developers of pip are in the process of developing a new resolver for pip (as we announced on the PSF blog last year). We aim to roll it out later this year. As part of that work, there will be some major changes to how pip determines what to install, based on package requirements.

  • How to Shuffle a List in Python

    random is a Python module that implements pseudo-random number generators. random.shuffle can shuffle a list in-place.

More in Tux Machines

Staying "safe" while you stream: DBD's tips on living DRM-free during quarantine

As most of us are cooped up in our homes due to the ongoing COVID-19 pandemic, it's somewhat natural that we turn to online movies, music, and other media to help pass the time. For most people, this involves turning to Internet streaming for convenient, "all-in-one" services that promise an endless array of recommendations to while away the hours. "Binging" is all well and good every once in a while, but we should remain careful that the ways we're getting our media don't come with compromises to our freedom. As we've mentioned before, Netflix and other giant media providers are responsible for keeping the practice of DRM (Digital Restrictions Management) alive, and it's important not to provide them with the subscription fees they need to keep going. It's also important, even under less dire circumstances, to support businesses and Web sites that provide DRM-free media, and to promote them to our friends. So to help provide you with a plethora of DRM-free and often gratis places to stream from while keeping your rights, here's a few choice selections from our Guide to DRM-free Living. When it comes to finding good videos to watch during times of crisis, we'd be remiss if we didn't mention the Internet Archive. This section of the digital library contains bona-fide cinematic masterpieces like Nosferatu, as well as "classics" of a different sort like Plan 9 from Outer Space. Many of these works have been voluntarily uploaded to the Archive by their creators, or, like Night of the Living Dead, have fallen into the public domain due to some of the vagaries and finer points in United States copyright law. Read more

Signage SBC showcases hexa-core S922X

Shenzhen Tomato’s “XYT-6689” SBC runs Android 9.0 on a 2GHz hexa-core -A73 and -A53 Amlogic S922X with up to 4GB RAM and 64GB eMMC. Display interfaces including HDMI 2.1, LVDS, eDP, and V-by-One. Shenzhen Tomato has posted a product page for a signage-oriented XYT-6689 (Amlogic S922X Digital Signage) SBC that runs Android 9.0 on Amlogic’s S922X. The only other S922X-based SBC we’ve seen is Hardkernel’s community-backed Odroid-N2, which supports it with Ubuntu 18.04 in addition to Android 9. The unpriced XYT-6689 is designed for digital signage, intelligent display terminal equipment, industrial automation terminals, and gaming and AI computers. Read more

today's howtos

  • How to configure a print server with Ubuntu Server, CUPS, and Bonjour

    You probably have a few Linux machines in your data center that have a few CPU cycles to spare. Why not make use of them for a printer server? After all, most businesses still rely on printing for certain departments. When your business is large enough to require a print server, you might as well go with a tried and true system: Linux.

  • A “Hello World” virtual machine running the Hurd

    There’s been a bit of speculation as to whether our April 1st post was a joke. Part of it was a joke: we’re not deprecating Linux-libre, fear not! But when we published it, it was already April 2nd in Eastern parts of the world and thus, not surprisingly, the remainder of the post was less of a joke.

  • Reviewing Docker Logs

    Many of you know that it's possible to access Docker container logs using "docker logs" command. But fewer people know that it's possible to follow logs stream for new messages (like tail -f), and even fewer yet are aware that it's possible to specify timestamps of the period you want to review – showing only specific logs during that period.

  • 7 echo command uses in Linux with examples

    Echo command outputs strings that are passed as arguments and usually used in shell scripts and batch files to output status text to a screen or as a source part of a pipeline. Syntax: echo [-n] [string ...] Let's learn its usage in Linux with practical examples in today's session of Terminal Tuts.

  • 4 Methods to Setup and Use a VPN

    4 Methods to Setup and Use a VPN Let's go over the setup and usage of VPNs as they are the best method to work from home. I have set up several VPNs over the past couple of weeks and here are a few of the methods I have used.

  • Linux system housekeeping 101: Managing file storage

    One of your many duties as a system administrator is the often daunting task of keeping your system's filesystems clear of clutter. It's not an easy task, is it? This first article in a short housekeeping series explores some basic system housekeeping concepts that will keep your systems healthy and your users responsible.

  • How to Take Screenshots without Shadows in KDE

    KDE’s desktop effects are fantastic, except when taking screenshots for use on your site or blog. Great-looking shadows around every desktop element are captured as well and can end up conflicting with your site or blog’s theme. Most screenshot tools insist on capturing them, and the option they offer to disable decorations can also change how windows look. The only solution seems to be to capture a rectangular area and then manually define the region of each screenshot or maybe to edit each screenshot afterward in something like GIMP.

  • How to Install Shutter Screenshot Tool in Ubuntu 20.04

    This quick tutorial shows how to install Shutter, one of the most popular screenshot applications for Linux desktop, in Ubuntu 20.04 LTS. Shutter is removed from the main Ubuntu repositories since Ubuntu 18.10, along with some old Gnome libraries required by the screenshot tool. It is however can be easily installed via the community maintained PPA repository in Ubuntu 19.10, Ubuntu 20.04.

  • How To: Recover Deleted Files With PhotoRec

    If you find yourself here reading this article, it probably means something has gone terribly wrong. Take a deep breath, we’re going to get through this. Buried in the depths of the Google search results for “deleted file recovery,” past the very aggressive SEO results of various companies trying to get you to buy their software, lies a result for one of my favorite pieces of free open-source software, PhotoRec. It is a companion program to TestDisk, another piece of wonderful open-source software, created by CGSecurity under the GNU General Public License. In this guide, we will go through the relatively painless process of recovering deleted files with PhotoRec. These tools are especially useful for recovering files from portable flash media used with digital cameras.

  • emacs and uemacs

Software: PeaZip, GIMP, Chrome, YADM and Homeshick

  • PeaZip 7.2.0

    Open and extract 180+ archive formats: 001, 7Z, ACE(*), ARC, ARJ, BZ2, CAB, DMG, GZ, ISO, LHA, PAQ, PEA, RAR, TAR, UDF, WIM, XZ, ZIP ZIPX - view full list of supported archive file formats for archiving and for extraction.

  • Photo software options [Ed: GIMP (the GNU Image Manipulation Program) listed under "Freeware" (which is wrong)]

    GIMP (the GNU Image Manipulation Program) is an open source program that has been around since the mid-to-late 1990s so there’s been plenty of time to refine it. Available for the Linux, Mac OS X and Windows platforms it provides most of the same features as Adobe’s Photoshop and its user interface is highly customisable. It also supports many of the plugins offered by third-party developers.

  • Google Chrome 81 Now Available for Download on Linux, Windows, and Mac

    Google has just released Chrome 81 on all supported platforms, including Linux, Windows, and Mac. The new version is 81.0.4044.92, and it includes several notable improvements, including support for the Web NFC API, which means that web apps can finally use the built-in NFC. In other words, if your device is bundled with an NFC, web apps can use it though Google Chrome, either for data transfer or for other implementations. Google says it has resolves a total of 32 security vulnerabilities with this release, with the company once again paying thousands of dollars in bounties to researchers who reported the flaws.

  • It's all in the dot file - YADM and Homeshick

    Backups are important. Backups are crucial. Backups are love, backups are life. Over the years, I've talked about the cardinal value of keeping your data safe, and that means multiple copies, multiple locations. We also talked about how to concoct your own quick 'n' dirty setup with tar and gpg recently. That one covers both data and application settings. Speaking of the latter ... Let's expand on this some more. If you have multiple computers, reinstall systems frequently, or just like to have a consistent configuration across multiple hosts, you might be interested in a way to manage application settings. In Linux, most software keeps their configurations in hidden files inside the home directory, either at the top level (/home/username) or inside the .config sub-directory. Either way, there could be plenty of them, you want to make sure you always have a copy, and if something goes wrong, you can easily revert to a good checkpoint. Introducting YADM and Homeshick.