Language Selection

English French German Italian Portuguese Spanish


Programming Lefotvers

Filed under
  • OpenAI's GPT-3-based pair programming model – Codex – now open for private beta testers through an API • The Register

    OpenAI has released its new and improved version of Codex, its AI code-completion model, to beta testers through an API.

    Co-founders Greg Brockman and Ilya Sutskever demonstrated Codex's abilities during a livestream broadcasted on Twitch, earlier this week. They showed the system was capable of generating Python code for simple tasks like printing and formatting text, given instructions in plain English.

  • [Older] What Does "Learn to Code" Actually Mean? - DEV Community

    Over the years, the phrase "learn to code" has gained a lot of popularity, most notoriously as a sort of cheeky suggestion to throw at folks that aren't happy with their job. However, I can't count the number of times I've been approached personally for sincere advice on "learning computer coding" or the number of times I see something related asked about in a group on social media where I feel compelled to give advice. This post intends to shed some light on if this path is right for you, how to actually get started and how deep you may need to go, and to share some of my opinions around job prospects throughout the post.

  • Qt Creator 5 - CMake projects update

    Qt Creator 5 comes with bug fixes and new features that affect CMake projects.

  • Releasing nailing-cargo 1.0.0

    It's not really possible to make a nontrivial Rust project without using cargo. But the build process automatically downloads and executes code from, which is a minimally-curated repository. I didn't want to expose my main account to that.

    And, at the time, I was working on a project which for which I was also writing a library as a dependency, and I found that cargo couldn't cope with this unless I were to commit (to my git repository) the path (on my local laptop) of my dependency.

    I filed some bugs, including about the unpublished crate problem. But also, I was stubborn enough to try to find a workaround that didn't involve committing junk to my git history. The result was a short but horrific shell script.

  • Most fancy | Playing Perl 6␛b6xA Raku

    On Discord (yes, we are that cool) MrDispatch wished for a way to collect a bunch of classes right after their declaration. I believe, with the power of the MOP, we can go a step further and register the type-object even before the definition is finished.

  • CSV viewers for CSV haters

    There are quite a few programs that let us CLI people view a CSV file as a simple table. I doubt if there any CSV parsers that work perfectly with all variations in the wild of the horrible, awful CSV format, but the two parsers shown here are usually reliable.

Programming Leftovers

