Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • RcppArmadillo 0.10.1.2.0

    Armadillo is a powerful and expressive C++ template library for linear algebra aiming towards a good balance between speed and ease of use with a syntax deliberately close to a Matlab. RcppArmadillo integrates this library with the R environment and language–and is widely used by (currently) 779 other packages on CRAN.

  • RcppAnnoy 0.0.17

    A new release 0.0.17 of RcppAnnoy is now on CRAN. RcppAnnoy is the Rcpp-based R integration of the nifty Annoy library by Erik Bernhardsson. Annoy is a small and lightweight C++ template header library for very fast approximate nearest neighbours—originally developed to drive the famous Spotify music discovery algorithm.

  • Desktop styling with Qt Quick Controls

    Qt Quick Controls 1 was our first UI framework for QML. The controls were mostly written in QML without much C++. At the time, QML was still a new technology, which meant that we didn’t have enough experience with designing for performance to know what to expect. So the styling API ended up inefficient by design, with many fat delegates that used extensive amounts of JavaScript, bindings, introspection, Loaders, and QObjects for both control logic and styling. It also had a linking dependency to Qt Widgets to get native styling and Widget-based dialogs. And without the QML compiler that we have today, this all ended up as a rather slow and messy approach. When we realized that it also didn’t perform well on embedded hardware, it was time to rethink the solution. And the result was Qt Quick Controls 2.

  • The 20 Best R Programming Books for Programmers and Coders

    If the question comes to your mind that whether R is difficult to learn or not, then the answer would come from others who have stated that R is not hard to learn because it is a programming language. It is, in reality, straightforward and defined. R was intended to be utilized as a statistical apparatus. So arithmetic and AI were the most significant pieces of R., But just like anything, R requires a perfect set of R programming books for you to be able to learn R programming better and more efficiently.

  • C++ Bitwise Operators – Linux Hint

    In this article, we are going to discuss bitwise operators in the C++ programming language. We will see several working examples to understand bitwise operations in detail. In C++, the bitwise operators work on the individual bit level.

  • Excellent Free Tutorials to Learn Standard ML - LinuxLinks

    Standard ML is a safe, modular, strict, functional, polymorphic programming language with type inference, garbage collection, compile-time type checking, and exception handling. It also offers immutable data types and updatable references, abstract data types, and parametric modules.

    Standard ML is a declarative language. A Standard ML program consists of a sequence of declarations of types, values (including functions) and exceptions, possibly embedded in modules. A basic module is called a structure in Standard ML, module interfaces are called signatures, and parameterised modules are called functors.

    Standard ML is one of the two main dialects of the ML programming language.

    Some of the hard parts of learning Standard ML are: Recursion, pattern matching, type inference (guessing the right types but never allowing implicit type conversion). Standard ML is distinguished from Haskell by including references, allowing variables to be updated.

    Here’s our recommended tutorials to learn Standard ML.

  • Louis-Philippe Véronneau: A better git diff

    A few days ago I wrote a quick patch and missed a dumb mistake that made the program crash. When reviewing the merge request on Salsa, the problem became immediately apparent; Gitlab's diff is much better than what git diff shows by default in a terminal.

    Well, it turns out since version 2.9, git bundles a better pager, diff-highlight. À la Gitlab, it will highlight what changed in the line.

  • 10 Best Programming Languages to Learn in 2021 – Linux Hint

    In the modern world, the demand for computer scientists continues to grow. Everything around us is transforming, undergoing a digital makeover. With so many people becoming a part of this field, it comes as no surprise how much technology has expanded and the rate at which it is developing. Computer science itself is divided into various sub-fields, each of which has its own set of specialized workers.

    However, one thing common to almost all these fields is the process of writing instructions in the form of code, commonly referred to as programming. This sits at the heart of computer science and gives it the power to create and remove things. With the number of existing programming languages reaching the three-digit mark, and as each programming job has its own specific set of requirements, it can be extremely daunting to figure out which language to learn.

    To make your job easier, this article provides a list of the best programming languages to learn in 2021.

  • Fail a Gitlab pipeline when code coverage decreases

    Automatic and continuous testing is a fundamental part of today’s development cycle. Given a Gitlab pipeline that runs for each commit, we should enforce not only all tests are passing, but also that a sufficient number of them are present.

    [...]

    Gitlab allows collecting code coverage from test suites directly from pipelines. Major information on the setup can be found in the pipelines guide and in the Gitlab CI reference guide. Since there are lots of different test suites out there, I cannot include how to configure them here. However, if you need any help, feel free to reach out to me at the contacts reported below.

    With Gitlab 13.5 there is also a Test Coverage Visualization tool, check it out! Gitlab will also report code coverage statistic for pipelines over time in nice graphs under Project Analytics > Repository. Data can also be exported as csv! We will use such data to check if, in the commit, the code coverage decreased comparing to the main branch.

    This means that every new code written has to be tested at least as much as the rest of the code is tested. Of course, this strategy can be easily changed. The check is only one line of bash, and can be easily be replaced with a fixed number, or any other logic.

  •  

  • The Report On New Coercions

    The Merge of PR 3891 completes my work on new implementation of coercion in Rakudo. When I was starting with it my only intention was about to find a task to distract me from some problems I was having at the time (nothing serious yet bothersome and stressful). There was no concrete plans on my hands, so I picked one of the oldest tickets in Rakudo issue tracker. It was issue #1285 which looked quite promising as I already had some knowledge about parameterized roles internals.

  •     

  • Permutations and Recursion

    In one of my earlier posts describing how I solved the Perl Weekly Challenge tasks, I mentioned that I got a bit lazy and resorted to using a CPAN module to determine all of the combinations of elements to satisfy the conditions of the puzzle. One of the things that drew me to Perl in the first place is the almost 200,000 ready-to-go modules available in CPAN to help you solve almost any conceivable problem. Chances are, if you have a programming issue to solve, someone else already has. There’s a reason the “C” in CPAN stands for “Comprehensive”! As someone who is trying to learn Perl, I think it’s a valuable skill to know how to search the archive and leverage these modules. It’s what allows you to extend Perl beyond it’s standard capabilities. And truth be told, I know that a big part of solving combination and permutation problems often requires the use of recursive functions, something I can never get my head around no matter what programming language I’m using. But something has been nagging me over the past few days since I wrote that blog article to the point where the guilt about being too lazy and the void left about not really understanding recursion finally pushed me over the edge to tackle this one more time.

  • REST::Neo4p catches up to Neo4j V4.0+

    Neo4j has made many changes and improvements in its server and its query language in that time. However, as it has become successful commercially, it has made breaking API changes of one kind or another more and more regularly. In the last major release, version 4.0, Neo4j retired the REST endpoint on which REST::Neo4p was based. This endpoint was "entity-based", as it were, allowing direct access to nodes, relationships, and the like via entity IDs. It was well suited to the object (HAR HAR) of REST::Neo4p. But Neo4j decided to focus exclusively on its declarative query language Cypher, and to move away from the "graph walking" paradigm that the REST endpoint represented.

  • Why is Python still a Huge Hit among Data Scientists?

    Python has become the most used programming language for data science practices. Developed by Guido van Rossum and launched in 1991, it is an interactive and object-oriented programming language similar to PERL or Ruby. Its inherent readability, simplicity, clean visual layout, less syntactic exceptions, greater string manipulation, ideal scripting, and rapid application, an apt fit for many platforms, make it so popular among data scientists. This programming language has a plethora of libraries (e.g., TensorFlow, Scipy, and Numpy); hence Python becomes easier to perform multiple additional tasks.

    Python is an object-oriented, open-source, flexible, and easy to learn programming language. According to a 2013 survey by industry analyst O’Reilly, 40% of data scientist respondents admitted using Python in their daily work. They join the many other programmers in all fields who have made Python one of the world’s top ten most popular programming languages ever since 2003. In fact, many surveys show it as the number one preferred language.

  • Python Yield vs. Return – Linux Hint

    Python is the widely used general-purpose programming language of recent times. The yield is a built-in Python keyword that is used to create the generator functions. Its function generates a series of results. It pauses the execution of the program, sends the result value back to the caller, and resume the execution from the last yield. Besides that, the yield function sends the generated series of results in the form of a generator object. On the other hand, the return is also a built-in keyword in Python that terminates the function and sends the value back to the caller.

    This article outlines the differences between the yield and returns with examples.

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.