Language Selection

English French German Italian Portuguese Spanish

Programming: “Pseudolocale”, Python, Go and GNU's Gas

Filed under
Development
  • Developer tool for i18n: “Pseudolocale”

    While browsing for some internationalisation/localisation features, I found an interesting piece of functionality in Android's developer documentation.

  • Format your log messages in Python

    Getting log messages into the desired format can sometimes be a problem, but with syslog-ng you can use Python to get exactly the format you need. The syslog-ng Python template function allows you to write custom templates for syslog-ng in Python. It was available in syslog-ng already for almost two years, but somehow stayed under the radar for me. The Python template function can work on the whole log message (which is passed on to it automatically as an object) or on the data received as argument.

    In this blog I show you a simple use of the Python parser: resolving IP addresses to host names. I also show you a nice new feature, the logger method, which enables you to log to syslog-ng’s internal() log source instead of writing logs from Python to stdout. This way you can follow what your Python code does even if syslog-ng is running as a daemon in the background.

  • AnacondaCON 2019 Day 2 Recap: AI in Medicine, Cataloging the Contents of Stars, and More!

    We’re back with a recap of Day 2 of our annual AnacondaCON. (In case you missed it, you can read our Day 1 recap here). Things started off on an exciting note with an Opening Keynote by Scott Collison, CEO of Anaconda, announcing the new PyCharm for Anaconda.

    This new partnership will bring JetBrains’ Integrated Development Environment (IDE) and notebook capabilities into Anaconda Enterprise, empowering Python developers and data scientists with tight integration and optimized workflows.

  • Anaconda 2019.03 Release [Ed: Two falsehoods from Anaconda yesterday (in "Windows is the most popular operating system in the world"); 1) it is not popular, just widely used owing to Microsoft corruption. 2) Android is most widely used, or Linux.]

    Windows is the most popular operating system in the world and consistently has 75% or more of the worldwide desktop market. According to the JetBrains Python Developers Survey, 49% of Python developers use Windows as their desktop operating system. Previous Windows releases of Anaconda Distribution included a command shell specifically for running conda and Python scripts. The 2019.03 release features full conda integration with Windows Powershell.

    In addition to Powershell integration, this release addresses the issue of slow uninstalls of Anaconda on Windows. Working with shared libraries in Windows can be tricky and we’re working to resolve conflicts by setting an environmental variable to gracefully handle library conflicts commonly known as DLL Hell.

    This release includes conda 4.6.11, an update from our initial release of conda 4.6.0. Features for the 4.6 release are detailed in this article. Since the release, we’ve been updating conda based on community input. Thank you and kudos to the Anaconda community for helping us continuously improve conda as a leading package manager.

  • The Power of Workflow Scripts

    Nextcloud has the ability to define some conditions under which external scripts are executed. The app which makes this possible is called “Workflow Script”. I always knew that this powerful tool exists, yet I never really had a use case for it. This changed last week.

  • API v3 of the yaml package for Go is available

    API v3 of the yaml package for Go is out, and it brings comment handling, intermediate node representations, and much more.

    The initial sketch for v3 of the yaml package for Go was first drafted almost exactly a year ago, by the end of March last year (2018). If this package doesn’t sound familiar, it’s the underlying code that reads and writes configuration files for many of the popular Go packages that we benefit from, including snaps, Kubernetes, juju, and many others.

    This time what finally broke the stability barrier was the desire of having an intermediate representation that allowed YAML to be understood and described in a structure closer to the text format. This unlocks a number of interesting features that were long time requests in the issue tracker, such as the ability to manipulate comments, surfacing line and column locations for data, better handling of style, encoding and decoding of anchors and aliases, and so on.

    The package was born in late 2010, and its v2 API was stabilized by 2014, so between then and now there were about 4 years of small paper cuts to address in its behavior. But paper cuts are rarely a good motivation to introduce a breaking change that forces people to perform manual actions.

  • Python Bytes: #124 This is not the None you're looking for
  • First test with 3.7.3 and opencv-python module version 4.0.0 .
  • GNU Gets Gas'ed Up For Intel BFloat16 Support

    While Cascade Lake Xeon Scalable processors launched just this week, already with their successor "Cooper Lake" we are looking forward to Intel supporting the BFloat16 floating-point format designed for machine learning workloads. GNU's Gas now has assembler/disassembler support for BF16 instructions. 

    With Intel always working for punctual support for new CPU instructions in the open-source toolchain, they landed on Friday support for BF16 into the Binutils code-base for Gas, the GNU Assembler. 

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.