Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • DRY enums for Absinth macros

    Absinth is a great GraphQL library for Elixir, but it brings a few challenges as it’s practically implemented using macros. One of these challenges is a DRY way of reusing enumerables in Absinth enums.

    [...]

    The only thing we had to do is to use require to require the module beforehand.

  • Gzip::Zopfli - another compression module

    Following on from the Gzip::Libdeflate I mentioned before, I also made this: Gzip::Zopfli

    It is based on the Zopfli gzip compression library from Google Research.

  • Weird architectures weren't supported to begin with

    You don’t know about any of the above until the bug reports start rolling in: users will report bugs that have already been fixed, bugs that you explicitly document as caused by unsupported configurations, bugs that don’t make any sense whatsoever.

    You struggle to debug your users’ reports, since you don’t have access to the niche hardware, environments, or corporate systems that they’re running on. You slowly burn out as an unending torrent of already fixed bugs that never seem to make it to your users. Your user base is unhappy, and you start to wonder why you’re putting all this effort into project maintenance in the first place. Open source was supposed to be fun!

    What’s the point of this spiel? It’s precisely what happened to pyca/cryptography: nobody asked them whether it was a good idea to try to run their code on HPPA, much less System/3906; some packagers just went ahead and did it, and are frustrated that it no longer works. People just assumed that it would, because there is still a norm that everything flows from C, and that any host with a halfway-functional C compiler should have the entire open source ecosystem at its disposal.

  • Woodruff: Weird architectures weren't supported to begin with

    William Woodruff has posted a rant of sorts on the adoption of Rust by the Python Cryptography project, which was covered here in February.

More in Tux Machines

Audiocasts/Shows: Tumbleweed, XMonad/Emacs, Amarok Linux, Vimiv, and Destination Linux

  • openSUSE Tumbleweed: My First Impressions

    Since I checked out openSUSE 15.3 recently, I thought it was only fair that I also check out Tumbleweed as well. Tumbleweed is a rolling distribution that's always updated, and is a great fit for people that prefer the "install once, update forever" mentality.

  • Want To Be Like DT? Install Shell-Color-Scripts And Dmscripts!

    In the last couple of weeks, I have spent literally dozens of hours cleaning up various config files and scripts and package builds. It was time to do some major spring cleaning, not just to make sure all of my builds work, but because eventually I want to create a proper deployment script for my XMonad/Emacs desktop.

  • Amarok Linux 3.1

    In this video, we are looking at Amarok Linux 3.1. Enjoy!

  • Vimiv: The Love Child Of Ranger And Sxiv

    Everything needs vim keys even your image viewer so what if we took 2 applications styles those being Ranger and Sxiv, smashed them together, added some extra vim keys for good measure. Then we'd have Vimiv the topic for today.

  • Destination Linux 222: Is Flatpak A Security Nightmare? Plus Interview with ONLYOFFICE

    This week’s episode of Destination Linux, we are going to discuss Flatpak’s security for whether or not the concerns of a particular website is Fact or FUD. Then we’ll be joined by Michael Korotaev of OnlyOffice for an interview about their open-source office suite. Later in the show, we’ll take a look at the System76 announcement for their new COSMIC Desktop Environment. Plus we’ve also got our famous tips, tricks and software picks. All of this and so much more this week on Destination Linux. So whether you’re brand new to Linux and open source or a guru of sudo. This is the podcast for you.

