Language Selection

English French German Italian Portuguese Spanish

Programming: PyLint, C2x, Librem 5, Portable Document Format (PDF) in Python

Filed under
Development
  • Writing Cleaner Python Code With PyLint

    PyLint is a well-known static analysis tool for Python 2 and 3. It has a number of useful features, like checking your code for compliance with the PEP 8 Python style guide. It makes sure that your code follows the code style guide and it can also automatically identify common bugs and errors in your Python code.

    In this video series you’ll see how to install and set up the PyLint code linter tool. You’ll learn why you should use code linters like PyLint, Flake8, PyFlakes, or other static analysis tools—and how they can help you write cleaner and more Pythonic code.

    You can get this setup up and running in a few minutes and it’ll quickly help you write better and cleaner Python code.

  • LLVM Clang 9.0 Picks Up Initial C2x Language Mode

    Merged today to the mainline Clang compiler front-end is the initial C2x language mode support as what will eventually be the successor to the C18 programming language.

    C2x is still quite a ways out from release and its changes still under determination. At this stage the C2x language support for LLVM Clang is just enabling support by default for the [[attribute]] (double square brackets attribute; similar to C++) support.

  • Librem 5 App Design Tutorial – Part II

    Hello and welcome to the second of my series of blog posts on how to design your own, brand new app for the Librem 5.

    In my last post we went over the philosophy and process, goals and relevant art of building a read-it-later app; today we’ll be discussing sketches and mockups – specifically in what concerns navigation, article and article list screens, and desktops.

  • Working with PDFs in Python: Adding Images and Watermarks

    Today, a world without the Portable Document Format (PDF) seems to be unthinkable. It has become one of the most commonly used data formats ever. Up to PDF version 1.4, displaying a PDF document in an according PDF viewer works fine. Unfortunately, the features from the newer PDF revisions, such as forms, are tricky to implement, and still require further work to be fully functional in the tools. Using various Python libraries you can create your own application in an comparable easy way.

    This article is part two of a little series on PDFs with Python. In part one we already gave you an introduction into reading PDF documents using Python, and started with a summary of the various Python libraries. An introduction followed that showed how to manipulate existing PDFs, and how to read and extract the content - both the text and images. Furthermore, we showed you how to split documents into its single pages.

    In this article you will learn how add images to your PDF in the form of watermarks, stamps, and barcodes. For example this is quite helpful in order to stamp or mark documents that are intended to be read by a specific audience, only, or have a draft quality, or to simply add a barcode for identification purposes.

More in Tux Machines

today's howtos

Wine 4.0.2 Released

  • Wine Announcement

    The Wine maintenance release 4.0.2 is now available.

  • Wine 4.0.2 Released With 66 Bug Fixes

    Wine 4.0.2 is out today as the second stable point release to this year's Wine 4.0 cycle. As is customary for Wine stable point releases, only bug fixes are allowed in while new features come by way of the bi-weekly development releases that will lead up to the Wine 5.0 release in early 2020.

  • The stable Wine 4.0.2 release is now available

    If you prefer to walk on the calmer side of life, the Wine 4.0.2 release has been made available today. As it's just a "maintenance" release, there's no big new features which are reserved for the current 4.xx series currently at 4.14 released on August 17th. With that in mind they noted 66 bugs being marked as solved. These bugs include issues with Worms 2, Warframe, Rogue Squadron 3D, Settlers III, Mass Effect, F.E.A.R. 2: Project Origin, The Sims and plenty more.

  • Linux Gaming FINALLY Doesn't SUCK!

28 facts about Linux for its 28th birthday

Nearly three decades ago, Linus Torvalds sent the email announcing Linux, a free operating system that was "just a hobby" and not "big and professional like GNU." It's fair to say that Linux has had an enormous influence on technology and the world in general in the 28 years since Torvalds announced it. Most people already know the "origin story" of Linux, though. Here's 28 things about Linux (the kernel and larger ecosystem) you may not already know. 1 - Linux isn't very useful alone, so folks took to creating Linux distributions to bundle user software with it, make it usable and easier to install. The first Linux distribution was Softlanding Linux System (SLS), first released in 1992 and using the .96p4 Linux kernel. You could buy it on 5.25" or 3.5" floppies, or CD-ROM if you were high-tech. If you wanted a GUI, you needed at least 8MB of RAM. 2 - SLS didn't last, but it influenced Slackware Linux, which was first released in 1993 and is still under development today. Slackware is the oldest surviving Linux distribution and celebrated its 26th birthday on July 17th this year. 3 - Linux has the largest install base of any general purpose operating system. It powers everything from all 500 of the Top 500 Supercomputers to Android phones, Chomebooks, and all manner of embedded devices and things like the Kindle eBook readers and smart televisions. (Also the laptop used to write this post.) Read more

Quick Guide to The Awesome GNOME Disk Utility

GNOME Disk Utility is an awesome tool to maintain hard disk drives that shipped with Ubuntu. It's called simply "Disks" on start menu on 19.04, anyway. It's able to format hard disks and USB sticks, create and remove partitions, rename partitions, and check disk health. Not only that, it also features writing ISO into disk and vice versa, create ISO image of a disk. This tutorial explains in brief how to use it for 8 purposes. Let's go! Read more