Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development

  • Parsing Dates and Time Using Luxon | HTMLGoodies.com

    One of the most challenging tasks for Date and time libraries is the parsing of International Dates and Times. They come in such a wide array of formats that it’s all but impossible to accommodate all of them. Different Date libraries approach this problem using a variety of solutions, some better than others. The Moment.js and Luxon Date libraries utilize a similar approach to date parsing using Date format strings. In today’s blog, we’ll learn how to create Luxon Date objects from Datetime strings.

  • Julia 1.6 addresses latency issues

    On March 24, version 1.6.0 of the Julia programming language was released. This is the first feature release since 1.0 came out in 2018. The new release significantly reduces the "time to first plot", which is a common source of dissatisfaction for newcomers to the language, by parallelizing pre-compilation, downloading packages more efficiently, and reducing the frequency of just-in-time re-compilations at run time.

    The detailed list of new features, added functions, improvements to existing functions, and so on can be found in the release notes. The focus of this article will be the changes that affect all users of Julia, rather than those that only apply to certain packages or usage patterns.

  • WASM3 v0.5 Released With Claims To Be The Fastest WebAssembly Interpreter - Phoronix

    WASM3 v0.5 has been released for this project that calls itself the fastest WebAssembly interpreter as well as the most universal WebAssembly run-time. WASM3 runs across all major operating systems and can also run on WebAssembly itself / self-hosting, run on MCUs, and run in other environments.

    Yesterday's WASM3 v0.5 release adds multi-value support, native support for the Apple Silicon / Apple M1, various WASI system interface improvements, API additions, and various other enhancements.

  • Excellent Free Tutorials to Learn Hack

    Hack is a programming language for HipHop Virtual Machine (HHVM) that interoperates seamlessly with PHP. Hack reconciles the fast development cycle of PHP with the discipline provided by static typing, while adding many features commonly found in other modern programming languages.

    Hack provides instantaneous type checking via a local server that watches the filesystem. It typically runs in less than 200 milliseconds, making it easy to integrate into your development workflow without introducing a noticeable delay.

    Hack is built specifically for HHVM, a high performance runtime for your Hack applications, and reconciles the fast development cycle of a dynamically typed language with the discipline provided by static typing, while adding many features commonly found in other modern programming languages.

  • Qbs 1.19.0 released

    The Qbs build tool version 1.19.0 is available.

  • Dancer2 0.301003 Released

    On behalf of the Dancer Core Team, I'd like to announce the availability of Dancer2 0.301003.

  • Monthly Report - May

    As you all know, I joined Oleeo last month, it was busy getting my head around the code base and infrastructure. I had to slow down my activities with regard to the routine Perl Weekly Challenge tasks.

    I would like to talk about two happy interactions last month. Ever since I started the Perl Weekly Challenge project, I hardly find time to contribute to CPAN whether it is my personal distributions or others. The only time I contribute to others work is when I get my monthly assignment from Pull Request Club. Lets get back to the subject, last month, I received RT #136670 from James Wright with regard to my distribution App::Search::BackPAN. He pointed out the code is broken and doesn't return expected result. He even proposed the fix, which is always handy. The very same day, I had the patch uploaded to CPAN. It feels nice that someone is using my distribution and on top of that cares to raise an issue they encounter. It brought back the good old memories when I used to upload patches to CPAN every day. I did that 1027 days nonstop in the past.

  • Using switching case in Linux bash script - Linux Concept

    Apart from simple branches with if, it is also possible to process multiple decision-making operations using the case command. In a case statement, the expression contained in a variable is compared with a number of expressions, and for each expression matched, a command is executed.

    It is possible to have multiple branches using the if/elif/else commands. But if more than two or three elif commands are used, then code becomes very complex. When all the different conditions are depending on a single variable, in such cases, the esac statement is used. The interpreter checks the value of the case variable against value1, value2, value3, and so on, till the match is found. If the value is matched, then all the statements after that case value are executed till the double semicolon is reached. If nothing is matched, then statements after esac are executed. Wildcard characters and pipes (vertical bar for ORing two values) are allowed in the case statement.

  • IFS and loops in Linux bash script - Linux Concept

    The shell has one environment variable, which is named the Internal Field Separator (IFS). This variable indicates how the words are separated on the command line. The IFS variable is, normally or by default, a whitespace (”). The IFS variable is used as a word separator (token) for the for command. In many documents, IFS can be any one of the white spaces, :, |, :, or any other desired character. This will be useful while using commands such as read, set, and for. If we are going to change the default IFS, then it is a good practice to store the original IFS in a variable.

  • Loop with Pipes and execute loop in background using Linux bash script - Linux Concept

    If we need to redirect the output of a loop to any other Linux command such as sort, we can even redirect the loop output to be stored in the file:

  • Using until loop in Linux bash script - Linux Concept

    The until command is similar to the while command. The given statements in the loop are executed as long as they evaluate the condition as true. As soon as the condition becomes false, then the loop is exited.

  • Using do – while loop in Linux bash script - Linux Concept

    Similar to the for command, while is also the command for loop operations. The command next to while is evaluated. If it is successful or 0, then the commands inside do and done are executed.

  • Exiting from a loop with a break statement in Linux bash script

    In the previous tutorial, we discussed about how continue can be used to exit from the current iteration of a loop. The break command is another way to introduce a new condition within a loop. Unlike continue, however, it causes the loop to be terminated altogether if the condition is met.

  • Using loop with a continue in Linux bash script

    Using the continue command, it is possible to exit from the current iteration of the loop and resume the next iteration of the loop. We use the for, while, or until commands for loop iterations.

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.