Filed under

  • 27 Best IDE's or Source Code Editors for Linux

    C++, an extension of well known C language, is an excellent, powerful and general-purpose programming language that offers modern and generic programming features for developing large-scale applications ranging from video games, search engines, other computer software to operating systems.

    C++ is highly reliable and also enables low-level memory manipulation for more advanced programming requirements.

  • Structuring R projects

    There are some things that I call Smith goods:1 things I want, nay, require, but hate doing. A clean room is one of these – I have a visceral need to have some semblance of tidiness around me, I just absolutely hate tidying, especially in the summer.2 Starting and structuring packages and projects is another of these things, which is why I’m so happy things like cookiecutter exist that do it for you in Python.

    While I don’t like structuring R projects, I keep doing it, because I know it matters. That’s a pearl of wisdom that came occasionally at a great price. I am famously laid back about structuring R projects – my chill attitude is only occasionally compared to the Holy Inquisition, the other Holy Inquisition and Gunny R. Lee Ermey’s portrayal of Drill Sgt. Hartman, and it’s been months since I last gutted an intern for messing up namespaces.3 So while I don’t like structuring R projects, I keep doing it, because I know it matters. That’s a pearl of wisdom that came occasionally at a great price, some of which I am hoping to save you by this post.

  • RStudio Voices – Julia Silge

    For the first piece in our new RStudio Voices series, we decided to interview one of our open source package developers as their work defines our organization’s focus on making data science tools available to everyone. We spoke with Julia Silge, who is a maintainer of the tidytext package, which uses tidy data principles to make text mining tasks easier and more effective for R developers.

    Beyond simply a legal entity, any corporation is a collective. It is the sum of its individual employees’ work and principles weighted by their roles in the company. My name is Michael Demsko Jr. For the past three years, I have worked at RStudio, and my goal is to show you, the reader, developer, contributor, or customer what RStudio is by showing you who RStudio is– to allow each agent of our mission to introduce themselves to you, one at a time, in their own voices.

  • Key Mapper: a visual tool for remapping keys (and more) on Linux

    Mapping keys has never been easier in Linux.

  • The stablereq workflow for Python packages – Michał Górny

    I have been taking care of periodic mass stabilization of Python packages in Gentoo for some time already. Per Guilherme Amadio‘s suggestion, I’d like to share the workflow I use for this. I think it could be helpful to others dealing with large sets of heterogeneous packages.

  • Python Functions - Definition with Examples – TecAdmin

    Functions are subprograms in the main program that contain a bundle of related statements of code that only run when they are called. They are written in order to perform particular tasks. Functions help us break our code into smaller chunks and avoid repetitiveness in code. They make the code more organized and increase its readability.

  • JavaScript Date Formats

    JavaScript has an inbuilt object called Date Object, which works with date and time in a platform-independent format; it represents the number of seconds passed since midnight of January 1970 by the ECMAScript standard.

    In this post, we will learn different methods to change the format of date in JavaScript;

    but to do that, first, we will need a variable to store the value of the date. JavaScript has an inbuilt data type (date object) that can be used to store dates.

  • What is JavaScript Console? Explained.

    All major web browsers have developer tools built into them. This tool kit consists of the console, debugger, network activity analyzer, inspect element, etc., and makes web developers’ lives a lot easier.

    All modern browsers have a console that can be opened using a shortcut key from the keyboard.

  • JavaScript Arrays Tutorials – Explained with Examples for Beginners

    While learning any programming language, we come across the learning of Arrays. Arrays come in helpful when there is a need to store several different values in a single variable. Arrays application is seen at many places, like implementing the matrices, data structures or storing data in tabular form.

    The concept of arrays came from the arrangement of objects in real life. The way we arrange objects in real life, we can arrange the data in programming. So this post is all about learning the core and basic concepts of Arrays in JavaScript. Let’s dive in and have a clear understanding of an array, how to create it, and use it to assign, access, and change values.

  • JavaScript Array Shift and Unshift Method

    When we work in any programming language, arrays play an essential role in fulfilling programming tasks. In javascript, arrays store the same data types, like strings, integers, arrays, or even functions.

    While working with arrays, we often need to add or remove elements in an array. For fulfilling this need, shift() and unshift() methods come to the rescue. In this post, we will have a brief discussion about shift() and unshift() functions in JavaScript and a couple of examples to have a profound understanding of these functions.

  • JavaScript Array Length Property

    While writing code, we might need to store multiple values. We can use a data type named array to meet this need. An array is a variable type in any programming language used to store multiple values of the same data type, such as a list of students or employees [Jane, John, Jack].

  • JavaScript Array Push and Pop Method

    Arrays are crucial when working in any programming language to complete programming tasks. Arrays store the same data types in javascript, such as strings, integers, arrays, and even functions.

    When working with arrays, we frequently need to add or remove elements. The push() and pop() methods come to the rescue in this situation. In this post, we’ll go over what the push() and pop() functions in JavaScript are, as well as some examples to help you understand them better.

  • How to Use indexOf Method in JavaScript

    indexOf() method is used to search for the index of an element in a given array; it can also be used to find the position of a character or a substring in a string. The indexOf() method returns the position of the element/substring if it is found; else, it returns -1. The indexing starts from 0, so the first element of an array and the first word in a string always return 0.

  • Download Top 10 JavaScript Books

    JavaScript is a dynamically typed scripting language commonly used to engage the user by making interactive web pages. It adds dynamic elements to a static webpage that catch the user’s attention.

    A few years ago, JavaScript could only run on the client-side and was known as a client-side scripting language. JavaScript can now also be used on the server-side using environments such as Node.js.

    The JavaScript source code is executed in the client’s browser, and it can be processed without any communication with the server. Slideshows are a common example of an interactive element added by JavaScript to a website.

    There is a misconception that Java and JavaScript are the same languages. While Java may influence it, it has no direct relationship. Its syntax is closely related to that of C.

Git v2.33.0

