Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • What is your favorite Linux scripting or programming language? | Enable Sysadmin

    Of all the scripting and programming language options available to you on the Linux platform, which one is your favorite?

  • When costs are nonlinear, keep it small.

    It shows Preventive Maintenance as a series of small costs. Minor repairs are a series of bigger costs, and major repairs are much bigger than that. Every maintenance delayed escalates into a minor repair and then a major repair — costs increase nonlinearly with time delay.

  • Old compilers and old bugs

    The kernel project goes out of its way to facilitate building with older toolchains. Building a kernel on a new system can be enough of a challenge as it is; being forced to install a custom toolchain first would not improve the situation. So the kernel developers try to keep it possible to build the kernel with the toolchains shipped by most distributors. There are costs to this policy though, including an inability to use newer compiler features. But, as was seen in a recent episode, building with old compilers can subject developers to old compiler bugs too.

    On January 5, Russell King reported on a problem he had been chasing for a long time. Some of his 64-bit Arm systems running 5.4 or later kernels would, on rare occasion, report a checksum failure on the ext4 root filesystem. It could take up to three months of uptime for the problem to manifest itself, making it, as King described it, "unrealistic to bisect". He had, however, found a way to more reliably reproduce the failure, making the task of finding out when the problem was introduced plausible, at least.

    Starting with King's findings, a number of developers working in the Arm subsystem looked into the issue; their efforts seemed to point out this commit as the culprit. That change, applied in 2019, relaxed the memory barriers used around I/O accessors, optimizing accesses to I/O memory. Reverting this patch made the problem go away.

  • Callback Function in C++ – Linux Hint

    A callback function is a function, which is an argument, not a parameter, in another function. The other function can be called the principal function. So two functions are involved: the principal function and the callback function itself. In the parameter list of the principal function, the declaration of the callback function without its definition is present, just as object declarations without assignment are present. The principal function is called with arguments (in main()). One of the arguments in the principal function call is the effective definition of the callback function. In C++, this argument is a reference to the definition of the callback function; it is not the actual definition. The callback function itself is actually called within the definition of the principal function.

    The basic callback function in C++ does not guarantee asynchronous behavior in a program. Asynchronous behavior is the real benefit of the callback function scheme. In the asynchronous callback function scheme, the result of the principal function should be obtained for the program before the result of the callback function is obtained. It is possible to do this in C++; however, C++ has a library called future to guarantee the behavior of the asynchronous callback function scheme.

  • Regarding the closure of rt.cpan.

    Let me preface this short post with this, I don't have the solution to this problem. Perhaps there is someone in the wider Perl space who is well placed to pick this up, but there seems to be little going on in terms of community engagement.

    In the first week of 2021 I noticed a link to this sunset message for rt.cpan behind displayed on the rt.cpan homepage. Firstly I believe the notification on the page could be highlighted better, grey on grey, on a page with lots of grey isn't exactly eye catching.

    At the time the linked article didn't contain much information, besides a date. It has since been updated with links to resources to migrate tickets elsewhere.

    A reply to my post in the perlmonks news section was concerning to me, I shortly found the infrastructure working group post on topicbox (which I find no link to on any of the perl websites, or release documentation). This thread was concerning in so much as a single volunteer has decided to step back, which is of course fine, but it doesn't seem like the option of asking the wider community if anyone would be willing to step up and take it over has been explored. It doesn't even seem to be being openly discussed.

  • Perl weekly challenge 096 - Raku
  • GNU Linux Bash – script for troubleshoot long term test testing network internet connection connectivity

    this script is intended for long term testing of reliability of network connection/connectivity

More in Tux Machines

Rocket League Still Thriving on Steam While Delisted

As you can see from the above chart, the Rocket League community on Steam has never been as active as now, even though the game is officially delisted. The game is alive and well and continues to be receive frequent updates on Steam – and the increase of the player base through EGS has potentially made the game more enticing than ever to play online, regardless of the platform. Wile you cannot purchase Rocket League directly on Steam anymore, it can still be obtained through third party resellers. Such third party key are selling at crazy prices, sometimes above 100 USD. [...] Also, this is a reminder that Rocket League still works fine on Linux even after the termination of the native port and the big Epic client update in September 2020… Read more

Small Image Tools that Pack a Real Punch

The spotlight usually focuses on the heavyweight Linux graphics tools such as GIMP, Shotwell, digiKam, Inkscape, and Krita. However, there are many other open source graphics tools that merit attention. Linux offers a vast collection of open source small utilities that perform functions ranging from the obvious to the bizarre. It is the quality and selection of these tools that help Linux stand out as a productive environment. A good utility cooperates with other applications, integrating seamlessly. Although command-line tools are very useful for updating, configuring, and repairing a system, their benefits are not only confined to system administration. The majority of the applications featured in this article are command-line tools. They are very light on system resources, fast and efficient, don’t rely on a windowing system, and are great for integrating with other applications and scripting. The term lightweight is a label attached to computer software which is relatively simpler or faster than its counterparts. Feature bloat is endemic in software especially commercial software. Often, the easiest way to persuade users to upgrade to the latest version is to add new spangly features. This happens with open source software (to a lesser degree), and open source graphics software is not immune to feature bloat. Well, there is no feature bloat here! To provide an insight into the quality of software that is available, we have compiled a list of small image tools that are incredibly useful. Read more

Debian: Rejections, LTS Work, and Bugfixes

  • Thorsten Alteholz: My Debian Activities in February 2021

    FTP master This month I accepted 162 and rejected 28 packages, which is again a small increase compared to last month. The overall number of packages that got accepted was 291. Debian LTS This was my eightieth month that I did some work for the Debian LTS initiative, started by Raphael Hertzog at Freexian.

  • RCBW 21.9 – jwiltshire.org.uk

    A recent upload of electrum suffers from the serious bug #981374. On the face of it this is just a missing package dependency: can you help with testing and preparing an updated package to fix this? You don’t need to be a Debian Developer to get stuck into this one!

Videos and Shows: KDE Community Edition PinePhone and This Week in Linux

  • KDE Community Edition PinePhone Unboxing and First Try! - YouTube

    In this video I'm "unboxing" (or, rather, showing the box and its contents) of the pinephone, and trying it for my first time!

  • This Week in Linux 141: GRUB 2 Security Flaw, Linux Mint to Force Updates?, Valve’s Steam Link

    On this episode of This Week in Linux, we’re going to try something different with the show. Let me know what you think of the changes. This episode is completely stacked with exciting news, we’ve got a ton of Distro News from Ubuntu, openSUSE, Linux Mint, SystemRescue, IPFire, and even Linux From Scratch. A vulnerability was found in GRUB 2 that lets someone bypass Secure Boot so we’ll talk about that and just how bad is it? The EU announced some great news related to Right to Repair. Valve has announced that Steam Link is now available on Linux and it’s a real game changer. We’ve also got some media production news to check out this week from Blender, Ardour and a new synthesizer called Vital. All that and much more on Your Weekly Source for Linux GNews!