Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Fedora Magazine: How to use Poetry to manage your Python projects on Fedora

    Python developers often create a new virtual environment to separate project dependencies and then manage them with tools such as pip, pipenv, etc. Poetry is a tool for simplifying dependency management and packaging in Python. This post will show you how to use Poetry to manage your Python projects on Fedora.

    Unlike other tools, Poetry uses only a single configuration file for dependency management, packaging, and publishing. This eliminates the need for different files such as Pipfile, MANIFEST.in, setup.py, etc. It is also faster than using multiple tools.

    Detailed below is a brief overview of commands used when getting started with Poetry.

  • Rakudo Weekly News: 2021.10 Automated Star

    Patrick Spek has announced the release of the Rakudo Star 2021.02.1 package (based on the 2021.02.1 Rakudo Compiler release). This is the first time this has happened using a Github Action workflow. Binary releases are not yet available: like everything in the Raku Programming Language, it is the work of volunteers. To create MacOS and Windows installable packages, a volunteer is needed to create the Github Actions workflow for MacOS and/or Windows! The advantage being that this way, you would only need to do this once instead of for each release! So please, stand up if you have the know-how and time to do it!

  • Git Reset to Remote Head – How to Reset a Remote Branch to Origin

    Branching is a core concept in Git. It can help you set up a distributed workflow for team collaboration and makes your development process more efficient.

    When you're using version control and you're distributing features across branches, there's a lot of communication between your local computer and your online repository on GitHub. During this process, you might need to reset back to the project's original copy.

    If resetting a branch scares you, then don't worry – this article will introduce you to remote branches, remote head, and how you can easily reset a remote branch to remote head.

  • Sparse Arrays vs Dense Arrays in JavaScript — Explained with Examples

    I had a really interesting bug recently that, at first glance, completely stumped me.

  • Ravgeet Dhillon: Turn a Google Sheet into a REST API

    What if we can use our Google Sheets as a CMS? What if we want the data in our Google Sheet to be publicly available. This can be done easily using Google Sheets and Google Apps Script. In this blog, we will take a look at how we can convert a Google Sheet into a REST API and access it publicly from any app we want.

    [...]

    Let us send a GET request to our published Web App using Postman. The path for the GET request would be our Web App’s URL and query parameter path set to our Google Sheet’s name.

  • Use Scheme functional programming language with LambdaChip Alonzo STM32 board

    Most MCU-based embedded systems come with firmware programmed with assembler, C, and/or C++. But as referenced in a paper published in 2000 entitled ” Point of view: Lisp as an alternative to Java“, functional programming languages like Lisp or Scheme may lead to shorter development times compared to C/C++ or Java.

    That’s with this idea in mind that LambdaChip was created. It is a lightweight, open-source virtual machine designed to run on embedded systems with limited resources, for instance, an 80MHz microcontroller with 50KB RAM, and programmable with Scheme multi-paradigm programming language, a dialect of Lisp widely used for functional programming research and teaching.

    The company behind the project, also called LambdaChip, has just created its own hardware with LambdaChip Alonzo, an STM32 Cortex-M4 development board with 512KB flash, 128KB RAM, and that also comes with Bluetooth LE connectivity.

  • What’s coming in Java 16

    Java 16 is scheduled to be released on March 16. Here is a look at what changes you can expect in the release.

    JEP 338: Vector API (Incubator)
    This Java Enhancement Proposal (JEP) will provide an initial iteration of an incubator module that can express vector calculations that are compiled at runtime. This module will be clear and concise, platform agnostic, have reliable runtime compilation and performance on x64 and AArch64 architectures, and offer graceful degradation when a vector computation cannot be fully expressed, the OpenJDK team explained.

  • 10 questions for modernizing your old Java applications

    I recently open sourced an application modernization sample, which demonstrates how to modernize an old (2010) Java EE application to become a modern (2021) cloud-native application.

More in Tux Machines

