Language Selection

English French German Italian Portuguese Spanish

Python Programming: Django 3.0 Alpha, PyGame and More

Filed under
Development
  • Django 3.0 alpha 1 released

    Django 3.0 alpha 1 is now available. It represents the first stage in the 3.0 release cycle and is an opportunity for you to try out the changes coming in Django 3.0.

    Django 3.0 has a raft of new features which you can read about in the in-development 3.0 release notes.

  • Exploring pygame 5 - Movement and Collision

    Movement is part of a large portion of games. When jumping between platforms, shooting against a horde of enemies, piloting a space ship and running through the streets, we are causing movement and interacting with the game environment, applying action and causing reactions.

    This chapter is to describe the basics of moving objects across the screen and their interaction with other elements through collision detection.

  • Master Python List Comprehension in 2 Minutes

    This tutorial explains Python list comprehension in no more than 2 minutes. It is the fastest method to search a list, apply some condition, and return a new list with selected elements.

    You may find it similar to Python filter() method that filters values based on some condition. However, list comprehension has a powerful syntax which gives more options.

  • Absolute vs Relative Imports in Python

    If you’ve worked on a Python project that has more than one file, chances are you’ve had to use an import statement before. Even for Pythonistas with a couple of projects under their belt, imports can be confusing!

    If you’re reading this because you’d like to gain a deeper understanding of imports in Python, particularly absolute and relative imports, then you’ve come to the right place! In this tutorial, you’ll learn the differences between the two, as well as their pros and cons.

  • PyCoder’s Weekly: Issue #385 (Sept. 10, 2019)

More in Tux Machines

AMD EPYC 7642 Benchmarks: The Rome 48 Core CPU That Easily Takes On Intel's Xeon Platinum 8280

Since the AMD EPYC 7002 series "Rome" launch at the beginning of August, it's been known how AMD's top-end (aside from the newly-announced EPYC 7H12) EPYC 7742 easily outperforms the Intel Xeon Platinum 8280 in most real-world benchmarks. The EPYC 7742 not only outperforms the Xeon Platinum 8280 in raw performance but also at a significantly lower cost and it gets even better with the EPYC 7642. We have been testing the EPYC 7642 48-core processors and even there the performance is generally ahead of a Xeon Platinum 8280 while being about half the cost of that flagship non-AP Intel Xeon Scalable Cascadelake processor. Complementing our recent EPYC 7302 and EPYC 7402 benchmarks, today we are focused on the EPYC 7642 as the Rome 48-core / 96-thread processor. This 48 core processor has a 2.3GHz base clock and 3.3GHz boost clock while having 256MB of L3 cache, eight DDR4-3200 memory channels, 128 PCIe 4.0 lanes, and other features in common with the EPYC 7742 and other Rome processors. The EPYC 7642 carries a 50MHz base clock speed advantage over the 64 core EPYC 7742 but a 100MHz lower boost clock speed as the principal differences aside from the core/thread count. Both of these CPUs carry a 225 Watt TDP. Read more

Plasma 5.16.90 (Plasma 5.17 Beta) Available for Testing

Are you using Kubuntu 19.04 Disco Dingo, our current Stable release? Or are you already running our development builds of the upcoming 19.10 Eoan Ermine? We currently have Plasma 5.16.90 (Plasma 5.17 Beta) available in our Beta PPA for Kubuntu 19.04 and 19.10. This is a Beta Plasma release, so testers should be aware that bugs and issues may exist. Read more

Raspberry Pi 4 getting hot? A closer look

I hope that will all arrive in time for me to try it out over the weekend, so I can pass along some more information about temperatures, and about what pieces fit together in which cases, if any. Finally, the Raspberry Pi Foundation says that they are working on several software and firmware changes that should help bring the temperature of the Pi 4 down. Hopefully those will be released soon - but even if they are, I don't expect that they will improve the situation by more than 5 degrees or so, and given how hot the Pi 4 runs, that is not enough to eliminate the need for the kind of hardware measures I am looking at now. Read more

Top Open Source Video Players for Linux

You can watch Hulu, Prime Video and/or Netflix on Linux. You can also download videos from YouTube and watch them later or if you are in a country where you cannot get Netflix and other streaming services, you may have to rely on torrent services like Popcorn Time in Linux. Watching movies/TV series or other video contents on computers is not an ‘ancient tradition’ yet. Usually, you go with the default video player that comes baked in with your Linux distribution (that could be anything). You won’t have an issue utilizing the default player – however, if you specifically want more open-source video player choices (or alternatives to the default one), you should keep reading. Read more