Language Selection

English French German Italian Portuguese Spanish

Programming: JSON, Laravel, Perl, Python, Rust and Java

  • Book club: JSON Web Tokens – Technicalities

     

    This month for our book club Daniel, Lars, Vince and I read Hardcoded secrets, unverified tokens, and other common JWT mistakes which wasn’t quite what we’d thought when it was picked. We had been expecting an analysis of JSON web tokens themselves as several us had been working in the area and had noticed various talk about problems with the standard but instead the article is more a discussion of the use of semgrep to find and fix common issues, using issues with JWT as examples.

    We therefore started off with a bit of a discussion of JWT, concluding that the underlying specification was basically fine given the problem to be solved but that as with any security related technology there were plenty of potential pitfalls in implementation and that sadly many of the libraries implementing the specification make it far too easy to make mistakes such as those covered by the article through their interface design and defaults. For example interfaces that allow interchangable use of public keys and shared keys are error prone, as is is making it easy to access unauthenticated data from tokens without clearly flagging that it is unauthenticated. We agreed that the wide range of JWT implementations available and successfully interoperating with each other is a sign that JWT is getting something right in providing a specification that is clear and implementable.

  • Laravel Scheduler Tutorial – Linux Hint

    Some tasks are required to perform on regular basis in any application, and it would be more efficient if the tasks could be done automatically. The Laravel framework makes these types of tasks easier by using Laravel Scheduler. Sending offer-related bulk emails, optimizing data, generating reports, keeping application backup, and removing inactive users are some common examples of the repetitive tasks that can be performed with the Laravel Scheduler. Laravel can execute specific tasks periodically by using a built-in task manager named Corn job. The configuration file named Corntab is used by Corn to manage scheduling tasks. This tutorial shows you how to manage repetitive tasks by creating Corn jobs and performing task scheduling.

  • Perl: The Weekly Challenge #081

    It was the most difficult week for me.

    Why?

    Well, it is confirmed by my GP that I am going through Depression & Anxiety.

    So now you know why I didn’t do live video session in the recent weeks.

    I was even thinking on dropping the idea of participating in the weekly challenge for couple of weeks.

    But then I decided to do it in the end. Having said that it is still incomplete with no unit test for the Frequency Sort task.

    Please excuse me if you find bug/issue in my solutions.

  • MNIST Handwriting Recognition Deep Learning Written in Pure Perl

    The MNIST handwriting recognition deep learning written with Pure Perl is released.

    Because it is pure Perl code, it can be used by Perl users to get an overview of deep learning algorithms.

  • Perl Weekly Challenge 81: Frequency Sort

    These are some answers to the Week 81 of the Perl Weekly Challenge organized by Mohammad S. Anwar

  • Merge two dictionaries using the Dict Union operator » Kibiwebgeek

    In this article we will create a Python function which will merge two dictionaries using the Dict Union operator.

    The Dict Union operator will only merge the key and value pair with a unique key’s name, which means if there are two keys with the same name in the same dictionary, only the last key in the dictionary will be merged. If the same key appears in both dictionaries, then the key in the second dictionary will be merged into this Dict union.

    After the merger of two dictionaries, the function will change the value of the key if the third optional argument has tuples in it which contain the key and value to be changed.

  •     

  • Learn Python for Data Science

    This tutorial would help you to learn Data Science with Python by examples. It is designed for beginners who want to get started with Data Science in Python. Python is an open source language and it is widely used as a high-level programming language for general-purpose programming. It has gained high popularity in data science world. In the PyPL Popularity of Programming language index, Python scored second rank with a 14 percent share. In advanced analytics and predictive analytics market, it is ranked among top 3 programming languages for advanced analytics.

  • My top 7 keywords in Rust | Opensource.com

    I've been using Rust for a few months now, writing rather more of it than I expected—though quite a lot of that has been thrown away as I've learned, improved what I'm writing, and taken some more complex tasks beyond what I originally intended.

    I still love it and thought it might be good to talk about some of the important keywords that come up again and again in Rust. I'll provide my personal summary of what they do, why you need to think about how you use them, and anything else that's useful, particularly for people who are new to Rust or coming from another language (such as Java; see my article Why I'm enjoying learning Rust as a Java programmer).

  • Quarked testing: Writing tests for Quarkus - Red Hat Developer

    DevNation Tech Talks are hosted by the Red Hat technologists who create our products. These sessions include real solutions plus code and sample projects to help you get started. In this talk, you’ll learn about testing Quarkus applications and services from Alex Soto Bueno and Burr Sutter.

    Testing allows you to deliver your application with the confidence that you’re building the right things and building the things right. Testing also helps developers refactor their code, add a new feature, or fix a bug knowing that nothing else is breaking.

    Quarkus brings to the Java ecosystem a way to develop cloud-first, container-native, serverless-focused, and Kubernetes-optimized applications. This is where GraalVM meets Quarkus, bringing server-side and enterprise-capable Java to help you build truly cloud-native apps.

    But, how do you test Quarkus applications and services? In this talk, we show how you how. We’ll look at how to test basic components, mocks, stubs, or (secured) RESTful web APIs. Also, we will cover more advanced topics such as persistence tests, service virtualization, and using containers for testing purposes. Come to this session to learn in practice how to write tests for Quarkus.

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.