reTerminal – A Raspberry Pi CM4 based 5-inch HMI Terminal

Seeed Studio has just unveiled reTerminal HMI terminal that reminds me of the company’s Wio Terminal based on Microchip SAMD51 Arm Cortex-M4F microcontroller with a 2.4-inch display. But as we’ll look into the details, reTerminal is quite a different beast as a Linux-capable device powered by a Raspberry Pi CM4 module with up to 8GB RAM, equipped with a 5-inch capacitive touchscreen display, and supporting plenty of connectivity options from GIgabit Ethernet to WiFi to LoRaWAN. Read more

today's howtos

  • LFCA: Learn Binary and Decimal Numbers in Network – Part 10

    In Part 9 of the LFCA series, we covered the basics of IP addressing. To better understand IP addressing, we need to pay more attention to these two types of IP address representation – binary and decimal-dotted quad notation. As mentioned earlier, an IP address is a 32-bit binary number that is usually represented in decimal format for ease of readability. The binary format uses only the digits 1 and 0. This is the format that your computer comprehends and through which data is sent across the network. However, to make the address human-readable. It is conveyed in a dotted-decimal format which the computer later converts into binary format. As we stated earlier, an IP address is made up of 4 octets. Let’s dissect the IP address 192.168.1.5.

  • 6 advanced tcpdump formatting options

    The final article in this three-part tcpdump series covers six more tcpdump packet capturing trick options.

  • 5 Funny Commands to use in Linux and Terminal

    Not everything in Linux is serious, fortunately we can find fun programs created for the sole purpose of entertaining us. You may be wondering why? Well, because we are human and at the end of the day we need a little variety, laughter and maybe a drink on the train. And yes, speaking of the train, let’s introduce you to the first fun command-type application in Linux.

  • Ubuntu Blog: Should you ever reinstall your Linux box? If so, how?

    Broadly speaking, the Linux community can be divided into two camps – those who upgrade their operating systems in-vivo, whenever there is an option to do so in their distro of choice, and those who install from scratch. As it happens, the former group also tends to rarely reinstall their system when problems occur, while the latter more gladly jump at the opportunity to wipe the slate clean and start fresh. So if asked, who should you listen to? The question of system management in Linux is a complex one, with as wide a range of answers as there are distributions. In this blog post, we discuss the concept of reinstall, and whether it’s necessary. Then, we address several other closely related ideas like system imaging, full disk encryption, and data backups. [...] System problems are an unfortunate side effect of software usage. With some luck and operational discipline, you can avoid most of them. When they do happen, you want to know what to do. Reinstalling your Linux system is always an option, but it’s usually not necessary, even for various difficult, complex problems. Even if you do decide to reinstall, you should consider using a live session to inspect the system or perform any last-minute backups, have a solid backup procedure in place regardless, and weigh the benefits of encryption against your day-to-day needs and risks. System images can also help you reduce the hassle of getting back to speed when you do decide to “reset” your distro. That’s all we have on Linux reinstallations. If you have any comments or suggestions, please join our forum, and let us know your thoughts.

Star Labs Launches Coreboot Configurator for Its Linux Laptops

After many months of hard work, last month, Star Labs finally added support for installing the Coreboot open-source firmware in its Star LabTop Mk IV and Star LabTop Mk III Linux laptops, giving users faster boot times and a more secure boot experience where they have full control over their hardware. Today, Star Labs announced a new version of Coreboot that fixes various bugs, along with Coreboot Configurator, a new app that lets owners of its Linux-powered laptops to change various settings of the Coreboot open-source firmware via the nvramtool command-line utility. Read more

Proxmox Backup Server 1.1

We are happy to announce version 1.1 of Proxmox Backup Server! The enterprise backup solution for backing up and restoring VMs, containers, and physical hosts seamlessly integrates into the virtualization management platform Proxmox Virtual Environment, allowing users to simply add a server as a new storage target. Read more Also Debian based: Rocket.Chat Desktop