Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Moving Python's bugs to GitHub [LWN.net]

    Over the past seven years or so, Python has slowly been moving its development infrastructure to GitHub; we covered some of the early discussions at the end of 2014. One piece of that infrastructure, bug tracking, has not been moved from bugs.python.org, but plans are underway to make that happen soon. It is not a simple or straightforward process to do so, however, so the transition will take up to a week to complete; there are a number of interesting facets to the switch, as it entails clearing some technical, and even legal, hurdles.

  • Python support for regular expressions [LWN.net]

    Regular expressions are a common feature of computer languages, especially higher-level languages like Ruby, Perl, Python, and others, for doing fairly sophisticated text-pattern matching. Some languages, including Perl, incorporate regular expressions into the language itself, while others have classes or libraries that come with the language installation. Python's standard library has the re module, which provides facilities for working with regular expressions; as a recent discussion on the python-ideas mailing shows, though, that module has somewhat fallen by the wayside in recent times.

  • Tkinter Radiobutton

    Tkinter radio button widget adds a multiple-choice button and permits the user to pick only one option from a list. Each set of radiobuttons must be associated with the same variable, and each button must represent a single value. To transition from one radionbutton to another, press the Tab key.

  • Tkinter Change Label Text

    Text or a picture can be shown on the screen using the Tkinter label widgets. Only one typeface can be displayed on a label. Multiple lines of text are possible. A label can include any text, and a window can contain many labels (just like any widget can be displayed multiple times in a window). You can easily change/update the Python Tkinter label text with the label text property. Changing the label’s text property is another way to change the Tkinter label text. This lesson will look at modifying label text when a button is clicked in Tkinter Python.

  • This Week In Rust: This Week in Rust 432
  • Scala vs. Java Compared

    Scala and Java are both very popular high-level languages used in the modern world of programming. However, Scala was specially designed to cater to the shortcomings of Java. In particular, it is designed to be compact and concise so that the programmer needs to write a minimal amount of code. Both these languages have their own areas of expertise and use-cases. Therefore, it will be really nice to draw a thorough comparison between them. In this guide, we will compare Scala and Java with each other by talking about their main features, highlighting the key differences between the two programming languages, followed by the advantages and disadvantages of both.

  • Scala Flatmap

    We have already talked about the usage of maps in Scala. Therefore, today, we will try to move one step further by introducing you to a very useful function of the Scala programming language, i.e., FlatMap. You might want to convert a different data structure to a map at times. Additionally, you might also want to flatten this map, i.e., separate out the elements of this map in the form of distinct characters. In this guide, we will be talking about the FlatMap method of the Scala programming language that will help us convert a given data structure to a map while flattening its output.

  • Scala Collect Method

    The Scala programming language has many useful built-in functions that you can use for performing complex programming problems. Additionally, these functions also help you carry out routine tasks very efficiently. This guide will teach you about the Collect method of the Scala programming language and its usage on the Ubuntu 20.04 system.

  • Scala Case Class

    The Case class in Scala is pretty much like a regular Scala class but with some additional functionality. The objects of this class can be instantiated even without using the “new” keyword. Moreover, we can conveniently copy one object of the Case class to another entirely or even while changing some of the values of some of the attributes of this class. This article will be dedicated to using the Case class in Scala.

  • Scala Append to list

    Scala is becoming a high-level programming language as it is concise object-oriented and has different functional programming languages. A critical distinct about these functional languages from a structure base is that we cannot add, modify, or alter any change in them as functions are immutable, specific to a Scala list. This section of the article will introduce and demonstrate the most common ways and methods to append in the Scala list.

  • How to Square a Number in C++

    C++ is used to write the bulk of game libraries. The extension of a C++ file is “.cc” or “.cpp.” It’s a high-level as well as a low-level language. C++ was created with a focus on systems programming, embedded, resource-constrained software, and big systems in mind, with performance, efficiency, and usage flexibility as design goals. C++ is also effective in various situations, having particular strengths in software infrastructure and resource-constrained applications such as desktop apps, video games, servers (such as online e-commerce search).

    When we square a number, we simply multiply it by itself. We have to utilize a header file if we want to get a square of a number. Header files allow us to declare a function with a type placeholder that the compiler will fill in at compile-time based on how the function is used.

  • Is C++ Hard to Learn?

    In the field of programming, from browsers to robots, the C++ language is the core part of all the software and modern languages. That is a technique if you want to learn the C++ programming language. C++ is ascended from a language called C programming language, a famous low-level language. It was established by multiple users. Low-level programming language means a language that is very near and familiar to the computer’s hardware but difficult to understand for humans. Also, this is abstract from the assembly language.

    C++ was founded in 1979; at that time, it was called C with classes, and the goal was to merge the low-level features of C with the object-oriented high-level programming language. The replacement of C was called C++, with the incremental operator established in C. From that time, C++ has advanced into an important language for the development of applications that depend on speed processing power, such as autonomous devices, the internet of things, and video games.

  • Warning: control reaches end of non-void function

    When we write the programs in C++. After executing programs, sometimes we get the error: ‘warning: control reaches the end of non-void function’, which means that certain functions that would have to return some values attain the termination. It might not give any value later. At this time, it is good to take a look at whether or not every control flow contains a return value. To recognize this fault, we first must recognize the working of the compiler.

  • Philip Chimento: Comparing Apples and AppleOranges

    I’m happy with how Temporal encourages the programmer to handle these cases. When I went to try out the comparisons that were suggested in the original tweet, I found it was natural to pick either PlainDate or PlainDateTime to represent the data.

    One thing that Temporal could have done instead (and in fact, we went back and forth on this a few times before the proposal reached its currently frozen stage in the JS standardization process) would be to make the choice of data type, and therefore of comparison semantics, more explicit.



A couple more

  • [MKWS] mkws.sh statistics
  • [SequoiaPGP] sq stakeholders interviews: summary

    Last month I was looking for volunteers to be interviewed as stakeholders for sq. The interviews happened last week and this is an anonymized summary of what I was told. I promised to make the summary anonymous to let the volunteers speak more freely.

    I didn’t have a fixed list of questions. Instead, we had somewhat free-form discussions about using cryptography in general, OpenPGP in particular, practices around exchanging and authenticating certificates (public keys), and related topics.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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.