Filed under
New contributors whose contributions weren't in v2.32.0 are as follows.
Welcome to the Git development community!

  Anders Höckersten, Andrew Berry, Andy AO, Beshr Kayali,
  dorgon.chang, edef, Fabian Stelzer, Fabian Wermelinger, Gregory
  Anders, Greg Pflaum, Hu Jialun, Jason Hatton, Julian Verdurmen,
  Matthew Hughes, Michael Schindler, Reuven Y, Stephen Manz,
  Tao Klerks, and Teng Long.

Returning contributors who helped this release are as follows.
Thanks for your continued support.

  Ævar Arnfjörð Bjarmason, Alexander Shopov, Alex Henrie,
  Anders Kaseorg, Andrei Rybak, Andrzej Hunt, Atharva Raykar,
  Bagas Sanjaya, brian m. carlson, Carlo Marcelo Arenas Belón,
  Christian Couder, Christopher Diaz Riveros, Daniel Santos,
  Dennis Ameling, Denton Liu, Derrick Stolee, Đoàn Trần Công
  Danh, Elijah Newren, Emily Shaffer, Emir Sarı, Eric Sunshine,
  Eric Wong, Fangyi Zhou, Felipe Contreras, Han-Wen Nienhuys,
  Jean-Noël Avila, Jeff King, Jiang Xin, Johannes Schindelin,
  Jonathan Nieder, Jonathan Tan, Jordi Mas, Josh Steadmon, Junio C
  Hamano, Kaartic Sivaraam, Martin Ågren, Matheus Tavares, Matthew
  Rogers, Matthias Aßhauer, Nicolas Pitre, Patrick Steinhardt,
  Peter Krefting, Philippe Blain, Ralf Thielow, René Scharfe,
  Sergey Organov, Shourya Shukla, Taylor Blau, Thomas Bétous,
  Thomas Braun, Trần Ngọc Quân, Wolfgang Müller, Yi-Jyun Pan,
  ZheNing Hu, and 依云.

[*] We are counting not just the authorship contribution but issue
    reporting, mentoring, helping and reviewing that are recorded in
    the commit trailers.

Read more

Also: Git 2.33 Released With New "merge-ort" Merging For 500~9000x Speed-Up

Go 1.17 is released

Filed under

Today the Go team is thrilled to release Go 1.17, which you can get by visiting the download page.

This release brings additional improvements to the compiler, namely a new way of passing function arguments and results. This change has shown about a 5% performance improvement in Go programs and reduction in binary sizes of around 2% for amd64 platforms. Support for more platforms will come in future releases.

Go 1.17 also adds support for the 64-bit ARM architecture on Windows, letting gophers run Go natively on more devices.

We’ve also introduced pruned module graphs in this release. Modules that specify go 1.17 or higher in their go.mod file will have their module graphs include only the immediate dependencies of other Go 1.17 modules, not their full transitive dependencies. This should help avoid the need to download or read go.mod files for otherwise irrelevant dependencies—saving time in everyday development.

Read more

Also: Go 1.17 is released

Programming Leftovers

