Language Selection

English French German Italian Portuguese Spanish

today's leftovers

Filed under
Misc
  • Use symbolic constants instead of magic numerical constants – EasyHack

    There are many situations that you need to use numerical constants in your code. If you use numerical literal values directly instead of symbolic constants, it can cause problems. For example, consider this piece of code that calculate area of a circle:

    double area = 3.14 * r * r;

    This is not OK, because:

    1. The value of π is not 3.14 nor 3.141592. π is an irrational number, and the suitable value depends on the number of decimal places that you can/want to use among unlimited decimals of π.

    2. Suppose that you want to change the numerical literal to increase the number of decimals that you use. You should search for 3.14, and check one by one to see if it is actually π, or it is another 3.14 unrelated to the well-known mathematical constant.

  • WhiteSource Adds SBOM Tool That Lists Vulnerabilities [Ed: WhiteSource is almost a de facto Microsoft proxy [1, 2, 3]]

    WhiteSource has added a software bill of materials (SBOM) tool to its portfolio that, in addition to capturing the components of an application, also surfaces vulnerabilities that should be addressed.

  • Entire Rust moderation team resigns • The Register

    The Rust language community is in disarray following the resignation of the entire moderation team, citing the "structural unaccountability" of the core development team.

    The moderation team, represented by Andrew Gallant, posted its resignation to GitHub yesterday, stating that it was "done in protest of the Core Team placing themselves unaccountable to anyone but themselves."

    Therefore, the post goes on to explain, "we have been unable to enforce the Rust Code of Conduct [CoC] to the standards the community expects of us."

  • FSFE Calls for 'Device Neutrality' in EU's Proposed 'Digital Markets Act' - FOSS Force

    In a press release issued Monday ahead of a planned preliminary vote on the EU’s proposed Digital Markets act by the Internal Market and Consumer Protection Committee, the Free Software Foundation Europe called for device neutrality to be included in the proposed law.

    The German-based FSFE is a sister organization to the Free Software Foundation, although the two are legally and financially separate entities

    “On the imminent voting of the Digital Markets Act – the latest EU proposal on internet platform regulation – the FSFE demands device neutrality as a fundamental element for safeguarding consumer protection in open, fair, and contestable digital markets,” the FSFE said in its statement.

  • Software Freedom Conservancy donors challenged with largest match yet - Software Freedom Conservancy

    Donations will be matched (up to $159,191) thanks almost entirely to contributions by a few very generous anonymous donors. Contributions by individuals keep Software Freedom Conservancy afloat, and it's with your help that we are empowered to do the vital and sometimes overlooked work in software freedom. We also have some gracious donors who brought the amount up a little more to the prime number you see above: Chris Neugebauer and Josh Simmons, Mark Galassi, Stephen Paul Weber, Tony Sebro, and VM Brasseur are contributing to our match fund and encourage others to give as well.

  • Deepin 20.3 Run Through - Invidious

    In this video, we are looking at Deepin 20.3. Enjoy!

  • Deepin 20.3

    Today we are looking at Deepin 20.3. It comes with Linux Kernel 5.10 and uses about 1.5 - 1.9GB of ram when idling.

  • Crusader Kings III: Royal Court releases February 8, 2022 | GamingOnLinux

    With the Crusader Kings III: Royal Court expansion, would-be monarchs will have new ways to manage courts, build nations, and display the prestige of their dynasty for everyone in the realm to see. It's now set to release on February 8, 2022.

    This is the first major expansion for the game, that has gone on to receive a very warm reception from players both new and old with it seeing now over 42,000 user reviews on Steam with a Very Positive rating. We enjoyed it a lot here too, so we're also very much looking forward to this!

  • Vulkan 1.2.200 Released With Two New Extensions - Phoronix

    Out today is Vulkan 1.2.200 as the newest spec revision to the Vulkan graphics/compute API.

    With Vulkan 1.2.200 is the usual assortment of clarifications and corrections to this leading cross-platform graphics API. But besides that usual documentation churn, there are also two new extensions: VK_ARM_rasterization_order_attachment_access and VK_EXT_depth_clip_control.

  • Linux Prepares For Next-Gen AMD CPUs With Up To 12 CCDs - Phoronix

    The latest Linux kernel patches confirm that next-gen AMD Zen processors are capable of featuring up to twelve CCDs.

    Currently the k10temp Linux driver for temperature monitoring of AMD processors can handle up to eight core-complex dies (CCDs) while next-gen AMD Zen processors will have configurations up to 12 CCDs to accommodate higher core counts.

    The latest Linux patches explicitly say, "The newer AMD Family 19h Models 10h-1Fh and A0h-AFh can support up to 12 CCDs. Update the driver to read up to 12 CCDs."

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.