Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Riddle me this

    Found this today while playing around, thought people might enjoy this riddle.

  • TOP 5 Software Failures of 2018–2019 (#5 is pretty alarming)

    In this modern day and age tech is something we can’t even imagine our life without. Technology is so cool and we love it! But not everything goes as planned and the thing that was supposed to make life easier and be useful can become quite scary. So, this week we’ve wanted to bring your attention to the “TOP 5 Software Failures of 2018–2019 (#5 is pretty alarming)”. We are very interested in your thoughts on the matter!

  • Using Matplotlib with Wing 7

    Wing supports interactive development and debugging of Python code designed for the Matplotlib numerical and scientific plotting library, so plots can be shown and updated from the command line.

  • An unexpected character replacement

    A few weeks ago I found a replacement in GBIF that I'd never seen before: M<fc>ller. It was a hexadecimal value for the character "ü" enclosed in angle brackets. That particular hex value for "ü" appears in Windows-1252 and other encodings, but what program did this replacement? And why?

    Suspecting the worst, I did a search for other angle-bracket-enclosed strings in the dataset. The search turned up a lot of data items which had originally contained a non-breaking space, and which now contained that character's Unicode representation in brackets, for example Laevicardium. Excluding these, the result is shown here:

  • 40 Simple Yet Effective Linux Shell Script Examples

    Historically, the shell has been the native command-line interpreter for Unix-like systems. It has proven to be one of Unix’s major features throughout the years and grew into a whole new topic itself. Linux offers a variety of powerful shells with robust functionality, including Bash, Zsh, Tcsh, and Ksh. One of the most amazing features of these shells is their programmability. Creating simple yet effective Linux shell scripts for tackling day to day jobs is quite easy. Moreover, a modest knowledge over this topic will make you a Linux power user in no time. Stay with us to for a detailed introduction to Unix shell scripting.

  • Creating A Super User In Django

    Django’s prominent feature is the admin interface, which makes it stand out from the competition. It is a built-in app that automatically generates a user interface to add and modify a site’s content.

  • Using PostgreSQL with Django

    Django is a high level full-stack open-source web framework written in Python, that encourages rapid development and clean, pragmatic design.

    Django, in its ‘out-of-the-box’ state, is set up to communicate with SQLite – a lightweight relational database included with the Python distribution. So by default, Django automatically creates an SQLite database for your project.

    In addition to SQLite, Django also has support for other popular databases that include PostgreSQL, MySQL, and Oracle.

  • Creating Comments System With Django

    In this tutorial, we will build a basic commenting system for a Django 2.X app, which lets readers add comments on posts.

    Here is a preview of what we are going to build by the end of this tutorial.

More in Tux Machines

today's howtos

Thermostats, Locks and Extension Add-ons – WebThings Gateway 0.10

Happy Things Thursday! Today we are releasing WebThings Gateway 0.10. If you have a gateway using our Raspberry Pi builds then it should already have automatically updated itself. This new release comes with support for thermostats and smart locks, as well as an updated add-ons system including extension add-ons, which enable developers to extend the gateway user interface. We’ve also added localisation settings so that you can choose your country, language, time zone and unit preferences. From today you’ll be able to use the gateway in American English or Italian, but we’re already receiving contributions of translations in different languages! Read more

A technical comparison between the snap and the Flatpak formats

Since we’ve already discussed the snap layout and architecture in greater details in the previous weeks, let’s start with a quick overview of Flatpak. Much like snaps, Flatpak packages come with necessary components contained inside standalone archives, so they can be deployed and maintained with simplicity on a range of Linux distributions. Runtime and image components are bundled into a single file using the OCI format. In general, Flatpak applications are built against runtimes, but they can also contain additional libraries inside their own bundles. A Linux system with the Flatpak binary (primary command) installed and configured can then run Flatpak applications. At the moment, there are 21 distributions that offer Flatpak support. Furthermore, applications are sandboxed using Bubblewrap, which utilises kernel security and namespace features to set up unprivileged containers. Communication outside the sandbox is possible through a mechanism of portals, which allows granular access to system resources. Flatpak packages are available to end users primarily through Flathub, an app store and build service that is (semi)-officially associated with the Flatpak project. Submissions to Flathub are done as pull requests through GitHub, and require approval from the store admins. Similarly, publishers of proprietary software have to manually request inclusion of their applications. Flatpak applications are also sometimes available as manual download links. There is no automatic update mechanism available by default. Read more

Zorin OS vs Linux Mint

There are some specific linux distros out there that specially target the new and casual Linux users, most notably, Linux Mint and Zorin OS. In this article we will compare them.

Zorin OS vs Linux Mint

Both of these distros have earned a solid reputation from the community for being two of the most user-friendly distros of all. Both of them use Ubuntu as the core. Thus, both of them offer similar functionality at the core. However, the real magic is how each of them builds up on top of it. Both Linux Mint and Zorin OS comes up with different feel and vibe. While both of them are extremely user-friendly and robust, there are some key differences between them. That’s the beauty of Linux. Read more