Filed under
  • Dirk Eddelbuettel: RcppBDT 0.2.4 on CRAN: Updates

    ...the last time RcppBDT was released, anytime did not yet exist. And some of the changes now finally released here in this version are some of the first steps made towards what became anytime. RcppBDT is broader in scope and provides a wider range of functionality but in a somewhat rougher form as we never sat down writing higher-end wrappers in R for all the potential use cases. When we wrote the first RcppBDT versions, many other popular date/time packages were all in R code and not compiled, and this package showed how things could be done at the compiled level. Now other packages, including anytime have filled the void so fully polishing RcppBDT may never happen. In any event, this release refreshes the package and brings it to full R CMD check --as-cran compliance.

  • Daniel Vrátil: Initial release of QCoro

    I’m happy to announce first release of QCoro, a library that provides C++ coroutine support for Qt.

  • DIY 3D Printed IoT Weather Station Using an ESP32

    Today we’re going to be building a wireless outdoor weather station that takes temperature, humidity, barometric pressure, light and wind speed readings. The data is then posted to the cloud and can be accessed through a Thingspeak dashboard on an internet-connected computer, tablet, or mobile phone.

  • Let's write a compiler, part 1: Introduction, selecting a language, and doing some planning

    Today we will begin writing a compiler for a real high-level language. It will be a simple language for sure. But let's not let simplicity stand in our way. We will be able to write real programs with our compiler. How real, you ask? Let's plan on writing a compiler for our selected language and then being able to write a compiler in that same language the compiler compiles using our compiler to compile it! From zero to compiler to self-hosted compiler. It will take a good bit of work for sure, but I think we are up to the task. We'll spend this series writing our initial, non-self-hosting compiler. We'll take some time to enjoy our work, then we'll come back and embark on a second series that develops the self-hosted compiler using the compiler we will write in this series.

  • Hello Isovalent!

    In my new position I will be a technical marketing manager and thus working on technical content, messaging and enablement. With Cilium Enterprise Isovalent offers an eBPF based solution for Kubernetes networking, observability, and security – and since I am rather new to Kubernetes, I expect a steep learning curve.

  • Parse command-line arguments with argparse in Python |

    There are several third-party libraries for command-line argument parsing, but the standard library module argparse is no slouch either.

    Without adding any more dependencies, you can write a nifty command-line tool with useful argument parsing.

  • Rakudo Weekly News: 2021.33 Cucumbering

    Some weeks just have sad news: And the saddest part about this, is that it wasn’t until this week to become known that Robert Lemmen has died in June 2020 already. Robert Lemmen mostly worked on Debian, in the Raku context specifically about packaging Raku on Debian. They also had a number of modules in the Raku ecosystem, and also blogged about them (The Surprising Sanity of Using a Cache but Not Updating It).


    The past week saw the publication of two articles in “mainstream” online media about events related to The Perl Foundation: TheRegister (HackerNews comments), ArsTechnica (HackerNews comments), which sadly also involved members of the Raku community (including yours truly). You should probably skip the comments.

  • Post hoc apt-listchanges

    Yesterday I upgraded a machine from Debian “buster” to “bullseye” without apt-listchanges installed, oops. Here’s a way to get new NEWS.Debian entries after the fact.

  • Perl Weekly Challenge 125: Pythagorean Triples

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

Maximiliano Sandoval: Decoder 0.2.0 Released

Filed under

It has been a few months since last release in February, and quite a lot has changed, GTK 4 had many issues back then and had to be manually included in the Flatpak manifest, libadwaita was still a WIP merge request for libhandy and didn’t include changes to the Adwaita stylesheet, ASHPD didn’t have an asynchronous API, and gtk4-rs was in a state of constant flux, to the point where making the required API changes when updating the app took hours, just due to the massive number of improvements in gtk-rs-core. Just updating those dependencies makes a big difference.

The worst offender was that the gstreamer plugging used for the camera depended on gstreamer/gst-plugins-good/!767 for GTK 4 support, and to make everything bad, a bug in the Intel drivers made the app crash in Wayland when initializing the camera so it had to be released without Wayland support.

Read more

free software does not come with any guarantees of support

Filed under

Other free software licenses, such as the BSD license, and Apache 2.0 license also have a similar clause. While maintainers might offer to provide support for free, or perhaps offer a support agreement for a fee, free software is ultimately what you make of it, for better or worse.

By integrating anti-features such as direct messages into software development forges like the proposed GitHub feature, the developers of these forges will inevitably be responsible for an onslaught of abusive messages directed at free software maintainers, which ultimately will serve to act as a Denial of Service on our time. And, most likely, this abuse will be targeted more frequently at maintainers who are women, or people of color.

I urge the developers of software development forges to respect the labor donated to the commons by free software maintainers, by developing features which respect their agency, rather than features that will ultimately lead abusive users to believe maintainers are available at their beck and call.

Otherwise, the developers of these forges may find projects going to a platform that does respect them.

Read more

Programming Leftovers

