Language Selection

English French German Italian Portuguese Spanish

Programming: PHP, Python, Rust, Java and More

Filed under
Development
  • Terminal Escape Injection

    Apart from planting them into various scripts, they could be also successfully planted into:

    Configuration files – potentially with the same impact (ACE)

    Log files – as part of detection bypass efforts

  • Developers don't need ping-pong tables

    For the next half an hour, he’s been proudly telling about “exciting” projects, competitive salary, and a fancy office in the city center. During his elevator pitch, he was not shy to mention disruptive technology, innovation culture, and dynamic environment, also known as “our management can’t stop changing priorities”.

    When I asked him what motivates software developers, he shrugged.

    Companies waste millions on building the environment they think makes developers happy, without understanding what actually makes developers tick.

  • Qt, range-based for loops and structured bindings

    Qt has a long history. The first stable version was released before the first version of C++ was standardized and long before the different C++ compiler vendors started shipping usable implementations of the C++ standard library. Because of this, Qt often followed (and still follows) some design idioms that feel unnatural to the usual C++ developer.

  • Manage Date and Time in JavaScript Using Moment.js

    In this article you will see how to manage date and time in JavaScript using Moment.js. How to use moment.js in JavaScript to manage Date and time. Moment.js is a lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates. Working with times and dates in JavaScript has always been a sort of cumbersome. Often, native data methods are wordy and also the API is inconsistent. Thus, whenever you ask a data-related query on StackOverflow, often you would hear a reply ‘use Moment.js‘.

  • Remi Collet: PHP version 7.2.30, 7.3.17 and 7.4.5

    RPMs of PHP version 7.4.5 are available in remi repository for Fedora 32 and remi-php74 repository for Fedora 30-31 and Enterprise Linux ≥ 7 (RHEL, CentOS).

    RPMs of PHP version 7.3.17 are available in remi repository for Fedora 30-31 and remi-php73 repository for Enterprise Linux ≥ 6 (RHEL, CentOS).

    RPMs of PHP version 7.2.30 are available in remi-php72 repository for Enterprise Linux ≥ 6 (RHEL, CentOS).

  • How to Read and Write INI and Conf Files Using Python

    Python programming language comes with a useful built-in module called “ConfigParser” which can be used to cleanly write configuration parameters for apps. ConfigParser uses a well defined and structured configuration language fully compatible with INI files found in Microsoft Windows. These INI files can be used with Python apps running in Linux as well and they provide a persistent way to store and retrieve values.

    In Linux, it is more common to see “.conf” files than “.ini” files. Conf files in Linux are just like any other text files and therefore, they can be structured in any way. It is dependent on parser how it interprets a “.conf” file. Python’s ConfigParser module can parse “.conf” files as well (or any other random extension), provided these files are defined in INI compatible configuration language. This article will explain reading and writing “.conf” files in Linux using the latest stable version of Python 3. Note that if you replace all occurrences of “.conf” extension in this article with “.ini” extension, the result would be the same. The process and code explained below should be mostly compatible with Microsoft Windows as well, with a few minor differences. Though these differences won’t be covered in this article.

  • Debugging Python Code

    People on my team asked me some time ago how I debug things in our python code base. So I thought I’d share here.

    The easiest (and least efficient) way to debug is to use print statements and logging. But since you’re not using a real debugger, you need to update the code and rerun in order to get new results.

    Hence the most efficient way to debug things in python is to use a debugger. Don’t be scared, they are easy to master and they’ll serve you nicely for the rest of your life. They all are very similar.

  • Beware of chicken testing! (or mocks overuse)

    Dealing with problematic dependencies is an indispensable part of software testing. Often, we cannot or do not want to rely on 3rd party service/network communication/hard drive etc., especially in unit-tests.

  • The Rust Programming Language Blog: Rust Survey 2019 Results

    We are happy to present the results of our fourth annual survey of our Rust community. Before we dig into the analysis, we want to give a big "thank you!" to all of the people who took the time to respond. You are vital to Rust continuing to improve year after year!

  • Is reporting 100% of code coverage reasonable?

    The Foundation for Public Code works to enable open and collaborative public-purpose software for public organizations (like local governments) internationally. We do this by supporting software at the codebase level through codebase stewardship. We also publish the Standard for Public Code (draft version 0.1.4 at the time of this writing), which helps open source codebase communities build solutions that can be reused successfully by other organizations. It includes guidance for policymakers, managers, developers, designers, and vendors.

    Among other things, the standard addresses code coverage, or how much of the code is executed when an automated test suite runs. It's one way to measure the likelihood that the code contains undetected software bugs. In the standard's "Use continuous integration" requirements, it says, "source code test and documentation coverage should be monitored." Additionally, the guidance to check this requirement states, "code coverage tools check whether coverage is at 100% of the code."

    Over my software development career, which spans more than two decades, I have worked on codebases large and small and some with very high percentages of code coverage. Yet none of the non-trivial codebases I have contributed to have reported 100% test coverage. This made me question whether the "check whether coverage is at 100%" guidance would be followed.

  • What’s New In Java 14?
  • Java Is The #1 Language For The Cloud : Aurelio Garcia-Ribeyro

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.