Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • YAML Comments

    In this article, we will be discussing the concept of creating comments in a YAML file. YAML allows single-line comments with the help of the “#” character. We can use the single-line comment multiple times to make a block comment paragraph in the YAML file. Now, a YAML file is a configuration support file for storing data for other programs like Ruby and Dockers. For this article, we used the YAML file as a support file for Dockers. The Docker-compose supports files with a “.yml” file. In these files, the configuration of a Docker image file is stored. The pre-requisite for the implementation is to install Dockers and Docker-compose through the Ubuntu terminal.

  • RuboCop Serves (Much) Faster

    RuboCop’s motto has always been “The Ruby Linter that Serves and Protects”.1 Now, with the addition of a server mode in RuboCop 1.31 that motto is truer than ever! But first - a bit of background.

  • Fault-Tolerant Design

    The very first fault-tolerant computer was the Samočinný počítač, or SAPO, built in 1950. It could tolerate the failure of an arithmetic unit --it had three parallel arithmetic logic units and decided on the correct result by voting1.

    The obvious use cases for fault-tolerant computers are when maintenance or repairs are extremely hard to do (spacecraft) or when failures are extremely costly (nuclear power plants).

  • JavaScript: Return multiple values from a function call with code examples

    Learn how to return multiple values from a function call in Javascript. Unlike go lang, JavaScript does not have a native way to return multiple values from a single function. In this post, you will learn how to improvise on this and get around the issue if you have to get back multiple values from a JavaScript function call. Time to get going.

  • Build a Next.js React Apps with MongoDB in Mins

    Next.js is a free open-source React framework for building a web applications. It allows developers to generate start website or use server-side rendering to create a highly scalable sites.

  • Lightence Is a Free Outstanding Full-Featured Dashboard Template for React

    React is a popular open-source web development framework for creating interactive web apps. It has a large community of developers of all levels, and it is the first choice for many companies and enterprise developers.

    Open-source React templates save developers time, and fasten their development speed, especially in large projects.

    There are many React dashboard and control panel templates, that we covered the open-source free ones here, however, most of them come in 2 editions; free/ open-source and a pro or enterprise edition that has more features, components and custom pages.

  • SPVM continues to undergo heavy changes. | Yuki Kimoto Perl Blog - Perl Club [blogs.perl.org]

    Sorry, SPVM continues to undergo heavy changes.

    After building real-world modules and applications, I realized that a lot of changes needed to be made.

    You can see what I'm currently working on below.

  • Update: re-search.py Version 0.0.21

    This new version of re-search.py adds a regex for UNCs to the library and has a Python 3 fix.

  • Update: oledump.py Version 0.0.69

    This update brings an update to plugin plugin_vba_dco.py.

    This is a plugin that scans VBA source code for keywords (Declare, CreateObject, GetObject, CallByName and Shell), extracts all lines with these keywords, followed by all lines with identifiers associated with these keywords.

    For example, if the result of a CreateObject call is stored in variable oXML, then all lines with this oXML identifier are selected.

    I updated this plugin with two options -g (–generalize) and -a (–all).

    Option -g generalize will replace all identifiers (like variable & functions names) with a general name: Identifier#### where #### is a numeric counter.

    I added this option to analyze a sample where almost all identifiers where completely unreadable, as they consisted solely out of characters that are between byte values 128 and 255 (e.g., non-ASCII).

More in Tux Machines

today's howtos

  • How to Change Comment Color in Vim – Fix Unreadable Blue Color

    Are you annoyed about the comment color in vim? The dark blue color of the comment is often hard to read. In this tutorial, we learn how to change the comment color in Vim. There are few methods we can use to look vim comment very readable.

  • How to Add Repository to Debian

    APT checks the health of all the packages, and dependencies of the package before installing it. APT fetches packages from one or more repositories. A repository (package source) is basically a network server. The term "package" refers to an individual file with a .deb extension that contains either all or part of an application. The normal installation comes with default repositories configured, but these contain only a few packages out of an ocean of free software available. In this tutorial, we learn how to add the package repository to Debian.

  • Making a Video of a Single Window

    I recently wanted to send someone a video of a program doing some interesting things in a single X11 window. Recording the whole desktop is easy (some readers may remember my post on Aeschylus which does just that) but it will include irrelevant (and possibly unwanted) parts of the screen, leading to unnecessarily large files. I couldn't immediately find a tool which did what I wanted on OpenBSD [1] but through a combination of xwininfo, FFmpeg, and hk I was able to put together exactly what I needed in short order. Even better, I was able to easily post-process the video to shrink its file size, speed it up, and contort it to the dimension requirements of various platforms. Here's a video straight out of the little script I put together: [...]

  • Things You Can And Can’t Do

    And it got me thinking about what you can and can’t do — what you do and don’t have control over.

  • allow-new-zones in BIND 9.16 on CentOS 8 Stream under SELinux

    We run these training systems with SELinux enabled (I wouldn’t, but my colleague likes it :-), and that’s the reason I aborted the lab: I couldn’t tell students how to solve the cause other than by disabling SELinux entirely, but there wasn’t enough time for that.

  • Will the IndieWeb Ever Become Mainstream?

    This is an interesting question, thanks for asking it, Jeremy. I do have some history with the IndieWeb, and some opinions, so let’s dive in.

    The short answer to the question is a resounding no, and it all boils down to the fact that the IndieWeb is really complicated to implement, so it will only ever appeal to developers.

  • How to Install CUPS Print Server on Ubuntu 22.04

    If your business has multiple personal computers in the network which need to print, then we need a device called a print server. Print server act intermediate between PC and printers which accept print jobs from PC and send them to respective printers. CUPS is the primary mechanism in the Unix-like operating system for printing and print services. It can allow a computer to act as a Print server. In this tutorial, we learn how to set up CUPS print server on Ubuntu 22.04.

Open Hardware: XON/XOFF and Raspberry Pi Pico

  • From XON/XOFF to Forward Incremental Search

    In the olden days of computing, software flow control with control codes XON and XOFF was a necessary feature that dumb terminals needed to support. When a terminal received more data than it could display, there needed to be a way for the terminal to tell the remote host to pause sending more data. The control code 19 was chosen for this. The control code 17 was chosen to tell the remote host to resume transmission of data.

  • Raspberry Pi Pico Used in Plug and Play System Monitor | Tom's Hardware

    Dmytro Panin is at it again, creating a teeny system monitor for his MacBook from scratch with help from our favorite microcontroller, the Raspberry Pi Pico. This plug-and-play system monitor (opens in new tab) lets him keep a close eye on resource usage without having to close any windows or launch any third-party programs. The device is Pico-powered and plugs right into the MacBook to function. It has a display screen that showcases a custom GUI featuring four bar graphs that update in real-time to show the performance of different components, including the CPU, GPU, memory, and SSD usage. It makes it possible to see how hard your PC is running at a glance.

Security Leftovers

How to Apply Accent Colour in Ubuntu Desktop

A step-by-step tutorial on how to apply accent colour in Ubuntu desktop (GNOME) with tips for Kubuntu and others. Read more