Filed under
  • Sophie Herold: Get set: Apps for GNOME on its mark

    Almost all strings in Apps for GNOME are translatable now. You can check the apps-for-gnome module translation status over at Damned Lies. Be aware, that all app-specific strings will not appear in the apps-for-gnome module! Most apps have their own module in Damned Lies where you will find the respective strings that are used on the Apps for GNOME page. If you want to work on the translation of those app details, you have to consult the respective app module. Also note, that some apps do not use the GNOME translation infrastructure.

  • Kraft Version 0.97

    Ich freue mich, die Kraft-Version 0.97 herauszugeben. In dieser Version sind wieder einige Bugfixes und Detailverbesserungen zu finden, die die Arbeit mit Kraft noch weiter erleichtern werden.

  • Elastic amends Elasticsearch Python client so it won't work with forks then blocks comments • The Register [Ed: Microsoft Tim on Elasticsearch and you know they don't give a damn (e.g. about software freedom) when they use proprietary software of thugs from Microsoft to manage their code, basically choosing a monopoly of racism]

    Elastic has modified the official Python client for its Elasticsearch database not to work with forked versions, and closed the GitHub issue to comments.

    Elasticsearch is a database manager and analytics engine, often used for log analytics. The elasticsearch-py client has over 202,000 downloads and is described as the "official low-level client for Elasticsearch. Its goal is to provide common ground for all Elasticsearch-related code in Python; because of this it tries to be opinion-free and very extendable."

  • Perl's Community Affairs Team chair quits as org put on ice by code language's foundation [Ed: So-called “safety of the community.” Those who attacked th #FSF over alleged "safety" were referring to the risk of -- OH MY GOD!! -- RMS interrupting someone to correct that someone. 'Safety'... ]

    The Perl Foundation has put its Community Affairs Team (CAT) on hiatus, and the team's chair has resigned.

    Samantha McVey's departure came in the wake of the decision by The Perl Foundation (TPF) board to retract the CAT statements of April 19, and May 2, and put the CAT on ice "while its charter is formalized."

  • Rotten Chicken & Structural Pattern Matching

    I imagined cycling the power on and off for ninety seconds every half hour to start and stop the ozone generator. I cobbled together an experiment with, a project spun out of Mozilla last year. It is IoT software that's both easy to program and YAML-free. I setup on a RaspberryPi with a ZigBee adapter. In my work at Mozilla a few years ago, I wrote my own Python package to assist in controlling IoT devices (starting at: Things Gateway Series 2), so it was easy to throw together a rule.

    At the same time as this project, I was looking at the advancements in the Python language introduced in version 3.10. I'm especially fascinated with Structural Pattern Matching. Python finally gets something akin to a case statement. It's a controversial feature for several reasons. It employs some syntactic surprises.

Ogre 13 released

Filed under

We just tagged the Ogre 13 release, making it the new current and recommended version. We would advise you to update wherever possible, to benefit from all the fixes and improvements that made their way into the new release.

This release represents 2.5 years of work from various contributors when compared to the previous major 1.12 release. Compared to the last Ogre minor release (1.12.12), however we are only talking about 4 months. Here, you will mainly find bugfixes and the architectural changes that justify the version number bump.

For source code and pre-compiled SDKs, see the downloads page.

Read more

Also: Ogre 13 Open-Source Game Engine Released

JavaScript Programming: New Manuals

Filed under
  • What is the typeof Operator in JavaScript?

    The typeof is an operator present in most programming languages and is used to check the datatype of an operand (opernad: the variable which is operated on).

    In this write-up, we will learn all about the typeof operator, what it is and how to use it; but first, we need to understand what data types are.

  • Top 5 JavaScript Code Editors and IDEs [Ed: Too much Microsoft there]

    Code editors are text editor programs specifically designed to write and edit source code of a software while IDEs (integrated development environments) provide tools and facilities required for software development; IDEs consist of code editors debuggers and build automation tools. They provide a single environment where everything can be done, from writing to executing the code. This increases the productivity of the developers and makes their lives easier.

  • Top 5 JavaScript Online Code Editors

    Online code editors allow you to start writing code without any setup. These code editors can be accessed from anywhere, anytime. Most of them are free and have collaboration features that allow remote team members to contribute to a project easily. Some of these online tools only have basic features, while others are full-fledged IDEs.

  • Top 10 JavaScript Online Courses

    JavaScript is a scripting language widely used across the internet to enhance the user experience by adding interactive and dynamic elements to a webpage. It converts static pages (made by CSS & HTML) into dynamic ones that catch the user’s attention. JavaScript can run without communicating with the server as the client-side’s source code is processed by the client’s browser.

    Slideshows, change in the colour of a button when the cursor hovers over it, displays of a time countdown are common examples of interactive elements added by JavaScript to a website.

    Some People have a misconception that Java and JavaScript are similar. There is no similarity between them other than their names.

  • What is the Slice() method in JavaScript

    JavaScript is the language that is used to make the website dynamic and more interactive. In any programming language, arrays play an important role in storing data and managing different types of data. Developers often need to filter out the array, merge multiple arrays, and push or pop elements from an array to fulfill the required tasks. In this post, we learn about a well-known array’s function, “slice().”

  • Beginners guide to classes in JavaScript

    Classes are a template/blueprint for objects. They simplify the process of creating multiple objects with similar properties and methods. Classes were not present in ES5 and were introduced in the ES6 version of JavaScript. Classes are merely syntactic sugar in JavaScript, built on top of prototypes, and work in the same manner behind the scenes.

  • How to use JavaScript Array Reduce Function

    Javascript provides many built-in array functions for getting tasks done quickly and in an efficient way. Javascript reduce() function is one of those popular functions used to iterate over an array’s elements and get the desired result.

    In this post, we will grasp the concept of the javascript reduce() function. What is a reduce() function, and how can we use it to help in simplifying the Javascript code and complete the tasks efficiently and most quickly.

  • JavaScript Array Contains/Includes

    Javascript provides many built-in array functions for getting tasks done quickly and in an efficient way. Javascript filter() function is one of those popular functions used to iterate over an array’s elements and get the desired result.

    In this post, we will grasp the concept of the javascript filter() function. What is a filter() function, and how can we use it to help in simplifying the Javascript code and complete the tasks efficiently and most quickly.

  • JavaScript Array Filter Function

    Javascript provides many built-in array functions for getting tasks done quickly and in an efficient way. Javascript filter() function is one of those popular functions used to iterate over an array’s elements and get the desired result.

    In this post, we will grasp the concept of the javascript filter() function. What is a filter() function, and how can we use it to help in simplifying the Javascript code and complete the tasks efficiently and most quickly.

  • JavaScript Date Object – Explained
  • JavaScript For Loop – Tutorial for Beginners
  • JavaScript Functions – Explained with Examples for Beginners
  • JavaScript If else and else if statements – Explained
  • JavaScript Interview Questions
  • JavaScript Merging and Concatenating Arrays
  • JavaScript Objects/Dictionary – Explained
  • JavaScript String includes/contains
  • JavaScript Switch Statement – Explained
  • JavaScript forEach Loop
  • JavaScript vs. Java
Syndicate content

More in Tux Machines

Type Title Author Replies Last Postsort icon
Story Fedora and IBM/Red Hat Leftovers Roy Schestowitz 24/09/2021 - 9:35pm
Story Examining btrfs, Linux’s perpetually half-finished filesystem Roy Schestowitz 24/09/2021 - 9:31pm
Story Fedora 35 Workstation Installation Guide / Gnome 41 Quick Tour Roy Schestowitz 24/09/2021 - 9:06pm
Story Games: Metal Raspberry Pi Arcade Controller, Easy-Anti Cheat, and More Roy Schestowitz 1 24/09/2021 - 8:32pm
Story today's howtos Roy Schestowitz 24/09/2021 - 8:23pm
Story Microsoft is heading for a new antitrust showdown Roy Schestowitz 24/09/2021 - 8:00pm
Story MidnightBSD 2.1 Roy Schestowitz 3 24/09/2021 - 6:47pm
Story C++ Programming Roy Schestowitz 24/09/2021 - 6:22pm
Story SiFive HiFive Unmatched Hands-On, Initial RISC-V Performance Benchmarks Rianne Schestowitz 24/09/2021 - 6:18pm
Story Security Leftovers Roy Schestowitz 24/09/2021 - 6:13pm