Language Selection

English French German Italian Portuguese Spanish

Python Programming

Filed under
Development
  • Mike Driscoll: PyDev of the Week: Bob Belderbos

    This week we welcome Bob Belderbos (@bbelderbos) as our PyDev of the Week! Bob is a co-founder of PyBites. Bob has also contributed to Real Python and he’s a Talk Python trainer. You can learn more about Bob by checking out his website or visiting his Github profile. Let’s spend some quality time getting to know Bob better!

    Can you tell us a little about yourself (hobbies, education, etc):

    I am a software developer currently working at Oracle in the Global Construction Engineering group. But I am probably better known as co-founder of PyBites, a community that masters Python through code challenges.

  • Spyder IDE: Variable Explorer improvements in Spyder 4

    Spyder 4 will be released very soon with lots of interesting new features that you'll want to check out, reflecting years of effort by the team to improve the user experience. In this post, we will be talking about the improvements made to the Variable Explorer.

    These include the brand new Object Explorer for inspecting arbitrary Python variables, full support for MultiIndex dataframes with multiple dimensions, and the ability to filter and search for variables by name and type, and much more.

    It is important to mention that several of the above improvements were made possible through integrating the work of two other projects. Code from gtabview was used to implement the multi-dimensional Pandas indexes, while objbrowser was the foundation of the new Object Explorer.

  • Django security releases issued: 2.2.8 and 2.1.15

    Since Django 2.1, a Django model admin displaying a parent model with related model inlines, where the user has view-only permissions to a parent model but edit permissions to the inline model, would display a read-only view of the parent model but editable forms for the inline.

    Submitting these forms would not allow direct edits to the parent model, but would trigger the parent model's save() method, and cause pre and post-save signal handlers to be invoked. This is a privilege escalation as a user who lacks permission to edit a model should not be able to trigger its save-related signals.

    To resolve this issue, the permission handling code of the Django admin interface has been changed. Now, if a user has only the "view" permission for a parent model, the entire displayed form will not be editable, even if the user has permission to edit models included in inlines.

    This is a backwards-incompatible change, and the Django security team is aware that some users of Django were depending on the ability to allow editing of inlines in the admin form of an otherwise view-only parent model.

  • Guidelines for BangPypers Dev Sprints

    How do you get started on open source programming? How can you contribute to that framework you’ve been itching to add an extra feature to? How do you get guidance and get help pushing your changes to merge upstream?

    If you’ve wondered on the above at least once, then you’re in dire need to attend one of our dev sprints.

  • Trey Hunner: Cyber Monday Python Sales

    Python Morsels is my weekly Python skill-building service.

    I’m offering something sort of like a “buy one get one free” sale this year.

    You can pay $200 to get 2 redemption codes, each worth 12 months of Python Morsels.

    You can use one code for yourself and give one to a friend. Or you could be extra generous and give them both away to two friends. Either way, 2 people are each getting one year’s worth of weekly Python training.

    You can find more details on this sale here.

More in Tux Machines

Open source luminaries turn up spotlight on GitHub over ICE deal

An open letter to Git Hub demanding that it drop its controversial contract with the US Immigration and Customs Enforcement agency was heading towards 400 signatures from open source maintainers and developers as of Friday. The open letter, posted, naturally, on GitHub, referenced a previous open letter four years ago that lit a fire under the company and forced to fix a range of issues that had been troubling users. “Now, we are asking you to help again,” the signatories wrote, going on to say that as it enforces the Trump administration’s immigration policies, ICE “is actively committing numerous crimes and human rights violations, in contravention of both US and international law”. “At the core of the open source ethos is the idea of liberty,” the letter writers say. “Open source is about inverting power structures and creating access and opportunities for everyone.” Read more Also: A group of developers sent a letter demanding GitHub cancel its ICE contract, saying it puts the Microsoft-owned company at odds with its own community and values

Events: Paris Open Source Summit 2019 and Advent of Code 2019

  • Paris Open Source Summit 2019 (in english)

    Just so you know, the Fedora-fr community will be present at the 2019 edition of Paris Open Source Summit. This year, POSS will be held on December 10th and 11th from 9am to 6pm and, like every year, will be held at Dock Pullmann, in Aubervilliers. We will have a stand on the associative village (booth A34, to be quite exact). We will be there to answer any questions about Fedora, offer to burn an image of Fedora 31 on your USB key. We will have Fedora goodies for people who are interested. Feel free to come to the Salon if you have time during the 2 days in question and drop by to say hi if you're there!

  • Advent of Code 2019

    My work does not involve that much coding any more. I probably spend more time doing email, attending meetings, and preparing presentations than anything else these days. Still, my fingers itch if I don’t get to write some code now and then. This has resulted in small apps such as Mattemonster, where I pushed myself to get it into a presentable state so that I could publish it to Google Play. Any one with kids starting with maths should try the app – my son loves it!