today's howtos

  • Lukas "lzap" Zapletal: Crop and resize video to get rid of borders

    We stream our community demos on youtube via Google Meet and there are borders on each side which makes the content to be smaller and less readable. Luckily, it is in the middle of the screen, so the following command will crop the image to its 1/1.29 of the size, stretch it back to 720p and reencodes it for YouTube copying the audio stream.

  • Linux Logical Volume Manager (LVM) tutorial

    Logical Volume Manager (LVM) is used on Linux to manage hard drives and other storage devices. As the name implies, it can sort raw storage into logical volumes, making it easy to configure and use. In this guide, you'll learn how LVM works on Linux systems. There's no better way to learn about LVM than simply running through an example, which is exactly what we'll do in the steps below. LVM works the same on any Linux distribution, so you can use any of the commands below on your own system. Follow along with us as we use LVM to create partitions, physical volumes, a virtual group, logical volumes, and filesystems on a hard disk. We'll also show how to mount, extend, and remove our newly created logical volumes. By the end of this tutorial, you'll have a full understanding of how to use LVM and apply your own configurations.

  • How to Install LAMP in Ubuntu in 3 steps

    In this article we are going to install the famous Linux Apache PHP and MySQL web services. The article is going to use the tasksel Ubuntu app.

  • How to Access Another Computer on the Same Network with Linux?

    There are many reasons for accessing another computer on the home or office network from your laptop or desktop.

  • How To Install macOS in a Virtual Machine on Ubuntu Linux

    QEMU is a virtual machine emulator and virtualizer which is quite similar to VMware and VirtualBox on Windows. Users often use QEMU alongside KVM as it provides a natively implemented virtual machine on the Linux kernel. The major advantage of QEMU is that it is very easy to set up and manage. Also, creating virtual machines from the command line has never been simpler with QEMU. You can also use a GUI interface with QEMU/KVM, and the preferred GUI manager of choice is virt-manager. Running virtual machines will provide you so with many other benefits as well. After you have finished testing a QEMU/KVM virtual machine and no longer need it, you can easily delete the virtual disk file associated with the virtual machine.

  • Grep Exclude Term

    Global regular expression print is a versatile terminal-based utility. As the name shows that it helps in searching the text within the file with the help of regular expressions. Grep is firstly originated as a Unix utility to run on that operating platform. After Linux configuration, it can access many applications on this operating system. Most Grep functions are included in the matching of the text of the file present in the command. Exclude function is also as useful as matching any pattern and displaying it because it helps remove the particular match from the file. It helps to exclude the word or words from the lines in a file. We can get help from the man page in the system by applying the below-appended command.

  • How to install Docker containers via Cockpit on Ubuntu 20.04 LTS

    The Cockpit is an easy solution to manage server resources remotely using the graphical web interface. It is not only light in weight but also present to install in most of the Linux repositories such as in popular Ubuntu, RedHat, Fedora, and CentOS to install with just a single command. Well, if we talk about Docker container management in Cockpit, then this really helpful to easily manage virtual machines or containers graphically. Yes, we can install and delete containers using few mouse clicks. No need to go through the command line to manage them. However, in Ubuntu 20.04 the Docker package for Cockpit is not available to install but we can do that manually by directly installing its Deb file. Here, we let you know how to do that in this tutorial.

  • Vim Reload Vimrc Without Closing – Linux Hint

    Vim is a versatile, fully accessible text editor that is also Vi-compatible. It is being used to make changes to any form of document. It comes in handy when modifying C/Perl/Python programs. It can also be used to modify configuration documents in Linux/Unix systems. /.vimrc is a document that you can use to configure and launch Vim. This article will show you how to update and reload the vimrc document in Linux despite rebooting the Vim editor.

  • LFCA: Learn Classes of Network IP Addressing Range – Part 11

    In Part 10 of the LFCA series, we brushed over the classes of IP addresses and gave examples of the commonly used IP classes. However, that was just an overview and in this part, we will dive deeper and gain more understanding about IP addressing range and the number of hosts and networks each class of IP provides.

  • Cpufetch - Check CPU information on linux terminal
  • How to check if a port is open on remote Linux system

    When installing or configuring an application in the Linux system, the associated port should also be open which allows the application for external access. If the application port is not open, it will make the program throw errors and hence malfunction. For instance, when you configure the Apache Web server on Linux, you must open ports 80 and 443 that listens to incoming connections for Apache on the firewall, and that allows users to access websites hosted on your web server through the browser.

Best Clipboard Monitoring Apps for Linux

This article will cover a list of useful “clipboard monitoring” apps for Linux. Some desktop environments have built-in support for clipboard monitoring and they provide clipboard monitoring panel applets by default. The term “clipboard monitoring” refers to the practice of keeping a track / log of content copied on your desktop through keyboard shortcuts and mouse interactions. Since clipboard monitoring tools keep a history of copied content, you can review entries in the clipboard history and re-use / paste content that was copied earlier. Read more

Make Linux look like Windows - 2021 edition

Here we go again. Roughly three years ago, I showed you how to skin your Linux installation to look more like Windows, should your particular taste lean in that direction. It was an interesting little experiment. Also nerdy to the core. But apart from possible nostalgia and tech glamor, there might also be practical reasons for why someone would want to make their distro look more like a Microsoft product. And the answer is: entice non-techie people who expect the familiar. Say you install a distro for folks with zero Linux knowledge and some rudimentary Windows familiarity. Normally, this is a recipe for disaster. I call this The Grandma Gentoo Test (TGGT), AKA how likely is the ordinary person to master the subtleties of computer usage without your nerdy help? But this is true for all operating systems, except Windows had been around for a long time, and it's the primary desktop interface that most people somewhat know how to somewhat use. So then, can you make your chosen distro behave like Windows, and nonce the wiser? Read more