Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • React vs Angular. What Is the Best Choice for Web App Development? - SpeedySense

    You want to know React vs Angular which is best choice for web development? In the neverending React vs Angular fight, it’s really hard to choose what technology is the most suitable for a web app project. It’s time to unblur both of these technologies and discover them in detail so you can make the right choice. Without further ado, let’s get started.

  • PHP version 7.3.25RC1 and 7.4.13RC1 - Remi's RPM repository - Blog

    Release Candidate versions are available in testing repository for Fedora and Enterprise Linux (RHEL / CentOS) to allow more people to test them. They are available as Software Collections, for a parallel installation, perfect solution for such tests, and also as base packages.

    RPM of PHP version 7.4.13RC1 are available as SCL in remi-test repository and as base packages in the remi-test repository for Fedora 32-33 or remi-php74-test repository for Fedora 31 and Enterprise Linux 7-8.

    RPM of PHP version 7.3.25RC1 are available as SCL in remi-test repository and as base packages in the remi-test repository for Fedora 31 or remi-php73-test repository for Enterprise Linux.

  • Javascript Form Validation – Linux Hint

    Form validation is the basic and most important part of the web development process. Usually, form validation is done on the server-side. Form validation helps in showing error messages to the user if there is any unnecessary or wrong data is provided, or a required field is left empty. If the server finds any error, it throws back that error; then, we show the error message to the user. But, we can use javascript at the front-end to validate the form data and show errors right away. In this article, we will learn the basic form validation in javascript. So, let’s get straight to the examples and see how can we do that in javascript.

  • tidyCpp 0.0.2: More documentation and features

    A first update of the still fairly new package tidyCpp is now on CRAN. The packages offers a C++ layer on top of the C API for R which aims to make its use a little easier and more consistent.

    The vignette has been extended with a new examples, a new section and some general editing. A few new defines have been added mostly from the Rinternals.h header. We also replaced the Shield class with a simpler yet updated version class Protect. The name better represent the core functionality of offering a simpler alternative to the PROTECT and UNPROTECT macro pairing. We also added a short discussion to the vignette of a gotcha one has to be mindful of, and that we fell for ourselves in version 0.0.1. We also added a typedef so that code using Shield can still be used.

  • Python XML to JSON – Linux Hint

    Extensible Markup Language (XML) and JavaScript Object Notation (JSON) are two famous data formats for the storage of data. Both JSON and XML allow us to store the data in such a way that is readable by human as well as machines. To begin with, JSON is a type of data structure that is mainly used to exchange data between servers and software applications. It stores the data as key-value pairs. JSON makes an object of the data where key-value pairs are separated on the basis of the colon (Smile, and one complete key-value pair separated by others based on the comma.

    Furthermore, XML is an HTML type markup language that is also used to store the data. But, the XML does not provide any kind of predefined tags. We can create our own tags and store the data. As we discussed, both JSON and XML are used to exchange data between the servers and software applications. However, the two data formats differ somewhat. The JSON is an object type data storage format, whereas XML has no type. The XML files only store the data in string format and heavier than the JSON file. Whereas the JSON files can store the string, arrays, numbers floating-point numbers, and Boolean.

  • Python XML to Dictionary – Linux Hint

    XML (Extensible Markup Language) is the markup language that is used to store the data. It is a very useful format to store data because it defines a set of rules that allow us to store the data in such a format, which is a machine as well as human-readable. It is widely used to store data. It is an HTML type markup language as they have the same type of structure. However, XML doesn’t offer the defined tags, but you can define your own tags and create your own markup language. The data stored in the XML document can be extracted and analyzed easily. This is the reason that it is most commonly used for web servers. XML is a case sensitive language.

    Python comes with many built-in modules and functions to perform specialized tasks. It has many built-in data structures to store and manage the data. Dictionary is one of the very useful built-in data structure that is used to store data in the key-value pair format. We can simply convert the XML data to a Python dictionary. Python provides the xmlodict module to perform the XML related tasks. This article explains the conversion of XML to a dictionary in Python.

  • Python Lambda – Linux Hint

    Python is a general-purpose and widely used programming language of recent times. However, Python provides many built-in functions to perform a bunch of specific tasks. However, we can create our own functions to perform a specific task. In Python, the lambda keyword creates an anonymous function. A function without a name is called an anonymous function. Normally, a regular function in Python is created using the def keyword. It has a name and parentheses. While the anonymous function is used with the lambda keyword. Therefore, the anonymous function is also known as the lambda function. This article explains the Python lambda function with examples.

  • Updating a file from a lookup table
  • Will R Work on Apple Silicon?

    It turns out there is hope that R will work on Apple silicon. A usable Fortran 90 compiler for Apple silicon will hopefully be available relatively soon, since the development version of GFortran already seems to be working (check-all passed for R including reference LAPACK/BLAS) and there is a strong need for such compiler not only for R, but any scientific computing on that platform.

    Any package native code that wants to reliably preserve NAs (computations with at least one NA value on input provide NA on output) has to include explicit checks, be it for computations implemented in the package native code or in external libraries. That is the only portable, reliable way, and has been the only one for long time. Packages that choose to not guarantee such propagation, on the other hand, should not capture in tests the coincidental propagation on the developer’s platform. On ARM, and hence also Apple silicon, R now masks some of these issues by disabling the RunFast mode, but another new platform may appear where this won’t be possible, and more importantly, NAs may be “lost” also due to compiler optimizations or algorithmically in external libraries.

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.