Ubuntu Virtualisation and Ubuntu Touch

  • Comparison between LXC and LXD

    Traditionally, we would have a physical computer and expect to run a single operating system on it. One way to go over this limitation, is to use virtualization, which allows us to run multiple operating systems (virtual machines) on a computer. For virtualization to work efficiently, we would need special virtualization support from the CPU (Intel CPUs: VT-x, AMD CPUs: AMD V). Relevant virtualization software include KVM, Xen, VirtualBox, Hyper-V and VMWare. Virtualization is good, but takes lots of system resources because you boot up a full operating system for each virtual machine. Can we have an additional option for lightweight virtual machines that do not require to boot their own Linux kernel but can reusing the running Linux kernel of the host? Well, we can, and these are the Linux Containers.

  • Discussion on running X11 applications from within LXD system containers

    With LXD, you can create system containers. These system containers are similar to virtual machines, while at the same time they are very lightweight. In a VM, you boot a full Linux kernel and you run your favorite Linux distribution in a virtualized environment that has a fixed disk size and dedicated allocation of RAM memory. To get a graphics application to run in a VM, you need a virtualized GPU, such that will have hardware accelerated access to the host graphics driver. In contrast, in a system container, you keep using the running Linux kernel of the host, and you just start the container image (runtime, aka rootfs) of your favorite Linux distribution. Your container uses as much disk space are needed from a common storage, and the same goes with the memory (you can also put strict restrictions, if you need). To get a graphics application to run in a container, you need to pass a Unix socket of your existing X server (or a new isolated X server).

  • [Older] Ubuntu Touch: reports of its death have been greatly exaggerated

    Remember the times when Canonical was working on a Qt-based desktop and mobile phone? Remember Unity, the default Ubuntu desktop that was about to be rewritten in Qt under the name as Unity8 shortly before Canonical killed the project and switched to GNOME? And Remember Ubuntu Touch, the Linux-based operating systems for tablets and smartphones based on Ubuntu with a QML-based user interface? Turns out that the Ubuntu-based mobile operating system is living on and thriving in an independent community under the auspices of the UBports project. Quite possibly, being driven by a community of passionate volunteers may be turning out as one of its strongest points. Time to try it out! Wouldn’t it be cool if besides Android and iOS there was a mobile operating system that was truly open source not only by license but also by spirit, one in which you you could actually be in full control over your device and personal data, one which you could change as you please, one which you wouldn’t have to “jailbreak” and fiddle around with to get at a Linux root shell and to install a system-wide ad blocker? One where you could send a pull request on GitHub with a realistic change of it being reviewed and merged?

Google Chrome and Mozilla Firefox

  • If you want an example of how user concerns do not drive software development, check out this Google-backed API

    A nascent web API called getInstalledRelatedApps offers a glimpse of why online privacy remains such an uncertain proposition. In development since 2015, Google has been experimenting with the API since the release of Chrome 59 in 2017. As its name suggests, it is designed to let web apps and sites determine whether a corresponding native app is installed on a user's device. The purpose of the API, as described in the proposed specification, sounds laudable. More and more, the docs state, users will have web apps and natives apps from the same source installed on the same device and as the apps' feature sets converge and overlap, it will become important to be able to distinguish between the two, so users don't receive two sets of notifications, for example.

  • Mozilla Releases DeepSpeech 0.6 With Better Performance, Leaner Speech-To-Text Engine

    DeepSpeech 0.6 currently achieved a 7.5% word error rate for this open-source speech-to-text engine. The new release has various API changes, better training performance with TensorFlow 1.14 cuDNN RNN support for their training graph, trimmed down their language model to be using the top 500k words, adding various data augmentation techniques, a tool for bulk transcribing large audio files, and various other changes.

  • [Older] Give Firefox a chance for a faster, calmer and distraction-free internet

    Using Firefox gives you peace of mind and keeps you away from the advertising companies constantly following you around, profiling you and tempting you to purchase their products.