Language Selection

English French German Italian Portuguese Spanish

Programming/Development Leftovers

Filed under
Development

  • Use Maven to manage your Java dependencies | Opensource.com

    As an open source enthusiast, I've used dozens (hundreds?) of libraries that are well beyond my skill or interest as a programmer. For a lot of people, including me, the available libraries are one of the things that makes a particular programming language worth using.

    An open source library represents hours and days you don't have to work on a problem that's either not central to your project or, conversely, so central that your project would be otherwise out of reach. Better still, it's code you don't have to maintain—unless it's so important to you that you decide to contribute to it.

    Because open source libraries are a vital component of open source programming, most programming languages have a convenient way to ensure they're easy to include in your codebase.

  • This Week In Rust: This Week in Rust 434
  • OE recompile pending tonight

    But was still unable to run Dunfell desktop in container, the 'pflask' utility failed. I chased this down to the 'libcap-ng' library not recognizing "CAP_SYS_MOUNT", which is a new Linux Capability that I patched into the Linux kernel.

  • How to Apply Try Catch Block in PHP

    Exception handling is a very important feature of any object-oriented programming. When any logical or system error arrives after executing any code then it is called an exception and the technique by which the coder can correctly handle the errors is called exception handling. It is used to avoid unexpected results from the end-users, improve the application security and handle predefined errors efficiently. This feature is supported by PHP from version 5. Try and catch block is used to handle exceptions in object-oriented programming. Try block is used to throw the exception if any error occurs and catch or finally block is used to handle the exception in PHP. This tutorial will help you to learn the use of exception handling of object-oriented programming by using PHP.

  • How to Print Array in PHP

    Array variables are used to store multiple values in a single variable. Different types of programming problems can be solved easily by using array variables. Sometimes it requires checking the structure and values of the array variable in human-readable format for debugging purposes. The array values can be printed in PHP in different ways. Using a loop is the simplest way to print the array values. You can use two built-in functions of PHP to do this task. These are print_r() and var_dump(). If you want to get more detailed information about any array variable then you can use var_dump() because it provides information on array values by including data types. How you can use the ‘for‘ or ‘foreach’ loop and the built-in functions in PHP have been shown in this tutorial using multiple examples.

  • PHP String Concatenation

    Joining one or more string values with another string value or variable is called string concatenation. It is a common task when we want to print any output in a more meaningful way for the user. PHP has no built-in function to join string data like other standard programming languages. But the array of string values can be joined by using some PHP built-in functions. Different ways to join string values and an array of string values have been shown in this tutorial.

  • Our Favorite Things: Binary Search

    You might not think that it would be possible to have a favorite optimization algorithm, but I do. And if you’re well-versed in the mathematical art of hill climbing, you might be surprised that my choice doesn’t even involve taking any derivatives. That’s not to say that I don’t love Newton’s method, because I do, but it’s just not as widely applicable as the good old binary search. And this is definitely a tool you should have in your toolbox, too.

  • GitHub Isn't About Code

    GitHub isn't really about code anymore. The code is an integral part, but I imagine engagement for Issues, Pages, and Discussions is significantly higher than just the code. Maybe that's why GitHub search and discovery has historically been lacking – the signals that are typically useful don't apply for code.

  • OpenGL In 500 Lines (Sort Of…)

    How difficult is OpenGL? How difficult can it be if you can build a basic renderer in 500 lines of code? That’s what [Dmitry] did as part of a series of tiny applications. The renderer is part of a course and the line limit is to allow students to build their own rendering software. [Dmitry] feels that you can’t write efficient code for things like OpenGL without understanding how they work first.

  • VA is Leveraging APIs to Improve Patient Experience

    To drive adoption, VA has been accelerating advertisements and marketing across VA’s medical facilities. In terms of standardization, VA is using Open API, FHIR standards and the 21st Century Cures Act to enable the most applications in the veteran ecosystem as possible.

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.